hfs 0.37.0 → 0.38.2
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 +5 -6
- package/admin/assets/index-c7c100fa.js +509 -0
- package/admin/assets/index-fe2c1463.css +1 -0
- package/{frontend/assets/sha512-065c5d7c.js → admin/assets/sha512-7ecaaeed.js} +1 -1
- package/admin/index.html +4 -5
- package/frontend/assets/index-4b763f31.js +94 -0
- package/frontend/assets/index-6d4e81f7.css +1 -0
- package/{admin/assets/sha512-9a451918.js → frontend/assets/sha512-57b80c96.js} +1 -1
- package/frontend/index.html +3 -7
- package/package.json +3 -2
- package/plugins/download-counter/public/style.css +1 -1
- package/src/adminApis.js +23 -20
- package/src/api.monitor.js +3 -1
- package/src/api.plugins.js +1 -1
- package/src/api.vfs.js +1 -1
- package/src/config.js +2 -2
- package/src/connections.js +1 -0
- package/src/const.js +2 -2
- package/src/customHtml.js +54 -0
- package/src/frontEndApis.js +2 -5
- package/src/github.js +1 -1
- package/src/listen.js +15 -5
- package/src/middlewares.js +1 -1
- package/src/misc.js +29 -5
- package/src/serveGuiFiles.js +52 -13
- package/src/throttler.js +6 -5
- package/src/upload.js +23 -1
- package/admin/assets/index-3867a36f.js +0 -415
- package/admin/assets/index-a21d9024.css +0 -1
- package/frontend/assets/index-216f7ea9.css +0 -1
- package/frontend/assets/index-420a7286.js +0 -85
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
var _6=Object.defineProperty,$6=Object.defineProperties;var M6=Object.getOwnPropertyDescriptors;var sh=Object.getOwnPropertySymbols;var ck=Object.prototype.hasOwnProperty,uk=Object.prototype.propertyIsEnumerable;var cs=Math.pow,ak=(e,t,n)=>t in e?_6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t)=>{for(var n in t||(t={}))ck.call(t,n)&&ak(e,n,t[n]);if(sh)for(var n of sh(t))uk.call(t,n)&&ak(e,n,t[n]);return e},Ut=(e,t)=>$6(e,M6(t));var cn=(e,t)=>{var n={};for(var r in e)ck.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sh)for(var r of sh(e))t.indexOf(r)<0&&uk.call(e,r)&&(n[r]=e[r]);return n};var it=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(f){o(f)}},s=c=>{try{a(n.throw(c))}catch(f){o(f)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function T6(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 uo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Qb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function j$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var u={},R6={get exports(){return u},set exports(e){u=e}},Nt={};/**
|
|
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 Hf=Symbol.for("react.element"),O6=Symbol.for("react.portal"),L6=Symbol.for("react.fragment"),A6=Symbol.for("react.strict_mode"),F6=Symbol.for("react.profiler"),N6=Symbol.for("react.provider"),D6=Symbol.for("react.context"),B6=Symbol.for("react.forward_ref"),z6=Symbol.for("react.suspense"),j6=Symbol.for("react.memo"),H6=Symbol.for("react.lazy"),dk=Symbol.iterator;function V6(e){return e===null||typeof e!="object"?null:(e=dk&&e[dk]||e["@@iterator"],typeof e=="function"?e:null)}var H$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V$=Object.assign,U$={};function bu(e,t,n){this.props=e,this.context=t,this.refs=U$,this.updater=n||H$}bu.prototype.isReactComponent={};bu.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")};bu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W$(){}W$.prototype=bu.prototype;function Jb(e,t,n){this.props=e,this.context=t,this.refs=U$,this.updater=n||H$}var Zb=Jb.prototype=new W$;Zb.constructor=Jb;V$(Zb,bu.prototype);Zb.isPureReactComponent=!0;var fk=Array.isArray,G$=Object.prototype.hasOwnProperty,ew={current:null},K$={key:!0,ref:!0,__self:!0,__source:!0};function q$(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)G$.call(t,r)&&!K$.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Hf,type:e,key:i,ref:s,props:o,_owner:ew.current}}function U6(e,t){return{$$typeof:Hf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hf}function W6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var pk=/\/+/g;function e0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?W6(""+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 Hf:case O6:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+e0(s,0):r,fk(o)?(n="",e!=null&&(n=e.replace(pk,"$&/")+"/"),jh(o,t,n,"",function(f){return f})):o!=null&&(tw(o)&&(o=U6(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(pk,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",fk(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+e0(i,a);s+=jh(i,t,n,c,o)}else if(c=V6(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+e0(i,a++),s+=jh(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function lh(e,t,n){if(e==null)return e;var r=[],o=0;return jh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function G6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Or={current:null},Hh={transition:null},K6={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:Hh,ReactCurrentOwner:ew};Nt.Children={map:lh,forEach:function(e,t,n){lh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lh(e,function(){t++}),t},toArray:function(e){return lh(e,function(t){return t})||[]},only:function(e){if(!tw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Nt.Component=bu;Nt.Fragment=L6;Nt.Profiler=F6;Nt.PureComponent=Jb;Nt.StrictMode=A6;Nt.Suspense=z6;Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K6;Nt.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=V$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ew.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)G$.call(t,c)&&!K$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var f=0;f<c;f++)a[f]=arguments[f+2];r.children=a}return{$$typeof:Hf,type:e.type,key:o,ref:i,props:r,_owner:s}};Nt.createContext=function(e){return e={$$typeof:D6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:N6,_context:e},e.Consumer=e};Nt.createElement=q$;Nt.createFactory=function(e){var t=q$.bind(null,e);return t.type=e,t};Nt.createRef=function(){return{current:null}};Nt.forwardRef=function(e){return{$$typeof:B6,render:e}};Nt.isValidElement=tw;Nt.lazy=function(e){return{$$typeof:H6,_payload:{_status:-1,_result:e},_init:G6}};Nt.memo=function(e,t){return{$$typeof:j6,type:e,compare:t===void 0?null:t}};Nt.startTransition=function(e){var t=Hh.transition;Hh.transition={};try{e()}finally{Hh.transition=t}};Nt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Nt.useCallback=function(e,t){return Or.current.useCallback(e,t)};Nt.useContext=function(e){return Or.current.useContext(e)};Nt.useDebugValue=function(){};Nt.useDeferredValue=function(e){return Or.current.useDeferredValue(e)};Nt.useEffect=function(e,t){return Or.current.useEffect(e,t)};Nt.useId=function(){return Or.current.useId()};Nt.useImperativeHandle=function(e,t,n){return Or.current.useImperativeHandle(e,t,n)};Nt.useInsertionEffect=function(e,t){return Or.current.useInsertionEffect(e,t)};Nt.useLayoutEffect=function(e,t){return Or.current.useLayoutEffect(e,t)};Nt.useMemo=function(e,t){return Or.current.useMemo(e,t)};Nt.useReducer=function(e,t,n){return Or.current.useReducer(e,t,n)};Nt.useRef=function(e){return Or.current.useRef(e)};Nt.useState=function(e){return Or.current.useState(e)};Nt.useSyncExternalStore=function(e,t,n){return Or.current.useSyncExternalStore(e,t,n)};Nt.useTransition=function(){return Or.current.useTransition()};Nt.version="18.2.0";(function(e){e.exports=Nt})(R6);const fo=Qb(u),Qc=T6({__proto__:null,default:fo},[u]);var Cl={},q6={get exports(){return Cl},set exports(e){Cl=e}},wo={},l1={},Y6={get exports(){return l1},set exports(e){l1=e}},Y$={};/**
|
|
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 G=F.length;F.push(z);e:for(;0<G;){var q=G-1>>>1,X=F[q];if(0<o(X,z))F[q]=z,F[G]=X,G=q;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],G=F.pop();if(G!==z){F[0]=G;e:for(var q=0,X=F.length,ie=X>>>1;q<ie;){var ee=2*(q+1)-1,se=F[ee],ae=ee+1,we=F[ae];if(0>o(se,G))ae<X&&0>o(we,se)?(F[q]=we,F[ae]=G,q=ae):(F[q]=se,F[ee]=G,q=ee);else if(ae<X&&0>o(we,G))F[q]=we,F[ae]=G,q=ae;else break e}}return z}function o(F,z){var G=F.sortIndex-z.sortIndex;return G!==0?G: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=[],f=[],p=1,h=null,m=3,v=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(F){for(var z=n(f);z!==null;){if(z.callback===null)r(f);else if(z.startTime<=F)r(f),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(f)}}function E(F){if(g=!1,w(F),!b)if(n(c)!==null)b=!0,B(k);else{var z=n(f);z!==null&&W(E,z.startTime-F)}}function k(F,z){b=!1,g&&(g=!1,C(M),M=-1),v=!0;var G=m;try{for(w(z),h=n(c);h!==null&&(!(h.expirationTime>z)||F&&!A());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),w(z)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var ee=n(f);ee!==null&&W(E,ee.startTime-z),ie=!1}return ie}finally{h=null,m=G,v=!1}}var _=!1,I=null,M=-1,R=5,O=-1;function A(){return!(e.unstable_now()-O<R)}function V(){if(I!==null){var F=e.unstable_now();O=F;var z=!0;try{z=I(!0,F)}finally{z?j():(_=!1,I=null)}}else _=!1}var j;if(typeof P=="function")j=function(){P(V)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=V,j=function(){D.postMessage(null)}}else j=function(){x(V,0)};function B(F){I=F,_||(_=!0,j())}function W(F,z){M=x(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||v||(b=!0,B(k))},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"):R=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 G=m;m=z;try{return F()}finally{m=G}},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 G=m;m=F;try{return z()}finally{m=G}},e.unstable_scheduleCallback=function(F,z,G){var q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?q+G:q):G=q,F){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,F={id:p++,callback:z,priorityLevel:F,startTime:G,expirationTime:X,sortIndex:-1},G>q?(F.sortIndex=G,t(f,F),n(c)===null&&F===n(f)&&(g?(C(M),M=-1):g=!0,W(E,G-q))):(F.sortIndex=X,t(c,F),b||v||(b=!0,B(k))),F},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(F){var z=m;return function(){var G=m;m=z;try{return F.apply(this,arguments)}finally{m=G}}}})(Y$);(function(e){e.exports=Y$})(Y6);/**
|
|
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 X$=u,vo=l1;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Q$=new Set,tf={};function Oa(e,t){Jc(e,t),Jc(e+"Capture",t)}function Jc(e,t){for(tf[e]=t,e=0;e<t.length;e++)Q$.add(t[e])}var xs=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),a1=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]*$/,hk={},mk={};function Q6(e){return a1.call(mk,e)?!0:a1.call(hk,e)?!1:X6.test(e)?mk[e]=!0:(hk[e]=!0,!1)}function J6(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 Z6(e,t,n,r){if(t===null||typeof t=="undefined"||J6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fr[e]=new Lr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fr[t]=new Lr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fr[e]=new Lr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fr[e]=new Lr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fr[e]=new Lr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fr[e]=new Lr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fr[e]=new Lr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fr[e]=new Lr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fr[e]=new Lr(e,5,!1,e.toLowerCase(),null,!1,!1)});var nw=/[\-:]([a-z])/g;function rw(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(nw,rw);fr[t]=new Lr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nw,rw);fr[t]=new Lr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nw,rw);fr[t]=new Lr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fr[e]=new Lr(e,1,!1,e.toLowerCase(),null,!1,!1)});fr.xlinkHref=new Lr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fr[e]=new Lr(e,1,!1,e.toLowerCase(),null,!0,!0)});function ow(e,t,n,r){var o=fr.hasOwnProperty(t)?fr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Z6(t,n,o,r)&&(n=null),r||o===null?Q6(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 Ts=X$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ah=Symbol.for("react.element"),Ec=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),iw=Symbol.for("react.strict_mode"),c1=Symbol.for("react.profiler"),J$=Symbol.for("react.provider"),Z$=Symbol.for("react.context"),sw=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),d1=Symbol.for("react.suspense_list"),lw=Symbol.for("react.memo"),Xs=Symbol.for("react.lazy"),eM=Symbol.for("react.offscreen"),gk=Symbol.iterator;function td(e){return e===null||typeof e!="object"?null:(e=gk&&e[gk]||e["@@iterator"],typeof e=="function"?e:null)}var Rn=Object.assign,t0;function Cd(e){if(t0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);t0=t&&t[1]||""}return`
|
|
26
|
-
`+t0+e}var n0=!1;function r0(e,t){if(!e||n0)return"";n0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
29
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{n0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cd(e):""}function ej(e){switch(e.tag){case 5:return Cd(e.type);case 16:return Cd("Lazy");case 13:return Cd("Suspense");case 19:return Cd("SuspenseList");case 0:case 2:case 15:return e=r0(e.type,!1),e;case 11:return e=r0(e.type.render,!1),e;case 1:return e=r0(e.type,!0),e;default:return""}}function f1(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 Pc:return"Fragment";case Ec:return"Portal";case c1:return"Profiler";case iw:return"StrictMode";case u1:return"Suspense";case d1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z$:return(e.displayName||"Context")+".Consumer";case J$:return(e._context.displayName||"Context")+".Provider";case sw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lw:return t=e.displayName||null,t!==null?t:f1(e.type)||"Memo";case Xs:t=e._payload,e=e._init;try{return f1(e(t))}catch(n){}}return null}function tj(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 f1(t);case 8:return t===iw?"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 xl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nj(e){var t=tM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ch(e){e._valueTracker||(e._valueTracker=nj(e))}function nM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dm(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 p1(e,t){var n=t.checked;return Rn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function vk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xl(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 rM(e,t){t=t.checked,t!=null&&ow(e,"checked",t,!1)}function h1(e,t){rM(e,t);var n=xl(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")?m1(e,t.type,n):t.hasOwnProperty("defaultValue")&&m1(e,t.type,xl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yk(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 m1(e,t,n){(t!=="number"||dm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xd=Array.isArray;function Dc(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=""+xl(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 g1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return Rn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Me(92));if(xd(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:xl(n)}}function oM(e,t){var n=xl(t.value),r=xl(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 wk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function iM(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 v1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?iM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uh,sM=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(uh=uh||document.createElement("div"),uh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Od={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},rj=["Webkit","ms","Moz","O"];Object.keys(Od).forEach(function(e){rj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Od[t]=Od[e]})});function lM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Od.hasOwnProperty(e)&&Od[e]?(""+t).trim():t+"px"}function aM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var oj=Rn({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 y1(e,t){if(t){if(oj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function b1(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 w1=null;function aw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C1=null,Bc=null,zc=null;function Ck(e){if(e=Wf(e)){if(typeof C1!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=ug(t),C1(e.stateNode,e.type,t))}}function cM(e){Bc?zc?zc.push(e):zc=[e]:Bc=e}function uM(){if(Bc){var e=Bc,t=zc;if(zc=Bc=null,Ck(e),t)for(e=0;e<t.length;e++)Ck(t[e])}}function dM(e,t){return e(t)}function fM(){}var o0=!1;function pM(e,t,n){if(o0)return e(t,n);o0=!0;try{return dM(e,t,n)}finally{o0=!1,(Bc!==null||zc!==null)&&(fM(),uM())}}function rf(e,t){var n=e.stateNode;if(n===null)return null;var r=ug(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Me(231,t,typeof n));return n}var x1=!1;if(xs)try{var nd={};Object.defineProperty(nd,"passive",{get:function(){x1=!0}}),window.addEventListener("test",nd,nd),window.removeEventListener("test",nd,nd)}catch(e){x1=!1}function ij(e,t,n,r,o,i,s,a,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Ld=!1,fm=null,pm=!1,S1=null,sj={onError:function(e){Ld=!0,fm=e}};function lj(e,t,n,r,o,i,s,a,c){Ld=!1,fm=null,ij.apply(sj,arguments)}function aj(e,t,n,r,o,i,s,a,c){if(lj.apply(this,arguments),Ld){if(Ld){var f=fm;Ld=!1,fm=null}else throw Error(Me(198));pm||(pm=!0,S1=f)}}function La(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 hM(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 xk(e){if(La(e)!==e)throw Error(Me(188))}function cj(e){var t=e.alternate;if(!t){if(t=La(e),t===null)throw Error(Me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return xk(o),e;if(i===r)return xk(o),t;i=i.sibling}throw Error(Me(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?e:t}function mM(e){return e=cj(e),e!==null?gM(e):null}function gM(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gM(e);if(t!==null)return t;e=e.sibling}return null}var vM=vo.unstable_scheduleCallback,Sk=vo.unstable_cancelCallback,uj=vo.unstable_shouldYield,dj=vo.unstable_requestPaint,zn=vo.unstable_now,fj=vo.unstable_getCurrentPriorityLevel,cw=vo.unstable_ImmediatePriority,yM=vo.unstable_UserBlockingPriority,hm=vo.unstable_NormalPriority,pj=vo.unstable_LowPriority,bM=vo.unstable_IdlePriority,sg=null,Hi=null;function hj(e){if(Hi&&typeof Hi.onCommitFiberRoot=="function")try{Hi.onCommitFiberRoot(sg,e,void 0,(e.current.flags&128)===128)}catch(t){}}var hi=Math.clz32?Math.clz32:vj,mj=Math.log,gj=Math.LN2;function vj(e){return e>>>=0,e===0?32:31-(mj(e)/gj|0)|0}var dh=64,fh=4194304;function Sd(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 mm(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=Sd(a):(i&=s,i!==0&&(r=Sd(i)))}else s=n&~o,s!==0?r=Sd(s):i!==0&&(r=Sd(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-hi(t),o=1<<n,r|=e[n],t&=~o;return r}function yj(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 bj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-hi(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=yj(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function E1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wM(){var e=dh;return dh<<=1,!(dh&4194240)&&(dh=64),e}function i0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hi(t),e[t]=n}function wj(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-hi(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-hi(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var nn=0;function CM(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xM,dw,SM,EM,PM,P1=!1,ph=[],cl=null,ul=null,dl=null,of=new Map,sf=new Map,el=[],Cj="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 Ek(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":dl=null;break;case"pointerover":case"pointerout":of.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sf.delete(t.pointerId)}}function rd(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=Wf(t),t!==null&&dw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function xj(e,t,n,r,o){switch(t){case"focusin":return cl=rd(cl,e,t,n,r,o),!0;case"dragenter":return ul=rd(ul,e,t,n,r,o),!0;case"mouseover":return dl=rd(dl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return of.set(i,rd(of.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,sf.set(i,rd(sf.get(i)||null,e,t,n,r,o)),!0}return!1}function kM(e){var t=na(e.target);if(t!==null){var n=La(t);if(n!==null){if(t=n.tag,t===13){if(t=hM(n),t!==null){e.blockedOn=t,PM(e.priority,function(){SM(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=k1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);w1=r,n.target.dispatchEvent(r),w1=null}else return t=Wf(n),t!==null&&dw(t),e.blockedOn=n,!1;t.shift()}return!0}function Pk(e,t,n){Vh(e)&&n.delete(t)}function Sj(){P1=!1,cl!==null&&Vh(cl)&&(cl=null),ul!==null&&Vh(ul)&&(ul=null),dl!==null&&Vh(dl)&&(dl=null),of.forEach(Pk),sf.forEach(Pk)}function od(e,t){e.blockedOn===t&&(e.blockedOn=null,P1||(P1=!0,vo.unstable_scheduleCallback(vo.unstable_NormalPriority,Sj)))}function lf(e){function t(o){return od(o,e)}if(0<ph.length){od(ph[0],e);for(var n=1;n<ph.length;n++){var r=ph[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cl!==null&&od(cl,e),ul!==null&&od(ul,e),dl!==null&&od(dl,e),of.forEach(t),sf.forEach(t),n=0;n<el.length;n++)r=el[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<el.length&&(n=el[0],n.blockedOn===null);)kM(n),n.blockedOn===null&&el.shift()}var jc=Ts.ReactCurrentBatchConfig,gm=!0;function Ej(e,t,n,r){var o=nn,i=jc.transition;jc.transition=null;try{nn=1,fw(e,t,n,r)}finally{nn=o,jc.transition=i}}function Pj(e,t,n,r){var o=nn,i=jc.transition;jc.transition=null;try{nn=4,fw(e,t,n,r)}finally{nn=o,jc.transition=i}}function fw(e,t,n,r){if(gm){var o=k1(e,t,n,r);if(o===null)m0(e,t,r,vm,n),Ek(e,r);else if(xj(o,e,t,n,r))r.stopPropagation();else if(Ek(e,r),t&4&&-1<Cj.indexOf(e)){for(;o!==null;){var i=Wf(o);if(i!==null&&xM(i),i=k1(e,t,n,r),i===null&&m0(e,t,r,vm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else m0(e,t,r,null,n)}}var vm=null;function k1(e,t,n,r){if(vm=null,e=aw(r),e=na(e),e!==null)if(t=La(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hM(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 vm=e,null}function IM(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(fj()){case cw:return 1;case yM:return 4;case hm:case pj:return 16;case bM:return 536870912;default:return 16}default:return 16}}var rl=null,pw=null,Uh=null;function _M(){if(Uh)return Uh;var e,t=pw,n=t.length,r,o="value"in rl?rl.value:rl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Uh=o.slice(e,1<r?1-r:void 0)}function Wh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hh(){return!0}function kk(){return!1}function Co(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?hh:kk,this.isPropagationStopped=kk,this}return Rn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hh)},persist:function(){},isPersistent:hh}),t}var wu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hw=Co(wu),Uf=Rn({},wu,{view:0,detail:0}),kj=Co(Uf),s0,l0,id,lg=Rn({},Uf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mw,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!==id&&(id&&e.type==="mousemove"?(s0=e.screenX-id.screenX,l0=e.screenY-id.screenY):l0=s0=0,id=e),s0)},movementY:function(e){return"movementY"in e?e.movementY:l0}}),Ik=Co(lg),Ij=Rn({},lg,{dataTransfer:0}),_j=Co(Ij),$j=Rn({},Uf,{relatedTarget:0}),a0=Co($j),Mj=Rn({},wu,{animationName:0,elapsedTime:0,pseudoElement:0}),Tj=Co(Mj),Rj=Rn({},wu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Oj=Co(Rj),Lj=Rn({},wu,{data:0}),_k=Co(Lj),Aj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fj={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"},Nj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nj[e])?!!t[e]:!1}function mw(){return Dj}var Bj=Rn({},Uf,{key:function(e){if(e.key){var t=Aj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mw,charCode:function(e){return e.type==="keypress"?Wh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zj=Co(Bj),jj=Rn({},lg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$k=Co(jj),Hj=Rn({},Uf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mw}),Vj=Co(Hj),Uj=Rn({},wu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wj=Co(Uj),Gj=Rn({},lg,{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}),Kj=Co(Gj),qj=[9,13,27,32],gw=xs&&"CompositionEvent"in window,Ad=null;xs&&"documentMode"in document&&(Ad=document.documentMode);var Yj=xs&&"TextEvent"in window&&!Ad,$M=xs&&(!gw||Ad&&8<Ad&&11>=Ad),Mk=String.fromCharCode(32),Tk=!1;function MM(e,t){switch(e){case"keyup":return qj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kc=!1;function Xj(e,t){switch(e){case"compositionend":return TM(t);case"keypress":return t.which!==32?null:(Tk=!0,Mk);case"textInput":return e=t.data,e===Mk&&Tk?null:e;default:return null}}function Qj(e,t){if(kc)return e==="compositionend"||!gw&&MM(e,t)?(e=_M(),Uh=pw=rl=null,kc=!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 $M&&t.locale!=="ko"?null:t.data;default:return null}}var Jj={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 Rk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jj[e.type]:t==="textarea"}function RM(e,t,n,r){cM(r),t=ym(t,"onChange"),0<t.length&&(n=new hw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fd=null,af=null;function Zj(e){VM(e,0)}function ag(e){var t=$c(e);if(nM(t))return e}function e9(e,t){if(e==="change")return t}var OM=!1;if(xs){var c0;if(xs){var u0="oninput"in document;if(!u0){var Ok=document.createElement("div");Ok.setAttribute("oninput","return;"),u0=typeof Ok.oninput=="function"}c0=u0}else c0=!1;OM=c0&&(!document.documentMode||9<document.documentMode)}function Lk(){Fd&&(Fd.detachEvent("onpropertychange",LM),af=Fd=null)}function LM(e){if(e.propertyName==="value"&&ag(af)){var t=[];RM(t,af,e,aw(e)),pM(Zj,t)}}function t9(e,t,n){e==="focusin"?(Lk(),Fd=t,af=n,Fd.attachEvent("onpropertychange",LM)):e==="focusout"&&Lk()}function n9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ag(af)}function r9(e,t){if(e==="click")return ag(t)}function o9(e,t){if(e==="input"||e==="change")return ag(t)}function i9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bi=typeof Object.is=="function"?Object.is:i9;function cf(e,t){if(bi(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(!a1.call(t,o)||!bi(e[o],t[o]))return!1}return!0}function Ak(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fk(e,t){var n=Ak(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=Ak(n)}}function AM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?AM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FM(){for(var e=window,t=dm();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=dm(e.document)}return t}function vw(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 s9(e){var t=FM(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&AM(n.ownerDocument.documentElement,n)){if(r!==null&&vw(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=Fk(n,i);var s=Fk(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 l9=xs&&"documentMode"in document&&11>=document.documentMode,Ic=null,I1=null,Nd=null,_1=!1;function Nk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_1||Ic==null||Ic!==dm(r)||(r=Ic,"selectionStart"in r&&vw(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}),Nd&&cf(Nd,r)||(Nd=r,r=ym(I1,"onSelect"),0<r.length&&(t=new hw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ic)))}function mh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _c={animationend:mh("Animation","AnimationEnd"),animationiteration:mh("Animation","AnimationIteration"),animationstart:mh("Animation","AnimationStart"),transitionend:mh("Transition","TransitionEnd")},d0={},NM={};xs&&(NM=document.createElement("div").style,"AnimationEvent"in window||(delete _c.animationend.animation,delete _c.animationiteration.animation,delete _c.animationstart.animation),"TransitionEvent"in window||delete _c.transitionend.transition);function cg(e){if(d0[e])return d0[e];if(!_c[e])return e;var t=_c[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in NM)return d0[e]=t[n];return e}var DM=cg("animationend"),BM=cg("animationiteration"),zM=cg("animationstart"),jM=cg("transitionend"),HM=new Map,Dk="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 Tl(e,t){HM.set(e,t),Oa(t,[e])}for(var f0=0;f0<Dk.length;f0++){var p0=Dk[f0],a9=p0.toLowerCase(),c9=p0[0].toUpperCase()+p0.slice(1);Tl(a9,"on"+c9)}Tl(DM,"onAnimationEnd");Tl(BM,"onAnimationIteration");Tl(zM,"onAnimationStart");Tl("dblclick","onDoubleClick");Tl("focusin","onFocus");Tl("focusout","onBlur");Tl(jM,"onTransitionEnd");Jc("onMouseEnter",["mouseout","mouseover"]);Jc("onMouseLeave",["mouseout","mouseover"]);Jc("onPointerEnter",["pointerout","pointerover"]);Jc("onPointerLeave",["pointerout","pointerover"]);Oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Oa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ed="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(" "),u9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ed));function Bk(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aj(r,t,void 0,e),e.currentTarget=null}function VM(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,f=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;Bk(o,a,f),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,f=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;Bk(o,a,f),i=c}}}if(pm)throw e=S1,pm=!1,S1=null,e}function vn(e,t){var n=t[O1];n===void 0&&(n=t[O1]=new Set);var r=e+"__bubble";n.has(r)||(UM(t,e,2,!1),n.add(r))}function h0(e,t,n){var r=0;t&&(r|=4),UM(n,e,r,t)}var gh="_reactListening"+Math.random().toString(36).slice(2);function uf(e){if(!e[gh]){e[gh]=!0,Q$.forEach(function(n){n!=="selectionchange"&&(u9.has(n)||h0(n,!1,e),h0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gh]||(t[gh]=!0,h0("selectionchange",!1,t))}}function UM(e,t,n,r){switch(IM(t)){case 1:var o=Ej;break;case 4:o=Pj;break;default:o=fw}n=o.bind(null,t,n,e),o=void 0,!x1||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 m0(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=na(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}pM(function(){var f=i,p=aw(n),h=[];e:{var m=HM.get(e);if(m!==void 0){var v=hw,b=e;switch(e){case"keypress":if(Wh(n)===0)break e;case"keydown":case"keyup":v=zj;break;case"focusin":b="focus",v=a0;break;case"focusout":b="blur",v=a0;break;case"beforeblur":case"afterblur":v=a0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Ik;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=_j;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Vj;break;case DM:case BM:case zM:v=Tj;break;case jM:v=Wj;break;case"scroll":v=kj;break;case"wheel":v=Kj;break;case"copy":case"cut":case"paste":v=Oj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=$k}var g=(t&4)!==0,x=!g&&e==="scroll",C=g?m!==null?m+"Capture":null:m;g=[];for(var P=f,w;P!==null;){w=P;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,C!==null&&(E=rf(P,C),E!=null&&g.push(df(P,E,w)))),x)break;P=P.return}0<g.length&&(m=new v(m,b,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==w1&&(b=n.relatedTarget||n.fromElement)&&(na(b)||b[Ss]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?na(b):null,b!==null&&(x=La(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(g=Ik,E="onMouseLeave",C="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(g=$k,E="onPointerLeave",C="onPointerEnter",P="pointer"),x=v==null?m:$c(v),w=b==null?m:$c(b),m=new g(E,P+"leave",v,n,p),m.target=x,m.relatedTarget=w,E=null,na(p)===f&&(g=new g(C,P+"enter",b,n,p),g.target=w,g.relatedTarget=x,E=g),x=E,v&&b)t:{for(g=v,C=b,P=0,w=g;w;w=lc(w))P++;for(w=0,E=C;E;E=lc(E))w++;for(;0<P-w;)g=lc(g),P--;for(;0<w-P;)C=lc(C),w--;for(;P--;){if(g===C||C!==null&&g===C.alternate)break t;g=lc(g),C=lc(C)}g=null}else g=null;v!==null&&zk(h,m,v,g,!1),b!==null&&x!==null&&zk(h,x,b,g,!0)}}e:{if(m=f?$c(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var k=e9;else if(Rk(m))if(OM)k=o9;else{k=n9;var _=t9}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=r9);if(k&&(k=k(e,f))){RM(h,k,n,p);break e}_&&_(e,m,f),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&m1(m,"number",m.value)}switch(_=f?$c(f):window,e){case"focusin":(Rk(_)||_.contentEditable==="true")&&(Ic=_,I1=f,Nd=null);break;case"focusout":Nd=I1=Ic=null;break;case"mousedown":_1=!0;break;case"contextmenu":case"mouseup":case"dragend":_1=!1,Nk(h,n,p);break;case"selectionchange":if(l9)break;case"keydown":case"keyup":Nk(h,n,p)}var I;if(gw)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 kc?MM(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&($M&&n.locale!=="ko"&&(kc||M!=="onCompositionStart"?M==="onCompositionEnd"&&kc&&(I=_M()):(rl=p,pw="value"in rl?rl.value:rl.textContent,kc=!0)),_=ym(f,M),0<_.length&&(M=new _k(M,e,null,n,p),h.push({event:M,listeners:_}),I?M.data=I:(I=TM(n),I!==null&&(M.data=I)))),(I=Yj?Xj(e,n):Qj(e,n))&&(f=ym(f,"onBeforeInput"),0<f.length&&(p=new _k("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=I))}VM(h,t)})}function df(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ym(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=rf(e,n),i!=null&&r.unshift(df(e,i,o)),i=rf(e,t),i!=null&&r.push(df(e,i,o))),e=e.return}return r}function lc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zk(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,f=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&f!==null&&(a=f,o?(c=rf(n,i),c!=null&&s.unshift(df(n,c,a))):o||(c=rf(n,i),c!=null&&s.push(df(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var d9=/\r\n?/g,f9=/\u0000|\uFFFD/g;function jk(e){return(typeof e=="string"?e:""+e).replace(d9,`
|
|
30
|
-
`).replace(f9,"")}function vh(e,t,n){if(t=jk(t),jk(e)!==t&&n)throw Error(Me(425))}function bm(){}var $1=null,M1=null;function T1(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 R1=typeof setTimeout=="function"?setTimeout:void 0,p9=typeof clearTimeout=="function"?clearTimeout:void 0,Hk=typeof Promise=="function"?Promise:void 0,h9=typeof queueMicrotask=="function"?queueMicrotask:typeof Hk!="undefined"?function(e){return Hk.resolve(null).then(e).catch(m9)}:R1;function m9(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),lf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);lf(t)}function fl(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 Vk(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 Cu=Math.random().toString(36).slice(2),zi="__reactFiber$"+Cu,ff="__reactProps$"+Cu,Ss="__reactContainer$"+Cu,O1="__reactEvents$"+Cu,g9="__reactListeners$"+Cu,v9="__reactHandles$"+Cu;function na(e){var t=e[zi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ss]||n[zi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vk(e);e!==null;){if(n=e[zi])return n;e=Vk(e)}return t}e=n,n=e.parentNode}return null}function Wf(e){return e=e[zi]||e[Ss],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $c(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function ug(e){return e[ff]||null}var L1=[],Mc=-1;function Rl(e){return{current:e}}function yn(e){0>Mc||(e.current=L1[Mc],L1[Mc]=null,Mc--)}function fn(e,t){Mc++,L1[Mc]=e.current,e.current=t}var Sl={},Er=Rl(Sl),Gr=Rl(!1),ya=Sl;function Zc(e,t){var n=e.type.contextTypes;if(!n)return Sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Kr(e){return e=e.childContextTypes,e!=null}function wm(){yn(Gr),yn(Er)}function Uk(e,t,n){if(Er.current!==Sl)throw Error(Me(168));fn(Er,t),fn(Gr,n)}function WM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,tj(e)||"Unknown",o));return Rn({},n,r)}function Cm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sl,ya=Er.current,fn(Er,e),fn(Gr,Gr.current),!0}function Wk(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=WM(e,t,ya),r.__reactInternalMemoizedMergedChildContext=e,yn(Gr),yn(Er),fn(Er,e)):yn(Gr),fn(Gr,n)}var hs=null,dg=!1,v0=!1;function GM(e){hs===null?hs=[e]:hs.push(e)}function y9(e){dg=!0,GM(e)}function Ol(){if(!v0&&hs!==null){v0=!0;var e=0,t=nn;try{var n=hs;for(nn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}hs=null,dg=!1}catch(o){throw hs!==null&&(hs=hs.slice(e+1)),vM(cw,Ol),o}finally{nn=t,v0=!1}}return null}var Tc=[],Rc=0,xm=null,Sm=0,No=[],Do=0,ba=null,ms=1,gs="";function Yl(e,t){Tc[Rc++]=Sm,Tc[Rc++]=xm,xm=e,Sm=t}function KM(e,t,n){No[Do++]=ms,No[Do++]=gs,No[Do++]=ba,ba=e;var r=ms;e=gs;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,ms=1<<32-hi(t)+o|n<<o|r,gs=i+e}else ms=1<<i|n<<o|r,gs=e}function yw(e){e.return!==null&&(Yl(e,1),KM(e,1,0))}function bw(e){for(;e===xm;)xm=Tc[--Rc],Tc[Rc]=null,Sm=Tc[--Rc],Tc[Rc]=null;for(;e===ba;)ba=No[--Do],No[Do]=null,gs=No[--Do],No[Do]=null,ms=No[--Do],No[Do]=null}var mo=null,po=null,Sn=!1,di=null;function qM(e,t){var n=zo(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 Gk(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,mo=e,po=fl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mo=e,po=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ba!==null?{id:ms,overflow:gs}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mo=e,po=null,!0):!1;default:return!1}}function A1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function F1(e){if(Sn){var t=po;if(t){var n=t;if(!Gk(e,t)){if(A1(e))throw Error(Me(418));t=fl(n.nextSibling);var r=mo;t&&Gk(e,t)?qM(r,n):(e.flags=e.flags&-4097|2,Sn=!1,mo=e)}}else{if(A1(e))throw Error(Me(418));e.flags=e.flags&-4097|2,Sn=!1,mo=e}}}function Kk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mo=e}function yh(e){if(e!==mo)return!1;if(!Sn)return Kk(e),Sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!T1(e.type,e.memoizedProps)),t&&(t=po)){if(A1(e))throw YM(),Error(Me(418));for(;t;)qM(e,t),t=fl(t.nextSibling)}if(Kk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){po=fl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}po=null}}else po=mo?fl(e.stateNode.nextSibling):null;return!0}function YM(){for(var e=po;e;)e=fl(e.nextSibling)}function eu(){po=mo=null,Sn=!1}function ww(e){di===null?di=[e]:di.push(e)}var b9=Ts.ReactCurrentBatchConfig;function ai(e,t){if(e&&e.defaultProps){t=Rn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Em=Rl(null),Pm=null,Oc=null,Cw=null;function xw(){Cw=Oc=Pm=null}function Sw(e){var t=Em.current;yn(Em),e._currentValue=t}function N1(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 Hc(e,t){Pm=e,Cw=Oc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wr=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(Cw!==e)if(e={context:e,memoizedValue:t,next:null},Oc===null){if(Pm===null)throw Error(Me(308));Oc=e,Pm.dependencies={lanes:0,firstContext:e}}else Oc=Oc.next=e;return t}var ra=null;function Ew(e){ra===null?ra=[e]:ra.push(e)}function XM(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ew(t)):(n.next=o.next,o.next=n),t.interleaved=n,Es(e,r)}function Es(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 Qs=!1;function Pw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function QM(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 bs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Es(e,n)}return o=r.interleaved,o===null?(t.next=t,Ew(r)):(t.next=o.next,o.next=t),r.interleaved=t,Es(e,n)}function Gh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uw(e,n)}}function qk(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 km(e,t,n,r){var o=e.updateQueue;Qs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=f:a.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,a=i;do{var m=a.lane,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(m=t,v=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=Rn({},h,m);break e;case 2:Qs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ca|=s,e.lanes=s,e.memoizedState=h}}function Yk(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Me(191,o));o.call(r)}}}var JM=new X$.Component().refs;function D1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Rn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fg={isMounted:function(e){return(e=e._reactInternals)?La(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rr(),o=ml(e),i=bs(r,o);i.payload=t,n!=null&&(i.callback=n),t=pl(e,i,o),t!==null&&(mi(t,e,o,r),Gh(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rr(),o=ml(e),i=bs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=pl(e,i,o),t!==null&&(mi(t,e,o,r),Gh(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rr(),r=ml(e),o=bs(n,r);o.tag=2,t!=null&&(o.callback=t),t=pl(e,o,r),t!==null&&(mi(t,e,r,n),Gh(t,e,r))}};function Xk(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?!cf(n,r)||!cf(o,i):!0}function ZM(e,t,n){var r=!1,o=Sl,i=t.contextType;return typeof i=="object"&&i!==null?i=Wo(i):(o=Kr(t)?ya:Er.current,r=t.contextTypes,i=(r=r!=null)?Zc(e,o):Sl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Qk(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&&fg.enqueueReplaceState(t,t.state,null)}function B1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=JM,Pw(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Wo(i):(i=Kr(t)?ya:Er.current,o.context=Zc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(D1(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&&fg.enqueueReplaceState(o,o.state,null),km(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function sd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Me(309));var r=n.stateNode}if(!r)throw Error(Me(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===JM&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,e))}return e}function bh(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jk(e){var t=e._init;return t(e._payload)}function eT(e){function t(C,P){if(e){var w=C.deletions;w===null?(C.deletions=[P],C.flags|=16):w.push(P)}}function n(C,P){if(!e)return null;for(;P!==null;)t(C,P),P=P.sibling;return null}function r(C,P){for(C=new Map;P!==null;)P.key!==null?C.set(P.key,P):C.set(P.index,P),P=P.sibling;return C}function o(C,P){return C=gl(C,P),C.index=0,C.sibling=null,C}function i(C,P,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<P?(C.flags|=2,P):w):(C.flags|=2,P)):(C.flags|=1048576,P)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,P,w,E){return P===null||P.tag!==6?(P=E0(w,C.mode,E),P.return=C,P):(P=o(P,w),P.return=C,P)}function c(C,P,w,E){var k=w.type;return k===Pc?p(C,P,w.props.children,E,w.key):P!==null&&(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Xs&&Jk(k)===P.type)?(E=o(P,w.props),E.ref=sd(C,P,w),E.return=C,E):(E=Jh(w.type,w.key,w.props,null,C.mode,E),E.ref=sd(C,P,w),E.return=C,E)}function f(C,P,w,E){return P===null||P.tag!==4||P.stateNode.containerInfo!==w.containerInfo||P.stateNode.implementation!==w.implementation?(P=P0(w,C.mode,E),P.return=C,P):(P=o(P,w.children||[]),P.return=C,P)}function p(C,P,w,E,k){return P===null||P.tag!==7?(P=da(w,C.mode,E,k),P.return=C,P):(P=o(P,w),P.return=C,P)}function h(C,P,w){if(typeof P=="string"&&P!==""||typeof P=="number")return P=E0(""+P,C.mode,w),P.return=C,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ah:return w=Jh(P.type,P.key,P.props,null,C.mode,w),w.ref=sd(C,null,P),w.return=C,w;case Ec:return P=P0(P,C.mode,w),P.return=C,P;case Xs:var E=P._init;return h(C,E(P._payload),w)}if(xd(P)||td(P))return P=da(P,C.mode,w,null),P.return=C,P;bh(C,P)}return null}function m(C,P,w,E){var k=P!==null?P.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(C,P,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:return w.key===k?c(C,P,w,E):null;case Ec:return w.key===k?f(C,P,w,E):null;case Xs:return k=w._init,m(C,P,k(w._payload),E)}if(xd(w)||td(w))return k!==null?null:p(C,P,w,E,null);bh(C,w)}return null}function v(C,P,w,E,k){if(typeof E=="string"&&E!==""||typeof E=="number")return C=C.get(w)||null,a(P,C,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ah:return C=C.get(E.key===null?w:E.key)||null,c(P,C,E,k);case Ec:return C=C.get(E.key===null?w:E.key)||null,f(P,C,E,k);case Xs:var _=E._init;return v(C,P,w,_(E._payload),k)}if(xd(E)||td(E))return C=C.get(w)||null,p(P,C,E,k,null);bh(P,E)}return null}function b(C,P,w,E){for(var k=null,_=null,I=P,M=P=0,R=null;I!==null&&M<w.length;M++){I.index>M?(R=I,I=null):R=I.sibling;var O=m(C,I,w[M],E);if(O===null){I===null&&(I=R);break}e&&I&&O.alternate===null&&t(C,I),P=i(O,P,M),_===null?k=O:_.sibling=O,_=O,I=R}if(M===w.length)return n(C,I),Sn&&Yl(C,M),k;if(I===null){for(;M<w.length;M++)I=h(C,w[M],E),I!==null&&(P=i(I,P,M),_===null?k=I:_.sibling=I,_=I);return Sn&&Yl(C,M),k}for(I=r(C,I);M<w.length;M++)R=v(I,C,M,w[M],E),R!==null&&(e&&R.alternate!==null&&I.delete(R.key===null?M:R.key),P=i(R,P,M),_===null?k=R:_.sibling=R,_=R);return e&&I.forEach(function(A){return t(C,A)}),Sn&&Yl(C,M),k}function g(C,P,w,E){var k=td(w);if(typeof k!="function")throw Error(Me(150));if(w=k.call(w),w==null)throw Error(Me(151));for(var _=k=null,I=P,M=P=0,R=null,O=w.next();I!==null&&!O.done;M++,O=w.next()){I.index>M?(R=I,I=null):R=I.sibling;var A=m(C,I,O.value,E);if(A===null){I===null&&(I=R);break}e&&I&&A.alternate===null&&t(C,I),P=i(A,P,M),_===null?k=A:_.sibling=A,_=A,I=R}if(O.done)return n(C,I),Sn&&Yl(C,M),k;if(I===null){for(;!O.done;M++,O=w.next())O=h(C,O.value,E),O!==null&&(P=i(O,P,M),_===null?k=O:_.sibling=O,_=O);return Sn&&Yl(C,M),k}for(I=r(C,I);!O.done;M++,O=w.next())O=v(I,C,M,O.value,E),O!==null&&(e&&O.alternate!==null&&I.delete(O.key===null?M:O.key),P=i(O,P,M),_===null?k=O:_.sibling=O,_=O);return e&&I.forEach(function(V){return t(C,V)}),Sn&&Yl(C,M),k}function x(C,P,w,E){if(typeof w=="object"&&w!==null&&w.type===Pc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ah:e:{for(var k=w.key,_=P;_!==null;){if(_.key===k){if(k=w.type,k===Pc){if(_.tag===7){n(C,_.sibling),P=o(_,w.props.children),P.return=C,C=P;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Xs&&Jk(k)===_.type){n(C,_.sibling),P=o(_,w.props),P.ref=sd(C,_,w),P.return=C,C=P;break e}n(C,_);break}else t(C,_);_=_.sibling}w.type===Pc?(P=da(w.props.children,C.mode,E,w.key),P.return=C,C=P):(E=Jh(w.type,w.key,w.props,null,C.mode,E),E.ref=sd(C,P,w),E.return=C,C=E)}return s(C);case Ec:e:{for(_=w.key;P!==null;){if(P.key===_)if(P.tag===4&&P.stateNode.containerInfo===w.containerInfo&&P.stateNode.implementation===w.implementation){n(C,P.sibling),P=o(P,w.children||[]),P.return=C,C=P;break e}else{n(C,P);break}else t(C,P);P=P.sibling}P=P0(w,C.mode,E),P.return=C,C=P}return s(C);case Xs:return _=w._init,x(C,P,_(w._payload),E)}if(xd(w))return b(C,P,w,E);if(td(w))return g(C,P,w,E);bh(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,P!==null&&P.tag===6?(n(C,P.sibling),P=o(P,w),P.return=C,C=P):(n(C,P),P=E0(w,C.mode,E),P.return=C,C=P),s(C)):n(C,P)}return x}var tu=eT(!0),tT=eT(!1),Gf={},Vi=Rl(Gf),pf=Rl(Gf),hf=Rl(Gf);function oa(e){if(e===Gf)throw Error(Me(174));return e}function kw(e,t){switch(fn(hf,t),fn(pf,e),fn(Vi,Gf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:v1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=v1(t,e)}yn(Vi),fn(Vi,t)}function nu(){yn(Vi),yn(pf),yn(hf)}function nT(e){oa(hf.current);var t=oa(Vi.current),n=v1(t,e.type);t!==n&&(fn(pf,e),fn(Vi,n))}function Iw(e){pf.current===e&&(yn(Vi),yn(pf))}var $n=Rl(0);function Im(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 y0=[];function _w(){for(var e=0;e<y0.length;e++)y0[e]._workInProgressVersionPrimary=null;y0.length=0}var Kh=Ts.ReactCurrentDispatcher,b0=Ts.ReactCurrentBatchConfig,wa=0,Tn=null,Xn=null,er=null,_m=!1,Dd=!1,mf=0,w9=0;function gr(){throw Error(Me(321))}function $w(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bi(e[n],t[n]))return!1;return!0}function Mw(e,t,n,r,o,i){if(wa=i,Tn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kh.current=e===null||e.memoizedState===null?E9:P9,e=n(r,o),Dd){i=0;do{if(Dd=!1,mf=0,25<=i)throw Error(Me(301));i+=1,er=Xn=null,t.updateQueue=null,Kh.current=k9,e=n(r,o)}while(Dd)}if(Kh.current=$m,t=Xn!==null&&Xn.next!==null,wa=0,er=Xn=Tn=null,_m=!1,t)throw Error(Me(300));return e}function Tw(){var e=mf!==0;return mf=0,e}function Ti(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?Tn.memoizedState=er=e:er=er.next=e,er}function Go(){if(Xn===null){var e=Tn.alternate;e=e!==null?e.memoizedState:null}else e=Xn.next;var t=er===null?Tn.memoizedState:er.next;if(t!==null)er=t,Xn=e;else{if(e===null)throw Error(Me(310));Xn=e,e={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},er===null?Tn.memoizedState=er=e:er=er.next=e}return er}function gf(e,t){return typeof t=="function"?t(e):t}function w0(e){var t=Go(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=Xn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,f=i;do{var p=f.lane;if((wa&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Tn.lanes|=p,Ca|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=a,bi(r,t.memoizedState)||(Wr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Tn.lanes|=i,Ca|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function C0(e){var t=Go(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);bi(i,t.memoizedState)||(Wr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function rT(){}function oT(e,t){var n=Tn,r=Go(),o=t(),i=!bi(r.memoizedState,o);if(i&&(r.memoizedState=o,Wr=!0),r=r.queue,Rw(lT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||er!==null&&er.memoizedState.tag&1){if(n.flags|=2048,vf(9,sT.bind(null,n,r,o,t),void 0,null),nr===null)throw Error(Me(349));wa&30||iT(n,t,o)}return o}function iT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Tn.updateQueue,t===null?(t={lastEffect:null,stores:null},Tn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sT(e,t,n,r){t.value=n,t.getSnapshot=r,aT(t)&&cT(e)}function lT(e,t,n){return n(function(){aT(t)&&cT(e)})}function aT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bi(e,n)}catch(r){return!0}}function cT(e){var t=Es(e,1);t!==null&&mi(t,e,1,-1)}function Zk(e){var t=Ti();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:e},t.queue=e,e=e.dispatch=S9.bind(null,Tn,e),[t.memoizedState,e]}function vf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Tn.updateQueue,t===null?(t={lastEffect:null,stores:null},Tn.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 uT(){return Go().memoizedState}function qh(e,t,n,r){var o=Ti();Tn.flags|=e,o.memoizedState=vf(1|t,n,void 0,r===void 0?null:r)}function pg(e,t,n,r){var o=Go();r=r===void 0?null:r;var i=void 0;if(Xn!==null){var s=Xn.memoizedState;if(i=s.destroy,r!==null&&$w(r,s.deps)){o.memoizedState=vf(t,n,i,r);return}}Tn.flags|=e,o.memoizedState=vf(1|t,n,i,r)}function e2(e,t){return qh(8390656,8,e,t)}function Rw(e,t){return pg(2048,8,e,t)}function dT(e,t){return pg(4,2,e,t)}function fT(e,t){return pg(4,4,e,t)}function pT(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 hT(e,t,n){return n=n!=null?n.concat([e]):null,pg(4,4,pT.bind(null,t,e),n)}function Ow(){}function mT(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gT(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vT(e,t,n){return wa&21?(bi(n,t)||(n=wM(),Tn.lanes|=n,Ca|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wr=!0),e.memoizedState=n)}function C9(e,t){var n=nn;nn=n!==0&&4>n?n:4,e(!0);var r=b0.transition;b0.transition={};try{e(!1),t()}finally{nn=n,b0.transition=r}}function yT(){return Go().memoizedState}function x9(e,t,n){var r=ml(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bT(e))wT(t,n);else if(n=XM(e,t,n,r),n!==null){var o=Rr();mi(n,e,r,o),CT(n,t,r)}}function S9(e,t,n){var r=ml(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bT(e))wT(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,bi(a,s)){var c=t.interleaved;c===null?(o.next=o,Ew(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(f){}finally{}n=XM(e,t,o,r),n!==null&&(o=Rr(),mi(n,e,r,o),CT(n,t,r))}}function bT(e){var t=e.alternate;return e===Tn||t!==null&&t===Tn}function wT(e,t){Dd=_m=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uw(e,n)}}var $m={readContext:Wo,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},E9={readContext:Wo,useCallback:function(e,t){return Ti().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:e2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qh(4194308,4,pT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qh(4194308,4,e,t)},useInsertionEffect:function(e,t){return qh(4,2,e,t)},useMemo:function(e,t){var n=Ti();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ti();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=x9.bind(null,Tn,e),[r.memoizedState,e]},useRef:function(e){var t=Ti();return e={current:e},t.memoizedState=e},useState:Zk,useDebugValue:Ow,useDeferredValue:function(e){return Ti().memoizedState=e},useTransition:function(){var e=Zk(!1),t=e[0];return e=C9.bind(null,e[1]),Ti().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Tn,o=Ti();if(Sn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),nr===null)throw Error(Me(349));wa&30||iT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,e2(lT.bind(null,r,i,e),[e]),r.flags|=2048,vf(9,sT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ti(),t=nr.identifierPrefix;if(Sn){var n=gs,r=ms;n=(r&~(1<<32-hi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=w9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},P9={readContext:Wo,useCallback:mT,useContext:Wo,useEffect:Rw,useImperativeHandle:hT,useInsertionEffect:dT,useLayoutEffect:fT,useMemo:gT,useReducer:w0,useRef:uT,useState:function(){return w0(gf)},useDebugValue:Ow,useDeferredValue:function(e){var t=Go();return vT(t,Xn.memoizedState,e)},useTransition:function(){var e=w0(gf)[0],t=Go().memoizedState;return[e,t]},useMutableSource:rT,useSyncExternalStore:oT,useId:yT,unstable_isNewReconciler:!1},k9={readContext:Wo,useCallback:mT,useContext:Wo,useEffect:Rw,useImperativeHandle:hT,useInsertionEffect:dT,useLayoutEffect:fT,useMemo:gT,useReducer:C0,useRef:uT,useState:function(){return C0(gf)},useDebugValue:Ow,useDeferredValue:function(e){var t=Go();return Xn===null?t.memoizedState=e:vT(t,Xn.memoizedState,e)},useTransition:function(){var e=C0(gf)[0],t=Go().memoizedState;return[e,t]},useMutableSource:rT,useSyncExternalStore:oT,useId:yT,unstable_isNewReconciler:!1};function ru(e,t){try{var n="",r=t;do n+=ej(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 x0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function z1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I9=typeof WeakMap=="function"?WeakMap:Map;function xT(e,t,n){n=bs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tm||(Tm=!0,X1=r),z1(e,t)},n}function ST(e,t,n){n=bs(-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(){z1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){z1(e,t),typeof r!="function"&&(hl===null?hl=new Set([this]):hl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function t2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I9;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=j9.bind(null,e,t,n),t.then(e,e))}function n2(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 r2(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=bs(-1,1),t.tag=2,pl(n,t,1))),n.lanes|=1),e)}var _9=Ts.ReactCurrentOwner,Wr=!1;function $r(e,t,n,r){t.child=e===null?tT(t,null,n,r):tu(t,e.child,n,r)}function o2(e,t,n,r,o){n=n.render;var i=t.ref;return Hc(t,o),r=Mw(e,t,n,r,i,o),n=Tw(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ps(e,t,o)):(Sn&&n&&yw(t),t.flags|=1,$r(e,t,r,o),t.child)}function i2(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!jw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ET(e,t,i,r,o)):(e=Jh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:cf,n(s,r)&&e.ref===t.ref)return Ps(e,t,o)}return t.flags|=1,e=gl(i,r),e.ref=t.ref,e.return=t,t.child=e}function ET(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(cf(i,r)&&e.ref===t.ref)if(Wr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Wr=!0);else return t.lanes=e.lanes,Ps(e,t,o)}return j1(e,t,n,r,o)}function PT(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},fn(Ac,ao),ao|=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,fn(Ac,ao),ao|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,fn(Ac,ao),ao|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,fn(Ac,ao),ao|=r;return $r(e,t,o,n),t.child}function kT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function j1(e,t,n,r,o){var i=Kr(n)?ya:Er.current;return i=Zc(t,i),Hc(t,o),n=Mw(e,t,n,r,i,o),r=Tw(),e!==null&&!Wr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ps(e,t,o)):(Sn&&r&&yw(t),t.flags|=1,$r(e,t,n,o),t.child)}function s2(e,t,n,r,o){if(Kr(n)){var i=!0;Cm(t)}else i=!1;if(Hc(t,o),t.stateNode===null)Yh(e,t),ZM(t,n,r),B1(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Wo(f):(f=Kr(n)?ya:Er.current,f=Zc(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==f)&&Qk(t,s,r,f),Qs=!1;var m=t.memoizedState;s.state=m,km(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Gr.current||Qs?(typeof p=="function"&&(D1(t,n,p,r),c=t.memoizedState),(a=Qs||Xk(t,n,a,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,QM(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:ai(t.type,a),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Wo(c):(c=Kr(n)?ya:Er.current,c=Zc(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&Qk(t,s,r,c),Qs=!1,m=t.memoizedState,s.state=m,km(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||Gr.current||Qs?(typeof v=="function"&&(D1(t,n,v,r),b=t.memoizedState),(f=Qs||Xk(t,n,f,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=f):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return H1(e,t,n,r,i,o)}function H1(e,t,n,r,o,i){kT(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Wk(t,n,!1),Ps(e,t,i);r=t.stateNode,_9.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=tu(t,e.child,null,i),t.child=tu(t,null,a,i)):$r(e,t,a,i),t.memoizedState=r.state,o&&Wk(t,n,!0),t.child}function IT(e){var t=e.stateNode;t.pendingContext?Uk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uk(e,t.context,!1),kw(e,t.containerInfo)}function l2(e,t,n,r,o){return eu(),ww(o),t.flags|=256,$r(e,t,n,r),t.child}var V1={dehydrated:null,treeContext:null,retryLane:0};function U1(e){return{baseLanes:e,cachePool:null,transitions:null}}function _T(e,t,n){var r=t.pendingProps,o=$n.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),fn($n,o&1),e===null)return F1(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=gg(s,r,0,null),e=da(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=U1(n),t.memoizedState=V1,e):Lw(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return $9(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=gl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=gl(a,i):(i=da(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?U1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=V1,r}return i=e.child,e=i.sibling,r=gl(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 Lw(e,t){return t=gg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wh(e,t,n,r){return r!==null&&ww(r),tu(t,e.child,null,n),e=Lw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $9(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=x0(Error(Me(422))),wh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=gg({mode:"visible",children:r.children},o,0,null),i=da(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&tu(t,e.child,null,s),t.child.memoizedState=U1(s),t.memoizedState=V1,i);if(!(t.mode&1))return wh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Me(419)),r=x0(i,r,void 0),wh(e,t,s,r)}if(a=(s&e.childLanes)!==0,Wr||a){if(r=nr,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Es(e,o),mi(r,e,o,-1))}return zw(),r=x0(Error(Me(421))),wh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=H9.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,po=fl(o.nextSibling),mo=t,Sn=!0,di=null,e!==null&&(No[Do++]=ms,No[Do++]=gs,No[Do++]=ba,ms=e.id,gs=e.overflow,ba=t),t=Lw(t,r.children),t.flags|=4096,t)}function a2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),N1(e.return,t,n)}function S0(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 $T(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($r(e,t,r.children,n),r=$n.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&&a2(e,n,t);else if(e.tag===19)a2(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(fn($n,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&&Im(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),S0(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&&Im(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}S0(t,!0,n,null,i);break;case"together":S0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ca|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=gl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function M9(e,t,n){switch(t.tag){case 3:IT(t),eu();break;case 5:nT(t);break;case 1:Kr(t.type)&&Cm(t);break;case 4:kw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;fn(Em,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fn($n,$n.current&1),t.flags|=128,null):n&t.child.childLanes?_T(e,t,n):(fn($n,$n.current&1),e=Ps(e,t,n),e!==null?e.sibling:null);fn($n,$n.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $T(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),fn($n,$n.current),r)break;return null;case 22:case 23:return t.lanes=0,PT(e,t,n)}return Ps(e,t,n)}var MT,W1,TT,RT;MT=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}};W1=function(){};TT=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,oa(Vi.current);var i=null;switch(n){case"input":o=p1(e,o),r=p1(e,r),i=[];break;case"select":o=Rn({},o,{value:void 0}),r=Rn({},r,{value:void 0}),i=[];break;case"textarea":o=g1(e,o),r=g1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bm)}y1(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var a=o[f];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(tf.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(a=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==a&&(c!=null||a!=null))if(f==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(tf.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&vn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};RT=function(e,t,n,r){n!==r&&(t.flags|=4)};function ld(e,t){if(!Sn)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 vr(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 T9(e,t,n){var r=t.pendingProps;switch(bw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(t),null;case 1:return Kr(t.type)&&wm(),vr(t),null;case 3:return r=t.stateNode,nu(),yn(Gr),yn(Er),_w(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,di!==null&&(Z1(di),di=null))),W1(e,t),vr(t),null;case 5:Iw(t);var o=oa(hf.current);if(n=t.type,e!==null&&t.stateNode!=null)TT(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return vr(t),null}if(e=oa(Vi.current),yh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[zi]=t,r[ff]=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<Ed.length;o++)vn(Ed[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":vk(r,i),vn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},vn("invalid",r);break;case"textarea":bk(r,i),vn("invalid",r)}y1(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&vh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&vh(r.textContent,a,e),o=["children",""+a]):tf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&vn("scroll",r)}switch(n){case"input":ch(r),yk(r,i,!0);break;case"textarea":ch(r),wk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=bm)}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=iM(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[zi]=t,e[ff]=r,MT(e,t,!1,!1),t.stateNode=e;e:{switch(s=b1(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<Ed.length;o++)vn(Ed[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":vk(e,r),o=p1(e,r),vn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Rn({},r,{value:void 0}),vn("invalid",e);break;case"textarea":bk(e,r),o=g1(e,r),vn("invalid",e);break;default:o=r}y1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?aM(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&sM(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&nf(e,c):typeof c=="number"&&nf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(tf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&vn("scroll",e):c!=null&&ow(e,i,c,s))}switch(n){case"input":ch(e),yk(e,r,!1);break;case"textarea":ch(e),wk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+xl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Dc(e,!!r.multiple,i,!1):r.defaultValue!=null&&Dc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=bm)}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 vr(t),null;case 6:if(e&&t.stateNode!=null)RT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=oa(hf.current),oa(Vi.current),yh(t)){if(r=t.stateNode,n=t.memoizedProps,r[zi]=t,(i=r.nodeValue!==n)&&(e=mo,e!==null))switch(e.tag){case 3:vh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zi]=t,t.stateNode=r}return vr(t),null;case 13:if(yn($n),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sn&&po!==null&&t.mode&1&&!(t.flags&128))YM(),eu(),t.flags|=98560,i=!1;else if(i=yh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Me(317));i[zi]=t}else eu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vr(t),i=!1}else di!==null&&(Z1(di),di=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||$n.current&1?Qn===0&&(Qn=3):zw())),t.updateQueue!==null&&(t.flags|=4),vr(t),null);case 4:return nu(),W1(e,t),e===null&&uf(t.stateNode.containerInfo),vr(t),null;case 10:return Sw(t.type._context),vr(t),null;case 17:return Kr(t.type)&&wm(),vr(t),null;case 19:if(yn($n),i=t.memoizedState,i===null)return vr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ld(i,!1);else{if(Qn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Im(e),s!==null){for(t.flags|=128,ld(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 fn($n,$n.current&1|2),t.child}e=e.sibling}i.tail!==null&&zn()>ou&&(t.flags|=128,r=!0,ld(i,!1),t.lanes=4194304)}else{if(!r)if(e=Im(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ld(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Sn)return vr(t),null}else 2*zn()-i.renderingStartTime>ou&&n!==1073741824&&(t.flags|=128,r=!0,ld(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=zn(),t.sibling=null,n=$n.current,fn($n,r?n&1|2:n&1),t):(vr(t),null);case 22:case 23:return Bw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ao&1073741824&&(vr(t),t.subtreeFlags&6&&(t.flags|=8192)):vr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function R9(e,t){switch(bw(t),t.tag){case 1:return Kr(t.type)&&wm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nu(),yn(Gr),yn(Er),_w(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Iw(t),null;case 13:if(yn($n),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yn($n),null;case 4:return nu(),null;case 10:return Sw(t.type._context),null;case 22:case 23:return Bw(),null;case 24:return null;default:return null}}var Ch=!1,wr=!1,O9=typeof WeakSet=="function"?WeakSet:Set,He=null;function Lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){An(e,t,r)}else n.current=null}function G1(e,t,n){try{n()}catch(r){An(e,t,r)}}var c2=!1;function L9(e,t){if($1=gm,e=FM(),vw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(E){n=null;break e}var s=0,a=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(M1={focusedElem:e,selectionRange:n},gm=!1,He=t;He!==null;)if(t=He,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,He=e;else for(;He!==null;){t=He;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,x=b.memoizedState,C=t.stateNode,P=C.getSnapshotBeforeUpdate(t.elementType===t.type?g:ai(t.type,g),x);C.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){An(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,He=e;break}He=t.return}return b=c2,c2=!1,b}function Bd(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&&G1(t,n,i)}o=o.next}while(o!==r)}}function hg(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 K1(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 OT(e){var t=e.alternate;t!==null&&(e.alternate=null,OT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zi],delete t[ff],delete t[O1],delete t[g9],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 LT(e){return e.tag===5||e.tag===3||e.tag===4}function u2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||LT(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 q1(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=bm));else if(r!==4&&(e=e.child,e!==null))for(q1(e,t,n),e=e.sibling;e!==null;)q1(e,t,n),e=e.sibling}function Y1(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(Y1(e,t,n),e=e.sibling;e!==null;)Y1(e,t,n),e=e.sibling}var ar=null,ui=!1;function Us(e,t,n){for(n=n.child;n!==null;)AT(e,t,n),n=n.sibling}function AT(e,t,n){if(Hi&&typeof Hi.onCommitFiberUnmount=="function")try{Hi.onCommitFiberUnmount(sg,n)}catch(a){}switch(n.tag){case 5:wr||Lc(n,t);case 6:var r=ar,o=ui;ar=null,Us(e,t,n),ar=r,ui=o,ar!==null&&(ui?(e=ar,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ar.removeChild(n.stateNode));break;case 18:ar!==null&&(ui?(e=ar,n=n.stateNode,e.nodeType===8?g0(e.parentNode,n):e.nodeType===1&&g0(e,n),lf(e)):g0(ar,n.stateNode));break;case 4:r=ar,o=ui,ar=n.stateNode.containerInfo,ui=!0,Us(e,t,n),ar=r,ui=o;break;case 0:case 11:case 14:case 15:if(!wr&&(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)&&G1(n,t,s),o=o.next}while(o!==r)}Us(e,t,n);break;case 1:if(!wr&&(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){An(n,t,a)}Us(e,t,n);break;case 21:Us(e,t,n);break;case 22:n.mode&1?(wr=(r=wr)||n.memoizedState!==null,Us(e,t,n),wr=r):Us(e,t,n);break;default:Us(e,t,n)}}function d2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O9),t.forEach(function(r){var o=V9.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function si(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:ar=a.stateNode,ui=!1;break e;case 3:ar=a.stateNode.containerInfo,ui=!0;break e;case 4:ar=a.stateNode.containerInfo,ui=!0;break e}a=a.return}if(ar===null)throw Error(Me(160));AT(i,s,o),ar=null,ui=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){An(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)FT(t,e),t=t.sibling}function FT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(si(t,e),$i(e),r&4){try{Bd(3,e,e.return),hg(3,e)}catch(g){An(e,e.return,g)}try{Bd(5,e,e.return)}catch(g){An(e,e.return,g)}}break;case 1:si(t,e),$i(e),r&512&&n!==null&&Lc(n,n.return);break;case 5:if(si(t,e),$i(e),r&512&&n!==null&&Lc(n,n.return),e.flags&32){var o=e.stateNode;try{nf(o,"")}catch(g){An(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&rM(o,i),b1(a,s);var f=b1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?aM(o,h):p==="dangerouslySetInnerHTML"?sM(o,h):p==="children"?nf(o,h):ow(o,p,h,f)}switch(a){case"input":h1(o,i);break;case"textarea":oM(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Dc(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Dc(o,!!i.multiple,i.defaultValue,!0):Dc(o,!!i.multiple,i.multiple?[]:"",!1))}o[ff]=i}catch(g){An(e,e.return,g)}}break;case 6:if(si(t,e),$i(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){An(e,e.return,g)}}break;case 3:if(si(t,e),$i(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lf(t.containerInfo)}catch(g){An(e,e.return,g)}break;case 4:si(t,e),$i(e);break;case 13:si(t,e),$i(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Nw=zn())),r&4&&d2(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(wr=(f=wr)||p,si(t,e),wr=f):si(t,e),$i(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(He=e,p=e.child;p!==null;){for(h=He=p;He!==null;){switch(m=He,v=m.child,m.tag){case 0:case 11:case 14:case 15:Bd(4,m,m.return);break;case 1:Lc(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(g){An(r,n,g)}}break;case 5:Lc(m,m.return);break;case 22:if(m.memoizedState!==null){p2(h);continue}}v!==null?(v.return=m,He=v):p2(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=lM("display",s))}catch(g){An(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(g){An(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:si(t,e),$i(e),r&4&&d2(e);break;case 21:break;default:si(t,e),$i(e)}}function $i(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(LT(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(nf(o,""),r.flags&=-33);var i=u2(e);Y1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=u2(e);q1(e,a,s);break;default:throw Error(Me(161))}}catch(c){An(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function A9(e,t,n){He=e,NT(e)}function NT(e,t,n){for(var r=(e.mode&1)!==0;He!==null;){var o=He,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ch;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||wr;a=Ch;var f=wr;if(Ch=s,(wr=c)&&!f)for(He=o;He!==null;)s=He,c=s.child,s.tag===22&&s.memoizedState!==null?h2(o):c!==null?(c.return=s,He=c):h2(o);for(;i!==null;)He=i,NT(i),i=i.sibling;He=o,Ch=a,wr=f}f2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,He=i):f2(e)}}function f2(e){for(;He!==null;){var t=He;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wr||hg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!wr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ai(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yk(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}Yk(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&lf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}wr||t.flags&512&&K1(t)}catch(m){An(t,t.return,m)}}if(t===e){He=null;break}if(n=t.sibling,n!==null){n.return=t.return,He=n;break}He=t.return}}function p2(e){for(;He!==null;){var t=He;if(t===e){He=null;break}var n=t.sibling;if(n!==null){n.return=t.return,He=n;break}He=t.return}}function h2(e){for(;He!==null;){var t=He;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hg(4,t)}catch(c){An(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){An(t,o,c)}}var i=t.return;try{K1(t)}catch(c){An(t,i,c)}break;case 5:var s=t.return;try{K1(t)}catch(c){An(t,s,c)}}}catch(c){An(t,t.return,c)}if(t===e){He=null;break}var a=t.sibling;if(a!==null){a.return=t.return,He=a;break}He=t.return}}var F9=Math.ceil,Mm=Ts.ReactCurrentDispatcher,Aw=Ts.ReactCurrentOwner,jo=Ts.ReactCurrentBatchConfig,Wt=0,nr=null,Wn=null,cr=0,ao=0,Ac=Rl(0),Qn=0,yf=null,Ca=0,mg=0,Fw=0,zd=null,Vr=null,Nw=0,ou=1/0,ds=null,Tm=!1,X1=null,hl=null,xh=!1,ol=null,Rm=0,jd=0,Q1=null,Xh=-1,Qh=0;function Rr(){return Wt&6?zn():Xh!==-1?Xh:Xh=zn()}function ml(e){return e.mode&1?Wt&2&&cr!==0?cr&-cr:b9.transition!==null?(Qh===0&&(Qh=wM()),Qh):(e=nn,e!==0||(e=window.event,e=e===void 0?16:IM(e.type)),e):1}function mi(e,t,n,r){if(50<jd)throw jd=0,Q1=null,Error(Me(185));Vf(e,n,r),(!(Wt&2)||e!==nr)&&(e===nr&&(!(Wt&2)&&(mg|=n),Qn===4&&tl(e,cr)),qr(e,r),n===1&&Wt===0&&!(t.mode&1)&&(ou=zn()+500,dg&&Ol()))}function qr(e,t){var n=e.callbackNode;bj(e,t);var r=mm(e,e===nr?cr:0);if(r===0)n!==null&&Sk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Sk(n),t===1)e.tag===0?y9(m2.bind(null,e)):GM(m2.bind(null,e)),h9(function(){!(Wt&6)&&Ol()}),n=null;else{switch(CM(r)){case 1:n=cw;break;case 4:n=yM;break;case 16:n=hm;break;case 536870912:n=bM;break;default:n=hm}n=WT(n,DT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function DT(e,t){if(Xh=-1,Qh=0,Wt&6)throw Error(Me(327));var n=e.callbackNode;if(Vc()&&e.callbackNode!==n)return null;var r=mm(e,e===nr?cr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Om(e,r);else{t=r;var o=Wt;Wt|=2;var i=zT();(nr!==e||cr!==t)&&(ds=null,ou=zn()+500,ua(e,t));do try{B9();break}catch(a){BT(e,a)}while(1);xw(),Mm.current=i,Wt=o,Wn!==null?t=0:(nr=null,cr=0,t=Qn)}if(t!==0){if(t===2&&(o=E1(e),o!==0&&(r=o,t=J1(e,o))),t===1)throw n=yf,ua(e,0),tl(e,r),qr(e,zn()),n;if(t===6)tl(e,r);else{if(o=e.current.alternate,!(r&30)&&!N9(o)&&(t=Om(e,r),t===2&&(i=E1(e),i!==0&&(r=i,t=J1(e,i))),t===1))throw n=yf,ua(e,0),tl(e,r),qr(e,zn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:Xl(e,Vr,ds);break;case 3:if(tl(e,r),(r&130023424)===r&&(t=Nw+500-zn(),10<t)){if(mm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Rr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=R1(Xl.bind(null,e,Vr,ds),t);break}Xl(e,Vr,ds);break;case 4:if(tl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-hi(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=zn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*F9(r/1960))-r,10<r){e.timeoutHandle=R1(Xl.bind(null,e,Vr,ds),r);break}Xl(e,Vr,ds);break;case 5:Xl(e,Vr,ds);break;default:throw Error(Me(329))}}}return qr(e,zn()),e.callbackNode===n?DT.bind(null,e):null}function J1(e,t){var n=zd;return e.current.memoizedState.isDehydrated&&(ua(e,t).flags|=256),e=Om(e,t),e!==2&&(t=Vr,Vr=n,t!==null&&Z1(t)),e}function Z1(e){Vr===null?Vr=e:Vr.push.apply(Vr,e)}function N9(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(!bi(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 tl(e,t){for(t&=~Fw,t&=~mg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-hi(t),r=1<<n;e[n]=-1,t&=~r}}function m2(e){if(Wt&6)throw Error(Me(327));Vc();var t=mm(e,0);if(!(t&1))return qr(e,zn()),null;var n=Om(e,t);if(e.tag!==0&&n===2){var r=E1(e);r!==0&&(t=r,n=J1(e,r))}if(n===1)throw n=yf,ua(e,0),tl(e,t),qr(e,zn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xl(e,Vr,ds),qr(e,zn()),null}function Dw(e,t){var n=Wt;Wt|=1;try{return e(t)}finally{Wt=n,Wt===0&&(ou=zn()+500,dg&&Ol())}}function xa(e){ol!==null&&ol.tag===0&&!(Wt&6)&&Vc();var t=Wt;Wt|=1;var n=jo.transition,r=nn;try{if(jo.transition=null,nn=1,e)return e()}finally{nn=r,jo.transition=n,Wt=t,!(Wt&6)&&Ol()}}function Bw(){ao=Ac.current,yn(Ac)}function ua(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,p9(n)),Wn!==null)for(n=Wn.return;n!==null;){var r=n;switch(bw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wm();break;case 3:nu(),yn(Gr),yn(Er),_w();break;case 5:Iw(r);break;case 4:nu();break;case 13:yn($n);break;case 19:yn($n);break;case 10:Sw(r.type._context);break;case 22:case 23:Bw()}n=n.return}if(nr=e,Wn=e=gl(e.current,null),cr=ao=t,Qn=0,yf=null,Fw=mg=Ca=0,Vr=zd=null,ra!==null){for(t=0;t<ra.length;t++)if(n=ra[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}ra=null}return e}function BT(e,t){do{var n=Wn;try{if(xw(),Kh.current=$m,_m){for(var r=Tn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}_m=!1}if(wa=0,er=Xn=Tn=null,Dd=!1,mf=0,Aw.current=null,n===null||n.return===null){Qn=1,yf=t,Wn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=cr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=n2(s);if(v!==null){v.flags&=-257,r2(v,s,a,i,t),v.mode&1&&t2(i,f,t),t=v,c=f;var b=t.updateQueue;if(b===null){var g=new Set;g.add(c),t.updateQueue=g}else b.add(c);break e}else{if(!(t&1)){t2(i,f,t),zw();break e}c=Error(Me(426))}}else if(Sn&&a.mode&1){var x=n2(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),r2(x,s,a,i,t),ww(ru(c,a));break e}}i=c=ru(c,a),Qn!==4&&(Qn=2),zd===null?zd=[i]:zd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=xT(i,c,t);qk(i,C);break e;case 1:a=c;var P=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof P.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(hl===null||!hl.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=ST(i,a,t);qk(i,E);break e}}i=i.return}while(i!==null)}HT(n)}catch(k){t=k,Wn===n&&n!==null&&(Wn=n=n.return);continue}break}while(1)}function zT(){var e=Mm.current;return Mm.current=$m,e===null?$m:e}function zw(){(Qn===0||Qn===3||Qn===2)&&(Qn=4),nr===null||!(Ca&268435455)&&!(mg&268435455)||tl(nr,cr)}function Om(e,t){var n=Wt;Wt|=2;var r=zT();(nr!==e||cr!==t)&&(ds=null,ua(e,t));do try{D9();break}catch(o){BT(e,o)}while(1);if(xw(),Wt=n,Mm.current=r,Wn!==null)throw Error(Me(261));return nr=null,cr=0,Qn}function D9(){for(;Wn!==null;)jT(Wn)}function B9(){for(;Wn!==null&&!uj();)jT(Wn)}function jT(e){var t=UT(e.alternate,e,ao);e.memoizedProps=e.pendingProps,t===null?HT(e):Wn=t,Aw.current=null}function HT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=R9(n,t),n!==null){n.flags&=32767,Wn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qn=6,Wn=null;return}}else if(n=T9(n,t,ao),n!==null){Wn=n;return}if(t=t.sibling,t!==null){Wn=t;return}Wn=t=e}while(t!==null);Qn===0&&(Qn=5)}function Xl(e,t,n){var r=nn,o=jo.transition;try{jo.transition=null,nn=1,z9(e,t,n,r)}finally{jo.transition=o,nn=r}return null}function z9(e,t,n,r){do Vc();while(ol!==null);if(Wt&6)throw Error(Me(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(wj(e,i),e===nr&&(Wn=nr=null,cr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xh||(xh=!0,WT(hm,function(){return Vc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jo.transition,jo.transition=null;var s=nn;nn=1;var a=Wt;Wt|=4,Aw.current=null,L9(e,n),FT(n,e),s9(M1),gm=!!$1,M1=$1=null,e.current=n,A9(n),dj(),Wt=a,nn=s,jo.transition=i}else e.current=n;if(xh&&(xh=!1,ol=e,Rm=o),i=e.pendingLanes,i===0&&(hl=null),hj(n.stateNode),qr(e,zn()),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(Tm)throw Tm=!1,e=X1,X1=null,e;return Rm&1&&e.tag!==0&&Vc(),i=e.pendingLanes,i&1?e===Q1?jd++:(jd=0,Q1=e):jd=0,Ol(),null}function Vc(){if(ol!==null){var e=CM(Rm),t=jo.transition,n=nn;try{if(jo.transition=null,nn=16>e?16:e,ol===null)var r=!1;else{if(e=ol,ol=null,Rm=0,Wt&6)throw Error(Me(331));var o=Wt;for(Wt|=4,He=e.current;He!==null;){var i=He,s=i.child;if(He.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var f=a[c];for(He=f;He!==null;){var p=He;switch(p.tag){case 0:case 11:case 15:Bd(8,p,i)}var h=p.child;if(h!==null)h.return=p,He=h;else for(;He!==null;){p=He;var m=p.sibling,v=p.return;if(OT(p),p===f){He=null;break}if(m!==null){m.return=v,He=m;break}He=v}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}He=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,He=s;else e:for(;He!==null;){if(i=He,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Bd(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,He=C;break e}He=i.return}}var P=e.current;for(He=P;He!==null;){s=He;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,He=w;else e:for(s=P;He!==null;){if(a=He,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:hg(9,a)}}catch(k){An(a,a.return,k)}if(a===s){He=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,He=E;break e}He=a.return}}if(Wt=o,Ol(),Hi&&typeof Hi.onPostCommitFiberRoot=="function")try{Hi.onPostCommitFiberRoot(sg,e)}catch(k){}r=!0}return r}finally{nn=n,jo.transition=t}}return!1}function g2(e,t,n){t=ru(n,t),t=xT(e,t,1),e=pl(e,t,1),t=Rr(),e!==null&&(Vf(e,1,t),qr(e,t))}function An(e,t,n){if(e.tag===3)g2(e,e,n);else for(;t!==null;){if(t.tag===3){g2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hl===null||!hl.has(r))){e=ru(n,e),e=ST(t,e,1),t=pl(t,e,1),e=Rr(),t!==null&&(Vf(t,1,e),qr(t,e));break}}t=t.return}}function j9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Rr(),e.pingedLanes|=e.suspendedLanes&n,nr===e&&(cr&n)===n&&(Qn===4||Qn===3&&(cr&130023424)===cr&&500>zn()-Nw?ua(e,0):Fw|=n),qr(e,t)}function VT(e,t){t===0&&(e.mode&1?(t=fh,fh<<=1,!(fh&130023424)&&(fh=4194304)):t=1);var n=Rr();e=Es(e,t),e!==null&&(Vf(e,t,n),qr(e,n))}function H9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VT(e,n)}function V9(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),VT(e,n)}var UT;UT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gr.current)Wr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wr=!1,M9(e,t,n);Wr=!!(e.flags&131072)}else Wr=!1,Sn&&t.flags&1048576&&KM(t,Sm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yh(e,t),e=t.pendingProps;var o=Zc(t,Er.current);Hc(t,n),o=Mw(null,t,r,e,o,n);var i=Tw();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Kr(r)?(i=!0,Cm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pw(t),o.updater=fg,t.stateNode=o,o._reactInternals=t,B1(t,r,e,n),t=H1(null,t,r,!0,i,n)):(t.tag=0,Sn&&i&&yw(t),$r(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=W9(r),e=ai(r,e),o){case 0:t=j1(null,t,r,e,n);break e;case 1:t=s2(null,t,r,e,n);break e;case 11:t=o2(null,t,r,e,n);break e;case 14:t=i2(null,t,r,ai(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ai(r,o),j1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ai(r,o),s2(e,t,r,o,n);case 3:e:{if(IT(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,QM(e,t),km(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=ru(Error(Me(423)),t),t=l2(e,t,r,n,o);break e}else if(r!==o){o=ru(Error(Me(424)),t),t=l2(e,t,r,n,o);break e}else for(po=fl(t.stateNode.containerInfo.firstChild),mo=t,Sn=!0,di=null,n=tT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eu(),r===o){t=Ps(e,t,n);break e}$r(e,t,r,n)}t=t.child}return t;case 5:return nT(t),e===null&&F1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,T1(r,o)?s=null:i!==null&&T1(r,i)&&(t.flags|=32),kT(e,t),$r(e,t,s,n),t.child;case 6:return e===null&&F1(t),null;case 13:return _T(e,t,n);case 4:return kw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tu(t,null,r,n):$r(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ai(r,o),o2(e,t,r,o,n);case 7:return $r(e,t,t.pendingProps,n),t.child;case 8:return $r(e,t,t.pendingProps.children,n),t.child;case 12:return $r(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,fn(Em,r._currentValue),r._currentValue=s,i!==null)if(bi(i.value,s)){if(i.children===o.children&&!Gr.current){t=Ps(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=bs(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),N1(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),N1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}$r(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Hc(t,n),o=Wo(o),r=r(o),t.flags|=1,$r(e,t,r,n),t.child;case 14:return r=t.type,o=ai(r,t.pendingProps),o=ai(r.type,o),i2(e,t,r,o,n);case 15:return ET(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ai(r,o),Yh(e,t),t.tag=1,Kr(r)?(e=!0,Cm(t)):e=!1,Hc(t,n),ZM(t,r,o),B1(t,r,o,n),H1(null,t,r,!0,e,n);case 19:return $T(e,t,n);case 22:return PT(e,t,n)}throw Error(Me(156,t.tag))};function WT(e,t){return vM(e,t)}function U9(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 zo(e,t,n,r){return new U9(e,t,n,r)}function jw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W9(e){if(typeof e=="function")return jw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sw)return 11;if(e===lw)return 14}return 2}function gl(e,t){var n=e.alternate;return n===null?(n=zo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")jw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Pc:return da(n.children,o,i,t);case iw:s=8,o|=8;break;case c1:return e=zo(12,n,t,o|2),e.elementType=c1,e.lanes=i,e;case u1:return e=zo(13,n,t,o),e.elementType=u1,e.lanes=i,e;case d1:return e=zo(19,n,t,o),e.elementType=d1,e.lanes=i,e;case eM:return gg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J$:s=10;break e;case Z$:s=9;break e;case sw:s=11;break e;case lw:s=14;break e;case Xs:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=zo(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function da(e,t,n,r){return e=zo(7,e,r,t),e.lanes=n,e}function gg(e,t,n,r){return e=zo(22,e,r,t),e.elementType=eM,e.lanes=n,e.stateNode={isHidden:!1},e}function E0(e,t,n){return e=zo(6,e,null,t),e.lanes=n,e}function P0(e,t,n){return t=zo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G9(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=i0(0),this.expirationTimes=i0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=i0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hw(e,t,n,r,o,i,s,a,c){return e=new G9(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pw(i),e}function K9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ec,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function GT(e){if(!e)return Sl;e=e._reactInternals;e:{if(La(e)!==e||e.tag!==1)throw Error(Me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Kr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Me(171))}if(e.tag===1){var n=e.type;if(Kr(n))return WM(e,n,t)}return t}function KT(e,t,n,r,o,i,s,a,c){return e=Hw(n,r,!0,e,o,i,s,a,c),e.context=GT(null),n=e.current,r=Rr(),o=ml(n),i=bs(r,o),i.callback=t!=null?t:null,pl(n,i,o),e.current.lanes=o,Vf(e,o,r),qr(e,r),e}function vg(e,t,n,r){var o=t.current,i=Rr(),s=ml(o);return n=GT(n),t.context===null?t.context=n:t.pendingContext=n,t=bs(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pl(o,t,s),e!==null&&(mi(e,o,s,i),Gh(e,o,s)),s}function Lm(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 v2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vw(e,t){v2(e,t),(e=e.alternate)&&v2(e,t)}function q9(){return null}var qT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uw(e){this._internalRoot=e}yg.prototype.render=Uw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));vg(e,t,null,null)};yg.prototype.unmount=Uw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xa(function(){vg(null,e,null,null)}),t[Ss]=null}};function yg(e){this._internalRoot=e}yg.prototype.unstable_scheduleHydration=function(e){if(e){var t=EM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<el.length&&t!==0&&t<el[n].priority;n++);el.splice(n,0,e),n===0&&kM(e)}};function Ww(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function y2(){}function Y9(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=Lm(s);i.call(f)}}var s=KT(t,r,e,0,null,!1,!1,"",y2);return e._reactRootContainer=s,e[Ss]=s.current,uf(e.nodeType===8?e.parentNode:e),xa(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var f=Lm(c);a.call(f)}}var c=Hw(e,0,!1,null,null,!1,!1,"",y2);return e._reactRootContainer=c,e[Ss]=c.current,uf(e.nodeType===8?e.parentNode:e),xa(function(){vg(t,c,n,r)}),c}function wg(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=Lm(s);a.call(c)}}vg(t,s,e,o)}else s=Y9(n,t,e,o,r);return Lm(s)}xM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sd(t.pendingLanes);n!==0&&(uw(t,n|1),qr(t,zn()),!(Wt&6)&&(ou=zn()+500,Ol()))}break;case 13:xa(function(){var r=Es(e,1);if(r!==null){var o=Rr();mi(r,e,1,o)}}),Vw(e,1)}};dw=function(e){if(e.tag===13){var t=Es(e,134217728);if(t!==null){var n=Rr();mi(t,e,134217728,n)}Vw(e,134217728)}};SM=function(e){if(e.tag===13){var t=ml(e),n=Es(e,t);if(n!==null){var r=Rr();mi(n,e,t,r)}Vw(e,t)}};EM=function(){return nn};PM=function(e,t){var n=nn;try{return nn=e,t()}finally{nn=n}};C1=function(e,t,n){switch(t){case"input":if(h1(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=ug(r);if(!o)throw Error(Me(90));nM(r),h1(r,o)}}}break;case"textarea":oM(e,n);break;case"select":t=n.value,t!=null&&Dc(e,!!n.multiple,t,!1)}};dM=Dw;fM=xa;var X9={usingClientEntryPoint:!1,Events:[Wf,$c,ug,cM,uM,Dw]},ad={findFiberByHostInstance:na,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Q9={bundleType:ad.bundleType,version:ad.version,rendererPackageName:ad.rendererPackageName,rendererConfig:ad.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ts.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mM(e),e===null?null:e.stateNode},findFiberByHostInstance:ad.findFiberByHostInstance||q9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{sg=Sh.inject(Q9),Hi=Sh}catch(e){}}wo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X9;wo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ww(t))throw Error(Me(200));return K9(e,t,null,n)};wo.createRoot=function(e,t){if(!Ww(e))throw Error(Me(299));var n=!1,r="",o=qT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hw(e,1,!1,null,null,n,!1,r,o),e[Ss]=t.current,uf(e.nodeType===8?e.parentNode:e),new Uw(t)};wo.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Me(188)):(e=Object.keys(e).join(","),Error(Me(268,e)));return e=mM(t),e=e===null?null:e.stateNode,e};wo.flushSync=function(e){return xa(e)};wo.hydrate=function(e,t,n){if(!bg(t))throw Error(Me(200));return wg(null,e,t,!0,n)};wo.hydrateRoot=function(e,t,n){if(!Ww(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=qT;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=KT(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Ss]=t.current,uf(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 yg(t)};wo.render=function(e,t,n){if(!bg(t))throw Error(Me(200));return wg(null,e,t,!1,n)};wo.unmountComponentAtNode=function(e){if(!bg(e))throw Error(Me(40));return e._reactRootContainer?(xa(function(){wg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ss]=null})}),!0):!1};wo.unstable_batchedUpdates=Dw;wo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bg(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return wg(e,t,n,!1,r)};wo.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=wo})(q6);const Eh=Qb(Cl);var YT,b2=Cl;YT=b2.createRoot,b2.hydrateRoot;const J9="modulepreload",Z9=function(e){return"/"+e},w2={},eH=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Z9(i),i in w2)return;w2[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":J9,s||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),s)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var z$;if(!((z$=window.crypto)!=null&&z$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return it(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield eH(()=>import("./sha512-9a451918.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}var ia;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ia||(ia={}));var C2=function(e){return e},x2="beforeunload",tH="hashchange",nH="popstate";function rH(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function i(){var M=El(r.location.hash.substr(1)),R=M.pathname,O=R===void 0?"/":R,A=M.search,V=A===void 0?"":A,j=M.hash,L=j===void 0?"":j,D=o.state||{};return[D.idx,C2({pathname:O,search:V,hash:L,state:D.usr||null,key:D.key||"default"})]}var s=null;function a(){if(s)v.call(s),s=null;else{var M=ia.Pop,R=i(),O=R[0],A=R[1];if(v.length){if(O!=null){var V=p-O;V&&(s={action:M,location:A,retry:function(){_(V*-1)}},_(V))}}else w(M)}}r.addEventListener(nH,a),r.addEventListener(tH,function(){var M=i(),R=M[1];Hd(R)!==Hd(h)&&a()});var c=ia.Pop,f=i(),p=f[0],h=f[1],m=E2(),v=E2();p==null&&(p=0,o.replaceState(S({},o.state,{idx:p}),""));function b(){var M=document.querySelector("base"),R="";if(M&&M.getAttribute("href")){var O=r.location.href,A=O.indexOf("#");R=A===-1?O:O.slice(0,A)}return R}function g(M){return b()+"#"+(typeof M=="string"?M:Hd(M))}function x(M,R){return R===void 0&&(R=null),C2(S({pathname:h.pathname,hash:"",search:""},typeof M=="string"?El(M):M,{state:R,key:oH()}))}function C(M,R){return[{usr:M.state,key:M.key,idx:R},g(M)]}function P(M,R,O){return!v.length||(v.call({action:M,location:R,retry:O}),!1)}function w(M){c=M;var R=i();p=R[0],h=R[1],m.call({action:c,location:h})}function E(M,R){var O=ia.Push,A=x(M,R);function V(){E(M,R)}if(P(O,A,V)){var j=C(A,p+1),L=j[0],D=j[1];try{o.pushState(L,"",D)}catch(B){r.location.assign(D)}w(O)}}function k(M,R){var O=ia.Replace,A=x(M,R);function V(){k(M,R)}if(P(O,A,V)){var j=C(A,p),L=j[0],D=j[1];o.replaceState(L,"",D),w(O)}}function _(M){o.go(M)}var I={get action(){return c},get location(){return h},createHref:g,push:E,replace:k,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(R){return m.push(R)},block:function(R){var O=v.push(R);return v.length===1&&r.addEventListener(x2,S2),function(){O(),v.length||r.removeEventListener(x2,S2)}}};return I}function S2(e){e.preventDefault(),e.returnValue=""}function E2(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function oH(){return Math.random().toString(36).substr(2,8)}function Hd(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,i=e.hash,s=i===void 0?"":i;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function El(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
|
|
33
|
-
* React Router v6.3.0
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Remix Software Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
-
*
|
|
40
|
-
* @license MIT
|
|
41
|
-
*/const Gw=u.createContext(null),Kw=u.createContext(null),Cg=u.createContext({outlet:null,matches:[]});function Xi(e,t){if(!e)throw new Error(t)}function iH(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?El(t):t,o=JT(r.pathname||"/",n);if(o==null)return null;let i=XT(e);sH(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=mH(i[a],o);return s}function XT(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let s={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(s.relativePath.startsWith(r)||Xi(!1),s.relativePath=s.relativePath.slice(r.length));let a=vl([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(o.index===!0&&Xi(!1),XT(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:pH(a,o.index),routesMeta:c})}),t}function sH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lH=/^:\w+$/,aH=3,cH=2,uH=1,dH=10,fH=-2,P2=e=>e==="*";function pH(e,t){let n=e.split("/"),r=n.length;return n.some(P2)&&(r+=fH),t&&(r+=cH),n.filter(o=>!P2(o)).reduce((o,i)=>o+(lH.test(i)?aH:i===""?uH:dH),r)}function hH(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 mH(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,f=o==="/"?t:t.slice(o.length)||"/",p=gH({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},f);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:vl([o,p.pathname]),pathnameBase:ZT(vl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=vl([o,p.pathnameBase]))}return i}function gH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vH(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((f,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return f[p]=yH(a[h]||""),f},{}),pathname:i,pathnameBase:s,pattern:e}}function vH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),r]}function yH(e,t){try{return decodeURIComponent(e)}catch(n){return e}}function bH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?El(e):e;return{pathname:n?n.startsWith("/")?n:wH(n,t):t,search:xH(r),hash:SH(o)}}function wH(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 QT(e,t,n){let r=typeof e=="string"?El(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let a=t.length-1;if(o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),a-=1;r.pathname=c.join("/")}i=a>=0?t[a]:"/"}let s=bH(r,i);return o&&o!=="/"&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function CH(e){return e===""||e.pathname===""?"/":typeof e=="string"?El(e).pathname:e.pathname}function JT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const vl=e=>e.join("/").replace(/\/\/+/g,"/"),ZT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function EH(e){Kf()||Xi(!1);let{basename:t,navigator:n}=u.useContext(Gw),{hash:r,pathname:o,search:i}=qw(e),s=o;if(t!=="/"){let a=CH(e),c=a!=null&&a.endsWith("/");s=o==="/"?t+(c?"/":""):vl([t,o])}return n.createHref({pathname:s,search:i,hash:r})}function Kf(){return u.useContext(Kw)!=null}function xu(){return Kf()||Xi(!1),u.useContext(Kw).location}function PH(){Kf()||Xi(!1);let{basename:e,navigator:t}=u.useContext(Gw),{matches:n}=u.useContext(Cg),{pathname:r}=xu(),o=JSON.stringify(n.map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let f=QT(a,JSON.parse(o),r);e!=="/"&&(f.pathname=vl([e,f.pathname])),(c.replace?t.replace:t.push)(f,c.state)},[e,t,o,r])}function qw(e){let{matches:t}=u.useContext(Cg),{pathname:n}=xu(),r=JSON.stringify(t.map(o=>o.pathnameBase));return u.useMemo(()=>QT(e,JSON.parse(r),n),[e,r,n])}function kH(e,t){Kf()||Xi(!1);let{matches:n}=u.useContext(Cg),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let s=xu(),a;if(t){var c;let m=typeof t=="string"?El(t):t;i==="/"||(c=m.pathname)!=null&&c.startsWith(i)||Xi(!1),a=m}else a=s;let f=a.pathname||"/",p=i==="/"?f:f.slice(i.length)||"/",h=iH(e,{pathname:p});return IH(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:vl([i,m.pathname]),pathnameBase:m.pathnameBase==="/"?i:vl([i,m.pathnameBase])})),n)}function IH(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>u.createElement(Cg.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function eR(e){Xi(!1)}function _H(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ia.Pop,navigator:i,static:s=!1}=e;Kf()&&Xi(!1);let a=ZT(t),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=El(r));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=JT(f,a);return g==null?null:{pathname:g,search:p,hash:h,state:m,key:v}},[a,f,p,h,m,v]);return b==null?null:u.createElement(Gw.Provider,{value:c},u.createElement(Kw.Provider,{children:n,value:{location:b,navigationType:o}}))}function $H(e){let{children:t,location:n}=e;return kH(eb(t),n)}function eb(e){let t=[];return u.Children.forEach(e,n=>{if(!u.isValidElement(n))return;if(n.type===u.Fragment){t.push.apply(t,eb(n.props.children));return}n.type!==eR&&Xi(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=eb(n.props.children)),t.push(r)}),t}/**
|
|
42
|
-
* React Router DOM v6.3.0
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Remix Software Inc.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
-
*
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/function Am(){return Am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Am.apply(this,arguments)}function tR(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const MH=["onClick","reloadDocument","replace","state","target","to"],TH=["aria-current","caseSensitive","className","end","style","to","children"];function RH(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=rH({window:r}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(_H,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}function OH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const nR=u.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:s,target:a,to:c}=t,f=tR(t,MH),p=EH(c),h=AH(c,{replace:i,state:s,target:a});function m(v){r&&r(v),!v.defaultPrevented&&!o&&h(v)}return u.createElement("a",Am({},f,{href:p,onClick:m,ref:n,target:a}))}),LH=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:f}=t,p=tR(t,TH),h=xu(),m=qw(c),v=h.pathname,b=m.pathname;o||(v=v.toLowerCase(),b=b.toLowerCase());let g=v===b||!s&&v.startsWith(b)&&v.charAt(b.length)==="/",x=g?r:void 0,C;typeof i=="function"?C=i({isActive:g}):C=[i,g?"active":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:g}):a;return u.createElement(nR,Am({},p,{"aria-current":x,className:C,ref:n,style:P,to:c}),typeof f=="function"?f({isActive:g}):f)});function AH(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=PH(),s=xu(),a=qw(e);return u.useCallback(c=>{if(c.button===0&&(!n||n==="_self")&&!OH(c)){c.preventDefault();let f=!!r||Hd(s)===Hd(a);i(e,{replace:f,state:o})}},[s,i,a,r,o,n,e])}const FH={black:"#000",white:"#fff"},bf=FH,NH={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"},ac=NH,DH={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"},cc=DH,BH={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"},uc=BH,zH={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"},dc=zH,jH={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"},fc=jH,HH={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"},cd=HH,VH={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"},UH=VH;function oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rR(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var WH=/^((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)-.*))$/,GH=rR(function(e){return WH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function KH(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 qH(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 YH=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(qH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=KH(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}(),yr="-ms-",Fm="-moz-",Xt="-webkit-",oR="comm",Yw="rule",Xw="decl",XH="@import",iR="@keyframes",QH=Math.abs,xg=String.fromCharCode,JH=Object.assign;function ZH(e,t){return(((t<<2^Hr(e,0))<<2^Hr(e,1))<<2^Hr(e,2))<<2^Hr(e,3)}function sR(e){return e.trim()}function e8(e,t){return(e=t.exec(e))?e[0]:e}function Zt(e,t,n){return e.replace(t,n)}function tb(e,t){return e.indexOf(t)}function Hr(e,t){return e.charCodeAt(t)|0}function wf(e,t,n){return e.slice(t,n)}function Fi(e){return e.length}function Qw(e){return e.length}function Ph(e,t){return t.push(e),e}function t8(e,t){return e.map(t).join("")}var Sg=1,iu=1,lR=0,Qr=0,Un=0,Su="";function Eg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Sg,column:iu,length:s,return:""}}function ud(e,t){return JH(Eg("",null,null,"",null,null,0),e,{length:-e.length},t)}function n8(){return Un}function r8(){return Un=Qr>0?Hr(Su,--Qr):0,iu--,Un===10&&(iu=1,Sg--),Un}function go(){return Un=Qr<lR?Hr(Su,Qr++):0,iu++,Un===10&&(iu=1,Sg++),Un}function Ui(){return Hr(Su,Qr)}function Zh(){return Qr}function qf(e,t){return wf(Su,e,t)}function Cf(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 aR(e){return Sg=iu=1,lR=Fi(Su=e),Qr=0,[]}function cR(e){return Su="",e}function em(e){return sR(qf(Qr-1,nb(e===91?e+2:e===40?e+1:e)))}function o8(e){for(;(Un=Ui())&&Un<33;)go();return Cf(e)>2||Cf(Un)>3?"":" "}function i8(e,t){for(;--t&&go()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return qf(e,Zh()+(t<6&&Ui()==32&&go()==32))}function nb(e){for(;go();)switch(Un){case e:return Qr;case 34:case 39:e!==34&&e!==39&&nb(Un);break;case 40:e===41&&nb(e);break;case 92:go();break}return Qr}function s8(e,t){for(;go()&&e+Un!==47+10;)if(e+Un===42+42&&Ui()===47)break;return"/*"+qf(t,Qr-1)+"*"+xg(e===47?e:go())}function l8(e){for(;!Cf(Ui());)go();return qf(e,Qr)}function a8(e){return cR(tm("",null,null,null,[""],e=aR(e),0,[0],e))}function tm(e,t,n,r,o,i,s,a,c){for(var f=0,p=0,h=s,m=0,v=0,b=0,g=1,x=1,C=1,P=0,w="",E=o,k=i,_=r,I=w;x;)switch(b=P,P=go()){case 40:if(b!=108&&I.charCodeAt(h-1)==58){tb(I+=Zt(em(P),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=em(P);break;case 9:case 10:case 13:case 32:I+=o8(b);break;case 92:I+=i8(Zh()-1,7);continue;case 47:switch(Ui()){case 42:case 47:Ph(c8(s8(go(),Zh()),t,n),c);break;default:I+="/"}break;case 123*g:a[f++]=Fi(I)*C;case 125*g:case 59:case 0:switch(P){case 0:case 125:x=0;case 59+p:v>0&&Fi(I)-h&&Ph(v>32?I2(I+";",r,n,h-1):I2(Zt(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Ph(_=k2(I,t,n,f,p,o,a,w,E=[],k=[],h),i),P===123)if(p===0)tm(I,t,_,_,E,i,h,a,k);else switch(m){case 100:case 109:case 115:tm(e,_,_,r&&Ph(k2(e,_,_,0,0,o,a,w,o,E=[],h),k),o,k,h,a,r?E:k);break;default:tm(I,_,_,_,[""],k,0,a,k)}}f=p=v=0,g=C=1,w=I="",h=s;break;case 58:h=1+Fi(I),v=b;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&r8()==125)continue}switch(I+=xg(P),P*g){case 38:C=p>0?1:(I+="\f",-1);break;case 44:a[f++]=(Fi(I)-1)*C,C=1;break;case 64:Ui()===45&&(I+=em(go())),m=Ui(),p=h=Fi(w=I+=l8(Zh())),P++;break;case 45:b===45&&Fi(I)==2&&(g=0)}}return i}function k2(e,t,n,r,o,i,s,a,c,f,p){for(var h=o-1,m=o===0?i:[""],v=Qw(m),b=0,g=0,x=0;b<r;++b)for(var C=0,P=wf(e,h+1,h=QH(g=s[b])),w=e;C<v;++C)(w=sR(g>0?m[C]+" "+P:Zt(P,/&\f/g,m[C])))&&(c[x++]=w);return Eg(e,t,n,o===0?Yw:a,c,f,p)}function c8(e,t,n){return Eg(e,t,n,oR,xg(n8()),wf(e,2,-2),0)}function I2(e,t,n,r){return Eg(e,t,n,Xw,wf(e,0,r),wf(e,r+1,-1),r)}function uR(e,t){switch(ZH(e,t)){case 5103:return Xt+"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 Xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xt+e+Fm+e+yr+e+e;case 6828:case 4268:return Xt+e+yr+e+e;case 6165:return Xt+e+yr+"flex-"+e+e;case 5187:return Xt+e+Zt(e,/(\w+).+(:[^]+)/,Xt+"box-$1$2"+yr+"flex-$1$2")+e;case 5443:return Xt+e+yr+"flex-item-"+Zt(e,/flex-|-self/,"")+e;case 4675:return Xt+e+yr+"flex-line-pack"+Zt(e,/align-content|flex-|-self/,"")+e;case 5548:return Xt+e+yr+Zt(e,"shrink","negative")+e;case 5292:return Xt+e+yr+Zt(e,"basis","preferred-size")+e;case 6060:return Xt+"box-"+Zt(e,"-grow","")+Xt+e+yr+Zt(e,"grow","positive")+e;case 4554:return Xt+Zt(e,/([^-])(transform)/g,"$1"+Xt+"$2")+e;case 6187:return Zt(Zt(Zt(e,/(zoom-|grab)/,Xt+"$1"),/(image-set)/,Xt+"$1"),e,"")+e;case 5495:case 3959:return Zt(e,/(image-set\([^]*)/,Xt+"$1$`$1");case 4968:return Zt(Zt(e,/(.+:)(flex-)?(.*)/,Xt+"box-pack:$3"+yr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xt+e+e;case 4095:case 3583:case 4068:case 2532:return Zt(e,/(.+)-inline(.+)/,Xt+"$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(Fi(e)-1-t>6)switch(Hr(e,t+1)){case 109:if(Hr(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+Fm+(Hr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tb(e,"stretch")?uR(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Hr(e,t+1)!==115)break;case 6444:switch(Hr(e,Fi(e)-3-(~tb(e,"!important")&&10))){case 107:return Zt(e,":",":"+Xt)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(Hr(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+yr+"$2box$3")+e}break;case 5936:switch(Hr(e,t+11)){case 114:return Xt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+yr+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+yr+e+e}return e}function Uc(e,t){for(var n="",r=Qw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function u8(e,t,n,r){switch(e.type){case XH:case Xw:return e.return=e.return||e.value;case oR:return"";case iR:return e.return=e.value+"{"+Uc(e.children,r)+"}";case Yw:e.value=e.props.join(",")}return Fi(n=Uc(e.children,r))?e.return=e.value+"{"+n+"}":""}function d8(e){var t=Qw(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 f8(e){return function(t){t.root||(t=t.return)&&e(t)}}function p8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xw:e.return=uR(e.value,e.length);break;case iR:return Uc([ud(e,{value:Zt(e.value,"@","@"+Xt)})],r);case Yw:if(e.length)return t8(e.props,function(o){switch(e8(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uc([ud(e,{props:[Zt(o,/:(read-\w+)/,":"+Fm+"$1")]})],r);case"::placeholder":return Uc([ud(e,{props:[Zt(o,/:(plac\w+)/,":"+Xt+"input-$1")]}),ud(e,{props:[Zt(o,/:(plac\w+)/,":"+Fm+"$1")]}),ud(e,{props:[Zt(o,/:(plac\w+)/,yr+"input-$1")]})],r)}return""})}}var h8=function(t,n,r){for(var o=0,i=0;o=i,i=Ui(),o===38&&i===12&&(n[r]=1),!Cf(i);)go();return qf(t,Qr)},m8=function(t,n){var r=-1,o=44;do switch(Cf(o)){case 0:o===38&&Ui()===12&&(n[r]=1),t[r]+=h8(Qr-1,n,r);break;case 2:t[r]+=em(o);break;case 4:if(o===44){t[++r]=Ui()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=xg(o)}while(o=go());return t},g8=function(t,n){return cR(m8(aR(t),n))},_2=new WeakMap,v8=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&&!_2.get(r))&&!o){_2.set(t,!0);for(var i=[],s=g8(n,i),a=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<a.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},y8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},b8=[p8],w8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||b8,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)i[x[C]]=!0;a.push(g)});var c,f=[v8,y8];{var p,h=[u8,f8(function(g){p.insert(g)})],m=d8(f.concat(o,h)),v=function(x){return Uc(a8(x),m)};c=function(x,C,P,w){p=P,v(x?x+"{"+C.styles+"}":C.styles),w&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new YH({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},rb={},C8={get exports(){return rb},set exports(e){rb=e}},rn={};/** @license React v16.13.1
|
|
51
|
-
* react-is.production.min.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var ir=typeof Symbol=="function"&&Symbol.for,Jw=ir?Symbol.for("react.element"):60103,Zw=ir?Symbol.for("react.portal"):60106,Pg=ir?Symbol.for("react.fragment"):60107,kg=ir?Symbol.for("react.strict_mode"):60108,Ig=ir?Symbol.for("react.profiler"):60114,_g=ir?Symbol.for("react.provider"):60109,$g=ir?Symbol.for("react.context"):60110,eC=ir?Symbol.for("react.async_mode"):60111,Mg=ir?Symbol.for("react.concurrent_mode"):60111,Tg=ir?Symbol.for("react.forward_ref"):60112,Rg=ir?Symbol.for("react.suspense"):60113,x8=ir?Symbol.for("react.suspense_list"):60120,Og=ir?Symbol.for("react.memo"):60115,Lg=ir?Symbol.for("react.lazy"):60116,S8=ir?Symbol.for("react.block"):60121,E8=ir?Symbol.for("react.fundamental"):60117,P8=ir?Symbol.for("react.responder"):60118,k8=ir?Symbol.for("react.scope"):60119;function xo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jw:switch(e=e.type,e){case eC:case Mg:case Pg:case Ig:case kg:case Rg:return e;default:switch(e=e&&e.$$typeof,e){case $g:case Tg:case Lg:case Og:case _g:return e;default:return t}}case Zw:return t}}}function dR(e){return xo(e)===Mg}rn.AsyncMode=eC;rn.ConcurrentMode=Mg;rn.ContextConsumer=$g;rn.ContextProvider=_g;rn.Element=Jw;rn.ForwardRef=Tg;rn.Fragment=Pg;rn.Lazy=Lg;rn.Memo=Og;rn.Portal=Zw;rn.Profiler=Ig;rn.StrictMode=kg;rn.Suspense=Rg;rn.isAsyncMode=function(e){return dR(e)||xo(e)===eC};rn.isConcurrentMode=dR;rn.isContextConsumer=function(e){return xo(e)===$g};rn.isContextProvider=function(e){return xo(e)===_g};rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jw};rn.isForwardRef=function(e){return xo(e)===Tg};rn.isFragment=function(e){return xo(e)===Pg};rn.isLazy=function(e){return xo(e)===Lg};rn.isMemo=function(e){return xo(e)===Og};rn.isPortal=function(e){return xo(e)===Zw};rn.isProfiler=function(e){return xo(e)===Ig};rn.isStrictMode=function(e){return xo(e)===kg};rn.isSuspense=function(e){return xo(e)===Rg};rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pg||e===Mg||e===Ig||e===kg||e===Rg||e===x8||typeof e=="object"&&e!==null&&(e.$$typeof===Lg||e.$$typeof===Og||e.$$typeof===_g||e.$$typeof===$g||e.$$typeof===Tg||e.$$typeof===E8||e.$$typeof===P8||e.$$typeof===k8||e.$$typeof===S8)};rn.typeOf=xo;(function(e){e.exports=rn})(C8);var fR=rb,I8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pR={};pR[fR.ForwardRef]=I8;pR[fR.Memo]=_8;var $8=!0;function M8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var hR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||$8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},mR=function(t,n,r){hR(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 T8(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 R8={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},O8=/[A-Z]|^ms/g,L8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gR=function(t){return t.charCodeAt(1)===45},$2=function(t){return t!=null&&typeof t!="boolean"},k0=rR(function(e){return gR(e)?e:e.replace(O8,"-$&").toLowerCase()}),M2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(L8,function(r,o,i){return Ni={name:o,styles:i,next:Ni},o})}return R8[t]!==1&&!gR(t)&&typeof n=="number"&&n!==0?n+"px":n};function xf(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 Ni={name:n.name,styles:n.styles,next:Ni},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ni={name:r.name,styles:r.styles,next:Ni},r=r.next;var o=n.styles+";";return o}return A8(e,t,n)}case"function":{if(e!==void 0){var i=Ni,s=n(e);return Ni=i,xf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function A8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xf(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]+"}":$2(s)&&(r+=k0(i)+":"+M2(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++)$2(s[a])&&(r+=k0(i)+":"+M2(i,s[a])+";");else{var c=xf(e,t,s);switch(i){case"animation":case"animationName":{r+=k0(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var T2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ni,tC=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="";Ni=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=xf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=xf(r,n,t[a]),o&&(i+=s[a]);T2.lastIndex=0;for(var c="",f;(f=T2.exec(i))!==null;)c+="-"+f[1];var p=T8(i)+c;return{name:p,styles:i,next:Ni}},vR=u.createContext(typeof HTMLElement!="undefined"?w8({key:"css"}):null);vR.Provider;var yR=function(t){return u.forwardRef(function(n,r){var o=u.useContext(vR);return t(n,o,r)})},nC=u.createContext({}),R2=Qc["useInsertionEffect"]?Qc["useInsertionEffect"]:u.useLayoutEffect,F8=yR(function(e,t){var n=e.styles,r=tC([n],void 0,u.useContext(nC)),o=u.useRef();return R2(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]),R2(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&mR(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 Eu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tC(t)}var Ll=function(){var t=Eu.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_"}}},N8=GH,D8=function(t){return t!=="theme"},O2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?N8:D8},L2=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},B8=Qc["useInsertionEffect"]?Qc["useInsertionEffect"]:function(t){t()};function z8(e){B8(e)}var j8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hR(n,r,o),z8(function(){return mR(n,r,o)}),null},H8=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=L2(t,n,r),c=a||O2(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=yR(function(g,x,C){var P=f&&g.as||o,w="",E=[],k=g;if(g.theme==null){k={};for(var _ in g)k[_]=g[_];k.theme=u.useContext(nC)}typeof g.className=="string"?w=M8(x.registered,E,g.className):g.className!=null&&(w=g.className+" ");var I=tC(h.concat(E),x.registered,k);w+=x.key+"-"+I.name,s!==void 0&&(w+=" "+s);var M=f&&a===void 0?O2(P):c,R={};for(var O in g)f&&O==="as"||M(O)&&(R[O]=g[O]);return R.className=w,R.ref=C,u.createElement(u.Fragment,null,u.createElement(j8,{cache:x,serialized:I,isStringTag:typeof P=="string"}),u.createElement(P,R))});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(g,x){return e(g,S({},n,x,{shouldForwardProp:L2(b,x,!0)})).apply(void 0,h)},b}},V8=["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"],ob=H8.bind();V8.forEach(function(e){ob[e]=ob(e)});const U8=ob;var ue={},W8={get exports(){return ue},set exports(e){ue=e}},G8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",K8=G8,q8=K8;function bR(){}function wR(){}wR.resetWarningCache=bR;var Y8=function(){function e(r,o,i,s,a,c){if(c!==q8){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wR,resetWarningCache:bR};return n.PropTypes=n,n};W8.exports=Y8();var Nm={},X8={get exports(){return Nm},set exports(e){Nm=e}},dd={};/**
|
|
58
|
-
* @license React
|
|
59
|
-
* react-jsx-runtime.production.min.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var A2;function Q8(){if(A2)return dd;A2=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,f){var p,h={},m=null,v=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(h[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:a,key:m,ref:v,props:h,_owner:o.current}}return dd.Fragment=n,dd.jsx=s,dd.jsxs=s,dd}var F2;function lt(){return F2||(F2=1,function(e){e.exports=Q8()}(X8)),Nm}var T=lt();function J8(e){return e==null||Object.keys(e).length===0}function Z8(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(J8(o)?n:o):t;return T.jsx(F8,{styles:r})}/** @license MUI v5.10.2
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function CR(e,t){return U8(e,t)}const eV=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function I0(e,t){return()=>null}function Pd(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ho(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Pd(e)&&Pd(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Pd(t[o])&&o in e&&Pd(e[o])?r[o]=Ho(e[o],t[o],n):r[o]=t[o])}),r}function Pl(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 N2={},tV={get exports(){return N2},set exports(e){N2=e}},on={};/**
|
|
70
|
-
* @license React
|
|
71
|
-
* react-is.production.min.js
|
|
72
|
-
*
|
|
73
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/var rC=Symbol.for("react.element"),oC=Symbol.for("react.portal"),Ag=Symbol.for("react.fragment"),Fg=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),Dg=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),nV=Symbol.for("react.server_context"),zg=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Hg=Symbol.for("react.suspense_list"),Vg=Symbol.for("react.memo"),Ug=Symbol.for("react.lazy"),rV=Symbol.for("react.offscreen"),xR;xR=Symbol.for("react.module.reference");function Qo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rC:switch(e=e.type,e){case Ag:case Ng:case Fg:case jg:case Hg:return e;default:switch(e=e&&e.$$typeof,e){case nV:case Bg:case zg:case Ug:case Vg:case Dg:return e;default:return t}}case oC:return t}}}on.ContextConsumer=Bg;on.ContextProvider=Dg;on.Element=rC;on.ForwardRef=zg;on.Fragment=Ag;on.Lazy=Ug;on.Memo=Vg;on.Portal=oC;on.Profiler=Ng;on.StrictMode=Fg;on.Suspense=jg;on.SuspenseList=Hg;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Qo(e)===Bg};on.isContextProvider=function(e){return Qo(e)===Dg};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rC};on.isForwardRef=function(e){return Qo(e)===zg};on.isFragment=function(e){return Qo(e)===Ag};on.isLazy=function(e){return Qo(e)===Ug};on.isMemo=function(e){return Qo(e)===Vg};on.isPortal=function(e){return Qo(e)===oC};on.isProfiler=function(e){return Qo(e)===Ng};on.isStrictMode=function(e){return Qo(e)===Fg};on.isSuspense=function(e){return Qo(e)===jg};on.isSuspenseList=function(e){return Qo(e)===Hg};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ag||e===Ng||e===Fg||e===jg||e===Hg||e===rV||typeof e=="object"&&e!==null&&(e.$$typeof===Ug||e.$$typeof===Vg||e.$$typeof===Dg||e.$$typeof===Bg||e.$$typeof===zg||e.$$typeof===xR||e.getModuleId!==void 0)};on.typeOf=Qo;(function(e){e.exports=on})(tV);function fe(e){if(typeof e!="string")throw new Error(Pl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ib(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ks(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 oV(e,t){return()=>null}function Vd(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function bn(e){return e&&e.ownerDocument||document}function Jr(e){return bn(e).defaultView||window}function iV(e,t){return()=>null}function su(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sV=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,On=sV;let D2=0;function lV(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(D2+=1,n(`mui-${D2}`))},[t]),r}const B2=Qc["useId"];function Pn(e){if(B2!==void 0){const t=B2();return e!=null?e:t}return lV(e)}function aV(e,t,n,r,o){return null}function Wi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(f=>{o||s(f)},[]);return[a,c]}function jn(e){const t=u.useRef(e);return On(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function St(e,t){return u.useMemo(()=>e==null&&t==null?null:n=>{su(e,n),su(t,n)},[e,t])}let Wg=!0,sb=!1,z2;const cV={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 uV(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&cV[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function dV(e){e.metaKey||e.altKey||e.ctrlKey||(Wg=!0)}function _0(){Wg=!1}function fV(){this.visibilityState==="hidden"&&sb&&(Wg=!0)}function pV(e){e.addEventListener("keydown",dV,!0),e.addEventListener("mousedown",_0,!0),e.addEventListener("pointerdown",_0,!0),e.addEventListener("touchstart",_0,!0),e.addEventListener("visibilitychange",fV,!0)}function hV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Wg||uV(t)}function Gg(){const e=u.useCallback(o=>{o!=null&&pV(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(sb=!0,window.clearTimeout(z2),z2=window.setTimeout(()=>{sb=!1},100),t.current=!1,!0):!1}function r(o){return hV(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function SR(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pc;function ER(){if(pc)return pc;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),pc="reverse",e.scrollLeft>0?pc="default":(e.scrollLeft=1,e.scrollLeft===0&&(pc="negative")),document.body.removeChild(e),pc}function j2(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(ER()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mV=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},PR=mV;function kR(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Ie(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>(s&&(i.push(t(s)),n&&n[s]&&i.push(n[s])),i),[]).join(" ")}),r}const H2=e=>e,gV=()=>{let e=H2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=H2}}},vV=gV(),iC=vV,yV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const r=yV[t];return r?`${n}-${r}`:`${iC.generate(e)}-${t}`}function Ve(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}function Ud(e,t){return t?Ho(e,t,{clone:!1}):e}const sC={xs:0,sm:600,md:900,lg:1200,xl:1536},V2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sC[e]}px)`};function Ci(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||V2;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||V2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||sC).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 bV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function wV(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function CV(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 Kg({values:e,breakpoints:t,base:n}){const r=n||CV(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 Sf(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 U2(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Sf(e,n)||r,t&&(o=t(o)),o}function We(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,f=Sf(c,r)||{};return Ci(s,a,h=>{let m=U2(f,o,h);return h===m&&typeof h=="string"&&(m=U2(f,o,`${t}${h==="default"?"":fe(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function Al(...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]?Ud(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function xV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const SV={m:"margin",p:"padding"},EV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},W2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PV=xV(e=>{if(e.length>2)if(W2[e])e=W2[e];else return[e];const[t,n]=e.split(""),r=SV[t],o=EV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),kV=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IV=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],IR=[...kV,...IV];function Yf(e,t,n,r){var o;const i=(o=Sf(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 _R(e){return Yf(e,"spacing",8)}function Xf(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]=Xf(t,n),r),{})}function $V(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=PV(n),i=_V(o,r),s=e[n];return Ci(e,s,i)}function MV(e,t){const n=_R(e.theme);return Object.keys(e).map(r=>$V(e,t,r,n)).reduce(Ud,{})}function qg(e){return MV(e,IR)}qg.propTypes={};qg.filterProps=IR;function Qf(e){return typeof e!="number"?e:`${e}px solid`}const TV=We({prop:"border",themeKey:"borders",transform:Qf}),RV=We({prop:"borderTop",themeKey:"borders",transform:Qf}),OV=We({prop:"borderRight",themeKey:"borders",transform:Qf}),LV=We({prop:"borderBottom",themeKey:"borders",transform:Qf}),AV=We({prop:"borderLeft",themeKey:"borders",transform:Qf}),FV=We({prop:"borderColor",themeKey:"palette"}),NV=We({prop:"borderTopColor",themeKey:"palette"}),DV=We({prop:"borderRightColor",themeKey:"palette"}),BV=We({prop:"borderBottomColor",themeKey:"palette"}),zV=We({prop:"borderLeftColor",themeKey:"palette"}),lC=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xf(t,r)});return Ci(e,e.borderRadius,n)}return null};lC.propTypes={};lC.filterProps=["borderRadius"];const jV=Al(TV,RV,OV,LV,AV,FV,NV,DV,BV,zV,lC),$R=jV,HV=We({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),VV=We({prop:"display"}),UV=We({prop:"overflow"}),WV=We({prop:"textOverflow"}),GV=We({prop:"visibility"}),KV=We({prop:"whiteSpace"}),MR=Al(HV,VV,UV,WV,GV,KV),qV=We({prop:"flexBasis"}),YV=We({prop:"flexDirection"}),XV=We({prop:"flexWrap"}),QV=We({prop:"justifyContent"}),JV=We({prop:"alignItems"}),ZV=We({prop:"alignContent"}),e7=We({prop:"order"}),t7=We({prop:"flex"}),n7=We({prop:"flexGrow"}),r7=We({prop:"flexShrink"}),o7=We({prop:"alignSelf"}),i7=We({prop:"justifyItems"}),s7=We({prop:"justifySelf"}),l7=Al(qV,YV,XV,QV,JV,ZV,e7,t7,n7,r7,o7,i7,s7),TR=l7,aC=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({gap:Xf(t,r)});return Ci(e,e.gap,n)}return null};aC.propTypes={};aC.filterProps=["gap"];const cC=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({columnGap:Xf(t,r)});return Ci(e,e.columnGap,n)}return null};cC.propTypes={};cC.filterProps=["columnGap"];const uC=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yf(e.theme,"spacing",8),n=r=>({rowGap:Xf(t,r)});return Ci(e,e.rowGap,n)}return null};uC.propTypes={};uC.filterProps=["rowGap"];const a7=We({prop:"gridColumn"}),c7=We({prop:"gridRow"}),u7=We({prop:"gridAutoFlow"}),d7=We({prop:"gridAutoColumns"}),f7=We({prop:"gridAutoRows"}),p7=We({prop:"gridTemplateColumns"}),h7=We({prop:"gridTemplateRows"}),m7=We({prop:"gridTemplateAreas"}),g7=We({prop:"gridArea"}),v7=Al(aC,cC,uC,a7,c7,u7,d7,f7,p7,h7,m7,g7),RR=v7,y7=We({prop:"color",themeKey:"palette"}),b7=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),w7=We({prop:"backgroundColor",themeKey:"palette"}),C7=Al(y7,b7,w7),OR=C7,x7=We({prop:"position"}),S7=We({prop:"zIndex",themeKey:"zIndex"}),E7=We({prop:"top"}),P7=We({prop:"right"}),k7=We({prop:"bottom"}),I7=We({prop:"left"}),LR=Al(x7,S7,E7,P7,k7,I7),_7=We({prop:"boxShadow",themeKey:"shadows"}),AR=_7;function Fl(e){return e<=1&&e!==0?`${e*100}%`:e}const $7=We({prop:"width",transform:Fl}),FR=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])||sC[n]||Fl(n)}};return Ci(e,e.maxWidth,t)}return null};FR.filterProps=["maxWidth"];const M7=We({prop:"minWidth",transform:Fl}),T7=We({prop:"height",transform:Fl}),R7=We({prop:"maxHeight",transform:Fl}),O7=We({prop:"minHeight",transform:Fl});We({prop:"size",cssProperty:"width",transform:Fl});We({prop:"size",cssProperty:"height",transform:Fl});const L7=We({prop:"boxSizing"}),A7=Al($7,FR,M7,T7,R7,O7,L7),NR=A7,F7=We({prop:"fontFamily",themeKey:"typography"}),N7=We({prop:"fontSize",themeKey:"typography"}),D7=We({prop:"fontStyle",themeKey:"typography"}),B7=We({prop:"fontWeight",themeKey:"typography"}),z7=We({prop:"letterSpacing"}),j7=We({prop:"textTransform"}),H7=We({prop:"lineHeight"}),V7=We({prop:"textAlign"}),U7=We({prop:"typography",cssProperty:!1,themeKey:"typography"}),W7=Al(U7,F7,N7,D7,B7,z7,H7,V7,j7),DR=W7,G2={borders:$R.filterProps,display:MR.filterProps,flexbox:TR.filterProps,grid:RR.filterProps,positions:LR.filterProps,palette:OR.filterProps,shadows:AR.filterProps,sizing:NR.filterProps,spacing:qg.filterProps,typography:DR.filterProps},BR={borders:$R,display:MR,flexbox:TR,grid:RR,positions:LR,palette:OR,shadows:AR,sizing:NR,spacing:qg,typography:DR},G7=Object.keys(G2).reduce((e,t)=>(G2[t].forEach(n=>{e[n]=BR[t]}),e),{});function K7(...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 q7(e,t){return typeof e=="function"?e(t):e}function Y7(e=BR){const t=Object.keys(e).reduce((o,i)=>(e[i].filterProps.forEach(s=>{o[s]=e[i]}),o),{});function n(o,i,s){const a={[o]:i,theme:s},c=t[o];return c?c(a):{[o]:i}}function r(o){const{sx:i,theme:s={}}=o||{};if(!i)return null;function a(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=bV(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(v=>{const b=q7(f[v],s);if(b!=null)if(typeof b=="object")if(t[v])m=Ud(m,n(v,b,s));else{const g=Ci({theme:s},b,x=>({[v]:x}));K7(g,b)?m[v]=r({sx:b,theme:s}):m=Ud(m,g)}else m=Ud(m,n(v,b,s))}),wV(h,m)}return Array.isArray(i)?i.map(a):a(i)}return r}const zR=Y7();zR.filterProps=["sx"];const jR=zR,X7=["sx"],Q7=e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach(n=>{G7[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function dC(e){const{sx:t}=e,n=oe(e,X7),{systemProps:r,otherProps:o}=Q7(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Pd(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}function HR(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=HR(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=HR(e))&&(r&&(r+=" "),r+=t);return r}const J7=["values","unit","step"],Z7=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 eU(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oe(e,J7),i=Z7(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,v){const b=s.indexOf(v);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]]:v)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):a(m)}function h(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:a,down:c,between:f,only:p,not:h,unit:n},o)}const tU={borderRadius:4},nU=tU;function rU(e=8){if(e.mui)return e;const t=_R({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}const oU=["breakpoints","palette","spacing","shape"];function fC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=oe(e,oU),a=eU(n),c=rU(o);let f=Ho({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},nU,i)},s);return f=t.reduce((p,h)=>Ho(p,h),f),f}const iU=u.createContext(null),VR=iU;function UR(){return u.useContext(VR)}const sU=typeof Symbol=="function"&&Symbol.for,lU=sU?Symbol.for("mui.nested"):"__THEME_NESTED__";function aU(e,t){return typeof t=="function"?t(e):S({},e,t)}function cU(e){const{children:t,theme:n}=e,r=UR(),o=u.useMemo(()=>{const i=r===null?n:aU(r,n);return i!=null&&(i[lU]=r!==null),i},[n,r]);return T.jsx(VR.Provider,{value:o,children:t})}function uU(e){return Object.keys(e).length===0}function pC(e=null){const t=UR();return!t||uU(t)?e:t}const dU=fC();function Yg(e=dU){return pC(e)}const fU=["className","component"];function pU(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=jR}=e,i=CR("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(o);return u.forwardRef(function(c,f){const p=Yg(t),h=dC(c),{className:m,component:v="div"}=h,b=oe(h,fU);return T.jsx(i,S({as:v,ref:f,className:he(m,r?r(n):n),theme:p},b))})}const hU=["variant"];function K2(e){return e.length===0}function WR(e){const{variant:t}=e,n=oe(e,hU);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=K2(r)?e[o]:fe(e[o]):r+=`${K2(r)?o:fe(o)}${fe(e[o].toString())}`}),r}const mU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],gU=["theme"],vU=["theme"];function fd(e){return Object.keys(e).length===0}function yU(e){return typeof e=="string"&&e.charCodeAt(0)>96}const bU=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,wU=(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=WR(o.props);r[i]=o.style}),r},CU=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(f=>{let p=!0;Object.keys(f.props).forEach(h=>{s[h]!==f.props[h]&&e[h]!==f.props[h]&&(p=!1)}),p&&a.push(t[WR(f.props)])}),a};function Wd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xU=fC();function SU(e={}){const{defaultTheme:t=xU,rootShouldForwardProp:n=Wd,slotShouldForwardProp:r=Wd,styleFunctionSx:o=jR}=e,i=s=>{const a=fd(s.theme)?t:s.theme;return o(S({},s,{theme:a}))};return i.__mui_systemSx=!0,(s,a={})=>{eV(s,E=>E.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=oe(a,mU),b=p!==void 0?p:f&&f!=="Root"||!1,g=h||!1;let x,C=Wd;f==="Root"?C=n:f?C=r:yU(s)&&(C=void 0);const P=CR(s,S({shouldForwardProp:C,label:x},v)),w=(E,...k)=>{const _=k?k.map(O=>typeof O=="function"&&O.__emotion_real!==O?A=>{let{theme:V}=A,j=oe(A,gU);return O(S({theme:fd(V)?t:V},j))}:O):[];let I=E;c&&m&&_.push(O=>{const A=fd(O.theme)?t:O.theme,V=bU(c,A);if(V){const j={};return Object.entries(V).forEach(([L,D])=>{j[L]=typeof D=="function"?D(S({},O,{theme:A})):D}),m(O,j)}return null}),c&&!b&&_.push(O=>{const A=fd(O.theme)?t:O.theme;return CU(O,wU(c,A),A,c)}),g||_.push(i);const M=_.length-k.length;if(Array.isArray(E)&&M>0){const O=new Array(M).fill("");I=[...E,...O],I.raw=[...E.raw,...O]}else typeof E=="function"&&E.__emotion_real!==E&&(I=O=>{let{theme:A}=O,V=oe(O,vU);return E(S({theme:fd(A)?t:A},V))});return P(I,..._)};return P.withConfig&&(w.withConfig=P.withConfig),w}}function GR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kR(t.components[n].defaultProps,r)}function EU({props:e,name:t,defaultTheme:n}){const r=Yg(n);return GR({theme:r,name:t,props:e})}function hC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function PU(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 Sa(e){if(e.type)return e;if(e.charAt(0)==="#")return Sa(PU(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Pl(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(Pl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Xg(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 kU(e){e=Sa(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Xg({type:a,values:c})}function q2(e){e=Sa(e);let t=e.type==="hsl"?Sa(kU(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:cs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function IU(e,t){const n=q2(e),r=q2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ot(e,t){return e=Sa(e),t=hC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xg(e)}function Is(e,t){if(e=Sa(e),t=hC(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 Xg(e)}function _s(e,t){if(e=Sa(e),t=hC(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 Xg(e)}function _U(e){const t=Yg();return T.jsx(nC.Provider,{value:typeof t=="object"?t:{},children:e.children})}function $U(e){const{children:t,theme:n}=e;return T.jsx(cU,{theme:n,children:T.jsx(_U,{children:t})})}function kl(e){return typeof e=="string"}function kd(e,t={},n){return kl(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function MU(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 lb(e,t){return typeof e=="function"?e(t):e}function Y2(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 TU(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=S({},n,o,r);return v.length>0&&(g.className=v),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const s=MU(S({},o,r)),a=Y2(r),c=Y2(o),f=t(s),p=he(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},f,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}const RU=["elementType","externalSlotProps","ownerState"];function Ef(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=oe(e,RU),s=lb(r,o),{props:a,internalRef:c}=TU(S({},i,{externalSlotProps:s})),f=St(c,St(s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref));return kd(n,S({},a,{ref:f}),o)}function X2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function KR(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:f})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=X2(p));const h=a.filter(m=>{let v=(i||f)(m);return n&&(v=v.toLowerCase()),t&&(v=X2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1});return typeof r=="number"?h.slice(0,r):h}}function $0(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const OU=KR(),Q2=5;function LU(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:a="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:v=!1,filterOptions:b=OU,filterSelectedOptions:g=!1,freeSolo:x=!1,getOptionDisabled:C,getOptionLabel:P=ve=>{var ge;return(ge=ve.label)!=null?ge:ve},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:k,includeInputInList:_=!1,inputValue:I,isOptionEqualToValue:M=(ve,ge)=>ve===ge,multiple:R=!1,onChange:O,onClose:A,onHighlightChange:V,onInputChange:j,onOpen:L,open:D,openOnFocus:B=!1,options:W,readOnly:F=!1,selectOnFocus:z=!e.freeSolo,value:G}=e,q=Pn(k);let X=P;X=ve=>{const ge=P(ve);return typeof ge!="string"?String(ge):ge};const ie=u.useRef(!1),ee=u.useRef(!0),se=u.useRef(null),ae=u.useRef(null),[we,de]=u.useState(null),[le,te]=u.useState(-1),be=n?0:-1,_e=u.useRef(be),[Se,Fe]=Wi({controlled:G,default:c,name:a}),[Re,Ae]=Wi({controlled:I,default:"",name:a,state:"inputValue"}),[Le,Ze]=u.useState(!1),yt=u.useCallback((ve,ge)=>{if(!(R?Se.length<ge.length:ge!==null)&&!i)return;let ft;if(R)ft="";else if(ge==null)ft="";else{const Vt=X(ge);ft=typeof Vt=="string"?Vt:""}Re!==ft&&(Ae(ft),j&&j(ve,ft,"reset"))},[X,Re,R,j,Ae,i,Se]),tt=u.useRef();u.useEffect(()=>{const ve=Se!==tt.current;tt.current=Se,!(Le&&!ve)&&(x&&!ve||yt(null,Se))},[Se,yt,Le,tt,x]);const[et,Pt]=Wi({controlled:D,default:!1,name:a,state:"open"}),[mt,at]=u.useState(!0),It=!R&&Se!=null&&Re===X(Se),Xe=et&&!F,Te=Xe?b(W.filter(ve=>!(g&&(R?Se:[Se]).some(ge=>ge!==null&&M(ve,ge)))),{inputValue:It&&mt?"":Re,getOptionLabel:X}):[],ne=et&&Te.length>0&&!F,ke=jn(ve=>{ve===-1?se.current.focus():we.querySelector(`[data-tag-index="${ve}"]`).focus()});u.useEffect(()=>{R&&le>Se.length-1&&(te(-1),ke(-1))},[Se,R,le,ke]);function Ee(ve,ge){if(!ae.current||ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Te.length||ge==="previous"&&nt===-1)return-1;const ft=ae.current.querySelector(`[data-option-index="${nt}"]`),Vt=m?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&!ft.hasAttribute("tabindex")||Vt)nt+=ge==="next"?1:-1;else return nt}}const $e=jn(({event:ve,index:ge,reason:nt="auto"})=>{if(_e.current=ge,ge===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${q}-option-${ge}`),V&&V(ve,ge===-1?null:Te[ge],nt),!ae.current)return;const ft=ae.current.querySelector('[role="option"].Mui-focused');ft&&(ft.classList.remove("Mui-focused"),ft.classList.remove("Mui-focusVisible"));const Vt=ae.current.parentElement.querySelector('[role="listbox"]');if(!Vt)return;if(ge===-1){Vt.scrollTop=0;return}const un=ae.current.querySelector(`[data-option-index="${ge}"]`);if(un&&(un.classList.add("Mui-focused"),nt==="keyboard"&&un.classList.add("Mui-focusVisible"),Vt.scrollHeight>Vt.clientHeight&&nt!=="mouse")){const wn=un,Fr=Vt.clientHeight+Vt.scrollTop,Ga=wn.offsetTop+wn.offsetHeight;Ga>Fr?Vt.scrollTop=Ga-Vt.clientHeight:wn.offsetTop-wn.offsetHeight*(w?1.3:0)<Vt.scrollTop&&(Vt.scrollTop=wn.offsetTop-wn.offsetHeight*(w?1.3:0))}}),Ge=jn(({event:ve,diff:ge,direction:nt="next",reason:ft="auto"})=>{if(!Xe)return;const un=Ee((()=>{const wn=Te.length-1;if(ge==="reset")return be;if(ge==="start")return 0;if(ge==="end")return wn;const Fr=_e.current+ge;return Fr<0?Fr===-1&&_?-1:v&&_e.current!==-1||Math.abs(ge)>1?0:wn:Fr>wn?Fr===wn+1&&_?-1:v||Math.abs(ge)>1?wn:0:Fr})(),nt);if($e({index:un,reason:ft,event:ve}),t&&ge!=="reset")if(un===-1)se.current.value=Re;else{const wn=X(Te[un]);se.current.value=wn,wn.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&se.current.setSelectionRange(Re.length,wn.length)}}),Ct=u.useCallback(()=>{if(!Xe)return;const ve=R?Se[0]:Se;if(Te.length===0||ve==null){Ge({diff:"reset"});return}if(ae.current){if(ve!=null){const ge=Te[_e.current];if(R&&ge&&$0(Se,ft=>M(ge,ft))!==-1)return;const nt=$0(Te,ft=>M(ft,ve));nt===-1?Ge({diff:"reset"}):$e({index:nt});return}if(_e.current>=Te.length-1){$e({index:Te.length-1});return}$e({index:_e.current})}},[Te.length,R?!1:Se,g,Ge,$e,Xe,Re,R]),jt=jn(ve=>{su(ae,ve),ve&&Ct()});u.useEffect(()=>{Ct()},[Ct]);const Ht=ve=>{et||(Pt(!0),at(!0),L&&L(ve))},Jn=(ve,ge)=>{et&&(Pt(!1),A&&A(ve,ge))},hn=(ve,ge,nt,ft)=>{if(R){if(Se.length===ge.length&&Se.every((Vt,un)=>Vt===ge[un]))return}else if(Se===ge)return;O&&O(ve,ge,nt,ft),Fe(ge)},Kn=u.useRef(!1),Pr=(ve,ge,nt="selectOption",ft="options")=>{let Vt=nt,un=ge;if(R){un=Array.isArray(Se)?Se.slice():[];const wn=$0(un,Fr=>M(ge,Fr));wn===-1?un.push(ge):ft!=="freeSolo"&&(un.splice(wn,1),Vt="removeOption")}yt(ve,un),hn(ve,un,Vt,{option:ge}),!p&&(!ve||!ve.ctrlKey&&!ve.metaKey)&&Jn(ve,Vt),(o===!0||o==="touch"&&Kn.current||o==="mouse"&&!Kn.current)&&se.current.blur()};function mn(ve,ge){if(ve===-1)return-1;let nt=ve;for(;;){if(ge==="next"&&nt===Se.length||ge==="previous"&&nt===-1)return-1;const ft=we.querySelector(`[data-tag-index="${nt}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")nt+=ge==="next"?1:-1;else return nt}}const sn=(ve,ge)=>{if(!R)return;Re===""&&Jn(ve,"toggleInput");let nt=le;le===-1?Re===""&&ge==="previous"&&(nt=Se.length-1):(nt+=ge==="next"?1:-1,nt<0&&(nt=0),nt===Se.length&&(nt=-1)),nt=mn(nt,ge),te(nt),ke(nt)},en=ve=>{ie.current=!0,Ae(""),j&&j(ve,"","clear"),hn(ve,R?[]:null,"clear")},Eo=ve=>ge=>{if(ve.onKeyDown&&ve.onKeyDown(ge),!ge.defaultMuiPrevented&&(le!==-1&&["ArrowLeft","ArrowRight"].indexOf(ge.key)===-1&&(te(-1),ke(-1)),ge.which!==229))switch(ge.key){case"Home":Xe&&E&&(ge.preventDefault(),Ge({diff:"start",direction:"next",reason:"keyboard",event:ge}));break;case"End":Xe&&E&&(ge.preventDefault(),Ge({diff:"end",direction:"previous",reason:"keyboard",event:ge}));break;case"PageUp":ge.preventDefault(),Ge({diff:-Q2,direction:"previous",reason:"keyboard",event:ge}),Ht(ge);break;case"PageDown":ge.preventDefault(),Ge({diff:Q2,direction:"next",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowDown":ge.preventDefault(),Ge({diff:1,direction:"next",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowUp":ge.preventDefault(),Ge({diff:-1,direction:"previous",reason:"keyboard",event:ge}),Ht(ge);break;case"ArrowLeft":sn(ge,"previous");break;case"ArrowRight":sn(ge,"next");break;case"Enter":if(_e.current!==-1&&Xe){const nt=Te[_e.current],ft=C?C(nt):!1;if(ge.preventDefault(),ft)return;Pr(ge,nt,"selectOption"),t&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else x&&Re!==""&&It===!1&&(R&&ge.preventDefault(),Pr(ge,Re,"createOption","freeSolo"));break;case"Escape":Xe?(ge.preventDefault(),ge.stopPropagation(),Jn(ge,"escape")):s&&(Re!==""||R&&Se.length>0)&&(ge.preventDefault(),ge.stopPropagation(),en(ge));break;case"Backspace":if(R&&!F&&Re===""&&Se.length>0){const nt=le===-1?Se.length-1:le,ft=Se.slice();ft.splice(nt,1),hn(ge,ft,"removeOption",{option:Se[nt]})}break}},Pi=ve=>{Ze(!0),B&&!ie.current&&Ht(ve)},Ar=ve=>{if(ae.current!==null&&ae.current.parentElement.contains(document.activeElement)){se.current.focus();return}Ze(!1),ee.current=!0,ie.current=!1,r&&_e.current!==-1&&Xe?Pr(ve,Te[_e.current],"blur"):r&&x&&Re!==""?Pr(ve,Re,"blur","freeSolo"):i&&yt(ve,Se),Jn(ve,"blur")},ti=ve=>{const ge=ve.target.value;Re!==ge&&(Ae(ge),at(!1),j&&j(ve,ge,"input")),ge===""?!f&&!R&&hn(ve,null,"clear"):Ht(ve)},Po=ve=>{$e({event:ve,index:Number(ve.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Lt=()=>{Kn.current=!0},Nn=ve=>{const ge=Number(ve.currentTarget.getAttribute("data-option-index"));Pr(ve,Te[ge],"selectOption"),Kn.current=!1},ce=ve=>ge=>{const nt=Se.slice();nt.splice(ve,1),hn(ge,nt,"removeOption",{option:Se[ve]})},me=ve=>{et?Jn(ve,"toggleInput"):Ht(ve)},ze=ve=>{ve.target.getAttribute("id")!==q&&ve.preventDefault()},gt=()=>{se.current.focus(),z&&ee.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ee.current=!1},bt=ve=>{(Re===""||!et)&&me(ve)};let Be=x&&Re.length>0;Be=Be||(R?Se.length>0:Se!==null);let ut=Te;return w&&(ut=Te.reduce((ve,ge,nt)=>{const ft=w(ge);return ve.length>0&&ve[ve.length-1].group===ft?ve[ve.length-1].options.push(ge):ve.push({key:nt,index:nt,group:ft,options:[ge]}),ve},[])),h&&Le&&Ar(),{getRootProps:(ve={})=>S({"aria-owns":ne?`${q}-listbox`:null},ve,{onKeyDown:Eo(ve),onMouseDown:ze,onClick:gt}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Re,onBlur:Ar,onFocus:Pi,onChange:ti,onMouseDown:bt,"aria-activedescendant":Xe?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ne?`${q}-listbox`:void 0,"aria-expanded":ne,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:en}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:me}),getTagProps:({index:ve})=>S({key:ve,"data-tag-index":ve,tabIndex:-1},!F&&{onDelete:ce(ve)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:jt,onMouseDown:ve=>{ve.preventDefault()}}),getOptionProps:({index:ve,option:ge})=>{const nt=(R?Se:[Se]).some(Vt=>Vt!=null&&M(ge,Vt)),ft=C?C(ge):!1;return{key:X(ge),tabIndex:-1,role:"option",id:`${q}-option-${ve}`,onMouseOver:Po,onClick:Nn,onTouchStart:Lt,"data-option-index":ve,"aria-disabled":ft,"aria-selected":nt}},id:q,inputValue:Re,value:Se,dirty:Be,popupOpen:Xe,focused:Le||le!==-1,anchorEl:we,setAnchorEl:de,focusedTag:le,groupedOptions:ut}}function AU(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=PR({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,f=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:f}}function FU(e){return Ke("BaseBadge",e)}Ve("BaseBadge",["root","badge","invisible"]);const NU=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],DU=e=>{const{invisible:t}=e;return Ie({root:["root"],badge:["badge",t&&"invisible"]},FU,void 0)},BU=u.forwardRef(function(t,n){const{component:r,children:o,components:i={},componentsProps:s={},max:a=99,showZero:c=!1}=t,f=oe(t,NU),{badgeContent:p,max:h,displayValue:m,invisible:v}=AU(S({},t,{max:a})),b=S({},t,{badgeContent:p,invisible:v,max:h,showZero:c}),g=DU(b),x=r||i.Root||"span",C=Ef({elementType:x,externalSlotProps:s.root,externalForwardedProps:f,additionalProps:{ref:n},ownerState:b,className:g.root}),P=i.Badge||"span",w=Ef({elementType:P,externalSlotProps:s.badge,ownerState:b,className:g.badge});return T.jsxs(x,S({},C,{children:[o,T.jsx(P,S({},w,{children:m}))]}))}),zU=BU;function J2(e){return e.substring(2).toLowerCase()}function jU(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function qR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),f=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=St(t.ref,a),h=jn(b=>{const g=f.current;f.current=!1;const x=bn(a.current);if(!c.current||!a.current||"clientX"in b&&jU(b,x))return;if(s.current){s.current=!1;return}let C;b.composedPath?C=b.composedPath().indexOf(a.current)>-1:C=!x.documentElement.contains(b.target)||a.current.contains(b.target),!C&&(n||!g)&&o(b)}),m=b=>g=>{f.current=!0;const x=t.props[b];x&&x(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=J2(i),g=bn(a.current),x=()=>{s.current=!0};return g.addEventListener(b,h),g.addEventListener("touchmove",x),()=>{g.removeEventListener(b,h),g.removeEventListener("touchmove",x)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=J2(r),g=bn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,v)})}var Yr="top",Ko="bottom",qo="right",Xr="left",mC="auto",Jf=[Yr,Ko,qo,Xr],lu="start",Pf="end",HU="clippingParents",YR="viewport",pd="popper",VU="reference",Z2=Jf.reduce(function(e,t){return e.concat([t+"-"+lu,t+"-"+Pf])},[]),XR=[].concat(Jf,[mC]).reduce(function(e,t){return e.concat([t,t+"-"+lu,t+"-"+Pf])},[]),UU="beforeRead",WU="read",GU="afterRead",KU="beforeMain",qU="main",YU="afterMain",XU="beforeWrite",QU="write",JU="afterWrite",ZU=[UU,WU,GU,KU,qU,YU,XU,QU,JU];function Qi(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ea(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function Vo(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gC(e){if(typeof ShadowRoot=="undefined")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eW(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];!Vo(i)||!Qi(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 tW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,f){return c[f]="",c},{});!Vo(o)||!Qi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const nW={name:"applyStyles",enabled:!0,phase:"write",fn:eW,effect:tW,requires:["computeStyles"]};function Gi(e){return e.split("-")[0]}var fa=Math.max,Dm=Math.min,au=Math.round;function ab(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function QR(){return!/^((?!chrome|android).)*safari/i.test(ab())}function cu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Vo(e)&&(o=e.offsetWidth>0&&au(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&au(r.height)/e.offsetHeight||1);var s=Ea(e)?Jo(e):window,a=s.visualViewport,c=!QR()&&n,f=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function vC(e){var t=cu(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 JR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $s(e){return Jo(e).getComputedStyle(e)}function rW(e){return["table","td","th"].indexOf(Qi(e))>=0}function Nl(e){return((Ea(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qg(e){return Qi(e)==="html"?e:e.assignedSlot||e.parentNode||(gC(e)?e.host:null)||Nl(e)}function eI(e){return!Vo(e)||$s(e).position==="fixed"?null:e.offsetParent}function oW(e){var t=/firefox/i.test(ab()),n=/Trident/i.test(ab());if(n&&Vo(e)){var r=$s(e);if(r.position==="fixed")return null}var o=Qg(e);for(gC(o)&&(o=o.host);Vo(o)&&["html","body"].indexOf(Qi(o))<0;){var i=$s(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 Zf(e){for(var t=Jo(e),n=eI(e);n&&rW(n)&&$s(n).position==="static";)n=eI(n);return n&&(Qi(n)==="html"||Qi(n)==="body"&&$s(n).position==="static")?t:n||oW(e)||t}function yC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gd(e,t,n){return fa(e,Dm(t,n))}function iW(e,t,n){var r=Gd(e,t,n);return r>n?n:r}function ZR(){return{top:0,right:0,bottom:0,left:0}}function eO(e){return Object.assign({},ZR(),e)}function tO(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var sW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eO(typeof t!="number"?t:tO(t,Jf))};function lW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Gi(n.placement),c=yC(a),f=[Xr,qo].indexOf(a)>=0,p=f?"height":"width";if(!(!i||!s)){var h=sW(o.padding,n),m=vC(i),v=c==="y"?Yr:Xr,b=c==="y"?Ko:qo,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],x=s[c]-n.rects.reference[c],C=Zf(i),P=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-x/2,E=h[v],k=P-m[p]-h[b],_=P/2-m[p]/2+w,I=Gd(E,_,k),M=c;n.modifiersData[r]=(t={},t[M]=I,t.centerOffset=I-_,t)}}function aW(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)||JR(t.elements.popper,o)&&(t.elements.arrow=o))}const cW={name:"arrow",enabled:!0,phase:"main",fn:lW,effect:aW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(e){return e.split("-")[1]}var uW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:au(t*o)/o||0,y:au(n*o)/o||0}}function tI(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,b=s.y,g=b===void 0?0:b,x=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),w=Xr,E=Yr,k=window;if(f){var _=Zf(n),I="clientHeight",M="clientWidth";if(_===Jo(n)&&(_=Nl(n),$s(_).position!=="static"&&a==="absolute"&&(I="scrollHeight",M="scrollWidth")),_=_,o===Yr||(o===Xr||o===qo)&&i===Pf){E=Ko;var R=h&&_===k&&k.visualViewport?k.visualViewport.height:_[I];g-=R-r.height,g*=c?1:-1}if(o===Xr||(o===Yr||o===Ko)&&i===Pf){w=qo;var O=h&&_===k&&k.visualViewport?k.visualViewport.width:_[M];v-=O-r.width,v*=c?1:-1}}var A=Object.assign({position:a},f&&uW),V=p===!0?dW({x:v,y:g}):{x:v,y:g};if(v=V.x,g=V.y,c){var j;return Object.assign({},A,(j={},j[E]=P?"0":"",j[w]=C?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},A,(t={},t[E]=P?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function fW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:Gi(t.placement),variation:uu(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,tI(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tI(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const pW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fW,data:{}};var kh={passive:!0};function hW(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=Jo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,kh)}),a&&c.addEventListener("resize",n.update,kh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,kh)}),a&&c.removeEventListener("resize",n.update,kh)}}const mW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hW,data:{}};var gW={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,function(t){return gW[t]})}var vW={start:"end",end:"start"};function nI(e){return e.replace(/start|end/g,function(t){return vW[t]})}function bC(e){var t=Jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wC(e){return cu(Nl(e)).left+bC(e).scrollLeft}function yW(e,t){var n=Jo(e),r=Nl(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var f=QR();(f||!f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+wC(e),y:c}}function bW(e){var t,n=Nl(e),r=bC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=fa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=fa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wC(e),c=-r.scrollTop;return $s(o||n).direction==="rtl"&&(a+=fa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function CC(e){var t=$s(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function nO(e){return["html","body","#document"].indexOf(Qi(e))>=0?e.ownerDocument.body:Vo(e)&&CC(e)?e:nO(Qg(e))}function Kd(e,t){var n;t===void 0&&(t=[]);var r=nO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Jo(r),s=o?[i].concat(i.visualViewport||[],CC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Kd(Qg(s)))}function cb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wW(e,t){var n=cu(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 rI(e,t,n){return t===YR?cb(yW(e,n)):Ea(t)?wW(t,n):cb(bW(Nl(e)))}function CW(e){var t=Kd(Qg(e)),n=["absolute","fixed"].indexOf($s(e).position)>=0,r=n&&Vo(e)?Zf(e):e;return Ea(r)?t.filter(function(o){return Ea(o)&&JR(o,r)&&Qi(o)!=="body"}):[]}function xW(e,t,n,r){var o=t==="clippingParents"?CW(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,f){var p=rI(e,f,r);return c.top=fa(p.top,c.top),c.right=Dm(p.right,c.right),c.bottom=Dm(p.bottom,c.bottom),c.left=fa(p.left,c.left),c},rI(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 rO(e){var t=e.reference,n=e.element,r=e.placement,o=r?Gi(r):null,i=r?uu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Yr:c={x:s,y:t.y-n.height};break;case Ko:c={x:s,y:t.y+t.height};break;case qo:c={x:t.x+t.width,y:a};break;case Xr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?yC(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case lu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Pf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function kf(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?HU:a,f=n.rootBoundary,p=f===void 0?YR:f,h=n.elementContext,m=h===void 0?pd:h,v=n.altBoundary,b=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,C=eO(typeof x!="number"?x:tO(x,Jf)),P=m===pd?VU:pd,w=e.rects.popper,E=e.elements[b?P:m],k=xW(Ea(E)?E:E.contextElement||Nl(e.elements.popper),c,p,s),_=cu(e.elements.reference),I=rO({reference:_,element:w,strategy:"absolute",placement:o}),M=cb(Object.assign({},w,I)),R=m===pd?M:_,O={top:k.top-R.top+C.top,bottom:R.bottom-k.bottom+C.bottom,left:k.left-R.left+C.left,right:R.right-k.right+C.right},A=e.modifiersData.offset;if(m===pd&&A){var V=A[o];Object.keys(O).forEach(function(j){var L=[qo,Ko].indexOf(j)>=0?1:-1,D=[Yr,Ko].indexOf(j)>=0?"y":"x";O[j]+=V[D]*L})}return O}function SW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?XR:c,p=uu(r),h=p?a?Z2:Z2.filter(function(b){return uu(b)===p}):Jf,m=h.filter(function(b){return f.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=kf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Gi(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function EW(e){if(Gi(e)===mC)return[];var t=nm(e);return[nI(e),t,nI(t)]}function PW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,C=Gi(x),P=C===x,w=c||(P||!b?[nm(x)]:EW(x)),E=[x].concat(w).reduce(function(ee,se){return ee.concat(Gi(se)===mC?SW(t,{placement:se,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:g}):se)},[]),k=t.rects.reference,_=t.rects.popper,I=new Map,M=!0,R=E[0],O=0;O<E.length;O++){var A=E[O],V=Gi(A),j=uu(A)===lu,L=[Yr,Ko].indexOf(V)>=0,D=L?"width":"height",B=kf(t,{placement:A,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),W=L?j?qo:Xr:j?Ko:Yr;k[D]>_[D]&&(W=nm(W));var F=nm(W),z=[];if(i&&z.push(B[V]<=0),a&&z.push(B[W]<=0,B[F]<=0),z.every(function(ee){return ee})){R=A,M=!1;break}I.set(A,z)}if(M)for(var G=b?3:1,q=function(se){var ae=E.find(function(we){var de=I.get(we);if(de)return de.slice(0,se).every(function(le){return le})});if(ae)return R=ae,"break"},X=G;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const kW={name:"flip",enabled:!0,phase:"main",fn:PW,requiresIfExists:["offset"],data:{_skip:!1}};function oI(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 iI(e){return[Yr,qo,Ko,Xr].some(function(t){return e[t]>=0})}function IW(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=kf(t,{elementContext:"reference"}),a=kf(t,{altBoundary:!0}),c=oI(s,r),f=oI(a,o,i),p=iI(c),h=iI(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const _W={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IW};function $W(e,t,n){var r=Gi(e),o=[Xr,Yr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Xr,qo].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=XR.reduce(function(p,h){return p[h]=$W(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const TW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MW};function RW(e){var t=e.state,n=e.name;t.modifiersData[n]=rO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OW={name:"popperOffsets",enabled:!0,phase:"read",fn:RW,data:{}};function LW(e){return e==="x"?"y":"x"}function AW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,x=kf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),C=Gi(t.placement),P=uu(t.placement),w=!P,E=yC(C),k=LW(E),_=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(i){var j,L=E==="y"?Yr:Xr,D=E==="y"?Ko:qo,B=E==="y"?"height":"width",W=_[E],F=W+x[L],z=W-x[D],G=v?-M[B]/2:0,q=P===lu?I[B]:M[B],X=P===lu?-M[B]:-I[B],ie=t.elements.arrow,ee=v&&ie?vC(ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ZR(),ae=se[L],we=se[D],de=Gd(0,I[B],ee[B]),le=w?I[B]/2-G-de-ae-O.mainAxis:q-de-ae-O.mainAxis,te=w?-I[B]/2+G+de+we+O.mainAxis:X+de+we+O.mainAxis,be=t.elements.arrow&&Zf(t.elements.arrow),_e=be?E==="y"?be.clientTop||0:be.clientLeft||0:0,Se=(j=A==null?void 0:A[E])!=null?j:0,Fe=W+le-Se-_e,Re=W+te-Se,Ae=Gd(v?Dm(F,Fe):F,W,v?fa(z,Re):z);_[E]=Ae,V[E]=Ae-W}if(a){var Le,Ze=E==="x"?Yr:Xr,yt=E==="x"?Ko:qo,tt=_[k],et=k==="y"?"height":"width",Pt=tt+x[Ze],mt=tt-x[yt],at=[Yr,Xr].indexOf(C)!==-1,It=(Le=A==null?void 0:A[k])!=null?Le:0,Xe=at?Pt:tt-I[et]-M[et]-It+O.altAxis,Te=at?tt+I[et]+M[et]-It-O.altAxis:mt,ne=v&&at?iW(Xe,tt,Te):Gd(v?Xe:Pt,tt,v?Te:mt);_[k]=ne,V[k]=ne-tt}t.modifiersData[r]=V}}const FW={name:"preventOverflow",enabled:!0,phase:"main",fn:AW,requiresIfExists:["offset"]};function NW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DW(e){return e===Jo(e)||!Vo(e)?bC(e):NW(e)}function BW(e){var t=e.getBoundingClientRect(),n=au(t.width)/e.offsetWidth||1,r=au(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zW(e,t,n){n===void 0&&(n=!1);var r=Vo(t),o=Vo(t)&&BW(t),i=Nl(t),s=cu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Qi(t)!=="body"||CC(i))&&(a=DW(t)),Vo(t)?(c=cu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=wC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function jW(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 HW(e){var t=jW(e);return ZU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function VW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function UW(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 sI={placement:"bottom",modifiers:[],strategy:"absolute"};function lI(){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 WW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?sI:o;return function(a,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},sI,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(C){var P=typeof C=="function"?C(p.options):C;g(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:Ea(a)?Kd(a):a.contextElement?Kd(a.contextElement):[],popper:Kd(c)};var w=HW(UW([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(E){return E.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var C=p.elements,P=C.reference,w=C.popper;if(lI(P,w)){p.rects={reference:zW(P,Zf(w),p.options.strategy==="fixed"),popper:vC(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<p.orderedModifiers.length;E++){if(p.reset===!0){p.reset=!1,E=-1;continue}var k=p.orderedModifiers[E],_=k.fn,I=k.options,M=I===void 0?{}:I,R=k.name;typeof _=="function"&&(p=_({state:p,options:M,name:R,instance:v})||p)}}}},update:VW(function(){return new Promise(function(x){v.forceUpdate(),x(p)})}),destroy:function(){g(),m=!0}};if(!lI(a,c))return v;v.setOptions(f).then(function(x){!m&&f.onFirstUpdate&&f.onFirstUpdate(x)});function b(){p.orderedModifiers.forEach(function(x){var C=x.name,P=x.options,w=P===void 0?{}:P,E=x.effect;if(typeof E=="function"){var k=E({state:p,name:C,instance:v,options:w}),_=function(){};h.push(k||_)}})}function g(){h.forEach(function(x){return x()}),h=[]}return v}}var GW=[mW,OW,pW,nW,TW,kW,FW,cW,_W],KW=WW({defaultModifiers:GW});function qW(e){return typeof e=="function"?e():e}const YW=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=St(u.isValidElement(r)?r.ref:null,n);return On(()=>{i||a(qW(o)||document.body)},[o,i]),On(()=>{if(s&&!i)return su(n,s),()=>{su(n,null)}},[n,s,i]),i?u.isValidElement(r)?u.cloneElement(r,{ref:c}):r:s&&Cl.createPortal(r,s)}),oO=YW;function XW(e){return Ke("MuiPopperUnstyled",e)}Ve("MuiPopperUnstyled",["root"]);const QW=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],JW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function ZW(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 ub(e){return typeof e=="function"?e():e}const eG=()=>Ie({root:["root"]},XW,{}),tG={},nG=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,components:a={},componentsProps:c={},direction:f,disablePortal:p,modifiers:h,open:m,ownerState:v,placement:b,popperOptions:g,popperRef:x,TransitionProps:C}=t,P=oe(t,QW),w=u.useRef(null),E=St(w,n),k=u.useRef(null),_=St(k,x),I=u.useRef(_);On(()=>{I.current=_},[_]),u.useImperativeHandle(x,()=>k.current,[]);const M=ZW(b,f),[R,O]=u.useState(M);u.useEffect(()=>{k.current&&k.current.forceUpdate()}),On(()=>{if(!o||!m)return;const D=F=>{O(F.placement)};ub(o);let B=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{D(F)}}];h!=null&&(B=B.concat(h)),g&&g.modifiers!=null&&(B=B.concat(g.modifiers));const W=KW(ub(o),w.current,S({placement:M},g,{modifiers:B}));return I.current(W),()=>{W.destroy(),I.current(null)}},[o,p,h,m,g,M]);const A={placement:R};C!==null&&(A.TransitionProps=C);const V=eG(),j=(r=s!=null?s:a.Root)!=null?r:"div",L=Ef({elementType:j,externalSlotProps:c.root,externalForwardedProps:P,additionalProps:{role:"tooltip",ref:E},ownerState:S({},t,v),className:V.root});return T.jsx(j,S({},L,{children:typeof i=="function"?i(A):i}))}),rG=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=tG,popperRef:v,style:b,transition:g=!1}=t,x=oe(t,JW),[C,P]=u.useState(!0),w=()=>{P(!1)},E=()=>{P(!0)};if(!c&&!p&&(!g||C))return null;const k=i||(r?bn(ub(r)).body:void 0);return T.jsx(oO,{disablePortal:a,container:k,children:T.jsx(nG,S({anchorEl:r,direction:s,disablePortal:a,modifiers:f,ref:n,open:g?!C:p,placement:h,popperOptions:m,popperRef:v},x,{style:S({position:"fixed",top:0,left:0,display:!p&&c&&(!g||C)?"none":null},b),TransitionProps:g?{in:p,onEnter:w,onExited:E}:null,children:o}))})}),oG=rG;function iG(e){const t=bn(e);return t.body===e?Jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function aI(e){return parseInt(Jr(e).getComputedStyle(e).paddingRight,10)||0}function sG(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 cI(e,t,n,r=[],o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!sG(s);a&&c&&qd(s,o)})}function M0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function lG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(iG(r)){const s=SR(bn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${aI(r)+s}px`;const a=bn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${aI(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=bn(r).body;else{const s=r.parentElement,a=Jr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function aG(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class cG{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&&qd(t.modalRef,!1);const o=aG(n);cI(n,t.mount,t.modalRef,o,!0);const i=M0(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=M0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=lG(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=M0(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&&qd(t.modalRef,n),cI(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&&qd(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const uG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dG(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 fG(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 pG(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fG(e))}function hG(e){const t=[],n=[];return Array.from(e.querySelectorAll(uG)).forEach((r,o)=>{const i=dG(r);i===-1||!pG(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 mG(){return!0}function iO(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=hG,isEnabled:s=mG,open:a}=e,c=u.useRef(),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=St(t.ref,b),x=u.useRef(null);u.useEffect(()=>{!a||!b.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const w=bn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),v.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 w=bn(b.current),E=I=>{const{current:M}=b;if(M!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!M.contains(w.activeElement)){if(I&&m.current!==I.target||w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let A=[];if((w.activeElement===f.current||w.activeElement===p.current)&&(A=i(b.current)),A.length>0){var R,O;const V=Boolean(((R=x.current)==null?void 0:R.shiftKey)&&((O=x.current)==null?void 0:O.key)==="Tab"),j=A[0],L=A[A.length-1];V?L.focus():j.focus()}else M.focus()}}},k=I=>{x.current=I,!(r||!s()||I.key!=="Tab")&&w.activeElement===b.current&&I.shiftKey&&(c.current=!0,p.current.focus())};w.addEventListener("focusin",E),w.addEventListener("keydown",k,!0);const _=setInterval(()=>{w.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(_),w.removeEventListener("focusin",E),w.removeEventListener("keydown",k,!0)}},[n,r,o,s,a,i]);const C=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0,m.current=w.target;const E=t.props.onFocus;E&&E(w)},P=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:C}),T.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:p,"data-testid":"sentinelEnd"})]})}function gG(e){return Ke("MuiModal",e)}Ve("MuiModal",["root","hidden"]);const vG=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"],yG=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"]},gG,r)};function bG(e){return typeof e=="function"?e():e}function wG(e){return e.children?e.children.props.hasOwnProperty("in"):!1}const CG=new cG,xG=u.forwardRef(function(t,n){var r;const{children:o,classes:i,closeAfterTransition:s=!1,component:a="div",components:c={},componentsProps:f={},container:p,disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:b=!1,disableRestoreFocus:g=!1,disableScrollLock:x=!1,hideBackdrop:C=!1,keepMounted:P=!1,manager:w=CG,onBackdropClick:E,onClose:k,onKeyDown:_,open:I,onTransitionEnter:M,onTransitionExited:R}=t,O=oe(t,vG),[A,V]=u.useState(!0),j=u.useRef({}),L=u.useRef(null),D=u.useRef(null),B=St(D,n),W=wG(t),F=(r=t["aria-hidden"])!=null?r:!0,z=()=>bn(L.current),G=()=>(j.current.modalRef=D.current,j.current.mountNode=L.current,j.current),q=()=>{w.mount(G(),{disableScrollLock:x}),D.current.scrollTop=0},X=jn(()=>{const Le=bG(p)||z().body;w.add(G(),Le),D.current&&q()}),ie=u.useCallback(()=>w.isTopModal(G()),[w]),ee=jn(Le=>{L.current=Le,Le&&(I&&ie()?q():qd(D.current,F))}),se=u.useCallback(()=>{w.remove(G(),F)},[w,F]);u.useEffect(()=>()=>{se()},[se]),u.useEffect(()=>{I?X():(!W||!s)&&se()},[I,se,W,s,X]);const ae=S({},t,{classes:i,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:b,disableRestoreFocus:g,disableScrollLock:x,exited:A,hideBackdrop:C,keepMounted:P}),we=yG(ae),de=()=>{V(!1),M&&M()},le=()=>{V(!0),R&&R(),s&&se()},te=Le=>{Le.target===Le.currentTarget&&(E&&E(Le),k&&k(Le,"backdropClick"))},be=Le=>{_&&_(Le),!(Le.key!=="Escape"||!ie())&&(v||(Le.stopPropagation(),k&&k(Le,"escapeKeyDown")))},_e={};o.props.tabIndex===void 0&&(_e.tabIndex="-1"),W&&(_e.onEnter=ib(de,o.props.onEnter),_e.onExited=ib(le,o.props.onExited));const Se=c.Root||a,Fe=Ef({elementType:Se,externalSlotProps:f.root,externalForwardedProps:O,additionalProps:{ref:B,role:"presentation",onKeyDown:be},className:we.root,ownerState:ae}),Re=c.Backdrop,Ae=Ef({elementType:Re,externalSlotProps:f.backdrop,additionalProps:{"aria-hidden":!0,onClick:te,open:I},ownerState:ae});return!P&&!I&&(!W||A)?null:T.jsx(oO,{ref:ee,container:p,disablePortal:b,children:T.jsxs(Se,S({},Fe,{children:[!C&&Re?T.jsx(Re,S({},Ae)):null,T.jsx(iO,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:g,isEnabled:ie,open:I,children:u.cloneElement(o,_e)})]}))})}),SG=xG,EG=["onChange","maxRows","minRows","style","value"];function Ih(e,t){return parseInt(e[t],10)||0}const PG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function uI(e){return e==null||Object.keys(e).length===0}const kG=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=oe(t,EG),{current:f}=u.useRef(a!=null),p=u.useRef(null),h=St(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({}),x=u.useCallback(()=>{const k=p.current,I=Jr(k).getComputedStyle(k);if(I.width==="0px")return{};const M=m.current;M.style.width=I.width,M.value=k.value||t.placeholder||"x",M.value.slice(-1)===`
|
|
78
|
-
`&&(M.value+=" ");const R=I["box-sizing"],O=Ih(I,"padding-bottom")+Ih(I,"padding-top"),A=Ih(I,"border-bottom-width")+Ih(I,"border-top-width"),V=M.scrollHeight;M.value="x";const j=M.scrollHeight;let L=V;i&&(L=Math.max(Number(i)*j,L)),o&&(L=Math.min(Number(o)*j,L)),L=Math.max(L,j);const D=L+(R==="border-box"?O+A:0),B=Math.abs(L-V)<=1;return{outerHeightStyle:D,overflow:B}},[o,i,t.placeholder]),C=(k,_)=>{const{outerHeightStyle:I,overflow:M}=_;return v.current<20&&(I>0&&Math.abs((k.outerHeightStyle||0)-I)>1||k.overflow!==M)?(v.current+=1,{overflow:M,outerHeightStyle:I}):k},P=u.useCallback(()=>{const k=x();uI(k)||g(_=>C(_,k))},[x]),w=()=>{const k=x();uI(k)||Cl.flushSync(()=>{g(_=>C(_,k))})};u.useEffect(()=>{const k=ks(()=>{v.current=0,p.current&&w()}),_=Jr(p.current);_.addEventListener("resize",k);let I;return typeof ResizeObserver!="undefined"&&(I=new ResizeObserver(k),I.observe(p.current)),()=>{k.clear(),_.removeEventListener("resize",k),I&&I.disconnect()}}),On(()=>{P()}),u.useEffect(()=>{v.current=0},[a]);const E=k=>{v.current=0,f||P(),r&&r(k)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",S({value:a,onChange:E,ref:h,rows:i,style:S({height:b.outerHeightStyle,overflow:b.overflow?"hidden":null},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:S({},PG.shadow,s,{padding:0})})]})}),IG=kG;function _G(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const $G=["mode","contrastThreshold","tonalOffset"],dI={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:bf.white,default:bf.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}},T0={text:{primary:bf.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:bf.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 fI(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=_s(e.main,o):t==="dark"&&(e.dark=Is(e.main,i)))}function MG(e="light"){return e==="dark"?{main:uc[200],light:uc[50],dark:uc[400]}:{main:uc[700],light:uc[400],dark:uc[800]}}function TG(e="light"){return e==="dark"?{main:cc[200],light:cc[50],dark:cc[400]}:{main:cc[500],light:cc[300],dark:cc[700]}}function RG(e="light"){return e==="dark"?{main:ac[500],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[400],dark:ac[800]}}function OG(e="light"){return e==="dark"?{main:dc[400],light:dc[300],dark:dc[700]}:{main:dc[700],light:dc[500],dark:dc[900]}}function LG(e="light"){return e==="dark"?{main:fc[400],light:fc[300],dark:fc[700]}:{main:fc[800],light:fc[500],dark:fc[900]}}function AG(e="light"){return e==="dark"?{main:cd[400],light:cd[300],dark:cd[700]}:{main:"#ed6c02",light:cd[500],dark:cd[900]}}function FG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oe(e,$G),i=e.primary||MG(t),s=e.secondary||TG(t),a=e.error||RG(t),c=e.info||OG(t),f=e.success||LG(t),p=e.warning||AG(t);function h(g){return IU(g,T0.text.primary)>=n?T0.text.primary:dI.text.primary}const m=({color:g,name:x,mainShade:C=500,lightShade:P=300,darkShade:w=700})=>{if(g=S({},g),!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Pl(11,x?` (${x})`:"",C));if(typeof g.main!="string")throw new Error(Pl(12,x?` (${x})`:"",JSON.stringify(g.main)));return fI(g,"light",P,r),fI(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:T0,light:dI};return Ho(S({common:S({},bf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:UH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const NG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DG(e){return Math.round(e*1e5)/1e5}const pI={textTransform:"uppercase"},hI='"Roboto", "Helvetica", "Arial", sans-serif';function BG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=hI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=oe(n,NG),v=o/14,b=h||(C=>`${C/f*v}rem`),g=(C,P,w,E,k)=>S({fontFamily:r,fontWeight:C,fontSize:b(P),lineHeight:w},r===hI?{letterSpacing:`${DG(E/P)}em`}:{},k,p),x={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,pI),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,pI)};return Ho(S({htmlFontSize:f,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},x),m,{clone:!1})}const zG=.2,jG=.14,HG=.12;function xn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${HG})`].join(",")}const VG=["none",xn(0,2,1,-1,0,1,1,0,0,1,3,0),xn(0,3,1,-2,0,2,2,0,0,1,5,0),xn(0,3,3,-2,0,3,4,0,0,1,8,0),xn(0,2,4,-1,0,4,5,0,0,1,10,0),xn(0,3,5,-1,0,5,8,0,0,1,14,0),xn(0,3,5,-1,0,6,10,0,0,1,18,0),xn(0,4,5,-2,0,7,10,1,0,2,16,1),xn(0,5,5,-3,0,8,10,1,0,3,14,2),xn(0,5,6,-3,0,9,12,1,0,3,16,2),xn(0,6,6,-3,0,10,14,1,0,4,18,3),xn(0,6,7,-4,0,11,15,1,0,4,20,3),xn(0,7,8,-4,0,12,17,2,0,5,22,4),xn(0,7,8,-4,0,13,19,2,0,5,24,4),xn(0,7,9,-4,0,14,21,2,0,5,26,4),xn(0,8,9,-5,0,15,22,2,0,6,28,5),xn(0,8,10,-5,0,16,24,2,0,6,30,5),xn(0,8,11,-5,0,17,26,2,0,6,32,5),xn(0,9,11,-5,0,18,28,2,0,7,34,6),xn(0,9,12,-6,0,19,29,2,0,7,36,6),xn(0,10,13,-6,0,20,31,3,0,8,38,7),xn(0,10,13,-6,0,21,33,3,0,8,40,7),xn(0,10,14,-6,0,22,35,3,0,8,42,7),xn(0,11,14,-7,0,23,36,3,0,9,44,8),xn(0,11,15,-7,0,24,38,3,0,9,46,8)],UG=VG,WG=["duration","easing","delay"],GG={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)"},sO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mI(e){return`${Math.round(e)}ms`}function KG(e){if(!e)return 0;const t=e/36;return Math.round((4+15*cs(t,.25)+t/5)*10)}function qG(e){const t=S({},GG,e.easing),n=S({},sO,e.duration);return S({getAutoHeightDuration:KG,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return oe(i,WG),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:mI(s)} ${a} ${typeof c=="string"?c:mI(c)}`).join(",")}},e,{easing:t,duration:n})}const YG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},XG=YG,QG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=oe(e,QG);if(e.vars)throw new Error(Pl(18));const a=FG(r),c=fC(e);let f=Ho(c,{mixins:_G(c.breakpoints,n),palette:a,shadows:UG.slice(),typography:BG(a,i),transitions:qG(o),zIndex:S({},XG)});return f=Ho(f,s),f=t.reduce((p,h)=>Ho(p,h),f),f}const JG=xC(),Jg=JG;function Zr(){return Yg(Jg)}function Qe({props:e,name:t}){return EU({props:e,name:t,defaultTheme:Jg})}const So=e=>Wd(e)&&e!=="classes",ZG=Wd,eK=SU({defaultTheme:Jg,rootShouldForwardProp:So}),re=eK;function tK(e){return Ke("MuiPaper",e)}Ve("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const nK=["className","component","elevation","square","variant"],gI=e=>{let t;return e<1?t=5.11916*cs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},rK=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(i,tK,o)},oK=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ot("#fff",gI(t.elevation))}, ${ot("#fff",gI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),iK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,f=oe(r,nK),p=S({},r,{component:i,elevation:s,square:a,variant:c}),h=rK(p);return T.jsx(oK,S({as:i,ownerState:p,className:he(h.root,o),ref:n},f))}),Zo=iK;function sK(e){return Ke("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lK=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aK=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return Ie(o,sK,r)},cK=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,f,p,h,m,v,b,g,x,C,P;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875"}[t.fontSize],color:(m=(v=(e.vars||e).palette)==null||(b=v[t.color])==null?void 0:b.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(x=g.action)==null?void 0:x.active,disabled:(C=(e.vars||e).palette)==null||(P=C.action)==null?void 0:P.disabled,inherit:void 0}[t.color]}}),lO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=oe(r,lK),b=S({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const x=aK(b);return T.jsxs(cK,S({as:a,className:he(x.root,i),ownerState:b,focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{children:[o,h?T.jsx("title",{children:h}):null]}))});lO.muiName="SvgIcon";const vI=lO;function Tt(e,t){const n=(r,o)=>T.jsx(vI,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}));return n.muiName=vI.muiName,u.memo(u.forwardRef(n))}const uK={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
79
|
-
`)),iC.configure(e)}},dK=Object.freeze(Object.defineProperty({__proto__:null,capitalize:fe,createChainedFunction:ib,createSvgIcon:Tt,debounce:ks,deprecatedPropType:oV,isMuiElement:Vd,ownerDocument:bn,ownerWindow:Jr,requirePropFactory:iV,setRef:su,unstable_ClassNameGenerator:uK,unstable_useEnhancedEffect:On,unstable_useId:Pn,unsupportedProp:aV,useControlled:Wi,useEventCallback:jn,useForkRef:St,useIsFocusVisible:Gg},Symbol.toStringTag,{value:"Module"}));function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},db(e,t)}function SC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,db(e,t)}const yI={disabled:!1},Bm=fo.createContext(null);var fK=function(t){return t.scrollTop},Id="unmounted",Ql="exited",Jl="entering",wc="entered",fb="exiting",Rs=function(e){SC(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=Ql,i.appearStatus=Jl):c=wc:r.unmountOnExit||r.mountOnEnter?c=Id:c=Ql,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Id?{status:Ql}: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!==Jl&&s!==wc&&(i=Jl):(s===Jl||s===wc)&&(i=fb)}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===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this);s&&fK(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:Id})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Eh.findDOMNode(this),a],f=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||yI.disabled){this.safeSetState({status:wc},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Jl},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:wc},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Eh.findDOMNode(this);if(!i||yI.disabled){this.safeSetState({status:Ql},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:fb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ql},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Eh.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Id)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=oe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return fo.createElement(Bm.Provider,{value:null},typeof s=="function"?s(o,a):fo.cloneElement(fo.Children.only(s),a))},t}(fo.Component);Rs.contextType=Bm;Rs.propTypes={};function hc(){}Rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hc,onEntering:hc,onEntered:hc,onExit:hc,onExiting:hc,onExited:hc};Rs.UNMOUNTED=Id;Rs.EXITED=Ql;Rs.ENTERING=Jl;Rs.ENTERED=wc;Rs.EXITING=fb;const Zg=Rs;function pb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EC(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 pK(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];a[r[c][s]]=n(f)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function sa(e,t,n){return n[t]!=null?n[t]:e.props[t]}function hK(e,t){return EC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:sa(n,"appear",e),enter:sa(n,"enter",e),exit:sa(n,"exit",e)})})}function mK(e,t,n){var r=EC(e.children),o=pK(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,f=t[i],p=u.isValidElement(f)&&!f.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:sa(s,"exit",e),enter:sa(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(f)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:sa(s,"exit",e),enter:sa(s,"enter",e)}))}}),o}var gK=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},vK={component:"div",childFactory:function(t){return t}},PC=function(e){SC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(pb(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?hK(o,a):mK(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=EC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=S({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=oe(o,["component","childFactory"]),c=this.state.contextValue,f=gK(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?fo.createElement(Bm.Provider,{value:c},f):fo.createElement(Bm.Provider,{value:c},fo.createElement(i,a,f))},t}(fo.Component);PC.propTypes={};PC.defaultProps=vK;const yK=PC,kC=e=>e.scrollTop;function Il(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 bK(e){return Ke("MuiCollapse",e)}Ve("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wK=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],CK=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ie(r,bK,n)},xK=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),SK=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),EK=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),aO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:f,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:x,orientation:C="vertical",style:P,timeout:w=sO.standard,TransitionComponent:E=Zg}=r,k=oe(r,wK),_=S({},r,{orientation:C,collapsedSize:a}),I=CK(_),M=Zr(),R=u.useRef(),O=u.useRef(null),A=u.useRef(),V=typeof a=="number"?`${a}px`:a,j=C==="horizontal",L=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(R.current)},[]);const D=u.useRef(null),B=St(n,D),W=ae=>we=>{if(ae){const de=D.current;we===void 0?ae(de):ae(de,we)}},F=()=>O.current?O.current[j?"clientWidth":"clientHeight"]:0,z=W((ae,we)=>{O.current&&j&&(O.current.style.position="absolute"),ae.style[L]=V,h&&h(ae,we)}),G=W((ae,we)=>{const de=F();O.current&&j&&(O.current.style.position="");const{duration:le,easing:te}=Il({style:P,timeout:w,easing:f},{mode:"enter"});if(w==="auto"){const be=M.transitions.getAutoHeightDuration(de);ae.style.transitionDuration=`${be}ms`,A.current=be}else ae.style.transitionDuration=typeof le=="string"?le:`${le}ms`;ae.style[L]=`${de}px`,ae.style.transitionTimingFunction=te,v&&v(ae,we)}),q=W((ae,we)=>{ae.style[L]="auto",m&&m(ae,we)}),X=W(ae=>{ae.style[L]=`${F()}px`,b&&b(ae)}),ie=W(g),ee=W(ae=>{const we=F(),{duration:de,easing:le}=Il({style:P,timeout:w,easing:f},{mode:"exit"});if(w==="auto"){const te=M.transitions.getAutoHeightDuration(we);ae.style.transitionDuration=`${te}ms`,A.current=te}else ae.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ae.style[L]=V,ae.style.transitionTimingFunction=le,x&&x(ae)}),se=ae=>{w==="auto"&&(R.current=setTimeout(ae,A.current||0)),o&&o(D.current,ae)};return T.jsx(E,S({in:p,onEnter:z,onEntered:q,onEntering:G,onExit:X,onExited:ie,onExiting:ee,addEndListener:se,nodeRef:D,timeout:w==="auto"?null:w},k,{children:(ae,we)=>T.jsx(xK,S({as:c,className:he(I.root,s,{entered:I.entered,exited:!p&&V==="0px"&&I.hidden}[ae]),style:S({[j?"minWidth":"minHeight"]:V},P),ownerState:S({},_,{state:ae}),ref:B},we,{children:T.jsx(SK,{ownerState:S({},_,{state:ae}),className:I.wrapper,ref:O,children:T.jsx(EK,{ownerState:S({},_,{state:ae}),className:I.wrapperInner,children:i})})}))}))});aO.muiSupportAuto=!0;const cO=aO;function PK(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:f}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,f);return()=>{clearTimeout(g)}}},[c,a,f]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:b})})}const kK=Ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Fo=kK,IK=["center","classes","className"];let ev=e=>e,bI,wI,CI,xI;const hb=550,_K=80,$K=Ll(bI||(bI=ev`
|
|
80
|
-
0% {
|
|
81
|
-
transform: scale(0);
|
|
82
|
-
opacity: 0.1;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
100% {
|
|
86
|
-
transform: scale(1);
|
|
87
|
-
opacity: 0.3;
|
|
88
|
-
}
|
|
89
|
-
`)),MK=Ll(wI||(wI=ev`
|
|
90
|
-
0% {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
100% {
|
|
95
|
-
opacity: 0;
|
|
96
|
-
}
|
|
97
|
-
`)),TK=Ll(CI||(CI=ev`
|
|
98
|
-
0% {
|
|
99
|
-
transform: scale(1);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
50% {
|
|
103
|
-
transform: scale(0.92);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
100% {
|
|
107
|
-
transform: scale(1);
|
|
108
|
-
}
|
|
109
|
-
`)),RK=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OK=re(PK,{name:"MuiTouchRipple",slot:"Ripple"})(xI||(xI=ev`
|
|
110
|
-
opacity: 0;
|
|
111
|
-
position: absolute;
|
|
112
|
-
|
|
113
|
-
&.${0} {
|
|
114
|
-
opacity: 0.3;
|
|
115
|
-
transform: scale(1);
|
|
116
|
-
animation-name: ${0};
|
|
117
|
-
animation-duration: ${0}ms;
|
|
118
|
-
animation-timing-function: ${0};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.${0} {
|
|
122
|
-
animation-duration: ${0}ms;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
& .${0} {
|
|
126
|
-
opacity: 1;
|
|
127
|
-
display: block;
|
|
128
|
-
width: 100%;
|
|
129
|
-
height: 100%;
|
|
130
|
-
border-radius: 50%;
|
|
131
|
-
background-color: currentColor;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
& .${0} {
|
|
135
|
-
opacity: 0;
|
|
136
|
-
animation-name: ${0};
|
|
137
|
-
animation-duration: ${0}ms;
|
|
138
|
-
animation-timing-function: ${0};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
& .${0} {
|
|
142
|
-
position: absolute;
|
|
143
|
-
/* @noflip */
|
|
144
|
-
left: 0px;
|
|
145
|
-
top: 0;
|
|
146
|
-
animation-name: ${0};
|
|
147
|
-
animation-duration: 2500ms;
|
|
148
|
-
animation-timing-function: ${0};
|
|
149
|
-
animation-iteration-count: infinite;
|
|
150
|
-
animation-delay: 200ms;
|
|
151
|
-
}
|
|
152
|
-
`),Fo.rippleVisible,$K,hb,({theme:e})=>e.transitions.easing.easeInOut,Fo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Fo.child,Fo.childLeaving,MK,hb,({theme:e})=>e.transitions.easing.easeInOut,Fo.childPulsate,TK,({theme:e})=>e.transitions.easing.easeInOut),LK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=oe(r,IK),[c,f]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=u.useCallback(E=>{const{pulsate:k,rippleX:_,rippleY:I,rippleSize:M,cb:R}=E;f(O=>[...O,T.jsx(OK,{classes:{ripple:he(i.ripple,Fo.ripple),rippleVisible:he(i.rippleVisible,Fo.rippleVisible),ripplePulsate:he(i.ripplePulsate,Fo.ripplePulsate),child:he(i.child,Fo.child),childLeaving:he(i.childLeaving,Fo.childLeaving),childPulsate:he(i.childPulsate,Fo.childPulsate)},timeout:hb,pulsate:k,rippleX:_,rippleY:I,rippleSize:M},p.current)]),p.current+=1,h.current=R},[i]),C=u.useCallback((E={},k={},_)=>{const{pulsate:I=!1,center:M=o||k.pulsate,fakeElement:R=!1}=k;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const O=R?null:g.current,A=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,j,L;if(M||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)V=Math.round(A.width/2),j=Math.round(A.height/2);else{const{clientX:D,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;V=Math.round(D-A.left),j=Math.round(B-A.top)}if(M)L=Math.sqrt((2*cs(A.width,2)+cs(A.height,2))/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((O?O.clientWidth:0)-V),V)*2+2,B=Math.max(Math.abs((O?O.clientHeight:0)-j),j)*2+2;L=Math.sqrt(cs(D,2)+cs(B,2))}E!=null&&E.touches?b.current===null&&(b.current=()=>{x({pulsate:I,rippleX:V,rippleY:j,rippleSize:L,cb:_})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},_K)):x({pulsate:I,rippleX:V,rippleY:j,rippleSize:L,cb:_})},[o,x]),P=u.useCallback(()=>{C({},{pulsate:!0})},[C]),w=u.useCallback((E,k)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{w(E,k)});return}b.current=null,f(_=>_.length>0?_.slice(1):_),h.current=k},[]);return u.useImperativeHandle(n,()=>({pulsate:P,start:C,stop:w}),[P,C,w]),T.jsx(RK,S({className:he(Fo.root,i.root,s),ref:g},a,{children:T.jsx(yK,{component:null,exit:!0,children:c})}))}),AK=LK;function FK(e){return Ke("MuiButtonBase",e)}const NK=Ve("MuiButtonBase",["root","disabled","focusVisible"]),DK=NK,BK=["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"],zK=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},FK,o);return n&&r&&(s.root+=` ${r}`),s},jK=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${DK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),HK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:b,onClick:g,onContextMenu:x,onDragLeave:C,onFocus:P,onFocusVisible:w,onKeyDown:E,onKeyUp:k,onMouseDown:_,onMouseLeave:I,onMouseUp:M,onTouchEnd:R,onTouchMove:O,onTouchStart:A,tabIndex:V=0,TouchRippleProps:j,touchRippleRef:L,type:D}=r,B=oe(r,BK),W=u.useRef(null),F=u.useRef(null),z=St(F,L),{isFocusVisibleRef:G,onFocus:q,onBlur:X,ref:ie}=Gg(),[ee,se]=u.useState(!1);f&&ee&&se(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),W.current.focus()}}),[]);const[ae,we]=u.useState(!1);u.useEffect(()=>{we(!0)},[]);const de=ae&&!p&&!f;u.useEffect(()=>{ee&&m&&!p&&ae&&F.current.pulsate()},[p,m,ee,ae]);function le(Ee,$e,Ge=h){return jn(Ct=>($e&&$e(Ct),!Ge&&F.current&&F.current[Ee](Ct),!0))}const te=le("start",_),be=le("stop",x),_e=le("stop",C),Se=le("stop",M),Fe=le("stop",Ee=>{ee&&Ee.preventDefault(),I&&I(Ee)}),Re=le("start",A),Ae=le("stop",R),Le=le("stop",O),Ze=le("stop",Ee=>{X(Ee),G.current===!1&&se(!1),b&&b(Ee)},!1),yt=jn(Ee=>{W.current||(W.current=Ee.currentTarget),q(Ee),G.current===!0&&(se(!0),w&&w(Ee)),P&&P(Ee)}),tt=()=>{const Ee=W.current;return c&&c!=="button"&&!(Ee.tagName==="A"&&Ee.href)},et=u.useRef(!1),Pt=jn(Ee=>{m&&!et.current&&ee&&F.current&&Ee.key===" "&&(et.current=!0,F.current.stop(Ee,()=>{F.current.start(Ee)})),Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&Ee.preventDefault(),E&&E(Ee),Ee.target===Ee.currentTarget&&tt()&&Ee.key==="Enter"&&!f&&(Ee.preventDefault(),g&&g(Ee))}),mt=jn(Ee=>{m&&Ee.key===" "&&F.current&&ee&&!Ee.defaultPrevented&&(et.current=!1,F.current.stop(Ee,()=>{F.current.pulsate(Ee)})),k&&k(Ee),g&&Ee.target===Ee.currentTarget&&tt()&&Ee.key===" "&&!Ee.defaultPrevented&&g(Ee)});let at=c;at==="button"&&(B.href||B.to)&&(at=v);const It={};at==="button"?(It.type=D===void 0?"button":D,It.disabled=f):(!B.href&&!B.to&&(It.role="button"),f&&(It["aria-disabled"]=f));const Xe=St(ie,W),Te=St(n,Xe),ne=S({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:V,focusVisible:ee}),ke=zK(ne);return T.jsxs(jK,S({as:at,className:he(ke.root,a),ownerState:ne,onBlur:Ze,onClick:g,onContextMenu:be,onFocus:yt,onKeyDown:Pt,onKeyUp:mt,onMouseDown:te,onMouseLeave:Fe,onMouseUp:Se,onDragLeave:_e,onTouchEnd:Ae,onTouchMove:Le,onTouchStart:Re,ref:Te,tabIndex:f?-1:V,type:D},It,B,{children:[s,de?T.jsx(AK,S({ref:z,center:i},j)):null]}))}),Ji=HK;function VK(e){return Ke("MuiAlert",e)}const UK=Ve("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),SI=UK;function WK(e){return Ke("MuiIconButton",e)}const GK=Ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),KK=GK,qK=["edge","children","className","color","disabled","disableFocusRipple","size"],YK=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return Ie(s,WK,t)},XK=re(Ji,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${KK.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})),QK=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,h=oe(r,qK),m=S({},r,{edge:o,color:a,disabled:c,disableFocusRipple:f,size:p}),v=YK(m);return T.jsx(XK,S({className:he(v.root,s),centerRipple:!0,focusRipple:!f,disabled:c,ref:n,ownerState:m},h,{children:i}))}),tr=QK,JK=Tt(T.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ZK=Tt(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),eq=Tt(T.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),tq=Tt(T.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uO=Tt(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var EI;const nq=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],rq=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,VK,o)},oq=re(Zo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Is:_s,r=e.palette.mode==="light"?_s:Is,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),[`& .${SI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${SI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main)}))}),iq=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sq=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),PI=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),kI={success:T.jsx(JK,{fontSize:"inherit"}),warning:T.jsx(ZK,{fontSize:"inherit"}),error:T.jsx(eq,{fontSize:"inherit"}),info:T.jsx(tq,{fontSize:"inherit"})},lq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:c,icon:f,iconMapping:p=kI,onClose:h,role:m="alert",severity:v="success",variant:b="standard"}=r,g=oe(r,nq),x=S({},r,{color:c,severity:v,variant:b}),C=rq(x);return T.jsxs(oq,S({role:m,elevation:0,ownerState:x,className:he(C.root,s),ref:n},g,{children:[f!==!1?T.jsx(iq,{ownerState:x,className:C.icon,children:f||p[v]||kI[v]}):null,T.jsx(sq,{ownerState:x,className:C.message,children:i}),o!=null?T.jsx(PI,{ownerState:x,className:C.action,children:o}):null,o==null&&h?T.jsx(PI,{ownerState:x,className:C.action,children:T.jsx(tr,{size:"small","aria-label":a,title:a,color:"inherit",onClick:h,children:EI||(EI=T.jsx(uO,{fontSize:"small"}))})}):null]}))}),Yo=lq;function aq(e){return Ke("MuiTypography",e)}Ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cq=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uq=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ie(a,aq,s)},dq=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),II={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fq={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pq=e=>fq[e]||e,hq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTypography"}),o=pq(r.color),i=dC(S({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=II}=i,b=oe(i,cq),g=S({},i,{align:s,color:o,className:a,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:v}),x=c||(h?"p":v[m]||II[m])||"span",C=uq(g);return T.jsx(dq,S({as:x,ref:n,ownerState:g,className:he(C.root,a)},b))}),Cr=hq;function mq(e){return Ke("MuiAppBar",e)}Ve("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const gq=["className","color","enableColorOnDark","position"],vq=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${fe(t)}`,`position${fe(n)}`]};return Ie(o,mq,r)},_h=(e,t)=>`${e==null?void 0:e.replace(")","")}, ${t})`,yq=re(Zo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:_h(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:_h(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:_h(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:_h(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),bq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=oe(r,gq),f=S({},r,{color:i,position:a,enableColorOnDark:s}),p=vq(f);return T.jsx(yq,S({square:!0,component:"header",ownerState:f,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),wq=bq,Cq=re(oG,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xq=u.forwardRef(function(t,n){const r=pC(),o=Qe({props:t,name:"MuiPopper"});return T.jsx(Cq,S({direction:r==null?void 0:r.direction},o,{ref:n}))}),Aa=xq;function Sq(e){return Ke("MuiListSubheader",e)}Ve("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Eq=["className","color","component","disableGutters","disableSticky","inset"],Pq=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${fe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ie(s,Sq,t)},kq=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Iq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:f=!1}=r,p=oe(r,Eq),h=S({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:f}),m=Pq(h);return T.jsx(kq,S({as:s,className:he(m.root,o),ref:n,ownerState:h},p))}),_q=Iq,$q=Tt(T.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Mq(e){return Ke("MuiChip",e)}const Tq=Ve("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gt=Tq,Rq=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Oq=e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:i,clickable:s,variant:a}=e,c={root:["root",a,n&&"disabled",`size${fe(r)}`,`color${fe(o)}`,s&&"clickable",s&&`clickableColor${fe(o)}`,i&&"deletable",i&&`deletableColor${fe(o)}`,`${a}${fe(o)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(o)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(o)}`,`deleteIcon${fe(a)}Color${fe(o)}`]};return Ie(c,Mq,t)},Lq=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:i,size:s,variant:a}=n;return[{[`& .${Gt.avatar}`]:t.avatar},{[`& .${Gt.avatar}`]:t[`avatar${fe(s)}`]},{[`& .${Gt.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${Gt.icon}`]:t.icon},{[`& .${Gt.icon}`]:t[`icon${fe(s)}`]},{[`& .${Gt.icon}`]:t[`iconColor${fe(r)}`]},{[`& .${Gt.deleteIcon}`]:t.deleteIcon},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${fe(s)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${fe(a)}Color${fe(r)}`]},t.root,t[`size${fe(s)}`],t[`color${fe(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${fe(r)}`],t[a],t[`${a}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=ot(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Gt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Gt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Gt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Gt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Gt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Gt.icon}`]:S({color:e.vars?e.vars.palette.Chip.defaultIconColor:r,marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.color!=="default"&&{color:"inherit"}),[`& .${Gt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ot(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ot(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&&{[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Gt.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}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:ot(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, &.${Gt.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]}`,[`&.${Gt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Gt.avatar}`]:{marginLeft:4},[`& .${Gt.avatarSmall}`]:{marginLeft:2},[`& .${Gt.icon}`]:{marginLeft:4},[`& .${Gt.iconSmall}`]:{marginLeft:2},[`& .${Gt.deleteIcon}`]:{marginRight:5},[`& .${Gt.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)`:ot(e.palette[t.color].main,.7)}`,[`&.${Gt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ot(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Gt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ot(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Aq=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function _I(e){return e.key==="Backspace"||e.key==="Delete"}const Fq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:f,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:b,onKeyDown:g,onKeyUp:x,size:C="medium",variant:P="filled"}=r,w=oe(r,Rq),E=u.useRef(null),k=St(E,n),_=W=>{W.stopPropagation(),b&&b(W)},I=W=>{W.currentTarget===W.target&&_I(W)&&W.preventDefault(),g&&g(W)},M=W=>{W.currentTarget===W.target&&(b&&_I(W)?b(W):W.key==="Escape"&&E.current&&E.current.blur()),x&&x(W)},R=s!==!1&&v?!0:s,O=R||b?Ji:c||"div",A=S({},r,{component:O,disabled:p,size:C,color:a,onDelete:!!b,clickable:R,variant:P}),V=Oq(A),j=O===Ji?S({component:c||"div",focusVisibleClassName:V.focusVisible},b&&{disableRipple:!0}):{};let L=null;b&&(L=f&&u.isValidElement(f)?u.cloneElement(f,{className:he(f.props.className,V.deleteIcon),onClick:_}):T.jsx($q,{className:he(V.deleteIcon),onClick:_}));let D=null;o&&u.isValidElement(o)&&(D=u.cloneElement(o,{className:he(V.avatar,o.props.className)}));let B=null;return h&&u.isValidElement(h)&&(B=u.cloneElement(h,{className:he(V.icon,h.props.className)})),T.jsxs(Lq,S({as:O,className:he(V.root,i),disabled:R&&p?!0:void 0,onClick:v,onKeyDown:I,onKeyUp:M,ref:k,ownerState:A},j,w,{children:[D||B,T.jsx(Aq,{className:he(V.label),ownerState:A,children:m}),L]}))}),tv=Fq;function Fa({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 Nq=u.createContext(),nv=Nq;function Os(){return u.useContext(nv)}function Dq(e){return T.jsx(Z8,S({},e,{defaultTheme:Jg}))}function $I(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function IC(e,t=!1){return e&&($I(e.value)&&e.value!==""||t&&$I(e.defaultValue)&&e.defaultValue!=="")}function Bq(e){return e.startAdornment}function zq(e){return Ke("MuiInputBase",e)}const jq=Ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ji=jq,Hq=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],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${fe(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]},Vq=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:v,type:b}=e,g={root:["root",`color${fe(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ie(g,zq,t)},iv=re("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",[`&.${ji.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%"})),sv=re("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] + .${ji.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},[`&.${ji.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"})}),Uq=T.jsx(Dq,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Wq=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:v,fullWidth:b=!1,id:g,inputComponent:x="input",inputProps:C={},inputRef:P,maxRows:w,minRows:E,multiline:k=!1,name:_,onBlur:I,onChange:M,onClick:R,onFocus:O,onKeyDown:A,onKeyUp:V,placeholder:j,readOnly:L,renderSuffix:D,rows:B,startAdornment:W,type:F="text",value:z}=r,G=oe(r,Hq),q=C.value!=null?C.value:z,{current:X}=u.useRef(q!=null),ie=u.useRef(),ee=u.useCallback(Te=>{},[]),se=St(C.ref,ee),ae=St(P,se),we=St(ie,ae),[de,le]=u.useState(!1),te=Os(),be=Fa({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=te?te.focused:de,u.useEffect(()=>{!te&&h&&de&&(le(!1),I&&I())},[te,h,de,I]);const _e=te&&te.onFilled,Se=te&&te.onEmpty,Fe=u.useCallback(Te=>{IC(Te)?_e&&_e():Se&&Se()},[_e,Se]);On(()=>{X&&Fe({value:q})},[q,Fe,X]);const Re=Te=>{if(be.disabled){Te.stopPropagation();return}O&&O(Te),C.onFocus&&C.onFocus(Te),te&&te.onFocus?te.onFocus(Te):le(!0)},Ae=Te=>{I&&I(Te),C.onBlur&&C.onBlur(Te),te&&te.onBlur?te.onBlur(Te):le(!1)},Le=(Te,...ne)=>{if(!X){const ke=Te.target||ie.current;if(ke==null)throw new Error(Pl(1));Fe({value:ke.value})}C.onChange&&C.onChange(Te,...ne),M&&M(Te,...ne)};u.useEffect(()=>{Fe(ie.current)},[]);const Ze=Te=>{ie.current&&Te.currentTarget===Te.target&&ie.current.focus(),R&&R(Te)};let yt=x,tt=C;k&&yt==="input"&&(B?tt=S({type:void 0,minRows:B,maxRows:B},tt):tt=S({type:void 0,maxRows:w,minRows:E},tt),yt=IG);const et=Te=>{Fe(Te.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};u.useEffect(()=>{te&&te.setAdornedStart(Boolean(W))},[te,W]);const Pt=S({},r,{color:be.color||"primary",disabled:be.disabled,endAdornment:v,error:be.error,focused:be.focused,formControl:te,fullWidth:b,hiddenLabel:be.hiddenLabel,multiline:k,size:be.size,startAdornment:W,type:F}),mt=Vq(Pt),at=c.Root||iv,It=f.root||{},Xe=c.Input||sv;return tt=S({},tt,f.input),T.jsxs(u.Fragment,{children:[!m&&Uq,T.jsxs(at,S({},It,!kl(at)&&{ownerState:S({},Pt,It.ownerState)},{ref:n,onClick:Ze},G,{className:he(mt.root,It.className,a),children:[W,T.jsx(nv.Provider,{value:null,children:T.jsx(Xe,S({ownerState:Pt,"aria-invalid":be.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:be.disabled,id:g,onAnimationStart:et,name:_,placeholder:j,readOnly:L,required:be.required,rows:B,value:q,onKeyDown:A,onKeyUp:V,type:F},tt,!kl(Xe)&&{as:yt,ownerState:S({},Pt,tt.ownerState)},{ref:we,className:he(mt.input,tt.className),onBlur:Ae,onChange:Le,onFocus:Re}))}),v,D?D(S({},be,{startAdornment:W})):null]}))]})}),Pu=Wq;function Gq(e){return Ke("MuiInput",e)}const Kq=S({},ji,Ve("MuiInput",["root","underline","input"])),la=Kq;function qq(e){return Ke("MuiOutlinedInput",e)}const Yq=S({},ji,Ve("MuiOutlinedInput",["root","notchedOutline","input"])),Ri=Yq;function Xq(e){return Ke("MuiFilledInput",e)}const Qq=S({},ji,Ve("MuiFilledInput",["root","underline","input"])),Di=Qq,dO=Tt(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Jq(e){return Ke("MuiAutocomplete",e)}const Zq=Ve("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),zt=Zq;var MI,TI;const eY=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],tY=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${fe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(p,Jq,t)},nY=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${zt.tag}`]:t.tag},{[`& .${zt.tag}`]:t[`tagSize${fe(a)}`]},{[`& .${zt.inputRoot}`]:t.inputRoot},{[`& .${zt.input}`]:t.input},{[`& .${zt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${zt.inputRoot}`]:{flexWrap:"wrap",[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${zt.input}`]:{width:0,minWidth:30}},[`& .${la.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${la.root}.${ji.sizeSmall}`]:{[`& .${la.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ri.root}`]:{padding:9,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Ri.root}.${ji.sizeSmall}`]:{padding:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Di.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Di.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Di.root}.${ji.sizeSmall}`]:{paddingBottom:1,[`& .${Di.input}`]:{padding:"2.5px 4px"}},[`& .${ji.hiddenLabel}`]:{paddingTop:8},[`& .${zt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),rY=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),oY=re(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),iY=re(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),sY=re(Aa,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),lY=re(Zo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),aY=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),cY=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),uY=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${zt.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"},[`&.${zt.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"},[`&.${zt.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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),dY=re(_q,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),fY=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),pY=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=MI||(MI=T.jsx(uO,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:x=!1,clearText:C="Clear",closeText:P="Close",componentsProps:w={},defaultValue:E=a.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:_=!1,disabled:I=!1,disabledItemsFocusable:M=!1,disableListWrap:R=!1,disablePortal:O=!1,filterSelectedOptions:A=!1,forcePopupIcon:V="auto",freeSolo:j=!1,fullWidth:L=!1,getLimitTagsText:D=Lt=>`+${Lt}`,getOptionLabel:B=Lt=>{var Nn;return(Nn=Lt.label)!=null?Nn:Lt},groupBy:W,handleHomeEndKeys:F=!a.freeSolo,includeInputInList:z=!1,limitTags:G=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:ae="No options",openOnFocus:we=!1,openText:de="Open",PaperComponent:le=Zo,PopperComponent:te=Aa,popupIcon:be=TI||(TI=T.jsx(dO,{})),readOnly:_e=!1,renderGroup:Se,renderInput:Fe,renderOption:Re,renderTags:Ae,selectOnFocus:Le=!a.freeSolo,size:Ze="medium"}=a,yt=oe(a,eY),{getRootProps:tt,getInputProps:et,getInputLabelProps:Pt,getPopupIndicatorProps:mt,getClearProps:at,getTagProps:It,getListboxProps:Xe,getOptionProps:Te,value:ne,dirty:ke,id:Ee,popupOpen:$e,focused:Ge,focusedTag:Ct,anchorEl:jt,setAnchorEl:Ht,inputValue:Jn,groupedOptions:hn}=LU(S({},a,{componentName:"Autocomplete"})),Kn=!k&&!I&&ke&&!_e,Pr=(!j||V===!0)&&V!==!1,mn=S({},a,{disablePortal:O,focused:Ge,fullWidth:L,hasClearIcon:Kn,hasPopupIcon:Pr,inputFocused:Ct===-1,popupOpen:$e,size:Ze}),sn=tY(mn);let en;if(se&&ne.length>0){const Lt=Nn=>S({className:sn.tag,disabled:I},It(Nn));Ae?en=Ae(ne,Lt,mn):en=ne.map((Nn,ce)=>T.jsx(tv,S({label:B(Nn),size:Ze},Lt({index:ce}),m)))}if(G>-1&&Array.isArray(en)){const Lt=en.length-G;!Ge&&Lt>0&&(en=en.splice(0,G),en.push(T.jsx("span",{className:sn.tag,children:D(Lt)},en.length)))}const Pi=Se||(Lt=>T.jsxs("li",{children:[T.jsx(dY,{className:sn.groupLabel,ownerState:mn,component:"div",children:Lt.group}),T.jsx(fY,{className:sn.groupUl,ownerState:mn,children:Lt.children})]},Lt.key)),ti=Re||((Lt,Nn)=>T.jsx("li",S({},Lt,{children:B(Nn)}))),Po=(Lt,Nn)=>{const ce=Te({option:Lt,index:Nn});return ti(S({},ce,{className:sn.option}),Lt,{selected:ce["aria-selected"],inputValue:Jn})};return T.jsxs(u.Fragment,{children:[T.jsx(nY,S({ref:n,className:he(sn.root,v),ownerState:mn},tt(yt),{children:Fe({id:Ee,disabled:I,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:S({ref:Ht,className:sn.inputRoot,startAdornment:en},(Kn||Pr)&&{endAdornment:T.jsxs(rY,{className:sn.endAdornment,ownerState:mn,children:[Kn?T.jsx(oY,S({},at(),{"aria-label":C,title:C,ownerState:mn},w.clearIndicator,{className:he(sn.clearIndicator,(r=w.clearIndicator)==null?void 0:r.className),children:b})):null,Pr?T.jsx(iY,S({},mt(),{disabled:I,"aria-label":$e?P:de,title:$e?P:de,ownerState:mn},w.popupIndicator,{className:he(sn.popupIndicator,(o=w.popupIndicator)==null?void 0:o.className),children:be})):null]})}),inputProps:S({className:sn.input,disabled:I,readOnly:_e},et())})})),jt?T.jsx(sY,S({as:te,disablePortal:O,style:{width:jt?jt.clientWidth:null},ownerState:mn,role:"presentation",anchorEl:jt,open:$e},w.popper,{className:he(sn.popper,(i=w.popper)==null?void 0:i.className),children:T.jsxs(lY,S({ownerState:mn,as:le},w.paper,{className:he(sn.paper,(s=w.paper)==null?void 0:s.className),children:[ie&&hn.length===0?T.jsx(aY,{className:sn.loading,ownerState:mn,children:ee}):null,hn.length===0&&!j&&!ie?T.jsx(cY,{className:sn.noOptions,ownerState:mn,role:"presentation",onMouseDown:Lt=>{Lt.preventDefault()},children:ae}):null,hn.length>0?T.jsx(uY,S({as:q,className:sn.listbox,ownerState:mn},Xe(),X,{children:hn.map((Lt,Nn)=>W?Pi({key:Lt.key,group:Lt.group,children:Lt.options.map((ce,me)=>Po(ce,Lt.index+me))}):Po(Lt,Nn))})):null]}))})):null]})}),_C=pY,hY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],mY={entering:{opacity:1},entered:{opacity:1}},gY=u.forwardRef(function(t,n){const r=Zr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:b,onExiting:g,style:x,timeout:C=o,TransitionComponent:P=Zg}=t,w=oe(t,hY),E=u.useRef(null),k=St(a.ref,n),_=St(E,k),I=D=>B=>{if(D){const W=E.current;B===void 0?D(W):D(W,B)}},M=I(m),R=I((D,B)=>{kC(D);const W=Il({style:x,timeout:C,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",W),D.style.transition=r.transitions.create("opacity",W),p&&p(D,B)}),O=I(h),A=I(g),V=I(D=>{const B=Il({style:x,timeout:C,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),v&&v(D)}),j=I(b),L=D=>{i&&i(E.current,D)};return T.jsx(P,S({appear:s,in:f,nodeRef:E,onEnter:R,onEntered:O,onEntering:M,onExit:V,onExited:j,onExiting:A,addEndListener:L,timeout:C},w,{children:(D,B)=>u.cloneElement(a,S({style:S({opacity:0,visibility:D==="exited"&&!f?"hidden":void 0},mY[D],x,a.props.style),ref:_},B))}))}),fO=gY;function vY(e){return Ke("MuiBackdrop",e)}Ve("MuiBackdrop",["root","invisible"]);const yY=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],bY=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},vY,t)},wY=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),CY=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,component:a="div",components:c={},componentsProps:f={},className:p,invisible:h=!1,open:m,transitionDuration:v,TransitionComponent:b=fO}=i,g=oe(i,yY),x=S({},i,{component:a,invisible:h}),C=bY(x);return T.jsx(b,S({in:m,timeout:v},g,{children:T.jsx(wY,{"aria-hidden":!0,as:(r=c.Root)!=null?r:a,className:he(C.root,p),ownerState:S({},x,(o=f.root)==null?void 0:o.ownerState),classes:C,ref:n,children:s})}))}),pO=CY,xY=e=>!e||!kl(e),RI=xY;function SY(e){return Ke("MuiBadge",e)}const EY=Ve("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ws=EY,PY=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],R0=10,O0=4,kY=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`,`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}${fe(o)}`,`overlap${fe(o)}`,t!=="default"&&`color${fe(t)}`]};return Ie(a,SY,s)},IY=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_Y=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}${fe(n.overlap)}`],n.color!=="default"&&t[`color${fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:R0*2,lineHeight:1,padding:"0 6px",height:R0*2,borderRadius:R0,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:O0,height:O0*2,minWidth:O0*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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.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%",[`&.${Ws.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),$Y=u.forwardRef(function(t,n){var r,o,i,s;const a=Qe({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p="span",components:h={},componentsProps:m={},overlap:v="rectangular",color:b="default",invisible:g=!1,max:x,badgeContent:C,showZero:P=!1,variant:w="standard"}=a,E=oe(a,PY),k=PR({anchorOrigin:c,color:b,overlap:v,variant:w});let _=g;g===!1&&(C===0&&!P||C==null&&w!=="dot")&&(_=!0);const{color:I=b,overlap:M=v,anchorOrigin:R=c,variant:O=w}=_?k:a,A=S({},a,{anchorOrigin:R,invisible:_,color:I,overlap:M,variant:O}),V=kY(A);let j;return O!=="dot"&&(j=C&&Number(C)>x?`${x}+`:C),T.jsx(zU,S({invisible:g,badgeContent:j,showZero:P,max:x},E,{components:S({Root:IY,Badge:_Y},h),className:he((r=m.root)==null?void 0:r.className,V.root,f),componentsProps:{root:S({},m.root,RI(h.Root)&&{as:p,ownerState:S({},(o=m.root)==null?void 0:o.ownerState,{anchorOrigin:R,color:I,overlap:M,variant:O})}),badge:S({},m.badge,{className:he(V.badge,(i=m.badge)==null?void 0:i.className)},RI(h.Badge)&&{ownerState:S({},(s=m.badge)==null?void 0:s.ownerState,{anchorOrigin:R,color:I,overlap:M,variant:O})})},ref:n}))}),hO=$Y,MY=xC(),TY=pU({defaultTheme:MY,defaultClassName:"MuiBox-root",generateClassName:iC.generate}),rt=TY;function RY(e){return Ke("MuiButton",e)}const OY=Ve("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),$h=OY,LY=u.createContext({}),AY=LY,FY=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],NY=["root"],DY=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fe(o)}`],endIcon:["endIcon",`iconSize${fe(o)}`]},c=Ie(a,RY,s);return S({},s,c)},mO=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}}),BY=re(Ji,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(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})`:ot(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})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$h.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$h.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="outlined"&&t.color==="secondary"&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ot(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$h.disabled}`]:{boxShadow:"none"}}),zY=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},mO(e))),jY=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},mO(e))),HY=u.forwardRef(function(t,n){const r=u.useContext(AY),o=kR(r,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:x="medium",startIcon:C,type:P,variant:w="text"}=i,E=oe(i,FY),k=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:x,type:P,variant:w}),_=DY(k),{root:I}=_,M=oe(_,NY),R=C&&T.jsx(zY,{className:M.startIcon,ownerState:k,children:C}),O=v&&T.jsx(jY,{className:M.endIcon,ownerState:k,children:v});return T.jsxs(BY,S({ownerState:k,className:he(r.className,I,f),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he(M.focusVisible,b),ref:n,type:P},E,{classes:M,children:[R,s,O]}))}),ur=HY;function VY(e){return Ke("MuiCard",e)}Ve("MuiCard",["root"]);const UY=["className","raised"],WY=e=>{const{classes:t}=e;return Ie({root:["root"]},VY,t)},GY=re(Zo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),KY=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=oe(r,UY),a=S({},r,{raised:i}),c=WY(a);return T.jsx(GY,S({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),gO=KY;function qY(e){return Ke("MuiCardContent",e)}Ve("MuiCardContent",["root"]);const YY=["className","component"],XY=e=>{const{classes:t}=e;return Ie({root:["root"]},qY,t)},QY=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),JY=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=oe(r,YY),a=S({},r,{component:i}),c=XY(a);return T.jsx(QY,S({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),vO=JY;function ZY(e){return Ke("PrivateSwitchBase",e)}Ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tX=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${fe(o)}`],input:["input"]};return Ie(i,ZY,t)},nX=re(Ji)(({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})),rX=re("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oX=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:b,name:g,onBlur:x,onChange:C,onFocus:P,readOnly:w,required:E,tabIndex:k,type:_,value:I}=t,M=oe(t,eX),[R,O]=Wi({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Os(),V=z=>{P&&P(z),A&&A.onFocus&&A.onFocus(z)},j=z=>{x&&x(z),A&&A.onBlur&&A.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const G=z.target.checked;O(G),C&&C(z,G)};let D=c;A&&typeof D=="undefined"&&(D=A.disabled);const B=_==="checkbox"||_==="radio",W=S({},t,{checked:R,disabled:D,disableFocusRipple:f,edge:p}),F=tX(W);return T.jsxs(nX,S({component:"span",className:he(F.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:V,onBlur:j,ownerState:W,ref:n},M,{children:[T.jsx(rX,S({autoFocus:r,checked:o,defaultChecked:a,className:F.input,disabled:D,id:B&&m,name:g,onChange:L,readOnly:w,ref:b,required:E,ownerState:W,tabIndex:k,type:_},_==="checkbox"&&I===void 0?{}:{value:I},v)),R?i:h]}))}),yO=oX,iX=Tt(T.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),sX=Tt(T.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lX=Tt(T.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function aX(e){return Ke("MuiCheckbox",e)}const cX=Ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),L0=cX,uX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],dX=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${fe(r)}`]},i=Ie(o,aX,t);return S({},t,i)},fX=re(yO,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${L0.checked}, &.${L0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${L0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),pX=T.jsx(sX,{}),hX=T.jsx(iX,{}),mX=T.jsx(lX,{}),gX=u.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=pX,color:a="primary",icon:c=hX,indeterminate:f=!1,indeterminateIcon:p=mX,inputProps:h,size:m="medium"}=i,v=oe(i,uX),b=f?p:c,g=f?p:s,x=S({},i,{color:a,indeterminate:f,size:m}),C=dX(x);return T.jsx(fX,S({type:"checkbox",inputProps:S({"data-indeterminate":f},h),icon:u.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(g,{fontSize:(o=g.props.fontSize)!=null?o:m}),ownerState:x,ref:n},v,{classes:C}))}),bO=gX;function vX(e){return Ke("MuiCircularProgress",e)}Ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yX=["className","color","disableShrink","size","style","thickness","value","variant"];let lv=e=>e,OI,LI,AI,FI;const Gs=44,bX=Ll(OI||(OI=lv`
|
|
153
|
-
0% {
|
|
154
|
-
transform: rotate(0deg);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
100% {
|
|
158
|
-
transform: rotate(360deg);
|
|
159
|
-
}
|
|
160
|
-
`)),wX=Ll(LI||(LI=lv`
|
|
161
|
-
0% {
|
|
162
|
-
stroke-dasharray: 1px, 200px;
|
|
163
|
-
stroke-dashoffset: 0;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
50% {
|
|
167
|
-
stroke-dasharray: 100px, 200px;
|
|
168
|
-
stroke-dashoffset: -15px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
100% {
|
|
172
|
-
stroke-dasharray: 100px, 200px;
|
|
173
|
-
stroke-dashoffset: -125px;
|
|
174
|
-
}
|
|
175
|
-
`)),CX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${fe(r)}`],svg:["svg"],circle:["circle",`circle${fe(n)}`,o&&"circleDisableShrink"]};return Ie(i,vX,t)},xX=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Eu(AI||(AI=lv`
|
|
176
|
-
animation: ${0} 1.4s linear infinite;
|
|
177
|
-
`),bX)),SX=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),EX=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Eu(FI||(FI=lv`
|
|
178
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
179
|
-
`),wX)),PX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=oe(r,yX),v=S({},r,{color:i,disableShrink:s,size:a,thickness:f,value:p,variant:h}),b=CX(v),g={},x={},C={};if(h==="determinate"){const P=2*Math.PI*((Gs-f)/2);g.strokeDasharray=P.toFixed(3),C["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,x.transform="rotate(-90deg)"}return T.jsx(xX,S({className:he(b.root,o),style:S({width:a,height:a},x,c),ownerState:v,ref:n,role:"progressbar"},C,m,{children:T.jsx(SX,{className:b.svg,ownerState:v,viewBox:`${Gs/2} ${Gs/2} ${Gs} ${Gs}`,children:T.jsx(EX,{className:b.circle,style:g,ownerState:v,cx:Gs,cy:Gs,r:(Gs-f)/2,fill:"none",strokeWidth:f})})}))}),ep=PX,kX=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],IX=e=>e.classes,_X=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),$X=re(pO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),MX=u.forwardRef(function(t,n){var r,o;const i=Qe({name:"MuiModal",props:t}),{BackdropComponent:s=$X,BackdropProps:a,closeAfterTransition:c=!1,children:f,component:p,components:h={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:C=!1,disableScrollLock:P=!1,hideBackdrop:w=!1,keepMounted:E=!1,theme:k}=i,_=oe(i,kX),[I,M]=u.useState(!0),R={closeAfterTransition:c,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:C,disableScrollLock:P,hideBackdrop:w,keepMounted:E},O=S({},i,R,{exited:I}),A=IX(O),V=(r=(o=h.Root)!=null?o:p)!=null?r:_X;return T.jsx(SG,S({components:S({Root:V,Backdrop:s},h),componentsProps:{root:()=>S({},lb(m.root,O),!kl(V)&&{as:p,theme:k}),backdrop:()=>S({},a,lb(m.backdrop,O))},onTransitionEnter:()=>M(!1),onTransitionExited:()=>M(!0),ref:n},_,{classes:A},R,{children:f}))}),$C=MX;function TX(e){return Ke("MuiDialog",e)}const RX=Ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),A0=RX,OX=u.createContext({}),wO=OX,LX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],AX=re(pO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(s,TX,t)},NX=re($C,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),DX=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),BX=re(Zo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${A0.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}`,[`&.${A0.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,[`&.${A0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),zX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialog"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:f,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:x,onClose:C,open:P,PaperComponent:w=Zo,PaperProps:E={},scroll:k="paper",TransitionComponent:_=fO,transitionDuration:I=i,TransitionProps:M}=r,R=oe(r,LX),O=S({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:k}),A=FX(O),V=u.useRef(),j=W=>{V.current=W.target===W.currentTarget},L=W=>{V.current&&(V.current=null,x&&x(W),C&&C(W,"backdropClick"))},D=Pn(a),B=u.useMemo(()=>({titleId:D}),[D]);return T.jsx(NX,S({className:he(A.root,h),closeAfterTransition:!0,components:{Backdrop:AX},componentsProps:{backdrop:S({transitionDuration:I,as:c},f)},disableEscapeKeyDown:m,onClose:C,open:P,ref:n,onClick:L,ownerState:O},R,{children:T.jsx(_,S({appear:!0,in:P,timeout:I,role:"presentation"},M,{children:T.jsx(DX,{className:he(A.container),onMouseDown:j,ownerState:O,children:T.jsx(BX,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:he(A.paper,E.className),ownerState:O,children:T.jsx(wO.Provider,{value:B,children:p})}))})}))}))}),jX=zX;function HX(e){return Ke("MuiDialogContent",e)}Ve("MuiDialogContent",["root","dividers"]);function VX(e){return Ke("MuiDialogTitle",e)}const UX=Ve("MuiDialogTitle",["root"]),WX=UX,GX=["className","dividers"],KX=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},HX,t)},qX=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${WX.root} + &`]:{paddingTop:0}})),YX=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=oe(r,GX),a=S({},r,{dividers:i}),c=KX(a);return T.jsx(qX,S({className:he(c.root,o),ownerState:a,ref:n},s))}),XX=YX,QX=["className","id"],JX=e=>{const{classes:t}=e;return Ie({root:["root"]},VX,t)},ZX=re(Cr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),eQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=oe(r,QX),a=r,c=JX(a),{titleId:f=i}=u.useContext(wO);return T.jsx(ZX,S({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:f},s))}),tQ=eQ,nQ=Ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),NI=nQ,rQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Jr(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const f=i.getComputedStyle(t);s=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const f=s.split("(")[1].split(")")[0].split(",");a=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function iQ(e){return typeof e=="function"?e():e}function Mh(e,t,n){const r=iQ(n),o=oQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const sQ=u.forwardRef(function(t,n){const r=Zr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:f,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:b,onEntering:g,onExit:x,onExited:C,onExiting:P,style:w,timeout:E=i,TransitionComponent:k=Zg}=t,_=oe(t,rQ),I=u.useRef(null),M=St(c.ref,I),R=St(M,n),O=z=>G=>{z&&(G===void 0?z(I.current):z(I.current,G))},A=O((z,G)=>{Mh(p,z,f),kC(z),v&&v(z,G)}),V=O((z,G)=>{const q=Il({timeout:E,style:w,easing:h},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",S({},q)),z.style.transition=r.transitions.create("transform",S({},q)),z.style.webkitTransform="none",z.style.transform="none",g&&g(z,G)}),j=O(b),L=O(P),D=O(z=>{const G=Il({timeout:E,style:w,easing:h},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",G),z.style.transition=r.transitions.create("transform",G),Mh(p,z,f),x&&x(z)}),B=O(z=>{z.style.webkitTransition="",z.style.transition="",C&&C(z)}),W=z=>{s&&s(I.current,z)},F=u.useCallback(()=>{I.current&&Mh(p,I.current,f)},[p,f]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const z=ks(()=>{I.current&&Mh(p,I.current,f)}),G=Jr(I.current);return G.addEventListener("resize",z),()=>{z.clear(),G.removeEventListener("resize",z)}},[p,m,f]),u.useEffect(()=>{m||F()},[m,F]),T.jsx(k,S({nodeRef:I,onEnter:A,onEntered:j,onEntering:V,onExit:D,onExited:B,onExiting:L,addEndListener:W,appear:a,in:m,timeout:E},_,{children:(z,G)=>u.cloneElement(c,S({ref:R,style:S({visibility:z==="exited"&&!m?"hidden":void 0},w,c.props.style)},G))}))}),lQ=sQ;function aQ(e){return Ke("MuiDrawer",e)}Ve("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const cQ=["BackdropProps"],uQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],CO=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},dQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fe(n)}`,r!=="temporary"&&`paperAnchorDocked${fe(n)}`]};return Ie(o,aQ,t)},fQ=re($C,{name:"MuiDrawer",slot:"Root",overridesResolver:CO})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),DI=re("div",{shouldForwardProp:So,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:CO})({flex:"0 0 auto"}),pQ=re(Zo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),xO={left:"right",right:"left",top:"down",bottom:"up"};function hQ(e){return["left","right"].indexOf(e)!==-1}function mQ(e,t){return e.direction==="rtl"&&hQ(t)?xO[t]:t}const gQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDrawer"}),o=Zr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:f,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:b=!1,PaperProps:g={},SlideProps:x,TransitionComponent:C=lQ,transitionDuration:P=i,variant:w="temporary"}=r,E=oe(r.ModalProps,cQ),k=oe(r,uQ),_=u.useRef(!1);u.useEffect(()=>{_.current=!0},[]);const I=mQ(o,s),R=S({},r,{anchor:s,elevation:p,open:b,variant:w},k),O=dQ(R),A=T.jsx(pQ,S({elevation:w==="temporary"?p:0,square:!0},g,{className:he(O.paper,g.className),ownerState:R,children:c}));if(w==="permanent")return T.jsx(DI,S({className:he(O.root,O.docked,f),ownerState:R,ref:n},k,{children:A}));const V=T.jsx(C,S({in:b,direction:xO[I],timeout:P,appear:_.current},x,{children:A}));return w==="persistent"?T.jsx(DI,S({className:he(O.root,O.docked,f),ownerState:R,ref:n},k,{children:V})):T.jsx(fQ,S({BackdropProps:S({},a,m,{transitionDuration:P}),className:he(O.root,O.modal,f),open:b,ownerState:R,onClose:v,hideBackdrop:h,ref:n},k,E,{children:V}))}),vQ=gQ,yQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],bQ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},Xq,t);return S({},t,o)},wQ=re(iv,{shouldForwardProp:e=>So(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}},[`&.${Di.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Di.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"},[`&.${Di.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Di.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Di.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Di.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}))}),CQ=re(sv,{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})),SO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFilledInput"}),{components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:c=!1,type:f="text"}=r,p=oe(r,yQ),h=S({},r,{fullWidth:s,inputComponent:a,multiline:c,type:f}),m=bQ(r),v={root:{ownerState:h},input:{ownerState:h}},b=i?Ho(i,v):v;return T.jsx(Pu,S({components:S({Root:wQ,Input:CQ},o),componentsProps:b,fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f},p,{classes:m}))});SO.muiName="Input";const EO=SO;function xQ(e){return Ke("MuiFormControl",e)}Ve("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const SQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],EQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return Ie(o,xQ,t)},PQ=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),kQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:b=!1,size:g="medium",variant:x="outlined"}=r,C=oe(r,SQ),P=S({},r,{color:s,component:a,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:x}),w=EQ(P),[E,k]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{if(!Vd(B,["Input","Select"]))return;const W=Vd(B,["Select"])?B.props.input:B;W&&Bq(W.props)&&(D=!0)}),D}),[_,I]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{Vd(B,["Input","Select"])&&IC(B.props,!0)&&(D=!0)}),D}),[M,R]=u.useState(!1);c&&M&&R(!1);const O=p!==void 0&&!c?p:M;let A;const V=u.useCallback(()=>{I(!0)},[]),j=u.useCallback(()=>{I(!1)},[]),L={adornedStart:E,setAdornedStart:k,color:s,disabled:c,error:f,filled:_,focused:O,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{R(!1)},onEmpty:j,onFilled:V,onFocus:()=>{R(!0)},registerEffect:A,required:b,variant:x};return T.jsx(nv.Provider,{value:L,children:T.jsx(PQ,S({as:a,ownerState:P,className:he(w.root,i),ref:n},C,{children:o}))})}),Na=kQ;function IQ(e){return Ke("MuiFormControlLabel",e)}const _Q=Ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Th=_Q,$Q=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],MQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${fe(r)}`,o&&"error"],label:["label",n&&"disabled"]};return Ie(i,IQ,t)},TQ=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Th.label}`]:t.label},t.root,t[`labelPlacement${fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Th.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Th.label}`]:{[`&.${Th.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),RQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:a,disableTypography:c,label:f,labelPlacement:p="end"}=r,h=oe(r,$Q),m=Os();let v=a;typeof v=="undefined"&&typeof s.props.disabled!="undefined"&&(v=s.props.disabled),typeof v=="undefined"&&m&&(v=m.disabled);const b={disabled:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof s.props[w]=="undefined"&&typeof r[w]!="undefined"&&(b[w]=r[w])});const g=Fa({props:r,muiFormControl:m,states:["error"]}),x=S({},r,{disabled:v,labelPlacement:p,error:g.error}),C=MQ(x);let P=f;return P!=null&&P.type!==Cr&&!c&&(P=T.jsx(Cr,S({component:"span",className:C.label},i.typography,{children:P}))),T.jsxs(TQ,S({className:he(C.root,o),ownerState:x,ref:n},h,{children:[u.cloneElement(s,b),P]}))}),PO=RQ;function OQ(e){return Ke("MuiFormHelperText",e)}const LQ=Ve("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),BI=LQ;var zI;const AQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],FQ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,f={root:["root",o&&"disabled",i&&"error",r&&`size${fe(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Ie(f,OQ,t)},NQ=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${BI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${BI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),DQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=oe(r,AQ),c=Os(),f=Fa({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=S({},r,{component:s,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=FQ(p);return T.jsx(NQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?zI||(zI=T.jsx("span",{className:"notranslate",children:""})):o}))}),av=DQ;function BQ(e){return Ke("MuiFormLabel",e)}const zQ=Ve("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Yd=zQ,jQ=["children","className","color","component","disabled","error","filled","focused","required"],HQ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${fe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(c,BQ,t)},VQ=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Yd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yd.error}`]:{color:(e.vars||e).palette.error.main}})),UQ=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Yd.error}`]:{color:(e.vars||e).palette.error.main}})),WQ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=oe(r,jQ),c=Os(),f=Fa({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=S({},r,{color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=HQ(p);return T.jsxs(VQ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,f.required&&T.jsxs(UQ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),kO=WQ,GQ=u.createContext(),jI=GQ;function KQ(e){return Ke("MuiGrid",e)}const qQ=[0,1,2,3,4,5,6,7,8,9,10],YQ=["column-reverse","column","row-reverse","row"],XQ=["nowrap","wrap-reverse","wrap"],hd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],If=Ve("MuiGrid",["root","container","item","zeroMinWidth",...qQ.map(e=>`spacing-xs-${e}`),...YQ.map(e=>`direction-xs-${e}`),...XQ.map(e=>`wrap-xs-${e}`),...hd.map(e=>`grid-xs-${e}`),...hd.map(e=>`grid-sm-${e}`),...hd.map(e=>`grid-md-${e}`),...hd.map(e=>`grid-lg-${e}`),...hd.map(e=>`grid-xl-${e}`)]),QQ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Wc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function JQ({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=Kg({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let f={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${Wc(p)})`;f={flexBasis:h,maxWidth:h}}}i=S({flexBasis:c,flexGrow:0,maxWidth:c},f)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function ZQ({theme:e,ownerState:t}){const n=Kg({values:t.direction,breakpoints:e.breakpoints.values});return Ci({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${If.item}`]={maxWidth:"none"}),o})}function IO({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 eJ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=IO({breakpoints:e.breakpoints.values,values:i})),o=Ci({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${Wc(p)}`,[`& > .${If.item}`]:{paddingTop:Wc(p)}}:(f=s)!=null&&f.includes(c)?{}:{marginTop:0,[`& > .${If.item}`]:{paddingTop:0}}})}return o}function tJ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=IO({breakpoints:e.breakpoints.values,values:i})),o=Ci({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${Wc(p)})`,marginLeft:`-${Wc(p)}`,[`& > .${If.item}`]:{paddingLeft:Wc(p)}}:(f=s)!=null&&f.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${If.item}`]:{paddingLeft:0}}})}return o}function nJ(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 rJ=re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:f}=n;let p=[];r&&(p=nJ(s,f,t));const h=[];return f.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),ZQ,eJ,tJ,JQ);function oJ(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 iJ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let f=[];n&&(f=oJ(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...f,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Ie(h,KQ,t)},sJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiGrid"}),{breakpoints:o}=Zr(),i=dC(r),{className:s,columns:a,columnSpacing:c,component:f="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:x=!1}=i,C=oe(i,QQ),P=v||b,w=c||b,E=u.useContext(jI),k=p?a||12:E,_={},I=S({},C);o.keys.forEach(O=>{C[O]!=null&&(_[O]=C[O],delete I[O])});const M=S({},i,{columns:k,container:p,direction:h,item:m,rowSpacing:P,columnSpacing:w,wrap:g,zeroMinWidth:x,spacing:b},_,{breakpoints:o.keys}),R=iJ(M);return T.jsx(jI.Provider,{value:k,children:T.jsx(rJ,S({ownerState:M,className:he(R.root,s),as:f,ref:n},I))})}),Vn=sJ,lJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mb(e){return`scale(${e}, ${cs(e,2)})`}const aJ={entering:{opacity:1,transform:mb(1)},entered:{opacity:1,transform:"none"}},F0=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_O=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:v,style:b,timeout:g="auto",TransitionComponent:x=Zg}=t,C=oe(t,lJ),P=u.useRef(),w=u.useRef(),E=Zr(),k=u.useRef(null),_=St(i.ref,n),I=St(k,_),M=B=>W=>{if(B){const F=k.current;W===void 0?B(F):B(F,W)}},R=M(p),O=M((B,W)=>{kC(B);const{duration:F,delay:z,easing:G}=Il({style:b,timeout:g,easing:s},{mode:"enter"});let q;g==="auto"?(q=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=q):q=F,B.style.transition=[E.transitions.create("opacity",{duration:q,delay:z}),E.transitions.create("transform",{duration:F0?q:q*.666,delay:z,easing:G})].join(","),c&&c(B,W)}),A=M(f),V=M(v),j=M(B=>{const{duration:W,delay:F,easing:z}=Il({style:b,timeout:g,easing:s},{mode:"exit"});let G;g==="auto"?(G=E.transitions.getAutoHeightDuration(B.clientHeight),w.current=G):G=W,B.style.transition=[E.transitions.create("opacity",{duration:G,delay:F}),E.transitions.create("transform",{duration:F0?G:G*.666,delay:F0?F:F||G*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=mb(.75),h&&h(B)}),L=M(m),D=B=>{g==="auto"&&(P.current=setTimeout(B,w.current||0)),r&&r(k.current,B)};return u.useEffect(()=>()=>{clearTimeout(P.current)},[]),T.jsx(x,S({appear:o,in:a,nodeRef:k,onEnter:O,onEntered:A,onEntering:R,onExit:j,onExited:L,onExiting:V,addEndListener:D,timeout:g==="auto"?null:g},C,{children:(B,W)=>u.cloneElement(i,S({style:S({opacity:0,transform:mb(.75),visibility:B==="exited"&&!a?"hidden":void 0},aJ[B],b,i.props.style),ref:I},W))}))});_O.muiSupportAuto=!0;const zm=_O;function cJ(e,t,n,r,o){const i=typeof window!="undefined"&&typeof window.matchMedia!="undefined",[s,a]=u.useState(()=>o&&i?n(e).matches:r?r(e).matches:t);return On(()=>{let c=!0;if(!i)return;const f=n(e),p=()=>{c&&a(f.matches)};return p(),f.addListener(p),()=>{c=!1,f.removeListener(p)}},[e,n,i]),s}const $O=Qc["useSyncExternalStore"];function uJ(e,t,n,r){const o=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r]),[s,a]=u.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[o,n,e]);return $O(a,s,i)}function MO(e,t={}){const n=pC(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a}=GR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),($O!==void 0?uJ:cJ)(c,o,i,s,a)}const dJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],fJ=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},Gq,t);return S({},t,o)},pJ=re(iv,{shouldForwardProp:e=>So(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"},[`&.${la.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${la.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${la.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${la.disabled}:before`]:{borderBottomStyle:"dotted"}})}),hJ=re(sv,{name:"MuiInput",slot:"Input",overridesResolver:ov})({}),TO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInput"}),{disableUnderline:o,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:c="input",multiline:f=!1,type:p="text"}=r,h=oe(r,dJ),m=fJ(r),b={root:{ownerState:{disableUnderline:o}}},g=s?Ho(s,b):b;return T.jsx(Pu,S({components:S({Root:pJ,Input:hJ},i),componentsProps:g,fullWidth:a,inputComponent:c,multiline:f,ref:n,type:p},h,{classes:m}))});TO.muiName="Input";const RO=TO;function mJ(e){return Ke("MuiInputAdornment",e)}const gJ=Ve("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),HI=gJ;var VI;const vJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],yJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},bJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${fe(o)}`,s,r&&"hiddenLabel",i&&`size${fe(i)}`]};return Ie(a,mJ,t)},wJ=re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:yJ})(({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"&&{[`&.${HI.positionStart}&:not(.${HI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),CJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:f,variant:p}=r,h=oe(r,vJ),m=Os()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=S({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:f,variant:v}),g=bJ(b);return T.jsx(nv.Provider,{value:null,children:T.jsx(wJ,S({as:s,ownerState:b,className:he(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(Cr,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[f==="start"?VI||(VI=T.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),jm=CJ;function xJ(e){return Ke("MuiInputLabel",e)}Ve("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const SJ=["disableAnimation","margin","shrink","variant"],EJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,f=Ie({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},xJ,t);return S({},t,f)},PJ=re(kO,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),kJ=u.forwardRef(function(t,n){const r=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i}=r,s=oe(r,SJ),a=Os();let c=i;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=Fa({props:r,muiFormControl:a,states:["size","variant","required"]}),p=S({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required}),h=EJ(p);return T.jsx(PJ,S({"data-shrink":c,ownerState:p,ref:n},s,{classes:h}))}),gb=kJ;function IJ(e){return Ke("MuiLinearProgress",e)}Ve("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _J=["className","color","value","valueBuffer","variant"];let ku=e=>e,UI,WI,GI,KI,qI,YI;const vb=4,$J=Ll(UI||(UI=ku`
|
|
180
|
-
0% {
|
|
181
|
-
left: -35%;
|
|
182
|
-
right: 100%;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
60% {
|
|
186
|
-
left: 100%;
|
|
187
|
-
right: -90%;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
100% {
|
|
191
|
-
left: 100%;
|
|
192
|
-
right: -90%;
|
|
193
|
-
}
|
|
194
|
-
`)),MJ=Ll(WI||(WI=ku`
|
|
195
|
-
0% {
|
|
196
|
-
left: -200%;
|
|
197
|
-
right: 100%;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
60% {
|
|
201
|
-
left: 107%;
|
|
202
|
-
right: -8%;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
100% {
|
|
206
|
-
left: 107%;
|
|
207
|
-
right: -8%;
|
|
208
|
-
}
|
|
209
|
-
`)),TJ=Ll(GI||(GI=ku`
|
|
210
|
-
0% {
|
|
211
|
-
opacity: 1;
|
|
212
|
-
background-position: 0 -23px;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
60% {
|
|
216
|
-
opacity: 0;
|
|
217
|
-
background-position: 0 -23px;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
100% {
|
|
221
|
-
opacity: 1;
|
|
222
|
-
background-position: -200px -23px;
|
|
223
|
-
}
|
|
224
|
-
`)),RJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${fe(r)}`,n],dashed:["dashed",`dashedColor${fe(r)}`],bar1:["bar",`barColor${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fe(r)}`,n==="buffer"&&`color${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(o,IJ,t)},MC=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_s(e.palette[t].main,.62):Is(e.palette[t].main,.5),OJ=re("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${fe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:MC(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)"})),LJ=re("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=MC(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"})},Eu(KI||(KI=ku`
|
|
225
|
-
animation: ${0} 3s infinite linear;
|
|
226
|
-
`),TJ)),AJ=re("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${vb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${vb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Eu(qI||(qI=ku`
|
|
227
|
-
width: auto;
|
|
228
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
229
|
-
`),$J)),FJ=re("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:MC(t,e.color),transition:`transform .${vb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Eu(YI||(YI=ku`
|
|
230
|
-
width: auto;
|
|
231
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
232
|
-
`),MJ)),NJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,f=oe(r,_J),p=S({},r,{color:i,variant:c}),h=RJ(p),m=Zr(),v={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),b.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),b.bar2.transform=`translateX(${g}%)`}return T.jsxs(OJ,S({className:he(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},f,{children:[c==="buffer"?T.jsx(LJ,{className:h.dashed,ownerState:p}):null,T.jsx(AJ,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:T.jsx(FJ,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),DJ=NJ;function BJ(e){return Ke("MuiLink",e)}const zJ=Ve("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),jJ=zJ,OO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HJ=e=>OO[e]||e,VJ=({theme:e,ownerState:t})=>{const n=HJ(t.color),r=Sf(e,`palette.${n}`,!1)||t.color,o=Sf(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ot(r,.4)},UJ=VJ,WJ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],GJ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${fe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ie(i,BJ,t)},KJ=re(Cr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:UJ({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"},[`&.${jJ.focusVisible}`]:{outline:"auto"}})),qJ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,v=oe(r,WJ),{isFocusVisibleRef:b,onBlur:g,onFocus:x,ref:C}=Gg(),[P,w]=u.useState(!1),E=St(n,C),k=R=>{g(R),b.current===!1&&w(!1),a&&a(R)},_=R=>{x(R),b.current===!0&&w(!0),c&&c(R)},I=S({},r,{color:i,component:s,focusVisible:P,underline:p,variant:h}),M=GJ(I);return T.jsx(KJ,S({color:i,className:he(M.root,o),classes:f,component:s,onBlur:k,onFocus:_,ref:E,ownerState:I,variant:h,sx:[...Object.keys(OO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),_f=qJ,YJ=u.createContext({}),gi=YJ;function XJ(e){return Ke("MuiList",e)}Ve("MuiList",["root","padding","dense","subheader"]);const QJ=["children","className","component","dense","disablePadding","subheader"],JJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XJ,t)},ZJ=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),eZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:f}=r,p=oe(r,QJ),h=u.useMemo(()=>({dense:a}),[a]),m=S({},r,{component:s,dense:a,disablePadding:c}),v=JJ(m);return T.jsx(gi.Provider,{value:h,children:T.jsxs(ZJ,S({as:s,className:he(v.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})}),cv=eZ;function tZ(e){return Ke("MuiListItem",e)}const nZ=Ve("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Cc=nZ;function rZ(e){return Ke("MuiListItemButton",e)}const oZ=Ve("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),xc=oZ,iZ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],sZ=(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]},lZ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,f=Ie({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},rZ,n);return S({},n,f)},aZ=re(Ji,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:sZ})(({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"}},[`&.${xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xc.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})),cZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1}=r,v=oe(r,iZ),b=u.useContext(gi),g={dense:c||b.dense||!1,alignItems:o,disableGutters:f},x=u.useRef(null);On(()=>{i&&x.current&&x.current.focus()},[i]);const C=S({},r,{alignItems:o,dense:g.dense,disableGutters:f,divider:p,selected:m}),P=lZ(C),w=St(x,n);return T.jsx(gi.Provider,{value:g,children:T.jsx(aZ,S({ref:w,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"a":s,focusVisibleClassName:he(P.focusVisible,h),ownerState:C},v,{classes:P,children:a}))})}),uZ=cZ;function dZ(e){return Ke("MuiListItemSecondaryAction",e)}Ve("MuiListItemSecondaryAction",["root","disableGutters"]);const fZ=["className"],pZ=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},dZ,n)},hZ=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),LO=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=oe(r,fZ),s=u.useContext(gi),a=S({},r,{disableGutters:s.disableGutters}),c=pZ(a);return T.jsx(hZ,S({className:he(c.root,o),ownerState:a,ref:n},i))});LO.muiName="ListItemSecondaryAction";const mZ=LO,gZ=["className"],vZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],yZ=(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]},bZ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:f,selected:p}=e;return Ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},tZ,r)},wZ=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:yZ})(({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&&{[`& > .${xc.root}`]:{paddingRight:48}},{[`&.${Cc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cc.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"}},[`&.${Cc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),CZ=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:b=!1,disabled:g=!1,disableGutters:x=!1,disablePadding:C=!1,divider:P=!1,focusVisibleClassName:w,secondaryAction:E,selected:k=!1}=r,_=oe(r.ContainerProps,gZ),I=oe(r,vZ),M=u.useContext(gi),R={dense:b||M.dense||!1,alignItems:o,disableGutters:x},O=u.useRef(null);On(()=>{i&&O.current&&O.current.focus()},[i]);const A=u.Children.toArray(a),V=A.length&&Vd(A[A.length-1],["ListItemSecondaryAction"]),j=S({},r,{alignItems:o,autoFocus:i,button:s,dense:R.dense,disabled:g,disableGutters:x,disablePadding:C,divider:P,hasSecondaryAction:V,selected:k}),L=bZ(j),D=St(O,n),B=p.Root||wZ,W=h.root||{},F=S({className:he(L.root,W.className,c),disabled:g},I);let z=f||"li";return s&&(F.component=f||"div",F.focusVisibleClassName=he(Cc.focusVisible,w),z=Ji),V?(z=!F.component&&!f?"div":z,m==="li"&&(z==="li"?z="div":F.component==="li"&&(F.component="div")),T.jsx(gi.Provider,{value:R,children:T.jsxs(CZ,S({as:m,className:he(L.container,v),ref:D,ownerState:j},_,{children:[T.jsx(B,S({},W,!kl(B)&&{as:z,ownerState:S({},j,W.ownerState)},F,{children:A})),A.pop()]}))})):T.jsx(gi.Provider,{value:R,children:T.jsxs(B,S({},W,{as:z,ref:D,ownerState:j},!kl(B)&&{ownerState:S({},j,W.ownerState)},F,{children:[A,E&&T.jsx(mZ,{children:E})]}))})}),AO=xZ;function SZ(e){return Ke("MuiListItemIcon",e)}const EZ=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),XI=EZ,PZ=["className"],kZ=e=>{const{alignItems:t,classes:n}=e;return Ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},SZ,n)},IZ=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),_Z=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=oe(r,PZ),s=u.useContext(gi),a=S({},r,{alignItems:s.alignItems}),c=kZ(a);return T.jsx(IZ,S({className:he(c.root,o),ownerState:a,ref:n},i))}),FO=_Z;function $Z(e){return Ke("MuiListItemText",e)}const MZ=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hm=MZ,TZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],RZ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},$Z,t)},OZ=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hm.primary}`]:t.primary},{[`& .${Hm.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})),LZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=oe(r,TZ),{dense:v}=u.useContext(gi);let b=c!=null?c:o,g=p;const x=S({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),C=RZ(x);return b!=null&&b.type!==Cr&&!s&&(b=T.jsx(Cr,S({variant:v?"body2":"body1",className:C.primary,component:"span",display:"block"},f,{children:b}))),g!=null&&g.type!==Cr&&!s&&(g=T.jsx(Cr,S({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},h,{children:g}))),T.jsxs(OZ,S({className:he(C.root,i),ownerState:x,ref:n},m,{children:[b,g]}))}),uv=LZ,AZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function N0(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function QI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NO(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 md(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")||!NO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const FZ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=oe(t,AZ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});On(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,E)=>{const k=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&k){const _=`${SR(bn(w))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=_,v.current.style.width=`calc(100% + ${_})`}return v.current}}),[]);const g=w=>{const E=v.current,k=w.key,_=bn(E).activeElement;if(k==="ArrowDown")w.preventDefault(),md(E,_,f,c,N0);else if(k==="ArrowUp")w.preventDefault(),md(E,_,f,c,QI);else if(k==="Home")w.preventDefault(),md(E,null,f,c,N0);else if(k==="End")w.preventDefault(),md(E,null,f,c,QI);else if(k.length===1){const I=b.current,M=k.toLowerCase(),R=performance.now();I.keys.length>0&&(R-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&M!==I.keys[0]&&(I.repeating=!1)),I.lastTime=R,I.keys.push(M);const O=_&&!I.repeating&&NO(_,I);I.previousKeyMatched&&(O||md(E,_,!1,c,N0,I))?w.preventDefault():I.previousKeyMatched=!1}p&&p(w)},x=St(v,n);let C=-1;u.Children.forEach(s,(w,E)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||C===-1)&&(C=E))});const P=u.Children.map(s,(w,E)=>{if(E===C){const k={};return i&&(k.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(k.tabIndex=0),u.cloneElement(w,k)}return w});return T.jsx(cv,S({role:"menu",ref:x,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:P}))}),dv=FZ;function NZ(e){return Ke("MuiPopover",e)}Ve("MuiPopover",["root","paper"]);const DZ=["onEntering"],BZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function JI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ZI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function e_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function D0(e){return typeof e=="function"?e():e}const zZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},NZ,t)},jZ=re($C,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HZ=re(Zo,{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}),VZ=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:b,PaperProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=zm,transitionDuration:P="auto",TransitionProps:{onEntering:w}={}}=r,E=oe(r.TransitionProps,DZ),k=oe(r,BZ),_=u.useRef(),I=St(_,g.ref),M=S({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:x,TransitionComponent:C,transitionDuration:P,TransitionProps:E}),R=zZ(M),O=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=D0(i),z=(W&&W.nodeType===1?W:bn(_.current).body).getBoundingClientRect();return{top:z.top+JI(z,s.vertical),left:z.left+ZI(z,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),A=u.useCallback(W=>({vertical:JI(W,x.vertical),horizontal:ZI(W,x.horizontal)}),[x.horizontal,x.vertical]),V=u.useCallback(W=>{const F={width:W.offsetWidth,height:W.offsetHeight},z=A(F);if(c==="none")return{top:null,left:null,transformOrigin:e_(z)};const G=O();let q=G.top-z.vertical,X=G.left-z.horizontal;const ie=q+F.height,ee=X+F.width,se=Jr(D0(i)),ae=se.innerHeight-v,we=se.innerWidth-v;if(q<v){const de=q-v;q-=de,z.vertical+=de}else if(ie>ae){const de=ie-ae;q-=de,z.vertical+=de}if(X<v){const de=X-v;X-=de,z.horizontal+=de}else if(ee>we){const de=ee-we;X-=de,z.horizontal+=de}return{top:`${Math.round(q)}px`,left:`${Math.round(X)}px`,transformOrigin:e_(z)}},[i,c,O,A,v]),j=u.useCallback(()=>{const W=_.current;if(!W)return;const F=V(W);F.top!==null&&(W.style.top=F.top),F.left!==null&&(W.style.left=F.left),W.style.transformOrigin=F.transformOrigin},[V]),L=(W,F)=>{w&&w(W,F),j()};u.useEffect(()=>{b&&j()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),u.useEffect(()=>{if(!b)return;const W=ks(()=>{j()}),F=Jr(i);return F.addEventListener("resize",W),()=>{W.clear(),F.removeEventListener("resize",W)}},[i,b,j]);let D=P;P==="auto"&&!C.muiSupportAuto&&(D=void 0);const B=h||(i?bn(D0(i)).body:void 0);return T.jsx(jZ,S({BackdropProps:{invisible:!0},className:he(R.root,p),container:B,open:b,ref:n,ownerState:M},k,{children:T.jsx(C,S({appear:!0,in:b,onEntering:L,timeout:D},E,{children:T.jsx(HZ,S({elevation:m},g,{ref:I,className:he(R.paper,g.className),children:f}))}))}))}),UZ=VZ;function WZ(e){return Ke("MuiMenu",e)}Ve("MuiMenu",["root","paper","list"]);const GZ=["onEntering"],KZ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],qZ={vertical:"top",horizontal:"right"},YZ={vertical:"top",horizontal:"left"},XZ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},WZ,t)},QZ=re(UZ,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JZ=re(Zo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZZ=re(dv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eee=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:b="selectedMenu"}=r,g=oe(r.TransitionProps,GZ),x=oe(r,KZ),C=Zr(),P=C.direction==="rtl",w=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),E=XZ(w),k=o&&!s&&f,_=u.useRef(null),I=(O,A)=>{_.current&&_.current.adjustStyleForScrollbar(O,C),v&&v(O,A)},M=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let R=-1;return u.Children.map(i,(O,A)=>{u.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||R===-1)&&(R=A))}),T.jsx(QZ,S({classes:h,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?qZ:YZ,PaperProps:S({component:JZ},p,{classes:S({},p.classes,{root:E.paper})}),className:E.root,open:f,ref:n,transitionDuration:m,TransitionProps:S({onEntering:I},g),ownerState:w},x,{children:T.jsx(ZZ,S({onKeyDown:M,actions:_,autoFocus:o&&(R===-1||s),autoFocusItem:k,variant:b},a,{className:he(E.list,a.className),children:i}))}))}),DO=eee;function tee(e){return Ke("MuiMenuItem",e)}const nee=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gd=nee,ree=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],oee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},iee=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tee,s);return S({},s,c)},see=re(Ji,{shouldForwardProp:e=>So(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:oee})(({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"}},[`&.${gd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${NI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${NI.inset}`]:{marginLeft:52},[`& .${Hm.root}`]:{marginTop:0,marginBottom:0},[`& .${Hm.inset}`]:{paddingLeft:36},[`& .${XI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${XI.root} svg`]:{fontSize:"1.25rem"}}))),lee=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:h}=r,m=oe(r,ree),v=u.useContext(gi),b={dense:s||v.dense||!1,disableGutters:c},g=u.useRef(null);On(()=>{o&&g.current&&g.current.focus()},[o]);const x=S({},r,{dense:b.dense,divider:a,disableGutters:c}),C=iee(r),P=St(g,n);let w;return r.disabled||(w=h!==void 0?h:-1),T.jsx(gi.Provider,{value:b,children:T.jsx(see,S({ref:P,role:p,tabIndex:w,component:i,focusVisibleClassName:he(C.focusVisible,f)},m,{ownerState:x,classes:C}))})}),rr=lee;function aee(e){return Ke("MuiNativeSelect",e)}const cee=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),TC=cee,uee=["className","disabled","IconComponent","inputRef","variant"],dee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"]};return Ie(s,aee,t)},BO=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${TC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),fee=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:So,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${TC.multiple}`]:t.multiple}]}})(BO),zO=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${TC.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),pee=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(zO),hee=u.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:s,variant:a="standard"}=t,c=oe(t,uee),f=S({},t,{disabled:o,variant:a}),p=dee(f);return T.jsxs(u.Fragment,{children:[T.jsx(fee,S({ownerState:f,className:he(p.select,r),disabled:o,ref:s||n},c)),t.multiple?null:T.jsx(pee,{as:i,ownerState:f,className:p.icon})]})}),mee=hee;var t_;const gee=["children","classes","className","label","notched"],vee=re("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yee=re("legend")(({ownerState:e,theme:t})=>S({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function bee(e){const{className:t,label:n,notched:r}=e,o=oe(e,gee),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return T.jsx(vee,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(yee,{ownerState:s,children:i?T.jsx("span",{children:n}):t_||(t_=T.jsx("span",{className:"notranslate",children:""}))})}))}const wee=["components","fullWidth","inputComponent","label","multiline","notched","type"],Cee=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qq,t);return S({},t,r)},xee=re(iv,{shouldForwardProp:e=>So(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 .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ri.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ri.focused} .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ri.error} .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ri.disabled} .${Ri.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),See=re(bee,{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}}),Eee=re(sv,{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})),jO=u.forwardRef(function(t,n){var r;const o=Qe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:f=!1,notched:p,type:h="text"}=o,m=oe(o,wee),v=Cee(o),b=Os(),g=Fa({props:o,muiFormControl:b,states:["required"]}),x=S({},o,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:b,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:h});return T.jsx(Pu,S({components:S({Root:xee,Input:Eee},i),renderSuffix:C=>T.jsx(See,{ownerState:x,className:v.notchedOutline,label:c!=null&&c!==""&&g.required?r||(r=T.jsxs(u.Fragment,{children:[c," ","*"]})):c,notched:typeof p!="undefined"?p:Boolean(C.startAdornment||C.filled||C.focused)}),fullWidth:s,inputComponent:a,multiline:f,ref:n,type:h},m,{classes:S({},v,{notchedOutline:null})}))});jO.muiName="Input";const HO=jO,n_=Tt(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),r_=Tt(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Pee(e){return Ke("MuiSelect",e)}const kee=Ve("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Rh=kee;var o_;const Iee=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],_ee=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rh.select}`]:t.select},{[`&.${Rh.select}`]:t[n.variant]},{[`&.${Rh.multiple}`]:t.multiple}]}})(BO,{[`&.${Rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$ee=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(zO),Mee=re("input",{shouldForwardProp:e=>ZG(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 i_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Tee(e){return e==null||typeof e=="string"&&!e.trim()}const Ree=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(s,Pee,t)},Oee=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:m,IconComponent:v,inputRef:b,labelId:g,MenuProps:x={},multiple:C,name:P,onBlur:w,onChange:E,onClose:k,onFocus:_,onOpen:I,open:M,readOnly:R,renderValue:O,SelectDisplayProps:A={},tabIndex:V,value:j,variant:L="standard"}=t,D=oe(t,Iee),[B,W]=Wi({controlled:j,default:p,name:"Select"}),[F,z]=Wi({controlled:M,default:f,name:"Select"}),G=u.useRef(null),q=u.useRef(null),[X,ie]=u.useState(null),{current:ee}=u.useRef(M!=null),[se,ae]=u.useState(),we=St(n,b),de=u.useCallback(ne=>{q.current=ne,ne&&ie(ne)},[]);u.useImperativeHandle(we,()=>({focus:()=>{q.current.focus()},node:G.current,value:B}),[B]),u.useEffect(()=>{f&&F&&X&&!ee&&(ae(s?null:X.clientWidth),q.current.focus())},[X,s]),u.useEffect(()=>{i&&q.current.focus()},[i]),u.useEffect(()=>{if(!g)return;const ne=bn(q.current).getElementById(g);if(ne){const ke=()=>{getSelection().isCollapsed&&q.current.focus()};return ne.addEventListener("click",ke),()=>{ne.removeEventListener("click",ke)}}},[g]);const le=(ne,ke)=>{ne?I&&I(ke):k&&k(ke),ee||(ae(s?null:X.clientWidth),z(ne))},te=ne=>{ne.button===0&&(ne.preventDefault(),q.current.focus(),le(!0,ne))},be=ne=>{le(!1,ne)},_e=u.Children.toArray(a),Se=ne=>{const ke=_e.map($e=>$e.props.value).indexOf(ne.target.value);if(ke===-1)return;const Ee=_e[ke];W(Ee.props.value),E&&E(ne,Ee)},Fe=ne=>ke=>{let Ee;if(ke.currentTarget.hasAttribute("tabindex")){if(C){Ee=Array.isArray(B)?B.slice():[];const $e=B.indexOf(ne.props.value);$e===-1?Ee.push(ne.props.value):Ee.splice($e,1)}else Ee=ne.props.value;if(ne.props.onClick&&ne.props.onClick(ke),B!==Ee&&(W(Ee),E)){const $e=ke.nativeEvent||ke,Ge=new $e.constructor($e.type,$e);Object.defineProperty(Ge,"target",{writable:!0,value:{value:Ee,name:P}}),E(Ge,ne)}C||le(!1,ke)}},Re=ne=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),le(!0,ne))},Ae=X!==null&&F,Le=ne=>{!Ae&&w&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:B,name:P}}),w(ne))};delete D["aria-invalid"];let Ze,yt;const tt=[];let et=!1;(IC({value:B})||m)&&(O?Ze=O(B):et=!0);const Pt=_e.map((ne,ke,Ee)=>{if(!u.isValidElement(ne))return null;let $e;if(C){if(!Array.isArray(B))throw new Error(Pl(2));$e=B.some(Ct=>i_(Ct,ne.props.value)),$e&&et&&tt.push(ne.props.children)}else $e=i_(B,ne.props.value),$e&&et&&(yt=ne.props.children);if(ne.props.value===void 0)return u.cloneElement(ne,{"aria-readonly":!0,role:"option"});const Ge=()=>{if(B)return $e;const Ct=Ee.find(jt=>jt.props.value!==void 0&&jt.props.disabled!==!0);return ne===Ct?!0:$e};return u.cloneElement(ne,{"aria-selected":$e?"true":"false",onClick:Fe(ne),onKeyUp:Ct=>{Ct.key===" "&&Ct.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(Ct)},role:"option",selected:Ee[0].props.value===void 0||Ee[0].props.disabled===!0?Ge():$e,value:void 0,"data-value":ne.props.value})});et&&(C?tt.length===0?Ze=null:Ze=tt.reduce((ne,ke,Ee)=>(ne.push(ke),Ee<tt.length-1&&ne.push(", "),ne),[]):Ze=yt);let mt=se;!s&&ee&&X&&(mt=X.clientWidth);let at;typeof V!="undefined"?at=V:at=h?null:0;const It=A.id||(P?`mui-component-select-${P}`:void 0),Xe=S({},t,{variant:L,value:B,open:Ae}),Te=Ree(Xe);return T.jsxs(u.Fragment,{children:[T.jsx(_ee,S({ref:de,tabIndex:at,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,It].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:h||R?null:te,onBlur:Le,onFocus:_},A,{ownerState:Xe,className:he(A.className,Te.select,c),id:It,children:Tee(Ze)?o_||(o_=T.jsx("span",{className:"notranslate",children:""})):Ze})),T.jsx(Mee,S({value:Array.isArray(B)?B.join(","):B,name:P,ref:G,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:h,className:Te.nativeInput,autoFocus:i,ownerState:Xe},D)),T.jsx($ee,{as:v,className:Te.icon,ownerState:Xe}),T.jsx(DO,S({id:`menu-${P||""}`,anchorEl:X,open:Ae,onClose:be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:S({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:S({},x.PaperProps,{style:S({minWidth:mt},x.PaperProps!=null?x.PaperProps.style:null)}),children:Pt}))]})}),Lee=Oee;var s_,l_;const Aee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Fee=e=>{const{classes:t}=e;return t},RC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>So(e)&&e!=="variant",slot:"Root"},Nee=re(RO,RC)(""),Dee=re(HO,RC)(""),Bee=re(EO,RC)(""),VO=u.forwardRef(function(t,n){const r=Qe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=dO,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:x,multiple:C=!1,native:P=!1,onClose:w,onOpen:E,open:k,renderValue:_,SelectDisplayProps:I,variant:M="outlined"}=r,R=oe(r,Aee),O=P?mee:Lee,A=Os(),j=Fa({props:r,muiFormControl:A,states:["variant"]}).variant||M,L=m||{standard:s_||(s_=T.jsx(Nee,{})),outlined:T.jsx(Dee,{label:b}),filled:l_||(l_=T.jsx(Bee,{}))}[j],D=S({},r,{variant:j,classes:s}),B=Fee(D),W=St(n,L.ref);return u.cloneElement(L,S({inputComponent:O,inputProps:S({children:i,IconComponent:p,variant:j,type:void 0,multiple:C},P?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:g,MenuProps:x,onClose:w,onOpen:E,open:k,renderValue:_,SelectDisplayProps:S({id:h},I)},v,{classes:v?Ho(B,v.classes):B},m?m.props.inputProps:{})},C&&P&&j==="outlined"?{notched:!0}:{},{ref:W,className:he(L.props.className,a),variant:j},R))});VO.muiName="Select";const OC=VO;function zee(e){return Ke("MuiTooltip",e)}const jee=Ve("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),il=jee,Hee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];function Vee(e){return Math.round(e*1e5)/1e5}const Uee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return Ie(s,zee,t)},Wee=re(Aa,{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"] .${il.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${il.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${il.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"] .${il.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Gee=re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ot(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:`${Vee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${il.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"})),[`.${il.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"})),[`.${il.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${il.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Kee=re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ot(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Oh=!1,B0=null;function Lh(e,t){return n=>{t&&t(n),e(n)}}const qee=u.forwardRef(function(t,n){var r,o,i,s,a,c;const f=Qe({props:t,name:"MuiTooltip"}),{arrow:p=!1,children:h,components:m={},componentsProps:v={},describeChild:b=!1,disableFocusListener:g=!1,disableHoverListener:x=!1,disableInteractive:C=!1,disableTouchListener:P=!1,enterDelay:w=100,enterNextDelay:E=0,enterTouchDelay:k=700,followCursor:_=!1,id:I,leaveDelay:M=0,leaveTouchDelay:R=1500,onClose:O,onOpen:A,open:V,placement:j="bottom",PopperComponent:L,PopperProps:D={},title:B,TransitionComponent:W=zm,TransitionProps:F}=f,z=oe(f,Hee),G=Zr(),q=G.direction==="rtl",[X,ie]=u.useState(),[ee,se]=u.useState(null),ae=u.useRef(!1),we=C||_,de=u.useRef(),le=u.useRef(),te=u.useRef(),be=u.useRef(),[_e,Se]=Wi({controlled:V,default:!1,name:"Tooltip",state:"open"});let Fe=_e;const Re=Pn(I),Ae=u.useRef(),Le=u.useCallback(()=>{Ae.current!==void 0&&(document.body.style.WebkitUserSelect=Ae.current,Ae.current=void 0),clearTimeout(be.current)},[]);u.useEffect(()=>()=>{clearTimeout(de.current),clearTimeout(le.current),clearTimeout(te.current),Le()},[Le]);const Ze=Be=>{clearTimeout(B0),Oh=!0,Se(!0),A&&!Fe&&A(Be)},yt=jn(Be=>{clearTimeout(B0),B0=setTimeout(()=>{Oh=!1},800+M),Se(!1),O&&Fe&&O(Be),clearTimeout(de.current),de.current=setTimeout(()=>{ae.current=!1},G.transitions.duration.shortest)}),tt=Be=>{ae.current&&Be.type!=="touchstart"||(X&&X.removeAttribute("title"),clearTimeout(le.current),clearTimeout(te.current),w||Oh&&E?le.current=setTimeout(()=>{Ze(Be)},Oh?E:w):Ze(Be))},et=Be=>{clearTimeout(le.current),clearTimeout(te.current),te.current=setTimeout(()=>{yt(Be)},M)},{isFocusVisibleRef:Pt,onBlur:mt,onFocus:at,ref:It}=Gg(),[,Xe]=u.useState(!1),Te=Be=>{mt(Be),Pt.current===!1&&(Xe(!1),et(Be))},ne=Be=>{X||ie(Be.currentTarget),at(Be),Pt.current===!0&&(Xe(!0),tt(Be))},ke=Be=>{ae.current=!0;const ut=h.props;ut.onTouchStart&&ut.onTouchStart(Be)},Ee=tt,$e=et,Ge=Be=>{ke(Be),clearTimeout(te.current),clearTimeout(de.current),Le(),Ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ae.current,tt(Be)},k)},Ct=Be=>{h.props.onTouchEnd&&h.props.onTouchEnd(Be),Le(),clearTimeout(te.current),te.current=setTimeout(()=>{yt(Be)},R)};u.useEffect(()=>{if(!Fe)return;function Be(ut){(ut.key==="Escape"||ut.key==="Esc")&&yt(ut)}return document.addEventListener("keydown",Be),()=>{document.removeEventListener("keydown",Be)}},[yt,Fe]);const jt=St(ie,n),Ht=St(It,jt),Jn=St(h.ref,Ht);B===""&&(Fe=!1);const hn=u.useRef({x:0,y:0}),Kn=u.useRef(),Pr=Be=>{const ut=h.props;ut.onMouseMove&&ut.onMouseMove(Be),hn.current={x:Be.clientX,y:Be.clientY},Kn.current&&Kn.current.update()},mn={},sn=typeof B=="string";b?(mn.title=!Fe&&sn&&!x?B:null,mn["aria-describedby"]=Fe?Re:null):(mn["aria-label"]=sn?B:null,mn["aria-labelledby"]=Fe&&!sn?Re:null);const en=S({},mn,z,h.props,{className:he(z.className,h.props.className),onTouchStart:ke,ref:Jn},_?{onMouseMove:Pr}:{}),Eo={};P||(en.onTouchStart=Ge,en.onTouchEnd=Ct),x||(en.onMouseOver=Lh(Ee,en.onMouseOver),en.onMouseLeave=Lh($e,en.onMouseLeave),we||(Eo.onMouseOver=Ee,Eo.onMouseLeave=$e)),g||(en.onFocus=Lh(ne,en.onFocus),en.onBlur=Lh(Te,en.onBlur),we||(Eo.onFocus=ne,Eo.onBlur=Te));const Pi=u.useMemo(()=>{var Be;let ut=[{name:"arrow",enabled:Boolean(ee),options:{element:ee,padding:4}}];return(Be=D.popperOptions)!=null&&Be.modifiers&&(ut=ut.concat(D.popperOptions.modifiers)),S({},D.popperOptions,{modifiers:ut})},[ee,D]),Ar=S({},f,{isRtl:q,arrow:p,disableInteractive:we,placement:j,PopperComponentProp:L,touch:ae.current}),ti=Uee(Ar),Po=(r=m.Popper)!=null?r:Wee,Lt=(o=(i=m.Transition)!=null?i:W)!=null?o:zm,Nn=(s=m.Tooltip)!=null?s:Gee,ce=(a=m.Arrow)!=null?a:Kee,me=kd(Po,S({},D,v.popper),Ar),ze=kd(Lt,S({},F,v.transition),Ar),gt=kd(Nn,S({},v.tooltip),Ar),bt=kd(ce,S({},v.arrow),Ar);return T.jsxs(u.Fragment,{children:[u.cloneElement(h,en),T.jsx(Po,S({as:L!=null?L:Aa,placement:j,anchorEl:_?{getBoundingClientRect:()=>({top:hn.current.y,left:hn.current.x,right:hn.current.x,bottom:hn.current.y,width:0,height:0})}:X,popperRef:Kn,open:X?Fe:!1,id:Re,transition:!0},Eo,me,{className:he(ti.popper,D==null?void 0:D.className,(c=v.popper)==null?void 0:c.className),popperOptions:Pi,children:({TransitionProps:Be})=>{var ut,ve;return T.jsx(Lt,S({timeout:G.transitions.duration.shorter},Be,ze,{children:T.jsxs(Nn,S({},gt,{className:he(ti.tooltip,(ut=v.tooltip)==null?void 0:ut.className),children:[B,p?T.jsx(ce,S({},bt,{className:he(ti.arrow,(ve=v.arrow)==null?void 0:ve.className),ref:se})):null]}))}))}}))]})}),fv=qee;function Yee(e){return Ke("MuiSwitch",e)}const Xee=Ve("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),br=Xee,Qee=["className","color","edge","size","sx"],Jee=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${fe(n)}`,`size${fe(r)}`],switchBase:["switchBase",`color${fe(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ie(a,Yee,t);return S({},t,c)},Zee=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({ownerState:e})=>S({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${br.thumb}`]:{width:16,height:16},[`& .${br.switchBase}`]:{padding:4,[`&.${br.checked}`]:{transform:"translateX(16px)"}}})),ete=re(yO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${br.input}`]:t.input},n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${br.checked}`]:{transform:"translateX(20px)"},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${br.checked} + .${br.track}`]:{opacity:.5},[`&.${br.disabled} + .${br.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${br.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})`:ot(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${br.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})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?_s(e.palette[t.color].main,.62):Is(e.palette[t.color].main,.55)}`}},[`&.${br.checked} + .${br.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),tte=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),nte=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),rte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,f=oe(r,Qee),p=S({},r,{color:i,edge:s,size:a}),h=Jee(p),m=T.jsx(nte,{className:h.thumb,ownerState:p});return T.jsxs(Zee,{className:he(h.root,o),sx:c,ownerState:p,children:[T.jsx(ete,S({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},f,{classes:S({},h,{root:h.switchBase})})),T.jsx(tte,{className:h.track,ownerState:p})]})}),UO=rte;function ote(e){return Ke("MuiTab",e)}const ite=Ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ql=ite,ste=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],lte=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,f={root:["root",i&&s&&"labelIcon",`textColor${fe(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ie(f,ote,t)},ate=re(Ji,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ql.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,[`&.${ql.selected}`]:{opacity:1},[`&.${ql.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ql.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ql.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ql.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ql.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)})),cte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:f="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:b,selected:g,selectionFollowsFocus:x,textColor:C="inherit",value:P,wrapped:w=!1}=r,E=oe(r,ste),k=S({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:f,label:!!h,fullWidth:a,textColor:C,wrapped:w}),_=lte(k),I=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(_.iconWrapper,c.props.className)}):c,M=O=>{!g&&m&&m(O,P),v&&v(O)},R=O=>{x&&!g&&m&&m(O,P),b&&b(O)};return T.jsxs(ate,S({focusRipple:!s,className:he(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:M,onFocus:R,ownerState:k,tabIndex:g?0:-1},E,{children:[f==="top"||f==="start"?T.jsxs(u.Fragment,{children:[I,h]}):T.jsxs(u.Fragment,{children:[h,I]}),p]}))}),WO=cte,ute=u.createContext(),dte=ute,fte=u.createContext(),pte=fte;function hte(e){return Ke("MuiTableCell",e)}const mte=Ve("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),gte=mte,vte=["align","className","component","padding","scope","size","sortDirection","variant"],yte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fe(r)}`,o!=="normal"&&`padding${fe(o)}`,`size${fe(i)}`]};return Ie(a,hte,t)},bte=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fe(n.size)}`],n.padding!=="normal"&&t[`padding${fe(n.padding)}`],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
233
|
-
${e.palette.mode==="light"?_s(ot(e.palette.divider,1),.88):Is(ot(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",[`&.${gte.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})),wte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:f,sortDirection:p,variant:h}=r,m=oe(r,vte),v=u.useContext(dte),b=u.useContext(pte),g=b&&b.variant==="head";let x;s?x=s:x=g?"th":"td";let C=c;!C&&g&&(C="col");const P=h||b&&b.variant,w=S({},r,{align:o,component:x,padding:a||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:P==="head"&&v&&v.stickyHeader,variant:P}),E=yte(w);let k=null;return p&&(k=p==="asc"?"ascending":"descending"),T.jsx(bte,S({as:x,ref:n,className:he(E.root,i),"aria-sort":k,scope:C,ownerState:w},m))}),yb=wte;function Cte(e){return Ke("MuiToolbar",e)}Ve("MuiToolbar",["root","gutters","regular","dense"]);const xte=["className","component","disableGutters","variant"],Ste=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ie({root:["root",!n&&"gutters",r]},Cte,t)},Ete=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Pte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=oe(r,xte),f=S({},r,{component:i,disableGutters:s,variant:a}),p=Ste(f);return T.jsx(Ete,S({as:i,className:he(p.root,o),ref:n,ownerState:f},c))}),GO=Pte,bb=Tt(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wb=Tt(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var a_,c_,u_,d_,f_,p_,h_,m_;const kte=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ite=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:f,showFirstButton:p,showLastButton:h}=t,m=oe(t,kte),v=Zr(),b=P=>{a(P,0)},g=P=>{a(P,c-1)},x=P=>{a(P,c+1)},C=P=>{a(P,Math.max(0,Math.ceil(o/f)-1))};return T.jsxs("div",S({ref:n},m,{children:[p&&T.jsx(tr,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?a_||(a_=T.jsx(r_,{})):c_||(c_=T.jsx(n_,{}))}),T.jsx(tr,S({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?u_||(u_=T.jsx(wb,{})):d_||(d_=T.jsx(bb,{}))})),T.jsx(tr,S({onClick:x,disabled:o!==-1?c>=Math.ceil(o/f)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?f_||(f_=T.jsx(bb,{})):p_||(p_=T.jsx(wb,{}))})),h&&T.jsx(tr,{onClick:C,disabled:c>=Math.ceil(o/f)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?h_||(h_=T.jsx(n_,{})):m_||(m_=T.jsx(r_,{}))})]}))}),_te=Ite;function $te(e){return Ke("MuiTablePagination",e)}const Mte=Ve("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),pa=Mte;var g_;const Tte=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Rte=re(yb,{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}})),Ote=re(GO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${pa.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},[`& .${pa.actions}`]:{flexShrink:0,marginLeft:20}})),Lte=re("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ate=re("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),Fte=re(OC,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${pa.selectIcon}`]:t.selectIcon,[`& .${pa.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${pa.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Nte=re(rr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Dte=re("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function Bte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function zte(e){return`Go to ${e} page`}const jte=e=>{const{classes:t}=e;return Ie({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},$te,t)},Hte=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=_te,backIconButtonProps:i,className:s,colSpan:a,component:c=yb,count:f,getItemAriaLabel:p=zte,labelDisplayedRows:h=Bte,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:x,rowsPerPage:C,rowsPerPageOptions:P=[10,25,50,100],SelectProps:w={},showFirstButton:E=!1,showLastButton:k=!1}=r,_=oe(r,Tte),I=r,M=jte(I),R=w.native?"option":Nte;let O;(c===yb||c==="td")&&(O=a||1e3);const A=Pn(w.id),V=Pn(w.labelId),j=()=>f===-1?(x+1)*C:C===-1?f:Math.min(f,(x+1)*C);return T.jsx(Rte,S({colSpan:O,ref:n,as:c,ownerState:I,className:he(M.root,s)},_,{children:T.jsxs(Ote,{className:M.toolbar,children:[T.jsx(Lte,{className:M.spacer}),P.length>1&&T.jsx(Ate,{className:M.selectLabel,id:V,children:m}),P.length>1&&T.jsx(Fte,S({variant:"standard",input:g_||(g_=T.jsx(Pu,{})),value:C,onChange:g,id:A,labelId:V},w,{classes:S({},w.classes,{root:he(M.input,M.selectRoot,(w.classes||{}).root),select:he(M.select,(w.classes||{}).select),icon:he(M.selectIcon,(w.classes||{}).icon)}),children:P.map(L=>u.createElement(R,S({},!kl(R)&&{ownerState:I},{className:M.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),T.jsx(Dte,{className:M.displayedRows,children:h({from:f===0?0:x*C+1,to:j(),count:f===-1?-1:f,page:x})}),T.jsx(o,{className:M.actions,backIconButtonProps:i,count:f,nextIconButtonProps:v,onPageChange:b,page:x,rowsPerPage:C,showFirstButton:E,showLastButton:k,getItemAriaLabel:p})]})}))}),Vte=Hte;function Ute(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Wte(e,t,n,r={},o=()=>{}){const{ease:i=Ute,duration:s=300}=r;let a=null;const c=t[e];let f=!1;const p=()=>{f=!0},h=m=>{if(f){o(new Error("Animation cancelled"));return}a===null&&(a=m);const v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const Gte=["onChange"],Kte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qte(e){const{onChange:t}=e,n=oe(e,Gte),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return u.useEffect(()=>{const s=ks(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Jr(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",S({style:Kte,ref:o},n))}function Yte(e){return Ke("MuiTabScrollButton",e)}const Xte=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qte=Xte;var v_,y_;const Jte=["className","direction","orientation","disabled"],Zte=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ie({root:["root",n,r&&"disabled"]},Yte,t)},ene=re(Ji,{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,[`&.${Qte.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tne=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,s=oe(r,Jte),c=Zr().direction==="rtl",f=S({isRtl:c},r),p=Zte(f);return T.jsx(ene,S({component:"div",className:he(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null},s,{children:i==="left"?v_||(v_=T.jsx(bb,{fontSize:"small"})):y_||(y_=T.jsx(wb,{fontSize:"small"}))}))}),nne=tne;function rne(e){return Ke("MuiTabs",e)}const one=Ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),z0=one,ine=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],b_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,w_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ah=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},sne=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},rne,c)},lne=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z0.scrollButtons}`]:t.scrollButtons},{[`& .${z0.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&&{[`& .${z0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ane=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),cne=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),une=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),dne=re(qte,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),C_={},fne=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTabs"}),o=Zr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:f=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:x="horizontal",ScrollButtonComponent:C=nne,scrollButtons:P="auto",selectionFollowsFocus:w,TabIndicatorProps:E={},TabScrollButtonProps:k={},textColor:_="primary",value:I,variant:M="standard",visibleScrollbar:R=!1}=r,O=oe(r,ine),A=M==="scrollable",V=x==="vertical",j=V?"scrollTop":"scrollLeft",L=V?"top":"left",D=V?"bottom":"right",B=V?"clientHeight":"clientWidth",W=V?"height":"width",F=S({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:x,vertical:V,scrollButtons:P,textColor:_,variant:M,visibleScrollbar:R,fixed:!A,hideScrollbar:A&&!R,scrollableX:A&&!V,scrollableY:A&&V,centered:f&&!A,scrollButtonsHideMobile:!v}),z=sne(F),[G,q]=u.useState(!1),[X,ie]=u.useState(C_),[ee,se]=u.useState({start:!1,end:!1}),[ae,we]=u.useState({overflow:"hidden",scrollbarWidth:0}),de=new Map,le=u.useRef(null),te=u.useRef(null),be=()=>{const ne=le.current;let ke;if(ne){const $e=ne.getBoundingClientRect();ke={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:j2(ne,o.direction),scrollWidth:ne.scrollWidth,top:$e.top,bottom:$e.bottom,left:$e.left,right:$e.right}}let Ee;if(ne&&I!==!1){const $e=te.current.children;if($e.length>0){const Ge=$e[de.get(I)];Ee=Ge?Ge.getBoundingClientRect():null}}return{tabsMeta:ke,tabMeta:Ee}},_e=jn(()=>{const{tabsMeta:ne,tabMeta:ke}=be();let Ee=0,$e;if(V)$e="top",ke&&ne&&(Ee=ke.top-ne.top+ne.scrollTop);else if($e=i?"right":"left",ke&&ne){const Ct=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Ee=(i?-1:1)*(ke[$e]-ne[$e]+Ct)}const Ge={[$e]:Ee,[W]:ke?ke[W]:0};if(isNaN(X[$e])||isNaN(X[W]))ie(Ge);else{const Ct=Math.abs(X[$e]-Ge[$e]),jt=Math.abs(X[W]-Ge[W]);(Ct>=1||jt>=1)&&ie(Ge)}}),Se=(ne,{animation:ke=!0}={})=>{ke?Wte(j,le.current,ne,{duration:o.transitions.duration.standard}):le.current[j]=ne},Fe=ne=>{let ke=le.current[j];V?ke+=ne:(ke+=ne*(i?-1:1),ke*=i&&ER()==="reverse"?-1:1),Se(ke)},Re=()=>{const ne=le.current[B];let ke=0;const Ee=Array.from(te.current.children);for(let $e=0;$e<Ee.length;$e+=1){const Ge=Ee[$e];if(ke+Ge[B]>ne){$e===0&&(ke=ne);break}ke+=Ge[B]}return ke},Ae=()=>{Fe(-1*Re())},Le=()=>{Fe(Re())},Ze=u.useCallback(ne=>{we({overflow:null,scrollbarWidth:ne})},[]),yt=()=>{const ne={};ne.scrollbarSizeListener=A?T.jsx(dne,{onChange:Ze,className:he(z.scrollableX,z.hideScrollbar)}):null;const ke=ee.start||ee.end,Ee=A&&(P==="auto"&&ke||P===!0);return ne.scrollButtonStart=Ee?T.jsx(C,S({orientation:x,direction:i?"right":"left",onClick:Ae,disabled:!ee.start},k,{className:he(z.scrollButtons,k.className)})):null,ne.scrollButtonEnd=Ee?T.jsx(C,S({orientation:x,direction:i?"left":"right",onClick:Le,disabled:!ee.end},k,{className:he(z.scrollButtons,k.className)})):null,ne},tt=jn(ne=>{const{tabsMeta:ke,tabMeta:Ee}=be();if(!(!Ee||!ke)){if(Ee[L]<ke[L]){const $e=ke[j]+(Ee[L]-ke[L]);Se($e,{animation:ne})}else if(Ee[D]>ke[D]){const $e=ke[j]+(Ee[D]-ke[D]);Se($e,{animation:ne})}}}),et=jn(()=>{if(A&&P!==!1){const{scrollTop:ne,scrollHeight:ke,clientHeight:Ee,scrollWidth:$e,clientWidth:Ge}=le.current;let Ct,jt;if(V)Ct=ne>1,jt=ne<ke-Ee-1;else{const Ht=j2(le.current,o.direction);Ct=i?Ht<$e-Ge-1:Ht>1,jt=i?Ht>1:Ht<$e-Ge-1}(Ct!==ee.start||jt!==ee.end)&&se({start:Ct,end:jt})}});u.useEffect(()=>{const ne=ks(()=>{le.current&&(_e(),et())}),ke=Jr(le.current);ke.addEventListener("resize",ne);let Ee;return typeof ResizeObserver!="undefined"&&(Ee=new ResizeObserver(ne),Array.from(te.current.children).forEach($e=>{Ee.observe($e)})),()=>{ne.clear(),ke.removeEventListener("resize",ne),Ee&&Ee.disconnect()}},[_e,et]);const Pt=u.useMemo(()=>ks(()=>{et()}),[et]);u.useEffect(()=>()=>{Pt.clear()},[Pt]),u.useEffect(()=>{q(!0)},[]),u.useEffect(()=>{_e(),et()}),u.useEffect(()=>{tt(C_!==X)},[tt,X]),u.useImperativeHandle(c,()=>({updateIndicator:_e,updateScrollButtons:et}),[_e,et]);const mt=T.jsx(une,S({},E,{className:he(z.indicator,E.className),ownerState:F,style:S({},X,E.style)}));let at=0;const It=u.Children.map(p,ne=>{if(!u.isValidElement(ne))return null;const ke=ne.props.value===void 0?at:ne.props.value;de.set(ke,at);const Ee=ke===I;return at+=1,u.cloneElement(ne,S({fullWidth:M==="fullWidth",indicator:Ee&&!G&&mt,selected:Ee,selectionFollowsFocus:w,onChange:g,textColor:_,value:ke},at===1&&I===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Xe=ne=>{const ke=te.current,Ee=bn(ke).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Ge=x==="horizontal"?"ArrowLeft":"ArrowUp",Ct=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&i&&(Ge="ArrowRight",Ct="ArrowLeft"),ne.key){case Ge:ne.preventDefault(),Ah(ke,Ee,w_);break;case Ct:ne.preventDefault(),Ah(ke,Ee,b_);break;case"Home":ne.preventDefault(),Ah(ke,null,b_);break;case"End":ne.preventDefault(),Ah(ke,null,w_);break}},Te=yt();return T.jsxs(lne,S({className:he(z.root,h),ownerState:F,ref:n,as:m},O,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,T.jsxs(ane,{className:z.scroller,ownerState:F,style:{overflow:ae.overflow,[V?`margin${i?"Left":"Right"}`:"marginBottom"]:R?void 0:-ae.scrollbarWidth},ref:le,onScroll:Pt,children:[T.jsx(cne,{"aria-label":s,"aria-labelledby":a,"aria-orientation":x==="vertical"?"vertical":null,className:z.flexContainer,ownerState:F,onKeyDown:Xe,ref:te,role:"tablist",children:It}),G&&mt]}),Te.scrollButtonEnd]}))}),KO=fne;function pne(e){return Ke("MuiTextField",e)}Ve("MuiTextField",["root"]);const hne=["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"],mne={standard:RO,filled:EO,outlined:HO},gne=e=>{const{classes:t}=e;return Ie({root:["root"]},pne,t)},vne=re(Na,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yne=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:f,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:b,id:g,InputLabelProps:x,inputProps:C,InputProps:P,inputRef:w,label:E,maxRows:k,minRows:_,multiline:I=!1,name:M,onBlur:R,onChange:O,onFocus:A,placeholder:V,required:j=!1,rows:L,select:D=!1,SelectProps:B,type:W,value:F,variant:z="outlined"}=r,G=oe(r,hne),q=S({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:I,required:j,select:D,variant:z}),X=gne(q),ie={};z==="outlined"&&(x&&typeof x.shrink!="undefined"&&(ie.notched=x.shrink),ie.label=E),D&&((!B||!B.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const ee=Pn(g),se=b&&ee?`${ee}-helper-text`:void 0,ae=E&&ee?`${ee}-label`:void 0,we=mne[z],de=T.jsx(we,S({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:v,multiline:I,name:M,rows:L,maxRows:k,minRows:_,type:W,value:F,id:ee,inputRef:w,onBlur:R,onChange:O,onFocus:A,placeholder:V,inputProps:C},ie,P));return T.jsxs(vne,S({className:he(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:j,color:c,variant:z,ownerState:q},G,{children:[E!=null&&E!==""&&T.jsx(gb,S({htmlFor:ee,id:ae},x,{children:E})),D?T.jsx(OC,S({"aria-describedby":se,id:ee,labelId:ae,value:F,input:de},B,{children:s})):de,b&&T.jsx(av,S({id:se},m,{children:b}))]}))}),tp=yne;var LC={},st={},bne={get exports(){return st},set exports(e){st=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bne);var j0={};const wne=j$(dK);var x_;function ct(){return x_||(x_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=wne}(j0)),j0}var Cne=st;Object.defineProperty(LC,"__esModule",{value:!0});var qO=LC.default=void 0,xne=Cne(ct()),Sne=lt(),Ene=(0,xne.default)((0,Sne.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");qO=LC.default=Ene;var AC={},Pne=st;Object.defineProperty(AC,"__esModule",{value:!0});var YO=AC.default=void 0,kne=Pne(ct()),Ine=lt(),_ne=(0,kne.default)((0,Ine.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");YO=AC.default=_ne;var FC={},$ne=st;Object.defineProperty(FC,"__esModule",{value:!0});var XO=FC.default=void 0,Mne=$ne(ct()),Tne=lt(),Rne=(0,Mne.default)((0,Tne.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");XO=FC.default=Rne;var NC={},One=st;Object.defineProperty(NC,"__esModule",{value:!0});var QO=NC.default=void 0,Lne=One(ct()),Ane=lt(),Fne=(0,Lne.default)((0,Ane.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");QO=NC.default=Fne;var DC={},Nne=st;Object.defineProperty(DC,"__esModule",{value:!0});var JO=DC.default=void 0,Dne=Nne(ct()),S_=lt(),Bne=(0,Dne.default)([(0,S_.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,S_.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");JO=DC.default=Bne;var BC={},zne=st;Object.defineProperty(BC,"__esModule",{value:!0});var ZO=BC.default=void 0,jne=zne(ct()),Hne=lt(),Vne=(0,jne.default)((0,Hne.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");ZO=BC.default=Vne;var zC={},Une=st;Object.defineProperty(zC,"__esModule",{value:!0});var eL=zC.default=void 0,Wne=Une(ct()),Gne=lt(),Kne=(0,Wne.default)((0,Gne.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 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");eL=zC.default=Kne;var jC={},qne=st;Object.defineProperty(jC,"__esModule",{value:!0});var HC=jC.default=void 0,Yne=qne(ct()),Xne=lt(),Qne=(0,Yne.default)((0,Xne.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");HC=jC.default=Qne;var VC={},Jne=st;Object.defineProperty(VC,"__esModule",{value:!0});var tL=VC.default=void 0,Zne=Jne(ct()),ere=lt(),tre=(0,Zne.default)((0,ere.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");tL=VC.default=tre;var vs={},nre={get exports(){return vs},set exports(e){vs=e}};/**
|
|
234
|
-
* @license
|
|
235
|
-
* Lodash <https://lodash.com/>
|
|
236
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
237
|
-
* Released under MIT license <https://lodash.com/license>
|
|
238
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
239
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
240
|
-
*/(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,g=2,x=1,C=2,P=4,w=8,E=16,k=32,_=64,I=128,M=256,R=512,O=30,A="...",V=800,j=16,L=1,D=2,B=3,W=1/0,F=9007199254740991,z=17976931348623157e292,G=0/0,q=4294967295,X=q-1,ie=q>>>1,ee=[["ary",I],["bind",x],["bindKey",C],["curry",w],["curryRight",E],["flip",R],["partial",k],["partialRight",_],["rearg",M]],se="[object Arguments]",ae="[object Array]",we="[object AsyncFunction]",de="[object Boolean]",le="[object Date]",te="[object DOMException]",be="[object Error]",_e="[object Function]",Se="[object GeneratorFunction]",Fe="[object Map]",Re="[object Number]",Ae="[object Null]",Le="[object Object]",Ze="[object Promise]",yt="[object Proxy]",tt="[object RegExp]",et="[object Set]",Pt="[object String]",mt="[object Symbol]",at="[object Undefined]",It="[object WeakMap]",Xe="[object WeakSet]",Te="[object ArrayBuffer]",ne="[object DataView]",ke="[object Float32Array]",Ee="[object Float64Array]",$e="[object Int8Array]",Ge="[object Int16Array]",Ct="[object Int32Array]",jt="[object Uint8Array]",Ht="[object Uint8ClampedArray]",Jn="[object Uint16Array]",hn="[object Uint32Array]",Kn=/\b__p \+= '';/g,Pr=/\b(__p \+=) '' \+/g,mn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,Eo=RegExp(sn.source),Pi=RegExp(en.source),Ar=/<%-([\s\S]+?)%>/g,ti=/<%([\s\S]+?)%>/g,Po=/<%=([\s\S]+?)%>/g,Lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nn=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,me=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(me.source),gt=/^\s+/,bt=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ve=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,un=/\w*$/,wn=/^[-+]0x[0-9a-f]+$/i,Fr=/^0b[01]+$/i,Ga=/^\[object .+?Constructor\]$/,vN=/^0o[0-7]+$/i,yN=/^(?:0|[1-9]\d*)$/,bN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yp=/($^)/,wN=/['\n\r\u2028\u2029\\]/g,bp="\\ud800-\\udfff",CN="\\u0300-\\u036f",xN="\\ufe20-\\ufe2f",SN="\\u20d0-\\u20ff",NS=CN+xN+SN,DS="\\u2700-\\u27bf",BS="a-z\\xdf-\\xf6\\xf8-\\xff",EN="\\xac\\xb1\\xd7\\xf7",PN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kN="\\u2000-\\u206f",IN=" \\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",zS="A-Z\\xc0-\\xd6\\xd8-\\xde",jS="\\ufe0e\\ufe0f",HS=EN+PN+kN+IN,Uv="['’]",_N="["+bp+"]",VS="["+HS+"]",wp="["+NS+"]",US="\\d+",$N="["+DS+"]",WS="["+BS+"]",GS="[^"+bp+HS+US+DS+BS+zS+"]",Wv="\\ud83c[\\udffb-\\udfff]",MN="(?:"+wp+"|"+Wv+")",KS="[^"+bp+"]",Gv="(?:\\ud83c[\\udde6-\\uddff]){2}",Kv="[\\ud800-\\udbff][\\udc00-\\udfff]",Ka="["+zS+"]",qS="\\u200d",YS="(?:"+WS+"|"+GS+")",TN="(?:"+Ka+"|"+GS+")",XS="(?:"+Uv+"(?:d|ll|m|re|s|t|ve))?",QS="(?:"+Uv+"(?:D|LL|M|RE|S|T|VE))?",JS=MN+"?",ZS="["+jS+"]?",RN="(?:"+qS+"(?:"+[KS,Gv,Kv].join("|")+")"+ZS+JS+")*",ON="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eE=ZS+JS+RN,AN="(?:"+[$N,Gv,Kv].join("|")+")"+eE,FN="(?:"+[KS+wp+"?",wp,Gv,Kv,_N].join("|")+")",NN=RegExp(Uv,"g"),DN=RegExp(wp,"g"),qv=RegExp(Wv+"(?="+Wv+")|"+FN+eE,"g"),BN=RegExp([Ka+"?"+WS+"+"+XS+"(?="+[VS,Ka,"$"].join("|")+")",TN+"+"+QS+"(?="+[VS,Ka+YS,"$"].join("|")+")",Ka+"?"+YS+"+"+XS,Ka+"+"+QS,LN,ON,US,AN].join("|"),"g"),zN=RegExp("["+qS+bp+NS+jS+"]"),jN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HN=["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"],VN=-1,gn={};gn[ke]=gn[Ee]=gn[$e]=gn[Ge]=gn[Ct]=gn[jt]=gn[Ht]=gn[Jn]=gn[hn]=!0,gn[se]=gn[ae]=gn[Te]=gn[de]=gn[ne]=gn[le]=gn[be]=gn[_e]=gn[Fe]=gn[Re]=gn[Le]=gn[tt]=gn[et]=gn[Pt]=gn[It]=!1;var dn={};dn[se]=dn[ae]=dn[Te]=dn[ne]=dn[de]=dn[le]=dn[ke]=dn[Ee]=dn[$e]=dn[Ge]=dn[Ct]=dn[Fe]=dn[Re]=dn[Le]=dn[tt]=dn[et]=dn[Pt]=dn[mt]=dn[jt]=dn[Ht]=dn[Jn]=dn[hn]=!0,dn[be]=dn[_e]=dn[It]=!1;var UN={À:"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"},WN={"&":"&","<":"<",">":">",'"':""","'":"'"},GN={"&":"&","<":"<",">":">",""":'"',"'":"'"},KN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qN=parseFloat,YN=parseInt,tE=typeof uo=="object"&&uo&&uo.Object===Object&&uo,XN=typeof self=="object"&&self&&self.Object===Object&&self,sr=tE||XN||Function("return this")(),Yv=t&&!t.nodeType&&t,Bl=Yv&&!0&&e&&!e.nodeType&&e,nE=Bl&&Bl.exports===Yv,Xv=nE&&tE.process,ko=function(){try{var Q=Bl&&Bl.require&&Bl.require("util").types;return Q||Xv&&Xv.binding&&Xv.binding("util")}catch(ye){}}(),rE=ko&&ko.isArrayBuffer,oE=ko&&ko.isDate,iE=ko&&ko.isMap,sE=ko&&ko.isRegExp,lE=ko&&ko.isSet,aE=ko&&ko.isTypedArray;function eo(Q,ye,pe){switch(pe.length){case 0:return Q.call(ye);case 1:return Q.call(ye,pe[0]);case 2:return Q.call(ye,pe[0],pe[1]);case 3:return Q.call(ye,pe[0],pe[1],pe[2])}return Q.apply(ye,pe)}function QN(Q,ye,pe,je){for(var wt=-1,Yt=Q==null?0:Q.length;++wt<Yt;){var qn=Q[wt];ye(je,qn,pe(qn),Q)}return je}function Io(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je&&ye(Q[pe],pe,Q)!==!1;);return Q}function JN(Q,ye){for(var pe=Q==null?0:Q.length;pe--&&ye(Q[pe],pe,Q)!==!1;);return Q}function cE(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(!ye(Q[pe],pe,Q))return!1;return!0}function As(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=0,Yt=[];++pe<je;){var qn=Q[pe];ye(qn,pe,Q)&&(Yt[wt++]=qn)}return Yt}function Cp(Q,ye){var pe=Q==null?0:Q.length;return!!pe&&qa(Q,ye,0)>-1}function Qv(Q,ye,pe){for(var je=-1,wt=Q==null?0:Q.length;++je<wt;)if(pe(ye,Q[je]))return!0;return!1}function Cn(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,wt=Array(je);++pe<je;)wt[pe]=ye(Q[pe],pe,Q);return wt}function Fs(Q,ye){for(var pe=-1,je=ye.length,wt=Q.length;++pe<je;)Q[wt+pe]=ye[pe];return Q}function Jv(Q,ye,pe,je){var wt=-1,Yt=Q==null?0:Q.length;for(je&&Yt&&(pe=Q[++wt]);++wt<Yt;)pe=ye(pe,Q[wt],wt,Q);return pe}function ZN(Q,ye,pe,je){var wt=Q==null?0:Q.length;for(je&&wt&&(pe=Q[--wt]);wt--;)pe=ye(pe,Q[wt],wt,Q);return pe}function Zv(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(ye(Q[pe],pe,Q))return!0;return!1}var e4=ey("length");function t4(Q){return Q.split("")}function n4(Q){return Q.match(ge)||[]}function uE(Q,ye,pe){var je;return pe(Q,function(wt,Yt,qn){if(ye(wt,Yt,qn))return je=Yt,!1}),je}function xp(Q,ye,pe,je){for(var wt=Q.length,Yt=pe+(je?1:-1);je?Yt--:++Yt<wt;)if(ye(Q[Yt],Yt,Q))return Yt;return-1}function qa(Q,ye,pe){return ye===ye?h4(Q,ye,pe):xp(Q,dE,pe)}function r4(Q,ye,pe,je){for(var wt=pe-1,Yt=Q.length;++wt<Yt;)if(je(Q[wt],ye))return wt;return-1}function dE(Q){return Q!==Q}function fE(Q,ye){var pe=Q==null?0:Q.length;return pe?ny(Q,ye)/pe:G}function ey(Q){return function(ye){return ye==null?n:ye[Q]}}function ty(Q){return function(ye){return Q==null?n:Q[ye]}}function pE(Q,ye,pe,je,wt){return wt(Q,function(Yt,qn,an){pe=je?(je=!1,Yt):ye(pe,Yt,qn,an)}),pe}function o4(Q,ye){var pe=Q.length;for(Q.sort(ye);pe--;)Q[pe]=Q[pe].value;return Q}function ny(Q,ye){for(var pe,je=-1,wt=Q.length;++je<wt;){var Yt=ye(Q[je]);Yt!==n&&(pe=pe===n?Yt:pe+Yt)}return pe}function ry(Q,ye){for(var pe=-1,je=Array(Q);++pe<Q;)je[pe]=ye(pe);return je}function i4(Q,ye){return Cn(ye,function(pe){return[pe,Q[pe]]})}function hE(Q){return Q&&Q.slice(0,yE(Q)+1).replace(gt,"")}function to(Q){return function(ye){return Q(ye)}}function oy(Q,ye){return Cn(ye,function(pe){return Q[pe]})}function zu(Q,ye){return Q.has(ye)}function mE(Q,ye){for(var pe=-1,je=Q.length;++pe<je&&qa(ye,Q[pe],0)>-1;);return pe}function gE(Q,ye){for(var pe=Q.length;pe--&&qa(ye,Q[pe],0)>-1;);return pe}function s4(Q,ye){for(var pe=Q.length,je=0;pe--;)Q[pe]===ye&&++je;return je}var l4=ty(UN),a4=ty(WN);function c4(Q){return"\\"+KN[Q]}function u4(Q,ye){return Q==null?n:Q[ye]}function Ya(Q){return zN.test(Q)}function d4(Q){return jN.test(Q)}function f4(Q){for(var ye,pe=[];!(ye=Q.next()).done;)pe.push(ye.value);return pe}function iy(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je,wt){pe[++ye]=[wt,je]}),pe}function vE(Q,ye){return function(pe){return Q(ye(pe))}}function Ns(Q,ye){for(var pe=-1,je=Q.length,wt=0,Yt=[];++pe<je;){var qn=Q[pe];(qn===ye||qn===p)&&(Q[pe]=p,Yt[wt++]=pe)}return Yt}function Sp(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=je}),pe}function p4(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=[je,je]}),pe}function h4(Q,ye,pe){for(var je=pe-1,wt=Q.length;++je<wt;)if(Q[je]===ye)return je;return-1}function m4(Q,ye,pe){for(var je=pe+1;je--;)if(Q[je]===ye)return je;return je}function Xa(Q){return Ya(Q)?v4(Q):e4(Q)}function ni(Q){return Ya(Q)?y4(Q):t4(Q)}function yE(Q){for(var ye=Q.length;ye--&&bt.test(Q.charAt(ye)););return ye}var g4=ty(GN);function v4(Q){for(var ye=qv.lastIndex=0;qv.test(Q);)++ye;return ye}function y4(Q){return Q.match(qv)||[]}function b4(Q){return Q.match(BN)||[]}var w4=function Q(ye){ye=ye==null?sr:Qa.defaults(sr.Object(),ye,Qa.pick(sr,HN));var pe=ye.Array,je=ye.Date,wt=ye.Error,Yt=ye.Function,qn=ye.Math,an=ye.Object,sy=ye.RegExp,C4=ye.String,_o=ye.TypeError,Ep=pe.prototype,x4=Yt.prototype,Ja=an.prototype,Pp=ye["__core-js_shared__"],kp=x4.toString,tn=Ja.hasOwnProperty,S4=0,bE=function(){var l=/[^.]+$/.exec(Pp&&Pp.keys&&Pp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Ip=Ja.toString,E4=kp.call(an),P4=sr._,k4=sy("^"+kp.call(tn).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_p=nE?ye.Buffer:n,Ds=ye.Symbol,$p=ye.Uint8Array,wE=_p?_p.allocUnsafe:n,Mp=vE(an.getPrototypeOf,an),CE=an.create,xE=Ja.propertyIsEnumerable,Tp=Ep.splice,SE=Ds?Ds.isConcatSpreadable:n,ju=Ds?Ds.iterator:n,zl=Ds?Ds.toStringTag:n,Rp=function(){try{var l=Wl(an,"defineProperty");return l({},"",{}),l}catch(d){}}(),I4=ye.clearTimeout!==sr.clearTimeout&&ye.clearTimeout,_4=je&&je.now!==sr.Date.now&&je.now,$4=ye.setTimeout!==sr.setTimeout&&ye.setTimeout,Op=qn.ceil,Lp=qn.floor,ly=an.getOwnPropertySymbols,M4=_p?_p.isBuffer:n,EE=ye.isFinite,T4=Ep.join,R4=vE(an.keys,an),Yn=qn.max,hr=qn.min,O4=je.now,L4=ye.parseInt,PE=qn.random,A4=Ep.reverse,ay=Wl(ye,"DataView"),Hu=Wl(ye,"Map"),cy=Wl(ye,"Promise"),Za=Wl(ye,"Set"),Vu=Wl(ye,"WeakMap"),Uu=Wl(an,"create"),Ap=Vu&&new Vu,ec={},F4=Gl(ay),N4=Gl(Hu),D4=Gl(cy),B4=Gl(Za),z4=Gl(Vu),Fp=Ds?Ds.prototype:n,Wu=Fp?Fp.valueOf:n,kE=Fp?Fp.toString:n;function H(l){if(Ln(l)&&!xt(l)&&!(l instanceof At)){if(l instanceof $o)return l;if(tn.call(l,"__wrapped__"))return IP(l)}return new $o(l)}var tc=function(){function l(){}return function(d){if(!_n(d))return{};if(CE)return CE(d);l.prototype=d;var y=new l;return l.prototype=n,y}}();function Np(){}function $o(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}H.templateSettings={escape:Ar,evaluate:ti,interpolate:Po,variable:"",imports:{_:H}},H.prototype=Np.prototype,H.prototype.constructor=H,$o.prototype=tc(Np.prototype),$o.prototype.constructor=$o;function At(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function j4(){var l=new At(this.__wrapped__);return l.__actions__=Nr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Nr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Nr(this.__views__),l}function H4(){if(this.__filtered__){var l=new At(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function V4(){var l=this.__wrapped__.value(),d=this.__dir__,y=xt(l),$=d<0,N=y?l.length:0,U=t5(0,N,this.__views__),K=U.start,Y=U.end,J=Y-K,Ce=$?Y:K-1,xe=this.__iteratees__,Pe=xe.length,De=0,Je=hr(J,this.__takeCount__);if(!y||!$&&N==J&&Je==J)return XE(l,this.__actions__);var pt=[];e:for(;J--&&De<Je;){Ce+=d;for(var _t=-1,ht=l[Ce];++_t<Pe;){var Rt=xe[_t],Bt=Rt.iteratee,oo=Rt.type,_r=Bt(ht);if(oo==D)ht=_r;else if(!_r){if(oo==L)continue e;break e}}pt[De++]=ht}return pt}At.prototype=tc(Np.prototype),At.prototype.constructor=At;function jl(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var $=l[d];this.set($[0],$[1])}}function U4(){this.__data__=Uu?Uu(null):{},this.size=0}function W4(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function G4(l){var d=this.__data__;if(Uu){var y=d[l];return y===c?n:y}return tn.call(d,l)?d[l]:n}function K4(l){var d=this.__data__;return Uu?d[l]!==n:tn.call(d,l)}function q4(l,d){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=Uu&&d===n?c:d,this}jl.prototype.clear=U4,jl.prototype.delete=W4,jl.prototype.get=G4,jl.prototype.has=K4,jl.prototype.set=q4;function es(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var $=l[d];this.set($[0],$[1])}}function Y4(){this.__data__=[],this.size=0}function X4(l){var d=this.__data__,y=Dp(d,l);if(y<0)return!1;var $=d.length-1;return y==$?d.pop():Tp.call(d,y,1),--this.size,!0}function Q4(l){var d=this.__data__,y=Dp(d,l);return y<0?n:d[y][1]}function J4(l){return Dp(this.__data__,l)>-1}function Z4(l,d){var y=this.__data__,$=Dp(y,l);return $<0?(++this.size,y.push([l,d])):y[$][1]=d,this}es.prototype.clear=Y4,es.prototype.delete=X4,es.prototype.get=Q4,es.prototype.has=J4,es.prototype.set=Z4;function ts(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var $=l[d];this.set($[0],$[1])}}function eD(){this.size=0,this.__data__={hash:new jl,map:new(Hu||es),string:new jl}}function tD(l){var d=Xp(this,l).delete(l);return this.size-=d?1:0,d}function nD(l){return Xp(this,l).get(l)}function rD(l){return Xp(this,l).has(l)}function oD(l,d){var y=Xp(this,l),$=y.size;return y.set(l,d),this.size+=y.size==$?0:1,this}ts.prototype.clear=eD,ts.prototype.delete=tD,ts.prototype.get=nD,ts.prototype.has=rD,ts.prototype.set=oD;function Hl(l){var d=-1,y=l==null?0:l.length;for(this.__data__=new ts;++d<y;)this.add(l[d])}function iD(l){return this.__data__.set(l,c),this}function sD(l){return this.__data__.has(l)}Hl.prototype.add=Hl.prototype.push=iD,Hl.prototype.has=sD;function ri(l){var d=this.__data__=new es(l);this.size=d.size}function lD(){this.__data__=new es,this.size=0}function aD(l){var d=this.__data__,y=d.delete(l);return this.size=d.size,y}function cD(l){return this.__data__.get(l)}function uD(l){return this.__data__.has(l)}function dD(l,d){var y=this.__data__;if(y instanceof es){var $=y.__data__;if(!Hu||$.length<o-1)return $.push([l,d]),this.size=++y.size,this;y=this.__data__=new ts($)}return y.set(l,d),this.size=y.size,this}ri.prototype.clear=lD,ri.prototype.delete=aD,ri.prototype.get=cD,ri.prototype.has=uD,ri.prototype.set=dD;function IE(l,d){var y=xt(l),$=!y&&Kl(l),N=!y&&!$&&Vs(l),U=!y&&!$&&!N&&ic(l),K=y||$||N||U,Y=K?ry(l.length,C4):[],J=Y.length;for(var Ce in l)(d||tn.call(l,Ce))&&!(K&&(Ce=="length"||N&&(Ce=="offset"||Ce=="parent")||U&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||is(Ce,J)))&&Y.push(Ce);return Y}function _E(l){var d=l.length;return d?l[wy(0,d-1)]:n}function fD(l,d){return Qp(Nr(l),Vl(d,0,l.length))}function pD(l){return Qp(Nr(l))}function uy(l,d,y){(y!==n&&!oi(l[d],y)||y===n&&!(d in l))&&ns(l,d,y)}function Gu(l,d,y){var $=l[d];(!(tn.call(l,d)&&oi($,y))||y===n&&!(d in l))&&ns(l,d,y)}function Dp(l,d){for(var y=l.length;y--;)if(oi(l[y][0],d))return y;return-1}function hD(l,d,y,$){return Bs(l,function(N,U,K){d($,N,y(N),K)}),$}function $E(l,d){return l&&Ii(d,Zn(d),l)}function mD(l,d){return l&&Ii(d,Br(d),l)}function ns(l,d,y){d=="__proto__"&&Rp?Rp(l,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[d]=y}function dy(l,d){for(var y=-1,$=d.length,N=pe($),U=l==null;++y<$;)N[y]=U?n:Wy(l,d[y]);return N}function Vl(l,d,y){return l===l&&(y!==n&&(l=l<=y?l:y),d!==n&&(l=l>=d?l:d)),l}function Mo(l,d,y,$,N,U){var K,Y=d&h,J=d&m,Ce=d&v;if(y&&(K=N?y(l,$,N,U):y(l)),K!==n)return K;if(!_n(l))return l;var xe=xt(l);if(xe){if(K=r5(l),!Y)return Nr(l,K)}else{var Pe=mr(l),De=Pe==_e||Pe==Se;if(Vs(l))return ZE(l,Y);if(Pe==Le||Pe==se||De&&!N){if(K=J||De?{}:yP(l),!Y)return J?GD(l,mD(K,l)):WD(l,$E(K,l))}else{if(!dn[Pe])return N?l:{};K=o5(l,Pe,Y)}}U||(U=new ri);var Je=U.get(l);if(Je)return Je;U.set(l,K),KP(l)?l.forEach(function(ht){K.add(Mo(ht,d,y,ht,l,U))}):WP(l)&&l.forEach(function(ht,Rt){K.set(Rt,Mo(ht,d,y,Rt,l,U))});var pt=Ce?J?Ty:My:J?Br:Zn,_t=xe?n:pt(l);return Io(_t||l,function(ht,Rt){_t&&(Rt=ht,ht=l[Rt]),Gu(K,Rt,Mo(ht,d,y,Rt,l,U))}),K}function gD(l){var d=Zn(l);return function(y){return ME(y,l,d)}}function ME(l,d,y){var $=y.length;if(l==null)return!$;for(l=an(l);$--;){var N=y[$],U=d[N],K=l[N];if(K===n&&!(N in l)||!U(K))return!1}return!0}function TE(l,d,y){if(typeof l!="function")throw new _o(s);return Zu(function(){l.apply(n,y)},d)}function Ku(l,d,y,$){var N=-1,U=Cp,K=!0,Y=l.length,J=[],Ce=d.length;if(!Y)return J;y&&(d=Cn(d,to(y))),$?(U=Qv,K=!1):d.length>=o&&(U=zu,K=!1,d=new Hl(d));e:for(;++N<Y;){var xe=l[N],Pe=y==null?xe:y(xe);if(xe=$||xe!==0?xe:0,K&&Pe===Pe){for(var De=Ce;De--;)if(d[De]===Pe)continue e;J.push(xe)}else U(d,Pe,$)||J.push(xe)}return J}var Bs=oP(ki),RE=oP(py,!0);function vD(l,d){var y=!0;return Bs(l,function($,N,U){return y=!!d($,N,U),y}),y}function Bp(l,d,y){for(var $=-1,N=l.length;++$<N;){var U=l[$],K=d(U);if(K!=null&&(Y===n?K===K&&!ro(K):y(K,Y)))var Y=K,J=U}return J}function yD(l,d,y,$){var N=l.length;for(y=kt(y),y<0&&(y=-y>N?0:N+y),$=$===n||$>N?N:kt($),$<0&&($+=N),$=y>$?0:YP($);y<$;)l[y++]=d;return l}function OE(l,d){var y=[];return Bs(l,function($,N,U){d($,N,U)&&y.push($)}),y}function lr(l,d,y,$,N){var U=-1,K=l.length;for(y||(y=s5),N||(N=[]);++U<K;){var Y=l[U];d>0&&y(Y)?d>1?lr(Y,d-1,y,$,N):Fs(N,Y):$||(N[N.length]=Y)}return N}var fy=iP(),LE=iP(!0);function ki(l,d){return l&&fy(l,d,Zn)}function py(l,d){return l&&LE(l,d,Zn)}function zp(l,d){return As(d,function(y){return ss(l[y])})}function Ul(l,d){d=js(d,l);for(var y=0,$=d.length;l!=null&&y<$;)l=l[_i(d[y++])];return y&&y==$?l:n}function AE(l,d,y){var $=d(l);return xt(l)?$:Fs($,y(l))}function kr(l){return l==null?l===n?at:Ae:zl&&zl in an(l)?e5(l):p5(l)}function hy(l,d){return l>d}function bD(l,d){return l!=null&&tn.call(l,d)}function wD(l,d){return l!=null&&d in an(l)}function CD(l,d,y){return l>=hr(d,y)&&l<Yn(d,y)}function my(l,d,y){for(var $=y?Qv:Cp,N=l[0].length,U=l.length,K=U,Y=pe(U),J=1/0,Ce=[];K--;){var xe=l[K];K&&d&&(xe=Cn(xe,to(d))),J=hr(xe.length,J),Y[K]=!y&&(d||N>=120&&xe.length>=120)?new Hl(K&&xe):n}xe=l[0];var Pe=-1,De=Y[0];e:for(;++Pe<N&&Ce.length<J;){var Je=xe[Pe],pt=d?d(Je):Je;if(Je=y||Je!==0?Je:0,!(De?zu(De,pt):$(Ce,pt,y))){for(K=U;--K;){var _t=Y[K];if(!(_t?zu(_t,pt):$(l[K],pt,y)))continue e}De&&De.push(pt),Ce.push(Je)}}return Ce}function xD(l,d,y,$){return ki(l,function(N,U,K){d($,y(N),U,K)}),$}function qu(l,d,y){d=js(d,l),l=xP(l,d);var $=l==null?l:l[_i(Ro(d))];return $==null?n:eo($,l,y)}function FE(l){return Ln(l)&&kr(l)==se}function SD(l){return Ln(l)&&kr(l)==Te}function ED(l){return Ln(l)&&kr(l)==le}function Yu(l,d,y,$,N){return l===d?!0:l==null||d==null||!Ln(l)&&!Ln(d)?l!==l&&d!==d:PD(l,d,y,$,Yu,N)}function PD(l,d,y,$,N,U){var K=xt(l),Y=xt(d),J=K?ae:mr(l),Ce=Y?ae:mr(d);J=J==se?Le:J,Ce=Ce==se?Le:Ce;var xe=J==Le,Pe=Ce==Le,De=J==Ce;if(De&&Vs(l)){if(!Vs(d))return!1;K=!0,xe=!1}if(De&&!xe)return U||(U=new ri),K||ic(l)?mP(l,d,y,$,N,U):JD(l,d,J,y,$,N,U);if(!(y&b)){var Je=xe&&tn.call(l,"__wrapped__"),pt=Pe&&tn.call(d,"__wrapped__");if(Je||pt){var _t=Je?l.value():l,ht=pt?d.value():d;return U||(U=new ri),N(_t,ht,y,$,U)}}return De?(U||(U=new ri),ZD(l,d,y,$,N,U)):!1}function kD(l){return Ln(l)&&mr(l)==Fe}function gy(l,d,y,$){var N=y.length,U=N,K=!$;if(l==null)return!U;for(l=an(l);N--;){var Y=y[N];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++N<U;){Y=y[N];var J=Y[0],Ce=l[J],xe=Y[1];if(K&&Y[2]){if(Ce===n&&!(J in l))return!1}else{var Pe=new ri;if($)var De=$(Ce,xe,J,l,d,Pe);if(!(De===n?Yu(xe,Ce,b|g,$,Pe):De))return!1}}return!0}function NE(l){if(!_n(l)||a5(l))return!1;var d=ss(l)?k4:Ga;return d.test(Gl(l))}function ID(l){return Ln(l)&&kr(l)==tt}function _D(l){return Ln(l)&&mr(l)==et}function $D(l){return Ln(l)&&rh(l.length)&&!!gn[kr(l)]}function DE(l){return typeof l=="function"?l:l==null?zr:typeof l=="object"?xt(l)?jE(l[0],l[1]):zE(l):sk(l)}function vy(l){if(!Ju(l))return R4(l);var d=[];for(var y in an(l))tn.call(l,y)&&y!="constructor"&&d.push(y);return d}function MD(l){if(!_n(l))return f5(l);var d=Ju(l),y=[];for(var $ in l)$=="constructor"&&(d||!tn.call(l,$))||y.push($);return y}function yy(l,d){return l<d}function BE(l,d){var y=-1,$=Dr(l)?pe(l.length):[];return Bs(l,function(N,U,K){$[++y]=d(N,U,K)}),$}function zE(l){var d=Oy(l);return d.length==1&&d[0][2]?wP(d[0][0],d[0][1]):function(y){return y===l||gy(y,l,d)}}function jE(l,d){return Ay(l)&&bP(d)?wP(_i(l),d):function(y){var $=Wy(y,l);return $===n&&$===d?Gy(y,l):Yu(d,$,b|g)}}function jp(l,d,y,$,N){l!==d&&fy(d,function(U,K){if(N||(N=new ri),_n(U))TD(l,d,K,y,jp,$,N);else{var Y=$?$(Ny(l,K),U,K+"",l,d,N):n;Y===n&&(Y=U),uy(l,K,Y)}},Br)}function TD(l,d,y,$,N,U,K){var Y=Ny(l,y),J=Ny(d,y),Ce=K.get(J);if(Ce){uy(l,y,Ce);return}var xe=U?U(Y,J,y+"",l,d,K):n,Pe=xe===n;if(Pe){var De=xt(J),Je=!De&&Vs(J),pt=!De&&!Je&&ic(J);xe=J,De||Je||pt?xt(Y)?xe=Y:Dn(Y)?xe=Nr(Y):Je?(Pe=!1,xe=ZE(J,!0)):pt?(Pe=!1,xe=eP(J,!0)):xe=[]:ed(J)||Kl(J)?(xe=Y,Kl(Y)?xe=XP(Y):(!_n(Y)||ss(Y))&&(xe=yP(J))):Pe=!1}Pe&&(K.set(J,xe),N(xe,J,$,U,K),K.delete(J)),uy(l,y,xe)}function HE(l,d){var y=l.length;if(y)return d+=d<0?y:0,is(d,y)?l[d]:n}function VE(l,d,y){d.length?d=Cn(d,function(U){return xt(U)?function(K){return Ul(K,U.length===1?U[0]:U)}:U}):d=[zr];var $=-1;d=Cn(d,to(dt()));var N=BE(l,function(U,K,Y){var J=Cn(d,function(Ce){return Ce(U)});return{criteria:J,index:++$,value:U}});return o4(N,function(U,K){return UD(U,K,y)})}function RD(l,d){return UE(l,d,function(y,$){return Gy(l,$)})}function UE(l,d,y){for(var $=-1,N=d.length,U={};++$<N;){var K=d[$],Y=Ul(l,K);y(Y,K)&&Xu(U,js(K,l),Y)}return U}function OD(l){return function(d){return Ul(d,l)}}function by(l,d,y,$){var N=$?r4:qa,U=-1,K=d.length,Y=l;for(l===d&&(d=Nr(d)),y&&(Y=Cn(l,to(y)));++U<K;)for(var J=0,Ce=d[U],xe=y?y(Ce):Ce;(J=N(Y,xe,J,$))>-1;)Y!==l&&Tp.call(Y,J,1),Tp.call(l,J,1);return l}function WE(l,d){for(var y=l?d.length:0,$=y-1;y--;){var N=d[y];if(y==$||N!==U){var U=N;is(N)?Tp.call(l,N,1):Sy(l,N)}}return l}function wy(l,d){return l+Lp(PE()*(d-l+1))}function LD(l,d,y,$){for(var N=-1,U=Yn(Op((d-l)/(y||1)),0),K=pe(U);U--;)K[$?U:++N]=l,l+=y;return K}function Cy(l,d){var y="";if(!l||d<1||d>F)return y;do d%2&&(y+=l),d=Lp(d/2),d&&(l+=l);while(d);return y}function $t(l,d){return Dy(CP(l,d,zr),l+"")}function AD(l){return _E(sc(l))}function FD(l,d){var y=sc(l);return Qp(y,Vl(d,0,y.length))}function Xu(l,d,y,$){if(!_n(l))return l;d=js(d,l);for(var N=-1,U=d.length,K=U-1,Y=l;Y!=null&&++N<U;){var J=_i(d[N]),Ce=y;if(J==="__proto__"||J==="constructor"||J==="prototype")return l;if(N!=K){var xe=Y[J];Ce=$?$(xe,J,Y):n,Ce===n&&(Ce=_n(xe)?xe:is(d[N+1])?[]:{})}Gu(Y,J,Ce),Y=Y[J]}return l}var GE=Ap?function(l,d){return Ap.set(l,d),l}:zr,ND=Rp?function(l,d){return Rp(l,"toString",{configurable:!0,enumerable:!1,value:qy(d),writable:!0})}:zr;function DD(l){return Qp(sc(l))}function To(l,d,y){var $=-1,N=l.length;d<0&&(d=-d>N?0:N+d),y=y>N?N:y,y<0&&(y+=N),N=d>y?0:y-d>>>0,d>>>=0;for(var U=pe(N);++$<N;)U[$]=l[$+d];return U}function BD(l,d){var y;return Bs(l,function($,N,U){return y=d($,N,U),!y}),!!y}function Hp(l,d,y){var $=0,N=l==null?$:l.length;if(typeof d=="number"&&d===d&&N<=ie){for(;$<N;){var U=$+N>>>1,K=l[U];K!==null&&!ro(K)&&(y?K<=d:K<d)?$=U+1:N=U}return N}return xy(l,d,zr,y)}function xy(l,d,y,$){var N=0,U=l==null?0:l.length;if(U===0)return 0;d=y(d);for(var K=d!==d,Y=d===null,J=ro(d),Ce=d===n;N<U;){var xe=Lp((N+U)/2),Pe=y(l[xe]),De=Pe!==n,Je=Pe===null,pt=Pe===Pe,_t=ro(Pe);if(K)var ht=$||pt;else Ce?ht=pt&&($||De):Y?ht=pt&&De&&($||!Je):J?ht=pt&&De&&!Je&&($||!_t):Je||_t?ht=!1:ht=$?Pe<=d:Pe<d;ht?N=xe+1:U=xe}return hr(U,X)}function KE(l,d){for(var y=-1,$=l.length,N=0,U=[];++y<$;){var K=l[y],Y=d?d(K):K;if(!y||!oi(Y,J)){var J=Y;U[N++]=K===0?0:K}}return U}function qE(l){return typeof l=="number"?l:ro(l)?G:+l}function no(l){if(typeof l=="string")return l;if(xt(l))return Cn(l,no)+"";if(ro(l))return kE?kE.call(l):"";var d=l+"";return d=="0"&&1/l==-W?"-0":d}function zs(l,d,y){var $=-1,N=Cp,U=l.length,K=!0,Y=[],J=Y;if(y)K=!1,N=Qv;else if(U>=o){var Ce=d?null:XD(l);if(Ce)return Sp(Ce);K=!1,N=zu,J=new Hl}else J=d?[]:Y;e:for(;++$<U;){var xe=l[$],Pe=d?d(xe):xe;if(xe=y||xe!==0?xe:0,K&&Pe===Pe){for(var De=J.length;De--;)if(J[De]===Pe)continue e;d&&J.push(Pe),Y.push(xe)}else N(J,Pe,y)||(J!==Y&&J.push(Pe),Y.push(xe))}return Y}function Sy(l,d){return d=js(d,l),l=xP(l,d),l==null||delete l[_i(Ro(d))]}function YE(l,d,y,$){return Xu(l,d,y(Ul(l,d)),$)}function Vp(l,d,y,$){for(var N=l.length,U=$?N:-1;($?U--:++U<N)&&d(l[U],U,l););return y?To(l,$?0:U,$?U+1:N):To(l,$?U+1:0,$?N:U)}function XE(l,d){var y=l;return y instanceof At&&(y=y.value()),Jv(d,function($,N){return N.func.apply(N.thisArg,Fs([$],N.args))},y)}function Ey(l,d,y){var $=l.length;if($<2)return $?zs(l[0]):[];for(var N=-1,U=pe($);++N<$;)for(var K=l[N],Y=-1;++Y<$;)Y!=N&&(U[N]=Ku(U[N]||K,l[Y],d,y));return zs(lr(U,1),d,y)}function QE(l,d,y){for(var $=-1,N=l.length,U=d.length,K={};++$<N;){var Y=$<U?d[$]:n;y(K,l[$],Y)}return K}function Py(l){return Dn(l)?l:[]}function ky(l){return typeof l=="function"?l:zr}function js(l,d){return xt(l)?l:Ay(l,d)?[l]:kP(Jt(l))}var zD=$t;function Hs(l,d,y){var $=l.length;return y=y===n?$:y,!d&&y>=$?l:To(l,d,y)}var JE=I4||function(l){return sr.clearTimeout(l)};function ZE(l,d){if(d)return l.slice();var y=l.length,$=wE?wE(y):new l.constructor(y);return l.copy($),$}function Iy(l){var d=new l.constructor(l.byteLength);return new $p(d).set(new $p(l)),d}function jD(l,d){var y=d?Iy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function HD(l){var d=new l.constructor(l.source,un.exec(l));return d.lastIndex=l.lastIndex,d}function VD(l){return Wu?an(Wu.call(l)):{}}function eP(l,d){var y=d?Iy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function tP(l,d){if(l!==d){var y=l!==n,$=l===null,N=l===l,U=ro(l),K=d!==n,Y=d===null,J=d===d,Ce=ro(d);if(!Y&&!Ce&&!U&&l>d||U&&K&&J&&!Y&&!Ce||$&&K&&J||!y&&J||!N)return 1;if(!$&&!U&&!Ce&&l<d||Ce&&y&&N&&!$&&!U||Y&&y&&N||!K&&N||!J)return-1}return 0}function UD(l,d,y){for(var $=-1,N=l.criteria,U=d.criteria,K=N.length,Y=y.length;++$<K;){var J=tP(N[$],U[$]);if(J){if($>=Y)return J;var Ce=y[$];return J*(Ce=="desc"?-1:1)}}return l.index-d.index}function nP(l,d,y,$){for(var N=-1,U=l.length,K=y.length,Y=-1,J=d.length,Ce=Yn(U-K,0),xe=pe(J+Ce),Pe=!$;++Y<J;)xe[Y]=d[Y];for(;++N<K;)(Pe||N<U)&&(xe[y[N]]=l[N]);for(;Ce--;)xe[Y++]=l[N++];return xe}function rP(l,d,y,$){for(var N=-1,U=l.length,K=-1,Y=y.length,J=-1,Ce=d.length,xe=Yn(U-Y,0),Pe=pe(xe+Ce),De=!$;++N<xe;)Pe[N]=l[N];for(var Je=N;++J<Ce;)Pe[Je+J]=d[J];for(;++K<Y;)(De||N<U)&&(Pe[Je+y[K]]=l[N++]);return Pe}function Nr(l,d){var y=-1,$=l.length;for(d||(d=pe($));++y<$;)d[y]=l[y];return d}function Ii(l,d,y,$){var N=!y;y||(y={});for(var U=-1,K=d.length;++U<K;){var Y=d[U],J=$?$(y[Y],l[Y],Y,y,l):n;J===n&&(J=l[Y]),N?ns(y,Y,J):Gu(y,Y,J)}return y}function WD(l,d){return Ii(l,Ly(l),d)}function GD(l,d){return Ii(l,gP(l),d)}function Up(l,d){return function(y,$){var N=xt(y)?QN:hD,U=d?d():{};return N(y,l,dt($,2),U)}}function nc(l){return $t(function(d,y){var $=-1,N=y.length,U=N>1?y[N-1]:n,K=N>2?y[2]:n;for(U=l.length>3&&typeof U=="function"?(N--,U):n,K&&Ir(y[0],y[1],K)&&(U=N<3?n:U,N=1),d=an(d);++$<N;){var Y=y[$];Y&&l(d,Y,$,U)}return d})}function oP(l,d){return function(y,$){if(y==null)return y;if(!Dr(y))return l(y,$);for(var N=y.length,U=d?N:-1,K=an(y);(d?U--:++U<N)&&$(K[U],U,K)!==!1;);return y}}function iP(l){return function(d,y,$){for(var N=-1,U=an(d),K=$(d),Y=K.length;Y--;){var J=K[l?Y:++N];if(y(U[J],J,U)===!1)break}return d}}function KD(l,d,y){var $=d&x,N=Qu(l);function U(){var K=this&&this!==sr&&this instanceof U?N:l;return K.apply($?y:this,arguments)}return U}function sP(l){return function(d){d=Jt(d);var y=Ya(d)?ni(d):n,$=y?y[0]:d.charAt(0),N=y?Hs(y,1).join(""):d.slice(1);return $[l]()+N}}function rc(l){return function(d){return Jv(ok(rk(d).replace(NN,"")),l,"")}}function Qu(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=tc(l.prototype),$=l.apply(y,d);return _n($)?$:y}}function qD(l,d,y){var $=Qu(l);function N(){for(var U=arguments.length,K=pe(U),Y=U,J=oc(N);Y--;)K[Y]=arguments[Y];var Ce=U<3&&K[0]!==J&&K[U-1]!==J?[]:Ns(K,J);if(U-=Ce.length,U<y)return dP(l,d,Wp,N.placeholder,n,K,Ce,n,n,y-U);var xe=this&&this!==sr&&this instanceof N?$:l;return eo(xe,this,K)}return N}function lP(l){return function(d,y,$){var N=an(d);if(!Dr(d)){var U=dt(y,3);d=Zn(d),y=function(Y){return U(N[Y],Y,N)}}var K=l(d,y,$);return K>-1?N[U?d[K]:K]:n}}function aP(l){return os(function(d){var y=d.length,$=y,N=$o.prototype.thru;for(l&&d.reverse();$--;){var U=d[$];if(typeof U!="function")throw new _o(s);if(N&&!K&&Yp(U)=="wrapper")var K=new $o([],!0)}for($=K?$:y;++$<y;){U=d[$];var Y=Yp(U),J=Y=="wrapper"?Ry(U):n;J&&Fy(J[0])&&J[1]==(I|w|k|M)&&!J[4].length&&J[9]==1?K=K[Yp(J[0])].apply(K,J[3]):K=U.length==1&&Fy(U)?K[Y]():K.thru(U)}return function(){var Ce=arguments,xe=Ce[0];if(K&&Ce.length==1&&xt(xe))return K.plant(xe).value();for(var Pe=0,De=y?d[Pe].apply(this,Ce):xe;++Pe<y;)De=d[Pe].call(this,De);return De}})}function Wp(l,d,y,$,N,U,K,Y,J,Ce){var xe=d&I,Pe=d&x,De=d&C,Je=d&(w|E),pt=d&R,_t=De?n:Qu(l);function ht(){for(var Rt=arguments.length,Bt=pe(Rt),oo=Rt;oo--;)Bt[oo]=arguments[oo];if(Je)var _r=oc(ht),io=s4(Bt,_r);if($&&(Bt=nP(Bt,$,N,Je)),U&&(Bt=rP(Bt,U,K,Je)),Rt-=io,Je&&Rt<Ce){var Bn=Ns(Bt,_r);return dP(l,d,Wp,ht.placeholder,y,Bt,Bn,Y,J,Ce-Rt)}var ii=Pe?y:this,as=De?ii[l]:l;return Rt=Bt.length,Y?Bt=h5(Bt,Y):pt&&Rt>1&&Bt.reverse(),xe&&J<Rt&&(Bt.length=J),this&&this!==sr&&this instanceof ht&&(as=_t||Qu(as)),as.apply(ii,Bt)}return ht}function cP(l,d){return function(y,$){return xD(y,l,d($),{})}}function Gp(l,d){return function(y,$){var N;if(y===n&&$===n)return d;if(y!==n&&(N=y),$!==n){if(N===n)return $;typeof y=="string"||typeof $=="string"?(y=no(y),$=no($)):(y=qE(y),$=qE($)),N=l(y,$)}return N}}function _y(l){return os(function(d){return d=Cn(d,to(dt())),$t(function(y){var $=this;return l(d,function(N){return eo(N,$,y)})})})}function Kp(l,d){d=d===n?" ":no(d);var y=d.length;if(y<2)return y?Cy(d,l):d;var $=Cy(d,Op(l/Xa(d)));return Ya(d)?Hs(ni($),0,l).join(""):$.slice(0,l)}function YD(l,d,y,$){var N=d&x,U=Qu(l);function K(){for(var Y=-1,J=arguments.length,Ce=-1,xe=$.length,Pe=pe(xe+J),De=this&&this!==sr&&this instanceof K?U:l;++Ce<xe;)Pe[Ce]=$[Ce];for(;J--;)Pe[Ce++]=arguments[++Y];return eo(De,N?y:this,Pe)}return K}function uP(l){return function(d,y,$){return $&&typeof $!="number"&&Ir(d,y,$)&&(y=$=n),d=ls(d),y===n?(y=d,d=0):y=ls(y),$=$===n?d<y?1:-1:ls($),LD(d,y,$,l)}}function qp(l){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Oo(d),y=Oo(y)),l(d,y)}}function dP(l,d,y,$,N,U,K,Y,J,Ce){var xe=d&w,Pe=xe?K:n,De=xe?n:K,Je=xe?U:n,pt=xe?n:U;d|=xe?k:_,d&=~(xe?_:k),d&P||(d&=~(x|C));var _t=[l,d,N,Je,Pe,pt,De,Y,J,Ce],ht=y.apply(n,_t);return Fy(l)&&SP(ht,_t),ht.placeholder=$,EP(ht,l,d)}function $y(l){var d=qn[l];return function(y,$){if(y=Oo(y),$=$==null?0:hr(kt($),292),$&&EE(y)){var N=(Jt(y)+"e").split("e"),U=d(N[0]+"e"+(+N[1]+$));return N=(Jt(U)+"e").split("e"),+(N[0]+"e"+(+N[1]-$))}return d(y)}}var XD=Za&&1/Sp(new Za([,-0]))[1]==W?function(l){return new Za(l)}:Qy;function fP(l){return function(d){var y=mr(d);return y==Fe?iy(d):y==et?p4(d):i4(d,l(d))}}function rs(l,d,y,$,N,U,K,Y){var J=d&C;if(!J&&typeof l!="function")throw new _o(s);var Ce=$?$.length:0;if(Ce||(d&=~(k|_),$=N=n),K=K===n?K:Yn(kt(K),0),Y=Y===n?Y:kt(Y),Ce-=N?N.length:0,d&_){var xe=$,Pe=N;$=N=n}var De=J?n:Ry(l),Je=[l,d,y,$,N,xe,Pe,U,K,Y];if(De&&d5(Je,De),l=Je[0],d=Je[1],y=Je[2],$=Je[3],N=Je[4],Y=Je[9]=Je[9]===n?J?0:l.length:Yn(Je[9]-Ce,0),!Y&&d&(w|E)&&(d&=~(w|E)),!d||d==x)var pt=KD(l,d,y);else d==w||d==E?pt=qD(l,d,Y):(d==k||d==(x|k))&&!N.length?pt=YD(l,d,y,$):pt=Wp.apply(n,Je);var _t=De?GE:SP;return EP(_t(pt,Je),l,d)}function pP(l,d,y,$){return l===n||oi(l,Ja[y])&&!tn.call($,y)?d:l}function hP(l,d,y,$,N,U){return _n(l)&&_n(d)&&(U.set(d,l),jp(l,d,n,hP,U),U.delete(d)),l}function QD(l){return ed(l)?n:l}function mP(l,d,y,$,N,U){var K=y&b,Y=l.length,J=d.length;if(Y!=J&&!(K&&J>Y))return!1;var Ce=U.get(l),xe=U.get(d);if(Ce&&xe)return Ce==d&&xe==l;var Pe=-1,De=!0,Je=y&g?new Hl:n;for(U.set(l,d),U.set(d,l);++Pe<Y;){var pt=l[Pe],_t=d[Pe];if($)var ht=K?$(_t,pt,Pe,d,l,U):$(pt,_t,Pe,l,d,U);if(ht!==n){if(ht)continue;De=!1;break}if(Je){if(!Zv(d,function(Rt,Bt){if(!zu(Je,Bt)&&(pt===Rt||N(pt,Rt,y,$,U)))return Je.push(Bt)})){De=!1;break}}else if(!(pt===_t||N(pt,_t,y,$,U))){De=!1;break}}return U.delete(l),U.delete(d),De}function JD(l,d,y,$,N,U,K){switch(y){case ne:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Te:return!(l.byteLength!=d.byteLength||!U(new $p(l),new $p(d)));case de:case le:case Re:return oi(+l,+d);case be:return l.name==d.name&&l.message==d.message;case tt:case Pt:return l==d+"";case Fe:var Y=iy;case et:var J=$&b;if(Y||(Y=Sp),l.size!=d.size&&!J)return!1;var Ce=K.get(l);if(Ce)return Ce==d;$|=g,K.set(l,d);var xe=mP(Y(l),Y(d),$,N,U,K);return K.delete(l),xe;case mt:if(Wu)return Wu.call(l)==Wu.call(d)}return!1}function ZD(l,d,y,$,N,U){var K=y&b,Y=My(l),J=Y.length,Ce=My(d),xe=Ce.length;if(J!=xe&&!K)return!1;for(var Pe=J;Pe--;){var De=Y[Pe];if(!(K?De in d:tn.call(d,De)))return!1}var Je=U.get(l),pt=U.get(d);if(Je&&pt)return Je==d&&pt==l;var _t=!0;U.set(l,d),U.set(d,l);for(var ht=K;++Pe<J;){De=Y[Pe];var Rt=l[De],Bt=d[De];if($)var oo=K?$(Bt,Rt,De,d,l,U):$(Rt,Bt,De,l,d,U);if(!(oo===n?Rt===Bt||N(Rt,Bt,y,$,U):oo)){_t=!1;break}ht||(ht=De=="constructor")}if(_t&&!ht){var _r=l.constructor,io=d.constructor;_r!=io&&"constructor"in l&&"constructor"in d&&!(typeof _r=="function"&&_r instanceof _r&&typeof io=="function"&&io instanceof io)&&(_t=!1)}return U.delete(l),U.delete(d),_t}function os(l){return Dy(CP(l,n,MP),l+"")}function My(l){return AE(l,Zn,Ly)}function Ty(l){return AE(l,Br,gP)}var Ry=Ap?function(l){return Ap.get(l)}:Qy;function Yp(l){for(var d=l.name+"",y=ec[d],$=tn.call(ec,d)?y.length:0;$--;){var N=y[$],U=N.func;if(U==null||U==l)return N.name}return d}function oc(l){var d=tn.call(H,"placeholder")?H:l;return d.placeholder}function dt(){var l=H.iteratee||Yy;return l=l===Yy?DE:l,arguments.length?l(arguments[0],arguments[1]):l}function Xp(l,d){var y=l.__data__;return l5(d)?y[typeof d=="string"?"string":"hash"]:y.map}function Oy(l){for(var d=Zn(l),y=d.length;y--;){var $=d[y],N=l[$];d[y]=[$,N,bP(N)]}return d}function Wl(l,d){var y=u4(l,d);return NE(y)?y:n}function e5(l){var d=tn.call(l,zl),y=l[zl];try{l[zl]=n;var $=!0}catch(U){}var N=Ip.call(l);return $&&(d?l[zl]=y:delete l[zl]),N}var Ly=ly?function(l){return l==null?[]:(l=an(l),As(ly(l),function(d){return xE.call(l,d)}))}:Jy,gP=ly?function(l){for(var d=[];l;)Fs(d,Ly(l)),l=Mp(l);return d}:Jy,mr=kr;(ay&&mr(new ay(new ArrayBuffer(1)))!=ne||Hu&&mr(new Hu)!=Fe||cy&&mr(cy.resolve())!=Ze||Za&&mr(new Za)!=et||Vu&&mr(new Vu)!=It)&&(mr=function(l){var d=kr(l),y=d==Le?l.constructor:n,$=y?Gl(y):"";if($)switch($){case F4:return ne;case N4:return Fe;case D4:return Ze;case B4:return et;case z4:return It}return d});function t5(l,d,y){for(var $=-1,N=y.length;++$<N;){var U=y[$],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":d-=K;break;case"take":d=hr(d,l+K);break;case"takeRight":l=Yn(l,d-K);break}}return{start:l,end:d}}function n5(l){var d=l.match(ut);return d?d[1].split(ve):[]}function vP(l,d,y){d=js(d,l);for(var $=-1,N=d.length,U=!1;++$<N;){var K=_i(d[$]);if(!(U=l!=null&&y(l,K)))break;l=l[K]}return U||++$!=N?U:(N=l==null?0:l.length,!!N&&rh(N)&&is(K,N)&&(xt(l)||Kl(l)))}function r5(l){var d=l.length,y=new l.constructor(d);return d&&typeof l[0]=="string"&&tn.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function yP(l){return typeof l.constructor=="function"&&!Ju(l)?tc(Mp(l)):{}}function o5(l,d,y){var $=l.constructor;switch(d){case Te:return Iy(l);case de:case le:return new $(+l);case ne:return jD(l,y);case ke:case Ee:case $e:case Ge:case Ct:case jt:case Ht:case Jn:case hn:return eP(l,y);case Fe:return new $;case Re:case Pt:return new $(l);case tt:return HD(l);case et:return new $;case mt:return VD(l)}}function i5(l,d){var y=d.length;if(!y)return l;var $=y-1;return d[$]=(y>1?"& ":"")+d[$],d=d.join(y>2?", ":" "),l.replace(Be,`{
|
|
241
|
-
/* [wrapped with `+d+`] */
|
|
242
|
-
`)}function s5(l){return xt(l)||Kl(l)||!!(SE&&l&&l[SE])}function is(l,d){var y=typeof l;return d=d==null?F:d,!!d&&(y=="number"||y!="symbol"&&yN.test(l))&&l>-1&&l%1==0&&l<d}function Ir(l,d,y){if(!_n(y))return!1;var $=typeof d;return($=="number"?Dr(y)&&is(d,y.length):$=="string"&&d in y)?oi(y[d],l):!1}function Ay(l,d){if(xt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||ro(l)?!0:Nn.test(l)||!Lt.test(l)||d!=null&&l in an(d)}function l5(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Fy(l){var d=Yp(l),y=H[d];if(typeof y!="function"||!(d in At.prototype))return!1;if(l===y)return!0;var $=Ry(y);return!!$&&l===$[0]}function a5(l){return!!bE&&bE in l}var c5=Pp?ss:Zy;function Ju(l){var d=l&&l.constructor,y=typeof d=="function"&&d.prototype||Ja;return l===y}function bP(l){return l===l&&!_n(l)}function wP(l,d){return function(y){return y==null?!1:y[l]===d&&(d!==n||l in an(y))}}function u5(l){var d=th(l,function($){return y.size===f&&y.clear(),$}),y=d.cache;return d}function d5(l,d){var y=l[1],$=d[1],N=y|$,U=N<(x|C|I),K=$==I&&y==w||$==I&&y==M&&l[7].length<=d[8]||$==(I|M)&&d[7].length<=d[8]&&y==w;if(!(U||K))return l;$&x&&(l[2]=d[2],N|=y&x?0:P);var Y=d[3];if(Y){var J=l[3];l[3]=J?nP(J,Y,d[4]):Y,l[4]=J?Ns(l[3],p):d[4]}return Y=d[5],Y&&(J=l[5],l[5]=J?rP(J,Y,d[6]):Y,l[6]=J?Ns(l[5],p):d[6]),Y=d[7],Y&&(l[7]=Y),$&I&&(l[8]=l[8]==null?d[8]:hr(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=N,l}function f5(l){var d=[];if(l!=null)for(var y in an(l))d.push(y);return d}function p5(l){return Ip.call(l)}function CP(l,d,y){return d=Yn(d===n?l.length-1:d,0),function(){for(var $=arguments,N=-1,U=Yn($.length-d,0),K=pe(U);++N<U;)K[N]=$[d+N];N=-1;for(var Y=pe(d+1);++N<d;)Y[N]=$[N];return Y[d]=y(K),eo(l,this,Y)}}function xP(l,d){return d.length<2?l:Ul(l,To(d,0,-1))}function h5(l,d){for(var y=l.length,$=hr(d.length,y),N=Nr(l);$--;){var U=d[$];l[$]=is(U,y)?N[U]:n}return l}function Ny(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var SP=PP(GE),Zu=$4||function(l,d){return sr.setTimeout(l,d)},Dy=PP(ND);function EP(l,d,y){var $=d+"";return Dy(l,i5($,m5(n5($),y)))}function PP(l){var d=0,y=0;return function(){var $=O4(),N=j-($-y);if(y=$,N>0){if(++d>=V)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Qp(l,d){var y=-1,$=l.length,N=$-1;for(d=d===n?$:d;++y<d;){var U=wy(y,N),K=l[U];l[U]=l[y],l[y]=K}return l.length=d,l}var kP=u5(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(ce,function(y,$,N,U){d.push(N?U.replace(ft,"$1"):$||y)}),d});function _i(l){if(typeof l=="string"||ro(l))return l;var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Gl(l){if(l!=null){try{return kp.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function m5(l,d){return Io(ee,function(y){var $="_."+y[0];d&y[1]&&!Cp(l,$)&&l.push($)}),l.sort()}function IP(l){if(l instanceof At)return l.clone();var d=new $o(l.__wrapped__,l.__chain__);return d.__actions__=Nr(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function g5(l,d,y){(y?Ir(l,d,y):d===n)?d=1:d=Yn(kt(d),0);var $=l==null?0:l.length;if(!$||d<1)return[];for(var N=0,U=0,K=pe(Op($/d));N<$;)K[U++]=To(l,N,N+=d);return K}function v5(l){for(var d=-1,y=l==null?0:l.length,$=0,N=[];++d<y;){var U=l[d];U&&(N[$++]=U)}return N}function y5(){var l=arguments.length;if(!l)return[];for(var d=pe(l-1),y=arguments[0],$=l;$--;)d[$-1]=arguments[$];return Fs(xt(y)?Nr(y):[y],lr(d,1))}var b5=$t(function(l,d){return Dn(l)?Ku(l,lr(d,1,Dn,!0)):[]}),w5=$t(function(l,d){var y=Ro(d);return Dn(y)&&(y=n),Dn(l)?Ku(l,lr(d,1,Dn,!0),dt(y,2)):[]}),C5=$t(function(l,d){var y=Ro(d);return Dn(y)&&(y=n),Dn(l)?Ku(l,lr(d,1,Dn,!0),n,y):[]});function x5(l,d,y){var $=l==null?0:l.length;return $?(d=y||d===n?1:kt(d),To(l,d<0?0:d,$)):[]}function S5(l,d,y){var $=l==null?0:l.length;return $?(d=y||d===n?1:kt(d),d=$-d,To(l,0,d<0?0:d)):[]}function E5(l,d){return l&&l.length?Vp(l,dt(d,3),!0,!0):[]}function P5(l,d){return l&&l.length?Vp(l,dt(d,3),!0):[]}function k5(l,d,y,$){var N=l==null?0:l.length;return N?(y&&typeof y!="number"&&Ir(l,d,y)&&(y=0,$=N),yD(l,d,y,$)):[]}function _P(l,d,y){var $=l==null?0:l.length;if(!$)return-1;var N=y==null?0:kt(y);return N<0&&(N=Yn($+N,0)),xp(l,dt(d,3),N)}function $P(l,d,y){var $=l==null?0:l.length;if(!$)return-1;var N=$-1;return y!==n&&(N=kt(y),N=y<0?Yn($+N,0):hr(N,$-1)),xp(l,dt(d,3),N,!0)}function MP(l){var d=l==null?0:l.length;return d?lr(l,1):[]}function I5(l){var d=l==null?0:l.length;return d?lr(l,W):[]}function _5(l,d){var y=l==null?0:l.length;return y?(d=d===n?1:kt(d),lr(l,d)):[]}function $5(l){for(var d=-1,y=l==null?0:l.length,$={};++d<y;){var N=l[d];$[N[0]]=N[1]}return $}function TP(l){return l&&l.length?l[0]:n}function M5(l,d,y){var $=l==null?0:l.length;if(!$)return-1;var N=y==null?0:kt(y);return N<0&&(N=Yn($+N,0)),qa(l,d,N)}function T5(l){var d=l==null?0:l.length;return d?To(l,0,-1):[]}var R5=$t(function(l){var d=Cn(l,Py);return d.length&&d[0]===l[0]?my(d):[]}),O5=$t(function(l){var d=Ro(l),y=Cn(l,Py);return d===Ro(y)?d=n:y.pop(),y.length&&y[0]===l[0]?my(y,dt(d,2)):[]}),L5=$t(function(l){var d=Ro(l),y=Cn(l,Py);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===l[0]?my(y,n,d):[]});function A5(l,d){return l==null?"":T4.call(l,d)}function Ro(l){var d=l==null?0:l.length;return d?l[d-1]:n}function F5(l,d,y){var $=l==null?0:l.length;if(!$)return-1;var N=$;return y!==n&&(N=kt(y),N=N<0?Yn($+N,0):hr(N,$-1)),d===d?m4(l,d,N):xp(l,dE,N,!0)}function N5(l,d){return l&&l.length?HE(l,kt(d)):n}var D5=$t(RP);function RP(l,d){return l&&l.length&&d&&d.length?by(l,d):l}function B5(l,d,y){return l&&l.length&&d&&d.length?by(l,d,dt(y,2)):l}function z5(l,d,y){return l&&l.length&&d&&d.length?by(l,d,n,y):l}var j5=os(function(l,d){var y=l==null?0:l.length,$=dy(l,d);return WE(l,Cn(d,function(N){return is(N,y)?+N:N}).sort(tP)),$});function H5(l,d){var y=[];if(!(l&&l.length))return y;var $=-1,N=[],U=l.length;for(d=dt(d,3);++$<U;){var K=l[$];d(K,$,l)&&(y.push(K),N.push($))}return WE(l,N),y}function By(l){return l==null?l:A4.call(l)}function V5(l,d,y){var $=l==null?0:l.length;return $?(y&&typeof y!="number"&&Ir(l,d,y)?(d=0,y=$):(d=d==null?0:kt(d),y=y===n?$:kt(y)),To(l,d,y)):[]}function U5(l,d){return Hp(l,d)}function W5(l,d,y){return xy(l,d,dt(y,2))}function G5(l,d){var y=l==null?0:l.length;if(y){var $=Hp(l,d);if($<y&&oi(l[$],d))return $}return-1}function K5(l,d){return Hp(l,d,!0)}function q5(l,d,y){return xy(l,d,dt(y,2),!0)}function Y5(l,d){var y=l==null?0:l.length;if(y){var $=Hp(l,d,!0)-1;if(oi(l[$],d))return $}return-1}function X5(l){return l&&l.length?KE(l):[]}function Q5(l,d){return l&&l.length?KE(l,dt(d,2)):[]}function J5(l){var d=l==null?0:l.length;return d?To(l,1,d):[]}function Z5(l,d,y){return l&&l.length?(d=y||d===n?1:kt(d),To(l,0,d<0?0:d)):[]}function e3(l,d,y){var $=l==null?0:l.length;return $?(d=y||d===n?1:kt(d),d=$-d,To(l,d<0?0:d,$)):[]}function t3(l,d){return l&&l.length?Vp(l,dt(d,3),!1,!0):[]}function n3(l,d){return l&&l.length?Vp(l,dt(d,3)):[]}var r3=$t(function(l){return zs(lr(l,1,Dn,!0))}),o3=$t(function(l){var d=Ro(l);return Dn(d)&&(d=n),zs(lr(l,1,Dn,!0),dt(d,2))}),i3=$t(function(l){var d=Ro(l);return d=typeof d=="function"?d:n,zs(lr(l,1,Dn,!0),n,d)});function s3(l){return l&&l.length?zs(l):[]}function l3(l,d){return l&&l.length?zs(l,dt(d,2)):[]}function a3(l,d){return d=typeof d=="function"?d:n,l&&l.length?zs(l,n,d):[]}function zy(l){if(!(l&&l.length))return[];var d=0;return l=As(l,function(y){if(Dn(y))return d=Yn(y.length,d),!0}),ry(d,function(y){return Cn(l,ey(y))})}function OP(l,d){if(!(l&&l.length))return[];var y=zy(l);return d==null?y:Cn(y,function($){return eo(d,n,$)})}var c3=$t(function(l,d){return Dn(l)?Ku(l,d):[]}),u3=$t(function(l){return Ey(As(l,Dn))}),d3=$t(function(l){var d=Ro(l);return Dn(d)&&(d=n),Ey(As(l,Dn),dt(d,2))}),f3=$t(function(l){var d=Ro(l);return d=typeof d=="function"?d:n,Ey(As(l,Dn),n,d)}),p3=$t(zy);function h3(l,d){return QE(l||[],d||[],Gu)}function m3(l,d){return QE(l||[],d||[],Xu)}var g3=$t(function(l){var d=l.length,y=d>1?l[d-1]:n;return y=typeof y=="function"?(l.pop(),y):n,OP(l,y)});function LP(l){var d=H(l);return d.__chain__=!0,d}function v3(l,d){return d(l),l}function Jp(l,d){return d(l)}var y3=os(function(l){var d=l.length,y=d?l[0]:0,$=this.__wrapped__,N=function(U){return dy(U,l)};return d>1||this.__actions__.length||!($ instanceof At)||!is(y)?this.thru(N):($=$.slice(y,+y+(d?1:0)),$.__actions__.push({func:Jp,args:[N],thisArg:n}),new $o($,this.__chain__).thru(function(U){return d&&!U.length&&U.push(n),U}))});function b3(){return LP(this)}function w3(){return new $o(this.value(),this.__chain__)}function C3(){this.__values__===n&&(this.__values__=qP(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function x3(){return this}function S3(l){for(var d,y=this;y instanceof Np;){var $=IP(y);$.__index__=0,$.__values__=n,d?N.__wrapped__=$:d=$;var N=$;y=y.__wrapped__}return N.__wrapped__=l,d}function E3(){var l=this.__wrapped__;if(l instanceof At){var d=l;return this.__actions__.length&&(d=new At(this)),d=d.reverse(),d.__actions__.push({func:Jp,args:[By],thisArg:n}),new $o(d,this.__chain__)}return this.thru(By)}function P3(){return XE(this.__wrapped__,this.__actions__)}var k3=Up(function(l,d,y){tn.call(l,y)?++l[y]:ns(l,y,1)});function I3(l,d,y){var $=xt(l)?cE:vD;return y&&Ir(l,d,y)&&(d=n),$(l,dt(d,3))}function _3(l,d){var y=xt(l)?As:OE;return y(l,dt(d,3))}var $3=lP(_P),M3=lP($P);function T3(l,d){return lr(Zp(l,d),1)}function R3(l,d){return lr(Zp(l,d),W)}function O3(l,d,y){return y=y===n?1:kt(y),lr(Zp(l,d),y)}function AP(l,d){var y=xt(l)?Io:Bs;return y(l,dt(d,3))}function FP(l,d){var y=xt(l)?JN:RE;return y(l,dt(d,3))}var L3=Up(function(l,d,y){tn.call(l,y)?l[y].push(d):ns(l,y,[d])});function A3(l,d,y,$){l=Dr(l)?l:sc(l),y=y&&!$?kt(y):0;var N=l.length;return y<0&&(y=Yn(N+y,0)),oh(l)?y<=N&&l.indexOf(d,y)>-1:!!N&&qa(l,d,y)>-1}var F3=$t(function(l,d,y){var $=-1,N=typeof d=="function",U=Dr(l)?pe(l.length):[];return Bs(l,function(K){U[++$]=N?eo(d,K,y):qu(K,d,y)}),U}),N3=Up(function(l,d,y){ns(l,y,d)});function Zp(l,d){var y=xt(l)?Cn:BE;return y(l,dt(d,3))}function D3(l,d,y,$){return l==null?[]:(xt(d)||(d=d==null?[]:[d]),y=$?n:y,xt(y)||(y=y==null?[]:[y]),VE(l,d,y))}var B3=Up(function(l,d,y){l[y?0:1].push(d)},function(){return[[],[]]});function z3(l,d,y){var $=xt(l)?Jv:pE,N=arguments.length<3;return $(l,dt(d,4),y,N,Bs)}function j3(l,d,y){var $=xt(l)?ZN:pE,N=arguments.length<3;return $(l,dt(d,4),y,N,RE)}function H3(l,d){var y=xt(l)?As:OE;return y(l,nh(dt(d,3)))}function V3(l){var d=xt(l)?_E:AD;return d(l)}function U3(l,d,y){(y?Ir(l,d,y):d===n)?d=1:d=kt(d);var $=xt(l)?fD:FD;return $(l,d)}function W3(l){var d=xt(l)?pD:DD;return d(l)}function G3(l){if(l==null)return 0;if(Dr(l))return oh(l)?Xa(l):l.length;var d=mr(l);return d==Fe||d==et?l.size:vy(l).length}function K3(l,d,y){var $=xt(l)?Zv:BD;return y&&Ir(l,d,y)&&(d=n),$(l,dt(d,3))}var q3=$t(function(l,d){if(l==null)return[];var y=d.length;return y>1&&Ir(l,d[0],d[1])?d=[]:y>2&&Ir(d[0],d[1],d[2])&&(d=[d[0]]),VE(l,lr(d,1),[])}),eh=_4||function(){return sr.Date.now()};function Y3(l,d){if(typeof d!="function")throw new _o(s);return l=kt(l),function(){if(--l<1)return d.apply(this,arguments)}}function NP(l,d,y){return d=y?n:d,d=l&&d==null?l.length:d,rs(l,I,n,n,n,n,d)}function DP(l,d){var y;if(typeof d!="function")throw new _o(s);return l=kt(l),function(){return--l>0&&(y=d.apply(this,arguments)),l<=1&&(d=n),y}}var jy=$t(function(l,d,y){var $=x;if(y.length){var N=Ns(y,oc(jy));$|=k}return rs(l,$,d,y,N)}),BP=$t(function(l,d,y){var $=x|C;if(y.length){var N=Ns(y,oc(BP));$|=k}return rs(d,$,l,y,N)});function zP(l,d,y){d=y?n:d;var $=rs(l,w,n,n,n,n,n,d);return $.placeholder=zP.placeholder,$}function jP(l,d,y){d=y?n:d;var $=rs(l,E,n,n,n,n,n,d);return $.placeholder=jP.placeholder,$}function HP(l,d,y){var $,N,U,K,Y,J,Ce=0,xe=!1,Pe=!1,De=!0;if(typeof l!="function")throw new _o(s);d=Oo(d)||0,_n(y)&&(xe=!!y.leading,Pe="maxWait"in y,U=Pe?Yn(Oo(y.maxWait)||0,d):U,De="trailing"in y?!!y.trailing:De);function Je(Bn){var ii=$,as=N;return $=N=n,Ce=Bn,K=l.apply(as,ii),K}function pt(Bn){return Ce=Bn,Y=Zu(Rt,d),xe?Je(Bn):K}function _t(Bn){var ii=Bn-J,as=Bn-Ce,lk=d-ii;return Pe?hr(lk,U-as):lk}function ht(Bn){var ii=Bn-J,as=Bn-Ce;return J===n||ii>=d||ii<0||Pe&&as>=U}function Rt(){var Bn=eh();if(ht(Bn))return Bt(Bn);Y=Zu(Rt,_t(Bn))}function Bt(Bn){return Y=n,De&&$?Je(Bn):($=N=n,K)}function oo(){Y!==n&&JE(Y),Ce=0,$=J=N=Y=n}function _r(){return Y===n?K:Bt(eh())}function io(){var Bn=eh(),ii=ht(Bn);if($=arguments,N=this,J=Bn,ii){if(Y===n)return pt(J);if(Pe)return JE(Y),Y=Zu(Rt,d),Je(J)}return Y===n&&(Y=Zu(Rt,d)),K}return io.cancel=oo,io.flush=_r,io}var X3=$t(function(l,d){return TE(l,1,d)}),Q3=$t(function(l,d,y){return TE(l,Oo(d)||0,y)});function J3(l){return rs(l,R)}function th(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new _o(s);var y=function(){var $=arguments,N=d?d.apply(this,$):$[0],U=y.cache;if(U.has(N))return U.get(N);var K=l.apply(this,$);return y.cache=U.set(N,K)||U,K};return y.cache=new(th.Cache||ts),y}th.Cache=ts;function nh(l){if(typeof l!="function")throw new _o(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function Z3(l){return DP(2,l)}var eB=zD(function(l,d){d=d.length==1&&xt(d[0])?Cn(d[0],to(dt())):Cn(lr(d,1),to(dt()));var y=d.length;return $t(function($){for(var N=-1,U=hr($.length,y);++N<U;)$[N]=d[N].call(this,$[N]);return eo(l,this,$)})}),Hy=$t(function(l,d){var y=Ns(d,oc(Hy));return rs(l,k,n,d,y)}),VP=$t(function(l,d){var y=Ns(d,oc(VP));return rs(l,_,n,d,y)}),tB=os(function(l,d){return rs(l,M,n,n,n,d)});function nB(l,d){if(typeof l!="function")throw new _o(s);return d=d===n?d:kt(d),$t(l,d)}function rB(l,d){if(typeof l!="function")throw new _o(s);return d=d==null?0:Yn(kt(d),0),$t(function(y){var $=y[d],N=Hs(y,0,d);return $&&Fs(N,$),eo(l,this,N)})}function oB(l,d,y){var $=!0,N=!0;if(typeof l!="function")throw new _o(s);return _n(y)&&($="leading"in y?!!y.leading:$,N="trailing"in y?!!y.trailing:N),HP(l,d,{leading:$,maxWait:d,trailing:N})}function iB(l){return NP(l,1)}function sB(l,d){return Hy(ky(d),l)}function lB(){if(!arguments.length)return[];var l=arguments[0];return xt(l)?l:[l]}function aB(l){return Mo(l,v)}function cB(l,d){return d=typeof d=="function"?d:n,Mo(l,v,d)}function uB(l){return Mo(l,h|v)}function dB(l,d){return d=typeof d=="function"?d:n,Mo(l,h|v,d)}function fB(l,d){return d==null||ME(l,d,Zn(d))}function oi(l,d){return l===d||l!==l&&d!==d}var pB=qp(hy),hB=qp(function(l,d){return l>=d}),Kl=FE(function(){return arguments}())?FE:function(l){return Ln(l)&&tn.call(l,"callee")&&!xE.call(l,"callee")},xt=pe.isArray,mB=rE?to(rE):SD;function Dr(l){return l!=null&&rh(l.length)&&!ss(l)}function Dn(l){return Ln(l)&&Dr(l)}function gB(l){return l===!0||l===!1||Ln(l)&&kr(l)==de}var Vs=M4||Zy,vB=oE?to(oE):ED;function yB(l){return Ln(l)&&l.nodeType===1&&!ed(l)}function bB(l){if(l==null)return!0;if(Dr(l)&&(xt(l)||typeof l=="string"||typeof l.splice=="function"||Vs(l)||ic(l)||Kl(l)))return!l.length;var d=mr(l);if(d==Fe||d==et)return!l.size;if(Ju(l))return!vy(l).length;for(var y in l)if(tn.call(l,y))return!1;return!0}function wB(l,d){return Yu(l,d)}function CB(l,d,y){y=typeof y=="function"?y:n;var $=y?y(l,d):n;return $===n?Yu(l,d,n,y):!!$}function Vy(l){if(!Ln(l))return!1;var d=kr(l);return d==be||d==te||typeof l.message=="string"&&typeof l.name=="string"&&!ed(l)}function xB(l){return typeof l=="number"&&EE(l)}function ss(l){if(!_n(l))return!1;var d=kr(l);return d==_e||d==Se||d==we||d==yt}function UP(l){return typeof l=="number"&&l==kt(l)}function rh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=F}function _n(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ln(l){return l!=null&&typeof l=="object"}var WP=iE?to(iE):kD;function SB(l,d){return l===d||gy(l,d,Oy(d))}function EB(l,d,y){return y=typeof y=="function"?y:n,gy(l,d,Oy(d),y)}function PB(l){return GP(l)&&l!=+l}function kB(l){if(c5(l))throw new wt(i);return NE(l)}function IB(l){return l===null}function _B(l){return l==null}function GP(l){return typeof l=="number"||Ln(l)&&kr(l)==Re}function ed(l){if(!Ln(l)||kr(l)!=Le)return!1;var d=Mp(l);if(d===null)return!0;var y=tn.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&kp.call(y)==E4}var Uy=sE?to(sE):ID;function $B(l){return UP(l)&&l>=-F&&l<=F}var KP=lE?to(lE):_D;function oh(l){return typeof l=="string"||!xt(l)&&Ln(l)&&kr(l)==Pt}function ro(l){return typeof l=="symbol"||Ln(l)&&kr(l)==mt}var ic=aE?to(aE):$D;function MB(l){return l===n}function TB(l){return Ln(l)&&mr(l)==It}function RB(l){return Ln(l)&&kr(l)==Xe}var OB=qp(yy),LB=qp(function(l,d){return l<=d});function qP(l){if(!l)return[];if(Dr(l))return oh(l)?ni(l):Nr(l);if(ju&&l[ju])return f4(l[ju]());var d=mr(l),y=d==Fe?iy:d==et?Sp:sc;return y(l)}function ls(l){if(!l)return l===0?l:0;if(l=Oo(l),l===W||l===-W){var d=l<0?-1:1;return d*z}return l===l?l:0}function kt(l){var d=ls(l),y=d%1;return d===d?y?d-y:d:0}function YP(l){return l?Vl(kt(l),0,q):0}function Oo(l){if(typeof l=="number")return l;if(ro(l))return G;if(_n(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=_n(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=hE(l);var y=Fr.test(l);return y||vN.test(l)?YN(l.slice(2),y?2:8):wn.test(l)?G:+l}function XP(l){return Ii(l,Br(l))}function AB(l){return l?Vl(kt(l),-F,F):l===0?l:0}function Jt(l){return l==null?"":no(l)}var FB=nc(function(l,d){if(Ju(d)||Dr(d)){Ii(d,Zn(d),l);return}for(var y in d)tn.call(d,y)&&Gu(l,y,d[y])}),QP=nc(function(l,d){Ii(d,Br(d),l)}),ih=nc(function(l,d,y,$){Ii(d,Br(d),l,$)}),NB=nc(function(l,d,y,$){Ii(d,Zn(d),l,$)}),DB=os(dy);function BB(l,d){var y=tc(l);return d==null?y:$E(y,d)}var zB=$t(function(l,d){l=an(l);var y=-1,$=d.length,N=$>2?d[2]:n;for(N&&Ir(d[0],d[1],N)&&($=1);++y<$;)for(var U=d[y],K=Br(U),Y=-1,J=K.length;++Y<J;){var Ce=K[Y],xe=l[Ce];(xe===n||oi(xe,Ja[Ce])&&!tn.call(l,Ce))&&(l[Ce]=U[Ce])}return l}),jB=$t(function(l){return l.push(n,hP),eo(JP,n,l)});function HB(l,d){return uE(l,dt(d,3),ki)}function VB(l,d){return uE(l,dt(d,3),py)}function UB(l,d){return l==null?l:fy(l,dt(d,3),Br)}function WB(l,d){return l==null?l:LE(l,dt(d,3),Br)}function GB(l,d){return l&&ki(l,dt(d,3))}function KB(l,d){return l&&py(l,dt(d,3))}function qB(l){return l==null?[]:zp(l,Zn(l))}function YB(l){return l==null?[]:zp(l,Br(l))}function Wy(l,d,y){var $=l==null?n:Ul(l,d);return $===n?y:$}function XB(l,d){return l!=null&&vP(l,d,bD)}function Gy(l,d){return l!=null&&vP(l,d,wD)}var QB=cP(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),l[d]=y},qy(zr)),JB=cP(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=Ip.call(d)),tn.call(l,d)?l[d].push(y):l[d]=[y]},dt),ZB=$t(qu);function Zn(l){return Dr(l)?IE(l):vy(l)}function Br(l){return Dr(l)?IE(l,!0):MD(l)}function ez(l,d){var y={};return d=dt(d,3),ki(l,function($,N,U){ns(y,d($,N,U),$)}),y}function tz(l,d){var y={};return d=dt(d,3),ki(l,function($,N,U){ns(y,N,d($,N,U))}),y}var nz=nc(function(l,d,y){jp(l,d,y)}),JP=nc(function(l,d,y,$){jp(l,d,y,$)}),rz=os(function(l,d){var y={};if(l==null)return y;var $=!1;d=Cn(d,function(U){return U=js(U,l),$||($=U.length>1),U}),Ii(l,Ty(l),y),$&&(y=Mo(y,h|m|v,QD));for(var N=d.length;N--;)Sy(y,d[N]);return y});function oz(l,d){return ZP(l,nh(dt(d)))}var iz=os(function(l,d){return l==null?{}:RD(l,d)});function ZP(l,d){if(l==null)return{};var y=Cn(Ty(l),function($){return[$]});return d=dt(d),UE(l,y,function($,N){return d($,N[0])})}function sz(l,d,y){d=js(d,l);var $=-1,N=d.length;for(N||(N=1,l=n);++$<N;){var U=l==null?n:l[_i(d[$])];U===n&&($=N,U=y),l=ss(U)?U.call(l):U}return l}function lz(l,d,y){return l==null?l:Xu(l,d,y)}function az(l,d,y,$){return $=typeof $=="function"?$:n,l==null?l:Xu(l,d,y,$)}var ek=fP(Zn),tk=fP(Br);function cz(l,d,y){var $=xt(l),N=$||Vs(l)||ic(l);if(d=dt(d,4),y==null){var U=l&&l.constructor;N?y=$?new U:[]:_n(l)?y=ss(U)?tc(Mp(l)):{}:y={}}return(N?Io:ki)(l,function(K,Y,J){return d(y,K,Y,J)}),y}function uz(l,d){return l==null?!0:Sy(l,d)}function dz(l,d,y){return l==null?l:YE(l,d,ky(y))}function fz(l,d,y,$){return $=typeof $=="function"?$:n,l==null?l:YE(l,d,ky(y),$)}function sc(l){return l==null?[]:oy(l,Zn(l))}function pz(l){return l==null?[]:oy(l,Br(l))}function hz(l,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Oo(y),y=y===y?y:0),d!==n&&(d=Oo(d),d=d===d?d:0),Vl(Oo(l),d,y)}function mz(l,d,y){return d=ls(d),y===n?(y=d,d=0):y=ls(y),l=Oo(l),CD(l,d,y)}function gz(l,d,y){if(y&&typeof y!="boolean"&&Ir(l,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&d===n?(l=0,d=1):(l=ls(l),d===n?(d=l,l=0):d=ls(d)),l>d){var $=l;l=d,d=$}if(y||l%1||d%1){var N=PE();return hr(l+N*(d-l+qN("1e-"+((N+"").length-1))),d)}return wy(l,d)}var vz=rc(function(l,d,y){return d=d.toLowerCase(),l+(y?nk(d):d)});function nk(l){return Ky(Jt(l).toLowerCase())}function rk(l){return l=Jt(l),l&&l.replace(bN,l4).replace(DN,"")}function yz(l,d,y){l=Jt(l),d=no(d);var $=l.length;y=y===n?$:Vl(kt(y),0,$);var N=y;return y-=d.length,y>=0&&l.slice(y,N)==d}function bz(l){return l=Jt(l),l&&Pi.test(l)?l.replace(en,a4):l}function wz(l){return l=Jt(l),l&&ze.test(l)?l.replace(me,"\\$&"):l}var Cz=rc(function(l,d,y){return l+(y?"-":"")+d.toLowerCase()}),xz=rc(function(l,d,y){return l+(y?" ":"")+d.toLowerCase()}),Sz=sP("toLowerCase");function Ez(l,d,y){l=Jt(l),d=kt(d);var $=d?Xa(l):0;if(!d||$>=d)return l;var N=(d-$)/2;return Kp(Lp(N),y)+l+Kp(Op(N),y)}function Pz(l,d,y){l=Jt(l),d=kt(d);var $=d?Xa(l):0;return d&&$<d?l+Kp(d-$,y):l}function kz(l,d,y){l=Jt(l),d=kt(d);var $=d?Xa(l):0;return d&&$<d?Kp(d-$,y)+l:l}function Iz(l,d,y){return y||d==null?d=0:d&&(d=+d),L4(Jt(l).replace(gt,""),d||0)}function _z(l,d,y){return(y?Ir(l,d,y):d===n)?d=1:d=kt(d),Cy(Jt(l),d)}function $z(){var l=arguments,d=Jt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var Mz=rc(function(l,d,y){return l+(y?"_":"")+d.toLowerCase()});function Tz(l,d,y){return y&&typeof y!="number"&&Ir(l,d,y)&&(d=y=n),y=y===n?q:y>>>0,y?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!Uy(d))&&(d=no(d),!d&&Ya(l))?Hs(ni(l),0,y):l.split(d,y)):[]}var Rz=rc(function(l,d,y){return l+(y?" ":"")+Ky(d)});function Oz(l,d,y){return l=Jt(l),y=y==null?0:Vl(kt(y),0,l.length),d=no(d),l.slice(y,y+d.length)==d}function Lz(l,d,y){var $=H.templateSettings;y&&Ir(l,d,y)&&(d=n),l=Jt(l),d=ih({},d,$,pP);var N=ih({},d.imports,$.imports,pP),U=Zn(N),K=oy(N,U),Y,J,Ce=0,xe=d.interpolate||yp,Pe="__p += '",De=sy((d.escape||yp).source+"|"+xe.source+"|"+(xe===Po?Vt:yp).source+"|"+(d.evaluate||yp).source+"|$","g"),Je="//# sourceURL="+(tn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VN+"]")+`
|
|
243
|
-
`;l.replace(De,function(ht,Rt,Bt,oo,_r,io){return Bt||(Bt=oo),Pe+=l.slice(Ce,io).replace(wN,c4),Rt&&(Y=!0,Pe+=`' +
|
|
244
|
-
__e(`+Rt+`) +
|
|
245
|
-
'`),_r&&(J=!0,Pe+=`';
|
|
246
|
-
`+_r+`;
|
|
247
|
-
__p += '`),Bt&&(Pe+=`' +
|
|
248
|
-
((__t = (`+Bt+`)) == null ? '' : __t) +
|
|
249
|
-
'`),Ce=io+ht.length,ht}),Pe+=`';
|
|
250
|
-
`;var pt=tn.call(d,"variable")&&d.variable;if(!pt)Pe=`with (obj) {
|
|
251
|
-
`+Pe+`
|
|
252
|
-
}
|
|
253
|
-
`;else if(nt.test(pt))throw new wt(a);Pe=(J?Pe.replace(Kn,""):Pe).replace(Pr,"$1").replace(mn,"$1;"),Pe="function("+(pt||"obj")+`) {
|
|
254
|
-
`+(pt?"":`obj || (obj = {});
|
|
255
|
-
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
|
|
256
|
-
function print() { __p += __j.call(arguments, '') }
|
|
257
|
-
`:`;
|
|
258
|
-
`)+Pe+`return __p
|
|
259
|
-
}`;var _t=ik(function(){return Yt(U,Je+"return "+Pe).apply(n,K)});if(_t.source=Pe,Vy(_t))throw _t;return _t}function Az(l){return Jt(l).toLowerCase()}function Fz(l){return Jt(l).toUpperCase()}function Nz(l,d,y){if(l=Jt(l),l&&(y||d===n))return hE(l);if(!l||!(d=no(d)))return l;var $=ni(l),N=ni(d),U=mE($,N),K=gE($,N)+1;return Hs($,U,K).join("")}function Dz(l,d,y){if(l=Jt(l),l&&(y||d===n))return l.slice(0,yE(l)+1);if(!l||!(d=no(d)))return l;var $=ni(l),N=gE($,ni(d))+1;return Hs($,0,N).join("")}function Bz(l,d,y){if(l=Jt(l),l&&(y||d===n))return l.replace(gt,"");if(!l||!(d=no(d)))return l;var $=ni(l),N=mE($,ni(d));return Hs($,N).join("")}function zz(l,d){var y=O,$=A;if(_n(d)){var N="separator"in d?d.separator:N;y="length"in d?kt(d.length):y,$="omission"in d?no(d.omission):$}l=Jt(l);var U=l.length;if(Ya(l)){var K=ni(l);U=K.length}if(y>=U)return l;var Y=y-Xa($);if(Y<1)return $;var J=K?Hs(K,0,Y).join(""):l.slice(0,Y);if(N===n)return J+$;if(K&&(Y+=J.length-Y),Uy(N)){if(l.slice(Y).search(N)){var Ce,xe=J;for(N.global||(N=sy(N.source,Jt(un.exec(N))+"g")),N.lastIndex=0;Ce=N.exec(xe);)var Pe=Ce.index;J=J.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(no(N),Y)!=Y){var De=J.lastIndexOf(N);De>-1&&(J=J.slice(0,De))}return J+$}function jz(l){return l=Jt(l),l&&Eo.test(l)?l.replace(sn,g4):l}var Hz=rc(function(l,d,y){return l+(y?" ":"")+d.toUpperCase()}),Ky=sP("toUpperCase");function ok(l,d,y){return l=Jt(l),d=y?n:d,d===n?d4(l)?b4(l):n4(l):l.match(d)||[]}var ik=$t(function(l,d){try{return eo(l,n,d)}catch(y){return Vy(y)?y:new wt(y)}}),Vz=os(function(l,d){return Io(d,function(y){y=_i(y),ns(l,y,jy(l[y],l))}),l});function Uz(l){var d=l==null?0:l.length,y=dt();return l=d?Cn(l,function($){if(typeof $[1]!="function")throw new _o(s);return[y($[0]),$[1]]}):[],$t(function($){for(var N=-1;++N<d;){var U=l[N];if(eo(U[0],this,$))return eo(U[1],this,$)}})}function Wz(l){return gD(Mo(l,h))}function qy(l){return function(){return l}}function Gz(l,d){return l==null||l!==l?d:l}var Kz=aP(),qz=aP(!0);function zr(l){return l}function Yy(l){return DE(typeof l=="function"?l:Mo(l,h))}function Yz(l){return zE(Mo(l,h))}function Xz(l,d){return jE(l,Mo(d,h))}var Qz=$t(function(l,d){return function(y){return qu(y,l,d)}}),Jz=$t(function(l,d){return function(y){return qu(l,y,d)}});function Xy(l,d,y){var $=Zn(d),N=zp(d,$);y==null&&!(_n(d)&&(N.length||!$.length))&&(y=d,d=l,l=this,N=zp(d,Zn(d)));var U=!(_n(y)&&"chain"in y)||!!y.chain,K=ss(l);return Io(N,function(Y){var J=d[Y];l[Y]=J,K&&(l.prototype[Y]=function(){var Ce=this.__chain__;if(U||Ce){var xe=l(this.__wrapped__),Pe=xe.__actions__=Nr(this.__actions__);return Pe.push({func:J,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return J.apply(l,Fs([this.value()],arguments))})}),l}function Zz(){return sr._===this&&(sr._=P4),this}function Qy(){}function e6(l){return l=kt(l),$t(function(d){return HE(d,l)})}var t6=_y(Cn),n6=_y(cE),r6=_y(Zv);function sk(l){return Ay(l)?ey(_i(l)):OD(l)}function o6(l){return function(d){return l==null?n:Ul(l,d)}}var i6=uP(),s6=uP(!0);function Jy(){return[]}function Zy(){return!1}function l6(){return{}}function a6(){return""}function c6(){return!0}function u6(l,d){if(l=kt(l),l<1||l>F)return[];var y=q,$=hr(l,q);d=dt(d),l-=q;for(var N=ry($,d);++y<l;)d(y);return N}function d6(l){return xt(l)?Cn(l,_i):ro(l)?[l]:Nr(kP(Jt(l)))}function f6(l){var d=++S4;return Jt(l)+d}var p6=Gp(function(l,d){return l+d},0),h6=$y("ceil"),m6=Gp(function(l,d){return l/d},1),g6=$y("floor");function v6(l){return l&&l.length?Bp(l,zr,hy):n}function y6(l,d){return l&&l.length?Bp(l,dt(d,2),hy):n}function b6(l){return fE(l,zr)}function w6(l,d){return fE(l,dt(d,2))}function C6(l){return l&&l.length?Bp(l,zr,yy):n}function x6(l,d){return l&&l.length?Bp(l,dt(d,2),yy):n}var S6=Gp(function(l,d){return l*d},1),E6=$y("round"),P6=Gp(function(l,d){return l-d},0);function k6(l){return l&&l.length?ny(l,zr):0}function I6(l,d){return l&&l.length?ny(l,dt(d,2)):0}return H.after=Y3,H.ary=NP,H.assign=FB,H.assignIn=QP,H.assignInWith=ih,H.assignWith=NB,H.at=DB,H.before=DP,H.bind=jy,H.bindAll=Vz,H.bindKey=BP,H.castArray=lB,H.chain=LP,H.chunk=g5,H.compact=v5,H.concat=y5,H.cond=Uz,H.conforms=Wz,H.constant=qy,H.countBy=k3,H.create=BB,H.curry=zP,H.curryRight=jP,H.debounce=HP,H.defaults=zB,H.defaultsDeep=jB,H.defer=X3,H.delay=Q3,H.difference=b5,H.differenceBy=w5,H.differenceWith=C5,H.drop=x5,H.dropRight=S5,H.dropRightWhile=E5,H.dropWhile=P5,H.fill=k5,H.filter=_3,H.flatMap=T3,H.flatMapDeep=R3,H.flatMapDepth=O3,H.flatten=MP,H.flattenDeep=I5,H.flattenDepth=_5,H.flip=J3,H.flow=Kz,H.flowRight=qz,H.fromPairs=$5,H.functions=qB,H.functionsIn=YB,H.groupBy=L3,H.initial=T5,H.intersection=R5,H.intersectionBy=O5,H.intersectionWith=L5,H.invert=QB,H.invertBy=JB,H.invokeMap=F3,H.iteratee=Yy,H.keyBy=N3,H.keys=Zn,H.keysIn=Br,H.map=Zp,H.mapKeys=ez,H.mapValues=tz,H.matches=Yz,H.matchesProperty=Xz,H.memoize=th,H.merge=nz,H.mergeWith=JP,H.method=Qz,H.methodOf=Jz,H.mixin=Xy,H.negate=nh,H.nthArg=e6,H.omit=rz,H.omitBy=oz,H.once=Z3,H.orderBy=D3,H.over=t6,H.overArgs=eB,H.overEvery=n6,H.overSome=r6,H.partial=Hy,H.partialRight=VP,H.partition=B3,H.pick=iz,H.pickBy=ZP,H.property=sk,H.propertyOf=o6,H.pull=D5,H.pullAll=RP,H.pullAllBy=B5,H.pullAllWith=z5,H.pullAt=j5,H.range=i6,H.rangeRight=s6,H.rearg=tB,H.reject=H3,H.remove=H5,H.rest=nB,H.reverse=By,H.sampleSize=U3,H.set=lz,H.setWith=az,H.shuffle=W3,H.slice=V5,H.sortBy=q3,H.sortedUniq=X5,H.sortedUniqBy=Q5,H.split=Tz,H.spread=rB,H.tail=J5,H.take=Z5,H.takeRight=e3,H.takeRightWhile=t3,H.takeWhile=n3,H.tap=v3,H.throttle=oB,H.thru=Jp,H.toArray=qP,H.toPairs=ek,H.toPairsIn=tk,H.toPath=d6,H.toPlainObject=XP,H.transform=cz,H.unary=iB,H.union=r3,H.unionBy=o3,H.unionWith=i3,H.uniq=s3,H.uniqBy=l3,H.uniqWith=a3,H.unset=uz,H.unzip=zy,H.unzipWith=OP,H.update=dz,H.updateWith=fz,H.values=sc,H.valuesIn=pz,H.without=c3,H.words=ok,H.wrap=sB,H.xor=u3,H.xorBy=d3,H.xorWith=f3,H.zip=p3,H.zipObject=h3,H.zipObjectDeep=m3,H.zipWith=g3,H.entries=ek,H.entriesIn=tk,H.extend=QP,H.extendWith=ih,Xy(H,H),H.add=p6,H.attempt=ik,H.camelCase=vz,H.capitalize=nk,H.ceil=h6,H.clamp=hz,H.clone=aB,H.cloneDeep=uB,H.cloneDeepWith=dB,H.cloneWith=cB,H.conformsTo=fB,H.deburr=rk,H.defaultTo=Gz,H.divide=m6,H.endsWith=yz,H.eq=oi,H.escape=bz,H.escapeRegExp=wz,H.every=I3,H.find=$3,H.findIndex=_P,H.findKey=HB,H.findLast=M3,H.findLastIndex=$P,H.findLastKey=VB,H.floor=g6,H.forEach=AP,H.forEachRight=FP,H.forIn=UB,H.forInRight=WB,H.forOwn=GB,H.forOwnRight=KB,H.get=Wy,H.gt=pB,H.gte=hB,H.has=XB,H.hasIn=Gy,H.head=TP,H.identity=zr,H.includes=A3,H.indexOf=M5,H.inRange=mz,H.invoke=ZB,H.isArguments=Kl,H.isArray=xt,H.isArrayBuffer=mB,H.isArrayLike=Dr,H.isArrayLikeObject=Dn,H.isBoolean=gB,H.isBuffer=Vs,H.isDate=vB,H.isElement=yB,H.isEmpty=bB,H.isEqual=wB,H.isEqualWith=CB,H.isError=Vy,H.isFinite=xB,H.isFunction=ss,H.isInteger=UP,H.isLength=rh,H.isMap=WP,H.isMatch=SB,H.isMatchWith=EB,H.isNaN=PB,H.isNative=kB,H.isNil=_B,H.isNull=IB,H.isNumber=GP,H.isObject=_n,H.isObjectLike=Ln,H.isPlainObject=ed,H.isRegExp=Uy,H.isSafeInteger=$B,H.isSet=KP,H.isString=oh,H.isSymbol=ro,H.isTypedArray=ic,H.isUndefined=MB,H.isWeakMap=TB,H.isWeakSet=RB,H.join=A5,H.kebabCase=Cz,H.last=Ro,H.lastIndexOf=F5,H.lowerCase=xz,H.lowerFirst=Sz,H.lt=OB,H.lte=LB,H.max=v6,H.maxBy=y6,H.mean=b6,H.meanBy=w6,H.min=C6,H.minBy=x6,H.stubArray=Jy,H.stubFalse=Zy,H.stubObject=l6,H.stubString=a6,H.stubTrue=c6,H.multiply=S6,H.nth=N5,H.noConflict=Zz,H.noop=Qy,H.now=eh,H.pad=Ez,H.padEnd=Pz,H.padStart=kz,H.parseInt=Iz,H.random=gz,H.reduce=z3,H.reduceRight=j3,H.repeat=_z,H.replace=$z,H.result=sz,H.round=E6,H.runInContext=Q,H.sample=V3,H.size=G3,H.snakeCase=Mz,H.some=K3,H.sortedIndex=U5,H.sortedIndexBy=W5,H.sortedIndexOf=G5,H.sortedLastIndex=K5,H.sortedLastIndexBy=q5,H.sortedLastIndexOf=Y5,H.startCase=Rz,H.startsWith=Oz,H.subtract=P6,H.sum=k6,H.sumBy=I6,H.template=Lz,H.times=u6,H.toFinite=ls,H.toInteger=kt,H.toLength=YP,H.toLower=Az,H.toNumber=Oo,H.toSafeInteger=AB,H.toString=Jt,H.toUpper=Fz,H.trim=Nz,H.trimEnd=Dz,H.trimStart=Bz,H.truncate=zz,H.unescape=jz,H.uniqueId=f6,H.upperCase=Hz,H.upperFirst=Ky,H.each=AP,H.eachRight=FP,H.first=TP,Xy(H,function(){var l={};return ki(H,function(d,y){tn.call(H.prototype,y)||(l[y]=d)}),l}(),{chain:!1}),H.VERSION=r,Io(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){H[l].placeholder=H}),Io(["drop","take"],function(l,d){At.prototype[l]=function(y){y=y===n?1:Yn(kt(y),0);var $=this.__filtered__&&!d?new At(this):this.clone();return $.__filtered__?$.__takeCount__=hr(y,$.__takeCount__):$.__views__.push({size:hr(y,q),type:l+($.__dir__<0?"Right":"")}),$},At.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Io(["filter","map","takeWhile"],function(l,d){var y=d+1,$=y==L||y==B;At.prototype[l]=function(N){var U=this.clone();return U.__iteratees__.push({iteratee:dt(N,3),type:y}),U.__filtered__=U.__filtered__||$,U}}),Io(["head","last"],function(l,d){var y="take"+(d?"Right":"");At.prototype[l]=function(){return this[y](1).value()[0]}}),Io(["initial","tail"],function(l,d){var y="drop"+(d?"":"Right");At.prototype[l]=function(){return this.__filtered__?new At(this):this[y](1)}}),At.prototype.compact=function(){return this.filter(zr)},At.prototype.find=function(l){return this.filter(l).head()},At.prototype.findLast=function(l){return this.reverse().find(l)},At.prototype.invokeMap=$t(function(l,d){return typeof l=="function"?new At(this):this.map(function(y){return qu(y,l,d)})}),At.prototype.reject=function(l){return this.filter(nh(dt(l)))},At.prototype.slice=function(l,d){l=kt(l);var y=this;return y.__filtered__&&(l>0||d<0)?new At(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),d!==n&&(d=kt(d),y=d<0?y.dropRight(-d):y.take(d-l)),y)},At.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},At.prototype.toArray=function(){return this.take(q)},ki(At.prototype,function(l,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),$=/^(?:head|last)$/.test(d),N=H[$?"take"+(d=="last"?"Right":""):d],U=$||/^find/.test(d);N&&(H.prototype[d]=function(){var K=this.__wrapped__,Y=$?[1]:arguments,J=K instanceof At,Ce=Y[0],xe=J||xt(K),Pe=function(Rt){var Bt=N.apply(H,Fs([Rt],Y));return $&&De?Bt[0]:Bt};xe&&y&&typeof Ce=="function"&&Ce.length!=1&&(J=xe=!1);var De=this.__chain__,Je=!!this.__actions__.length,pt=U&&!De,_t=J&&!Je;if(!U&&xe){K=_t?K:new At(this);var ht=l.apply(K,Y);return ht.__actions__.push({func:Jp,args:[Pe],thisArg:n}),new $o(ht,De)}return pt&&_t?l.apply(this,Y):(ht=this.thru(Pe),pt?$?ht.value()[0]:ht.value():ht)})}),Io(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ep[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);H.prototype[l]=function(){var N=arguments;if($&&!this.__chain__){var U=this.value();return d.apply(xt(U)?U:[],N)}return this[y](function(K){return d.apply(xt(K)?K:[],N)})}}),ki(At.prototype,function(l,d){var y=H[d];if(y){var $=y.name+"";tn.call(ec,$)||(ec[$]=[]),ec[$].push({name:d,func:y})}}),ec[Wp(n,C).name]=[{name:"wrapper",func:n}],At.prototype.clone=j4,At.prototype.reverse=H4,At.prototype.value=V4,H.prototype.at=y3,H.prototype.chain=b3,H.prototype.commit=w3,H.prototype.next=C3,H.prototype.plant=S3,H.prototype.reverse=E3,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=P3,H.prototype.first=H.prototype.head,ju&&(H.prototype[ju]=x3),H},Qa=w4();Bl?((Bl.exports=Qa)._=Qa,Yv._=Qa):sr._=Qa}).call(uo)})(nre,vs);const Kt=vs;var UC={},rre=st;Object.defineProperty(UC,"__esModule",{value:!0});var nL=UC.default=void 0,ore=rre(ct()),ire=lt(),sre=(0,ore.default)((0,ire.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");nL=UC.default=sre;var WC={},lre=st;Object.defineProperty(WC,"__esModule",{value:!0});var np=WC.default=void 0,are=lre(ct()),cre=lt(),ure=(0,are.default)((0,cre.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");np=WC.default=ure;var GC={},dre=st;Object.defineProperty(GC,"__esModule",{value:!0});var pv=GC.default=void 0,fre=dre(ct()),pre=lt(),hre=(0,fre.default)((0,pre.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");pv=GC.default=hre;var KC={},mre=st;Object.defineProperty(KC,"__esModule",{value:!0});var rL=KC.default=void 0,gre=mre(ct()),vre=lt(),yre=(0,gre.default)((0,vre.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");rL=KC.default=yre;var qC={},bre=st;Object.defineProperty(qC,"__esModule",{value:!0});var du=qC.default=void 0,wre=bre(ct()),Cre=lt(),xre=(0,wre.default)((0,Cre.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");du=qC.default=xre;var YC={},Sre=st;Object.defineProperty(YC,"__esModule",{value:!0});var XC=YC.default=void 0,Ere=Sre(ct()),Pre=lt(),kre=(0,Ere.default)((0,Pre.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");XC=YC.default=kre;globalThis&&globalThis.__awaiter;function Ire(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 _re(){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 $re(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Ire("resize",n),oL(()=>{n()},[]),e}function co(e){const t=_re(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Mre(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Tre(e,t){const n=[];for(const r of Mre(t))n.push(r,e);return n.splice(-1,1),Vm(n)}function Vm(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?Vm(t):u.createElement(u.Fragment,{key:n,children:t}))}const Cb=Symbol(),Rre=Symbol(),QC=Symbol();let Ore=(e,t)=>new Proxy(e,t);const xb=Object.getPrototypeOf,Sb=new WeakMap,iL=e=>e&&(Sb.has(e)?Sb.get(e):xb(e)===Object.prototype||xb(e)===Array.prototype),Um=e=>typeof e=="object"&&e!==null,E_=new WeakMap,JC=e=>e[QC]||e,sL=(e,t,n)=>{if(!iL(e))return e;const r=JC(e),o=(s=>Object.isFrozen(s)||Object.values(Object.getOwnPropertyDescriptors(s)).some(a=>!a.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((s,a)=>{const c={f:a};let f=!1;const p=(m,v)=>{if(!f){let b=c.a.get(s);b||(b=new Set,c.a.set(s,b)),v&&b.has(Cb)||b.add(m)}},h={get:(m,v)=>v===QC?s:(p(v),sL(m[v],c.a,c.c)),has:(m,v)=>v===Rre?(f=!0,c.a.delete(s),!0):(p(v),v in m),getOwnPropertyDescriptor:(m,v)=>(p(v,!0),Object.getOwnPropertyDescriptor(m,v)),ownKeys:m=>(p(Cb),Reflect.ownKeys(m))};return a&&(h.set=h.deleteProperty=()=>!1),[h,c]})(r,o),i[1].p=Ore(o?(s=>{let a=E_.get(s);if(!a){if(Array.isArray(s))a=Array.from(s);else{const c=Object.getOwnPropertyDescriptors(s);Object.values(c).forEach(f=>{f.configurable=!0}),a=Object.create(xb(s),c)}E_.set(s,a)}return a})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Lre=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},lL=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Um(e)||!Um(t))return!0;const o=n.get(JC(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;for(const s of o){const a=s===Cb?Lre(e,t):lL(e[s],t[s],n,r);if(a!==!0&&a!==!1||(i=a),i)break}return i===null&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Are=e=>iL(e)&&e[QC]||null,P_=(e,t=!0)=>{Sb.set(e,t)},Fre=(e,t)=>{const n=[],r=new WeakSet,o=(i,s)=>{if(r.has(i))return;Um(i)&&r.add(i);const a=Um(i)&&t.get(JC(i));a?a.forEach(c=>{o(i[c],s?[...s,c]:[c])}):s&&n.push(s)};return o(e),n};var Eb={},Nre={get exports(){return Eb},set exports(e){Eb=e}},aL={};/**
|
|
260
|
-
* @license React
|
|
261
|
-
* use-sync-external-store-shim.production.min.js
|
|
262
|
-
*
|
|
263
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
264
|
-
*
|
|
265
|
-
* This source code is licensed under the MIT license found in the
|
|
266
|
-
* LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/var fu=u;function Dre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bre=typeof Object.is=="function"?Object.is:Dre,zre=fu.useState,jre=fu.useEffect,Hre=fu.useLayoutEffect,Vre=fu.useDebugValue;function Ure(e,t){var n=t(),r=zre({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Hre(function(){o.value=n,o.getSnapshot=t,H0(o)&&i({inst:o})},[e,n,t]),jre(function(){return H0(o)&&i({inst:o}),e(function(){H0(o)&&i({inst:o})})},[e]),Vre(n),n}function H0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bre(e,n)}catch(r){return!0}}function Wre(e,t){return t()}var Gre=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Wre:Ure;aL.useSyncExternalStore=fu.useSyncExternalStore!==void 0?fu.useSyncExternalStore:Gre;(function(e){e.exports=aL})(Nre);const Kre=Qb(Eb),qre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Ai=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Wm=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),Yre=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),vd=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),k_=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),cL=new WeakSet,Pb=e=>typeof e=="object"&&e!==null,Xre=e=>Pb(e)&&!cL.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),I_=new WeakMap;let __=1;const $_=new WeakMap;function Iu(e={}){if(!Pb(e))throw new Error("object required");const t=I_.get(e);if(t)return t;let n=__;const r=new Set,o=(m,v=++__)=>{n!==v&&(n=v,r.forEach(b=>b(m,v)))},i=new Map,s=m=>{let v=i.get(m);return v||(v=(b,g)=>{const x=[...b];x[1]=[m,...x[1]],o(x,g)},i.set(m,v)),v},a=m=>{const v=i.get(m);return i.delete(m),v},c=(m,v)=>{const b=$_.get(v);if((b==null?void 0:b[0])===n)return b[1];const g=Array.isArray(m)?[]:Object.create(Object.getPrototypeOf(m));return P_(g,!0),$_.set(v,[n,g]),Reflect.ownKeys(m).forEach(x=>{const C=Reflect.get(m,x,v);if(cL.has(C))P_(C,!1),g[x]=C;else if(C instanceof Promise)if(vd in C)g[x]=C[vd];else{const P=C[k_]||C;Object.defineProperty(g,x,{get(){if(vd in C)return C[vd];throw P}})}else C!=null&&C[Ai]?g[x]=C[Wm]:g[x]=C}),Object.freeze(g)},f=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),p={get(m,v,b){return v===qre?n:v===Ai?r:v===Wm?c(m,b):v===Yre?p:Reflect.get(m,v,b)},deleteProperty(m,v){const b=Reflect.get(m,v),g=b==null?void 0:b[Ai];g&&g.delete(a(v));const x=Reflect.deleteProperty(m,v);return x&&o(["delete",[v],b]),x},is:Object.is,canProxy:Xre,set(m,v,b,g){var x;const C=Reflect.has(m,v),P=Reflect.get(m,v,g);if(C&&this.is(P,b))return!0;const w=P==null?void 0:P[Ai];w&&w.delete(a(v)),Pb(b)&&(b=Are(b)||b);let E;return(x=Object.getOwnPropertyDescriptor(m,v))!=null&&x.set?E=b:b instanceof Promise?E=b.then(k=>(E[vd]=k,o(["resolve",[v],k]),k)).catch(k=>{E[k_]=k,o(["reject",[v],k])}):b!=null&&b[Ai]?(E=b,E[Ai].add(s(v))):this.canProxy(b)?(E=Iu(b),E[Ai].add(s(v))):E=b,Reflect.set(m,v,E,g),o(["set",[v],b,P]),!0}},h=new Proxy(f,p);return I_.set(e,h),Reflect.ownKeys(e).forEach(m=>{const v=Object.getOwnPropertyDescriptor(e,m);v.get||v.set?Object.defineProperty(f,m,v):h[m]=e[m]}),h}function uL(e,t,n){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Ai])&&console.warn("Please use proxy object");let r;const o=[],i=s=>{if(o.push(s),n){t(o.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,t(o.splice(0))}))};return e[Ai].add(i),()=>{e[Ai].delete(i)}}function M_(e){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Wm])&&console.warn("Please use proxy object"),e[Wm]}const{useSyncExternalStore:Qre}=Kre,Jre=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=Fre(e,t)}),u.useDebugValue(n.current)};function hv(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=Qre(u.useCallback(f=>{const p=uL(e,f,n);return f(),p},[e,n]),()=>{const f=M_(e);try{if(!i&&r.current&&o.current&&!lL(r.current,f,o.current,new WeakMap))return r.current}catch(p){}return f},()=>M_(e));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Jre(s,a);const c=u.useMemo(()=>new WeakMap,[]);return sL(s,a,c)}const ha=Iu([]),rm={closableContent:"x",padding:!0};function Zre(){const e=hv(ha);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(eoe,Oe({key:n},t))))}function eoe(e){const t=u.useRef();return u.useEffect(()=>{var n;(n=t.current)==null||n.focus()},[]),e=Oe(Oe({},rm),e),e.Container?u.createElement(e.Container,e):u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:toe,onClick:()=>wi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Oe({className:"dialog",onClick(n){n.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){wi()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},kb(e.icon)),u.createElement("div",{className:"dialog-title"},kb(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))))}function kb(e){return typeof e=="function"?u.createElement(e):e}function toe(e){e.key==="Escape"&&wi()}function ei(e){const t=Math.random();return e.$id=t,ha.push(e),n=>{var o;const r=ha.findIndex(i=>i.$id===t);r<0||(ha.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function wi(e){var n;let t=ha.length;for(;t--;){const r=ha[t];if(!r.reserveClosing)return ha.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var ma={},mv={},pu={};const noe={},roe=Object.freeze(Object.defineProperty({__proto__:null,default:noe},Symbol.toStringTag,{value:"Module"})),T_=j$(roe);Object.defineProperty(pu,"__esModule",{value:!0});var R_=pu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||T_.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);R_=pu.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=T_,n=r=>o=>t.createHash(r).update(o).digest().buffer;R_=pu.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(mv,"__esModule",{value:!0});mv.SRPParameters=void 0;const Fh=pu;class hu{constructor(t=hu.PrimeGroup[2048],n=hu.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}mv.SRPParameters=hu;hu.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)}};hu.H={SHA1:Fh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Fh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Fh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Fh.crossEnvCrypto.hashFunctions.SHA512};var gv={},vv={};(function(e){var t=uo&&uo.__awaiter||function(w,E,k,_){function I(M){return M instanceof k?M:new k(function(R){R(M)})}return new(k||(k=Promise))(function(M,R){function O(j){try{V(_.next(j))}catch(L){R(L)}}function A(j){try{V(_.throw(j))}catch(L){R(L)}}function V(j){j.done?M(j.value):I(j.value).then(O,A)}V((_=_.apply(w,E||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=pu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=w=>{const E=w.toString(16),k=new ArrayBuffer(Math.ceil(E.length/2)),_=new Uint8Array(k);let I=0;E.length%2!==0&&(_[0]=parseInt(E[0],16),I=1);for(let M=0;M<k.byteLength;M++)_[M+I]=parseInt(E.slice(2*M+I,2*M+2+I),16);return k};e.bigIntToArrayBuffer=s;const a=w=>{const E=[];return new Uint8Array(w).forEach(k=>{E.push(("0"+k.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const f=(w,E)=>{const k=new Uint8Array(w);if(k.length<E){const _=new Uint8Array(E);return _.fill(0,0,E-k.length),_.set(k,E-k.length),_}return k};e.padStartArrayBuffer=f;function p(w,...E){const k=E.reduce((I,M)=>I+M.byteLength,0),_=new Uint8Array(k);for(let I=0,M=0;M<E.length;M++)_.set(new Uint8Array(E[M]),I),I+=E[M].byteLength;return w.H(_)}e.hash=p;function h(w,E,...k){const _=k.map(I=>e.padStartArrayBuffer(I,E));return p(w,..._)}e.hashPadded=h;function m(w=10){const E=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((k,_)=>{const I=_.toString(16).toString();return I.length===1?k+"0"+I:k+I},"").slice(0,w)}e.generateRandomString=m;function v(w=16){return e.arrayBufferToBigInt(P(w))}e.generateRandomBigInt=v;function b(w,E,k,_){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!k)throw new Error("Salt (s) must not be null.");if(!_)throw new Error("Password (P) must not be null");const I=yield w.computeX(E,k,_);return w.computeVerifier(I)})}e.createVerifier=b;function g(w,E,k,_){return t(this,void 0,void 0,function*(){const I=yield w.generateRandomSalt(_);return{s:I,v:yield b(w,E,I,k)}})}e.createVerifierAndSalt=g;const x=w=>t(void 0,void 0,void 0,function*(){return(yield p(w,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=x;function C(w,E,k){let _=o;for(;E>r;)E%i==o?(_=w*_%k,E-=o):(w=w*w%k,E/=i);return _}e.modPow=C;const P=w=>{const E=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(vv);var Ks=uo&&uo.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(gv,"__esModule",{value:!0});gv.SRPRoutines=void 0;const ln=vv;class ooe{constructor(t){this.parameters=t}hash(...t){return ln.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return ln.hashPadded(this.parameters,n,...t)}computeK(){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(this.parameters.primeGroup.N),ln.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Ks(this,void 0,void 0,function*(){const n=yield ln.hashBitCount(this.parameters),r=t||2*n/8;return ln.generateRandomBigInt(r)})}computeX(t,n,r){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Ks(this,void 0,void 0,function*(){return yield this.hash(ln.stringToArrayBuffer(n))})}computeVerifier(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=ln.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(r),ln.bigIntToArrayBuffer(o),ln.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return Ks(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n),ln.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=ln.modPow(this.parameters.primeGroup.g,n,s)*t%s;return ln.modPow(i+s-c,a,s)}}gv.SRPRoutines=ooe;var yl={},ZC=uo&&uo.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(yl,"__esModule",{value:!0});yl.SRPClientSessionStep2=yl.SRPClientSessionStep1=yl.SRPClientSession=void 0;class ioe{constructor(t){this.routines=t}step1(t,n){return ZC(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 yv(this.routines,t,r)})}}yl.SRPClientSession=ioe;class yv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return ZC(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),f=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new bv(this.routines,i,f,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new yv(t,n.I,new Uint8Array(n.IH).buffer)}}yl.SRPClientSessionStep1=yv;class bv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return ZC(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 bv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}yl.SRPClientSessionStep2=bv;var mu={},Ib=uo&&uo.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(mu,"__esModule",{value:!0});mu.SRPServerSessionStep1=mu.SRPServerSession=void 0;const _b=vv;class soe{constructor(t){this.routines=t}step1(t,n,r){return Ib(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=loe(this.routines.parameters,i,r,o);return new wv(this.routines,t,n,r,o,s)})}}mu.SRPServerSession=soe;class wv{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 Ib(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 aoe(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Ib(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 wv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}mu.SRPServerSessionStep1=wv;const loe=(e,t,n,r)=>(_b.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,aoe=(e,t,n,r,o)=>_b.modPow(_b.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=mv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=gv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=yl;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=mu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=vv;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}})})(ma);function coe(e,t,n){return it(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new ma.SRPRoutines(new ma.SRPParameters),c=yield(yield new ma.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),f=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(f.proof)).catch(()=>Promise.reject("trust")),f})}Object.fromEntries(new URLSearchParams(window.location.search).entries());const O_=["","K","M","G","T"];function _u(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<O_.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):Kt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(O_[s]||"")+t}function uoe(e,t,n=""){return t?e+t+n:""}function dL(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 fL(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function doe(e,t){return!t||t.endsWith(e)?t:t+e}function foe(e){return Boolean(e)}function $u(e){return e.filter(foe)}function poe(e,t){return Object.defineProperties(e,fL(t,n=>({enumerable:!1,writable:!0,value:n})))}function hoe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function L_(e,t){return t(e)}function moe(e,t){for(const n of e){const r=t(n);if(r!==void 0)return r}}function goe(e,{multiple:t=!0,folder:n=!1}={}){const r=Object.assign(document.createElement("input"),{type:"file",name:"file",multiple:t,webkitdirectory:n});r.addEventListener("change",()=>e(r.files)),r.click()}function voe(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");t(o.target.result)}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}var ex={},yoe=st;Object.defineProperty(ex,"__esModule",{value:!0});var pL=ex.default=void 0,boe=yoe(ct()),woe=lt(),Coe=(0,boe.default)((0,woe.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");pL=ex.default=Coe;function xoe(e){return Ke("MuiLoadingButton",e)}const Soe=Ve("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),us=Soe,Eoe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Poe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${fe(n)}`],endIcon:[t&&`endIconLoading${fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${fe(n)}`]},i=Ie(o,xoe,r);return S({},r,i)},koe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Ioe=re(ur,{shouldForwardProp:e=>koe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${us.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${us.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${us.startIconLoadingStart}, & .${us.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}),[`&.${us.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${us.startIconLoadingStart}, & .${us.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${us.startIconLoadingStart}, & .${us.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),_oe=re("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>S({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),$oe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:f="center",variant:p="text"}=r,h=oe(r,Eoe),m=Pn(s),v=c!=null?c:T.jsx(ep,{"aria-labelledby":m,color:"inherit",size:16}),b=S({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:f,variant:p}),g=Poe(b),x=a?T.jsx(_oe,{className:g.loadingIndicator,ownerState:b,children:v}):null;return T.jsxs(Ioe,S({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:x,b.loadingPosition==="end"?x:o]}))}),Moe=$oe,Toe=u.createContext({}),tx=Toe,Roe=["element"];function Ooe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function Loe(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 hL=u.createContext({});function Aoe(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const A_=()=>{};function Foe(e){const[,t]=u.useState(),{registerDescendant:n=A_,unregisterDescendant:r=A_,descendants:o=[],parentId:i=null}=u.useContext(hL),s=Ooe(o,f=>f.element===e.element),a=Aoe(o),c=o.some((f,p)=>a&&a[p]&&a[p].element!==f.element);return On(()=>{if(e.element)return n(S({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function mL(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:f}=c,p=oe(c,Roe);o(h=>{let m;if(h.length===0)return[S({},p,{element:f,index:0})];const v=Loe(h,f);if(h[v]&&h[v].element===f)m=h;else{const b=S({},p,{element:f,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),m})},[]),s=u.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return T.jsx(hL.Provider,{value:a,children:t})}function Noe(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:f,toggleExpansion:p}=u.useContext(tx),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,b=i?i(e):!1,g=s?s(e):!1;return{disabled:b,expanded:m,selected:g,focused:v,handleExpansion:w=>{if(!b){v||t(w,e);const E=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(E&&n(e))&&p(w,e)}},handleSelection:w=>{b||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?f(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||b)&&w.preventDefault()}}}const Doe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Boe=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:f,onClick:p,onMouseDown:h}=t,m=oe(t,Doe),{disabled:v,expanded:b,selected:g,focused:x,handleExpansion:C,handleSelection:P,preventSelection:w}=Noe(f),E=a||s||i,k=I=>{w(I),h&&h(I)},_=I=>{C(I),P(I),p&&p(I)};return T.jsxs("div",S({className:he(o,r.root,b&&r.expanded,g&&r.selected,x&&r.focused,v&&r.disabled),onClick:_,onMouseDown:k,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:E}),T.jsx("div",{className:r.label,children:c})]}))}),gL=Boe;function zoe(e){return Ke("MuiTreeItem",e)}const joe=Ve("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),qs=joe,Hoe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Voe=e=>{const{classes:t}=e;return Ie({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},zoe,t)},Uoe=re("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Woe=re(gL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${qs.iconContainer}`]:t.iconContainer},t.label&&{[`& .${qs.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"}},[`&.${qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${qs.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(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}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qs.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${qs.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${qs.label}`]:S({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Goe=re(cO,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Koe=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=gL,ContentProps:c,endIcon:f,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:x,onMouseDown:C,TransitionComponent:P=cO,TransitionProps:w}=r,E=oe(r,Hoe),{icons:k={},focus:_,isExpanded:I,isFocused:M,isSelected:R,isDisabled:O,multiSelect:A,disabledItemsFocusable:V,mapFirstChar:j,unMapFirstChar:L,registerNode:D,unregisterNode:B,treeId:W}=u.useContext(tx);let F=null;v!=null?F=v:W&&g&&(F=`${W}-${g}`);const[z,G]=u.useState(null),q=u.useRef(null),X=St(G,n),ie=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:ee,parentId:se}=Foe(ie),ae=Boolean(Array.isArray(o)?o.length:o),we=I?I(g):!1,de=M?M(g):!1,le=R?R(g):!1,te=O?O(g):!1,be=S({},r,{expanded:we,focused:de,selected:le,disabled:te}),_e=Voe(be);let Se,Fe;ae&&(we?Fe=s||k.defaultCollapseIcon:Fe=p||k.defaultExpandIcon),ae?Se=k.defaultParentIcon:Se=f||k.defaultEndIcon,u.useEffect(()=>{if(D&&B&&ee!==-1)return D({id:g,idAttribute:F,index:ee,parentId:se,expandable:ae,disabled:h}),()=>{B(g)}},[D,B,se,ee,g,ae,h,F]),u.useEffect(()=>{if(j&&L&&b)return j(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{L(g)}},[j,L,g,b]);let Re;A?Re=le:le&&(Re=!0);function Ae(Le){Le.target===Le.currentTarget&&bn(Le.target).getElementById(W).focus({preventScroll:!0});const Ze=!V&&te;!de&&Le.currentTarget===Le.target&&!Ze&&_(Le,g)}return T.jsxs(Uoe,S({className:he(_e.root,i),role:"treeitem","aria-expanded":ae?we:null,"aria-selected":Re,"aria-disabled":te||null,ref:X,id:F,tabIndex:-1},E,{ownerState:be,onFocus:Ae,children:[T.jsx(Woe,S({as:a,ref:q,classes:{root:_e.content,expanded:_e.expanded,selected:_e.selected,focused:_e.focused,disabled:_e.disabled,iconContainer:_e.iconContainer,label:_e.label},label:b,nodeId:g,onClick:x,onMouseDown:C,icon:m,expansionIcon:Fe,displayIcon:Se,ownerState:be},c)),o&&T.jsx(mL,{id:g,children:T.jsx(Goe,S({as:P,unmountOnExit:!0,className:_e.group,in:we,component:"ul",role:"group"},w,{children:o}))})]}))}),$b=Koe;function qoe(e){return Ke("MuiTreeView",e)}Ve("MuiTreeView",["root"]);const Yoe=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Xoe=e=>{const{classes:t}=e;return Ie({root:["root"]},qoe,t)},Qoe=re("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function Joe(e){return e&&e.length===1&&e.match(/\S/)}function F_(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function N_(){return!1}const Zoe=[],eie=[],tie=u.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Zoe,defaultExpandIcon:f,defaultParentIcon:p,defaultSelected:h=eie,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:x=!1,onBlur:C,onFocus:P,onKeyDown:w,onNodeFocus:E,onNodeSelect:k,onNodeToggle:_,selected:I}=r,M=oe(r,Yoe),O=Zr().direction==="rtl",A=S({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:x}),V=Xoe(A),j=Pn(g),L=u.useRef(null),D=St(L,n),[B,W]=u.useState(null),F=u.useRef({}),z=u.useRef({}),[G,q]=Wi({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,ie]=Wi({controlled:I,default:h,name:"TreeView",state:"selected"}),ee=u.useCallback(ce=>Array.isArray(G)?G.indexOf(ce)!==-1:!1,[G]),se=u.useCallback(ce=>F.current[ce]&&F.current[ce].expandable,[]),ae=u.useCallback(ce=>Array.isArray(X)?X.indexOf(ce)!==-1:X===ce,[X]),we=u.useCallback(ce=>{let me=F.current[ce];if(!me)return!1;if(me.disabled)return!0;for(;me.parentId!=null;)if(me=F.current[me.parentId],me.disabled)return!0;return!1},[]),de=ce=>B===ce,le=ce=>Object.keys(F.current).map(me=>F.current[me]).filter(me=>me.parentId===ce).sort((me,ze)=>me.index-ze.index).map(me=>me.id),te=ce=>{let me=le(ce);return m||(me=me.filter(ze=>!we(ze))),me},be=ce=>{if(ee(ce)&&te(ce).length>0)return te(ce)[0];let me=F.current[ce];for(;me!=null;){const ze=te(me.parentId),gt=ze[ze.indexOf(me.id)+1];if(gt)return gt;me=F.current[me.parentId]}return null},_e=ce=>{const me=F.current[ce],ze=te(me.parentId),gt=ze.indexOf(ce);if(gt===0)return me.parentId;let bt=ze[gt-1];for(;ee(bt)&&te(bt).length>0;)bt=te(bt).pop();return bt},Se=()=>{let ce=te(null).pop();for(;ee(ce);)ce=te(ce).pop();return ce},Fe=()=>te(null)[0],Re=ce=>F.current[ce].parentId,Ae=(ce,me)=>{if(ce===me)return[ce,me];const ze=F.current[ce],gt=F.current[me];if(ze.parentId===gt.id||gt.parentId===ze.id)return gt.parentId===ze.id?[ze.id,gt.id]:[gt.id,ze.id];const bt=[ze.id],Be=[gt.id];let ut=ze.parentId,ve=gt.parentId,ge=Be.indexOf(ut)!==-1,nt=bt.indexOf(ve)!==-1,ft=!0,Vt=!0;for(;!nt&&!ge;)ft&&(bt.push(ut),ge=Be.indexOf(ut)!==-1,ft=ut!==null,!ge&&ft&&(ut=F.current[ut].parentId)),Vt&&!ge&&(Be.push(ve),nt=bt.indexOf(ve)!==-1,Vt=ve!==null,!nt&&Vt&&(ve=F.current[ve].parentId));const un=ge?ut:ve,wn=le(un),Fr=bt[bt.indexOf(un)-1],Ga=Be[Be.indexOf(un)-1];return wn.indexOf(Fr)<wn.indexOf(Ga)?[ce,me]:[me,ce]},Le=(ce,me)=>{const[ze,gt]=Ae(ce,me),bt=[ze];let Be=ze;for(;Be!==gt;)Be=be(Be),bt.push(Be);return bt},Ze=(ce,me)=>{me&&(W(me),E&&E(ce,me))},yt=(ce,me)=>Ze(ce,be(me)),tt=(ce,me)=>Ze(ce,_e(me)),et=ce=>Ze(ce,Fe()),Pt=ce=>Ze(ce,Se()),mt=(ce,me,ze)=>{let gt,bt;const Be=ze.toLowerCase(),ut=[],ve=[];Object.keys(z.current).forEach(ge=>{const nt=z.current[ge],ft=F.current[ge],Vt=ft.parentId?ee(ft.parentId):!0,un=m?!1:we(ge);Vt&&!un&&(ut.push(ge),ve.push(nt))}),gt=ut.indexOf(me)+1,gt>=ut.length&&(gt=0),bt=F_(ve,gt,Be),bt===-1&&(bt=F_(ve,0,Be)),bt>-1&&Ze(ce,ut[bt])},at=(ce,me=B)=>{let ze;G.indexOf(me)!==-1?ze=G.filter(gt=>gt!==me):ze=[me].concat(G),_&&_(ce,ze),q(ze)},It=(ce,me)=>{const ze=F.current[me],bt=le(ze.parentId).filter(ut=>se(ut)&&!ee(ut)),Be=G.concat(bt);bt.length>0&&(q(Be),_&&_(ce,Be))},Xe=u.useRef(null),Te=u.useRef(!1),ne=u.useRef([]),ke=(ce,me)=>{let ze=X.slice();const{start:gt,next:bt,current:Be}=me;!bt||!Be||(ne.current.indexOf(Be)===-1&&(ne.current=[]),Te.current?ne.current.indexOf(bt)!==-1?(ze=ze.filter(ut=>ut===gt||ut!==Be),ne.current=ne.current.filter(ut=>ut===gt||ut!==Be)):(ze.push(bt),ne.current.push(bt)):(ze.push(bt),ne.current.push(Be,bt)),k&&k(ce,ze),ie(ze))},Ee=(ce,me)=>{let ze=X.slice();const{start:gt,end:bt}=me;Te.current&&(ze=ze.filter(ve=>ne.current.indexOf(ve)===-1));let Be=Le(gt,bt);Be=Be.filter(ve=>!we(ve)),ne.current=Be;let ut=ze.concat(Be);ut=ut.filter((ve,ge)=>ut.indexOf(ve)===ge),k&&k(ce,ut),ie(ut)},$e=(ce,me)=>{let ze;X.indexOf(me)!==-1?ze=X.filter(gt=>gt!==me):ze=[me].concat(X),k&&k(ce,ze),ie(ze)},Ge=(ce,me)=>{const ze=x?[me]:me;k&&k(ce,ze),ie(ze)},Ct=(ce,me,ze=!1)=>me?(ze?$e(ce,me):Ge(ce,me),Xe.current=me,Te.current=!1,ne.current=[],!0):!1,jt=(ce,me,ze=!1)=>{const{start:gt=Xe.current,end:bt,current:Be}=me;ze?ke(ce,{start:gt,next:bt,current:Be}):gt!=null&&bt!=null&&Ee(ce,{start:gt,end:bt}),Te.current=!0},Ht=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;jt(ce,{start:ze,end:Fe()})},Jn=(ce,me)=>{Xe.current||(Xe.current=me);const ze=Te.current?Xe.current:me;jt(ce,{start:ze,end:Se()})},hn=(ce,me)=>{we(be(me))||jt(ce,{end:be(me),current:me},!0)},Kn=(ce,me)=>{we(_e(me))||jt(ce,{end:_e(me),current:me},!0)},Pr=ce=>{jt(ce,{start:Fe(),end:Se()})},mn=u.useCallback(ce=>{const{id:me,index:ze,parentId:gt,expandable:bt,idAttribute:Be,disabled:ut}=ce;F.current[me]={id:me,index:ze,parentId:gt,expandable:bt,idAttribute:Be,disabled:ut}},[]),sn=u.useCallback(ce=>{const me=S({},F.current);delete me[ce],F.current=me,W(ze=>ze===ce&&L.current===bn(L.current).activeElement?le(null)[0]:ze)},[]),en=u.useCallback((ce,me)=>{z.current[ce]=me},[]),Eo=u.useCallback(ce=>{const me=S({},z.current);delete me[ce],z.current=me},[]),Pi=ce=>(se(B)&&(ee(B)?yt(ce,B):we(B)||at(ce)),!0),Ar=ce=>{if(ee(B)&&!we(B))return at(ce,B),!0;const me=Re(B);return me?(Ze(ce,me),!0):!1},ti=ce=>{let me=!1;const ze=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!B)return;const gt=ce.ctrlKey||ce.metaKey;switch(ze){case" ":!v&&!we(B)&&(x&&ce.shiftKey?(jt(ce,{end:B}),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"Enter":we(B)||(se(B)?(at(ce),me=!0):x?me=Ct(ce,B,!0):me=Ct(ce,B)),ce.stopPropagation();break;case"ArrowDown":x&&ce.shiftKey&&!v&&hn(ce,B),yt(ce,B),me=!0;break;case"ArrowUp":x&&ce.shiftKey&&!v&&Kn(ce,B),tt(ce,B),me=!0;break;case"ArrowRight":O?me=Ar(ce):me=Pi(ce);break;case"ArrowLeft":O?me=Pi(ce):me=Ar(ce);break;case"Home":x&>&&ce.shiftKey&&!v&&!we(B)&&Ht(ce,B),et(ce),me=!0;break;case"End":x&>&&ce.shiftKey&&!v&&!we(B)&&Jn(ce,B),Pt(ce),me=!0;break;default:ze==="*"?(It(ce,B),me=!0):x&>&&ze.toLowerCase()==="a"&&!v?(Pr(ce),me=!0):!gt&&!ce.shiftKey&&Joe(ze)&&(mt(ce,B,ze),me=!0)}me&&(ce.preventDefault(),ce.stopPropagation()),w&&w(ce)},Po=ce=>{if(ce.target===ce.currentTarget){const me=Array.isArray(X)?X[0]:X;Ze(ce,me||te(null)[0])}P&&P(ce)},Lt=ce=>{W(null),C&&C(ce)},Nn=F.current[B]?F.current[B].idAttribute:null;return T.jsx(tx.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:f,defaultParentIcon:p,defaultEndIcon:a},focus:Ze,toggleExpansion:at,isExpanded:ee,isExpandable:se,isFocused:de,isSelected:ae,isDisabled:we,selectNode:v?N_:Ct,selectRange:v?N_:jt,multiSelect:x,disabledItemsFocusable:m,mapFirstChar:en,unMapFirstChar:Eo,registerNode:mn,unregisterNode:sn,treeId:j},children:T.jsx(mL,{children:T.jsx(Qoe,S({role:"tree",id:j,"aria-activedescendant":Nn,"aria-multiselectable":x,className:he(V.root,i),ref:D,tabIndex:0,onKeyDown:ti,onFocus:Po,onBlur:Lt,ownerState:A},M,{children:o}))})})}),vL=tie;function ho(m){var v=m,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:f,suggestions:p}=v,h=cn(v,["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[g,x]=u.useState(b),C=u.useRef(b);u.useEffect(()=>{x(b),C.current=b},[b]);const P=E=>u.createElement(tp,Oe(Ut(Oe({fullWidth:!0,InputLabelProps:g||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:g,onChange(k){const _=k.target.value;(f==null?void 0:f(_))!==!1&&(x(_),(s||document.activeElement!==k.target)&&w(k,_))},onKeyDown(k){var _;(_=h.onKeyDown)==null||_.call(h,k),k.key==="Enter"&&w(k)},onBlur(k){var _;(_=h.onBlur)==null||_.call(h,k),w(k)},InputProps:Oe({startAdornment:a&&u.createElement(jm,{position:"start"},a),endAdornment:c&&u.createElement(jm,{position:"end"},c)},h.InputProps)}),E));return p?u.createElement(_C,{freeSolo:!0,options:p,renderInput:P}):P(null);function w(E,k=g){const _=k.trim();_!==C.current&&(C.current=_,t(_,{was:e,event:E,cancel(){x(b)}}))}}function Mu(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=cn(a,["value","onChange","getApi","options","sx"]);return u.createElement(tp,Ut(Oe(Oe({},yL(e)),s),{onChange(c){try{let f=c.target.value;f=JSON.parse(f),n(f,{was:t,event:c})}catch(f){}}}))}function nx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=cn(a,["value","onChange","getApi","options","sx"]);return u.createElement(tp,Ut(Oe(Oe({},yL(Ut(Oe({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let f=c.target.value;f=Array.isArray(f)?f.map(p=>JSON.parse(p)):[],n(f,{was:t,event:c})}catch(f){}}}))}function yL(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(rr,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function om(r){var o=r,{value:e,empty:t="-"}=o,n=cn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(ho,Ut(Oe({},n),{value:e,disabled:!0}))}function ea(f){var p=f,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=cn(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(ho,Oe({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=cn(g,["was"]);t(h?Number(h):null,Ut(Oe({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:Kt.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(jm,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function ga(c){var f=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=f,a=cn(f,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement(UO,Ut(Oe({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(rt,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(PO,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement(av,{error:i},o))}var rx={},nie=st;Object.defineProperty(rx,"__esModule",{value:!0});var Cv=rx.default=void 0,rie=nie(ct()),oie=lt(),iie=(0,rie.default)((0,oie.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");Cv=rx.default=iie;var ox={},sie=st;Object.defineProperty(ox,"__esModule",{value:!0});var xi=ox.default=void 0,lie=sie(ct()),aie=lt(),cie=(0,lie.default)((0,aie.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");xi=ox.default=cie;function uie({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),f={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Vn,{container:!0},u.createElement(Vn,{item:!0,xs:o,sx:f},n),u.createElement(Vn,{item:!0,xs:i,sx:f},r),u.createElement(Vn,{item:!0,xs:s},u.createElement(tr,{onClick(){a.current.focus()}},u.createElement(Cv))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Vn,{key:"k",item:!0,xs:o},u.createElement(ho,{value:p,onChange(m,g){var x=g,{was:v}=x,b=cn(x,["was"]);const C=Oe({},e);m&&(C[m]=v!==void 0?C[v]:""),v!==void 0&&delete C[v],t(C,Oe({was:e},b))}})),u.createElement(Vn,{key:"v",item:!0,xs:i},u.createElement(ho,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var x=g,{was:v}=x,b=cn(x,["was"]);const C=Oe({},e);m?C[p]=m:delete C[p],t(C,Oe({was:e},b))}})),u.createElement(Vn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(tr,{onClick(m){const v=Oe({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(xi)))]),u.createElement(Vn,{item:!0,xs:o},u.createElement(ho,{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(Ut(Oe({},e),{[p]:""}),Ut(Oe({},h),{was:e}))}}})),u.createElement(Vn,{item:!0,xs:i},u.createElement(ho,{value:"",onChange(){},disabled:!0})))}function rp(b){var g=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:f,saveOnEnter:p,gridProps:h,formProps:m}=g,v=cn(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const x=u.useRef(!1);u.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const[C,P]=u.useState({}),[w,E]=u.useState({}),k=typeof o=="function"?{onClick:o}:o,[_,I]=u.useState(0),M=u.useRef(!1),R=u.useRef("");u.useEffect(()=>void j(),[_]);const O={};return u.createElement("form",Ut(Oe({ref:c&&(L=>c.current=L||void 0)},m),{onSubmit(L){L.preventDefault()},onKeyDown(L){k&&!k.disabled&&(L.ctrlKey||L.metaKey)&&L.key==="Enter"&&A()}}),u.createElement(rt,Oe({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Vn,Oe({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((L,D)=>{if(!L)return null;if(u.isValidElement(L))return u.createElement(Vn,{key:D,item:!0,xs:12},L);const ie=L,{k:B,fromField:W=vs.identity,toField:F=vs.identity,getError:z,error:G}=ie,q=cn(ie,["k","fromField","toField","getError","error"]);let X=C[B]||w[B];if(X===!0&&(X="Not valid"),B){const se=L.hasOwnProperty("value")?L.value:t==null?void 0:t[B],ae=Oe(Oe({},L),q);Object.assign(q,{value:F(se),error:Boolean(X||G)||void 0,getApi(we){O[B]=we},onBlur(){V(B)},onKeyDown(we){p&&we.key==="Enter"&&A()},onChange(we){try{if(we=W(we),E(de=>Ut(Oe({},de),{[B]:!1})),vs.isEqual(we,se))return;n(we,B),V(B)}catch(de){E(le=>Ut(Oe({},le),{[B]:(de==null?void 0:de.message)||String(de)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement("br"),q.helperText):X),q.label===void 0&&(q.label=bL(B)),vs.defaults(q,r==null?void 0:r(ae))}{const ee=q,{xs:se=12,sm:ae,md:we,lg:de,xl:le,comp:te=ho,before:be,after:_e,fromField:Se,toField:Fe}=ee,Re=cn(ee,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return u.createElement(Vn,{key:B||D,item:!0,xs:se,sm:ae,md:we,lg:de,xl:le},be,u.isValidElement(te)?te:u.createElement(te,Re),_e)}})),k&&u.createElement(rt,{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(Moe,Ut(Oe({variant:"contained",startIcon:u.createElement(pL),children:"Save",loading:_!==0},k),{onClick:A})),...s)));function A(){M.current=!0,V()}function V(L=""){_===0&&(R.current=L,setTimeout(()=>I(D=>D===0?1:D)))}function j(){return it(this,null,function*(){var B,W;if(_===0)return;if(_===1)return I(2);const L="Please review errors",D={};for(const F of e){if(!F||u.isValidElement(F)||!F.k)continue;const{k:z}=F,G=t==null?void 0:t[z],q=(yield(B=O[z])==null?void 0:B.getError())||(yield(W=F.getError)==null?void 0:W.call(F,G,{values:t,fields:e}))||w[z];if(D[z]=q||!1,!M.current&&z===R.current)break;if(!x.current)return}P(D);try{if(!M.current)return;if(Object.values(D).some(Boolean))return yield f==null?void 0:f(L);const F=k&&k.onClick;F&&(yield F())}catch(F){yield f==null?void 0:f(F)}finally{M.current=!1,x.current&&I(0)}})}}function bL(e){return vs.capitalize(e.replace(/_/g," "))}const die="/~/api/";function fie(e,t,n={}){const r=n.noModal?void 0:Eie(),o=hie();o&&(t=Oe({csrf:o},t));const i=new AbortController;return Object.assign(fetch(die+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(s=>it(this,null,function*(){if(r==null||r(),s.ok)return s.json();const a=(yield s.text())||`Failed API ${e}: ${s.statusText}`;throw console.warn(a,t?" "+JSON.stringify(t):""),new pie(s.status,a)}),s=>{var a;throw r==null||r(),(a=s==null?void 0:s.message)!=null&&a.includes("fetch")?Error("Network error"):s}),{abort(){i.abort("cancel")}})}let pie=class extends Error{constructor(t,n){super(n),this.code=t}};function hie(){return dL("csrf")}const mie=Iu({embedded:"",langs:[]});function gie(e,t,n){const r=typeof e=="string"?e:n!=null?n:n=e[0];typeof t=="string"&&!n&&(n=t,t=null);let o,i="";const{langs:s,embedded:a}=mie;return o||(o=n||r,i=a),Array.from(D_(o)).map(([f,p])=>{if(!p)return f;const[h,m,v]=f.split(","),b=t[h];return m==="plural"?c(b,v):b||b===0?b:""}).join("");function c(f,p){const h=new Intl.PluralRules(i||a).select(Number(f));let m="",v=!1,b=!1;for(const[x,C]of D_(p)){if(v)return g(x);if(b&&(m=x,b=!1),C)continue;const P=x.trim().split(/\s+/);v=P.some(w=>w[0]==="="&&f===Number(w.slice(1))||w===h),b=!v&&P.includes("other")}return g(m);function g(x){return x.replace("#",String(f))}}}function*D_(e){let t=0;for(;;){const n=e.indexOf("{",t);if(n<0)break;yield[e.slice(t,n),!1];let r=1;for(t=n+1;r&&t<e.length;)e[t]==="{"?r++:e[t]==="}"&&r--,t++;if(r)return console.debug("tokenizer: unclosed");yield[e.slice(n+1,t-1),!0]}yield[e.slice(t),!1]}function ix(e,t,n,r){return uL(e,o=>{o.some(i=>i[1][0]===t)&&n(e[t])},r)}const Da=Iu({can_delete:void 0,can_upload:void 0,iconsClass:"",username:"",list:[],filteredList:void 0,loading:!1,listReloader:0,patternFilter:"",showFilter:!1,selected:{},remoteSearch:"",sortBy:"name",invertOrder:!1,foldersFirst:!0,sortNumerics:!1,theme:""});function vie(){return hv(Da)}const wL="hfs_settings",sx=["sortBy","sortNumerics","invertOrder","foldersFirst","theme"];yie();for(const e of sx)ix(Da,e,bie);setTimeout(()=>fie("config",{},{noModal:!0}).then(e=>Da.serverConfig=e));function yie(){const e=localStorage.getItem(wL);if(!e)return;let t;try{t=JSON.parse(e)}catch(n){console.error("invalid settings stored",e);return}for(const n of sx){const r=t[n];r!==void 0&&(Da[n]=r)}}function bie(){localStorage.setItem(wL,JSON.stringify(Kt.pick(Da,sx)))}const wie={login:"user:👤",user:"user:👤",filter:":✂",search:":🔍",search_off:"cancel:❌",stop:":⏹️",settings:"cog:⚙",archive:"file-archive:📦",logout:":🚪",home:":🏠",parent:"level-up mirror:⬆",folder:":📂",file:"doc:📄",spinner:"spin6 spinner:🎲",password:"key:🗝️",download:":📥",invert:"retweet:🙃",admin:"crown:👑",check:":✔️"};document.fonts.ready.then(()=>it(void 0,null,function*(){const e='9px "fontello"';yield document.fonts.load(e),document.fonts.check(e)&&(Da.iconsClass=" ")}));const Cie=u.memo(o=>{var i=o,{name:e,alt:t,className:n=""}=i,r=cn(i,["name","alt","className"]);const[s,a]=(wie[e]||e).split(":"),{iconsClass:c}=vie();return n+=" icon "+(c?"fa-"+(s||e):"emoji"),u.createElement("span",Ut(Oe({},r),{"aria-label":t,role:"img",className:n}),c?null:a||"#")});function xie(e,t){return u.createElement(Cie,Oe({name:e},t))}function Sie(){return window.innerWidth<800}let V0=!1;function Eie(){return V0?()=>{}:(V0=!0,ei({closable:!1,noFrame:!0,Content:kie,reserveClosing:!0,className:"working",onClose(){V0=!1}}))}const Pie=window.HFS={};Pie.onEvent=(e,t)=>{const n={h:u.createElement,React:fo,state:Da,t:gie};document.addEventListener("hfs."+e,r=>{const{params:o,output:i}=r.detail,s=t(o,n,i);s!==void 0&&Array.isArray(i)&&i.push(s)})};function kie(){return xie("spinner",{className:"spinner"})}function lx(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=cn(s,["gap","vert","children","props"]);return u.createElement("div",Oe({style:Oe({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function CL(){return MO("(prefers-color-scheme: dark)")}const Iie={};function _ie(){const e=CL()?null:Iie;return u.useMemo(()=>xC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}rm.Container=function(t){const n=u.useRef(),{width:r,height:o}=$re(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;if(!h||(h.focus(),i))return;const m=h.querySelector("[autofocus]")||h.querySelector("input,textarea");m&&m instanceof HTMLElement&&m.focus()});return()=>clearTimeout(p)},[n.current]),t=Oe(Oe({},rm),t);const f=t.dialogProps||{},{sx:s,root:a}=f,c=cn(f,["sx","root"]);return rm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(jX,Ut(Oe(Oe({open:!0,maxWidth:"lg",fullScreen:i},c),a),{onClose:()=>wi()}),t.title&&u.createElement(tQ,{sx:Oe({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},ax())},u.createElement(rt,{flex:1,minWidth:40},kb(t.title)),u.createElement(kn,{icon:np,tooltip:"close",onClick:()=>wi()})),u.createElement(XX,{ref:n,sx:Oe({p:t.padding?2:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},s)},u.createElement(t.Content)))};function ax(){return CL()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const xL={error:pv,warning:XC,info:du,success:nL};function dr(e,t){return it(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=cn(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=ei(Ut(Oe({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(rt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(tr,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(np)),(c=r.icon)!=null?c:u.createElement(xL[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(rt,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function ws(n){return it(this,arguments,function*(e,{href:t}={}){return new Promise(o=>ei({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(rt,{mb:2},e),u.createElement(lx,{},u.createElement("a",{href:t,onClick:()=>wi(!0)},u.createElement(ur,{variant:"contained"},"Confirm")),u.createElement(ur,{onClick:()=>wi(!1)},"Don't")))}})}function $f(i){return it(this,null,function*(){var s=i,{fullScreen:e,title:t,onChange:n,before:r}=s,o=cn(s,["fullScreen","title","onChange","before"]);return new Promise(c=>ei({className:"dialog-confirm",icon:"?",onClose:c,title:t,Content:a}));function a(){const[c,f]=u.useState(o.values||{});return u.createElement(u.Fragment,{},r,u.createElement(rp,Ut(Oe({},o),{values:c,set(p,h){const m=Ut(Oe({},c),{[h]:p});f(m),n==null||n(m,{setValues:f})},save:Ut(Oe({},o.save),{onClick(){wi(c)}})})))}})}function $ie(n){return it(this,arguments,function*(e,t={}){return $f(Ut(Oe({},t),{fields:[Oe({k:"text",label:null,autoFocus:!0,before:u.createElement(rt,{mb:2},e)},t.field)],save:Oe({children:"Continue",startIcon:u.createElement(rL)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(ur,{onClick:wi},"Cancel"),...t.addToBar||[]]})).then(r=>r==null?void 0:r.text)})}function Mie(){return ei({Content:ep,closable:!1})}function vi(e,t="info"){const r=ei({Content:o,dialogProps:{PaperProps:{sx:{transition:`opacity ${3e3}ms ease-in`},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(rt,{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(ep)}function EL(e){return e&&/^[a-zA-Z]:$/.test(e)}function cx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>cx(r,t[n]))}function ux(e){return e?{outline:"2px solid"}:void 0}function kn(f){var p=f,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=cn(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=co(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(tr,Ut(Oe({disabled:Boolean(h||o||r)},c),{onClick(){return it(this,arguments,function*(){if(a&&!(yield ws(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(dr).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(rt,{position:"relative",display:"inline-block"},u.createElement(ep,Ut(Oe({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(fv,Ut(Oe({title:e},s),{children:u.createElement("span",{},v)}))),v}function lo(e,t,n){return u.createElement(fv,{title:t,children:u.createElement(e,{sx:n})})}function dx(e){return u.createElement(_f,Oe({component:nR},e))}function fx(e){return u.createElement(rt,Oe({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function Tie(e,t){return it(this,null,function*(){const r=(yield Mt("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Mt("set_config",{values:{[e]:o}}))})}function Rie(e){return Object.keys(e)}function Oie(e){let t=e.lastIndexOf("/");return t<0&&(t=e.lastIndexOf("\\")),t<0?e:e.slice(t)}function Lie(...e){const t=moe(e,r=>{var o;return(o=/\\|\//.exec("\\a/b"))==null?void 0:o[0]}),n=$u(e.map(r=>r==null?"":String(r)));return n.map((r,o)=>o===n.length-1||r.endsWith("\\")||r.endsWith("/")?r:r+t).join("")}function Aie(e,t){var n;return(n=t[e])!=null?n:e}function gu(e){return MO(t=>t.breakpoints.up(e),{noSsr:!0})}function PL(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function Fie(e){return e==null?[]:Array.isArray(e)?e:[e]}const kL="admin_state",En=Iu(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[kL]||null))),IL=["onlinePluginsColumns"],Nie=Kt.debounce(()=>localStorage[kL]=JSON.stringify(Kt.pick(En,IL)),500,{maxWait:1e3});for(const e of IL)ix(En,e,Nie);function Dl(){return hv(En)}var px={},Die=st;Object.defineProperty(px,"__esModule",{value:!0});var op=px.default=void 0,Bie=Die(ct()),zie=lt(),jie=(0,Bie.default)((0,zie.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");op=px.default=jie;function fi(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 vu(e){return!!e&&!!e[yo]}function Pa(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Yie}(e)||Array.isArray(e)||!!e[G_]||!!e.constructor[G_]||hx(e)||mx(e))}function Mf(e,t,n){n===void 0&&(n=!1),Tu(e)===0?(n?Object.keys:wx)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Tu(e){var t=e[yo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hx(e)?2:mx(e)?3:0}function Mb(e,t){return Tu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Hie(e,t){return Tu(e)===2?e.get(t):e[t]}function _L(e,t,n){var r=Tu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Vie(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function hx(e){return Kie&&e instanceof Map}function mx(e){return qie&&e instanceof Set}function Zl(e){return e.o||e.t}function gx(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xie(e);delete t[yo];for(var n=wx(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 vx(e,t){return t===void 0&&(t=!1),yx(e)||vu(e)||!Pa(e)||(Tu(e)>1&&(e.set=e.add=e.clear=e.delete=Uie),Object.freeze(e),t&&Mf(e,function(n,r){return vx(r,!0)},!0)),e}function Uie(){fi(2)}function yx(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ki(e){var t=Qie[e];return t||fi(18,e),t}function B_(){return Tf}function U0(e,t){t&&(Ki("Patches"),e.u=[],e.s=[],e.v=t)}function Gm(e){Tb(e),e.p.forEach(Wie),e.p=null}function Tb(e){e===Tf&&(Tf=e.l)}function z_(e){return Tf={p:[],l:Tf,h:e,m:!0,_:0}}function Wie(e){var t=e[yo];t.i===0||t.i===1?t.j():t.O=!0}function W0(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ki("ES5").S(t,e,r),r?(n[yo].P&&(Gm(t),fi(4)),Pa(e)&&(e=Km(t,e),t.l||qm(t,e)),t.u&&Ki("Patches").M(n[yo].t,e,t.u,t.s)):e=Km(t,n,[]),Gm(t),t.u&&t.v(t.u,t.s),e!==$L?e:void 0}function Km(e,t,n){if(yx(t))return t;var r=t[yo];if(!r)return Mf(t,function(i,s){return j_(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return qm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=gx(r.k):r.o;Mf(r.i===3?new Set(o):o,function(i,s){return j_(e,r,o,i,s,n)}),qm(e,o,!1),n&&e.u&&Ki("Patches").R(r,n,e.u,e.s)}return r.o}function j_(e,t,n,r,o,i){if(vu(o)){var s=Km(e,o,i&&t&&t.i!==3&&!Mb(t.D,r)?i.concat(r):void 0);if(_L(n,r,s),!vu(s))return;e.m=!1}if(Pa(o)&&!yx(o)){if(!e.h.F&&e._<1)return;Km(e,o),t&&t.A.l||qm(e,o)}}function qm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&vx(t,n)}function G0(e,t){var n=e[yo];return(n?Zl(n):e)[t]}function H_(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 Rb(e){e.P||(e.P=!0,e.l&&Rb(e.l))}function K0(e){e.o||(e.o=gx(e.t))}function Ob(e,t,n){var r=hx(t)?Ki("MapSet").N(t,n):mx(t)?Ki("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:B_(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,f=Lb;s&&(c=[a],f=_d);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):Ki("ES5").J(t,n);return(n?n.A:B_()).p.push(r),r}function Gie(e){return vu(e)||fi(22,e),function t(n){if(!Pa(n))return n;var r,o=n[yo],i=Tu(n);if(o){if(!o.P&&(o.i<4||!Ki("ES5").K(o)))return o.t;o.I=!0,r=V_(n,i),o.I=!1}else r=V_(n,i);return Mf(r,function(s,a){o&&Hie(o.t,s)===a||_L(r,s,t(a))}),i===3?new Set(r):r}(e)}function V_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gx(e)}var U_,Tf,bx=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Kie=typeof Map!="undefined",qie=typeof Set!="undefined",W_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",$L=bx?Symbol.for("immer-nothing"):((U_={})["immer-nothing"]=!0,U_),G_=bx?Symbol.for("immer-draftable"):"__$immer_draftable",yo=bx?Symbol.for("immer-state"):"__$immer_state",Yie=""+Object.prototype.constructor,wx=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xie=Object.getOwnPropertyDescriptors||function(e){var t={};return wx(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Qie={},Lb={get:function(e,t){if(t===yo)return e;var n=Zl(e);if(!Mb(n,t))return function(o,i,s){var a,c=H_(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||!Pa(r)?r:r===G0(e.t,t)?(K0(e),e.o[t]=Ob(e.A.h,r,e)):r},has:function(e,t){return t in Zl(e)},ownKeys:function(e){return Reflect.ownKeys(Zl(e))},set:function(e,t,n){var r=H_(Zl(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=G0(Zl(e),t),i=o==null?void 0:o[yo];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Vie(n,o)&&(n!==void 0||Mb(e.t,t)))return!0;K0(e),Rb(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return G0(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,K0(e),Rb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){fi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){fi(12)}},_d={};Mf(Lb,function(e,t){_d[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_d.deleteProperty=function(e,t){return _d.set.call(this,e,t,void 0)},_d.set=function(e,t,n){return Lb.set.call(this,e[0],t,n,e[0])};var Jie=function(){function e(n){var r=this;this.g=W_,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var x=this;g===void 0&&(g=a);for(var C=arguments.length,P=Array(C>1?C-1:0),w=1;w<C;w++)P[w-1]=arguments[w];return c.produce(g,function(E){var k;return(k=i).call.apply(k,[x,E].concat(P))})}}var f;if(typeof i!="function"&&fi(6),s!==void 0&&typeof s!="function"&&fi(7),Pa(o)){var p=z_(r),h=Ob(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Gm(p):Tb(p)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(g){return U0(p,s),W0(g,p)},function(g){throw Gm(p),g}):(U0(p,s),W0(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===$L&&(f=void 0),r.F&&vx(f,!0),s){var v=[],b=[];Ki("Patches").M(o,f,v,b),s(v,b)}return f}fi(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(f,p){s=f,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(f){return[f,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Pa(n)||fi(8),vu(n)&&(n=Gie(n));var r=z_(this),o=Ob(this,n,void 0);return o[yo].C=!0,Tb(r),o},t.finishDraft=function(n,r){var o=n&&n[yo],i=o.A;return U0(i,r),W0(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!W_&&fi(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=Ki("Patches").$;return vu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),bo=new Jie,Zie=bo.produce;bo.produceWithPatches.bind(bo);bo.setAutoFreeze.bind(bo);bo.setUseProxies.bind(bo);bo.applyPatches.bind(bo);bo.createDraft.bind(bo);bo.finishDraft.bind(bo);const ese=Zie;function yi(...e){const[t,n,r]=ip(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(Yo,{severity:"error"},String(n),u.createElement(kn,{icon:op,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?SL():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}const ML="/~/api/",tse={get_status:20};function Mt(e,t,{timeout:n=void 0}={}){var i,s;const r=RL();r&&(t=Oe({csrf:r},t));const o=new AbortController;return n!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((s=(i=tse[e])!=null?i:n)!=null?s:10)),Object.assign(fetch(ML+e,{method:"POST",headers:{"content-type":"application/json"},signal:o.signal,body:t&&JSON.stringify(t)}).then(a=>it(this,null,function*(){if(a.ok)return a.json().then(f=>(console.debug("API",e,t,">>",f),f));let c=(yield a.text())||"Failed API "+e;throw console.warn(c+(t?" "+JSON.stringify(t):"")),a.status===401&&(En.loginRequired=hoe(()=>{var f;return(f=JSON.parse(c))==null?void 0:f.any})!==!1||403,c="Unauthorized"),new nse(a.status,c)}),a=>{var c;throw(c=a==null?void 0:a.message)!=null&&c.includes("fetch")?Error("Network error"):a}),{abort(){o.abort("cancel")}})}class nse extends Error{constructor(t,n){super(n),this.code=t}}function ip(e,t){const[n,r]=co(void 0),[o,i]=co(void 0),[s,a]=co(0),c=u.useRef();u.useEffect(()=>{var v;if((v=c.current)==null||v.abort(),r(void 0),i(void 0),!e)return;let p=!1;const h=Mt(e,t),m=h.then(b=>p||r(b),b=>p||i(b)).finally(()=>c.current=void 0);c.current=Object.assign(m,{abort(){p=!0,h.abort()}})},[e,JSON.stringify(t),s]);const f=u.useCallback(()=>c.current||a(p=>p+1),[a]);return[n,o,f]}function TL(e,t,n){console.debug("API EVENTS",e,t);const r=RL(),o={csrf:r&&JSON.stringify(r)};for(const s in t){const a=t[s];a!==void 0&&(o[s]=JSON.stringify(a))}const i=new EventSource(ML+e+"?"+new URLSearchParams(o));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function RL(){return dL("csrf")}function rse(e,t={}){const[n,r]=co(void 0),[o,i]=co(void 0),[s,a]=co(!1);return u.useEffect(()=>{const c=TL(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),f();case"closed":return f();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?f():r(h)}});return()=>{c.close(),f()};function f(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}function Ba(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=co([]),[s,a]=co(void 0),[c,f]=co(void 0),[p,h]=co(!0),[m,v]=co(!1),[b,g]=co(!0),[x,C]=u.useState(0),P=u.useRef(0);return u.useEffect(()=>{if(!e)return;const k=[],_=Kt.debounce(()=>{const R=k.splice(0,1/0);R.length&&i(O=>[...O,...R])},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),g(!0),i([]);const I=TL(e,t,(R,O)=>{switch(R){case"connected":return h(!1),setTimeout(()=>_.flush());case"error":return f("Connection error"),M();case"closed":return M();case"msg":Fie(O).forEach(A=>{if(A==="ready"){_.flush(),g(!1);return}if(A.error){A.error===401?En.loginRequired=A.any!==!1||403:f(PL(A.error));return}if(A.props)return a(A.props);if(A.add){const V=r(A.add);n&&(V.id=++P.current),k.push(V),_();return}if(A.remove){const V=[];for(const j of A.remove){const L=Kt.matches(j);Kt.isEmpty(Kt.remove(k,L))&&V.push(L)}if(Kt.isEmpty(V))return;i(j=>{const L=j.filter(D=>!V.some(B=>B(D)));return L.length<j.length?L:j});return}if(A.update){_.flush(),i(V=>{const j=[...V];for(const{search:L,change:D}of A.update){const B=j.findIndex(Kt.matches(L));B>=0&&(j[B]=Oe(Oe({},j[B]),D))}return j});return}console.debug("unknown api event",R,A)}),(I==null?void 0:I.readyState)===(I==null?void 0:I.CLOSED)&&M()}});return()=>I.close();function M(){g(!1),v(!1),_.flush()}},[x,e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:E,reload:w};function w(){C(k=>k+1)}function E(k){i(ese(o,_=>{k(_)}))}}var Cx={},ose=st;Object.defineProperty(Cx,"__esModule",{value:!0});var OL=Cx.default=void 0,ise=ose(ct()),sse=lt(),lse=(0,ise.default)((0,sse.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");OL=Cx.default=lse;var xx={},ase=st;Object.defineProperty(xx,"__esModule",{value:!0});var xv=xx.default=void 0,cse=ase(ct()),use=lt(),dse=(0,cse.default)((0,use.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");xv=xx.default=dse;var Sx={},fse=st;Object.defineProperty(Sx,"__esModule",{value:!0});var Ex=Sx.default=void 0,pse=fse(ct()),hse=lt(),mse=(0,pse.default)((0,hse.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");Ex=Sx.default=mse;var Px={},gse=st;Object.defineProperty(Px,"__esModule",{value:!0});var LL=Px.default=void 0,vse=gse(ct()),yse=lt(),bse=(0,vse.default)((0,yse.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");LL=Px.default=bse;var kx={},wse=st;Object.defineProperty(kx,"__esModule",{value:!0});var AL=kx.default=void 0,Cse=wse(ct()),xse=lt(),Sse=(0,Cse.default)((0,xse.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");AL=kx.default=Sse;const FL=u.createContext(void 0);function vt(){const e=u.useContext(FL);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
268
|
-
`));return e}const NL=u.createContext(void 0),Ye=()=>{const e=u.useContext(NL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Dt(e){return Ke("MuiDataGrid",e)}const Z=Ve("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Ese=e=>{const{classes:t}=e;return Ie({root:["main"]},Dt,t)},Pse=re("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function DL(e){const n={classes:Ye().classes},r=Ese(n);return T.jsx(Pse,{className:r.root,children:e.children})}function kse(e,t){var n=function(E){var k=E.__resizeTriggers__,_=k.firstElementChild,I=k.lastElementChild,M=_.firstElementChild;I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight,M.style.width=_.offsetWidth+1+"px",M.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},r=function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height},o=function(E){if(!(E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)){var k=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(_){_.call(k,E)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=f[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",x=function(E){if(!E.getElementById("muiDetectElementResize")){var k=(b||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',_=E.head||E.getElementsByTagName("head")[0],I=E.createElement("style");I.id="muiDetectElementResize",I.type="text/css",e!=null&&I.setAttribute("nonce",e),I.styleSheet?I.styleSheet.cssText=k:I.appendChild(E.createTextNode(k)),_.appendChild(I)}},C=function(E,k){if(!E.__resizeTriggers__){var _=E.ownerDocument,I=t.getComputedStyle(E);I&&I.position=="static"&&(E.style.position="relative"),x(_),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=_.createElement("div")).className="Mui-resizeTriggers",E.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',E.appendChild(E.__resizeTriggers__),n(E),E.addEventListener("scroll",o,!0),a&&(E.__resizeTriggers__.__animationListener__=function(R){R.animationName==v&&n(E)},E.__resizeTriggers__.addEventListener(a,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(k)},P=function(E,k){if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(k),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",o,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(a,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch(_){}}};return{addResizeListener:C,removeResizeListener:P}}const Ise=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],_se=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:f,style:p}=t,h=oe(t,Ise),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),x=jn(()=>{if(g.current){const E=g.current.offsetHeight||0,k=g.current.offsetWidth||0,I=Jr(g.current).getComputedStyle(g.current),M=parseInt(I.paddingLeft,10)||0,R=parseInt(I.paddingRight,10)||0,O=parseInt(I.paddingTop,10)||0,A=parseInt(I.paddingBottom,10)||0,V=E-O-A,j=k-M-R;(!s&&m.height!==V||!a&&m.width!==j)&&(v({height:V,width:j}),f&&f({height:V,width:j}))}});On(()=>{var E;if(g.current=b.current.parentElement,!g)return;const k=Jr((E=g.current)!=null?E:void 0),_=kse(c,k);return _.addResizeListener(g.current,x),x(),()=>{_.removeResizeListener(g.current,x)}},[c,x]);const C={overflow:"visible"},P={};s||(C.height=0,P.height=m.height),a||(C.width=0,P.width=m.width);const w=St(b,n);return T.jsx("div",S({ref:w,style:S({},C,p)},h,{children:m.height===null&&m.width===null?null:r(P)}))}),Si=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
269
|
-
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},za=(e,t)=>e;function $se(e){return e.acceptsApiRef}Si(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Ue=(e,t)=>$se(t)?t(e):t(e.current.state);var Ym="NOT_FOUND";function Mse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Ym},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Tse(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return Ym}function o(a,c){r(a)===Ym&&(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 Rse=function(t,n){return t===n};function Ose(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 BL(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Rse:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Ose(o),f=s===1?Mse(c):Tse(s,c);function p(){var h=f.get(arguments);if(h===Ym){if(h=e.apply(null,arguments),a){var m=f.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function Lse(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 Ase(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var f=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,b=v.memoizeOptions,g=b===void 0?n:b,x=Array.isArray(g)?g:[g],C=Lse(a),P=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(x)),w=e(function(){for(var k=[],_=C.length,I=0;I<_;I++)k.push(C[I].apply(null,arguments));return p=P.apply(null,k),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:P,dependencies:C,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),w};return o}var Fse=Ase(BL);const yd={cache:null};Si(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);const qe=(...e)=>{yd.cache===null&&(yd.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;yd.cache===null&&(yd.cache={});const{cache:c}=yd;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const f=Fse(...e);return c[s]||(c[s]=new Map),c[s].set(e,f),f(a,s)};return t.acceptsApiRef=!0,t},Zi=e=>e.rows,Sv=qe(Zi,e=>e.totalRowCount),Nse=qe(Zi,e=>e.loading),Dse=qe(Zi,e=>e.totalTopLevelRowCount),Rf=qe(Zi,e=>e.idRowsLookup),zL=qe(Zi,e=>e.idToIdLookup),va=qe(Zi,e=>e.tree),Bse=qe(Zi,e=>e.groupingName),Ix=qe(Zi,e=>e.treeDepth),Gc=qe(Zi,e=>e.ids),zse=qe(Zi,e=>e==null?void 0:e.additionalRowGroups),sp=qe(zse,e=>e==null?void 0:e.pinnedRows),jse=qe(sp,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)}),_x=e=>e.sorting,$x=qe(_x,e=>e.sortedRows),Mx=qe($x,Rf,(e,t)=>e.map(n=>({id:n,model:t[n]}))),ci=qe(_x,e=>e.sortModel),Hse=qe(ci,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ka=e=>e.columns,Ia=qe(ka,e=>e.all),Ru=qe(ka,e=>e.lookup),Uo=qe(Ia,Ru,(e,t)=>e.map(n=>t[n])),sl=qe(ka,e=>e.columnVisibilityModel),pr=qe(Uo,sl,(e,t)=>e.filter(n=>t[n.field]!==!1));qe(pr,e=>e.map(t=>t.field));const _a=qe(pr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Ev=qe(pr,_a,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Pv=qe(Uo,e=>e.filter(t=>t.filterable)),Vse=qe(Uo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));za(Ia);za(Uo);za(pr);za(Pv);za(qe(Pv,e=>e.map(t=>t.field)));za(qe(pr,e=>e.length));const Use=za(qe(_a,Ev,(e,t)=>({totalWidth:t,positions:e}))),lp=e=>e.filter,jr=qe(lp,e=>e.filterModel);qe(jr,e=>e.quickFilterValues);const Wse=qe(lp,e=>e.visibleRowsLookup),jL=qe(lp,e=>e.filteredRowsLookup);qe(lp,e=>e.filteredDescendantCountLookup);const Ls=qe(Wse,Mx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Xd=qe(Ls,e=>e.map(t=>t.id)),Gse=qe(jL,Mx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Kse=qe(Gse,e=>e.map(t=>t.id)),HL=qe(Ls,va,Ix,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),VL=qe(Ls,e=>e.length),UL=qe(HL,e=>e.length),qse=qe(jr,Ru,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),Yse=qe(qse,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),ja=e=>e.density,Xse=qe(ja,e=>e.value),ap=qe(ja,e=>e.rowHeight),WL=qe(ja,e=>e.headerHeight),Tx=qe(ja,e=>e.headerGroupingMaxDepth),Qse=qe(ja,e=>e.factor),cp=qe(ja,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function Jse(e){var t,n;const r=vt(),o=Ye(),i=Ue(r,cp),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);On(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let f=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&f===0&&(f="auto"),s?T.jsx("div",S({style:{height:f,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:f==="auto"?0:void 0}},e)):null}function Zse(){const e=vt(),t=Ye(),n=Ue(e,Sv),r=Ue(e,VL),o=Ue(e,Nse),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.components.NoRowsOverlay,S({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var f;a=T.jsx(t.components.NoResultsOverlay,S({},(f=t.componentsProps)==null?void 0:f.noResultsOverlay))}if(o){var p;a=T.jsx(t.components.LoadingOverlay,S({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(Jse,{children:a})}function ele(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=vt(),i=Ye(),s=Ue(o,cp),[a,c]=u.useState(i.disableVirtualization),f=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=f,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),b=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=b;const g=u.useCallback(x=>{o.current.publishEvent("resize",x)},[o]);return T.jsxs(DL,{children:[T.jsx(Zse,{}),T.jsx(r,{ref:m,innerRef:h}),T.jsx(_se,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:x=>{const C={width:x.width,height:x.height?x.height-s:"auto",marginTop:s};return T.jsx(n,{ref:v,style:C,disableVirtualization:a})}}),t]})}function Gn(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class tle extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function nle(e){const{children:t}=e,n=vt(),r=Gn(n,"GridErrorHandler"),o=Ye(),i=n.current.state.error;return T.jsx(tle,{hasError:i!=null,componentProps:i,api:n,logger:r,render:s=>{var a;return T.jsx(DL,{children:T.jsx(o.components.ErrorOverlay,S({},s,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function rle(){var e;const t=vt(),n=Ye(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:T.jsx("div",{ref:r,children:T.jsx(n.components.Footer,S({},(e=n.componentsProps)==null?void 0:e.footer))})}function ole(){var e;const t=vt(),n=Ye(),r=u.useRef(null);return t.current.headerRef=r,T.jsx("div",{ref:r,children:T.jsx(n.components.Header,S({},(e=n.componentsProps)==null?void 0:e.header))})}var xr;(function(e){e.Cell="cell",e.Row="row"})(xr||(xr={}));var Ot;(function(e){e.Edit="edit",e.View="view"})(Ot||(Ot={}));var Qt;(function(e){e.Edit="edit",e.View="view"})(Qt||(Qt={}));const Kc={client:"client",server:"server"};var Tr;(function(e){e.And="and",e.Or="or"})(Tr||(Tr={}));var fs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(fs||(fs={}));var Oi;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Oi||(Oi={}));var ps;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ps||(ps={}));var Li;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Li||(Li={}));var Of;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(Of||(Of={}));function GL(e){return e.field!==void 0}const KL=e=>e.focus,pi=qe(KL,e=>e.cell),ile=qe(KL,e=>e.columnHeader),qL=e=>e.tabIndex,Xm=qe(qL,e=>e.cell),YL=qe(qL,e=>e.columnHeader),sle=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let q0;function lle(){return q0===void 0&&document.createElement("div").focus({get preventScroll(){return q0=!0,!1}}),q0}const ale=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${fe(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return Ie(i,Dt,o)};function cle(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:f,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:x,disableDragEvents:C,onClick:P,onDoubleClick:w,onMouseDown:E,onMouseUp:k,onKeyDown:_,onDragEnter:I,onDragOver:M}=e,R=oe(e,sle),O=s==null?m:s,A=u.useRef(null),V=u.useRef(null),j=vt(),L=Ye(),D={align:t,showRightBorder:g,isEditable:f,classes:L.classes},B=ale(D),W=u.useCallback(se=>ae=>{const we=j.current.getCellParams(p,i||"");j.current.publishEvent(se,we,ae),k&&k(ae)},[j,i,k,p]),F=u.useCallback((se,ae)=>we=>{if(!we.currentTarget.contains(we.target)||!j.current.getRow(p))return;const de=j.current.getCellParams(p,i||"");j.current.publishEvent(se,de,we),ae&&ae(we)},[j,i,p]),z={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useLayoutEffect(()=>{if(!a||o===Ot.Edit)return;const se=bn(j.current.rootElementRef.current);if(A.current&&!A.current.contains(se.activeElement)){const ae=A.current.querySelector('[tabindex="0"]'),we=V.current||ae||A.current;if(lle())we.focus({preventScroll:!0});else{const de=j.current.getScrollPosition();we.focus(),j.current.scroll(de)}}},[a,o,j]);let G=R.onFocus;const X=j.current.getColumn(i).type==="actions",ie=()=>n==null?T.jsx("div",{className:B.content,children:O==null?void 0:O.toString()}):u.isValidElement(n)&&X?u.cloneElement(n,{focusElementRef:V}):n,ee=C?null:{onDragEnter:F("cellDragEnter",I),onDragOver:F("cellDragOver",M)};return T.jsx("div",S({ref:A,className:he(b,B.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":x,style:z,tabIndex:(o==="view"||!f)&&!X?h:-1,onClick:F("cellClick",P),onDoubleClick:F("cellDoubleClick",w),onMouseDown:F("cellMouseDown",E),onMouseUp:W("cellMouseUp"),onKeyDown:F("cellKeyDown",_)},ee,R,{onFocus:G,children:ie()}))}const ule=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],dle=e=>{const{classes:t}=e;return Ie({root:["booleanCell"]},Dt,t)},fle=e=>{const{value:t}=e,n=oe(e,ule),r=vt(),o=Ye(),i={classes:o.classes},s=dle(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return T.jsx(a,S({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))},ple=u.memo(fle),hle=e=>e.rowNode.isAutoGenerated?"":T.jsx(ple,S({},e)),mle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],gle=e=>{const{classes:t}=e;return Ie({root:["editBooleanCell"]},Dt,t)};function vle(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=oe(e,mle),f=vt(),p=u.useRef(null),h=Pn(),[m,v]=u.useState(r),b=Ye(),g={classes:b.classes},x=gle(g),C=u.useCallback(P=>it(this,null,function*(){const w=P.target.checked;a&&(yield a(P,w)),v(w),yield f.current.setEditCellValue({id:n,field:o,value:w},P)}),[f,o,n,a]);return u.useEffect(()=>{v(r)},[r]),On(()=>{s&&p.current.focus()},[s]),T.jsx("label",S({htmlFor:h,className:he(x.root,i)},c,{children:T.jsx(b.components.BaseCheckbox,S({id:h,inputRef:p,checked:Boolean(m),onChange:C,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const yle=e=>T.jsx(vle,S({},e)),ble=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],wle=re(Pu)({fontSize:"inherit"}),Cle=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Dt,t)};function xle(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=oe(e,ble),f=o.type==="dateTime",p=vt(),h=u.useRef(),m=u.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n!=null?n:"").toString());let E;return w==null||Number.isNaN(w.getTime())?E="":E=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,f?16:10),{parsed:w,formatted:E}},[n,f]),[v,b]=u.useState(m),x={classes:Ye().classes},C=Cle(x),P=u.useCallback(w=>it(this,null,function*(){const E=w.target.value;let k;if(E==="")k=null;else{const[_,I]=E.split("T"),[M,R,O]=_.split("-");if(k=new Date,k.setFullYear(Number(M),Number(R)-1,Number(O)),k.setHours(0,0,0,0),I){const[A,V]=I.split(":");k.setHours(Number(A),Number(V),0,0)}}a&&(yield a(w,k)),b({parsed:k,formatted:E}),p.current.setEditCellValue({id:t,field:r,value:k},w)}),[p,r,t,a]);return u.useEffect(()=>{b(w=>{var E,k;return m.parsed!==w.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((k=w.parsed)==null?void 0:k.getTime())?m:w})},[m]),On(()=>{i&&h.current.focus()},[i]),T.jsx(wle,S({inputRef:h,fullWidth:!0,className:C.root,type:f?"datetime-local":"date",inputProps:S({max:f?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:P},c))}const XL=e=>T.jsx(xle,S({},e)),Sle=Tt(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Ele=Tt(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),K_=Tt(T.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),q_=Tt(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Ple=Tt(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),kle=Tt(T.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Ile=Tt(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Tt(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Tt(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const _le=Tt(T.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),$le=Tt(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Mle=Tt(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Tle=Tt(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Rle=Tt(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ole=Tt(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Y0=Tt(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),QL=Tt(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Lle=Tt(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Rx=Tt(T.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),JL=Tt(T.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Ale=Tt(T.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Fle=Tt(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Nle=Tt(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function ll(e){return typeof e=="object"&&e!==null?e.value:e}function Qm(e,t){if(t===void 0)return;const n=t.find(r=>{const o=ll(r);return String(o)===String(e)});return ll(n)}const Dle=["item","applyValue","type","apiRef","focusElementRef"],Ble=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:f,children:h},c)}),ZL=500;function Bi(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,Dle),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,x]=u.useState(!1),C=Pn(),P=Ye(),E=(r=(((n=P.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,k=c==="singleSelect"?{select:!0,SelectProps:S({native:E},(o=P.componentsProps)==null?void 0:o.baseSelect),children:Ble(f.current.getColumn(s.columnField),f.current,E?"option":rr)}:{},_=u.useCallback(M=>{let R=M.target.value;if(c==="singleSelect"){const O=f.current.getColumn(s.columnField),A=typeof O.valueOptions=="function"?O.valueOptions({field:O.field}):O.valueOptions;R=Qm(R,A)}clearTimeout(m.current),b(String(R)),x(!0),m.current=setTimeout(()=>{a(S({},s,{value:R})),x(!1)},ZL)},[f,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var M;const R=(M=s.value)!=null?M:"";b(String(R))},[s.value]);const I=g?{endAdornment:T.jsx(Rx,{})}:h.InputProps;return T.jsx(P.components.BaseTextField,S({id:C,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:_,variant:"standard",type:c||"text",InputProps:I,InputLabelProps:{shrink:!0},inputRef:p},k,h,(i=P.componentsProps)==null?void 0:i.baseTextField))}const zle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],jle=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Dt,t)},Hle=re(Pu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Vle=u.forwardRef((e,t)=>{var n;const r=Ye(),{id:o,value:i,field:s,colDef:a,hasFocus:c,debounceMs:f=(n=r.experimentalFeatures)!=null&&n.newEditingApi?200:ZL,isProcessingProps:p,onValueChange:h}=e,m=oe(e,zle),v=vt(),b=u.useRef(),[g,x]=u.useState(i),C={classes:r.classes},P=jle(C),w=u.useCallback(E=>it(void 0,null,function*(){const k=E.target.value;h&&(yield h(E,k)),x(k),v.current.setEditCellValue({id:o,field:s,value:k,debounceMs:f},E)}),[v,f,s,o,h]);return u.useEffect(()=>{x(i)},[i]),On(()=>{c&&b.current.focus()},[c]),T.jsx(Hle,S({ref:t,inputRef:b,className:P.root,fullWidth:!0,type:a.type==="number"?a.type:"text",value:g!=null?g:"",onChange:w,endAdornment:p?T.jsx(Rx,{}):void 0},m))}),Ule=e=>T.jsx(Vle,S({},e)),Ox=e=>e==="Escape",eA=e=>e==="Enter",tA=e=>e==="Tab",nA=e=>e===" ",Wle=e=>e.indexOf("Arrow")===0,Gle=e=>e==="Home"||e==="End",Kle=e=>e.indexOf("Page")===0,Ab=e=>e==="Delete"||e==="Backspace";function kv(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const qle=["Enter","Escape","Tab"],Yle=["Enter","Tab"],Xle=e=>eA(e.key)||Ab(e.key)||kv(e),Qle=e=>qle.indexOf(e)>-1,Y_=e=>Yle.indexOf(e)>-1,up=e=>Gle(e)||Wle(e)||Kle(e)||nA(e),Fb=e=>!!e.key,Jle=e=>tA(e)||Ox(e),Zle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],eae=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return T.jsx(t,{value:o,children:i},r)};function tae(e){return!!e.key}function nae(e){var t,n,r;const o=Ye(),{id:i,value:s,api:a,field:c,row:f,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===xr.Cell}=e,g=oe(e,Zle),x=vt(),C=u.useRef(),P=u.useRef(),[w,E]=u.useState(b),_=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let I;typeof p.valueOptions=="function"?I=p.valueOptions({id:i,row:f,field:c}):I=p.valueOptions,p.valueFormatter&&(I=I.map(A=>{if(typeof A=="object")return A;const V={field:c,api:a,value:A};return{value:A,label:String(p.valueFormatter(V))}}));const M=A=>it(this,null,function*(){var V;E(!1);const j=A.target,L=Qm(j.value,I);v&&(yield v(A,L));const D=yield x.current.setEditCellValue({id:i,field:c,value:L},A);if((V=o.experimentalFeatures)!=null&&V.newEditingApi||o.editMode===xr.Row||D===!1)return;if((yield Promise.resolve(x.current.commitCellChange({id:i,field:c},A)))&&(x.current.setCellMode(i,c,"view"),A.key)){const W=x.current.getCellParams(i,c);x.current.publishEvent("cellNavigationKeyDown",W,A)}}),R=(A,V)=>{if(o.editMode===xr.Row){E(!1);return}if(V==="backdropClick"||Ox(A.key)){var j;(j=o.experimentalFeatures)!=null&&j.newEditingApi?x.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):x.current.setCellMode(i,c,"view")}},O=A=>{tae(A)&&A.key==="Enter"||E(!0)};return On(()=>{h&&P.current.focus()},[h]),T.jsx(o.components.BaseSelect,S({ref:C,inputRef:P,value:s,onChange:M,open:w,onOpen:O,MenuProps:{onClose:R},error:m,native:_,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:I.map(A=>eae(A,_?"option":rr))}))}const rae=e=>T.jsx(nae,S({},e)),oae=["open","target","onClickAway","children","position","className","onExited"],iae=e=>{const{classes:t}=e;return Ie({root:["menu"]},Dt,t)},sae=re(Aa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Z.menuList}`]:{outline:0}})),lae={"bottom-start":"top left","bottom-end":"top right"},rA=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,f=oe(e,oae),p=vt(),h=u.useRef(r),m=u.useRef(n),v=Ye(),b={classes:v.classes},g=iae(b);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const C=n?"menuOpen":"menuClose";p.current.publishEvent(C,{target:r}),m.current=n,h.current=r},[p,n,r]);const x=C=>P=>{C&&C(),c&&c(P)};return T.jsx(sae,S({as:v.components.BasePopper,className:he(a,g.root),open:n,anchorEl:r,transition:!0,placement:s},f,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:P})=>T.jsx(qR,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(zm,S({},C,{style:{transformOrigin:lae[P]},onExited:x(C==null?void 0:C.onExited),children:T.jsx(Zo,{children:i})}))})}))},aae=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],cae=e=>typeof e.getActions=="function",uae=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=oe(e,aae),[c,f]=u.useState(-1),[p,h]=u.useState(!1),m=vt(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),x=u.useRef({}),C=Pn(),P=Pn(),w=Ye();if(u.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([L,D])=>{D==null||D.stop({},()=>{delete x.current[L]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus()},[c]),u.useEffect(()=>{r||(f(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||f(0)}}),[]),!cae(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),k=E.filter(L=>!L.props.showInMenu),_=E.filter(L=>L.props.showInMenu),I=k.length+(_.length?1:0);u.useEffect(()=>{c>=I&&f(I-1)},[c,I]);const M=()=>{h(!0),f(I-1),g.current=!0},R=()=>{h(!1)},O=L=>D=>{x.current[L]=D},A=(L,D)=>B=>{f(L),g.current=!0,D&&D(B)},V=L=>{if(I<=1)return;let D=c;L.key==="ArrowRight"?D+=1:L.key==="ArrowLeft"&&(D-=1),!(D<0||D>=I)&&D!==c&&(L.preventDefault(),L.stopPropagation(),f(D))},j=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Enter","Escape"].includes(L.key)&&R()};return T.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:Z.actionsCell,onKeyDown:V},a,{children:[k.map((L,D)=>u.cloneElement(L,{key:D,touchRippleRef:O(D),onClick:A(D,L.props.onClick),tabIndex:c===D?o:-1})),_.length>0&&P&&T.jsx(tr,{ref:b,id:P,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":C,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:M,touchRippleRef:O(P),tabIndex:c===k.length?o:-1,children:T.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),_.length>0&&T.jsx(rA,{onClickAway:R,onClick:R,open:p,target:b.current,position:i,children:T.jsx(dv,{id:C,className:Z.menuList,onKeyDown:j,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:_.map((L,D)=>u.cloneElement(L,{key:D}))})})]}))},dae=e=>T.jsx(uae,S({},e)),fae=re("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Z.autoHeight}`]:t.autoHeight},{[`&.${Z.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Z["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Z["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Z["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Z.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${Z.editBooleanCell}`]:t.editBooleanCell},{[`& .${Z["cell--editing"]}`]:t["cell--editing"]},{[`& .${Z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Z["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Z.cell}`]:t.cell},{[`& .${Z.cellContent}`]:t.cellContent},{[`& .${Z.cellCheckbox}`]:t.cellCheckbox},{[`& .${Z.checkboxInput}`]:t.checkboxInput},{[`& .${Z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Z.columnHeader}`]:t.columnHeader},{[`& .${Z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Z.columnSeparator}`]:t.columnSeparator},{[`& .${Z.filterIcon}`]:t.filterIcon},{[`& .${Z.iconSeparator}`]:t.iconSeparator},{[`& .${Z.menuIcon}`]:t.menuIcon},{[`& .${Z.menuIconButton}`]:t.menuIconButton},{[`& .${Z.menuOpen}`]:t.menuOpen},{[`& .${Z.menuList}`]:t.menuList},{[`& .${Z["row--editable"]}`]:t["row--editable"]},{[`& .${Z["row--editing"]}`]:t["row--editing"]},{[`& .${Z["row--dragging"]}`]:t["row--dragging"]},{[`& .${Z.row}`]:t.row},{[`& .${Z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Z.rowReorderCell}`]:t.rowReorderCell},{[`& .${Z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Z.sortIcon}`]:t.sortIcon},{[`& .${Z.withBorder}`]:t.withBorder},{[`& .${Z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?_s(ot(e.palette.divider,1),.88):Is(ot(e.palette.divider,1),.68);return S({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${Z.autoHeight}`]:{height:"auto",[`& .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"}},[`& .${Z["virtualScrollerContent--overflowed"]} .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"},[`& .${Z.columnHeader}, & .${Z.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Z.columnHeader}:focus-within, & .${Z.cell}:focus-within`]:{outline:`solid ${ot(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Z.columnHeader}:focus, & .${Z.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${Z.columnHeaderCheckbox}, & .${Z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--sorted"]} .${Z.iconButtonContainer}, & .${Z["columnHeader--filtered"]} .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}) .${Z.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortIcon}`]:{opacity:.5},[`& .${Z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--filledGroup"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z.sortIcon}, & .${Z.filterIcon}`]:{fontSize:"inherit"},[`& .${Z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Z["columnHeader--alignCenter"]} .${Z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Z["columnHeader--alignRight"]} .${Z.columnHeaderDraggableContainer}, & .${Z["columnHeader--alignRight"]} .${Z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Z["columnHeader--alignCenter"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Z["columnHeader--alignRight"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Z["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${Z.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${Z["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Z["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${Z["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Z.iconSeparator}`]:{color:"inherit"},[`& .${Z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${Z.columnHeader}:hover`]:{[`& .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${Z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Z.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${Z.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${Z.row}:not(.${Z["row--dynamicHeight"]}) > .${Z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Z.cell}.${Z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Z["row--editing"]} .${Z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${Z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Z.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${Z.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${Z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${Z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${Z.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${Z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Z["columnHeader--dragging"]}, & .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${Z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),pae=["children","className"],hae=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${fe(n)}`]};return Ie(o,Dt,r)},mae=u.forwardRef(function(t,n){const r=Ye(),{children:o,className:i}=t,s=oe(t,pae),a=vt(),c=Ue(a,pr),f=Ue(a,Sv),p=Ue(a,Xse),h=Ue(a,Tx),m=u.useRef(null),v=St(m,n),b=Ue(a,jse),g={density:p,classes:r.classes,autoHeight:r.autoHeight},x=hae(g);a.current.rootElementRef=m;const[C,P]=u.useState(!1);return On(()=>{P(!0)},[]),On(()=>{C&&a.current.unstable_updateGridDimensionsRef()},[a,C]),C?T.jsx(fae,S({ref:v,className:he(i,x.root),role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+f,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),gae=["className"],vae=e=>{const{classes:t}=e;return Ie({root:["footerContainer"]},Dt,t)},yae=re("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?_s(ot(e.palette.divider,1),.88):Is(ot(e.palette.divider,1),.68)}`})),bae=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,gae),s={classes:Ye().classes},a=vae(s);return T.jsx(yae,S({ref:n,className:he(a.root,r)},o))}),wae=["className"],Cae=e=>{const{classes:t}=e;return Ie({root:["overlay"]},Dt,t)},xae=re("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:ot(e.palette.background.default,e.palette.action.disabledOpacity)})),Iv=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,wae),s={classes:Ye().classes},a=Cae(s);return T.jsx(xae,S({ref:n,className:he(a.root,r)},o))}),Sae=["className"],Eae=e=>{const{classes:t}=e;return Ie({root:["iconButtonContainer"]},Dt,t)},Pae=re("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),oA=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Sae),s={classes:Ye().classes},a=Eae(s);return T.jsx(Pae,S({ref:n,className:he(a.root,r)},o))}),kae=e=>{const{classes:t}=e;return Ie({icon:["sortIcon"]},Dt,t)};function Iae(e,t,n,r){let o;const i={};return t==="asc"?o=e.ColumnSortedAscendingIcon:t==="desc"?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?T.jsx(o,S({fontSize:"small",className:n},i)):null}function _ae(e){const{direction:t,index:n,sortingOrder:r}=e,o=vt(),i=Ye(),s=S({},e,{classes:i.classes}),a=kae(s),c=Iae(i.components,t,a.icon,r);if(!c)return null;const f=T.jsx(tr,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return T.jsxs(oA,{children:[n!=null&&T.jsx(hO,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const $ae=u.memo(_ae),Mae=e=>{const{classes:t,open:n}=e;return Ie({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Dt,t)},Tae=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=vt(),a=Ye(),c=S({},e,{classes:a.classes}),f=Mae(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return T.jsx("div",{className:f.root,children:T.jsx(tr,{ref:i,tabIndex:-1,className:f.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:T.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function Rae({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=vt(),f=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?T.jsx(rA,{placement:`bottom-${f.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,S({currentColumn:f,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function Oae(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Lae(e,t){return e.closest(`.${t}`)}function Lx(e){return e.replace(/["\\]/g,"\\$&")}function Aae(e,t){return e.querySelector(`[role="columnheader"][data-field="${Lx(t)}"]`)}function iA(e,t){return e.querySelector(`.${Z.row}[data-id="${Lx(String(t))}"]`)}function Fae(e,{id:t,field:n}){const r=iA(e,t);return r?r.querySelector(`.${Z.cell}[data-field="${Lx(n)}"]`):null}const Nae=["className"],Dae=e=>{const{classes:t}=e;return Ie({root:["columnHeaderTitle"]},Dt,t)},Bae=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),zae=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Nae),s={classes:Ye().classes},a=Dae(s);return T.jsx(Bae,S({ref:n,className:he(a.root,r)},o))});function jae(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Ye(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const f=Oae(s.current);c(f?n:"")}},[s,o,r,n]),T.jsx(i.components.BaseTooltip,S({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsx(zae,{ref:s,children:n})}))}const Hae=["resizable","resizing","height","side"];var Nb;(function(e){e.Left="left",e.Right="right"})(Nb||(Nb={}));const Vae=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${fe(o)}`],icon:["iconSeparator"]};return Ie(i,Dt,r)};function Uae(e){const{height:t,side:n=Nb.Right}=e,r=oe(e,Hae),o=Ye(),i=S({},e,{side:n,classes:o.classes}),s=Vae(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",S({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:T.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const Wae=u.memo(Uae),Gae=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],sA=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:f,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:b,width:g,columnMenuIconButton:x=null,columnMenu:C=null,columnTitleIconButtons:P=null,headerClassName:w,label:E,resizable:k,draggableContainerProps:_,columnHeaderSeparatorProps:I,disableHeaderSeparator:M}=t,R=oe(t,Gae),O=vt(),A=Ye(),V=u.useRef(null),[j,L]=u.useState(o),D=St(V,n);let B="none";return c!=null&&(B=c==="asc"?"ascending":"descending"),u.useEffect(()=>{j||L(o)},[j,o]),u.useLayoutEffect(()=>{const W=O.current.state.columnMenu;if(f&&!W.open){const z=V.current.querySelector('[tabindex="0"]')||V.current;z==null||z.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,f]),T.jsxs("div",S({ref:D,className:he(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":B,"aria-label":v==null?E:void 0},R,{children:[T.jsxs("div",S({className:r.draggableContainer,draggable:m},_,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:T.jsx(jae,{label:E,description:b,columnWidth:g})}),P]}),x]})),!M&&T.jsx(Wae,S({resizable:!A.disableColumnResize&&!!k,resizing:a,height:s,side:h},I)),C]}))}),Kae=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,f=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",f&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ie(p,Dt,n)};function qae(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:f,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:x,extendRowFullWidth:C,disableReorder:P,separatorSide:w}=e,E=vt(),k=Ye(),_=u.useRef(null),I=Pn(),M=Pn(),R=u.useRef(null),[O,A]=u.useState(a),{hasScrollX:V,hasScrollY:j}=(t=E.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},L=u.useMemo(()=>!k.disableColumnReorder&&!P&&!s.disableReorder,[k.disableColumnReorder,P,s.disableReorder]);let D;s.renderHeader&&(D=s.renderHeader(E.current.getColumnHeaderParams(s.field)));const W=h?!(h&&V&&!j)&&!C:k.showColumnRightBorder,F=S({},e,{classes:k.classes,showRightBorder:W}),z=Kae(F),G=u.useCallback(be=>_e=>{_e.currentTarget.contains(_e.target)&&E.current.publishEvent(be,E.current.getColumnHeaderParams(s.field),_e)},[E,s.field]),q=u.useMemo(()=>({onClick:G("columnHeaderClick"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),X=u.useMemo(()=>L?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEnd:G("columnHeaderDragEnd")}:{},[L,G]),ie=u.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown")}),[G]);u.useEffect(()=>{O||A(a)},[O,a]);const ee=u.useCallback(()=>{A(!1)},[]),se=!k.disableColumnMenu&&!s.disableColumnMenu&&T.jsx(Tae,{column:s,columnMenuId:I,columnMenuButtonId:M,open:O,iconButtonRef:R}),ae=T.jsx(Rae,{columnMenuId:I,columnMenuButtonId:M,field:s.field,open:a,target:R.current,ContentComponent:k.components.ColumnMenu,contentComponentProps:(n=k.componentsProps)==null?void 0:n.columnMenu,onExited:ee}),we=(r=s.sortingOrder)!=null?r:k.sortingOrder,de=T.jsxs(u.Fragment,{children:[!k.disableColumnFilter&&T.jsx(k.components.ColumnHeaderFilterIconButton,S({field:s.field,counter:b},(o=k.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&T.jsx($ae,{direction:m,index:v,sortingOrder:we})]});u.useLayoutEffect(()=>{const be=E.current.state.columnMenu;if(g&&!be.open){const Se=_.current.querySelector('[tabindex="0"]')||_.current;Se==null||Se.focus(),E.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[E,g]);const le=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(i=s.headerName)!=null?i:s.field;return T.jsx(sA,S({ref:_,classes:z,columnMenuOpen:a,colIndex:c,height:f,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:x,separatorSide:w,isDraggable:L,headerComponent:D,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:de,headerClassName:le,label:te,resizable:!k.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:ae,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const Jm=e=>e.preferencePanel;var _l;(function(e){e.filters="filters",e.columns="columns"})(_l||(_l={}));const Yae=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},Dt,t)};function Xae(e){var t;const{counter:n,field:r,onClick:o}=e,i=vt(),s=Ye(),a=S({},e,{classes:s.classes}),c=Yae(a),f=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=Jm(i.current.state);m&&v===_l.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=T.jsx(tr,{onClick:f,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:T.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return T.jsx(s.components.BaseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsxs(oA,{children:[n>1&&T.jsx(hO,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const Qae=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],Jae=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Dt,t)},Zae=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:f}=t,p=oe(t,Qae),h=vt(),m=Ye(),v={classes:m.classes},b=Jae(v),g=u.useRef(null),x=u.useRef(),C=St(g,n),P=h.current.getCellElement(i,o),w=I=>{const M={value:I.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",M,I)};u.useLayoutEffect(()=>{f===0&&P&&(P.tabIndex=-1)},[P,f]),u.useLayoutEffect(()=>{if(c){var I;const M=(I=g.current)==null?void 0:I.querySelector("input");M==null||M.focus()}else x.current&&x.current.stop({})},[c]);const E=u.useCallback(I=>{nA(I.key)&&I.stopPropagation(),up(I.key)&&!I.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,I)},[h,t]);if(a.position==="footer")return null;const k=h.current.isRowSelectable(i),_=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:T.jsx(m.components.BaseCheckbox,S({ref:C,tabIndex:f,checked:s,onChange:w,className:b.root,inputProps:{"aria-label":_},onKeyDown:E,disabled:!k,touchRippleRef:x},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),ece=u.memo(Zae),Ao=e=>e.selection,tce=qe(Ao,e=>e.length),nce=qe(Ao,Rf,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Zm=qe(Ao,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Ou=e=>e.pagination,$d=qe(Ou,e=>e.page),Qd=qe(Ou,e=>e.pageSize);qe(Ou,e=>e.pageCount);const Ax=qe(Ou,va,Ix,Ls,HL,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],f=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=f;){const v=r[h],b=t[v.id].depth;(m<f||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),rce=qe(Ls,Ax,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),lA=qe(Xd,Ax,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),oce=["field","colDef"],ice=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Dt,t)},sce=u.forwardRef(function(t,n){var r;const o=oe(t,oce),[,i]=u.useState(!1),s=vt(),a=Ye(),c={classes:a.classes},f=ice(c),p=Ue(s,YL),h=Ue(s,Ao),m=Ue(s,Xd),v=Ue(s,lA),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]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((R,O)=>(R[O]=!0,R),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),x=u.useMemo(()=>b.filter(M=>g[M]).length,[b,g]),C=x>0&&x<Object.keys(g).length,P=x>0,w=M=>{const R={value:M.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},E=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const M=s.current.getColumnHeaderElement(t.field);E===0&&M&&(M.tabIndex=-1)},[E,s,t.field]);const k=u.useCallback(M=>{M.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!P}),up(M.key)&&!M.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,M)},[s,t,P]),_=u.useCallback(()=>{i(M=>!M)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",_),[s,_]);const I=s.current.getLocaleText(P?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.components.BaseCheckbox,S({ref:n,indeterminate:C,checked:P,onChange:w,className:f.root,inputProps:{"aria-label":I},tabIndex:E,onKeyDown:k},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),lce=e=>{const{onClick:t}=e,n=vt(),r=Ye(),o=u.useCallback(i=>{t(i),n.current.showPreferences(_l.columns)},[n,t]);return r.disableColumnSelector?null:T.jsx(rr,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},ace=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ye(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:T.jsx(rr,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},cce=["hideMenu","currentColumn","open","id","labelledby","className","children"],uce=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,f=oe(t,cce),p=u.useCallback(h=>{tA(h.key)&&h.preventDefault(),Jle(h.key)&&r(h)},[r]);return T.jsx(dv,S({id:i,ref:n,className:he(Z.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},f,{children:c}))}),dce=Si(["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"),aA=(e,t)=>t&&e.length>1?(dce(),[e[0]]):e,X_=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:aA(e,t)})}),fce=e=>e==="desc",pce=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=fce(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}},hce=(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),mce=(e,t)=>{const n=e.map(r=>pce(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)=>hce(n,o,i)).map(o=>o.node.id)},Q_=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Fx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,gce=new Intl.Collator,vce=(e,t)=>{const n=Fx(e,t);return n!==null?n:typeof e=="string"?gce.compare(e.toString(),t.toString()):e-t},cA=(e,t)=>{const n=Fx(e,t);return n!==null?n:Number(e)-Number(t)},uA=(e,t)=>{const n=Fx(e,t);return n!==null?n:e>t?1:e<t?-1:0};function yce(e){return typeof e=="number"}function dA(e){return typeof e=="function"}function bce(){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 im(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Lf=(e,t,n)=>Math.max(t,Math.min(n,e));function Cs(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(!Cs(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(!Cs(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(!Cs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const wce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function fA(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:f,variant:p}=e,h=oe(e,wce),m={color:s,error:a,helperText:c,size:f,variant:p},[v,b]=u.useState(t.value||[]),g=Pn(),x=Ye();u.useEffect(()=>{var P;const w=(P=t.value)!=null?P:[];b(w.map(String))},[t.value]);const C=u.useCallback((P,w)=>{b(w.map(String)),n(S({},t,{value:[...w]}))},[n,t]);return T.jsx(_C,S({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(P,w)=>{const{inputValue:E}=w;return E==null||E===""?[]:[E]},id:g,value:v,onChange:C,renderTags:(P,w)=>P.map((E,k)=>T.jsx(tv,S({variant:"outlined",size:"small",label:E},w({index:k})))),renderInput:P=>{var w;return T.jsx(x.components.BaseTextField,S({},P,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},P.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=x.componentsProps)==null?void 0:w.baseTextField))}},h))}const Cce=e=>{if(!e)return null;const t=new RegExp(im(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},xce=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(im(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Bi},{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:Bi},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${im(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Bi},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${im(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Bi},{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:fA}],$l={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:vce,type:"string",align:"left",filterOperators:xce(),renderEditCell:Ule,getApplyQuickFilterFn:Cce},Nx="actions",Sce=S({},$l,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:dae,getApplyQuickFilterFn:void 0}),Ece=["item","applyValue","apiRef","focusElementRef"];function Pce(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,f=oe(e,Ece),[p,h]=u.useState(i.value||""),m=Ye(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":rr,x=u.useCallback(C=>{const P=C.target.value;h(P),s(S({},i,{value:P}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),T.jsxs(m.components.BaseTextField,S({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:x,select:!0,variant:"standard",SelectProps:S({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},f,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[T.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),T.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),T.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const kce=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>Boolean(n)===t},InputComponent:Pce}];function Ice({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const pA=S({},$l,{type:"boolean",align:"center",headerAlign:"center",renderCell:hle,renderEditCell:yle,sortComparator:cA,valueFormatter:Ice,filterOperators:kce(),getApplyQuickFilterFn:void 0,aggregable:!1}),Ys="__check__",dp=S({},pA,{field:Ys,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>Zm(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(sce,S({},e)),renderCell:e=>T.jsx(ece,S({},e))}),_ce=["item","applyValue","type","apiRef","focusElementRef","InputProps"],$ce=500;function mc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,f=oe(e,_ce),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=Pn(),x=Ye(),C=u.useCallback(P=>{const w=P.target.value;clearTimeout(p.current),m(String(w)),b(!0),p.current=setTimeout(()=>{o(S({},r,{value:w})),b(!1)},$ce)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var P;const w=(P=r.value)!=null?P:"";m(String(w))},[r.value]),T.jsx(x.components.BaseTextField,S({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:C,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:S({},v?{endAdornment:T.jsx(Rx,{})}:{},c,{inputProps:S({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},f,(n=x.componentsProps)==null?void 0:n.baseTextField))}const Mce=/(\d+)-(\d+)-(\d+)/,Tce=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function gc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?Tce:Mce).slice(1).map(Number),f=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),f);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,f)}}const hA=e=>[{value:"is",getApplyFilterFn:t=>gc(t,(n,r)=>n===r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>gc(t,(n,r)=>n!==r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>gc(t,(n,r)=>n>r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>gc(t,(n,r)=>n>=r,e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>gc(t,(n,r)=>n<r,e,!e),InputComponent:mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>gc(t,(n,r)=>n<=r,e),InputComponent:mc,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 Rce({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function Oce({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const Lce=S({},$l,{type:"date",sortComparator:uA,valueFormatter:Rce,filterOperators:hA(),renderEditCell:XL,getApplyQuickFilterFn:void 0}),Ace=S({},$l,{type:"dateTime",sortComparator:uA,valueFormatter:Oce,filterOperators:hA(!0),renderEditCell:XL,getApplyQuickFilterFn:void 0}),Js=e=>e==null?null:Number(e),Fce=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>Js(t)===Js(e),Nce=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Js(t)===e.value,InputComponent:Bi,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Js(t)!==e.value,InputComponent:Bi,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Js(t)>e.value,InputComponent:Bi,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Js(t)>=e.value,InputComponent:Bi,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Js(t)<e.value,InputComponent:Bi,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Js(t)<=e.value,InputComponent:Bi,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:fA,InputComponentProps:{type:"number"}}],Dce=S({},$l,{type:"number",align:"right",headerAlign:"right",sortComparator:cA,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>yce(e)?e.toLocaleString():e||"",filterOperators:Nce(),getApplyQuickFilterFn:Fce}),Bce=["item","applyValue","type","apiRef","focusElementRef"],zce=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:f,children:h},c)});function J_(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,Bce),[m,v]=u.useState((t=s.value)!=null?t:""),b=Pn(),g=Ye(),C=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,P=s.columnField?f.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(P!==null)return typeof P.valueOptions=="function"?P.valueOptions({field:P.field}):P.valueOptions},[P]),E=u.useCallback(k=>{let _=k.target.value;_=Qm(_,w),v(String(_)),a(S({},s,{value:_}))},[a,s,w]);return u.useEffect(()=>{var k;let _;if(w!==void 0){if(_=Qm(s.value,w),_!==s.value){a(S({},s,{value:_}));return}}else _=s.value;_=(k=_)!=null?k:"",v(String(_))},[s,w,a]),T.jsx(g.components.BaseTextField,S({id:b,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:E,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:S({native:C},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:zce(f.current.getColumn(s.columnField),f.current,C?"option":rr)}))}const jce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Hce=(e,t)=>ll(e)===ll(t),Vce=KR();function Uce(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:f="standard"}=e,p=oe(e,jce),h={color:i,error:s,helperText:a,size:c,variant:f},m=Pn(),v=Ye(),b=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>b!=null&&b.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[],[b]),x=u.useMemo(()=>g==null?void 0:g.map(ll),[g]),{valueFormatter:C,field:P}=r.current.getColumn(t.columnField),w=_=>typeof _=="object"?_.label:C&&_!==""?C({value:_,field:P,api:r.current}):_,E=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(I=>{const M=ll(I);return(x==null?void 0:x.findIndex(O=>O===M))||0}).filter(I=>I>=0).map(I=>g[I]):t.value:[],[t.value,g,x]);u.useEffect(()=>{(!Array.isArray(t.value)||E.length!==t.value.length)&&n(S({},t,{value:E.map(ll)}))},[t,E,n]);const k=u.useCallback((_,I)=>{n(S({},t,{value:[...I.map(ll)]}))},[n,t]);return T.jsx(_C,S({multiple:!0,limitTags:1,options:g,isOptionEqualToValue:Hce,filterOptions:Vce,id:m,value:E,onChange:k,renderTags:(_,I)=>_.map((M,R)=>T.jsx(tv,S({variant:"outlined",size:"small",label:w(M)},I({index:R})))),renderInput:_=>{var I;return T.jsx(v.components.BaseTextField,S({},_,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},_.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(I=v.componentsProps)==null?void 0:I.baseTextField))}},p))}const Zs=e=>e==null||typeof e!="object"?e:e.value,Wce=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[Zs(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let f,p;typeof c=="object"?(f=c.value,p=c.label):(f=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(f)||s.push(f.toString()))}),({value:c})=>c!=null?s.includes(Zs(c).toString()):!1},Gce=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>Zs(t)===Zs(e.value),InputComponent:J_},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>Zs(t)!==Zs(e.value),InputComponent:J_},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Zs);return({value:n})=>t.includes(Zs(n))},InputComponent:Uce}],Kce=S({},$l,{type:"singleSelect",renderEditCell:rae,filterOperators:Gce(),getApplyQuickFilterFn:Wce}),eg="__default__",qce=()=>({string:$l,number:Dce,date:Lce,dateTime:Ace,boolean:pA,singleSelect:Kce,[Nx]:Sce,[eg]:$l}),mA=["maxWidth","minWidth","width","flex"],gA=(e={})=>{const t=S({},qce());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=S({},t[n],r):t[n]=S({},t[r.extendType||eg],r)}),t};function Yce({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(f=>{s-=r.all[f].computedWidth,a-=r.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{r.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{r.freeze(f)}):n.forEach(({field:f})=>{r.freeze(f)}),o()}return o(),r.all}const vA=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=S({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let f;c.flex&&c.flex>0?(r+=c.flex,f=0,i.push(c)):f=Lf(c.width,c.minWidth,c.maxWidth),o+=f,c.computedWidth=f}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=Yce({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return S({},e,{lookup:n})},Xce=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.all:[...s,...e.all.filter(p=>!i[p])],c=S({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=S({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,b])=>{m[v]=b===-1?1/0:b}),c[h]=m}return{all:a,lookup:c}},Qce=(e,t)=>!t||!e[t]?e[eg]:e[t],Sc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=sl(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,f,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const E=ka(e.current.state);m={all:s?[]:[...E.all],lookup:S({},E.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((E,k)=>S({},E,{[k]:!1}),{}));const b={};t.forEach(E=>{const{field:k}=E;b[k]=!0,v[k]=!0;let _=m.lookup[k];_==null?(_=S({},Qce(r,E.type),{field:k,hasBeenResized:!1}),m.all.push(k)):s&&m.all.push(k);let I=_.hasBeenResized;mA.forEach(M=>{E[M]!==void 0&&(I=!0,E[M]===-1&&(E[M]=1/0))}),m.lookup[k]=S({},_,{hide:E.hide==null?!1:E.hide},E,{hasBeenResized:I})}),s&&!h&&Object.keys(m.lookup).forEach(E=>{v[E]||delete m.lookup[E]});const g=S({},m.lookup),x=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let C={};if(i){let E=!1;const k=S({},o);h?x.all.forEach(_=>{k[_]=!m.lookup[_].hide}):s&&Object.keys(k).forEach(_=>{x.lookup[_]||(delete k[_],E=!0)}),x.all.forEach(_=>{if(!b[_]&&g[_]===x.lookup[_])return;let I=o[_];I===void 0&&(h?I=!0:I=!!ka(e.current.state).lookup[_]);const M=!x.lookup[_].hide;M!==I&&(E=!0,k[_]=M)}),E||h?C=k:C=o}else C=o;const P=Xce(x,n),w=S({},P,{columnVisibilityModel:C});return vA(w,(a=(c=(f=e.current).getRootDimensions)==null||(p=c.call(f))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},Z_=e=>t=>S({},t,{columns:e});function Db({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,f=t.current.unstable_getCellColSpanInfo(c,e);f&&f.spannedByColSpan&&(i=f.leftVisibleCellIndex)}return i}function Jce({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Db({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Zce=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ye(),i=u.useRef(),c=pr(r).filter(p=>p.disableColumnMenu!==!0).length===1,f=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:T.jsx(rr,{onClick:f,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})},eue=e=>{const{column:t,onClick:n}=e,r=vt(),o=Ue(r,ci),i=u.useMemo(()=>{if(!t)return null;const a=o.find(c=>c.field===t.field);return a==null?void 0:a.sort},[t,o]),s=u.useCallback(a=>{n(a);const c=a.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t,c)},[r,t,n]);return!t||!t.sortable?null:T.jsxs(u.Fragment,{children:[T.jsx(rr,{onClick:s,disabled:i==null,children:r.current.getLocaleText("columnMenuUnsort")}),T.jsx(rr,{onClick:s,"data-value":"asc",disabled:i==="asc",children:r.current.getLocaleText("columnMenuSortAsc")}),T.jsx(rr,{onClick:s,"data-value":"desc",disabled:i==="desc",children:r.current.getLocaleText("columnMenuSortDesc")})]})},tue=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=vt(),s=[T.jsx(eue,{onClick:r,column:o}),T.jsx(ace,{onClick:r,column:o}),T.jsx(Zce,{onClick:r,column:o}),T.jsx(lce,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return T.jsx(uce,S({ref:n},t,{children:a.map((c,f)=>u.cloneElement(c,{key:f,onClick:r,column:o}))}))}),nue=["className"],rue=e=>{const{classes:t}=e;return Ie({root:["panelContent"]},Dt,t)},oue=re("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function yA(e){const{className:t}=e,n=oe(e,nue),o={classes:Ye().classes},i=rue(o);return T.jsx(oue,S({className:he(t,i.root)},n))}const iue=["className"],sue=e=>{const{classes:t}=e;return Ie({root:["panelFooter"]},Dt,t)},lue=re("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function bA(e){const{className:t}=e,n=oe(e,iue),o={classes:Ye().classes},i=sue(o);return T.jsx(lue,S({className:he(t,i.root)},n))}const aue=["className"],cue=e=>{const{classes:t}=e;return Ie({root:["panelHeader"]},Dt,t)},uue=re("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function due(e){const{className:t}=e,n=oe(e,aue),o={classes:Ye().classes},i=cue(o);return T.jsx(uue,S({className:he(t,i.root)},n))}const fue=["className"],pue=e=>{const{classes:t}=e;return Ie({root:["panelWrapper"]},Dt,t)},hue=re("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),mue=()=>!0,wA=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,fue),s={classes:Ye().classes},a=pue(s);return T.jsx(iO,{open:!0,disableEnforceFocus:!0,isEnabled:mue,children:T.jsx(hue,S({ref:n,tabIndex:-1,className:he(r,a.root)},o))})}),gue=!1,vue=e=>{const{classes:t}=e;return Ie({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Dt,t)},yue=re("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})(()=>({padding:"8px 0px 8px 8px"})),bue=re("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${br.root}`]:{marginRight:e.spacing(.5)}})),wue=re(tr)({justifyContent:"flex-end"});function Cue(e){var t,n,r;const o=vt(),i=u.useRef(null),s=Ue(o,Uo),a=Ue(o,sl),c=Ye(),[f,p]=u.useState(""),h={classes:c.classes},m=vue(h),v=C=>{const{name:P}=C.target;o.current.setColumnVisibility(P,a[P]===!1)},b=u.useCallback(C=>o.current.unstable_caches.columns.isUsingColumnVisibilityModel?C?o.current.setColumnVisibilityModel({}):o.current.setColumnVisibilityModel(Object.fromEntries(s.filter(P=>P.hideable!==!1).map(P=>[P.field,!1]))):o.current.updateColumns(s.map(P=>P.hideable!==!1?{field:P.field,hide:!C}:P)),[o,s]),g=u.useCallback(C=>{p(C.target.value)},[]),x=u.useMemo(()=>{if(!f)return s;const C=f.toLowerCase();return s.filter(P=>(P.headerName||P.field).toLowerCase().indexOf(C)>-1)},[s,f]);return u.useEffect(()=>{i.current.focus()},[]),T.jsxs(wA,S({},e,{children:[T.jsx(due,{children:T.jsx(c.components.BaseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:f,onChange:g,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),T.jsx(yA,{children:T.jsx(yue,{className:m.root,children:x.map(C=>{var P;return T.jsxs(bue,{className:m.columnsPanelRow,children:[T.jsx(PO,{control:T.jsx(c.components.BaseSwitch,S({disabled:C.hideable===!1,checked:a[C.field]!==!1,onClick:v,name:C.field,size:"small"},(P=c.componentsProps)==null?void 0:P.baseSwitch)),label:C.headerName||C.field}),!c.disableColumnReorder&&gue&&T.jsx(wue,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(JL,{})})]},C.field)})})}),T.jsxs(bA,{children:[T.jsx(c.components.BaseButton,S({onClick:()=>b(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),T.jsx(c.components.BaseButton,S({onClick:()=>b(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const xue=["children","className","classes"],Sue=Ve("MuiDataGrid",["panel","paper"]),Eue=re(Aa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Pue=re(Zo,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),kue=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=oe(e,xue),s=vt(),a=Sue,[c,f]=u.useState(!1),p=u.useCallback(()=>{s.current.hidePreferences()},[s]),h=u.useCallback(b=>{Ox(b.key)&&s.current.hidePreferences()},[s]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}],[]),v=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return v?T.jsx(Eue,S({ref:t,placement:"bottom-start",className:he(o,a.panel),anchorEl:v,modifiers:m},i,{children:T.jsx(qR,{mouseEvent:"onMouseUp",onClickAway:p,children:T.jsx(Pue,{className:a.paper,elevation:8,onKeyDown:h,children:c&&r})})})):null}),Iue=u.forwardRef(function(t,n){var r,o,i;const s=vt(),a=Ue(s,Uo),c=Ye(),f=Ue(s,Jm),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=f.openedPanelValue)!=null?r:_l.filters);return T.jsx(c.components.Panel,S({ref:n,as:c.components.BasePopper,open:a.length>0&&f.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),_ue=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],$ue=["InputComponentProps"],Mue=e=>{const{classes:t}=e;return Ie({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Dt,t)},Tue=re("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Rue=re(Na,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Oue=re(Na,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Lue=re(Na,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Aue=re(Na,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Fue=re(Na,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Nue=e=>{switch(e){case Tr.And:return"filterPanelOperatorAnd";case Tr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},bd=e=>e.headerName||e.field,e$=new Intl.Collator,Due=u.forwardRef(function(t,n){var r,o,i,s,a,c,f;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:C,focusElementRef:P,linkOperators:w=[Tr.And,Tr.Or],columnsSort:E,deleteIconProps:k={},linkOperatorInputProps:_={},operatorInputProps:I={},columnInputProps:M={},valueInputProps:R={}}=t,O=oe(t,_ue),A=vt(),V=Ue(A,Pv),j=Pn(),L=Pn(),D=Pn(),B=Pn(),W=Ye(),F={classes:W.classes},z=Mue(F),G=u.useRef(null),q=u.useRef(null),X=h&&w.length>0,ie=((r=W.componentsProps)==null?void 0:r.baseFormControl)||{},se=(i=(((o=W.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,ae=se?"option":rr,{InputComponentProps:we}=R,de=oe(R,$ue),le=u.useMemo(()=>{switch(E){case"asc":return V.sort((Ae,Le)=>e$.compare(bd(Ae),bd(Le)));case"desc":return V.sort((Ae,Le)=>-e$.compare(bd(Ae),bd(Le)));default:return V}},[V,E]),te=p.columnField?A.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var Ae;return!p.operatorValue||!te?null:(Ae=te.filterOperators)==null?void 0:Ae.find(Le=>Le.value===p.operatorValue)},[p,te]),_e=u.useCallback(Ae=>{const Le=Ae.target.value,Ze=A.current.getColumn(Le);if(Ze.field===te.field)return;const yt=Ze.filterOperators.find(et=>et.value===p.operatorValue)||Ze.filterOperators[0],tt=!yt.InputComponent||yt.InputComponent!==(be==null?void 0:be.InputComponent);v(S({},p,{columnField:Le,operatorValue:yt.value,value:tt?void 0:p.value}))},[A,v,p,te,be]),Se=u.useCallback(Ae=>{const Le=Ae.target.value,Ze=te==null?void 0:te.filterOperators.find(tt=>tt.value===Le),yt=!(Ze!=null&&Ze.InputComponent)||(Ze==null?void 0:Ze.InputComponent)!==(be==null?void 0:be.InputComponent);v(S({},p,{operatorValue:Le,value:yt?void 0:p.value}))},[v,p,te,be]),Fe=u.useCallback(Ae=>{const Le=Ae.target.value===Tr.And.toString()?Tr.And:Tr.Or;C(Le)},[C]),Re=()=>{W.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(S({},p,{value:void 0})):m(p)};return u.useImperativeHandle(P,()=>({focus:()=>{if(be!=null&&be.InputComponent){var Ae;G==null||(Ae=G.current)==null||Ae.focus()}else q.current.focus()}}),[be]),T.jsxs(Tue,S({ref:n,className:z.root},O,{children:[T.jsx(Rue,S({variant:"standard",as:W.components.BaseFormControl},ie,k,{className:he(z.deleteIcon,ie.className,k.className),children:T.jsx(tr,{"aria-label":A.current.getLocaleText("filterPanelDeleteIconLabel"),title:A.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Re,size:"small",children:T.jsx(W.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),T.jsx(Oue,S({variant:"standard",as:W.components.BaseFormControl},ie,_,{sx:S({display:X?"flex":"none",visibility:g?"visible":"hidden"},ie.sx||{},_.sx||{}),className:he(z.linkOperatorInput,ie.className,_.className),children:T.jsx(W.components.BaseSelect,S({inputProps:{"aria-label":A.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:Fe,disabled:!!x||w.length===1,native:se},(s=W.componentsProps)==null?void 0:s.baseSelect,{children:w.map(Ae=>T.jsx(ae,{value:Ae.toString(),children:A.current.getLocaleText(Nue(Ae))},Ae.toString()))}))})),T.jsxs(Lue,S({variant:"standard",as:W.components.BaseFormControl},ie,M,{className:he(z.columnInput,ie.className,M.className),children:[T.jsx(gb,{htmlFor:j,id:L,children:A.current.getLocaleText("filterPanelColumns")}),T.jsx(W.components.BaseSelect,S({labelId:L,id:j,label:A.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:_e,native:se},(a=W.componentsProps)==null?void 0:a.baseSelect,{children:le.map(Ae=>T.jsx(ae,{value:Ae.field,children:bd(Ae)},Ae.field))}))]})),T.jsxs(Aue,S({variant:"standard",as:W.components.BaseFormControl},ie,I,{className:he(z.operatorInput,ie.className,I.className),children:[T.jsx(gb,{htmlFor:D,id:B,children:A.current.getLocaleText("filterPanelOperators")}),T.jsx(W.components.BaseSelect,S({labelId:B,label:A.current.getLocaleText("filterPanelOperators"),id:D,value:p.operatorValue,onChange:Se,native:se,inputRef:q},(c=W.componentsProps)==null?void 0:c.baseSelect,{children:te==null||(f=te.filterOperators)==null?void 0:f.map(Ae=>T.jsx(ae,{value:Ae.value,children:Ae.label||A.current.getLocaleText(`filterOperator${fe(Ae.value)}`)},Ae.value))}))]})),T.jsx(Fue,S({variant:"standard",as:W.components.BaseFormControl},ie,de,{className:he(z.valueInput,ie.className,de.className),children:be!=null&&be.InputComponent?T.jsx(be.InputComponent,S({apiRef:A,item:p,applyValue:v,focusElementRef:G},be.InputComponentProps,we)):null}))]}))}),Bue=["linkOperators","columnsSort","filterFormProps","children"],zue=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,jr),a=Ue(o,Pv),c=u.useRef(null),{linkOperators:f=[Tr.And,Tr.Or],columnsSort:p,filterFormProps:h}=t,m=oe(t,Bue),v=u.useCallback(E=>{o.current.upsertFilterItem(E)},[o]),b=u.useCallback(E=>{o.current.setFilterLinkOperator(E)},[o]),g=u.useCallback(()=>{const E=a.find(k=>{var _;return(_=k.filterOperators)==null?void 0:_.length});return E?{columnField:E.field,operatorValue:E.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),x=u.useMemo(()=>{if(s.items.length)return s.items;const E=g();return E?[E]:[]},[s.items,g]),C=x.length>1,P=()=>{const E=g();E&&o.current.upsertFilterItems([...x,E])},w=u.useCallback(E=>{const k=x.length===1;o.current.deleteFilterItem(E),k&&o.current.hideFilterPanel()},[o,x.length]);return u.useEffect(()=>{f.length>0&&s.linkOperator&&!f.includes(s.linkOperator)&&b(f[0])},[f,b,s.linkOperator]),u.useEffect(()=>{x.length>0&&c.current.focus()},[x.length]),T.jsxs(wA,S({ref:n},m,{children:[T.jsx(yA,{children:x.map((E,k)=>T.jsx(Due,S({item:E,applyFilterChanges:v,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:k>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:k!==1,applyMultiFilterOperatorChanges:b,focusElementRef:k===x.length-1?c:null,linkOperators:f,columnsSort:p},h),E.id==null?k:E.id))}),!i.disableMultipleColumnsFiltering&&T.jsx(bA,{children:T.jsx(i.components.BaseButton,S({onClick:P,startIcon:T.jsx(QL,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),jue=["hideMenu","options"],Hue=["hideMenu","options"],Vue=e=>{const t=vt(),{hideMenu:n,options:r}=e,o=oe(e,jue);return T.jsx(rr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},Uue=e=>{const t=vt(),{hideMenu:n,options:r}=e,o=oe(e,Hue);return T.jsx(rr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Af=()=>({items:[],linkOperator:Tr.And,quickFilterValues:[],quickFilterLogicOperator:Tr.And}),Wue=["className","rowCount","visibleRowCount"],Gue=e=>{const{classes:t}=e;return Ie({root:["rowCount"]},Dt,t)},Kue=re("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),que=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=oe(t,Wue),a=vt(),f={classes:Ye().classes},p=Gue(f);if(o===0)return null;const h=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(Kue,S({ref:n,className:he(p.root,r)},s,{children:[a.current.getLocaleText("footerTotalRows")," ",h]}))}),Yue=["className","selectedRowCount"],Xue=e=>{const{classes:t}=e;return Ie({root:["selectedRowCount"]},Dt,t)},Que=re("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Jue=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=oe(t,Yue),s=vt(),c={classes:Ye().classes},f=Xue(c),p=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(Que,S({ref:n,className:he(f.root,r)},i,{children:p}))}),Zue=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,Dse),a=Ue(o,tce),c=Ue(o,UL),f=!i.hideFooterSelectedRowCount&&a>0?T.jsx(Jue,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(que,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&T.jsx(i.components.Pagination,S({},(r=i.componentsProps)==null?void 0:r.pagination));return T.jsxs(bae,S({ref:n},t,{children:[f,p,h]}))}),ede=u.forwardRef(function(t,n){var r,o;const i=Ye();return T.jsxs("div",S({ref:n},t,{children:[T.jsx(i.components.PreferencesPanel,S({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&T.jsx(i.components.Toolbar,S({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),tde=u.forwardRef(function(t,n){return T.jsx(Iv,S({ref:n},t,{children:T.jsx(ep,{})}))}),nde=u.forwardRef(function(t,n){const o=vt().current.getLocaleText("noRowsLabel");return T.jsx(Iv,S({ref:n},t,{children:o}))}),rde=re(Vte)(({theme:e})=>({[`& .${pa.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${pa.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),ode=u.forwardRef(function(t,n){var r;const o=vt(),i=Ye(),s=Ue(o,Ou),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),f=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return T.jsx(rde,S({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),_v=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Ax(e),n=rce(e)):(n=Ls(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ha=(e,t)=>{const n=_v(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Dx="__detail_panel_toggle__",ide=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],sde=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Ie({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Dt,s)},lde=({width:e})=>{if(!e)return null;const t={width:e};return T.jsx("div",{className:"MuiDataGrid-cell",style:t})};function ade(e){var t;const{selected:n,rowId:r,row:o,index:i,style:s,rowHeight:a,className:c,visibleColumns:f,renderedColumns:p,containerWidth:h,firstColumnToRender:m,cellFocus:v,cellTabIndex:b,editRowsState:g,isLastVisible:x=!1,onClick:C,onDoubleClick:P,onMouseEnter:w,onMouseLeave:E}=e,k=oe(e,ide),_=vt(),I=u.useRef(null),M=Ye(),R=Ha(_,M),O=Ue(_,Ev),A=Ue(_,ci),V=Ue(_,Ix),j=Ue(_,Tx),L=i+j+2,{hasScrollX:D,hasScrollY:B}=(t=_.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},W={selected:n,isLastVisible:x,classes:M.classes,editing:_.current.getRowMode(r)===Qt.Edit,editable:M.editMode===xr.Row,rowHeight:a},F=sde(W);u.useLayoutEffect(()=>{a==="auto"&&I.current&&typeof ResizeObserver=="undefined"&&_.current.unstable_storeRowHeightMeasurement(r,I.current.clientHeight)},[_,a,r]),u.useLayoutEffect(()=>{if(R.range){const _e=_.current.getRowIndexRelativeToVisibleRows(r);_e!=null&&_.current.unstable_setLastMeasuredRowIndex(_e)}const le=I.current;if(!le||a!=="auto"||typeof ResizeObserver=="undefined")return;const be=new ResizeObserver(_e=>{const[Se]=_e,Fe=Se.borderBoxSize&&Se.borderBoxSize.length>0?Se.borderBoxSize[0].blockSize:Se.contentRect.height;_.current.unstable_storeRowHeightMeasurement(r,Fe)});return be.observe(le),()=>be.disconnect()},[_,R.range,i,a,r]);const z=u.useCallback((le,te)=>be=>{be.target.nodeType===1&&!be.currentTarget.contains(be.target)||_.current.getRow(r)&&(_.current.publishEvent(le,_.current.getRowParams(r),be),te&&te(be))},[_,r]),G=u.useCallback(le=>{const te=Lae(le.target,Z.cell),be=te==null?void 0:te.getAttribute("data-field");be&&(be===dp.field||be===Dx||be==="__reorder__"||_.current.getCellMode(r,be)===Ot.Edit||_.current.getColumn(be).type===Nx)||z("rowClick",C)(le)},[_,C,z,r]),q=S({},s,{maxHeight:a==="auto"?"none":a,minHeight:a}),X=_.current.unstable_getRowInternalSizes(r);if(X!=null&&X.spacingTop){const le=M.rowSpacingType==="border"?"borderTopWidth":"marginTop";q[le]=X.spacingTop}if(X!=null&&X.spacingBottom){const le=M.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";q[le]=X.spacingBottom}let ie=null;if(typeof M.getRowClassName=="function"){const le=i-R.range.firstRowIndex,te=S({},_.current.getRowParams(r),{isFirstVisible:le===0,isLastVisible:le===R.rows.length-1,indexRelativeToCurrentPage:le});ie=M.getRowClassName(te)}const ee=[];for(let le=0;le<p.length;le+=1){const te=p[le],be=m+le,_e=be===f.length-1,Fe=_e?!(_e&&D&&!B)&&M.disableExtendRowFullWidth:M.showCellRightBorder,Re=_.current.getCellParams(r,te.field),Ae=[],Le=M.disableColumnReorder&&te.disableReorder||!M.rowReordering&&!!A.length&&V>1&&Object.keys(g).length>0;te.cellClassName&&Ae.push(he(typeof te.cellClassName=="function"?te.cellClassName(Re):te.cellClassName));const Ze=g[r]?g[r][te.field]:null;let yt=null;if(Ze==null&&te.renderCell){var se;yt=te.renderCell(S({},Re,{api:_.current})),Ae.push(he(Z["cell--withRenderer"],(se=M.classes)==null?void 0:se["cell--withRenderer"]))}if(Ze!=null&&te.renderEditCell){var ae;let mt=o;_.current.unstable_getRowWithUpdatedValues&&(mt=_.current.unstable_getRowWithUpdatedValues(r,te.field));const at=S({},Re,{row:mt},Ze,{api:_.current});yt=te.renderEditCell(at),Ae.push(he(Z["cell--editing"],(ae=M.classes)==null?void 0:ae["cell--editing"]))}M.getCellClassName&&Ae.push(M.getCellClassName(Re));const tt=v!==null&&v.id===r&&v.field===te.field,et=b!==null&&b.id===r&&b.field===te.field&&Re.cellMode==="view"?0:-1,Pt=_.current.unstable_getCellColSpanInfo(r,be);if(Pt&&!Pt.spannedByColSpan){var we;const{colSpan:mt,width:at}=Pt.cellProps;ee.push(T.jsx(M.components.Cell,S({value:Re.value,field:te.field,width:at,rowId:r,height:a,showRightBorder:Fe,formattedValue:Re.formattedValue,align:te.align||"left",cellMode:Re.cellMode,colIndex:be,isEditable:Re.isEditable,hasFocus:tt,tabIndex:et,className:he(Ae),colSpan:mt,disableDragEvents:Le},(we=M.componentsProps)==null?void 0:we.cell,{children:yt}),te.field))}}const de=h-O;return T.jsxs("div",S({ref:I,"data-id":r,"data-rowindex":i,role:"row",className:he(ie,F.root,c),"aria-rowindex":L,"aria-selected":n,style:q,onClick:G,onDoubleClick:z("rowDoubleClick",P),onMouseEnter:z("rowMouseEnter",w),onMouseLeave:z("rowMouseLeave",E)},k,{children:[ee,de>0&&T.jsx(lde,{width:de})]}))}const t$=1e3;class cde{constructor(t=t$){this.timeouts=new Map,this.cleanupTimeout=t$,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 ude{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var $a;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})($a||($a={}));class dde{}function fde(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new ude:new cde);const[a]=u.useState(new dde),c=u.useRef(null),f=u.useRef();f.current=i;const p=u.useRef(null);if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,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!f.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,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 pde={registry:null},Ne=fde(pde),hde={isFirst:!0};function Ft(e,t,n){Ne(e,t,n,hde)}const n$=1,mde=1.5,gde=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Ie(r,Dt,n)},vde=re("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Z["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Z["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Z["scrollArea--left"]}`]:{left:0},[`&.${Z["scrollArea--right"]}`]:{right:0}}));function yde(e){const{scrollDirection:t}=e,n=u.useRef(null),r=vt(),o=u.useRef(),[i,s]=u.useState(!1),a=Ue(r,WL),c=u.useRef({left:0,top:0}),f=Ye(),p=S({},e,{classes:f.classes}),h=gde(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let x;if(t==="left")x=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")x=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");x=(x-n$)*mde+n$,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+x,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const b=u.useCallback(()=>{s(g=>!g)},[]);return Ne(r,"rowsScroll",m),Ne(r,"columnHeaderDragStart",b),Ne(r,"columnHeaderDragEnd",b),i?T.jsx(vde,{ref:n,className:he(h.root),onDragOver:v,style:{height:a}}):null}const r$=u.memo(yde),bde=({apiRef:e,props:t,children:n})=>T.jsx(NL.Provider,{value:t,children:T.jsx(FL.Provider,{value:e,children:n})}),wde=bce()&&window.localStorage.getItem("DEBUG")!=null,Md=()=>{},Cde={debug:Md,info:Md,warn:Md,error:Md},o$=["debug","info","warn","error"];function i$(e,t,n=console){const r=o$.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return o$.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[f,...p]=c;n[s](`MUI: ${e} - ${f}`,...p)}:i[s]=Md,i),{})}const xde=(e,t)=>{e.current.getLogger=u.useCallback(n=>wde?i$(n,"debug",t.logger):t.logLevel?i$(n,t.logLevel.toString(),t.logger):Cde,[t.logLevel,t.logger])};function qt(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Sde{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const Ede=e=>e.isPropagationStopped!==void 0;let s$=0;function Pde(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new Sde,unstable_caches:{},state:{},instanceId:s$},s$+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,f={}]=s;if(f.defaultMuiPrevented=!1,Ede(f)&&f.isPropagationStopped())return;const p=t.signature===$a.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,f,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const f=n.current;return()=>{f.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return qt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{s.publishEvent("unmount")}},[n]),n}function kde(e,t){const n=u.useCallback(r=>{e.current.setState(o=>S({},o,{error:r}))},[e]);u.useEffect(()=>{n(t.error)},[n,t.error]),Ne(e,"componentError",n)}const Ide=(e,t)=>{const r={getLocaleText:u.useCallback(o=>{if(t.localeText[o]==null)throw new Error(`Missing translation for key ${o}.`);return t.localeText[o]},[t.localeText])};qt(e,r)};function Ff(e){return Ff=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},Ff(e)}function _de(e,t){if(Ff(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ff(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nf(e){var t=_de(e,"string");return Ff(t)==="symbol"?t:String(t)}const $de=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(f=>{f()})},[]),r=u.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(f)!==p&&(h.processors.set(f,p),n(h)),()=>{t.current[c].processors.set(f,null)}},[n]),o=u.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const h=t.current[c].appliers,m=oe(h,[f].map(Nf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const f=t.current[c];n(f)},[n]),s=u.useCallback((...c)=>{const[f,p,h]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);qt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},fp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},or=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);fp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Bx=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);fp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},zx=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);fp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},pp="none",l$={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},Mde=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,f,p)=>{const h=()=>{const b=n.current[f],g=oe(b,[c].map(Nf));n.current[f]=g};n.current[f]||(n.current[f]={});const m=n.current[f],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(l$[f])&&e.current.publishEvent("activeStrategyProcessorChange",f),h},[e]),o=u.useCallback((c,f)=>{const p=e.current.unstable_getActiveStrategy(l$[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(f)},[e]),i=u.useCallback(c=>{var f;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(f=h==null?void 0:h[0])!=null?f:pp},[]),s=u.useCallback((c,f,p)=>{t.current.set(f,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);qt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},Tde=(e,t,n,r,o)=>{const i=Gn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),f=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(dA(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,f,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",m)}},[t,f,n,s,i,o,e])},Rde=["stateId"],Ode=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{const{stateId:p}=f,h=oe(f,Rde);n.current[p]=S({},h,{stateId:p})},[]),i=u.useCallback((f,p)=>{let h;if(dA(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const g=n.current[b],x=g.stateSelector(e.current.state,e.current.instanceId),C=g.stateSelector(h,e.current.instanceId);C!==x&&(v.push({stateId:g.stateId,hasPropChanged:C!==g.propModel}),g.propModel!==void 0&&C!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:b,hasPropChanged:g}=v[0],x=n.current[b],C=x.stateSelector(h,e.current.instanceId);if(x.propOnChange&&g){const P=t.signature===$a.DataGridPro?{api:e.current,reason:p}:{reason:p};x.propOnChange(C,P)}m||e.current.publishEvent(x.changeEvent,C,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((f,p,h)=>e.current.setState(m=>S({},m,{[f]:p(m[f])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);qt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},Lde=(e,t)=>{const n=Pde(e,t);return xde(n,t),kde(n,t),Ode(n,t),$de(n),Mde(n),Ide(n,t),n},so=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function a$(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const Ade=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{a$(i)}):a$(i)},[e]),n=u.useCallback(o=>{var i;const s=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!s||((i=window.getSelection())==null?void 0:i.toString())===""&&e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);Tde(e,e.current.rootElementRef,"keydown",n),qt(e,{unstable_copySelectedRowsToClipboard:t})},CA=e=>e.columnMenu,Fde=e=>S({},e,{columnMenu:{open:!1}}),Nde=e=>{const t=Gn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),S({},f,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),S({},c,{columnMenu:S({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=CA(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);qt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(Z.menuIconButton)||!c.relatedTarget)return;const f=c.relatedTarget.classList.contains(Z.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(f||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);Ne(e,"columnResizeStart",r),Ne(e,"columnHeaderFocus",s),Ne(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ne(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Dde=(e,t,n)=>{var r,o,i,s,a,c,f;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=gA(t.columnTypes),m=Sc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(f=c.columns)==null?void 0:f.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:m})};function Bde(e,t){var n,r;const o=Gn(e,"useGridColumns"),i=u.useMemo(()=>gA(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:sl,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(j=>{o.debug("Updating columns state."),e.current.setState(Z_(j)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",j.all)},[o,e]),f=u.useCallback(j=>Ru(e)[j],[e]),p=u.useCallback(()=>Uo(e),[e]),h=u.useCallback(()=>pr(e),[e]),m=u.useCallback(()=>Use(e),[e]),v=u.useCallback((j,L=!0)=>(L?pr(e):Uo(e)).findIndex(B=>B.field===j),[e]),b=u.useCallback(j=>{const L=v(j);return _a(e)[L]},[e,v]),g=u.useCallback(j=>{sl(e)!==j&&(e.current.setState(D=>S({},D,{columns:Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),x=u.useCallback(j=>{const L=Sc({apiRef:e,columnTypes:i,columnsToUpsert:j,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),C=u.useCallback(j=>e.current.updateColumns([j]),[e]),P=u.useCallback((j,L)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var D;const B=sl(e),W=(D=B[j])!=null?D:!0;if(L!==W){const F=S({},B,{[j]:L});e.current.setColumnVisibilityModel(F)}}else{const B=e.current.getColumn(j),W=S({},B,{hide:!L});e.current.updateColumns([W]);const F={field:j,colDef:W,isVisible:L};e.current.publishEvent("columnVisibilityChange",F)}},[e]),w=u.useCallback((j,L)=>{const D=Ia(e),B=D.findIndex(G=>G===j);if(B===L)return;o.debug(`Moving column ${j} to index ${L}`);const W=[...D],F=W.splice(B,1)[0];W.splice(L,0,F),c(S({},ka(e.current.state),{all:W}));const z={field:j,element:e.current.getColumnHeaderElement(j),colDef:e.current.getColumn(j),targetIndex:L,oldIndex:B};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),E=u.useCallback((j,L)=>{o.debug(`Updating column ${j} width to ${L}`);const D=e.current.getColumn(j),B=S({},D,{width:L});e.current.updateColumns([B]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:B,width:L})},[e,o]);qt(e,{getColumn:f,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:C,updateColumns:x,setColumnVisibilityModel:g,setColumnVisibility:P,setColumnIndex:w,setColumnWidth:E});const _=u.useCallback((j,L)=>{const D={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var B,W,F;const q=sl(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(W=t.initialState)==null||(F=W.columns)==null?void 0:F.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(q).length>0)&&(D.columnVisibilityModel=q)}D.orderedFields=Ia(e);const z=Uo(e),G={};return z.forEach(q=>{if(q.hasBeenResized){const X={};mA.forEach(ie=>{let ee=q[ie];ee===1/0&&(ee=-1),X[ie]=ee}),G[q.field]=X}}),Object.keys(G).length>0&&(D.dimensions=G),S({},j,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((j,L)=>{var D;const B=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(D=L.stateToRestore.columns)==null?void 0:D.columnVisibilityModel:void 0,W=L.stateToRestore.columns;if(B==null&&W==null)return j;const F=Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:W,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(Z_(F)),W!=null&&e.current.publishEvent("columnsChange",F.all),j},[e,i]),M=u.useCallback((j,L)=>{if(L===_l.columns){var D;const B=t.components.ColumnsPanel;return T.jsx(B,S({},(D=t.componentsProps)==null?void 0:D.columnsPanel))}return j},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);or(e,"exportState",_),or(e,"restoreState",I),or(e,"preferencePanel",M);const R=u.useRef(null);Ne(e,"viewportInnerSizeChange",j=>{R.current!==j.width&&(R.current=j.width,c(vA(ka(e.current.state),j.width)))}),Ft(e,"columnVisibilityChange",t.onColumnVisibilityChange);const A=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const j=Sc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(j)},[e,o,c,i]);Bx(e,"hydrateColumns",A);const V=u.useRef(!0);u.useEffect(()=>{if(V.current){V.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const j=Sc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(j)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const zde=e=>e.columnGrouping,xA=qe(zde,e=>e.lookup),jde=["groupId","children"];function Hde(e){return e.groupPath!==void 0}const SA=(e,t,n)=>{if(GL(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
270
|
-
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{SA(i,[...t,r],n)})},EA=e=>{if(!e)return{};const t={};return e.forEach(n=>{SA(n,[],t)}),t},jx=e=>{let t={};return e.forEach(n=>{if(GL(n))return;const{groupId:r,children:o}=n,i=oe(n,jde);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=jx(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)},Vde=(e,t)=>{var n;const r=jx((n=t.columnGroupingModel)!=null?n:[]);return S({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},Ude=(e,t)=>{var n;const r=u.useCallback(a=>{var c,f;return(c=(f=Ru(e)[a])==null?void 0:f.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>xA(e),[e]);qt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const f=jx((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>S({},p,{columnGrouping:S({},p.columnGrouping,{lookup:f})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},X0=.7,Q0=1.3,PA=(e,t,n,r)=>{switch(e){case Of.Compact:return{value:e,headerHeight:Math.floor(t*X0),rowHeight:Math.floor(n*X0),headerGroupingMaxDepth:r,factor:X0};case Of.Comfortable:return{value:e,headerHeight:Math.floor(t*Q0),rowHeight:Math.floor(n*Q0),headerGroupingMaxDepth:r,factor:Q0};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Wde=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=EA(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return S({},e,{density:PA(t.density,t.headerHeight,t.rowHeight,n)})},Gde=(e,t)=>{const n=Ue(e,pr),r=n.length>0?Math.max(...n.map(a=>{var c,f;return(c=(f=a.groupPath)==null?void 0:f.length)!=null?c:0})):0,o=Gn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,f=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=ja(h),v=PA(a,c,f,p);return Cs(m,v)?h:S({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),qt(e,{setDensity:i})};function Kde(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 kA=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
271
|
-
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};Si(["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 qde=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return kA(i.formattedValue,r)});function Yde(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,f)=>`${c}${qde(f,t,r,o).join(o)}\r
|
|
272
|
-
`,"").trim();return i?`${`${t.filter(c=>c.field!==dp.field).map(c=>kA(c.headerName||c.field,o)).join(o)}\r
|
|
273
|
-
`}${s}`.trim():s}const IA=({apiRef:e,options:t})=>{const n=Uo(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:pr(e)).filter(o=>!o.disableExport)},Xde=({apiRef:e})=>{var t,n;const r=Kse(e),o=va(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=sp(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],f=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...f),i.size>0?s.filter(p=>i.has(p)):s},Qde=e=>{const t=Gn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const f=IA({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:Xde)({apiRef:e});return Yde({columns:f,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});Kde(c,"csv",s==null?void 0:s.fileName)},[t,n]);qt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:T.jsx(Vue,{options:a.csvOptions}),componentName:"csvExport"}]},[]);or(e,"exportMenu",i)},Df=e=>e.rowsMeta,Jde=(e,t)=>{const n=Gn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=bn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,b)=>new Promise(g=>{if(!v&&!b){g();return}const x=IA({apiRef:e,options:{fields:v,allColumns:b}}).map(w=>w.field),C=Uo(e),P={};C.forEach(w=>{P[w.field]=x.includes(w.field)}),e.current.setColumnVisibilityModel(P),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return b.id="grid-print-window",b.src=window.location.href,b.style.position="absolute",b.style.width="0px",b.style.height="0px",b.title=v||document.title,b},[]),c=u.useCallback((v,b)=>{var g,x,C;const P=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b);v.onload=null;const w=v.contentDocument||((g=v.contentWindow)==null?void 0:g.document);if(!w)return;const E=cp(e),k=Df(e.current.state),_=e.current.rootElementRef.current,I=_.cloneNode(!0),M=I.querySelector(`.${Z.virtualScroller}`);M.style.height="auto",M.style.width="auto",M.parentElement.style.width="auto",M.parentElement.style.height="auto";const R=I.querySelector(`.${Z.main}`);R.style.overflow="visible";const A=I.querySelector(`.${Z.columnHeaders}`).querySelector(`.${Z.columnHeadersInner}`);A.style.width="100%";let V=((x=_.querySelector(`.${Z.toolbarContainer}`))==null?void 0:x.clientHeight)||0,j=((C=_.querySelector(`.${Z.footerContainer}`))==null?void 0:C.clientHeight)||0;if(P.hideToolbar){var L;(L=I.querySelector(`.${Z.toolbarContainer}`))==null||L.remove(),V=0}if(P.hideFooter){var D;(D=I.querySelector(`.${Z.footerContainer}`))==null||D.remove(),j=0}I.style.height=`${k.currentPageTotalHeight+E+V+j}px`,w.body.innerHTML="",w.body.appendChild(I);const B=typeof P.pageStyle=="function"?P.pageStyle():P.pageStyle;if(typeof B=="string"){const W=w.createElement("style");W.appendChild(w.createTextNode(B)),w.head.appendChild(W)}if(P.bodyClassName&&w.body.classList.add(...P.bodyClassName.split(" ")),P.copyStyles){const W=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let F=0;F<W.length;F+=1){const z=W[F];if(z.tagName==="STYLE"){const G=w.createElement(z.tagName),q=z.sheet;if(q){let X="";for(let ie=0;ie<q.cssRules.length;ie+=1)typeof q.cssRules[ie].cssText=="string"&&(X+=`${q.cssRules[ie].cssText}\r
|
|
274
|
-
`);G.appendChild(w.createTextNode(X)),w.head.appendChild(G)}}else if(z.getAttribute("href")){const G=w.createElement(z.tagName);for(let q=0;q<z.attributes.length;q+=1){const X=z.attributes[q];X&&G.setAttribute(X.nodeName,X.nodeValue||"")}w.head.appendChild(G)}}}v.contentWindow.print()},[e,r]),f=u.useCallback(v=>{var b,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(g=b.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>it(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=sl(e),t.pagination){const g=VL(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization();const b=a(v==null?void 0:v.fileName);r.current.body.appendChild(b),b.onload=()=>c(b,v),b.contentWindow.onafterprint=()=>f(b)}),[t,n,e,a,c,f,s])};qt(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:T.jsx(Uue,{options:b.printOptions}),componentName:"printExport"}]},[]);or(e,"exportMenu",m)},Zde=["rowsBeforePartialUpdates"];function efe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
275
|
-
`))}const _A=(e,t,n)=>{const r=t?t(e):e.id;return efe(r,e,n),r},sm=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o<e.length;o+=1){const i=e[o],s=_A(i,t);r.idRowsLookup[s]=i,r.idToIdLookup[s]=s,r.ids.push(s)}return r},$A=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=oe(o,Zde),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",S({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),f=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return S({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,f)})},MA=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(...MA(e,c.id,n))}return i};function TA(e){var t,n;const r=sp(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}const Bb=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=Ru(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},tfe=Si(["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"),nfe=Si("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),rfe=Si(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),RA=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(tfe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&nfe(),s&&rfe(),s||i?S({},e,{items:o.map(a=>Bb(a,n))}):e.items!==o?S({},e,{items:o}):e},c$=(e,t,n)=>r=>S({},r,{filterModel:RA(e,t,n)}),ofe=(e,t)=>{const{items:n}=e,r=i=>{if(!i.columnField||!i.operatorValue)return null;const s=t.current.getColumn(i.columnField);if(!s)return null;let a;if(s.valueParser){var c;const b=s.valueParser;a=Array.isArray(i.value)?(c=i.value)==null?void 0:c.map(g=>b(g)):b(i.value)}else a=i.value;const f=S({},i,{value:a}),p=s.filterOperators;if(!(p!=null&&p.length))throw new Error(`MUI: No filter operators found for column '${s.field}'.`);const h=p.find(b=>b.value===f.operatorValue);if(!h)throw new Error(`MUI: No filter operator found for column '${s.field}' and operator value '${f.operatorValue}'.`);const m=h.getApplyFilterFn(f,s);return typeof m!="function"?null:{fn:b=>{const g=t.current.getCellParams(b,f.columnField);return m(g)},item:f}},o=n.map(r).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};return(s?o.filter(f=>s(f.item.columnField)):o).forEach(f=>{a[f.item.id]=f.fn(i)}),a}},ife=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=Ia(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(f=>c(f,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},f=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),f.push(h))});const p={};return i.forEach((h,m)=>{const v=f.some(b=>{var g,x;return o[b][m]==null?!1:(g=(x=o[b])[m])==null?void 0:g.call(x,c[b])});p[h]=v}),p}},sfe=(e,t)=>{const n=ofe(e,t),r=ife(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},lfe=(e,t,n)=>{var r,o;const i=e.filter(f=>f!=null),s=t.filter(f=>f!=null),a=(r=n.quickFilterLogicOperator)!=null?r:Af().quickFilterLogicOperator,c=(o=n.linkOperator)!=null?o:Af().linkOperator;if(i.length>0){const f=p=>i.some(h=>h[p.id]);if(c===Tr.And){if(!n.items.every(f))return!1}else if(!n.items.some(f))return!1}if(s.length>0&&n.quickFilterValues!=null){const f=p=>s.some(h=>h[p]);if(a===Tr.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},afe=(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:Af();return S({},e,{filter:{filterModel:RA(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},cfe=(e,t)=>{var n,r,o;const i=Gn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:jr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(M=>{const R=jr(M,e.current.instanceId),O=t.filterMode===Kc.client?sfe(R,e):null,A=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:O,filterModel:R!=null?R:Af()});return S({},M,{filter:S({},M.filter,A)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback(M=>{const R=jr(e),O=[...R.items],A=O.findIndex(V=>V.id===M.id);A===-1?O.push(M):O[A]=M,e.current.setFilterModel(S({},R,{items:O}),"upsertFilterItem")},[e]),f=u.useCallback(M=>{const R=jr(e),O=[...R.items];M.forEach(A=>{const V=M.findIndex(j=>j.id===A.id);V===-1?O.push(A):O[V]=A}),e.current.setFilterModel(S({},R,{items:M}),"upsertFilterItems")},[e]),p=u.useCallback(M=>{const R=jr(e),O=R.items.filter(A=>A.id!==M.id);O.length!==R.items.length&&e.current.setFilterModel(S({},R,{items:O}),"deleteFilterItem")},[e]),h=u.useCallback(M=>{if(i.debug("Displaying filter panel"),M){const R=jr(e),O=R.items.filter(j=>{var L;if(j.value!==void 0)return!0;const B=(L=e.current.getColumn(j.columnField).filterOperators)==null?void 0:L.find(F=>F.value===j.operatorValue);return!(typeof(B==null?void 0:B.requiresFilterValue)=="undefined"?!0:B==null?void 0:B.requiresFilterValue)});let A;O.find(j=>j.columnField===M)?A=O:t.disableMultipleColumnsFiltering?A=[Bb({columnField:M},e)]:A=[...O,Bb({columnField:M},e)],e.current.setFilterModel(S({},R,{items:A}))}e.current.showPreferences(_l.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback(M=>{const R=jr(e);R.linkOperator!==M&&e.current.setFilterModel(S({},R,{linkOperator:M}),"changeLogicOperator")},[e]),b=u.useCallback(M=>{const R=jr(e);Cs(R.quickFilterValues,M)||e.current.setFilterModel(S({},R,{quickFilterValues:[...M]}))},[e]),g=u.useCallback((M,R)=>{jr(e)!==M&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",c$(M,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),x=u.useCallback(()=>{const M=Ls(e);return new Map(M.map(R=>[R.id,R.model]))},[e]);qt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:f,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:x,setQuickFilterValues:b});const P=u.useCallback((M,R)=>{var O,A;const V=jr(e);return!R.exportOnlyDirtyModels||t.filterModel!=null||((O=t.initialState)==null||(A=O.filter)==null?void 0:A.filterModel)!=null||!Cs(V,Af())?S({},M,{filter:{filterModel:V}}):M},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback((M,R)=>{var O;const A=(O=R.stateToRestore.filter)==null?void 0:O.filterModel;return A==null?M:(e.current.unstable_updateControlState("filter",c$(A,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},M,{callbacks:[...M.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),E=u.useCallback((M,R)=>{if(R===_l.filters){var O;const A=t.components.FilterPanel;return T.jsx(A,S({},(O=t.componentsProps)==null?void 0:O.filterPanel))}return M},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),k=u.useCallback(M=>{if(t.filterMode===Kc.client&&M.isRowMatchingFilters){const R=Gc(e),O={};for(let A=0;A<R.length;A+=1){const V=R[A];let j;if(typeof V=="string"&&V.startsWith("auto-generated-group-footer"))j=!0;else{const{passingFilterItems:L,passingQuickFilterValues:D}=M.isRowMatchingFilters(V);j=lfe([L],[D],M.filterModel)}O[V]=j}return{filteredRowsLookup:O,visibleRowsLookup:O,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);or(e,"exportState",P),or(e,"restoreState",w),or(e,"preferencePanel",E),zx(e,pp,"filtering",k);const _=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const M=jr(e),R=Vse(e),O=M.items.filter(A=>A.columnField&&R[A.columnField]);O.length<M.items.length&&e.current.setFilterModel(S({},M,{items:O}))},[e,i]),I=u.useCallback(M=>{M==="filtering"&&e.current.unstable_applyFilters()},[e]);Ne(e,"rowsSet",s),Ne(e,"rowExpansionChange",e.current.unstable_applyFilters),Ne(e,"columnsChange",_),Ne(e,"activeStrategyProcessorChange",I),fp(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},ufe=e=>S({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),dfe=(e,t)=>{const n=Gn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((g,x)=>{const C=pi(e);(C==null?void 0:C.id)===g&&(C==null?void 0:C.field)===x||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${g} and field=${x}`),S({},P,{tabIndex:{cell:{id:g,field:x},columnHeader:null},focus:{cell:{id:g,field:x},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(g)&&(C&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field)),e.current.publishEvent("cellFocusIn",e.current.getCellParams(g,x))))},[e,n]),i=u.useCallback((g,x={})=>{const C=pi(e);C&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field),x),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${g}`),S({},P,{tabIndex:{columnHeader:{field:g},cell:null},focus:{columnHeader:{field:g},cell:null}}))),e.current.forceUpdate()},[e,n]),s=u.useCallback((g,x,C)=>{let P=e.current.getColumnIndex(x),w=e.current.getRowIndexRelativeToVisibleRows(g);const E=pr(e);C==="right"?P+=1:C==="left"?P-=1:w+=1;const k=_v(e,{pagination:t.pagination,paginationMode:t.paginationMode});P>=E.length?(w+=1,w<k.rows.length&&(P=0)):P<0&&(w-=1,w>=0&&(P=E.length-1)),w=Lf(w,0,k.rows.length-1),P=Lf(P,0,E.length-1);const _=k.rows[w],I=E[P];e.current.setCellFocus(_.id,I.field)},[e,t.pagination,t.paginationMode]),a=u.useCallback(({id:g,field:x})=>{e.current.setCellFocus(g,x)},[e]),c=u.useCallback((g,x)=>{x.key==="Enter"||x.key==="Tab"||up(x.key)||e.current.setCellFocus(g.id,g.field)},[e]),f=u.useCallback(({field:g},x)=>{x.target===x.currentTarget&&e.current.setColumnHeaderFocus(g,x)},[e]),p=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(g=>S({},g,{focus:{cell:null,columnHeader:null}}))},[n,e]),h=u.useCallback(g=>{r.current=g},[]),m=u.useCallback(g=>{const x=r.current;r.current=null;const C=pi(e);if(!C){x&&e.current.setCellFocus(x.id,x.field);return}if((x==null?void 0:x.id)===C.id&&(x==null?void 0:x.field)===C.field)return;const P=e.current.getCellElement(C.id,C.field);P!=null&&P.contains(g.target)||e.current.getRow(C.id)&&(x?e.current.setCellFocus(x.id,x.field):(e.current.setState(w=>S({},w,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),e.current.publishEvent("cellFocusOut",e.current.getCellParams(C.id,C.field),g)))},[e]),v=u.useCallback(g=>{if(g.cellMode==="view")return;const x=pi(e);((x==null?void 0:x.id)!==g.id||(x==null?void 0:x.field)!==g.field)&&e.current.setCellFocus(g.id,g.field)},[e]),b=u.useCallback(()=>{const g=pi(e);g&&!e.current.getRow(g.id)&&e.current.setState(x=>S({},x,{focus:{cell:null,columnHeader:null}}))},[e]);qt(e,{setCellFocus:o,setColumnHeaderFocus:i,unstable_moveFocusToRelativeCell:s}),u.useEffect(()=>{const g=bn(e.current.rootElementRef.current);return g.addEventListener("click",m),()=>{g.removeEventListener("click",m)}},[e,m]),Ne(e,"columnHeaderBlur",p),Ne(e,"cellDoubleClick",a),Ne(e,"cellMouseUp",h),Ne(e,"cellKeyDown",c),Ne(e,"cellModeChange",v),Ne(e,"columnHeaderFocus",f),Ne(e,"rowsSet",b)};function ffe(e,t){const n=sp(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const pfe=(e,t)=>{const n=Gn(e,"useGridKeyboardNavigation"),r=Ha(e,t).rows,o=u.useMemo(()=>ffe(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=Ls(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const x=b.findIndex(P=>P.id===m);n.debug(`Navigating to cell row ${x}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:x});const C=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,C)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const b=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,x=o.findIndex(_=>_.id===h.id),C=0,P=o.length-1,w=0,E=pr(e).length-1;let k=!0;switch(m.key){case"ArrowDown":case"Enter":{x<P&&i(g,a(x+1));break}case"ArrowUp":{x>C?i(g,a(x-1)):s(g,m);break}case"ArrowRight":{g<E&&i(g+1,a(x),"right");break}case"ArrowLeft":{g>w&&i(g-1,a(x));break}case"Tab":{m.shiftKey&&g>w?i(g-1,a(x),"left"):!m.shiftKey&&g<E&&i(g+1,a(x),"right");break}case" ":{if(h.field===Dx)break;const I=h.colDef;if(I&&I.type==="treeDataGroup")break;!m.shiftKey&&x<P&&i(g,a(Math.min(x+b,P)));break}case"PageDown":{x<P&&i(g,a(Math.min(x+b,P)));break}case"PageUp":{const _=Math.max(x-b,C);_!==x&&_>=C?i(g,a(_)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(w,a(C)):i(w,a(x));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(E,a(P)):i(E,a(x));break}default:k=!1}k&&m.preventDefault()},[e,o,i,s,a]),f=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${Z.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==dp.field||!e.current.getRootDimensions())return;const x=e.current.unstable_getViewportPageSize(),C=h.field?e.current.getColumnIndex(h.field):0,P=0,w=o.length-1,E=0,k=pr(e).length-1;let _=!0;switch(m.key){case"ArrowDown":{i(C,a(P));break}case"ArrowRight":{C<k&&s(C+1,m);break}case"ArrowLeft":{C>E&&s(C-1,m);break}case"PageDown":{w!==null&&i(C,a(Math.min(P+x,w)));break}case"Home":{s(E,m);break}case"End":{s(k,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:_=!1}_&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==Ot.Edit&&up(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);Ne(e,"cellNavigationKeyDown",c),Ne(e,"columnHeaderKeyDown",f),Ne(e,"cellKeyDown",p)},OA=e=>e?0:100,u$=e=>t=>S({},t,{pagination:S({},t.pagination,{pageSize:e})}),hfe=(e,t)=>{var n,r;const o=Gn(e,"useGridPageSize"),i=Ue(e,ap);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:Qd,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==Qd(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(u$(h)),e.current.forceUpdate())},[e,o])};qt(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=Qd(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==OA(t.autoPageSize)?S({},h,{pagination:S({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),f=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(u$(b)),h},[e]);or(e,"exportState",c),or(e,"restoreState",f);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=TA(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);Ne(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},zb=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,jb=e=>e.pageCount?S({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,d$=e=>t=>S({},t,{pagination:jb(S({},t.pagination,{page:e}))});Si(["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 mfe=(e,t)=>{var n,r;const o=Gn(e,"useGridPage"),i=Ue(e,UL);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:$d,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(d$(m)),e.current.forceUpdate()},[e,o])};qt(e,a);const c=u.useCallback((m,v)=>{var b,g;const x=$d(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||x!==0?S({},m,{pagination:S({},m.pagination,{page:x})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),f=u.useCallback((m,v)=>{var b,g;const x=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:$d(e);return e.current.setState(d$(x)),m},[e]);or(e,"exportState",c),or(e,"restoreState",f);const p=m=>{e.current.setState(v=>{const b=zb(v.pagination.rowCount,m);return S({},v,{pagination:jb(S({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:$d(e)*Qd(e)});Ne(e,"pageSizeChange",p),Ne(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,b=zb(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return S({},m,{pagination:jb(S({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},gfe=(e,t)=>{var n,r,o,i,s,a,c,f;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=OA(t.autoPageSize),S({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:zb((c=t.rowCount)!=null?c:0,p),rowCount:(f=t.rowCount)!=null?f:0}})},vfe=(e,t)=>{hfe(e,t),mfe(e,t)},yfe=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},bfe=(e,t)=>{var n;const r=Gn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=Jm(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>S({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),f=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>S({},v,{preferencePanel:S({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);qt(e,{showPreferences:f,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=Jm(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?S({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const b=v.stateToRestore.preferencePanel;return b!=null&&e.current.setState(g=>S({},g,{preferencePanel:b})),m},[e]);or(e,"exportState",p),or(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},Fn=e=>e.editRows;function f$(e){return typeof e.then=="function"}const wfe=(e,t)=>{var n;const r=Gn(e,"useGridEditRows"),o=w=>(...E)=>{t.editMode===xr.Cell&&w(...E)},i=u.useCallback((w,E,k)=>{e.current.getCellMode(w,E)!==k&&(r.debug(`Switching cell id: ${w} field: ${E} to mode: ${k}`),e.current.setState(_=>{const I=S({},_.editRows);return I[w]=S({},I[w]),k===Ot.Edit?I[w][E]={value:e.current.getCellValue(w,E)}:(delete I[w][E],Object.keys(I[w]).length||delete I[w]),S({},_,{editRows:I})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,E)))},[e,r]),s=u.useCallback((w,E)=>{const k=Fn(e.current.state);return k[w]&&k[w][E]?Ot.Edit:Ot.View},[e]),a=u.useCallback((w,E={})=>{var k;const{id:_,field:I}=w;e.current.unstable_runPendingEditCellValueMutation(_,I);const M=e.current.getEditRowsModel();if(!M[_]||!M[_][I])throw new Error(`MUI: Cell at id: ${_} and field: ${I} is not in edit mode.`);const R=M[_][I],O=e.current.getColumn(I),A=e.current.getRow(_);if((k=t.experimentalFeatures)!=null&&k.preventCommitWhileValidating){const L=M[_][I];if(L.isValidating||L.error)return!1}const V=S({},w,{value:R.value});let j=!!R.error;if(!j&&typeof O.preProcessEditCellProps=="function"){const L=O.preProcessEditCellProps({id:_,row:A,props:R});if(f$(L))return L.then(D=>(e.current.unstable_setEditCellProps({id:_,field:I,props:D}),D.error?!1:(e.current.publishEvent("cellEditCommit",V,E),!0)));e.current.unstable_setEditCellProps({id:_,field:I,props:L}),j=!!L.error}return j?!1:(e.current.publishEvent("cellEditCommit",V,E),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const E=e.current.getColumn(w.field),k=e.current.getRow(w.id);return new Promise(_=>{let I={value:w.value};const R=e.current.getEditRowsModel()[w.id][w.field];if(typeof E.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(S({},w,{props:I})),_(!0);return}I=e.current.unstable_setEditCellProps(S({},w,{props:S({},R,{isValidating:!0})})),Promise.resolve(E.preProcessEditCellProps({id:w.id,row:k,props:S({},I,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(O=>{e.current.unstable_setEditCellProps(S({},w,{props:S({},O,{isValidating:!1})})),_(!O.error)})})},[e]);qt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,E)=>it(void 0,null,function*(){if(E.which===229)return;const{id:k,field:_,cellMode:I,isEditable:M}=w;if(!M)return;const R=I===Ot.Edit,O=E.ctrlKey||E.metaKey||E.altKey;if(!R&&Xle(E)&&!O&&!(E.key===" "&&E.shiftKey)&&e.current.publishEvent("cellEditStart",w,E),!R&&Ab(E.key)&&(e.current.setEditCellValue({id:k,field:_,value:""}),e.current.commitCellChange({id:k,field:_},E),e.current.publishEvent("cellEditStop",w,E)),R&&Y_(E.key)){const A={id:k,field:_};if(!(yield e.current.commitCellChange(A,E)))return}R&&Qle(E.key)&&e.current.publishEvent("cellEditStop",w,E)}),[e]),h=u.useCallback((w,E)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,E)},[e]),m=(w,E)=>it(void 0,null,function*(){w.cellMode!==Ot.View&&(yield e.current.commitCellChange(w,E),e.current.publishEvent("cellEditStop",w,E))}),v=jn((w,E)=>{m(w,E)}),b=jn(()=>{const w=pi(e);if(!w)return;const E=e.current.getCellParams(w.id,w.field);m(E,{})}),g=u.useCallback((w,E)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,Ot.Edit),Fb(E)&&kv(E)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),x=u.useCallback((w,E)=>{if(e.current.setCellMode(w.id,w.field,Ot.View),!!Fb(E)){if(Y_(E.key)){e.current.publishEvent("cellNavigationKeyDown",w,E);return}(E.key==="Escape"||Ab(E.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),C=u.useCallback(w=>{const{id:E,field:k}=w,_=e.current.getEditRowsModel(),{value:I}=_[E][k];r.debug(`Setting cell id: ${E} field: ${k} to value: ${I==null?void 0:I.toString()}`);const M=e.current.getRow(E);if(M){const R=e.current.getColumn(w.field);let O=S({},M,{[k]:I});R.valueSetter&&(O=R.valueSetter({row:M,value:I})),e.current.updateRows([O])}},[e,r]),P=u.useCallback(w=>{const E=e.current.getRow(w.id),k=e.current.getColumn(w.field),_=k.preProcessEditCellProps?k.preProcessEditCellProps({id:w.id,row:E,props:w.props}):w.props;f$(_)?_.then(I=>{e.current.unstable_setEditCellProps(S({},w,{props:I}))}):e.current.unstable_setEditCellProps(S({},w,{props:_}))},[e]);Ne(e,"cellKeyDown",o(p)),Ne(e,"cellDoubleClick",o(h)),Ne(e,"cellFocusOut",o(v)),Ne(e,"columnHeaderDragStart",o(b)),Ne(e,"cellEditStart",o(g)),Ne(e,"cellEditStop",o(x)),Ne(e,"cellEditCommit",o(C)),Ne(e,"editCellPropsChange",o(P)),Ft(e,"cellEditCommit",t.onCellEditCommit),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop)},Cfe=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=Ue(e,Uo),a=I=>(...M)=>{t.editMode===xr.Row&&I(...M)},c=u.useCallback((I,M)=>{M!==e.current.getRowMode(I)&&(e.current.setState(R=>{const O=S({},R.editRows);return M===Qt.Edit?(O[I]={},s.forEach(A=>{const V=e.current.getCellParams(I,A.field);V.isEditable&&(O[I][A.field]={value:V.value})})):delete O[I],S({},R,{editRows:O})}),e.current.forceUpdate())},[e,s]),f=u.useCallback(I=>t.editMode===xr.Cell?Qt.View:Fn(e.current.state)[I]?Qt.Edit:Qt.View,[e,t.editMode]),p=u.useCallback((I,M={})=>{var R;if(t.editMode===xr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(I);const A=e.current.getEditRowsModel()[I];if(!A)throw new Error(`MUI: Row at id: ${I} is not being edited.`);if((R=t.experimentalFeatures)!=null&&R.preventCommitWhileValidating&&!Object.keys(A).reduce((D,B)=>D&&!A[B].isValidating&&!A[B].error,!0)||Object.values(A).some(L=>!!L.error))return!1;const j=Object.keys(A).filter(L=>typeof e.current.getColumn(L).preProcessEditCellProps=="function");if(j.length>0){const L=e.current.getRow(I),D=j.map(B=>it(void 0,null,function*(){const W=e.current.getColumn(B),F=yield Promise.resolve(W.preProcessEditCellProps({id:I,row:L,props:A[B]}));return e.current.unstable_setEditCellProps({id:I,field:B,props:F}),F.error}));return Promise.all(D).then(B=>B.some(W=>!!W)?!1:(e.current.publishEvent("rowEditCommit",I,M),!0))}return e.current.publishEvent("rowEditCommit",I,M),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(I=>{const R=e.current.getEditRowsModel()[I.id],O=e.current.getRow(I.id);let A=!0;return new Promise(V=>{Object.keys(R).forEach(j=>it(void 0,null,function*(){const L=e.current.getColumn(j);let D=j===I.field?{value:I.value}:R[j];D=e.current.unstable_setEditCellProps({id:I.id,field:j,props:S({},D,{isValidating:!0})}),L.preProcessEditCellProps&&(D=yield Promise.resolve(L.preProcessEditCellProps({id:I.id,row:O,props:S({},D,{value:j===I.field?e.current.unstable_parseValue(I.id,j,I.value):D.value})}))),D.error&&(A=!1),e.current.unstable_setEditCellProps({id:I.id,field:j,props:S({},D,{isValidating:!1})})})),V(A)})},[e]);qt(e,{setRowMode:c,getRowMode:f,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((I,M)=>it(void 0,null,function*(){if(M.which===229)return;const{cellMode:R,isEditable:O}=I;if(!O)return;const A=R===Ot.Edit,V=e.current.getRowParams(I.id);if(A)if(M.key==="Enter"){var j;if(!(yield e.current.commitRowChange(I.id))&&(j=t.experimentalFeatures)!=null&&j.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",V,M)}else M.key==="Escape"&&e.current.publishEvent("rowEditStop",V,M);else M.key==="Enter"&&e.current.publishEvent("rowEditStart",V,M)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((I,M)=>{if(!I.isEditable)return;const R=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStart",R,M)},[e]),g=u.useCallback(I=>{const M=e.current.getRow(I.id),O=e.current.getEditRowsModel()[I.id];Object.keys(O).forEach(A=>it(void 0,null,function*(){const V=e.current.getColumn(A);if(V.preProcessEditCellProps){const j=A===I.field?I.props:O[A],L=yield Promise.resolve(V.preProcessEditCellProps({id:I.id,row:M,props:j}));e.current.unstable_setEditCellProps({id:I.id,field:A,props:L})}else A===I.field&&e.current.unstable_setEditCellProps(I)}))},[e]),x=u.useCallback(I=>{e.current.setRowMode(I.id,Qt.Edit)},[e]),C=u.useCallback((I,M)=>{e.current.setRowMode(I.id,Qt.View),M.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",I,M)},[e]),P=u.useCallback(I=>{const R=e.current.getEditRowsModel()[I];if(!R)throw new Error(`MUI: Row at id: ${I} is not being edited.`);const O=e.current.getRow(I);if(O){let A=S({},O);Object.keys(R).forEach(V=>{const j=e.current.getColumn(V),L=R[V].value;j.valueSetter?A=j.valueSetter({row:A,value:L}):A[V]=L}),e.current.updateRows([A])}},[e]),w=u.useCallback(I=>{i.current=I},[]),E=(I,M)=>it(void 0,null,function*(){I.cellMode!==Ot.View&&(i.current=null,o.current=setTimeout(()=>it(void 0,null,function*(){var R;if(((R=i.current)==null?void 0:R.id)!==I.id){yield e.current.commitRowChange(I.id,M);const O=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStop",O,M)}})))}),k=jn((I,M)=>{E(I,M)}),_=jn(()=>{const I=pi(e);if(!I)return;const M=e.current.getCellParams(I.id,I.field);E(M,{})});Ne(e,"cellKeyDown",a(v)),Ne(e,"cellDoubleClick",a(b)),Ne(e,"editCellPropsChange",a(g)),Ne(e,"rowEditStart",a(x)),Ne(e,"rowEditStop",a(C)),Ne(e,"rowEditCommit",a(P)),Ne(e,"cellFocusIn",a(w)),Ne(e,"cellFocusOut",a(k)),Ne(e,"columnHeaderDragStart",a(_)),Ft(e,"rowEditCommit",t.onRowEditCommit),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop)},xfe=e=>S({},e,{editRows:{}});function Sfe(e,t){var n;const r=Gn(e,"useGridEditRows");wfe(e,t),Cfe(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:Fn,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,x,C,P)=>{if(!C){P();return}if(o.current[g]||(o.current[g]={}),o.current[g][x]){const[k]=o.current[g][x];clearTimeout(k)}const w=()=>{P();const[k]=o.current[g][x];clearTimeout(k),delete o.current[g][x]},E=setTimeout(()=>{P(),delete o.current[g][x]},C);o.current[g][x]=[E,w]},a=u.useCallback((g,x)=>{if(o.current[g]){if(!x)Object.keys(o.current[g]).forEach(C=>{const[,P]=o.current[g][C];P()});else if(o.current[g][x]){const[,C]=o.current[g][x];C()}}},[]),c=u.useCallback((g,x={})=>{s(g.id,g.field,g.debounceMs,()=>{var C;if((C=t.experimentalFeatures)!=null&&C.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const P={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",P,x)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),f=u.useCallback((g,x,C)=>{const P=e.current.getColumn(x);return P.valueParser?P.valueParser(C,e.current.getCellParams(g,x)):C},[e]),p=u.useCallback(g=>{const{id:x,field:C,props:P}=g;return r.debug(`Setting cell props on id: ${x} field: ${C}`),e.current.setState(E=>{const k=S({},E.editRows);return k[x]=S({},E.editRows[x]),k[x][C]=S({},P,{value:f(x,C,P.value)}),S({},E,{editRows:k})}),e.current.forceUpdate(),Fn(e.current.state)[x][C]},[e,r,f]),h=u.useCallback(g=>{Fn(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(C=>S({},C,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>Fn(e.current.state),[e]),v=u.useCallback((g,x)=>{const C=x.detail>1;g.isEditable&&g.cellMode===Ot.View&&C&&x.preventDefault()},[]);Ne(e,"cellMouseDown",v),Ft(e,"editCellPropsChange",t.onEditCellPropsChange),qt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:f,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const Efe=["id","field"],Pfe=["id","field"],kfe=Si(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Ife=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:f,signature:p}=t,h=L=>(...D)=>{t.editMode===xr.Cell&&L(...D)},m=u.useCallback((L,D)=>{const B=e.current.getCellParams(L,D);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${L} and field=${D} is not editable.`)},[e]),v=u.useCallback((L,D,B)=>{if(e.current.getCellMode(L,D)!==B)throw new Error(`MUI: The cell with id=${L} and field=${D} is not in ${B} mode.`)},[e]),b=u.useCallback((L,D)=>{if(!L.isEditable||L.cellMode===Ot.Edit)return;const B=S({},L,{reason:fs.cellDoubleClick});e.current.publishEvent("cellEditStart",B,D)},[e]),g=u.useCallback((L,D)=>{if(L.cellMode===Ot.View||e.current.getCellMode(L.id,L.field)===Ot.View)return;const B=S({},L,{reason:Oi.cellFocusOut});e.current.publishEvent("cellEditStop",B,D)},[e]),x=u.useCallback((L,D)=>{if(L.cellMode===Ot.Edit){if(D.which===229)return;let B;if(D.key==="Escape"?B=Oi.escapeKeyDown:D.key==="Enter"?B=Oi.enterKeyDown:D.key==="Tab"&&(B=D.shiftKey?Oi.shiftTabKeyDown:Oi.tabKeyDown,D.preventDefault()),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStop",W,D)}}else if(L.isEditable){let B;if(kv(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?B=fs.printableKeyDown:D.key==="Enter"?B=fs.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(B=fs.deleteKeyDown),B){const W=S({},L,{reason:B});e.current.publishEvent("cellEditStart",W,D)}}},[e]),C=u.useCallback(L=>{const{id:D,field:B,reason:W}=L,F={id:D,field:B};(W===fs.deleteKeyDown||W===fs.printableKeyDown)&&(F.deleteValue=!0),e.current.startCellEditMode(F)},[e]),P=u.useCallback(L=>{const{id:D,field:B,reason:W}=L;e.current.unstable_runPendingEditCellValueMutation(D,B);let F;W===Oi.enterKeyDown?F="below":W===Oi.tabKeyDown?F="right":W===Oi.shiftTabKeyDown&&(F="left");let z=W==="escapeKeyDown";Fn(e.current.state)[D][B].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:D,field:B,ignoreModifications:z,cellToFocusAfter:F})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",h(b)),Ne(e,"cellFocusOut",h(g)),Ne(e,"cellKeyDown",h(x)),Ne(e,"cellEditStart",h(C)),Ne(e,"cellEditStop",h(P)),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((L,D)=>{const B=Fn(e.current.state);return B[L]&&B[L][D]?Ot.Edit:Ot.View},[e]),E=u.useCallback(L=>{const D=L!==t.cellModesModel;if(f&&D){const B=p===$a.DataGridPro?{api:e.current}:{};f(L,B)}t.cellModesModel&&D||(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))},[e,f,t.cellModesModel,p]),k=u.useCallback((L,D,B)=>{const W=S({},o.current);if(B!==null)W[L]=S({},W[L],{[D]:S({},B)});else{const F=W[L],z=oe(F,[D].map(Nf));W[L]=z,Object.keys(W[L]).length===0&&delete W[L]}E(W)},[E]),_=u.useCallback((L,D,B)=>{e.current.setState(W=>{const F=S({},W.editRows);return B!==null?F[L]=S({},F[L],{[D]:S({},B)}):(delete F[L][D],Object.keys(F[L]).length===0&&delete F[L]),S({},W,{editRows:F})}),e.current.forceUpdate()},[e]),I=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,Efe);m(D,B),v(D,B,Ot.View),k(D,B,S({mode:Ot.Edit},W))},[m,v,k]),M=u.useCallback(L=>{const{id:D,field:B,deleteValue:W}=L,F={value:W?"":e.current.getCellValue(D,B),error:!1,isProcessingProps:!1};_(D,B,F),e.current.setCellFocus(D,B)},[e,_]),R=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,Pfe);v(D,B,Ot.Edit),k(D,B,S({mode:Ot.View},W))},[v,k]),O=u.useCallback(L=>it(void 0,null,function*(){const{id:D,field:B,ignoreModifications:W,cellToFocusAfter:F="none"}=L;v(D,B,Ot.Edit),e.current.unstable_runPendingEditCellValueMutation(D,B);const z=()=>{_(D,B,null),k(D,B,null),F!=="none"&&e.current.unstable_moveFocusToRelativeCell(D,B,F)};if(W){z();return}const G=Fn(e.current.state),{error:q,isProcessingProps:X}=G[D][B];if(q||X){i.current[D][B].mode=Ot.Edit;return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(D,B);if(s){const ee=se=>{i.current[D][B].mode=Ot.Edit,a?a(se):kfe()};try{const se=e.current.getRow(D);Promise.resolve(s(ie,se)).then(ae=>{e.current.updateRows([ae]),z()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([ie]),z()}),[e,a,s,v,k,_]),A=u.useCallback(L=>it(void 0,null,function*(){var D,B;const{id:W,field:F,value:z}=L;m(W,F),v(W,F,Ot.Edit);const G=e.current.getColumn(F),q=e.current.getRow(W);let X=z;G.valueParser&&(X=G.valueParser(z,e.current.getCellParams(W,F)));let ie=Fn(e.current.state),ee=S({},ie[W][F],{value:X});if(G.preProcessEditCellProps){const se=z!==ie[W][F].value;ee=S({},ee,{isProcessingProps:!0}),_(W,F,ee),ee=yield Promise.resolve(G.preProcessEditCellProps({id:W,row:q,props:ee,hasChanged:se}))}return e.current.getCellMode(W,F)===Ot.View?!1:(ie=Fn(e.current.state),ee=S({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ie[W][F].value:X,_(W,F,ee),ie=Fn(e.current.state),!((D=ie[W])!=null&&(B=D[F])!=null&&B.error))}),[e,m,v,_]),V=u.useCallback((L,D)=>{const B=e.current.getColumn(D),W=Fn(e.current.state),{value:F}=W[L][D],z=e.current.getRow(L);return B.valueSetter?B.valueSetter({value:F,row:z}):S({},z,{[D]:F})},[e]);qt(e,{getCellMode:w,startCellEditMode:I,stopCellEditMode:R,unstable_setCellEditingEditCellValue:A,unstable_getRowWithUpdatedValuesFromCellEditing:V}),u.useEffect(()=>{c&&E(c)},[c,E]),u.useEffect(()=>{const L=zL(e),D=i.current;i.current=n,Object.entries(n).forEach(([B,W])=>{Object.entries(W).forEach(([F,z])=>{var G,q,X;const ie=((G=D[B])==null||(q=G[F])==null?void 0:q.mode)||Ot.View,ee=(X=L[B])!=null?X:B;z.mode===Ot.Edit&&ie===Ot.View?M(S({id:ee,field:F},z)):z.mode===Ot.View&&ie===Ot.Edit&&O(S({id:ee,field:F},z))})})},[e,n,M,O])},_fe=["id"],$fe=["id"],Mfe=Si(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),Tfe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:f,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=F=>(...z)=>{t.editMode===xr.Row&&F(...z)},b=u.useCallback((F,z)=>{const G=e.current.getCellParams(F,z);if(!e.current.isCellEditable(G))throw new Error(`MUI: The cell with id=${F} and field=${z} is not editable.`)},[e]),g=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]),x=u.useCallback((F,z)=>{if(!F.isEditable||e.current.getRowMode(F.id)===Qt.Edit)return;const G=e.current.getRowParams(F.id),q=S({},G,{field:F.field,reason:ps.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),C=u.useCallback(F=>{a.current=F},[]),P=u.useCallback((F,z)=>{F.isEditable&&e.current.getRowMode(F.id)!==Qt.View&&(a.current=null,s.current=setTimeout(()=>{var G;if(s.current=null,((G=a.current)==null?void 0:G.id)!==F.id){if(!e.current.getRow(F.id)||e.current.getRowMode(F.id)===Qt.View)return;const q=e.current.getRowParams(F.id),X=S({},q,{field:F.field,reason:Li.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((F,z)=>{if(F.cellMode===Qt.Edit){if(z.which===229)return;let G;if(z.key==="Escape")G=Li.escapeKeyDown;else if(z.key==="Enter")G=Li.enterKeyDown;else if(z.key==="Tab"){const q=Ia(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(F.id,X)));z.shiftKey?F.field===q[0]&&(G=Li.shiftTabKeyDown):F.field===q[q.length-1]&&(G=Li.tabKeyDown),G&&z.preventDefault()}if(G){const q=e.current.getRowParams(F.id),X=S({},q,{reason:G,field:F.field});e.current.publishEvent("rowEditStop",X,z)}}else if(F.isEditable){let G;if(kv(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?G=ps.printableKeyDown:z.key==="Enter"?G=ps.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(G=ps.deleteKeyDown),G){const q=e.current.getRowParams(F.id),X=S({},q,{field:F.field,reason:G});e.current.publishEvent("rowEditStart",X,z)}}},[e]),E=u.useCallback(F=>{const{id:z,field:G,reason:q}=F,X={id:z,fieldToFocus:G};(q===ps.deleteKeyDown||q===ps.printableKeyDown)&&(X.deleteValue=!!G),e.current.startRowEditMode(X)},[e]),k=u.useCallback(F=>{const{id:z,reason:G,field:q}=F;e.current.unstable_runPendingEditCellValueMutation(z);let X;G===Li.enterKeyDown?X="below":G===Li.tabKeyDown?X="right":G===Li.shiftTabKeyDown&&(X="left");let ie=G==="escapeKeyDown";const ee=Fn(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(ee[z]).some(se=>se.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",v(x)),Ne(e,"cellFocusIn",v(C)),Ne(e,"cellFocusOut",v(P)),Ne(e,"cellKeyDown",v(w)),Ne(e,"rowEditStart",v(E)),Ne(e,"rowEditStop",v(k)),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(F=>{if(t.editMode===xr.Cell)return Qt.View;const z=Fn(e.current.state);return z[F]&&Object.keys(z[F]).length>0?Qt.Edit:Qt.View},[e,t.editMode]),I=u.useCallback(F=>{const z=F!==t.rowModesModel;if(h&&z){const G=m===$a.DataGridPro?{api:e.current}:{};h(F,G)}t.rowModesModel&&z||(r(F),o.current=F,e.current.publishEvent("rowModesModelChange",F))},[e,h,t.rowModesModel,m]),M=u.useCallback((F,z)=>{const G=S({},o.current);z!==null?G[F]=S({},z):delete G[F],I(G)},[I]),R=u.useCallback((F,z)=>{e.current.setState(G=>{const q=S({},G.editRows);return z!==null?q[F]=z:delete q[F],S({},G,{editRows:q})}),e.current.forceUpdate()},[e]),O=u.useCallback((F,z,G)=>{e.current.setState(q=>{const X=S({},q.editRows);return G!==null?X[F]=S({},X[F],{[z]:S({},G)}):(delete X[F][z],Object.keys(X[F]).length===0&&delete X[F]),S({},q,{editRows:X})}),e.current.forceUpdate()},[e]),A=u.useCallback(F=>{const{id:z}=F,G=oe(F,_fe);g(z,Qt.View),M(z,S({mode:Qt.Edit},G))},[g,M]),V=u.useCallback(F=>{const{id:z,fieldToFocus:G,deleteValue:q}=F,ie=Ia(e).reduce((ee,se)=>{if(!e.current.getCellParams(z,se).isEditable)return ee;const we=q&&G===se;return ee[se]={value:we?"":e.current.getCellValue(z,se),error:!1,isProcessingProps:!1},ee},{});R(z,ie),G&&e.current.setCellFocus(z,G)},[e,R]),j=u.useCallback(F=>{const{id:z}=F,G=oe(F,$fe);g(z,Qt.Edit),M(z,S({mode:Qt.View},G))},[g,M]),L=u.useCallback(F=>{const{id:z,ignoreModifications:G,field:q,cellToFocusAfter:X="none"}=F;e.current.unstable_runPendingEditCellValueMutation(z);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),R(z,null),M(z,null)};if(G){ie();return}const ee=Fn(e.current.state),se=e.current.getRow(z);if(Object.values(ee[z]).some(le=>le.isProcessingProps)){i.current[z].mode=Qt.Edit;return}if(Object.values(ee[z]).some(le=>le.error)){i.current[z].mode=Qt.Edit;return}const de=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const le=te=>{i.current[z].mode=Qt.Edit,f?f(te):Mfe()};try{Promise.resolve(c(de,se)).then(te=>{e.current.updateRows([te]),ie()}).catch(le)}catch(te){le(te)}}else e.current.updateRows([de]),ie()},[e,f,c,R,M]),D=u.useCallback(F=>{const{id:z,field:G,value:q}=F;b(z,G);const X=e.current.getColumn(G),ie=e.current.getRow(z);let ee=q;X.valueParser&&(ee=X.valueParser(q,e.current.getCellParams(z,G)));let se=Fn(e.current.state),ae=S({},se[z][G],{value:ee});return X.preProcessEditCellProps||O(z,G,ae),new Promise(we=>{const de=[];if(X.preProcessEditCellProps){const le=ae.value!==se[z][G].value;ae=S({},ae,{isProcessingProps:!0}),O(z,G,ae);const te=se[z],be=oe(te,[G].map(Nf)),_e=Promise.resolve(X.preProcessEditCellProps({id:z,row:ie,props:ae,hasChanged:le,otherFieldsProps:be})).then(Se=>{if(e.current.getRowMode(z)===Qt.View){we(!1);return}se=Fn(e.current.state),Se=S({},Se,{isProcessingProps:!1}),Se.value=X.preProcessEditCellProps?se[z][G].value:ee,O(z,G,Se)});de.push(_e)}Object.entries(se[z]).forEach(([le,te])=>{if(le===G)return;const be=e.current.getColumn(le);if(!be.preProcessEditCellProps)return;te=S({},te,{isProcessingProps:!0}),O(z,le,te),se=Fn(e.current.state);const _e=se[z],Se=oe(_e,[le].map(Nf)),Fe=Promise.resolve(be.preProcessEditCellProps({id:z,row:ie,props:te,hasChanged:!1,otherFieldsProps:Se})).then(Re=>{if(e.current.getRowMode(z)===Qt.View){we(!1);return}Re=S({},Re,{isProcessingProps:!1}),O(z,le,Re)});de.push(Fe)}),Promise.all(de).then(()=>{e.current.getRowMode(z)===Qt.Edit?(se=Fn(e.current.state),we(!se[z][G].error)):we(!1)})})},[e,b,O]),B=u.useCallback(F=>{const z=Fn(e.current.state),G=e.current.getRow(F);let q=S({},G);return Object.entries(z[F]).forEach(([X,ie])=>{const ee=e.current.getColumn(X);ee.valueSetter?q=ee.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);qt(e,{getRowMode:_,startRowEditMode:A,stopRowEditMode:j,unstable_setRowEditingEditCellValue:D,unstable_getRowWithUpdatedValuesFromRowEditing:B}),u.useEffect(()=>{p&&I(p)},[p,I]),u.useEffect(()=>{const F=zL(e),z=i.current;i.current=n,Object.entries(n).forEach(([G,q])=>{var X,ie;const ee=((X=z[G])==null?void 0:X.mode)||Qt.View,se=(ie=F[G])!=null?ie:G;q.mode===Qt.Edit&&ee===Qt.View?V(S({id:se},q)):q.mode===Qt.View&&ee===Qt.Edit&&L(S({id:se},q))})},[e,n,V,L])},Rfe=e=>S({},e,{editRows:{}}),Ofe=(e,t)=>{Ife(e,t),Tfe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(p=>p.rowNode.isAutoGenerated||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!p.rowNode.isPinned,[r]),i=(p,h,m,v)=>{if(!m){v();return}if(n.current[p]||(n.current[p]={}),n.current[p][h]){const[x]=n.current[p][h];clearTimeout(x)}const b=()=>{const[x]=n.current[p][h];clearTimeout(x),v(),delete n.current[p][h]},g=setTimeout(()=>{v(),delete n.current[p][h]},m);n.current[p][h]=[g,b]};u.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([h,m])=>{Object.keys(m).forEach(v=>{const[b]=p[h][v];clearTimeout(b),delete p[h][v]})})}},[]);const s=u.useCallback((p,h)=>{if(n.current[p]){if(!h)Object.keys(n.current[p]).forEach(m=>{const[,v]=n.current[p][m];v()});else if(n.current[p][h]){const[,m]=n.current[p][h];m()}}},[]),a=u.useCallback(p=>{const{id:h,field:m,debounceMs:v}=p;return new Promise(b=>{i(h,m,v,()=>it(void 0,null,function*(){const g=t.editMode===xr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===Ot.Edit){const x=yield g(p);b(x)}}))})},[e,t.editMode]),c=u.useCallback((p,h)=>t.editMode===xr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(p,h):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]);qt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},Lfe=(e,t,n)=>(n.current.unstable_caches.rows=sm({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),S({},e,{rows:$A({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),Afe=(e,t)=>{const n=Gn(e,"useGridRows"),r=Ha(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(R=>{var O;return(O=Rf(e)[R])!=null?O:null},[e]),a=u.useMemo(()=>r.rows.reduce((R,{id:O},A)=>(R[O]=A,R),{}),[r.rows]),c=u.useCallback((R,O)=>{const A=()=>{i.current=null,o.current=Date.now(),e.current.setState(j=>S({},j,{rows:$A({apiRef:e,previousTree:va(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=R,!O){A();return}const V=t.throttleRowsMs-(Date.now()-o.current);if(V>0){i.current=setTimeout(A,V);return}A()},[t.throttleRowsMs,t.rowCount,t.loading,e]),f=u.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`),c(sm({rows:R,getRowId:t.getRowId,loading:t.loading}),!0)},[n,t.getRowId,t.loading,c]),p=u.useCallback(R=>{if(t.signature===$a.DataGrid&&R.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
276
|
-
`));const O=new Map;R.forEach(L=>{const D=_A(L,t.getRowId,"A row was provided without id when calling updateRows():");O.has(D)?O.set(D,S({},O.get(D),L)):O.set(D,L)});const A=[],V=e.current.unstable_caches.rows,j={rowsBeforePartialUpdates:V.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:V.loadingPropBeforePartialUpdates,idRowsLookup:S({},V.idRowsLookup),idToIdLookup:S({},V.idToIdLookup),ids:[...V.ids]};O.forEach((L,D)=>{if(L._action==="delete"){delete j.idRowsLookup[D],delete j.idToIdLookup[D],A.push(D);return}if(!e.current.getRow(D)){j.idRowsLookup[D]=L,j.idToIdLookup[D]=D,j.ids.push(D);return}j.idRowsLookup[D]=S({},e.current.getRow(D),L)}),A.length>0&&(j.ids=j.ids.filter(L=>!A.includes(L))),c(j,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const R=Gc(e),O=Rf(e);return new Map(R.map(A=>[A,O[A]]))},[e]),m=u.useCallback(()=>Sv(e),[e]),v=u.useCallback(()=>Gc(e),[e]),b=u.useCallback(R=>a[R],[a]),g=u.useCallback((R,O)=>{const A=e.current.getRowNode(R);if(!A)throw new Error(`MUI: No row with id #${R} found`);const V=S({},A,{childrenExpanded:O});e.current.setState(j=>S({},j,{rows:S({},j.rows,{tree:S({},j.rows.tree,{[R]:V})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",V)},[e]),x=u.useCallback(R=>{var O;return(O=va(e)[R])!=null?O:null},[e]),C=u.useCallback(({skipAutoGeneratedRows:R=!0,groupId:O,applySorting:A,applyFiltering:V})=>{const j=va(e);let L;if(A){const D=j[O];if(!D)return[];const B=$x(e);L=[];const W=B.findIndex(F=>F===O)+1;for(let F=W;F<B.length&&j[B[F]].depth>D.depth;F+=1){const z=B[F],G=j[z];(!R||!G.isAutoGenerated)&&L.push(z)}}else L=MA(j,O,R);if(V){const D=jL(e);L=L.filter(B=>D[B]!==!1)}return L},[e]),P=u.useCallback((R,O)=>{const A=Gc(e),V=A.findIndex(L=>L===R);if(V===-1||V===O)return;n.debug(`Moving row ${R} to index ${O}`);const j=[...A];j.splice(O,0,j.splice(V,1)[0]),e.current.setState(L=>S({},L,{rows:S({},L.rows,{ids:j})})),e.current.applySorting()},[e,n]),w={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:f,setRowIndex:P,updateRows:p,setRowChildrenExpansion:g,getRowNode:x,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:C},E=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?R=e.current.unstable_caches.rows:R=sm({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(R,!1)},[n,e,t.rows,t.getRowId,t.loading,c]),k=u.useCallback(R=>{R==="rowTreeCreation"&&E()},[E]),_=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==Bse(e)&&E()},[e,E]);Ne(e,"activeStrategyProcessorChange",k),Ne(e,"strategyAvailabilityChange",_);const I=u.useCallback(()=>{e.current.setState(R=>S({},R,{rows:S({},R.rows,e.current.unstable_applyPipeProcessors("hydrateRows",R.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);Bx(e,"hydrateRows",I),qt(e,w),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const M=u.useRef(!0);u.useEffect(()=>{if(M.current){M.current=!1;return}const R=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;if(R){O||(e.current.setState(A=>S({},A,{rows:S({},A.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(sm({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Ffe=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:pp,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},Nfe=e=>{zx(e,pp,"rowTreeCreation",Ffe)};Si(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function Dfe(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),b=e.current.getRowNode(h);if(!v||!b)throw new Error(`No row with id #${h} found`);const g=pi(e),x=Xm(e);return{id:h,field:m,row:v,rowNode:b,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:x&&x.field===m&&x.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),b=e.current.getCellValue(h,m),g=e.current.getRow(h),x=e.current.getRowNode(h);if(!g||!x)throw new Error(`No row with id #${h} found`);const C=pi(e),P=Xm(e),w={id:h,field:m,row:g,rowNode:x,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:C!==null&&C.field===m&&C.id===h,tabIndex:P&&P.field===m&&P.id===h?0:-1,value:b,formattedValue:b};return v.valueFormatter&&(w.formattedValue=v.valueFormatter({id:h,field:w.field,value:w.value,api:e.current})),w.isEditable=v&&e.current.isCellEditable(w),w},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const b=e.current.getRow(h);if(!b)throw new Error(`No row with id #${h} found`);return b[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?Aae(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?iA(e.current.rootElementRef.current,h):null,[e]),f=u.useCallback((h,m)=>e.current.rootElementRef.current?Fae(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);qt(e,{getCellValue:s,getCellParams:i,getCellElement:f,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const LA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Bfe=(e,t)=>{var n;return S({},e,{selection:(n=LA(t.selectionModel))!=null?n:[]})},zfe=(e,t)=>{const n=Gn(e,"useGridSelection"),r=u.useMemo(()=>LA(t.selectionModel,Ao(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Ao,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:f,isRowSelectable:p}=t,h=!s||i,m=Ha(e,t),v=u.useCallback(L=>{var D;let B=L;const W=(D=o.current)!=null?D:L,F=e.current.isRowSelected(L);if(F){const z=Xd(e),G=z.findIndex(X=>X===W),q=z.findIndex(X=>X===B);if(G===q)return;G>q?B=z[q+1]:B=z[q-1]}o.current=L,e.current.selectRowRange({startId:W,endId:B},!F)},[e]),b=u.useCallback(L=>{Ao(e.current.state)!==L&&(n.debug("Setting selection model"),e.current.setState(B=>S({},B,{selection:L})),e.current.forceUpdate())},[e,n]),g=u.useCallback(L=>Ao(e.current.state).includes(L),[e]),x=u.useCallback(L=>{if(p&&!p(e.current.getRowParams(L)))return!1;const D=e.current.getRowNode(L);return!((D==null?void 0:D.position)==="footer"||D!=null&&D.isPinned)},[e,p]),C=u.useCallback(()=>nce(e),[e]),P=u.useCallback((L,D=!0,B=!1)=>{if(e.current.isRowSelectable(L))if(o.current=L,B)n.debug(`Setting selection for row ${L}`),e.current.setSelectionModel(D?[L]:[]);else{n.debug(`Toggling selection for row ${L}`);const F=Ao(e.current.state).filter(G=>G!==L);D&&F.push(L),(F.length<2||h)&&e.current.setSelectionModel(F)}},[e,n,h]),w=u.useCallback((L,D=!0,B=!1)=>{n.debug("Setting selection for several rows");const W=L.filter(G=>e.current.isRowSelectable(G));let F;if(B)F=D?W:[];else{const G=S({},Zm(e));W.forEach(q=>{D?G[q]=q:delete G[q]}),F=Object.values(G)}(F.length<2||h)&&e.current.setSelectionModel(F)},[e,n,h]),E=u.useCallback(({startId:L,endId:D},B=!0,W)=>{if(!e.current.getRow(L)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${L} to row ${D}`);const F=Xd(e),z=F.indexOf(L),G=F.indexOf(D),[q,X]=z>G?[G,z]:[z,G],ie=F.slice(q,X+1);e.current.selectRows(ie,B,W)},[e,n]);qt(e,{selectRow:P,selectRows:w,selectRowRange:E,setSelectionModel:b,getSelectedRows:C,isRowSelected:g,isRowSelectable:x});const _=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const L=Ao(e.current.state),D=Rf(e),B=S({},Zm(e));let W=!1;L.forEach(F=>{D[F]||(delete B[F],W=!0)}),W&&e.current.setSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((L,D)=>{const B=D.metaKey||D.ctrlKey,W=!i&&!B&&!Fb(D),F=!h||W,z=e.current.isRowSelected(L);F?e.current.selectRow(L,W?!0:!z,!0):e.current.selectRow(L,!z,!1)},[e,h,i]),M=u.useCallback((L,D)=>{a||L.field!==dp.field&&L.field!==Dx&&(L.field&&e.current.getColumn(L.field).type===Nx||L.rowNode.isPinned||(D.shiftKey&&(h||i)?v(L.id):I(L.id,D)))},[a,h,i,e,v,I]),R=u.useCallback((L,D)=>{if(h&&D.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[h]),O=u.useCallback((L,D)=>{D.nativeEvent.shiftKey?v(L.id):e.current.selectRow(L.id,L.value)},[e,v]),A=u.useCallback(L=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?lA(e):Xd(e);e.current.selectRows(B,L.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=u.useCallback((L,D)=>{if(e.current.getCellMode(L.id,L.field)!==Ot.Edit&&D.currentTarget.contains(D.target)){if(up(D.key)&&D.shiftKey){const B=pi(e);if(B&&B.id!==L.id){D.preventDefault();const W=e.current.isRowSelected(B.id);if(!h){e.current.selectRow(B.id,!W,!0);return}const F=e.current.getRowIndexRelativeToVisibleRows(B.id),z=e.current.getRowIndexRelativeToVisibleRows(L.id);let G,q;F>z?W?(G=z,q=F-1):(G=z,q=F):W?(G=F+1,q=z):(G=F,q=z);const X=m.rows.slice(G,q+1).map(ie=>ie.id);e.current.selectRows(X,!W);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),I(L.id,D);return}D.key.toLowerCase()==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,I,w,m.rows,h]);Ne(e,"sortedRowsSet",_),Ne(e,"cellClick",M),Ne(e,"rowSelectionCheckboxChange",O),Ne(e,"headerSelectionCheckboxChange",A),Ne(e,"cellMouseDown",R),Ne(e,"cellKeyDown",V),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const j=r!=null;u.useEffect(()=>{if(j)return;const L=Ao(e.current.state);if(x){const D=L.filter(B=>x(B));D.length<L.length&&e.current.setSelectionModel(D)}},[e,x,j]),u.useEffect(()=>{const L=Ao(e.current.state);if(!h&&L.length>1){const{rows:D}=_v(e,{pagination:c,paginationMode:f}),B=D.reduce((F,{id:z})=>(F[z]=!0,F),{}),W=L.find(F=>{let z=!0;return x&&(z=x(F)),z&&B[F]});e.current.setSelectionModel(W!==void 0?[W]:[])}},[e,h,i,s,x,c,f])},jfe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},Hfe=["sortingOrder"],Vfe=u.memo(function(t){const{sortingOrder:n}=t,r=oe(t,Hfe),o=Ye(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?T.jsx(s,S({},r)):null}),Ufe=["message","hasError","errorInfo"],Wfe=u.forwardRef(function(t,n){const{message:r}=t,o=oe(t,Ufe),i=vt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=Ue(i,ap);return T.jsx(Iv,S({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:r||s}))}),Gfe=u.forwardRef(function(t,n){const o=vt().current.getLocaleText("noResultsOverlayLabel");return T.jsx(Iv,S({ref:n},t,{children:o}))}),Kfe={BooleanCellTrueIcon:Fle,BooleanCellFalseIcon:Y0,ColumnMenuIcon:Ole,OpenFilterButtonIcon:Ple,FilterPanelDeleteIcon:Y0,ColumnFilteredIcon:kle,ColumnSelectorIcon:_le,ColumnUnsortedIcon:Vfe,ColumnSortedAscendingIcon:Sle,ColumnSortedDescendingIcon:Ele,ColumnResizeIcon:$le,DensityCompactIcon:Mle,DensityStandardIcon:Tle,DensityComfortableIcon:Rle,ExportIcon:Ale,MoreActionsIcon:Nle,TreeDataCollapseIcon:q_,TreeDataExpandIcon:K_,GroupingCriteriaCollapseIcon:q_,GroupingCriteriaExpandIcon:K_,DetailPanelExpandIcon:QL,DetailPanelCollapseIcon:Lle,RowReorderIcon:JL,QuickFilterIcon:Ile,QuickFilterClearIcon:Y0},p$=S({},Kfe,{BaseCheckbox:bO,BaseTextField:tp,BaseFormControl:Na,BaseSelect:OC,BaseSwitch:UO,BaseButton:ur,BaseTooltip:fv,BasePopper:Aa,Cell:cle,ColumnHeaderFilterIconButton:Xae,ColumnMenu:tue,ErrorOverlay:Wfe,Footer:Zue,Header:ede,Toolbar:null,PreferencesPanel:Iue,LoadingOverlay:tde,NoResultsOverlay:Gfe,NoRowsOverlay:nde,Pagination:ode,FilterPanel:zue,ColumnsPanel:Cue,Panel:kue,Row:ade}),qfe=e=>{const{classes:t}=e;return u.useMemo(()=>Ie({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Dt,t),[t])},Yfe=(e,t)=>{const n={classes:t.classes},r=qfe(n),o=u.useCallback(i=>{const s=S({},dp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[Ys]!=null;return a&&!c?(i.lookup[Ys]=s,i.all=[Ys,...i.all]):!a&&c?(delete i.lookup[Ys],i.all=i.all.filter(f=>f!==Ys)):a&&c&&(i.lookup[Ys]=S({},s,i.lookup[Ys])),i},[e,r,t.checkboxSelection]);or(e,"hydrateColumns",o)},Xfe=(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:aA(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Qfe=(e,t)=>{var n,r;const o=Gn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ci,changeEvent:"sortModelChange"});const i=u.useCallback((I,M)=>{const R=ci(e),O=R.findIndex(V=>V.field===I);let A=[...R];return O>-1?M?A.splice(O,1,M):A.splice(O,1):A=[...R,M],A},[e]),s=u.useCallback((I,M)=>{var R;const A=ci(e).find(j=>j.field===I.field);if(A){var V;const j=M===void 0?Q_((V=I.sortingOrder)!=null?V:t.sortingOrder,A.sort):M;return j==null?void 0:S({},A,{sort:j})}return{field:I.field,sort:M===void 0?Q_((R=I.sortingOrder)!=null?R:t.sortingOrder):M}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode===Kc.server)return o.debug("Skipping sorting rows as sortingMode = server"),S({},I,{sorting:S({},I.sorting,{sortedRows:Gc(I,e.current.instanceId)})});const M=ci(I,e.current.instanceId),R=mce(M,e),O=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:R});return S({},I,{sorting:S({},I.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(I=>{ci(e)!==I&&(o.debug("Setting sort model"),e.current.setState(X_(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),f=u.useCallback((I,M,R)=>{if(!I.sortable)return;const O=s(I,M);let A;!R||t.disableMultipleColumnsSorting?A=O?[O]:[]:A=i(I.field,O),e.current.setSortModel(A)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>ci(e),[e]),h=u.useCallback(()=>Mx(e).map(M=>M.model),[e]),m=u.useCallback(()=>$x(e),[e]),v=u.useCallback(I=>e.current.getSortedRowIds().indexOf(I),[e]),b=u.useCallback(I=>e.current.getSortedRowIds()[I],[e]);qt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:f,applySorting:a});const x=u.useCallback((I,M)=>{var R,O;const A=ci(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(O=R.sorting)==null?void 0:O.sortModel)!=null||A.length>0?S({},I,{sorting:{sortModel:A}}):I},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),C=u.useCallback((I,M)=>{var R;const O=(R=M.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?I:(e.current.setState(X_(O,t.disableMultipleColumnsSorting)),S({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),P=u.useCallback(I=>{const M=va(e);if(!I.sortRowList){const A=[],V=[];return Gc(e).forEach(j=>{M[j].isPinned||(M[j].position==="footer"?V.push(j):A.push(j))}),[...A,...V]}const R=[],O=[];return Object.values(M).forEach(A=>{A.isPinned||(A.position==="footer"?O.push(A.id):R.push(A))}),[...I.sortRowList(R),...O]},[e]);or(e,"exportState",x),or(e,"restoreState",C),zx(e,pp,"sorting",P);const w=u.useCallback(({colDef:I},M)=>{const R=M.shiftKey||M.metaKey||M.ctrlKey;f(I,void 0,R)},[f]),E=u.useCallback(({colDef:I},M)=>{eA(M.key)&&!M.ctrlKey&&!M.metaKey&&f(I,void 0,M.shiftKey)},[f]),k=u.useCallback(()=>{const I=ci(e),M=Ru(e);if(I.length>0){const R=I.filter(O=>M[O.field]);R.length<I.length&&e.current.setSortModel(R)}},[e]),_=u.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);Ne(e,"columnHeaderClick",w),Ne(e,"columnHeaderKeyDown",E),Ne(e,"rowsSet",e.current.applySorting),Ne(e,"columnsChange",k),Ne(e,"activeStrategyProcessorChange",_),fp(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function h$(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 Jfe=(e,t)=>{const n=Gn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=Ue(e,Ls),s=u.useCallback(p=>{const h=Sv(e),m=pr(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const P=_a(e);let w;if(typeof p.rowIndex!="undefined"){var g;const E=(g=i[p.rowIndex])==null?void 0:g.id,k=e.current.unstable_getCellColSpanInfo(E,p.colIndex);k&&!k.spannedByColSpan&&(w=k.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),b.left=h$({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:P[p.colIndex]})}if(p.rowIndex!=null){var x,C;const P=Df(e.current.state),w=$d(e),E=Qd(e),k=t.pagination?p.rowIndex-w*E:p.rowIndex,_=P.positions[k+1]?P.positions[k+1]-P.positions[k]:P.currentPageTotalHeight-P.positions[k],I=((x=o.current.querySelector(`.${Z["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,M=((C=o.current.querySelector(`.${Z["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;b.top=h$({clientHeight:o.current.clientHeight-I-M,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:P.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);qt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Zfe(e,t){Ft(e,"columnHeaderClick",t.onColumnHeaderClick),Ft(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ft(e,"columnHeaderOver",t.onColumnHeaderOver),Ft(e,"columnHeaderOut",t.onColumnHeaderOut),Ft(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ft(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ft(e,"columnOrderChange",t.onColumnOrderChange),Ft(e,"cellClick",t.onCellClick),Ft(e,"cellDoubleClick",t.onCellDoubleClick),Ft(e,"cellKeyDown",t.onCellKeyDown),Ft(e,"cellFocusOut",t.onCellFocusOut),Ft(e,"preferencePanelClose",t.onPreferencePanelClose),Ft(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ft(e,"menuOpen",t.onMenuOpen),Ft(e,"menuClose",t.onMenuClose),Ft(e,"rowDoubleClick",t.onRowDoubleClick),Ft(e,"rowClick",t.onRowClick),Ft(e,"componentError",t.onError),Ft(e,"stateChange",t.onStateChange)}const epe=({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 tpe(e,t){const n=Gn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ue(e,Df),a=Ue(e,cp),c=u.useCallback(()=>{var x;const C=(x=e.current.rootElementRef)==null?void 0:x.current,P=Ev(e),w=TA(e);if(!o.current)return;let E;if(t.scrollbarSize!=null)E=t.scrollbarSize;else if(!P||!C)E=0;else{const V=bn(C).createElement("div");V.style.width="99px",V.style.height="99px",V.style.position="absolute",V.style.overflow="scroll",V.className="scrollDiv",C.appendChild(V),E=V.offsetWidth-V.clientWidth,C.removeChild(V)}let k,_,I;if(t.autoHeight)I=!1,_=Math.round(P)>o.current.width,k={width:o.current.width,height:s.currentPageTotalHeight+(_?E:0)};else{k={width:o.current.width,height:o.current.height-a};const A=epe({content:{width:Math.round(P),height:s.currentPageTotalHeight},container:{width:k.width,height:k.height-w.top-w.bottom},scrollBarSize:E});I=A.hasScrollY,_=A.hasScrollX}const M={width:k.width-(I?E:0),height:k.height-(_?E:0)},R={viewportOuterSize:k,viewportInnerSize:M,hasScrollX:_,hasScrollY:I,scrollBarSize:E},O=i.current;i.current=R,(R.viewportInnerSize.width!==(O==null?void 0:O.viewportInnerSize.width)||R.viewportInnerSize.height!==(O==null?void 0:O.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",R.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),f=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const x=e.current.getRootDimensions();if(!x)return 0;const C=_v(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),E=w.lastRowIndex-w.firstRowIndex;return Math.min(E-1,C.rows.length)}const P=Math.floor(x.viewportInnerSize.height/ap(e));return Math.min(P,C.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);qt(e,{resize:f,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>ks(f,60),[f]),b=u.useRef(!0),g=u.useCallback(x=>{o.current=x;const C=/jsdom/.test(window.navigator.userAgent);if(x.height===0&&!r.current&&!t.autoHeight&&!C&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
277
|
-
`)),r.current=!0),x.width===0&&!r.current&&!C&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
278
|
-
`)),r.current=!0),b.current){f(),b.current=!1;return}v()},[t.autoHeight,v,n,f]);On(()=>c(),[c]),Ft(e,"sortedRowsSet",c),Ft(e,"pageChange",c),Ft(e,"pageSizeChange",c),Ft(e,"columnsChange",c),Ne(e,"resize",g),Ft(e,"debouncedResize",t.onResize)}const npe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),rpe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=Ue(e,ap),f=Ue(e,lp),p=Ue(e,Ou),h=Ue(e,_x),m=Ha(e,t),v=Ue(e,sp),b=u.useCallback(()=>{var M,R;a.current=!1;const O=Qse(e.current.state,e.current.instanceId),A=L=>{i.current[L.id]||(i.current[L.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:B,sizes:W}=i.current[L.id];let F=c;const z=W.base;if(D)F=z;else if(n){const ee=n(S({},L,{densityFactor:O}));if(ee==="auto"){if(B){const se=o?o(S({},L,{densityFactor:O})):c;F=se!=null?se:c}else F=z;a.current=!0,i.current[L.id].autoHeight=!0}else F=ee!=null?ee:c,i.current[L.id].needsFirstMeasurement=!1,i.current[L.id].autoHeight=!1}else i.current[L.id].needsFirstMeasurement=!1;const G={base:F};if(r){var q,X;const ee=e.current.getRowIndexRelativeToVisibleRows(L.id),se=r(S({},L,{isFirstVisible:ee===0,isLastVisible:ee===m.rows.length-1,indexRelativeToCurrentPage:ee}));G.spacingTop=(q=se.top)!=null?q:0,G.spacingBottom=(X=se.bottom)!=null?X:0}const ie=e.current.unstable_applyPipeProcessors("rowHeight",G,L);return i.current[L.id].sizes=ie,ie},V=[],j=m.rows.reduce((L,D)=>{V.push(L);const B=A(D),W=Object.values(B).reduce((F,z)=>F+z,0);return L+W},0);v==null||(M=v.top)==null||M.forEach(L=>{A(L)}),v==null||(R=v.bottom)==null||R.forEach(L=>{A(L)}),e.current.setState(L=>S({},L,{rowsMeta:{currentPageTotalHeight:j,positions:V}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback(M=>{const R=i.current[M];return R?R.sizes.base:c},[c]),x=M=>{var R;return(R=i.current[M])==null?void 0:R.sizes},C=u.useCallback((M,R)=>{i.current[M].sizes.base=R,i.current[M].isResized=!0,i.current[M].needsFirstMeasurement=!1,b()},[b]),P=u.useMemo(()=>ks(b),[b]),w=u.useCallback((M,R)=>{if(!i.current[M]||!i.current[M].autoHeight)return;const O=i.current[M].sizes.base!==R;i.current[M].needsFirstMeasurement=!1,i.current[M].sizes.base=R,O&&P()},[P]),E=u.useCallback(M=>{var R;return((R=i.current[M])==null?void 0:R.autoHeight)||!1},[]),k=u.useCallback(()=>s.current,[]),_=u.useCallback(M=>{a.current&&M>s.current&&(s.current=M)},[]);u.useEffect(()=>{b()},[c,f,p,h,b]),Bx(e,"rowHeight",b),qt(e,{unstable_getLastMeasuredRowIndex:k,unstable_setLastMeasuredRowIndex:_,unstable_rowHasAutoHeight:E,unstable_getRowHeight:g,unstable_getRowInternalSizes:x,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:w})},ope=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]);qt(e,{exportState:t,restoreState:n})},ipe=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[f],x=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!x||x===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let C=g.computedWidth;for(let P=1;P<x;P+=1){const w=f+P;if(w>=h&&w<m){const E=v[w];C+=E.computedWidth,n(p,f+P,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+x,b-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:x,width:C}})}return{colSpan:x}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let m=f;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);qt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);Ne(e,"columnOrderChange",a)},spe=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=EA(t.columnGroupingModel);return o.all.forEach(a=>{var c,f;const p=(c=s[a])!=null?c:[],h=o.lookup[a];Hde(h)&&Cs(p,h==null?void 0:h.groupPath)||(o.lookup[a]=S({},o.lookup[a],{groupPath:(f=s[a])!=null?f:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);or(e,"hydrateColumns",r)},lpe=e=>{var t,n;const r=Lde(void 0,e);return spe(r,e),Yfe(r,e),Nfe(r),so(Bfe,r,e),so(Dde,r,e),so(Vde,r,e),so(Lfe,r,e),so((t=e.experimentalFeatures)!=null&&t.newEditingApi?Rfe:xfe,r,e),so(ufe,r,e),so(Xfe,r,e),so(yfe,r,e),so(afe,r,e),so(Wde,r,e),so(gfe,r,e),so(npe,r,e),so(Fde,r,e),pfe(r,e),zfe(r,e),Bde(r,e),Afe(r,e),Dfe(r),ipe(r),Ude(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?Ofe:Sfe)(r,e),dfe(r,e),bfe(r,e),cfe(r,e),Qfe(r,e),Gde(r,e),vfe(r,e),rpe(r,e),Jfe(r,e),Nde(r),Qde(r),Jde(r,e),Ade(r),tpe(r,e),Zfe(r,e),ope(r),r},ape={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},cpe=100,upe={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:Of.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:xr.Cell,filterMode:Kc.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:Kc.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:Kc.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},dpe=e=>{if(e.pageSize>cpe)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=Qe({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>S({},jfe,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return S({},p$);const i={};return Object.entries(p$).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>S({},upe,t,{localeText:n,components:r},ape),[t,n,r])},fpe=["className"],ppe=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},Dt,t)},hpe=re("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),mpe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,fpe),s={classes:Ye().classes},a=ppe(s);return T.jsx(hpe,S({ref:n,className:he(a.root,r)},o))}),gpe=["className","style"],vpe=e=>{const{classes:t,overflowedContent:n}=e;return Ie({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Dt,t)},ype=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),bpe=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=oe(t,gpe),s=Ye(),a={classes:s.classes,overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"},c=vpe(a);return T.jsx(ype,S({ref:n,className:he(c.root,r),style:o},i))}),wpe=["className"],Cpe=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},Dt,t)},xpe=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Spe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,wpe),s={classes:Ye().classes},a=Cpe(s);return T.jsx(xpe,S({ref:n,className:he(a.root,r)},o))}),Epe=["style"];function qc(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?qc(e,t,n,o):qc(e,t,o+1,r)}function Ppe(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return qc(e,t,Math.floor(n/2),Math.min(n,t.length))}const ta=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Lf(e-n,r,o),Lf(t+n,r,o)],kpe=e=>{var t,n;const r=vt(),o=Ye(),i=Ue(r,pr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=Ue(r,_a),v=Ue(r,Ev),b=Ue(r,ap),g=Ue(r,pi),x=Ue(r,Xm),C=Ue(r,Df),P=Ue(r,Fn),w=Ue(r,Zm),E=Ha(r,o),k=u.useRef(null),_=u.useRef(null),I=St(s,_),[M,R]=u.useState(null),O=u.useRef(M),A=u.useRef({top:0,left:0}),[V,j]=u.useState(null),L=u.useRef(v),D=u.useCallback(de=>{var le,te;const _e=r.current.unstable_getLastMeasuredRowIndex()-(((le=E.range)==null?void 0:le.firstRowIndex)||0),Se=Math.max(0,_e);let Fe=Se===1/0;return(te=E.range)!=null&&te.lastRowIndex&&!Fe&&(Fe=Se>=E.range.lastRowIndex),Fe||C.positions[Se]>=de?qc(de,C.positions):Ppe(de,C.positions,Se)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,C.positions]),B=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:de,left:le}=A.current,te=Math.min(D(de),C.positions.length-1),be=o.autoHeight?te+E.rows.length:D(de+_.current.clientHeight);let _e=!1,Se=0,Fe=m.length;const[Re,Ae]=ta({firstIndex:te,lastIndex:be,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let Le=Re;Le<Ae&&!_e;Le+=1){const Ze=E.rows[Le];_e=r.current.unstable_rowHasAutoHeight(Ze.id)}return _e||(Se=qc(le,m),Fe=qc(le+V,m)),{firstRowIndex:te,lastRowIndex:be,firstColumnIndex:Se,lastColumnIndex:Fe}},[a,D,C.positions.length,o.autoHeight,o.rowBuffer,E.rows,m,i.length,r,V]);u.useEffect(()=>{a?k.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),u.useEffect(()=>{j(_.current.clientWidth)},[C.currentPageTotalHeight]);const W=u.useCallback(de=>{j(de.width)},[]);Ne(r,"resize",W);const F=u.useCallback(de=>{const[le,te]=ta({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[be]=ta({firstIndex:de.firstColumnIndex,lastIndex:de.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),_e=Db({firstColumnToRender:be,apiRef:r,firstRowToRender:le,lastRowToRender:te,visibleRows:E.rows}),Se=Df(r.current.state).positions[le],Fe=_a(r)[_e];k.current.style.transform=`translate3d(${Fe}px, ${Se}px, 0px)`,typeof c=="function"&&c({top:Se,left:Fe})},[r,E.rows,c,f,p,o.columnBuffer,o.rowBuffer]);u.useLayoutEffect(()=>{M&&F(M)},[M,F]);const z=u.useCallback(de=>{R(de),O.current=de},[R,O]);u.useEffect(()=>{if(V==null)return;const de=B();z(de);const{top:le,left:te}=A.current,be={top:le,left:te,renderContext:de};r.current.publishEvent("rowsScroll",be)},[r,B,V,z]);const G=de=>{const{scrollTop:le,scrollLeft:te}=de.currentTarget;if(A.current.top=le,A.current.left=te,te<0||le<0||!O.current)return;const be=a?O.current:B(),_e=Math.abs(be.firstRowIndex-O.current.firstRowIndex),Se=Math.abs(be.lastRowIndex-O.current.lastRowIndex),Fe=Math.abs(be.firstColumnIndex-O.current.firstColumnIndex),Re=Math.abs(be.lastColumnIndex-O.current.lastColumnIndex),Ae=_e>=o.rowThreshold||Se>=o.rowThreshold||Fe>=o.columnThreshold||Re>=o.columnThreshold||L.current!==v;r.current.publishEvent("rowsScroll",{top:le,left:te,renderContext:Ae?be:O.current},de),Ae&&(Cl.flushSync(()=>{z(be)}),L.current=v)},q=de=>{r.current.publishEvent("virtualScrollerWheel",{},de)},X=de=>{r.current.publishEvent("virtualScrollerTouchMove",{},de)},ie=(de={renderContext:M})=>{const{renderContext:le,minFirstColumn:te=f,maxLastColumn:be=p,availableSpace:_e=V,ignoreAutoHeight:Se,rowIndexOffset:Fe=0}=de;if(!le||_e==null)return null;const Re=a?0:o.rowBuffer,Ae=a?0:o.columnBuffer,[Le,Ze]=ta({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:Re}),yt=[];if(de.rows)de.rows.forEach(Te=>{yt.push(Te),r.current.unstable_calculateColSpan({rowId:Te.id,minFirstColumn:te,maxLastColumn:be,columns:i})});else{if(!E.range)return null;for(let Te=Le;Te<Ze;Te+=1){const ne=E.rows[Te];yt.push(ne),r.current.unstable_calculateColSpan({rowId:ne.id,minFirstColumn:te,maxLastColumn:be,columns:i})}}const[tt,et]=ta({firstIndex:le.firstColumnIndex,lastIndex:le.lastColumnIndex,minFirstIndex:te,maxLastIndex:be,buffer:Ae}),Pt=Db({firstColumnToRender:tt,apiRef:r,firstRowToRender:Le,lastRowToRender:Ze,visibleRows:E.rows}),mt=i.slice(Pt,et),at=[];for(let Te=0;Te<yt.length;Te+=1){var It,Xe;const{id:ne,model:ke}=yt[Te],Ee=Le+Te===E.rows.length-1,$e=!r.current.unstable_rowHasAutoHeight(ne)||Se?r.current.unstable_getRowHeight(ne):"auto";let Ge;w[ne]==null?Ge=!1:Ge=r.current.isRowSelectable(ne),at.push(T.jsx(o.components.Row,S({row:ke,rowId:ne,rowHeight:$e,cellFocus:g,cellTabIndex:x,editRowsState:P,renderedColumns:mt,visibleColumns:i,firstColumnToRender:Pt,lastColumnToRender:et,selected:Ge,index:Fe+((E==null||(It=E.range)==null?void 0:It.firstRowIndex)||0)+Le+Te,containerWidth:_e,isLastVisible:Ee},typeof h=="function"?h(ne,ke):{},(Xe=o.componentsProps)==null?void 0:Xe.row),ne))}return at},ee=V&&v>V,se=u.useMemo(()=>{const de=Math.max(C.currentPageTotalHeight,1);let le=!1;_!=null&&_.current&&de<=(_==null?void 0:_.current.clientHeight)&&(le=!0);const te={width:ee?v:"auto",height:de,minHeight:le?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(te.height=2*b),te},[_,v,C.currentPageTotalHeight,E.rows.length,ee,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,se]),o.autoHeight&&E.rows.length===0&&(se.height=2*b);const ae={};ee||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden");const we=u.useCallback(()=>O.current,[]);return r.current.unstable_getRenderContext=we,{renderContext:M,updateRenderZonePosition:F,getRows:ie,getRootProps:(de={})=>{let{style:le={}}=de,te=oe(de,Epe);return S({ref:I,onScroll:G,onWheel:q,onTouchMove:X,style:S({},le,ae)},te)},getContentProps:({style:de={}}={})=>({style:S({},de,se)}),getRenderZoneProps:()=>({ref:k})}},Ipe=["className","disableVirtualization"],_pe=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=oe(t,Ipe),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:f}=kpe({ref:n,disableVirtualization:o});return T.jsx(mpe,S({className:r},s(i),{children:T.jsx(bpe,S({},a(),{children:T.jsx(Spe,S({},c(),{children:f()}))}))}))}),$pe=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return Ie({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dt,t)};function Mpe(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:f,isLastColumn:p,extendRowFullWidth:h}=e,m=Ye(),v=vt(),b=Ue(v,xA),{hasScrollX:g,hasScrollY:x}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},C=r?b[r]:{},{headerName:P=r!=null?r:"",description:w="",headerAlign:E=void 0}=C;let k;const _=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),I={groupId:r,headerName:P,description:w,depth:i,maxDepth:s,fields:a,colIndex:f,isLastColumn:p};r&&_&&(k=_(I));const R=p?!(p&&g&&!x)&&!h:m.showColumnRightBorder,O=m.showColumnRightBorder,A=S({},e,{classes:m.classes,showRightBorder:R,showColumnBorder:O,headerAlign:E,depth:i,isDragging:!1}),V=P!=null?P:r,j=Pn(),L=r===null?`empty-group-cell-${j}`:r,D=$pe(A),B=typeof C.headerClassName=="function"?C.headerClassName(I):C.headerClassName;return T.jsx(sA,{classes:D,columnMenuOpen:!1,colIndex:f,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:k,headerClassName:B,description:w,elementId:L,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:V,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const m$=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function Tpe(e){return!!e.target}const Rpe=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=vt(),c=Ue(a,pr),f=Ue(a,_a),p=Ue(a,YL),h=Ue(a,Xm),m=Ue(a,ile),v=Ue(a,WL),b=Ue(a,Tx),g=Ue(a,cp),x=Ue(a,Yse),C=Ue(a,Hse),P=Ue(a,CA),w=Ye(),E=u.useRef(null),k=St(t,E),[_,I]=u.useState(null),M=u.useRef(_),R=u.useRef(0),O=Ha(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const A=u.useRef(BL(Jce,{equalityCheck:(ie,ee)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(se=>ie[se]===ee[se])})),V=u.useCallback(ie=>{const[ee,se]=ta({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),ae=A.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:ee,lastRowToRender:se,apiRef:a,visibleRows:O.rows}),we=ae>0?R.current-f[ae]:R.current;E.current.style.transform=`translate3d(${-we}px, 0px, 0px)`},[f,n,w.columnBuffer,a,O.rows,w.rowBuffer]);u.useLayoutEffect(()=>{_&&V(_)},[_,V]);const j=u.useCallback(({left:ie,renderContext:ee=null},se)=>{var ae,we;if(!E.current||R.current===ie&&((ae=M.current)==null?void 0:ae.firstColumnIndex)===(ee==null?void 0:ee.firstColumnIndex)&&((we=M.current)==null?void 0:we.lastColumnIndex)===(ee==null?void 0:ee.lastColumnIndex))return;R.current=ie;let de=!1;ee!==M.current||!M.current?(Tpe(se)?(Cl.flushSync(()=>{I(ee)}),de=!0):I(ee),M.current=ee):de=!0,ee&&de&&V(ee)},[V]),L=u.useCallback(ie=>s(ie.field),[]),D=u.useCallback(()=>s(""),[]),B=u.useCallback(ie=>o(ie.field),[]),W=u.useCallback(()=>o(""),[]);Ne(a,"columnResizeStart",L),Ne(a,"columnResizeStop",D),Ne(a,"columnHeaderDragStart",B),Ne(a,"columnHeaderDragEnd",W),Ne(a,"rowsScroll",j);const F=ie=>{const{renderContext:ee=_,minFirstColumn:se=n,maxLastColumn:ae=c.length}=ie||{};if(!ee)return null;const[we,de]=ta({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:w.rowBuffer}),le=A.current({firstColumnIndex:ee.firstColumnIndex,minColumnIndex:se,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:we,lastRowToRender:de,visibleRows:O.rows}),te=Math.min(ee.lastColumnIndex+w.columnBuffer,ae);return{renderedColumns:c.slice(le,te),firstColumnToRender:le,lastColumnToRender:te,minFirstColumn:se,maxLastColumn:ae}},z=(ie,ee={})=>{const se=F(ie);if(se==null)return null;const{renderedColumns:ae,firstColumnToRender:we}=se,de=[];for(let le=0;le<ae.length;le+=1){const te=ae[le],be=we+le,_e=be===0,Se=!(p===null&&h===null),Fe=p!==null&&p.field===te.field||_e&&!Se?0:-1,Re=m!==null&&m.field===te.field,Ae=P.open&&P.field===te.field;de.push(T.jsx(qae,S({},C[te.field],{columnMenuOpen:Ae,filterItemsCounter:x[te.field]&&x[te.field].length,headerHeight:v,isDragging:te.field===r,column:te,colIndex:be,isResizing:i===te.field,isLastColumn:be===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:Re,tabIndex:Fe},ee),te.field))}return T.jsx(m$,{role:"row","aria-rowindex":b+1,children:de})},G=(ie=[],ee)=>ie.slice(0,ee+1),q=ie=>{if(b===0)return null;const ee=F(ie);if(ee==null)return null;const{renderedColumns:se,firstColumnToRender:ae,lastColumnToRender:we,maxLastColumn:de}=ee,le=[],te=[];for(let mt=0;mt<b;mt+=1){var be,_e,Se;const at=[];let It=0,Xe=ae-1;const Te=(be=c[ae])==null||(_e=be.groupPath)==null?void 0:_e[mt],ne=G((Se=c[ae])==null?void 0:Se.groupPath,mt);for(;Te!==null&&Xe>=n&&(Fe=c[Xe])!=null&&Fe.groupPath&&Cs(G((Re=c[Xe])==null?void 0:Re.groupPath,mt),ne);){var Fe,Re,Ae;const $e=c[Xe];if(It+=(Ae=$e.computedWidth)!=null?Ae:0,at.length===0){var Le;at.push({width:(Le=$e.computedWidth)!=null?Le:0,fields:[$e.field],groupId:Te,groupParents:ne,colIndex:Xe})}else{var Ze;at[0].width+=(Ze=$e.computedWidth)!=null?Ze:0,at[0].fields.push($e.field),at[0].colIndex=Xe}Xe-=1}const ke=se.reduce(($e,Ge,Ct)=>{var jt;const Ht=$e[$e.length-1];if(Ge.groupPath&&Ge.groupPath.length>mt){var Jn;if(Ht&&Ht.groupId===Ge.groupPath[mt]){var hn;return[...$e.slice(0,$e.length-1),S({},Ht,{width:Ht.width+((hn=Ge.computedWidth)!=null?hn:0),fields:[...Ht.fields,Ge.field]})]}return[...$e,{groupId:Ge.groupPath[mt],groupParents:G(Ge.groupPath,mt),width:(Jn=Ge.computedWidth)!=null?Jn:0,fields:[Ge.field],colIndex:ae+Ct}]}if(Ht&&Ht.groupId===null&&Cs(G(Ge.groupPath,mt),Ht.groupParents)){var Kn;return[...$e.slice(0,$e.length-1),S({},Ht,{width:Ht.width+((Kn=Ge.computedWidth)!=null?Kn:0),fields:[...Ht.fields,Ge.field]})]}return[...$e,{groupId:null,groupParents:G(Ge.groupPath,mt),width:(jt=Ge.computedWidth)!=null?jt:0,fields:[Ge.field],colIndex:ae+Ct}]},at);Xe=we;const Ee=ke[ke.length-1].groupId;for(;Ee!==null&&Xe<de&&(yt=c[Xe])!=null&&yt.groupPath&&((tt=c[Xe])==null||(et=tt.groupPath)==null?void 0:et[mt])===Ee;){var yt,tt,et,Pt;const $e=c[Xe];ke[ke.length-1].width+=(Pt=$e.computedWidth)!=null?Pt:0,ke[ke.length-1].fields.push($e.field),Xe+=1}te.push({leftOverflow:It,elements:[...ke]})}return te.forEach((mt,at)=>{le.push(T.jsx(m$,{style:{height:`${v}px`,transform:`translateX(-${mt.leftOverflow}px)`},role:"row","aria-rowindex":at+1,children:mt.elements.map(({groupId:It,width:Xe,fields:Te,colIndex:ne},ke)=>T.jsx(Mpe,{groupId:It,width:Xe,fields:Te,colIndex:ne,depth:at,isLastColumn:ne===c.length-Te.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:te.length,height:v},ke))},at))}),le},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:_,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>S({style:X},ie),getInnerProps:()=>({ref:k,role:"rowgroup"})}},Ope=["className"],Lpe=e=>{const{classes:t}=e;return Ie({root:["columnHeaders"]},Dt,t)},Ape=re("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${e.palette.mode==="light"?_s(ot(e.palette.divider,1),.88):Is(ot(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),Fpe=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Ope),s={classes:Ye().classes},a=Lpe(s);return T.jsx(Ape,S({ref:n,className:he(r,a.root)},o))}),Npe=["isDragging","className"],Dpe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ie({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Dt,r)},Bpe=re("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Z.columnHeaderDropZone} .${Z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Z["columnHeadersInner--scrollable"]} .${Z.columnHeader}:last-child`]:{borderRight:"none"}})),zpe=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=oe(t,Npe),c=vt(),f=Ye(),p={isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1,classes:f.classes},h=Dpe(p);return T.jsx(Bpe,S({ref:n,className:he(s,h.root)},a))}),jpe=["innerRef","className"],Hpe=u.forwardRef(function(t,n){const{innerRef:r}=t,o=oe(t,jpe),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:f}=Rpe({innerRef:r});return T.jsxs(Fpe,S({ref:n},s(o),{children:[T.jsx(r$,{scrollDirection:"left"}),T.jsxs(zpe,S({isDragging:i},a(),{children:[f(),c()]})),T.jsx(r$,{scrollDirection:"right"})]}))}),AA=u.forwardRef(function(t,n){const r=dpe(t),o=lpe(r);return T.jsx(bde,{apiRef:o,props:r,children:T.jsx(mae,{className:r.className,style:r.style,sx:r.sx,ref:n,children:T.jsxs(nle,{children:[T.jsx(ole,{}),T.jsx(ele,{ColumnHeadersComponent:Hpe,VirtualScrollerComponent:_pe}),T.jsx(rle,{})]})})})}),Lu=u.memo(AA);AA.propTypes={"aria-label":ue.string,"aria-labelledby":ue.string,autoHeight:ue.bool,autoPageSize:ue.bool,cellModesModel:ue.object,checkboxSelection:ue.bool,classes:ue.object,columnBuffer:ue.number,columnGroupingModel:ue.arrayOf(ue.object),columns:I0(ue.array.isRequired),columnThreshold:ue.number,columnTypes:ue.object,columnVisibilityModel:ue.object,components:ue.object,componentsProps:ue.object,density:ue.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ue.bool,disableColumnMenu:ue.bool,disableColumnSelector:ue.bool,disableDensitySelector:ue.bool,disableExtendRowFullWidth:ue.bool,disableIgnoreModificationsIfProcessingProps:ue.bool,disableSelectionOnClick:ue.bool,disableVirtualization:ue.bool,editMode:ue.oneOf(["cell","row"]),editRowsModel:ue.object,error:ue.any,experimentalFeatures:ue.shape({columnGrouping:ue.bool,newEditingApi:ue.bool,preventCommitWhileValidating:ue.bool,warnIfFocusStateIsNotSynced:ue.bool}),filterMode:ue.oneOf(["client","server"]),filterModel:ue.shape({items:ue.arrayOf(ue.shape({columnField:ue.string.isRequired,id:ue.oneOfType([ue.number,ue.string]),operatorValue:ue.string,value:ue.any})).isRequired,linkOperator:ue.oneOf(["and","or"]),quickFilterLogicOperator:ue.oneOf(["and","or"]),quickFilterValues:ue.array}),getCellClassName:ue.func,getDetailPanelContent:ue.func,getEstimatedRowHeight:ue.func,getRowClassName:ue.func,getRowHeight:ue.func,getRowId:ue.func,getRowSpacing:ue.func,headerHeight:ue.number,hideFooter:ue.bool,hideFooterPagination:ue.bool,hideFooterSelectedRowCount:ue.bool,initialState:ue.object,isCellEditable:ue.func,isRowSelectable:ue.func,keepNonExistentRowsSelected:ue.bool,loading:ue.bool,localeText:ue.object,logger:ue.shape({debug:ue.func.isRequired,error:ue.func.isRequired,info:ue.func.isRequired,warn:ue.func.isRequired}),logLevel:ue.oneOf(["debug","error","info","warn",!1]),nonce:ue.string,onCellClick:ue.func,onCellDoubleClick:ue.func,onCellEditCommit:ue.func,onCellEditStart:ue.func,onCellEditStop:ue.func,onCellFocusOut:ue.func,onCellKeyDown:ue.func,onCellModesModelChange:ue.func,onColumnHeaderClick:ue.func,onColumnHeaderDoubleClick:ue.func,onColumnHeaderEnter:ue.func,onColumnHeaderLeave:ue.func,onColumnHeaderOut:ue.func,onColumnHeaderOver:ue.func,onColumnOrderChange:ue.func,onColumnVisibilityChange:ue.func,onColumnVisibilityModelChange:ue.func,onEditCellPropsChange:ue.func,onEditRowsModelChange:ue.func,onError:ue.func,onFilterModelChange:ue.func,onMenuClose:ue.func,onMenuOpen:ue.func,onPageChange:ue.func,onPageSizeChange:ue.func,onPreferencePanelClose:ue.func,onPreferencePanelOpen:ue.func,onProcessRowUpdateError:ue.func,onResize:ue.func,onRowClick:ue.func,onRowDoubleClick:ue.func,onRowEditCommit:ue.func,onRowEditStart:ue.func,onRowEditStop:ue.func,onRowModesModelChange:ue.func,onSelectionModelChange:ue.func,onSortModelChange:ue.func,onStateChange:ue.func,page:ue.number,pageSize:I0(ue.number),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
|
|
279
|
-
`)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.array.isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:I0(ue.oneOfType([ue.number,ue.string,ue.array])),showCellRightBorder:ue.bool,showColumnRightBorder:ue.bool,sortingMode:ue.oneOf(["client","server"]),sortingOrder:ue.arrayOf(ue.oneOf(["asc","desc"])),sortModel:ue.arrayOf(ue.shape({field:ue.string.isRequired,sort:ue.oneOf(["asc","desc"])})),sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};function Vpe(){return u.createElement(u.Fragment,{},u.createElement(Wpe),u.createElement(Gpe))}const Upe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Wpe(){const{data:e,element:t}=yi("get_status"),{data:n}=rse("get_connection_stats");e&&n&&Object.assign(e,n);const r=gu("md"),o=gu("sm");return t||u.createElement(rt,{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:_u,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:FA}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Kt.get(e,a);if(h===void 0)return null;typeof h=="string"&&Upe.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Kt.capitalize(a.replaceAll("_"," "))),u.createElement(tv,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Gpe(){const{list:e,error:t,props:n}=Ba("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(f=>!r||f.path).map((f,p)=>Oe({id:p},f)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:f,value:p})=>(f.v===6?`[${p}]`:p)+" :"+f.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:f,row:p}){if(!f)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(AL,{sx:{mr:1}}),p.archive,u.createElement(rt,{ml:2,color:"text.secondary"},f));const h=f==null?void 0:f.lastIndexOf("/");return u.createElement(u.Fragment,{},f.slice(h+1),h>0&&u.createElement(rt,{ml:2,color:"text.secondary"},f.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:f,row:p})=>u.createElement(u.Fragment,{},"IPv"+f,p.secure&&lo(Ex,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",valueFormatter:({value:f})=>FA(f)},{field:"sent",headerName:"Total",type:"number",valueFormatter:({value:f})=>_u(f)},{field:"agent",headerName:"Agent"},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:f}){return u.createElement("div",{},u.createElement(kn,{icon:xi,title:"Disconnect",onClick:()=>Mt("disconnect",Kt.pick(f,["ip","port"]))}),u.createElement(kn,{icon:LL,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>Kpe(f.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(rt,{display:"flex",alignItems:"center"},u.createElement(Mu,{fullWidth:!1,value:r,onChange:o,options:{"Show only downloads":!0,"Show all connections":!1}}),u.createElement(rt,{flex:1}),u.createElement(kn,{title:i?"Resume":"Pause",icon:i?xv:OL,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Yo,{severity:"error"},t):u.createElement(Lu,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function Kpe(e){return Tie("block",t=>[...t,{ip:e}])}function FA(e){return e?_u(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var Hx={},qpe=st;Object.defineProperty(Hx,"__esModule",{value:!0});var NA=Hx.default=void 0,Ype=qpe(ct()),Xpe=lt(),Qpe=(0,Ype.default)((0,Xpe.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");NA=Hx.default=Qpe;var Vx={},Jpe=st;Object.defineProperty(Vx,"__esModule",{value:!0});var DA=Vx.default=void 0,Zpe=Jpe(ct()),ehe=lt(),the=(0,Zpe.default)((0,ehe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");DA=Vx.default=the;var Ux={},nhe=st;Object.defineProperty(Ux,"__esModule",{value:!0});var BA=Ux.default=void 0,rhe=nhe(ct()),ohe=lt(),ihe=(0,rhe.default)((0,ohe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");BA=Ux.default=ihe;var Wx={},she=st;Object.defineProperty(Wx,"__esModule",{value:!0});var zA=Wx.default=void 0,lhe=she(ct()),ahe=lt(),che=(0,lhe.default)((0,ahe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");zA=Wx.default=che;var Gx={},uhe=st;Object.defineProperty(Gx,"__esModule",{value:!0});var jA=Gx.default=void 0,dhe=uhe(ct()),fhe=lt(),phe=(0,dhe.default)((0,fhe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");jA=Gx.default=phe;var Kx={},hhe=st;Object.defineProperty(Kx,"__esModule",{value:!0});var HA=Kx.default=void 0,mhe=hhe(ct()),g$=lt(),ghe=(0,mhe.default)([(0,g$.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2v6.5zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5zM10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,g$.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");HA=Kx.default=ghe;var qx={},vhe=st;Object.defineProperty(qx,"__esModule",{value:!0});var VA=qx.default=void 0,yhe=vhe(ct()),bhe=lt(),whe=(0,yhe.default)((0,bhe.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");VA=qx.default=whe;var Yx={},Che=st;Object.defineProperty(Yx,"__esModule",{value:!0});var UA=Yx.default=void 0,xhe=Che(ct()),She=lt(),Ehe=(0,xhe.default)((0,She.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");UA=Yx.default=Ehe;var Xx={},Phe=st;Object.defineProperty(Xx,"__esModule",{value:!0});var WA=Xx.default=void 0,khe=Phe(ct()),Ihe=lt(),_he=(0,khe.default)((0,Ihe.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");WA=Xx.default=_he;var Qx={},$he=st;Object.defineProperty(Qx,"__esModule",{value:!0});var GA=Qx.default=void 0,Mhe=$he(ct()),The=lt(),Rhe=(0,Mhe.default)((0,The.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");GA=Qx.default=Rhe;var Jx={},Ohe=st;Object.defineProperty(Jx,"__esModule",{value:!0});var KA=Jx.default=void 0,Lhe=Ohe(ct()),Ahe=lt(),Fhe=(0,Lhe.default)((0,Ahe.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");KA=Jx.default=Fhe;var Zx={},Nhe=st;Object.defineProperty(Zx,"__esModule",{value:!0});var eS=Zx.default=void 0,Dhe=Nhe(ct()),Bhe=lt(),zhe=(0,Dhe.default)((0,Bhe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");eS=Zx.default=zhe;var tS={},jhe=st;Object.defineProperty(tS,"__esModule",{value:!0});var qA=tS.default=void 0,Hhe=jhe(ct()),Vhe=lt(),Uhe=(0,Hhe.default)((0,Vhe.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");qA=tS.default=Uhe;var nS={},Whe=st;Object.defineProperty(nS,"__esModule",{value:!0});var YA=nS.default=void 0,Ghe=Whe(ct()),Khe=lt(),qhe=(0,Ghe.default)((0,Khe.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");YA=nS.default=qhe;function Yhe(){const e=ei({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=XA();return u.createElement(u.Fragment,{},u.createElement(rt,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t||"(home)")),u.createElement(GF,{onSelect(r){return it(this,null,function*(){const o=$u(yield Promise.all(r.map(i=>Mt("add_vfs",{under:t,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield dr(u.createElement(rt,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),Ra(),e()})}}))}})}function Xhe(){return it(this,null,function*(){try{const e=yield $ie("Enter folder name");if(!e)return;const t=XA();yield Mt("add_vfs",{under:t,name:e}),Ra([(t||"")+"/"+e]),yield dr(`Folder "${e}" created`,"success")}catch(e){yield dr(e)}})}function XA(){let e=En.selectedFiles[0];if(!e)return"";e.type!=="folder"&&(e=e.parent);const{id:t}=e;return t==="/"?"":t}function QA(n){var r=n,{items:e}=r,t=cn(r,["items"]);const[o,i]=fo.useState(),s=Boolean(o),a=u.useCallback(()=>i(void 0),[]);return u.createElement(fo.Fragment,{},u.createElement(ur,Oe({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(DO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,f)=>u.createElement(rr,Ut(Oe({key:f},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Qhe(){return u.createElement(rt,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(QA,{variant:"contained",startIcon:u.createElement(Cv),items:[{children:"from disk",onClick:Yhe},{children:"virtual folder",onClick:Xhe}]},"Add"),u.createElement(kn,{icon:op,title:"Reload",onClick(){Ra()}}))}function nl(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 rS=Symbol.for("yaml.alias"),Hb=Symbol.for("yaml.document"),bl=Symbol.for("yaml.map"),JA=Symbol.for("yaml.pair"),Ms=Symbol.for("yaml.scalar"),Au=Symbol.for("yaml.seq"),Xo=Symbol.for("yaml.node.type"),Va=e=>!!e&&typeof e=="object"&&e[Xo]===rS,hp=e=>!!e&&typeof e=="object"&&e[Xo]===Hb,Ua=e=>!!e&&typeof e=="object"&&e[Xo]===bl,In=e=>!!e&&typeof e=="object"&&e[Xo]===JA,pn=e=>!!e&&typeof e=="object"&&e[Xo]===Ms,Fu=e=>!!e&&typeof e=="object"&&e[Xo]===Au;function Mn(e){if(e&&typeof e=="object")switch(e[Xo]){case bl:case Au:return!0}return!1}function Hn(e){if(e&&typeof e=="object")switch(e[Xo]){case rS:case bl:case Ms:case Au:return!0}return!1}const Jhe=e=>(pn(e)||Mn(e))&&!!e.anchor;class oS{constructor(t){Object.defineProperty(this,Xo,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Ur=Symbol("break visit"),ZA=Symbol("skip children"),qi=Symbol("remove node");function Ml(e,t){const n=eF(t);hp(e)?Fc(null,e.contents,n,Object.freeze([e]))===qi&&(e.contents=null):Fc(null,e,n,Object.freeze([]))}Ml.BREAK=Ur;Ml.SKIP=ZA;Ml.REMOVE=qi;function Fc(e,t,n,r){const o=tF(e,t,n,r);if(Hn(o)||In(o))return nF(e,r,o),Fc(e,o,n,r);if(typeof o!="symbol"){if(Mn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Fc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===qi&&(t.items.splice(i,1),i-=1)}}}else if(In(t)){r=Object.freeze(r.concat(t));const i=Fc("key",t.key,n,r);if(i===Ur)return Ur;i===qi&&(t.key=null);const s=Fc("value",t.value,n,r);if(s===Ur)return Ur;s===qi&&(t.value=null)}}return o}function $v(e,t){return it(this,null,function*(){const n=eF(t);hp(e)?(yield Nc(null,e.contents,n,Object.freeze([e])))===qi&&(e.contents=null):yield Nc(null,e,n,Object.freeze([]))})}$v.BREAK=Ur;$v.SKIP=ZA;$v.REMOVE=qi;function Nc(e,t,n,r){return it(this,null,function*(){const o=yield tF(e,t,n,r);if(Hn(o)||In(o))return nF(e,r,o),Nc(e,o,n,r);if(typeof o!="symbol"){if(Mn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Nc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Ur)return Ur;s===qi&&(t.items.splice(i,1),i-=1)}}}else if(In(t)){r=Object.freeze(r.concat(t));const i=yield Nc("key",t.key,n,r);if(i===Ur)return Ur;i===qi&&(t.key=null);const s=yield Nc("value",t.value,n,r);if(s===Ur)return Ur;s===qi&&(t.value=null)}}return o})}function eF(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 tF(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(Ua(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Fu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(In(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(pn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(Va(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function nF(e,t,n){const r=t[t.length-1];if(Mn(r))r.items[e]=n;else if(In(r))e==="key"?r.key=n:r.value=n;else if(hp(r))r.contents=n;else{const o=Va(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Zhe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},eme=e=>e.replace(/[!,[\]{}]/g,t=>Zhe[t]);class Mr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Mr.defaultYaml,t),this.tags=Object.assign({},Mr.defaultTags,n)}clone(){const t=new Mr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Mr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Mr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Mr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Mr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Mr.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+eme(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&&Hn(t.contents)){const i={};Ml(t.contents,(s,a)=>{Hn(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(`
|
|
280
|
-
`)}}Mr.defaultYaml={explicit:!1,version:"1.2"};Mr.defaultTags={"!!":"tag:yaml.org,2002:"};function rF(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 oF(e){const t=new Set;return Ml(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function iF(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function tme(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=oF(e));const s=iF(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(pn(s.node)||Mn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}class Mv extends oS{constructor(t){super(rS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Ml(t,{Node:(r,o)=>{if(o===this)return Ml.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}const a=r.get(s);if(!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=lm(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(rF(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 lm(e,t,n){if(Va(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Mn(t)){let r=0;for(const o of t.items){const i=lm(e,o,n);i>r&&(r=i)}return r}else if(In(t)){const r=lm(e,t.key,n),o=lm(e,t.value,n);return Math.max(r,o)}return 1}function Yi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Yi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Jhe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const sF=e=>!e||typeof e!="function"&&typeof e!="object";class Et extends oS{constructor(t){super(Ms),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Yi(this.value,t,n)}toString(){return String(this.value)}}Et.BLOCK_FOLDED="BLOCK_FOLDED";Et.BLOCK_LITERAL="BLOCK_LITERAL";Et.PLAIN="PLAIN";Et.QUOTE_DOUBLE="QUOTE_DOUBLE";Et.QUOTE_SINGLE="QUOTE_SINGLE";const nme="tag:yaml.org,2002:";function rme(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 Bf(e,t,n){var h,m;if(hp(e)&&(e=e.contents),Hn(e))return e;if(In(e)){const v=(m=(h=n.schema[bl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt=="function"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new Mv(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=nme+t.slice(2));let f=rme(e,t,s.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Et(e);return c&&(c.node=v),v}f=e instanceof Map?s[bl]:Symbol.iterator in Object(e)?s[Au]:s[bl]}i&&(i(f),delete n.onTagObj);const p=f!=null&&f.createNode?f.createNode(n.schema,e,n):new Et(e);return t&&(p.tag=t),c&&(c.node=p),p}function tg(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return Bf(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 Td=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Tv extends oS{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=>Hn(r)||In(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Td(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Mn(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,tg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(Mn(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&&pn(i)?i.value:i:Mn(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!In(n))return!1;const r=n.value;return r==null||t&&pn(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 Mn(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(Mn(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,tg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Tv.maxFlowStringSingleLineLength=60;const ome=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ys(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const al=(e,t,n)=>e.endsWith(`
|
|
281
|
-
`)?ys(n,t):n.includes(`
|
|
282
|
-
`)?`
|
|
283
|
-
`+ys(n,t):(e.endsWith(" ")?"":" ")+n,lF="flow",Vb="block",am="quoted";function Rv(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const f=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?f.push(0):h=o-r);let m,v,b=!1,g=-1,x=-1,C=-1;n===Vb&&(g=v$(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===am&&w==="\\"){switch(x=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(w===`
|
|
284
|
-
`)n===Vb&&(g=v$(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
|
|
285
|
-
`&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
|
|
286
|
-
`&&E!==" "&&(m=g)}if(g>=h)if(m)f.push(m),h=m+c,m=void 0;else if(n===am){for(;v===" "||v===" ";)v=w,w=e[g+=1],b=!0;const E=g>C+1?g-2:x-1;if(p[E])return e;f.push(E),p[E]=!0,h=E+c,m=void 0}else b=!0}v=w}if(b&&a&&a(),f.length===0)return e;s&&s();let P=e.slice(0,f[0]);for(let w=0;w<f.length;++w){const E=f[w],k=f[w+1]||e.length;E===0?P=`
|
|
287
|
-
${t}${e.slice(0,k)}`:(n===am&&p[E]&&(P+=`${e[E]}\\`),P+=`
|
|
288
|
-
${t}${e.slice(E+1,k)}`)}return P}function v$(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
289
|
-
`);n=e[t+1]}return t}const Ov=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Lv=e=>/^(%|---|\.\.\.)/m.test(e);function ime(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]===`
|
|
290
|
-
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function Jd(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Lv(e)?" ":"");let s="",a=0;for(let c=0,f=n[c];f;f=n[++c])if(f===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,f="\\"),f==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
|
|
291
|
-
|
|
292
|
-
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
293
|
-
`,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:Rv(s,i,am,Ov(t))}function Ub(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
294
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return Jd(e,t);const n=t.indent||(Lv(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
295
|
-
${n}`)+"'";return t.implicitKey?r:Rv(r,n,lF,Ov(t))}function Zd(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Jd;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=Ub:i&&!o?r=Jd:r=n?Ub:Jd}return r(e,t)}function cm({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 Zd(n,r);const f=r.indent||(r.forceBlockIndent||Lv(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Et.BLOCK_FOLDED?!1:t===Et.BLOCK_LITERAL?!0:!ime(n,c,f.length);if(!n)return p?`|
|
|
296
|
-
`:`>
|
|
297
|
-
`;let h,m;for(m=n.length;m>0;--m){const _=n[m-1];if(_!==`
|
|
298
|
-
`&&_!==" "&&_!==" ")break}let v=n.substring(m);const b=v.indexOf(`
|
|
299
|
-
`);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
300
|
-
`&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${f}`));let g=!1,x,C=-1;for(x=0;x<n.length;++x){const _=n[x];if(_===" ")g=!0;else if(_===`
|
|
301
|
-
`)C=x;else break}let P=n.substring(0,C<x?C+1:x);P&&(n=n.substring(P.length),P=P.replace(/\n+/g,`$&${f}`));let E=(p?"|":">")+(g?f?"2":"1":"")+h;if(e&&(E+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${f}`),`${E}
|
|
302
|
-
${f}${P}${n}${v}`;n=n.replace(/\n+/g,`
|
|
303
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);const k=Rv(`${P}${n}${v}`,f,Vb,Ov(r));return`${E}
|
|
304
|
-
${f}${k}`}function sme(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,inFlow:f}=t;if(a&&/[\n[\]{},]/.test(i)||f&&/[[\]{},]/.test(i))return Zd(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||f||!i.includes(`
|
|
305
|
-
`)?Zd(i,t):cm(e,t,n,r);if(!a&&!f&&o!==Et.PLAIN&&i.includes(`
|
|
306
|
-
`))return cm(e,t,n,r);if(c===""&&Lv(i))return t.forceBlockIndent=!0,cm(e,t,n,r);const p=i.replace(/\n+/g,`$&
|
|
307
|
-
${c}`);if(s){const h=b=>{var g;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((g=b.test)==null?void 0:g.test(p))},{compat:m,tags:v}=t.doc.schema;if(v.some(h)||m!=null&&m.some(h))return Zd(i,t)}return a?p:Rv(p,c,lF,Ov(t))}function mp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Et.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Et.QUOTE_DOUBLE);const c=p=>{switch(p){case Et.BLOCK_FOLDED:case Et.BLOCK_LITERAL:return o||i?Zd(s.value,t):cm(s,t,n,r);case Et.QUOTE_DOUBLE:return Jd(s.value,t);case Et.QUOTE_SINGLE:return Ub(s.value,t);case Et.PLAIN:return sme(s,t,n,r);default:return null}};let f=c(a);if(f===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(f=c(m),f===null)throw new Error(`Unsupported default string type ${m}`)}return f}function aF(e,t){const n=Object.assign({blockQuote:!0,commentString:ome,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function lme(e,t){var o,i,s,a;if(t.tag){const c=e.filter(f=>f.tag===t.tag);if(c.length>0)return(o=c.find(f=>f.format===t.format))!=null?o:c[0]}let n,r;if(pn(t)){r=t.value;const c=e.filter(f=>{var p;return(p=f.identify)==null?void 0:p.call(f,r)});n=(i=c.find(f=>f.format===t.format))!=null?i:c.find(f=>!f.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function ame(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(pn(e)||Mn(e))&&e.anchor;i&&rF(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 Ma(e,t,n,r){var c,f;if(In(e))return e.toString(t,n,r);if(Va(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=Hn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=lme(t.doc.schema.tags,i));const s=ame(i,o,t);s.length>0&&(t.indentAtStart=((f=t.indentAtStart)!=null?f:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):pn(i)?mp(i,t,n,r):i.toString(t,n,r);return s?pn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
308
|
-
${t.indent}${a}`:a}function cme({key:e,value:t},n,r,o){const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:h}}=n;let m=Hn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Mn(e)){const _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||Mn(e)||(pn(e)?e.type===Et.BLOCK_FOLDED||e.type===Et.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,x=Ma(e,n,()=>b=!0,()=>g=!0);if(!v&&!n.inFlow&&x.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),x===""?"?":v?`? ${x}`:x}else if(i&&!h||t==null&&v)return x=`? ${x}`,m&&!b?x+=al(x,n.indent,f(m)):g&&o&&o(),x;b&&(m=null),v?(m&&(x+=al(x,n.indent,f(m))),x=`? ${x}
|
|
309
|
-
${a}:`):(x=`${x}:`,m&&(x+=al(x,n.indent,f(m))));let C="",P=null;if(Hn(t)){if(t.spaceBefore&&(C=`
|
|
310
|
-
`),t.commentBefore){const _=f(t.commentBefore);C+=`
|
|
311
|
-
${ys(_,n.indent)}`}P=t.comment}else t&&typeof t=="object"&&(t=s.createNode(t));n.implicitKey=!1,!v&&!m&&pn(t)&&(n.indentAtStart=x.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Fu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substr(2));let w=!1;const E=Ma(t,n,()=>w=!0,()=>g=!0);let k=" ";return C||m?E===""&&!n.inFlow?k=C===`
|
|
312
|
-
`?`
|
|
313
|
-
|
|
314
|
-
`:C:k=`${C}
|
|
315
|
-
${n.indent}`:!v&&Mn(t)?(!(E[0]==="["||E[0]==="{")||E.includes(`
|
|
316
|
-
`))&&(k=`
|
|
317
|
-
${n.indent}`):(E===""||E[0]===`
|
|
318
|
-
`)&&(k=""),x+=k+E,n.inFlow?w&&r&&r():P&&!w?x+=al(x,n.indent,f(P)):g&&o&&o(),x}function cF(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const y$="<<";function uF(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&ume(n))if(r=Va(r)?r.resolve(e.doc):r,Fu(r))for(const o of r.items)J0(e,t,o);else if(Array.isArray(r))for(const o of r)J0(e,t,o);else J0(e,t,r);else{const o=Yi(n,"",e);if(t instanceof Map)t.set(o,Yi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=dme(n,o,e),s=Yi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const ume=e=>e===y$||pn(e)&&e.value===y$&&(!e.type||e.type===Et.PLAIN);function J0(e,t,n){const r=e&&Va(n)?n.resolve(e.doc):n;if(!Ua(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 dme(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Hn(e)&&n&&n.doc){const r=aF(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)+'..."'),cF(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 iS(e,t,n){const r=Bf(e,void 0,n),o=Bf(t,void 0,n);return new Sr(r,o)}class Sr{constructor(t,n=null){Object.defineProperty(this,Xo,{value:JA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Hn(n)&&(n=n.clone(t)),Hn(r)&&(r=r.clone(t)),new Sr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return uF(n,r,this)}toString(t,n,r){return t!=null&&t.doc?cme(this,t,n,r):JSON.stringify(this)}}function dF(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?pme:fme)(e,t,n)}function fme({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:f}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const g=t[b];let x=null;if(Hn(g))!h&&g.spaceBefore&&m.push(""),ng(n,m,g.commentBefore,h),g.comment&&(x=g.comment);else if(In(g)){const P=Hn(g.key)?g.key:null;P&&(!h&&P.spaceBefore&&m.push(""),ng(n,m,P.commentBefore,h))}h=!1;let C=Ma(g,p,()=>x=null,()=>h=!0);x&&(C+=al(C,i,f(x))),h&&x&&(h=!1),m.push(r+C)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let b=1;b<m.length;++b){const g=m[b];v+=g?`
|
|
319
|
-
${c}${g}`:`
|
|
320
|
-
`}}return e?(v+=`
|
|
321
|
-
`+ys(f(e),c),a&&a()):h&&s&&s(),v}function pme({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,options:{commentString:c}}=n;o+=a;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const m=[];for(let x=0;x<t.length;++x){const C=t[x];let P=null;if(Hn(C))C.spaceBefore&&m.push(""),ng(n,m,C.commentBefore,!1),C.comment&&(P=C.comment);else if(In(C)){const E=Hn(C.key)?C.key:null;E&&(E.spaceBefore&&m.push(""),ng(n,m,E.commentBefore,!1),E.comment&&(p=!0));const k=Hn(C.value)?C.value:null;k?(k.comment&&(P=k.comment),k.commentBefore&&(p=!0)):C.value==null&&E&&E.comment&&(P=E.comment)}P&&(p=!0);let w=Ma(C,f,()=>P=null);x<t.length-1&&(w+=","),P&&(w+=al(w,o,c(P))),!p&&(m.length>h||w.includes(`
|
|
322
|
-
`))&&(p=!0),m.push(w),h=m.length}let v;const{start:b,end:g}=r;if(m.length===0)v=b+g;else if(p||(p=m.reduce((C,P)=>C+P.length+2,2)>Tv.maxFlowStringSingleLineLength),p){v=b;for(const x of m)v+=x?`
|
|
323
|
-
${a}${s}${x}`:`
|
|
324
|
-
`;v+=`
|
|
325
|
-
${s}${g}`}else v=`${b} ${m.join(" ")} ${g}`;return e&&(v+=al(v,c(e),s),i&&i()),v}function ng({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=ys(t(r),e);n.push(i.trimStart())}}function aa(e,t){const n=pn(t)?t.value:t;for(const r of e)if(In(r)&&(r.key===t||r.key===n||pn(r.key)&&r.key.value===n))return r}class Bo extends Tv{constructor(t){super(bl,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(t,n){var s;let r;In(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Sr(t,t==null?void 0:t.value):r=new Sr(t.key,t.value);const o=aa(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`);pn(o.value)&&sF(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=aa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=aa(this.items,t),o=r==null?void 0:r.value;return(i=!n&&pn(o)?o.value:o)!=null?i:void 0}has(t){return!!aa(this.items,t)}set(t,n){this.add(new Sr(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)uF(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!In(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})),dF(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function hme(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Bo(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(iS(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Nu={collection:"map",createNode:hme,default:!0,nodeClass:Bo,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ua(e)||t("Expected a mapping for this tag"),e}};class Wa extends Tv{constructor(t){super(Au,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(t){this.items.push(t)}delete(t){const n=Nh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Nh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&pn(o)?o.value:o}has(t){const n=Nh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Nh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];pn(o)&&sF(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(Yi(i,String(o++),n));return r}toString(t,n,r){return t?dF(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Nh(e){let t=pn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function mme(e,t,n){const{replacer:r}=n,o=new Wa(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(Bf(s,void 0,n))}}return o}const Du={collection:"seq",createNode:mme,default:!0,nodeClass:Wa,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Fu(e)||t("Expected a sequence for this tag"),e}},Av={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),mp(e,t,n,r)}},Fv={identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Et(null),stringify:({source:e},t)=>typeof e=="string"&&Fv.test.test(e)?e:t.options.nullStr},sS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Et(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&sS.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 Ei({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 fF={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:Ei},pF={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():Ei(e)}},hF={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Et(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Ei},Nv=e=>typeof e=="bigint"||Number.isInteger(e),lS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function mF(e,t,n){const{value:r}=e;return Nv(r)&&r>=0?n+r.toString(t):Ei(e)}const gF={identify:e=>Nv(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>lS(e,2,8,n),stringify:e=>mF(e,8,"0o")},vF={identify:Nv,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>lS(e,0,10,n),stringify:Ei},yF={identify:e=>Nv(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>lS(e,2,16,n),stringify:e=>mF(e,16,"0x")},gme=[Nu,Du,Av,Fv,sS,gF,vF,yF,fF,pF,hF];function b$(e){return typeof e=="bigint"||Number.isInteger(e)}const Dh=({value:e})=>JSON.stringify(e),vme=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Dh},{identify:e=>e==null,createNode:()=>new Et(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Dh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Dh},{identify:b$,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})=>b$(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:Dh}],yme={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},bme=[Nu,Du].concat(vme,yme),aS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let f=0;f<s.length;++f)c+=String.fromCharCode(s[f]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Et.BLOCK_LITERAL),t!==Et.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),f=Math.ceil(a.length/c),p=new Array(f);for(let h=0,m=0;h<f;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Et.BLOCK_LITERAL?`
|
|
326
|
-
`:" ")}return mp({comment:e,type:t,value:a},r,o,i)}};function bF(e,t){var n;if(Fu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!In(o)){if(Ua(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Sr(new Et(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
327
|
-
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
328
|
-
${s.comment}`:o.comment}o=i}e.items[r]=In(o)?o:new Sr(o)}}else t("Expected a sequence for this tag");return e}function wF(e,t,n){const{replacer:r}=n,o=new Wa(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const f=Object.keys(s);if(f.length===1)a=f[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(iS(a,c,n))}return o}const cS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:bF,createNode:wF};class Yc extends Wa{constructor(){super(),this.add=Bo.prototype.add.bind(this),this.delete=Bo.prototype.delete.bind(this),this.get=Bo.prototype.get.bind(this),this.has=Bo.prototype.has.bind(this),this.set=Bo.prototype.set.bind(this),this.tag=Yc.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(In(o)?(i=Yi(o.key,"",n),s=Yi(o.value,i,n)):i=Yi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}Yc.tag="tag:yaml.org,2002:omap";const uS={collection:"seq",identify:e=>e instanceof Map,nodeClass:Yc,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=bF(e,t),r=[];for(const{key:o}of n.items)pn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new Yc,n)},createNode(e,t,n){const r=wF(e,t,n),o=new Yc;return o.items=r.items,o}};function CF({value:e,source:t},n){return t&&(e?xF:SF).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const xF={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Et(!0),stringify:CF},SF={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Et(!1),stringify:CF},wme={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:Ei},Cme={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():Ei(e)}},xme={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Et(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Ei},gp=e=>typeof e=="bigint"||Number.isInteger(e);function Dv(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 dS(e,t,n){const{value:r}=e;if(gp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Ei(e)}const Sme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Dv(e,2,2,n),stringify:e=>dS(e,2,"0b")},Eme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Dv(e,1,8,n),stringify:e=>dS(e,8,"0")},Pme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Dv(e,0,10,n),stringify:Ei},kme={identify:gp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Dv(e,2,16,n),stringify:e=>dS(e,16,"0x")};class Xc extends Bo{constructor(t){super(t),this.tag=Xc.tag}add(t){let n;In(t)?n=t:typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Sr(t.key,null):n=new Sr(t,null),aa(this.items,n.key)||this.items.push(n)}get(t,n){const r=aa(this.items,t);return!n&&In(r)?pn(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=aa(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Sr(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")}}Xc.tag="tag:yaml.org,2002:set";const fS={collection:"map",identify:e=>e instanceof Set,nodeClass:Xc,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(Ua(e)){if(e.hasAllNullValues(!0))return Object.assign(new Xc,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Xc(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(iS(i,null,n));return o}};function pS(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 EF(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Ei(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const 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})=>pS(e,n),stringify:EF},kF={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=>pS(e,!1),stringify:EF},Bv={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(Bv.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=pS(p,!1);Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},w$=[Nu,Du,Av,Fv,xF,SF,Sme,Eme,Pme,kme,wme,Cme,xme,aS,uS,cS,fS,PF,kF,Bv],C$=new Map([["core",gme],["failsafe",[Nu,Du,Av]],["json",bme],["yaml11",w$],["yaml-1.1",w$]]),x$={binary:aS,bool:sS,float:hF,floatExp:pF,floatNaN:fF,floatTime:kF,int:vF,intHex:yF,intOct:gF,intTime:PF,map:Nu,null:Fv,omap:uS,pairs:cS,seq:Du,set:fS,timestamp:Bv},Ime={"tag:yaml.org,2002:binary":aS,"tag:yaml.org,2002:omap":uS,"tag:yaml.org,2002:pairs":cS,"tag:yaml.org,2002:set":fS,"tag:yaml.org,2002:timestamp":Bv};function Z0(e,t){let n=C$.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(C$.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=x$[r];if(o)return o;const i=Object.keys(x$).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const _me=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class zv{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?Z0(t,"compat"):t?Z0(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Ime:{},this.tags=Z0(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,bl,{value:Nu}),Object.defineProperty(this,Ms,{value:Av}),Object.defineProperty(this,Au,{value:Du}),this.sortMapEntries=typeof s=="function"?s:s===!0?_me:null}clone(){const t=Object.create(zv.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function $me(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=aF(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=i(e.commentBefore);n.unshift(ys(f,""))}let s=!1,a=null;if(e.contents){if(Hn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(ys(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const f=a?void 0:()=>s=!0;let p=Ma(e.contents,o,()=>a=null,f);a&&(p+=al(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Ma(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const f=i(e.comment);f.includes(`
|
|
329
|
-
`)?(n.push("..."),n.push(ys(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&s&&(f=f.replace(/^\n+/,"")),f&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(ys(i(f),"")))}return n.join(`
|
|
330
|
-
`)+`
|
|
331
|
-
`}function Rd(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=Rd(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=Rd(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=Rd(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=Rd(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Bu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Xo,{value:Hb});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 Mr({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Bu.prototype,{[Xo]:{value:Hb}});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=Hn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){vc(this.contents)&&this.contents.add(t)}addIn(t,n){vc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=oF(this);t.anchor=!n||r.has(n)?iF(n||"a",r):n}return new Mv(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const x=P=>typeof P=="number"||P instanceof String||P instanceof Number,C=n.filter(x).map(String);C.length>0&&(n=n.concat(C)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:f,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=tme(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:f,replacer:o,schema:this.schema,sourceObjects:v},g=Bf(t,p,b);return a&&Mn(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Sr(o,i)}delete(t){return vc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Td(t)?this.contents==null?!1:(this.contents=null,!0):vc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Mn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Td(t)?!n&&pn(this.contents)?this.contents.value:this.contents:Mn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Mn(this.contents)?this.contents.has(t):!1}hasIn(t){return Td(t)?this.contents!==void 0:Mn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=tg(this.schema,[t],n):vc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Td(t)?this.contents=n:this.contents==null?this.contents=tg(this.schema,Array.from(t),n):vc(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 Mr({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 Mr({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 zv(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100,stringify:Ma},c=Yi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:f,res:p}of a.anchors.values())i(p,f);return typeof s=="function"?Rd(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 $me(this,t)}}function vc(e){if(Mn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class hS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class ca extends hS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class IF extends hS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const rg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
332
|
-
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const f=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
333
|
-
|
|
334
|
-
${s}
|
|
335
|
-
${f}
|
|
336
|
-
`}};function yu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,f=s,p="",h="",m=!1,v=!1,b=!1,g=null,x=null,C=null,P=null,w=null;for(const _ of e)switch(b&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&i(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),_.type){case"space":!t&&c&&n!=="doc-start"&&_.source[0]===" "&&i(_,"TAB_AS_INDENT","Tabs are not allowed as indentation"),f=!0;break;case"comment":{f||i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=_.source.substring(1)||" ";p?p+=h+I:p=I,h="",c=!1;break}case"newline":c?p?p+=_.source:a=!0:h+=_.source,c=!0,m=!0,(g||x)&&(v=!0),f=!0;break;case"anchor":g&&i(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&i(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=_,w===null&&(w=_.offset),c=!1,f=!1,b=!0;break;case"tag":{x&&i(_,"MULTIPLE_TAGS","A node can have at most one tag"),x=_,w===null&&(w=_.offset),c=!1,f=!1,b=!0;break}case n:(g||x)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),P&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t!=null?t:"collection"}`),P=_,c=!1,f=!1;break;case"comma":if(t){C&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=_,c=!1,f=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,f=!1}const E=e[e.length-1],k=E?E.offset+E.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:C,found:P,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:x,end:k,start:w!=null?w:k}}function zf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
337
|
-
`))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(zf(t.key)||zf(t.value))return!0}return!1;default:return!0}}function Wb(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&zf(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function _F(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||pn(i)&&pn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const S$="All mapping items must start at the same column";function Mme({composeNode:e,composeEmptyNode:t},n,r,o){var a;const i=new Bo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const c of r.items){const{start:f,key:p,sep:h,value:m}=c,v=yu(f,{indicator:"explicit-key-ind",next:p!=null?p:h==null?void 0:h[0],offset:s,onError:o,startOnNewline:!0}),b=!v.found;if(b){if(p&&(p.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&o(s,"BAD_INDENT",S$)),!v.anchor&&!v.tag&&!h){v.comment&&(i.comment?i.comment+=`
|
|
338
|
-
`+v.comment:i.comment=v.comment);continue}(v.hasNewlineAfterProp||zf(p))&&o(p!=null?p:f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=v.found)==null?void 0:a.indent)!==r.indent&&o(s,"BAD_INDENT",S$);const g=v.end,x=p?e(n,p,v,o):t(n,g,f,null,v,o);n.schema.compat&&Wb(r.indent,p,o),_F(n,i.items,x)&&o(g,"DUPLICATE_KEY","Map keys must be unique");const C=yu(h!=null?h:[],{indicator:"map-value-ind",next:m,offset:x.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(s=C.end,C.found){b&&((m==null?void 0:m.type)==="block-map"&&!C.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&v.start<C.found.offset-1024&&o(x.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const P=m?e(n,m,C,o):t(n,s,h,null,C,o);n.schema.compat&&Wb(r.indent,m,o),s=P.range[2];const w=new Sr(x,P);n.options.keepSourceTokens&&(w.srcToken=c),i.items.push(w)}else{b&&o(x.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(x.comment?x.comment+=`
|
|
339
|
-
`+C.comment:x.comment=C.comment);const P=new Sr(x);n.options.keepSourceTokens&&(P.srcToken=c),i.items.push(P)}}return i.range=[r.offset,s,s],i}function Tme({composeNode:e,composeEmptyNode:t},n,r,o){const i=new Wa(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:c}of r.items){const f=yu(a,{indicator:"seq-item-ind",next:c,offset:s,onError:o,startOnNewline:!0});if(s=f.end,!f.found)if(f.anchor||f.tag||c)c&&c.type==="block-seq"?o(s,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{f.comment&&(i.comment=f.comment);continue}const p=c?e(n,c,f,o):t(n,s,a,null,f,o);n.schema.compat&&Wb(r.indent,c,o),s=p.range[2],i.items.push(p)}return i.range=[r.offset,s,s],i}function vp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:f}=a;switch(f){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}t+=c.length}}return{comment:o,offset:t}}const e1="Block collections are not allowed within flow collections",t1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Rme({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Bo(n.schema):new Wa(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const x=r.items[g],{start:C,key:P,sep:w,value:E}=x,k=yu(C,{flow:s,indicator:"explicit-key-ind",next:P!=null?P:w==null?void 0:w[0],offset:f,onError:o,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!w&&!E){g===0&&k.comma?o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),k.comment&&(a.comment?a.comment+=`
|
|
340
|
-
`+k.comment:a.comment=k.comment),f=k.end;continue}!i&&n.options.strict&&zf(P)&&o(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)k.comma&&o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(k.comma||o(k.start,"MISSING_CHAR",`Missing , between ${s} items`),k.comment){let _="";e:for(const I of C)switch(I.type){case"comma":case"space":break;case"comment":_=I.source.substring(1);break e;default:break e}if(_){let I=a.items[a.items.length-1];In(I)&&(I=(b=I.value)!=null?b:I.key),I.comment?I.comment+=`
|
|
341
|
-
`+_:I.comment=_,k.comment=k.comment.substring(_.length+1)}}if(!i&&!w&&!k.found){const _=E?e(n,E,k,o):t(n,k.end,w,null,k,o);a.items.push(_),f=_.range[2],t1(E)&&o(_.range,"BLOCK_IN_FLOW",e1)}else{const _=k.end,I=P?e(n,P,k,o):t(n,_,C,null,k,o);t1(P)&&o(I.range,"BLOCK_IN_FLOW",e1);const M=yu(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:E,offset:I.range[2],onError:o,startOnNewline:!1});if(M.found){if(!i&&!k.found&&n.options.strict){if(w)for(const A of w){if(A===M.found)break;if(A.type==="newline"){o(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<M.found.offset-1024&&o(M.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o(M.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const R=E?e(n,E,M,o):M.found?t(n,M.end,w,null,M,o):null;R?t1(E)&&o(R.range,"BLOCK_IN_FLOW",e1):M.comment&&(I.comment?I.comment+=`
|
|
342
|
-
`+M.comment:I.comment=M.comment);const O=new Sr(I,R);if(n.options.keepSourceTokens&&(O.srcToken=x),i){const A=a;_F(n,A.items,I)&&o(_,"DUPLICATE_KEY","Map keys must be unique"),A.items.push(O)}else{const A=new Bo(n.schema);A.flow=!0,A.items.push(O),a.items.push(A)}f=R?R.range[2]:M.end}}const p=i?"}":"]",[h,...m]=r.end;let v=f;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),x=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(f,c?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=vp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
|
|
343
|
-
`+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function Ome(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=Mme(e,t,n,o);break}case"block-seq":{i=Tme(e,t,n,o);break}case"flow-collection":{i=Rme(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=Ua(i)?"map":"seq";let f=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!f){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),f=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=f.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Hn(p)?p:new Et(p);return h.range=i.range,h.tag=s,f!=null&&f.format&&(h.format=f.format),h}function $F(e,t,n){const r=e.offset,o=Lme(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Et.BLOCK_FOLDED:Et.BLOCK_LITERAL,s=e.source?Ame(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const x=s[g][1];if(x===""||x==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
|
|
344
|
-
`.repeat(Math.max(1,s.length-1)):"";let x=r+o.length;return e.source&&(x+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,x,x]}}let c=e.indent+o.indent,f=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[x,C]=s[g];if(C===""||C==="\r")o.indent===0&&x.length>c&&(c=x.length);else{if(x.length<c){const P="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(f+x.length,"MISSING_CHAR",P)}o.indent===0&&(c=x.length),p=g;break}f+=x.length+C.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
|
|
345
|
-
`;for(let g=p;g<a;++g){let[x,C]=s[g];f+=x.length+C.length+1;const P=C[C.length-1]==="\r";if(P&&(C=C.slice(0,-1)),C&&x.length<c){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(f-C.length-(P?2:1),"BAD_INDENT",E),x=""}i===Et.BLOCK_LITERAL?(h+=m+x.slice(c)+C,m=`
|
|
346
|
-
`):x.length>c||C[0]===" "?(m===" "?m=`
|
|
347
|
-
`:!v&&m===`
|
|
348
|
-
`&&(m=`
|
|
349
|
-
|
|
350
|
-
`),h+=m+x.slice(c)+C,m=`
|
|
351
|
-
`,v=!0):C===""?m===`
|
|
352
|
-
`?h+=`
|
|
353
|
-
`:m=`
|
|
354
|
-
`:(h+=m+C,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
|
|
355
|
-
`+s[g][0].slice(c);h[h.length-1]!==`
|
|
356
|
-
`&&(h+=`
|
|
357
|
-
`);break;default:h+=`
|
|
358
|
-
`}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function Lme({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const b=Number(v);!s&&b?s=b:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let f=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":f=!0;case"newline":h+=v.source.length;break;case"comment":n&&!f&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const b=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",b);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function Ame(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 MF(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const f=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=Et.PLAIN,c=Fme(i,f);break;case"single-quoted-scalar":a=Et.QUOTE_SINGLE,c=Nme(i,f);break;case"double-quoted-scalar":a=Et.QUOTE_DOUBLE,c=Dme(i,f);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=vp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function Fme(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}`),TF(e)}function Nme(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),TF(e.slice(1,-1)).replace(/''/g,"'")}function TF(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
359
|
-
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
360
|
-
`,"sy")}catch(f){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
|
|
361
|
-
`?o+=i:i=`
|
|
362
|
-
`:(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 Dme(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
363
|
-
`))if(o===`
|
|
364
|
-
`){const{fold:i,offset:s}=Bme(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=zme[i];if(s)n+=s;else if(i===`
|
|
365
|
-
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
366
|
-
`)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+=jme(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!==`
|
|
367
|
-
`&&!(s==="\r"&&e[r+2]===`
|
|
368
|
-
`)&&(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 Bme(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
369
|
-
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
370
|
-
`);)r===`
|
|
371
|
-
`&&(n+=`
|
|
372
|
-
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const zme={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
373
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function jme(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 RF(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?$F(t,e.options.strict,r):MF(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,f=n&&c?Hme(e.schema,o,c,n,r):t.type==="scalar"?Vme(e,o,t,r):e.schema[Ms];let p;try{const h=f.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=pn(h)?h:new Et(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Et(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),f.format&&(p.format=f.format),s&&(p.comment=s),p}function Hme(e,t,n,r,o){var a;if(n==="!")return e[Ms];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[Ms])}function Vme({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[Ms];if(t.compat){const a=(s=t.compat.find(c=>{var f;return c.default&&((f=c.test)==null?void 0:f.test(n))}))!=null?s:t[Ms];if(i.tag!==a.tag){const c=e.tagString(i.tag),f=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${f}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Ume(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 Wme={composeNode:OF,composeEmptyNode:mS};function OF(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,f=!0;switch(t.type){case"alias":c=Gme(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=RF(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Ome(Wme,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=mS(e,t.offset,void 0,null,n,r),f=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&f&&(c.srcToken=t),c}function mS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a},c){const f={type:"scalar",offset:Ume(t,n,r),indent:-1,source:""},p=RF(e,f,a,c);return s&&(p.anchor=s.source.substring(1),p.anchor===""&&c(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),i&&(p.comment=i),p}function Gme({options:e},{offset:t,source:n,end:r},o){const i=new Mv(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=vp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Kme(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Bu(void 0,a),f={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=yu(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?OF(f,o,p,s):mS(f,p.end,r,null,p,s);const h=c.contents.range[2],m=vp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function wd(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 E$(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?`
|
|
374
|
-
|
|
375
|
-
`:`
|
|
376
|
-
`)+(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 gS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=wd(n);i?this.warnings.push(new IF(s,r,o)):this.errors.push(new ca(s,r,o))},this.directives=new Mr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=E$(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
377
|
-
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Mn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];In(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
378
|
-
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
379
|
-
${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:E$(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=wd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Kme(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 ca(wd(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 ca(wd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=vp(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}
|
|
380
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ca(wd(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 Bu(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 qme(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 ca([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return MF(e,t,r);case"block-scalar":return $F(e,t,r)}}return null}function Yme(e,t){var f;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=mp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(f=t.end)!=null?f:[{type:"newline",offset:-1,indent:r,source:`
|
|
381
|
-
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
382
|
-
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
383
|
-
`,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return LF(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
384
|
-
`}),{type:"block-scalar",offset:i,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function Xme(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const f=e.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=mp({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">":Qme(e,c);break;case'"':n1(e,c,"double-quoted-scalar");break;case"'":n1(e,c,"single-quoted-scalar");break;default:n1(e,c,"scalar")}}function Qme(e,t){const n=t.indexOf(`
|
|
385
|
-
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
386
|
-
`;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}];LF(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
387
|
-
`});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 LF(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 n1(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:`
|
|
388
|
-
`};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 Jme=e=>"type"in e?og(e):um(e);function og(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=og(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=um(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=um(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=um(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 um({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=og(t)),n)for(const i of n)o+=i.source;return r&&(o+=og(r)),o}const Gb=Symbol("break visit"),Zme=Symbol("skip children"),AF=Symbol("remove item");function Ta(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),FF(Object.freeze([]),e,t)}Ta.BREAK=Gb;Ta.SKIP=Zme;Ta.REMOVE=AF;Ta.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};Ta.parentCollection=(e,t)=>{const n=Ta.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 FF(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=FF(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Gb)return Gb;a===AF&&(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 jv="\uFEFF",Hv="",Vv="",jf="",ege=e=>!!e&&"items"in e,tge=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function nge(e){switch(e){case jv:return"<BOM>";case Hv:return"<DOC>";case Vv:return"<FLOW_END>";case jf:return"<SCALAR>";default:return JSON.stringify(e)}}function NF(e){switch(e){case jv:return"byte-order-mark";case Hv:return"doc-mode";case Vv:return"flow-error-end";case jf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
389
|
-
`:case`\r
|
|
390
|
-
`: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 rge=Object.freeze(Object.defineProperty({__proto__:null,BOM:jv,DOCUMENT:Hv,FLOW_END:Vv,SCALAR:jf,createScalarToken:Yme,isCollection:ege,isScalar:tge,prettyToken:nge,resolveAsScalar:qme,setScalarValue:Xme,stringify:Jme,tokenType:NF,visit:Ta},Symbol.toStringTag,{value:"Module"}));function Lo(e){switch(e){case void 0:case" ":case`
|
|
391
|
-
`:case"\r":case" ":return!0;default:return!1}}const P$="0123456789ABCDEFabcdef".split(""),oge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),r1=",[]{}".split(""),ige=` ,[]{}
|
|
392
|
-
\r `.split(""),o1=e=>!e||ige.includes(e);class DF{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===`
|
|
393
|
-
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
394
|
-
`:!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===`
|
|
395
|
-
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
396
|
-
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Lo(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(`
|
|
397
|
-
`,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]===jv&&(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 Hv,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==="---"&&Lo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Lo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Lo(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===":")&&Lo(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(o1),"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("..."))&&Lo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Vv,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(o1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Lo(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(`
|
|
398
|
-
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
399
|
-
`,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=>Lo(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`
|
|
400
|
-
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
401
|
-
`)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(`
|
|
402
|
-
`,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===`
|
|
403
|
-
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield jf,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(Lo(i)||t&&i===",")break;n=r}else if(Lo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
404
|
-
`?(r+=1,o=`
|
|
405
|
-
`,i=this.buffer[r+1]):n=r),i==="#"||t&&r1.includes(i))break;if(o===`
|
|
406
|
-
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&r1.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield jf,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(o1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Lo(n)||t&&r1.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(;!Lo(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(oge.includes(n))n=this.buffer[++t];else if(n==="%"&&P$.includes(this.buffer[t+1])&&P$.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===`
|
|
407
|
-
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
408
|
-
`?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 BF{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 li(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function k$(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 zF(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 Bh(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 yc(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 I$(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!li(t.start,"explicit-key-ind")&&!li(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,zF(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class vS{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 DF,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=NF(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"&&I$(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=!li(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&&k$(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":{k$(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=Bh(this.peek(2)),r=yc(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(`
|
|
409
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
410
|
-
`,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&&!li(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(li(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(li(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(zF(n.key)&&!li(n.sep,"newline")){const s=yc(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(li(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=yc(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]}):li(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"&&li(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||li(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=Bh(r),i=yc(o);I$(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(`
|
|
411
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
412
|
-
`,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=Bh(t),r=yc(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=Bh(t),r=yc(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 jF(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new BF||null,prettyErrors:t}}function sge(e,t={}){const{lineCounter:n,prettyErrors:r}=jF(t),o=new vS(n==null?void 0:n.addNewLine),i=new gS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(rg(e,n)),a.warnings.forEach(rg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function HF(e,t={}){const{lineCounter:n,prettyErrors:r}=jF(t),o=new vS(n==null?void 0:n.addNewLine),i=new gS(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 ca(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(rg(e,n)),s.warnings.forEach(rg(e,n))),s}function lge(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=HF(e,n);if(!o)return null;if(o.warnings.forEach(i=>cF(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 age(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 Bu(e,r,n).toString(n)}const _$=Object.freeze(Object.defineProperty({__proto__:null,Alias:Mv,CST:rge,Composer:gS,Document:Bu,Lexer:DF,LineCounter:BF,Pair:Sr,Parser:vS,Scalar:Et,Schema:zv,YAMLError:hS,YAMLMap:Bo,YAMLParseError:ca,YAMLSeq:Wa,YAMLWarning:IF,isAlias:Va,isCollection:Mn,isDocument:hp,isMap:Ua,isNode:Hn,isPair:In,isScalar:pn,isSeq:Fu,parse:lge,parseAllDocuments:sge,parseDocument:HF,stringify:age,visit:Ml,visitAsync:$v},Symbol.toStringTag,{value:"Module"}));var yS={},cge=st;Object.defineProperty(yS,"__esModule",{value:!0});var VF=yS.default=void 0,uge=cge(ct()),dge=lt(),fge=(0,uge.default)((0,dge.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");VF=yS.default=fge;var bS={},pge=st;Object.defineProperty(bS,"__esModule",{value:!0});var wS=bS.default=void 0,hge=pge(ct()),mge=lt(),gge=(0,hge.default)((0,mge.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");wS=bS.default=gge;function vge({file:e,anyMask:t,defaultPerms:n,addToBar:r,urls:o}){var R;const M=e,{parent:i,children:s,isRoot:a}=M,c=cn(M,["parent","children","isRoot"]),[f,p]=u.useState(c);u.useEffect(()=>{p(Object.assign({can_see:null,can_read:null,can_upload:null,can_delete:null},c))},[e]);const{source:h}=e,m=e.type==="folder",v=h!==void 0,b=v&&m,g=u.useMemo(()=>{const A={};let V=i;for(;V;)Kt.defaults(A,V),V=V.parent;return Kt.defaults(A,n)},[i]),x=v&&Boolean(f.ctime),C=v&&!b,P=ax(),{data:w,element:E}=yi("get_accounts");if(E||!w)return E;const k=w.list,_=(R=f.can_read)!=null?R:g.can_read;return u.createElement(rp,{values:f,set(A,V){V!=="link"&&p(Ut(Oe({},f),{[V]:A}))},barSx:Oe({gap:2,width:"100%"},P),stickyBar:!0,addToBar:[!a&&u.createElement(kn,{icon:xi,title:"Delete",confirm:"Delete?",onClick:()=>Mt("del_vfs",{uris:[e.id]}).then(()=>Ra())}),r],onError:dr,save:{sx:ux(!cx(f,e)),onClick(){return it(this,null,function*(){const A=Oe({},f);A.masks||(A.masks=null),yield Mt("set_vfs",{uri:f.id,props:A}),A.name!==e.name&&(En.selectedFiles[0].id=e.id.slice(0,-e.name.length)+A.name),Ra()})}},fields:[a?u.createElement(Yo,{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:h&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:bge,urls:o},{k:"source",label:"Source on disk",comp:ef,files:!m,folders:m,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},I("can_read","Who can download","Note: who can't download won't see it in the list"),_&&I("can_see","Who can see","You can hide and keep it downloadable if you have a direct link",{accounts:Array.isArray(_)?k.filter(A=>_.includes(A.username)):void 0}),m&&I("can_upload","Who can upload",v?"":"Works only on folders with source"),m&&I("can_delete","Who can delete",v?"":"Works only on folders with source"),C&&{k:"size",comp:om,lg:4,toField:_u},x&&{k:"ctime",comp:om,md:6,lg:C&&4,label:"Created",toField:$$},x&&{k:"mtime",comp:om,md:6,lg:C&&4,label:"Modified",toField:$$},e.website&&{k:"default",comp:ga,label:"Serve index.html",toField:Boolean,fromField:A=>A?"index.html":null,helperText:nl("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},m&&{k:"masks",multiline:!0,lg:!0,toField:_$.stringify,fromField:A=>A?_$.parse(A):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function I(A,V,j="",B={}){var W=B,{accounts:L=k}=W,D=cn(W,["accounts"]);return Oe({showInherited:t,k:A,lg:6,comp:yge,parent:i,accounts:L,label:V,inherit:g[A],helperText:j},D)}}function $$(e){return e?new Date(e).toLocaleString():"-"}function yge(c){var f=c,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s}=f,a=cn(f,["value","onChange","parent","inherit","accounts","helperText","showInherited"]);const p=u.useMemo(()=>$u([{value:null,label:(n?"Same as parent: ":"Default: ")+M$(r)},{value:!0},{value:!1},{value:"*"},{value:[],label:"Select accounts"}].map(m=>(m.value===e||s||m.value!==r)&&Oe({label:Kt.capitalize(M$(m.value))},m))),[r,n,e]),h=Array.isArray(e);return u.createElement("div",{},u.createElement(Mu,Ut(Oe({},a),{helperText:!h&&i,value:h?[]:e,onChange(m,{was:v,event:b}){t(m,{was:v,event:b})},options:p})),h&&u.createElement(nx,{label:o!=null&&o.length?"Choose accounts for "+a.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(m=>({value:m.username,label:m.username})))||[]}))}function M$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):"*UNKNOWN*"+JSON.stringify(e)}function bge({value:e,urls:t}){const{data:n,error:r,reload:o}=yi("get_config",{only:["base_url"]}),i=n==null?void 0:n.base_url,s=(i||(t?t[0]:""))+encodeURI(e||"");return u.createElement(rt,{display:"flex"},u.createElement(om,{label:"Link",value:s,error:r,end:u.createElement(rt,{},u.createElement(kn,{icon:VF,title:"Copy",onClick:()=>navigator.clipboard.writeText(s)}),u.createElement(kn,{icon:wS,title:"Change",onClick:a}))}));function a(){const c=new URL(t[0]).protocol+"//";ei({title:"Change link",onClose:o,Content(){const[f,p]=u.useState(i);return u.createElement(rt,{display:"flex",flexDirection:"column"},u.createElement(rt,{mb:2},"You can choose a different base address for your links"),u.createElement(dv,{},t.map(m=>u.createElement(rr,{key:m,selected:m===f,onClick:()=>h(m)},m))),u.createElement(ho,{label:"Custom address",helperText:"Use this field if you need to enter a different address",value:t.includes(f)?"":f.slice(c.length),onChange:m=>h(c+m),start:c,sx:{mt:2}}));function h(m){return it(this,null,function*(){yield Mt("set_config",{values:{base_url:m}}),p(m)})}}})}}let Kb;function wge(){var g,x,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Dl(),{data:r,reload:o,element:i}=yi("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>{return P(t);function P(w){var E;return!Kt.isEmpty(w==null?void 0:w.masks)||((E=w==null?void 0:w.children)==null?void 0:E.some(P))}},[t]),a="md",c=gu(a),[f]=ip(window.location.host==="localhost"&&"get_status"),p=u.useMemo(()=>{var P,w;return typeof f=="object"&&Kt.sortBy(Object.values(((P=f.urls)==null?void 0:P.https)||((w=f.urls)==null?void 0:w.http)||{}),E=>E.includes("["))},[f]);function h(){En.selectedFiles=[]}const m=n.length?n.length===1?u.createElement(vge,{addToBar:c&&u.createElement(kn,{icon:np,title:"Close",onClick:h}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,urls:p,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(lx,{alignItems:"center"},u.createElement(Cr,{variant:"h6"},n.length+" selected"),u.createElement(ur,{onClick:Cge,startIcon:u.createElement(xi)},"Remove")),u.createElement(cv,{dense:!0,disablePadding:!0},n.map(P=>u.createElement(AO,{key:P.id},u.createElement(uv,{primary:P.name,secondary:P.source}))))):null;if(u.useEffect(()=>{if(!(c||!m))return ei({title:n.length>1?"Multiple selection":n[0].name,Content:()=>m,onClose:h})},[c,n]),u.useEffect(()=>{if(En.vfs=void 0,!r)return;e.clear();const{root:P}=r;if(!P)return;E(P),P.isRoot=!0,En.vfs=P;const w=Kb||En.selectedFiles.map(k=>k.id);Kb=void 0,En.selectedFiles=$u(w.map(k=>e.get(k)));function E(k,_="",I=void 0){if(k.parent=I,k.id=uoe(_,k.name)||"/",e.set(k.id,k),!!k.children)for(const M of k.children)E(M,(_&&k.id)+"/",k)}},[r,e]),i)return e.clear(),i;const b=!((x=(g=r==null?void 0:r.root)==null?void 0:g.children)!=null&&x.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",Tre(" or ",p.slice(0,3).map(P=>u.createElement(_f,{href:P},P)))]};return u.createElement(Vn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},b&&u.createElement(Vn,{item:!0,mb:2,xs:12},u.createElement(Yo,b)),u.createElement(Vn,{item:!0,[a]:6,lg:5},u.createElement(Cr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Qhe),t&&u.createElement(xge,{id2node:e})),c&&m&&u.createElement(Vn,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(gO,{},u.createElement(vO,{},m))))}function Ra(e){Kb=e,En.vfs=void 0}function Cge(){return it(this,null,function*(){const e=En.selectedFiles;if(e.length&&(yield ws(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Kt.pull(t,"/");const{errors:n}=yield Mt("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return dr("Following elements couldn't be deleted: "+r.join(", "),"error");Ra()}catch(t){yield dr(t)}})}const UF=VA,WF=WA;function xge({id2node:e}){const{vfs:t,selectedFiles:n}=Dl(),[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 f="vfs";return u.createElement(vL,{ref:c,expanded:i,selected:r,multiSelect:!0,id:f,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,v){o(v),En.selectedFiles=$u(v.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var w,E;let{id:v,name:b,source:g,isRoot:x}=m;if(!v)debugger;const C=m.type==="folder";return C&&!EL(g)&&g===b&&(g="./"+g),u.createElement($b,{ref(k){k==null||k.addEventListener("focusin",_=>_.stopImmediatePropagation())},label:u.createElement(rt,{draggable:!x,onDragStart(){a.current=v},onDragOver(k){if(!C)return;const _=a.current;_!=null&&_.startsWith(v)&&!_.slice(v.length+1).includes("/")||k.preventDefault()},onDrop(){return it(this,null,function*(){const k=a.current;k&&(yield ws(`Moving ${k} under ${v}`))&&Mt("move_vfs",{from:k,parent:v}).then(()=>{Ra([Lie(v,Oie(k))])},dr)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(rt,{display:"flex",flex:0},x?lo(UA,"home, or root if you like"):C?lo(UF,"Folder"):lo(WF,"File"),u.createElement(rt,{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&&lo(xi,"Delete permission"),m.can_upload!==void 0?lo(eS,"Upload permission"):!x&&!m.source&&lo(qA,"Virtual (no source)"),p(m.can_see)&&lo(GA,"Restrictions on who can see"),p(m.can_read)&&lo(Ex,"Restrictions on who can download"),m.default&&lo(KA,"Act as website"),m.masks&&lo(HA,"Masks"),m.size===-1&&lo(YA,"Source missing"))),x?"Home":(g==null?void 0:g.length)<45&&(g!=null&&g.endsWith(b))?u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},g.slice(0,-b.length)),u.createElement("span",{},g.slice(-b.length))):u.createElement(rt,{lineHeight:"1.2em"},b)),key:b,collapseIcon:u.createElement(jA,{onClick(k){s(i.filter(_=>_!==v)),k.preventDefault(),k.stopPropagation()}}),expandIcon:u.createElement(zA,{onClick(k){s([...i,v]),k.preventDefault(),k.stopPropagation()}}),nodeId:v},x&&!((w=m.children)!=null&&w.length)?u.createElement($b,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=m.children)==null?void 0:E.map(h))}}var T$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Sge(e,t){return!!(e===t||T$(e)&&T$(t))}function Ege(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Sge(e[n],t[n]))return!1;return!0}function i1(e,t){t===void 0&&(t=Ege);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 Pge=typeof performance=="object"&&typeof performance.now=="function",R$=Pge?function(){return performance.now()}:function(){return Date.now()};function O$(e){cancelAnimationFrame(e.id)}function kge(e,t){var n=R$();function r(){R$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var bc=null;function L$(e){if(e===void 0&&(e=!1),bc===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?bc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?bc="negative":bc="positive-ascending"),document.body.removeChild(t),bc}return bc}var Ige=150,_ge=function(t,n){return t};function $ge(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){SC(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,pb(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:pb(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=i1(function(x,C,P,w){return g.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:C,visibleStartIndex:P,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=i1(function(x,C,P){return g.props.onScroll({scrollDirection:x,scrollOffset:C,scrollUpdateWasRequested:P})}),g._getItemStyle=void 0,g._getItemStyle=function(x){var C=g.props,P=C.direction,w=C.itemSize,E=C.layout,k=g._getItemStyleCache(f&&w,f&&E,f&&P),_;if(k.hasOwnProperty(x))_=k[x];else{var I=n(g.props,x,g._instanceProps),M=o(g.props,x,g._instanceProps),R=P==="horizontal"||E==="horizontal",O=P==="rtl",A=R?I:0;k[x]=_={position:"absolute",left:O?void 0:A,right:O?A:void 0,top:R?0:I,height:R?"100%":M,width:R?M:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=i1(function(x,C,P){return{}}),g._onScrollHorizontal=function(x){var C=x.currentTarget,P=C.clientWidth,w=C.scrollLeft,E=C.scrollWidth;g.setState(function(k){if(k.scrollOffset===w)return null;var _=g.props.direction,I=w;if(_==="rtl")switch(L$()){case"negative":I=-w;break;case"positive-descending":I=E-P-w;break}return I=Math.max(0,Math.min(I,E-P)),{isScrolling:!0,scrollDirection:k.scrollOffset<w?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(x){var C=x.currentTarget,P=C.clientHeight,w=C.scrollHeight,E=C.scrollTop;g.setState(function(k){if(k.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,w-P));return{isScrolling:!0,scrollDirection:k.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(x){var C=g.props.outerRef;g._outerRef=x,typeof C=="function"?C(x):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=x)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&O$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=kge(g._resetIsScrolling,Ige)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,x){return Mge(g,x),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(x){return x.scrollOffset===g?null:{scrollDirection:x.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,x){x===void 0&&(x="auto");var C=this.props.itemCount,P=this.state.scrollOffset;g=Math.max(0,Math.min(g,C-1)),this.scrollTo(i(this.props,g,x,P,this._instanceProps))},v.componentDidMount=function(){var g=this.props,x=g.direction,C=g.initialScrollOffset,P=g.layout;if(typeof C=="number"&&this._outerRef!=null){var w=this._outerRef;x==="horizontal"||P==="horizontal"?w.scrollLeft=C:w.scrollTop=C}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,x=g.direction,C=g.layout,P=this.state,w=P.scrollOffset,E=P.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var k=this._outerRef;if(x==="horizontal"||C==="horizontal")if(x==="rtl")switch(L$()){case"negative":k.scrollLeft=-w;break;case"positive-ascending":k.scrollLeft=w;break;default:var _=k.clientWidth,I=k.scrollWidth;k.scrollLeft=I-_-w;break}else k.scrollLeft=w;else k.scrollTop=w}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&O$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,x=g.children,C=g.className,P=g.direction,w=g.height,E=g.innerRef,k=g.innerElementType,_=g.innerTagName,I=g.itemCount,M=g.itemData,R=g.itemKey,O=R===void 0?_ge:R,A=g.layout,V=g.outerElementType,j=g.outerTagName,L=g.style,D=g.useIsScrolling,B=g.width,W=this.state.isScrolling,F=P==="horizontal"||A==="horizontal",z=F?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),q=G[0],X=G[1],ie=[];if(I>0)for(var ee=q;ee<=X;ee++)ie.push(u.createElement(x,{data:M,key:O(ee,M),index:ee,isScrolling:D?W:void 0,style:this._getItemStyle(ee)}));var se=r(this.props,this._instanceProps);return u.createElement(V||j||"div",{className:C,onScroll:z,ref:this._outerRefSetter,style:S({position:"relative",height:w,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},L)},u.createElement(k||_||"div",{children:ie,ref:E,style:{height:F?"100%":se,pointerEvents:W?"none":void 0,width:F?se:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var x=this._getRangeToRender(),C=x[0],P=x[1],w=x[2],E=x[3];this._callOnItemsRendered(C,P,w,E)}}if(typeof this.props.onScroll=="function"){var k=this.state,_=k.scrollDirection,I=k.scrollOffset,M=k.scrollUpdateWasRequested;this._callOnScroll(_,I,M)}},v._getRangeToRender=function(){var g=this.props,x=g.itemCount,C=g.overscanCount,P=this.state,w=P.isScrolling,E=P.scrollDirection,k=P.scrollOffset;if(x===0)return[0,0,0,0];var _=s(this.props,k,this._instanceProps),I=a(this.props,_,k,this._instanceProps),M=!w||E==="backward"?Math.max(1,C):1,R=!w||E==="forward"?Math.max(1,C):1;return[Math.max(0,_-M),Math.max(0,Math.min(x-1,I+R)),_,I]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Mge=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},Tge=$ge({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o){var i=t.direction,s=t.height,a=t.itemCount,c=t.itemSize,f=t.layout,p=t.width,h=i==="horizontal"||f==="horizontal",m=h?p:s,v=Math.max(0,a*c-m),b=Math.min(v,n*c),g=Math.max(0,n*c-m+c);switch(r==="smart"&&(o>=g-m&&o<=b+m?r="auto":r="center"),r){case"start":return b;case"end":return g;case"center":{var x=Math.round(g+(b-g)/2);return x<Math.ceil(m/2)?0:x>v+Math.floor(m/2)?v:x}case"auto":default:return o>=g&&o<=b?o:o<g?g:b}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,f=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?f:i,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function GF({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,f]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Mt("resolve_path",{path:i,closestFolder:!0}).then(V=>{typeof V.path=="string"&&(a(V.path),p.current=V.path[1]===":")}).finally(()=>f(!0))},[i]);const{list:h,error:m,loading:v}=Ba(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),C("")},[s]);const[b,g]=u.useState([]),[x,C]=u.useState(""),P=u.useMemo(()=>Kt.debounce(V=>C(V)),[]),w=u.useMemo(()=>{const V=new RegExp(Kt.escapeRegExp(x),"i");return j=>V.test(j)},[x]),[E,k]=u.useState(0),_=u.useMemo(()=>h.filter(V=>w(V.n)),[h,w]);if(v)return SL();const I=p.current?"":"/",M=p.current?"\\":"/",R=doe(M,s),O=s.length<2;return u.createElement(u.Fragment,{},u.createElement(rt,{display:"flex",gap:1},u.createElement(ur,{title:"root",disabled:O,onClick(){a(I)}},u.createElement(BA)),u.createElement(ur,{disabled:O,title:"parent folder",onClick(){const V=/[\\/]$/.test(s)?s.slice(0,-1):s,j=EL(V)?I:V.slice(0,V.lastIndexOf(M)||1);a(j)}},u.createElement(DA)),u.createElement(ho,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(V){return it(this,null,function*(){if(!V)return a(I);const j=yield Mt("resolve_path",{path:V});a(j.path)})}})),m?u.createElement(Yo,{severity:"error"},PL(m)):u.createElement(u.Fragment,{},u.createElement(rt,{ref(V){if(!V)return;const j=(V==null?void 0:V.clientHeight)-1;j-E>1&&k(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(Tge,{width:"100%",height:E,itemSize:46,itemCount:_.length,overscanCount:5,children({index:V,style:j}){const L=_[V],D=L.k==="d";return u.createElement(rr,{style:Ut(Oe({},j),{padding:0}),key:L.n,onClick(){D?a(R+L.n):e([R+L.n])}},t&&u.createElement(bO,{checked:b.includes(L.n),disabled:!r&&D,onClick(B){const W=L.n,F=b.filter(z=>z!==W);g(F.length<b.length?F:[...b,W]),B.stopPropagation()}}),u.createElement(FO,{},u.createElement(L.k?UF:WF)),u.createElement(uv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},L.n),!D&&L.s!==void 0&&u.createElement(Cr,{variant:"body2",color:"text.secondary",ml:4,mr:1},_u(L.s)))}}):u.createElement(fx,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(rt,{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(V=>R+V):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(tp,{value:x,label:`Filter results (${_.length}${_.length<h.length?"/"+h.length:""})`,onChange(V){P(V.target.value)},sx:{flex:1}}))))}function ef(c){var f=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=f,a=cn(f,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=gu("md");return u.createElement(ho,Ut(Oe({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(jm,{position:"end"},u.createElement(kn,{icon:NA,title:"Browse files...",edge:"end",onClick(){const h=ei({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(GF,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return it(this,null,function*(){var x;let b=v==null?void 0:v[0];if(!b)return;const g=(x=yield Mt("get_cwd"))==null?void 0:x.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}var CS={},Rge=st;Object.defineProperty(CS,"__esModule",{value:!0});var KF=CS.default=void 0,Oge=Rge(ct()),Lge=lt(),Age=(0,Oge.default)((0,Lge.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");KF=CS.default=Age;var xS={},Fge=st;Object.defineProperty(xS,"__esModule",{value:!0});var qF=xS.default=void 0,Nge=Fge(ct()),Dge=lt(),Bge=(0,Nge.default)((0,Dge.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");qF=xS.default=Bge;function zge(){var C,P,w;const e=" — ",{username:t}=Dl(),{data:n,reload:r,element:o}=yi("get_status"),{data:i}=yi("get_vfs"),[s]=ip(t&&"get_account"),{data:a,reload:c}=yi("get_config",{only:["https_port","cert","private_key","proxies","ignore_proxies"]}),{list:f}=Ba("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,b=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=fL(n,k=>k.busy?[`port ${k.port} already used by ${k.busy}${e}choose a `,zh("different port"),` or stop ${k.busy}`]:k.error),x=g&&$u(Object.entries(g).map(([k,_])=>_&&[nl(`Protocol _${k}_ cannot work: `),_,(SS(_)||ES(_))&&[e,u.createElement(_f,{sx:{cursor:"pointer"},onClick(){PS().then(c).then(r)}},"make one")," or ",e,zh("provide adequate files")]]));return u.createElement(rt,{display:"flex",gap:2,flexDirection:"column"},t&&Mi("","Welcome "+t),x.length?Vm(x.map(k=>Mi("error",Vm(k)))):Mi("success","Server is working"),i?!((P=(C=i.root)==null?void 0:C.children)!=null&&P.length)&&!((w=i.root)!=null&&w.source)?Mi("warning","You have no files shared",e,jge("add some")):Mi("",nl("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(_f,{target:"frontend",href:"/"},"Front-end",u.createElement(qF,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(DJ),!b&&Mi("warning","Frontend unreachable: ",["http","https"].map(k=>k+" "+(g[k]?"is in error":"is off")).join(", "),!x.length&&[e,zh("switch http or https on")]),f.find(k=>k.badApi)&&Mi("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&Mi("",nl("On _localhost_ you don't need to login"),e,u.createElement(dx,{to:"accounts"},nl("to access from another computer create an account with /admin/ permission"))),YF(a,n)&&Mi("warning","A proxy was detected but none is configured",e,zh("set the number of proxies"),e,"unless you are sure you can ",u.createElement(ur,{onClick(){return it(this,null,function*(){(yield ws("Go on only if you know what you are doing"))&&(yield Mt("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning")),n.frpDetected&&Mi("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",{},nl("configure FRP to connect to HFS _not_ with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))))}function Mi(e,...t){return u.createElement(rt,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:KF,info:du,"":du,warning:XC,error:pv}[e],{sx:{mb:"-3px",mr:1}}),...t)}function jge(e="File System page"){return u.createElement(dx,{to:"fs"},e)}function zh(e="Configuration page"){return u.createElement(dx,{to:"configuration"},e)}function YF(e,t){return e&&!e.proxies&&!e.ignore_proxies&&(t==null?void 0:t.proxyDetected)}let wl,qb;const XF=Iu({changes:{}});ix(En,"config",QF);const ig={log:"Access log file",error_log:"Access error log file"};function Hge(){var m;const{data:e,reload:t,element:n}=yi("get_config",{omit:["vfs"]});let r=Dl();const{changes:o}=hv(XF),i=yi(e&&"get_status"),s=i.data,a=qb=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>qb=void 0,[]);const c=(m=ip("get_admins")[0])==null?void 0:m.list;if(n)return n;if(i.error)return i.element;const f=wl!==e?En.config=wl=e:r.config,p={comp:ea,min:1,placeholder:"no limit",md:3};return u.createElement(rp,{sx:{maxWidth:"60em"},values:f,set(v,b){En.config[b]=v},stickyBar:!0,onError:dr,save:{onClick:h,sx:ux(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(ur,{onClick(){t(),a()},startIcon:u.createElement(op)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:A$,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:A$,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(v){return v>=0&&f.https_port<0&&!f.cert&&Uge(),v}},Ut(Oe({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Ut(Oe({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),f.https_port>=0&&Oe({k:"cert",comp:ef,label:"HTTPS certificate file"},L_(s==null?void 0:s.https.error,v=>SS(v)?{error:!0,helperText:[v," - ",u.createElement(_f,{key:"fix",sx:{cursor:"pointer"},onClick:PS},"make one")]}:null)),f.https_port>=0&&Oe({k:"private_key",comp:ef,label:"HTTPS private key file"},L_(s==null?void 0:s.https.error,v=>ES(v)?{error:!0,helperText:v}:null)),{k:"open_browser_at_start",comp:ga,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:ga,label:"Admin access for localhost connections",getError:v=>!v&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"To access Admin without entering credentials"},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:ef,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:Mu,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To avoid an endlessly-growing single log file, you can opt for rotation"},{k:"proxies",comp:ea,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:YF(f,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:Vge},{k:"dont_overwrite_uploading",comp:ga,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:ea,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:ea,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"zip_calculate_size_for_seconds",comp:ea,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"custom_header",multiline:!0,sm:12,md:6,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Any HTML code here will be displayed on top of the Frontend"},{k:"mime",comp:uie,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:v=>v.split(`
|
|
413
|
-
`).map(b=>b.trim()).filter(Boolean).map(b=>({ip:b})),toField:v=>Array.isArray(v)?v.map(b=>b==null?void 0:b.ip).filter(Boolean).join(`
|
|
414
|
-
`):""}]});function h(){return it(this,null,function*(){if(Kt.isEmpty(o))return vi("Nothing to save");const v=window.location,b=v.protocol==="http:"?o.port:o.https_port;if(!(b<=0&&!(yield ws("You are switching off the server port and you will be disconnected")))&&!(b>0&&!(yield ws("You are changing the port and you may be disconnected")))&&!(v.protocol==="https:"&&("cert"in o||"private_key"in o)&&!(yield ws("You may disrupt https service, kicking you out")))){if(yield Mt("set_config",{values:o}),b>0)return yield dr("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=v.protocol+"//"+v.hostname+":"+b+v.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(wl,o),QF(),vi("Changes applied","success")}})}}function QF(){const e={};if(En.config)for(const[t,n]of Object.entries(En.config))JSON.stringify(n)!==JSON.stringify(wl==null?void 0:wl[t])&&(e[t]=n);XF.changes=e}function SS(e){return/certificate/.test(e)}function ES(e){return/private key/.test(e)}function A$({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const f=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(SS(p)||ES(p)?p=void 0:s=!0),u.createElement(rt,{},u.createElement(rt,{display:"flex"},u.createElement(Mu,{sx:{flexGrow:1},label:e,error:s,value:f,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(ea,{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(av,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function Vge({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(rt,{display:"flex"},u.createElement(Mu,{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(ho,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:"Masks supported"}))}function Uge(){ei({Content:()=>u.createElement(rt,{},u.createElement(rt,{display:"flex",gap:1},u.createElement(du),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(rt,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(ur,{variant:"contained",onClick(){wi(),PS().then()}},"Help me!"),u.createElement(ur,{onClick:wi},"I will handle the matter myself")))})}function PS(){return it(this,null,function*(){if(!window.crypto.subtle)return dr("Retry this procedure on localhost","warning");const e=yield $f({fields:[u.createElement(rt,{display:"flex",gap:1},u.createElement(du),"We'll generate a basic certificate for you"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"}});if(!e)return;const t=Mie();try{const n=yield Mt("save_pem",yield Wge(e));yield Mt("set_config",{values:n}),wl&&Object.assign(wl,n),setTimeout(qb,1e3),Object.assign(En.config,n),yield dr("Certificate saved","success")}finally{t()}})}function Wge(e){return it(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)}})}var kS={},Gge=st;Object.defineProperty(kS,"__esModule",{value:!0});var JF=kS.default=void 0,Kge=Gge(ct()),qge=lt(),Yge=(0,Kge.default)((0,qge.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");JF=kS.default=Yge;var IS={},Xge=st;Object.defineProperty(IS,"__esModule",{value:!0});var ZF=IS.default=void 0,Qge=Xge(ct()),Jge=lt(),Zge=(0,Qge.default)((0,Jge.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");ZF=IS.default=Zge;var _S={},eve=st;Object.defineProperty(_S,"__esModule",{value:!0});var eN=_S.default=void 0,tve=eve(ct()),nve=lt(),rve=(0,tve.default)((0,nve.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");eN=_S.default=rve;var $S={},ove=st;Object.defineProperty($S,"__esModule",{value:!0});var tN=$S.default=void 0,ive=ove(ct()),sve=lt(),lve=(0,ive.default)((0,sve.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");tN=$S.default=lve;function ave({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,b;s(e),c(n.filter(g=>g!==e.username)),Sie()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(rp,{formRef:h,values:i,set(v,b){s(Ut(Oe({},i),{[b]:v}))},barSx:Oe({gap:2,width:"100%"},ax()),stickyBar:!0,addToBar:[!f&&u.createElement(kn,{icon:xi,title:"Delete",confirm:"Delete?",onClick:()=>Mt("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(rt,{flex:1}),nN(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&Mt("get_account",{username:v}).then(b=>b.username===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:ga,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Oe({k:"admin",comp:ga,xl:6,fromField:v=>v||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"belongs",comp:nx,label:"Inherits from",options:a,helperText:"Specify groups to inherit permissions from."+(a.length?"":" There are no groups available, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:dr,save:{sx:ux(!cx(i,e)),onClick(){return it(this,null,function*(){const w=i,{password:v="",password2:b,adminActualAccess:g}=w,x=cn(w,["password","password2","adminActualAccess"]),{username:C}=i;if(f){const E=yield Mt("add_account",x);if(v)try{yield F$(C,v)}catch(k){throw Mt("del_account",{username:C}).then(),k}t(E.username),vi("Account created","success");return}const P=yield Mt("set_account",{username:e.username,changes:x});v&&(yield F$(C,v)),setTimeout(()=>vi("Account modified","success"),1),t(P.username)})}}})}function F$(e,t){return it(this,null,function*(){const n=new ma.SRPRoutines(new ma.SRPParameters),r=yield ma.createVerifierAndSalt(n,e,t);return Mt("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Mt("change_password_others",{username:e,newPassword:t})})})}function cve(){const{username:e}=Dl(),{data:t,reload:n,element:r}=yi("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(g=>(g==null?void 0:g.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&Kt.find(a,{username:o[0]});function f(){i([])}const h=gu("md"),m=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(lx,{alignItems:"center"},u.createElement(Cr,{variant:"h6"},o.length+" selected"),u.createElement(ur,{onClick:v,startIcon:u.createElement(xi)},"Remove")),u.createElement(cv,{},o.map(b=>u.createElement(AO,{key:b},u.createElement(uv,{},b))))):u.createElement(ave,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:h&&u.createElement(kn,{icon:np,title:"Close",onClick:f}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(h||!m||!o.length))return ei({title:Kt.isString(o)?Kt.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>m,onClose:f})},[h,o,c]),r||u.createElement(Vn,{container:!0,maxWidth:"80em"},u.createElement(Vn,{item:!0,xs:12},u.createElement(rt,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(QA,{variant:"contained",startIcon:u.createElement(tN),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")}]},"Add"),u.createElement(kn,{icon:op,title:"Reload",onClick:n}),(a==null?void 0:a.length)>0&&u.createElement(Cr,{p:1},`${a.length} account(s)`))),u.createElement(Vn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Yo,{severity:"info"},nl`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(vL,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,g){i(g)}},a==null?void 0:a.map(b=>{var g,x;return u.createElement($b,{key:b.username,nodeId:b.username,label:u.createElement(rt,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},nN(b),b.adminActualAccess&&lo(ZF,"Can login into Admin"),b.username,Boolean((g=b.belongs)==null?void 0:g.length)&&u.createElement(rt,{sx:{color:"text.secondary",fontSize:"small"}},"(",(x=b.belongs)==null?void 0:x.join(", "),")"))})}))),h&&m&&u.createElement(Vn,{item:!0,md:7},u.createElement(gO,{},u.createElement(vO,{},m))));function v(){return it(this,null,function*(){if(o.length>Kt.pull(o,e).length&&(yield dr("Won't delete current account","warning")),!!o.length&&(yield ws(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield Mt("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return dr("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield dr(b)}})}}function nN(e,t={}){return u.createElement(e.hasPassword?eN:JF,t)}function uve(){const{element:e}=yi("get_config",{only:[]}),{username:t}=Dl();return e||(t?u.createElement(rt,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(rt,{},u.createElement(ur,{size:"large",variant:"contained",onClick(){Mt("logout").catch(n=>n.code!==401&&dr(n))}},"Yes, I want to logout"))):u.createElement(Yo,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function dve(){const{list:e,error:t,connecting:n,reload:r}=Ba("get_langs",void 0,{addId:!0});if(t)return t;return u.createElement(u.Fragment,{},u.createElement(Yo,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(Yo,{severity:"info"},"The front-end will automatically apply translation based on the language of the browser. You can force loading of a specific language by appending ?lang=CODE to the URL."),u.createElement(rt,{mb:1},u.createElement(ur,{variant:"contained",startIcon:u.createElement(eS),onClick:o},"Add")),u.createElement(Lu,{loading:n,rows:e,hideFooter:!0,sx:{maxWidth:"40em"},columns:[{field:"code",width:80},{field:"version",width:80},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){return u.createElement("div",{},u.createElement(kn,{icon:xi,title:"Delete",confirm:"Delete?",onClick(){return it(this,null,function*(){yield Mt("del_lang",Kt.pick(i,"code")),r(),vi("Deleted")})}}))}}]}));function o(){goe(i=>it(this,null,function*(){if(!i)return;const s={};for(const a of i)s[a.name]=yield voe(a);yield Mt("add_langs",{langs:s}),r(),vi("Loaded")}))}}function fve(){const[e,t]=u.useState(0),n=Rie(ig);return u.createElement(u.Fragment,{},u.createElement(KO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(WO,{label:ig[r],key:r}))),u.createElement(pve,{key:e,file:n[e]}))}function pve({file:e}){const{list:t,error:n,connecting:r}=Ba("get_log",{file:e},{addId:!0});return n||u.createElement(Lu,{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})=>_u(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}var MS={},hve=st;Object.defineProperty(MS,"__esModule",{value:!0});var rN=MS.default=void 0;vve(u);var mve=hve(ct()),gve=lt();function oN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oN=function(r){return r?n:t})(e)}function vve(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oN(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var yve=(0,mve.default)((0,gve.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");rN=MS.default=yve;var TS={},bve=st;Object.defineProperty(TS,"__esModule",{value:!0});var Yb=TS.default=void 0,wve=bve(ct()),Cve=lt(),xve=(0,wve.default)((0,Cve.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");Yb=TS.default=xve;var RS={},Sve=st;Object.defineProperty(RS,"__esModule",{value:!0});var iN=RS.default=void 0,Eve=Sve(ct()),Pve=lt(),kve=(0,Eve.default)((0,Pve.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");iN=RS.default=kve;function sN(c){var f=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=f,a=cn(f,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>poe(Oe({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Oe(Oe({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:bL(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(kn,{icon:Cv,title:"Add",onClick:m=>$f({fields:n}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(kn,{icon:wS,title:"Modify",onClick:b=>$f({fields:n,values:m}).then(g=>{if(!g)return;const x=r.map((C,P)=>P===v?g:C);o(x,{was:r,event:b})})}),u.createElement(kn,{icon:xi,title:"Delete",confirm:"Delete?",onClick(b){const g=r.filter((x,C)=>C!==v);o(g,{was:r,event:b})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(kO,{sx:{ml:1}},e),t&&u.createElement(av,{},t),u.createElement(rt,Oe({height:"20em"},a),u.createElement(Lu,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function N$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=Ba(e?"get_plugin_updates":"get_plugins");return r?cN(r):u.createElement(Lu,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:"No updates available. Only online plugins are checked."},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell({row:i,value:s}){return u.createElement(u.Fragment,{},s,typeof i.badApi=="string"&&u.createElement(fv,{title:i.badApi,children:u.createElement(pv,{color:"warning",sx:{ml:1}})}),aN(i.repo))}},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(uN,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(kn,i.started?{icon:Yb,title:u.createElement(rt,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>Mt("set_plugin",{id:a,enabled:!1}).then(()=>vi("Plugin is stopping",u.createElement(Yb,{color:"warning"})))}:{icon:xv,title:`Start ${a}`,onClick:()=>dN(a)}),u.createElement(kn,{icon:HC,title:"Configuration",disabled:!s&&"No configuration available for this plugin",onClick(){return it(this,null,function*(){const p=yield Mt("get_plugin",{id:a}),h=yield $f(Oe({title:`${a} configuration`,fields:[u.createElement(rt,{},i.description),...lN(s)],values:p.config},i.configDialog));!h||Kt.isEqual(p.config,h)||(yield Mt("set_plugin",{id:a,config:h}),vi("Configuration saved"))})}}),u.createElement(kn,{icon:xi,title:"Uninstall",confirm:"Remove?",onClick(){return it(this,null,function*(){yield Mt("uninstall_plugin",{id:a}),vi("Plugin uninstalled")})}}))}}]})}function lN(e){return Object.entries(e).map(([t,n])=>{if(!Kt.isPlainObject(n))return n;let c=n,{type:r,defaultValue:o,fields:i}=c,s=cn(c,["type","defaultValue","fields"]);const a=Ive[r];return a===sN&&(i=lN(i)),o!==void 0&&r==="boolean"&&(s.placeholder=`Default value is ${JSON.stringify(o)}`),Oe({k:t,comp:a,fields:i},s)})}const Ive={string:ho,number:ea,boolean:ga,select:Mu,multiselect:nx,array:sN,real_path:ef};function aN(e){return e&&u.createElement(kn,{icon:rN,title:"Open web page",link:"https://github.com/"+e})}function cN(e){return u.createElement(Yo,{severity:"error"},Aie(e,{ENOTFOUND:"Couldn't reach github.com"}))}function uN({id:e,then:t}){return u.createElement(kn,{icon:iN,title:"Update",onClick(){return it(this,null,function*(){yield Mt("update_plugin",{id:e}),t==null||t(e),vi("Plugin updated")})}})}function dN(e){return Mt("set_plugin",{id:e,enabled:!0}).then(()=>vi("Plugin is starting",u.createElement(xv,{color:"success"})))}var OS={},_ve=st;Object.defineProperty(OS,"__esModule",{value:!0});var fN=OS.default=void 0,$ve=_ve(ct()),Mve=lt(),Tve=(0,$ve.default)((0,Mve.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");fN=OS.default=Tve;var LS={},Rve=st;Object.defineProperty(LS,"__esModule",{value:!0});var pN=LS.default=void 0,Ove=Rve(ct()),Lve=lt(),Ave=(0,Ove.default)((0,Lve.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");pN=LS.default=Ave;function Fve(e,t,n){var r=this,o=u.useRef(null),i=u.useRef(0),s=u.useRef(null),a=u.useRef([]),c=u.useRef(),f=u.useRef(),p=u.useRef(e),h=u.useRef(!0);p.current=e;var m=!t&&t!==0&&typeof window!="undefined";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n=n||{};var v=!!n.leading,b="trailing"in n?!!n.trailing:!0,g="maxWait"in n,x=g?Math.max(+n.maxWait||0,t):null;u.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var C=u.useMemo(function(){var P=function(M){var R=a.current,O=c.current;return a.current=c.current=null,i.current=M,f.current=p.current.apply(O,R)},w=function(M,R){m&&cancelAnimationFrame(s.current),s.current=m?requestAnimationFrame(M):setTimeout(M,R)},E=function(M){if(!h.current)return!1;var R=M-o.current,O=M-i.current;return!o.current||R>=t||R<0||g&&O>=x},k=function(M){return s.current=null,b&&a.current?P(M):(a.current=c.current=null,f.current)},_=function(){var M=Date.now();if(E(M))return k(M);if(h.current){var R=M-o.current,O=M-i.current,A=t-R,V=g?Math.min(A,x-O):A;w(_,V)}},I=function(){for(var M=[],R=0;R<arguments.length;R++)M[R]=arguments[R];var O=Date.now(),A=E(O);if(a.current=M,c.current=r,o.current=O,A){if(!s.current&&h.current)return i.current=o.current,w(_,t),v?P(o.current):f.current;if(g)return w(_,t),P(o.current)}return s.current||w(_,t),f.current};return I.cancel=function(){s.current&&(m?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=c.current=s.current=null},I.isPending=function(){return!!s.current},I.flush=function(){return s.current?k(Date.now()):f.current},I},[v,g,t,x,b,m]);return C}function Nve(e,t){return e===t}function D$(e){return typeof e=="function"?function(){return e}:e}function Dve(e){var t=u.useState(D$(e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(D$(i))},[]);return[n,o]}function Bve(e,t,n){var r=n&&n.equalityFn||Nve,o=Dve(e),i=o[0],s=o[1],a=Fve(u.useCallback(function(f){return s(f)},[s]),t,n),c=u.useRef(e);return r(c.current,e)||(a(e),c.current=e),[i,a]}function zve(){const[e,t]=u.useState(""),[n]=Bve(e,1e3),{list:r,error:o,initializing:i,updateList:s}=Ba("search_online_plugins",{text:n}),a=Dl();return o?cN(o):u.createElement(u.Fragment,{},u.createElement(ho,{value:e,onChange:t,start:u.createElement(pN),typing:!0,label:"Search text"}),u.createElement(Lu,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(En.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:f,branch:p}=c;return u.createElement("div",{},aN(f),c.update?u.createElement(uN,{id:f,then(){s(m=>Kt.find(m,{id:f}).update=!1)}}):u.createElement(kn,{icon:fN,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 it(this,null,function*(){const{id:m}=yield Mt("download_plugin",{id:f,branch:p});(yield ws(nl(`Plugin /${f}/ installed.
|
|
415
|
-
Do you want to start it now?`)))&&(yield dN(m))})}}))}}]}))}const hN={Installed:N$,"Search online":zve,"Check updates":()=>u.createElement(N$,{updates:!0})},jve=Object.keys(hN),Hve=Object.values(hN);function Vve(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(KO,{value:e,onChange(n,r){t(r)}},jve.map(n=>u.createElement(WO,{label:n,key:n}))),u.createElement(Hve[e]))}const Xb=[{path:"",icon:eL,label:"Home",title:"Admin panel",comp:zge},{path:"fs",icon:qO,label:"Shared files",comp:wge},{path:"accounts",icon:JO,comp:cve},{path:"configuration",icon:HC,comp:Hge},{path:"monitoring",icon:ZO,comp:Vpe},{path:"logs",icon:XO,comp:fve},{path:"language",icon:tL,comp:dve},{path:"plugins",icon:YO,comp:Vve},{path:"logout",icon:QO,comp:uve}];let s1;function B$({onSelect:e}){var n;const[t]=ip(!s1&&"get_status");return s1||(s1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(rt,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(cv,{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(rt,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Cr,{variant:"h3"},"HFS"),u.createElement(rt,{pb:1,fontSize:"small"},s1)),Xb.map(r=>u.createElement(uZ,{key:r.path,to:r.path,component:LH,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(FO,{sx:{color:"primary.contrastText"}},u.createElement(r.icon)),u.createElement(uv,{primary:mN(r)}))),u.createElement(rt,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function mN(e){var t;return e&&((t=e.label)!=null?t:Kt.capitalize(e.path))}function Uve({children:e}){const{loginRequired:t}=Dl();return t===403?u.createElement(fx,{},u.createElement(Yo,{severity:"error"},"Admin-panel only for localhost"),u.createElement(rt,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Wve):u.createElement(u.Fragment,{},e)}function Wve(){const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState("");return u.createElement(fx,{},u.createElement(rp,{values:e,set(i,s){t(Ut(Oe({},e),{[s]:i}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Yo,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return it(this,null,function*(){try{r(""),yield Gve(e.username,e.password)}catch(i){r(String(i))}})}}}))}function Gve(e,t){return it(this,null,function*(){const n=yield coe(e,t,Mt).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";En.loginRequired=!1,AS(n)})}AS(window.SESSION);function AS(e){if(!e)return;const{exp:t,username:n}=e;if(En.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>Mt("refresh_session").then(AS),o)}var FS={},Kve=st;Object.defineProperty(FS,"__esModule",{value:!0});var gN=FS.default=void 0,qve=Kve(ct()),Yve=lt(),Xve=(0,qve.default)((0,Yve.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");gN=FS.default=Xve;function Qve(){return u.createElement($U,{theme:_ie()},u.createElement(Jve,{},u.createElement(Uve,{},u.createElement(RH,{},u.createElement(Zve)))))}function Jve(e){return u.createElement(rt,Oe({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Zve(){const e=xu().pathname.slice(1),t=Xb.find(s=>s.path===e),n=t&&(t.title||mN(t)),[r,o]=u.useState(!1),i=gu("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(eye,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(vQ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(B$,{onSelect:()=>o(!1)})),u.createElement(rt,{display:"flex",flex:1},i&&u.createElement(B$),u.createElement(rt,{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(Cr,{variant:"h2",mb:2},n),u.createElement($H,{},Xb.map((s,a)=>u.createElement(eR,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(Zre)))}function eye({title:e,openMenu:t}){return u.createElement(wq,{position:"sticky",sx:{mb:2}},u.createElement(GO,{},u.createElement(tr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(gN)),e))}YT(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Qve)));export{uo as c};
|