hfs 0.44.0 → 0.45.0-alpha3

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.
@@ -0,0 +1,510 @@
1
+ var Mz=Object.defineProperty,Rz=Object.defineProperties;var Oz=Object.getOwnPropertyDescriptors;var vh=Object.getOwnPropertySymbols;var HP=Object.prototype.hasOwnProperty,VP=Object.prototype.propertyIsEnumerable;var ys=Math.pow,E0=(e,t,n)=>t in e?Mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ke=(e,t)=>{for(var n in t||(t={}))HP.call(t,n)&&E0(e,n,t[n]);if(vh)for(var n of vh(t))VP.call(t,n)&&E0(e,n,t[n]);return e},kt=(e,t)=>Rz(e,Oz(t));var nn=(e,t)=>{var n={};for(var r in e)HP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vh)for(var r of vh(e))t.indexOf(r)<0&&VP.call(e,r)&&(n[r]=e[r]);return n};var Ai=(e,t,n)=>(E0(e,typeof t!="symbol"?t+"":t,n),n);var rt=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(d){o(d)}},s=c=>{try{a(n.throw(c))}catch(d){o(d)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Lz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var bn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Az(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 w$={exports:{}},Bt={};/**
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 tp=Symbol.for("react.element"),Fz=Symbol.for("react.portal"),Nz=Symbol.for("react.fragment"),Dz=Symbol.for("react.strict_mode"),Bz=Symbol.for("react.profiler"),zz=Symbol.for("react.provider"),jz=Symbol.for("react.context"),Hz=Symbol.for("react.forward_ref"),Vz=Symbol.for("react.suspense"),Uz=Symbol.for("react.memo"),Wz=Symbol.for("react.lazy"),UP=Symbol.iterator;function Gz(e){return e===null||typeof e!="object"?null:(e=UP&&e[UP]||e["@@iterator"],typeof e=="function"?e:null)}var C$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x$=Object.assign,S$={};function Ru(e,t,n){this.props=e,this.context=t,this.refs=S$,this.updater=n||C$}Ru.prototype.isReactComponent={};Ru.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")};Ru.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function E$(){}E$.prototype=Ru.prototype;function Iw(e,t,n){this.props=e,this.context=t,this.refs=S$,this.updater=n||C$}var _w=Iw.prototype=new E$;_w.constructor=Iw;x$(_w,Ru.prototype);_w.isPureReactComponent=!0;var WP=Array.isArray,P$=Object.prototype.hasOwnProperty,$w={current:null},k$={key:!0,ref:!0,__self:!0,__source:!0};function I$(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)P$.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),d=0;d<a;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:tp,type:e,key:i,ref:s,props:o,_owner:$w.current}}function Kz(e,t){return{$$typeof:tp,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===tp}function qz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var GP=/\/+/g;function P0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qz(""+e.key):t.toString(36)}function Zh(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 tp:case Fz:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+P0(s,0):r,WP(o)?(n="",e!=null&&(n=e.replace(GP,"$&/")+"/"),Zh(o,t,n,"",function(d){return d})):o!=null&&(Tw(o)&&(o=Kz(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(GP,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",WP(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+P0(i,a);s+=Zh(i,t,n,c,o)}else if(c=Gz(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+P0(i,a++),s+=Zh(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 yh(e,t,n){if(e==null)return e;var r=[],o=0;return Zh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Yz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jr={current:null},em={transition:null},Xz={ReactCurrentDispatcher:jr,ReactCurrentBatchConfig:em,ReactCurrentOwner:$w};Bt.Children={map:yh,forEach:function(e,t,n){yh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yh(e,function(){t++}),t},toArray:function(e){return yh(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}};Bt.Component=Ru;Bt.Fragment=Nz;Bt.Profiler=Bz;Bt.PureComponent=Iw;Bt.StrictMode=Dz;Bt.Suspense=Vz;Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xz;Bt.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=x$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=$w.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)P$.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 d=0;d<c;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:tp,type:e.type,key:o,ref:i,props:r,_owner:s}};Bt.createContext=function(e){return e={$$typeof:jz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zz,_context:e},e.Consumer=e};Bt.createElement=I$;Bt.createFactory=function(e){var t=I$.bind(null,e);return t.type=e,t};Bt.createRef=function(){return{current:null}};Bt.forwardRef=function(e){return{$$typeof:Hz,render:e}};Bt.isValidElement=Tw;Bt.lazy=function(e){return{$$typeof:Wz,_payload:{_status:-1,_result:e},_init:Yz}};Bt.memo=function(e,t){return{$$typeof:Uz,type:e,compare:t===void 0?null:t}};Bt.startTransition=function(e){var t=em.transition;em.transition={};try{e()}finally{em.transition=t}};Bt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Bt.useCallback=function(e,t){return jr.current.useCallback(e,t)};Bt.useContext=function(e){return jr.current.useContext(e)};Bt.useDebugValue=function(){};Bt.useDeferredValue=function(e){return jr.current.useDeferredValue(e)};Bt.useEffect=function(e,t){return jr.current.useEffect(e,t)};Bt.useId=function(){return jr.current.useId()};Bt.useImperativeHandle=function(e,t,n){return jr.current.useImperativeHandle(e,t,n)};Bt.useInsertionEffect=function(e,t){return jr.current.useInsertionEffect(e,t)};Bt.useLayoutEffect=function(e,t){return jr.current.useLayoutEffect(e,t)};Bt.useMemo=function(e,t){return jr.current.useMemo(e,t)};Bt.useReducer=function(e,t,n){return jr.current.useReducer(e,t,n)};Bt.useRef=function(e){return jr.current.useRef(e)};Bt.useState=function(e){return jr.current.useState(e)};Bt.useSyncExternalStore=function(e,t,n){return jr.current.useSyncExternalStore(e,t,n)};Bt.useTransition=function(){return jr.current.useTransition()};Bt.version="18.2.0";w$.exports=Bt;var u=w$.exports;const xo=ep(u),Ia=Lz({__proto__:null,default:xo},[u]);var _$={exports:{}},Ro={},$$={exports:{}},T$={};/**
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(N,z){var W=N.length;N.push(z);e:for(;0<W;){var q=W-1>>>1,X=N[q];if(0<o(X,z))N[q]=z,N[W]=X,W=q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var z=N[0],W=N.pop();if(W!==z){N[0]=W;e:for(var q=0,X=N.length,ie=X>>>1;q<ie;){var J=2*(q+1)-1,fe=N[J],Q=J+1,le=N[Q];if(0>o(fe,W))Q<X&&0>o(le,fe)?(N[q]=le,N[Q]=W,q=Q):(N[q]=fe,N[J]=W,q=J);else if(Q<X&&0>o(le,W))N[q]=le,N[Q]=W,q=Q;else break e}}return z}function o(N,z){var W=N.sortIndex-z.sortIndex;return W!==0?W:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],p=1,h=null,m=3,v=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=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(N){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=N)r(d),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(d)}}function S(N){if(g=!1,w(N),!b)if(n(c)!==null)b=!0,j(k);else{var z=n(d);z!==null&&G(S,z.startTime-N)}}function k(N,z){b=!1,g&&(g=!1,C(T),T=-1),v=!0;var W=m;try{for(w(z),h=n(c);h!==null&&(!(h.expirationTime>z)||N&&!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 J=n(d);J!==null&&G(S,J.startTime-z),ie=!1}return ie}finally{h=null,m=W,v=!1}}var _=!1,I=null,T=-1,O=5,R=-1;function A(){return!(e.unstable_now()-R<O)}function V(){if(I!==null){var N=e.unstable_now();R=N;var z=!0;try{z=I(!0,N)}finally{z?B():(_=!1,I=null)}}else _=!1}var B;if(typeof E=="function")B=function(){E(V)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,F=L.port2;L.port1.onmessage=V,B=function(){F.postMessage(null)}}else B=function(){x(V,0)};function j(N){I=N,_||(_=!0,B())}function G(N,z){T=x(function(){N(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(N){N.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,j(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var W=m;m=z;try{return N()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var W=m;m=N;try{return z()}finally{m=W}},e.unstable_scheduleCallback=function(N,z,W){var q=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?q+W:q):W=q,N){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=W+X,N={id:p++,callback:z,priorityLevel:N,startTime:W,expirationTime:X,sortIndex:-1},W>q?(N.sortIndex=W,t(d,N),n(c)===null&&N===n(d)&&(g?(C(T),T=-1):g=!0,G(S,W-q))):(N.sortIndex=X,t(c,N),b||v||(b=!0,j(k))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var z=m;return function(){var W=m;m=z;try{return N.apply(this,arguments)}finally{m=W}}}})(T$);$$.exports=T$;var Qz=$$.exports;/**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var M$=u,Io=Qz;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 R$=new Set,gf={};function Wa(e,t){du(e,t),du(e+"Capture",t)}function du(e,t){for(gf[e]=t,e=0;e<t.length;e++)R$.add(t[e])}var Ls=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),N1=Object.prototype.hasOwnProperty,Jz=/^[: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]*$/,KP={},qP={};function Zz(e){return N1.call(qP,e)?!0:N1.call(KP,e)?!1:Jz.test(e)?qP[e]=!0:(KP[e]=!0,!1)}function e6(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t6(e,t,n,r){if(t===null||typeof t=="undefined"||e6(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Hr(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 yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yr[e]=new Hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yr[t]=new Hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yr[e]=new Hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yr[e]=new Hr(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){yr[e]=new Hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yr[e]=new Hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yr[e]=new Hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yr[e]=new Hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yr[e]=new Hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mw=/[\-:]([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(Mw,Rw);yr[t]=new Hr(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(Mw,Rw);yr[t]=new Hr(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(Mw,Rw);yr[t]=new Hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!1,!1)});yr.xlinkHref=new Hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yr[e]=new Hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ow(e,t,n,r){var o=yr.hasOwnProperty(t)?yr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t6(t,n,o,r)&&(n=null),r||o===null?Zz(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 Us=M$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bh=Symbol.for("react.element"),Lc=Symbol.for("react.portal"),Ac=Symbol.for("react.fragment"),Lw=Symbol.for("react.strict_mode"),D1=Symbol.for("react.profiler"),O$=Symbol.for("react.provider"),L$=Symbol.for("react.context"),Aw=Symbol.for("react.forward_ref"),B1=Symbol.for("react.suspense"),z1=Symbol.for("react.suspense_list"),Fw=Symbol.for("react.memo"),cl=Symbol.for("react.lazy"),A$=Symbol.for("react.offscreen"),YP=Symbol.iterator;function hd(e){return e===null||typeof e!="object"?null:(e=YP&&e[YP]||e["@@iterator"],typeof e=="function"?e:null)}var Fn=Object.assign,k0;function Fd(e){if(k0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k0=t&&t[1]||""}return`
26
+ `+k0+e}var I0=!1;function _0(e,t){if(!e||I0)return"";I0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
27
+ `),i=r.stack.split(`
28
+ `),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
29
+ `+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{I0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fd(e):""}function n6(e){switch(e.tag){case 5:return Fd(e.type);case 16:return Fd("Lazy");case 13:return Fd("Suspense");case 19:return Fd("SuspenseList");case 0:case 2:case 15:return e=_0(e.type,!1),e;case 11:return e=_0(e.type.render,!1),e;case 1:return e=_0(e.type,!0),e;default:return""}}function j1(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 Ac:return"Fragment";case Lc:return"Portal";case D1:return"Profiler";case Lw:return"StrictMode";case B1:return"Suspense";case z1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L$:return(e.displayName||"Context")+".Consumer";case O$:return(e._context.displayName||"Context")+".Provider";case Aw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fw:return t=e.displayName||null,t!==null?t:j1(e.type)||"Memo";case cl:t=e._payload,e=e._init;try{return j1(e(t))}catch(n){}}return null}function r6(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 j1(t);case 8:return t===Lw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Nl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function F$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o6(e){var t=F$(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 wh(e){e._valueTracker||(e._valueTracker=o6(e))}function N$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=F$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pm(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 H1(e,t){var n=t.checked;return Fn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function XP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D$(e,t){t=t.checked,t!=null&&Ow(e,"checked",t,!1)}function V1(e,t){D$(e,t);var n=Nl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?U1(e,t.type,n):t.hasOwnProperty("defaultValue")&&U1(e,t.type,Nl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function QP(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 U1(e,t,n){(t!=="number"||Pm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nd=Array.isArray;function Xc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Nl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function W1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return Fn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function JP(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(Nd(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Nl(n)}}function B$(e,t){var n=Nl(t.value),r=Nl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ZP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function z$(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 G1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ch,j$=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(Ch=Ch||document.createElement("div"),Ch.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ch.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qd={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},i6=["Webkit","ms","Moz","O"];Object.keys(qd).forEach(function(e){i6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qd[t]=qd[e]})});function H$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qd.hasOwnProperty(e)&&qd[e]?(""+t).trim():t+"px"}function V$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=H$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var s6=Fn({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 K1(e,t){if(t){if(s6[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 q1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Y1=null;function Nw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var X1=null,Qc=null,Jc=null;function ek(e){if(e=op(e)){if(typeof X1!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=_g(t),X1(e.stateNode,e.type,t))}}function U$(e){Qc?Jc?Jc.push(e):Jc=[e]:Qc=e}function W$(){if(Qc){var e=Qc,t=Jc;if(Jc=Qc=null,ek(e),t)for(e=0;e<t.length;e++)ek(t[e])}}function G$(e,t){return e(t)}function K$(){}var $0=!1;function q$(e,t,n){if($0)return e(t,n);$0=!0;try{return G$(e,t,n)}finally{$0=!1,(Qc!==null||Jc!==null)&&(K$(),W$())}}function yf(e,t){var n=e.stateNode;if(n===null)return null;var r=_g(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 Q1=!1;if(Ls)try{var md={};Object.defineProperty(md,"passive",{get:function(){Q1=!0}}),window.addEventListener("test",md,md),window.removeEventListener("test",md,md)}catch(e){Q1=!1}function l6(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var Yd=!1,km=null,Im=!1,J1=null,a6={onError:function(e){Yd=!0,km=e}};function c6(e,t,n,r,o,i,s,a,c){Yd=!1,km=null,l6.apply(a6,arguments)}function u6(e,t,n,r,o,i,s,a,c){if(c6.apply(this,arguments),Yd){if(Yd){var d=km;Yd=!1,km=null}else throw Error(Me(198));Im||(Im=!0,J1=d)}}function Ga(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 Y$(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 tk(e){if(Ga(e)!==e)throw Error(Me(188))}function d6(e){var t=e.alternate;if(!t){if(t=Ga(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 tk(o),e;if(i===r)return tk(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 X$(e){return e=d6(e),e!==null?Q$(e):null}function Q$(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Q$(e);if(t!==null)return t;e=e.sibling}return null}var J$=Io.unstable_scheduleCallback,nk=Io.unstable_cancelCallback,f6=Io.unstable_shouldYield,p6=Io.unstable_requestPaint,Wn=Io.unstable_now,h6=Io.unstable_getCurrentPriorityLevel,Dw=Io.unstable_ImmediatePriority,Z$=Io.unstable_UserBlockingPriority,_m=Io.unstable_NormalPriority,m6=Io.unstable_LowPriority,eT=Io.unstable_IdlePriority,Eg=null,Gi=null;function g6(e){if(Gi&&typeof Gi.onCommitFiberRoot=="function")try{Gi.onCommitFiberRoot(Eg,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Si=Math.clz32?Math.clz32:b6,v6=Math.log,y6=Math.LN2;function b6(e){return e>>>=0,e===0?32:31-(v6(e)/y6|0)|0}var xh=64,Sh=4194304;function Dd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $m(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Dd(a):(i&=s,i!==0&&(r=Dd(i)))}else s=n&~o,s!==0?r=Dd(s):i!==0&&(r=Dd(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-Si(t),o=1<<n,r|=e[n],t&=~o;return r}function w6(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 C6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Si(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=w6(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function Z1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tT(){var e=xh;return xh<<=1,!(xh&4194240)&&(xh=64),e}function T0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function np(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Si(t),e[t]=n}function x6(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-Si(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Bw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Si(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var en=0;function nT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rT,zw,oT,iT,sT,eb=!1,Eh=[],Pl=null,kl=null,Il=null,bf=new Map,wf=new Map,ml=[],S6="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 rk(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":bf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wf.delete(t.pointerId)}}function gd(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=op(t),t!==null&&zw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function E6(e,t,n,r,o){switch(t){case"focusin":return Pl=gd(Pl,e,t,n,r,o),!0;case"dragenter":return kl=gd(kl,e,t,n,r,o),!0;case"mouseover":return Il=gd(Il,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return bf.set(i,gd(bf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,wf.set(i,gd(wf.get(i)||null,e,t,n,r,o)),!0}return!1}function lT(e){var t=ha(e.target);if(t!==null){var n=Ga(t);if(n!==null){if(t=n.tag,t===13){if(t=Y$(n),t!==null){e.blockedOn=t,sT(e.priority,function(){oT(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 tm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Y1=r,n.target.dispatchEvent(r),Y1=null}else return t=op(n),t!==null&&zw(t),e.blockedOn=n,!1;t.shift()}return!0}function ok(e,t,n){tm(e)&&n.delete(t)}function P6(){eb=!1,Pl!==null&&tm(Pl)&&(Pl=null),kl!==null&&tm(kl)&&(kl=null),Il!==null&&tm(Il)&&(Il=null),bf.forEach(ok),wf.forEach(ok)}function vd(e,t){e.blockedOn===t&&(e.blockedOn=null,eb||(eb=!0,Io.unstable_scheduleCallback(Io.unstable_NormalPriority,P6)))}function Cf(e){function t(o){return vd(o,e)}if(0<Eh.length){vd(Eh[0],e);for(var n=1;n<Eh.length;n++){var r=Eh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pl!==null&&vd(Pl,e),kl!==null&&vd(kl,e),Il!==null&&vd(Il,e),bf.forEach(t),wf.forEach(t),n=0;n<ml.length;n++)r=ml[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ml.length&&(n=ml[0],n.blockedOn===null);)lT(n),n.blockedOn===null&&ml.shift()}var Zc=Us.ReactCurrentBatchConfig,Tm=!0;function k6(e,t,n,r){var o=en,i=Zc.transition;Zc.transition=null;try{en=1,jw(e,t,n,r)}finally{en=o,Zc.transition=i}}function I6(e,t,n,r){var o=en,i=Zc.transition;Zc.transition=null;try{en=4,jw(e,t,n,r)}finally{en=o,Zc.transition=i}}function jw(e,t,n,r){if(Tm){var o=tb(e,t,n,r);if(o===null)z0(e,t,r,Mm,n),rk(e,r);else if(E6(o,e,t,n,r))r.stopPropagation();else if(rk(e,r),t&4&&-1<S6.indexOf(e)){for(;o!==null;){var i=op(o);if(i!==null&&rT(i),i=tb(e,t,n,r),i===null&&z0(e,t,r,Mm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else z0(e,t,r,null,n)}}var Mm=null;function tb(e,t,n,r){if(Mm=null,e=Nw(r),e=ha(e),e!==null)if(t=Ga(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Y$(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Mm=e,null}function aT(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(h6()){case Dw:return 1;case Z$:return 4;case _m:case m6:return 16;case eT:return 536870912;default:return 16}default:return 16}}var yl=null,Hw=null,nm=null;function cT(){if(nm)return nm;var e,t=Hw,n=t.length,r,o="value"in yl?yl.value:yl.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 nm=o.slice(e,1<r?1-r:void 0)}function rm(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 Ph(){return!0}function ik(){return!1}function Oo(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)?Ph:ik,this.isPropagationStopped=ik,this}return Fn(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=Ph)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ph)},persist:function(){},isPersistent:Ph}),t}var Ou={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vw=Oo(Ou),rp=Fn({},Ou,{view:0,detail:0}),_6=Oo(rp),M0,R0,yd,Pg=Fn({},rp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uw,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!==yd&&(yd&&e.type==="mousemove"?(M0=e.screenX-yd.screenX,R0=e.screenY-yd.screenY):R0=M0=0,yd=e),M0)},movementY:function(e){return"movementY"in e?e.movementY:R0}}),sk=Oo(Pg),$6=Fn({},Pg,{dataTransfer:0}),T6=Oo($6),M6=Fn({},rp,{relatedTarget:0}),O0=Oo(M6),R6=Fn({},Ou,{animationName:0,elapsedTime:0,pseudoElement:0}),O6=Oo(R6),L6=Fn({},Ou,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A6=Oo(L6),F6=Fn({},Ou,{data:0}),lk=Oo(F6),N6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D6={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"},B6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B6[e])?!!t[e]:!1}function Uw(){return z6}var j6=Fn({},rp,{key:function(e){if(e.key){var t=N6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uw,charCode:function(e){return e.type==="keypress"?rm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H6=Oo(j6),V6=Fn({},Pg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ak=Oo(V6),U6=Fn({},rp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uw}),W6=Oo(U6),G6=Fn({},Ou,{propertyName:0,elapsedTime:0,pseudoElement:0}),K6=Oo(G6),q6=Fn({},Pg,{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}),Y6=Oo(q6),X6=[9,13,27,32],Ww=Ls&&"CompositionEvent"in window,Xd=null;Ls&&"documentMode"in document&&(Xd=document.documentMode);var Q6=Ls&&"TextEvent"in window&&!Xd,uT=Ls&&(!Ww||Xd&&8<Xd&&11>=Xd),ck=String.fromCharCode(32),uk=!1;function dT(e,t){switch(e){case"keyup":return X6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fc=!1;function J6(e,t){switch(e){case"compositionend":return fT(t);case"keypress":return t.which!==32?null:(uk=!0,ck);case"textInput":return e=t.data,e===ck&&uk?null:e;default:return null}}function Z6(e,t){if(Fc)return e==="compositionend"||!Ww&&dT(e,t)?(e=cT(),nm=Hw=yl=null,Fc=!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 uT&&t.locale!=="ko"?null:t.data;default:return null}}var e9={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e9[e.type]:t==="textarea"}function pT(e,t,n,r){U$(r),t=Rm(t,"onChange"),0<t.length&&(n=new Vw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qd=null,xf=null;function t9(e){ET(e,0)}function kg(e){var t=Bc(e);if(N$(t))return e}function n9(e,t){if(e==="change")return t}var hT=!1;if(Ls){var L0;if(Ls){var A0="oninput"in document;if(!A0){var fk=document.createElement("div");fk.setAttribute("oninput","return;"),A0=typeof fk.oninput=="function"}L0=A0}else L0=!1;hT=L0&&(!document.documentMode||9<document.documentMode)}function pk(){Qd&&(Qd.detachEvent("onpropertychange",mT),xf=Qd=null)}function mT(e){if(e.propertyName==="value"&&kg(xf)){var t=[];pT(t,xf,e,Nw(e)),q$(t9,t)}}function r9(e,t,n){e==="focusin"?(pk(),Qd=t,xf=n,Qd.attachEvent("onpropertychange",mT)):e==="focusout"&&pk()}function o9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kg(xf)}function i9(e,t){if(e==="click")return kg(t)}function s9(e,t){if(e==="input"||e==="change")return kg(t)}function l9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ii=typeof Object.is=="function"?Object.is:l9;function Sf(e,t){if(Ii(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(!N1.call(t,o)||!Ii(e[o],t[o]))return!1}return!0}function hk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mk(e,t){var n=hk(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=hk(n)}}function gT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vT(){for(var e=window,t=Pm();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=Pm(e.document)}return t}function Gw(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 a9(e){var t=vT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gT(n.ownerDocument.documentElement,n)){if(r!==null&&Gw(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=mk(n,i);var s=mk(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 c9=Ls&&"documentMode"in document&&11>=document.documentMode,Nc=null,nb=null,Jd=null,rb=!1;function gk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rb||Nc==null||Nc!==Pm(r)||(r=Nc,"selectionStart"in r&&Gw(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}),Jd&&Sf(Jd,r)||(Jd=r,r=Rm(nb,"onSelect"),0<r.length&&(t=new Vw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nc)))}function kh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Dc={animationend:kh("Animation","AnimationEnd"),animationiteration:kh("Animation","AnimationIteration"),animationstart:kh("Animation","AnimationStart"),transitionend:kh("Transition","TransitionEnd")},F0={},yT={};Ls&&(yT=document.createElement("div").style,"AnimationEvent"in window||(delete Dc.animationend.animation,delete Dc.animationiteration.animation,delete Dc.animationstart.animation),"TransitionEvent"in window||delete Dc.transitionend.transition);function Ig(e){if(F0[e])return F0[e];if(!Dc[e])return e;var t=Dc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yT)return F0[e]=t[n];return e}var bT=Ig("animationend"),wT=Ig("animationiteration"),CT=Ig("animationstart"),xT=Ig("transitionend"),ST=new Map,vk="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 Kl(e,t){ST.set(e,t),Wa(t,[e])}for(var N0=0;N0<vk.length;N0++){var D0=vk[N0],u9=D0.toLowerCase(),d9=D0[0].toUpperCase()+D0.slice(1);Kl(u9,"on"+d9)}Kl(bT,"onAnimationEnd");Kl(wT,"onAnimationIteration");Kl(CT,"onAnimationStart");Kl("dblclick","onDoubleClick");Kl("focusin","onFocus");Kl("focusout","onBlur");Kl(xT,"onTransitionEnd");du("onMouseEnter",["mouseout","mouseover"]);du("onMouseLeave",["mouseout","mouseover"]);du("onPointerEnter",["pointerout","pointerover"]);du("onPointerLeave",["pointerout","pointerover"]);Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bd));function yk(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,u6(r,t,void 0,e),e.currentTarget=null}function ET(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;yk(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;yk(o,a,d),i=c}}}if(Im)throw e=J1,Im=!1,J1=null,e}function yn(e,t){var n=t[ab];n===void 0&&(n=t[ab]=new Set);var r=e+"__bubble";n.has(r)||(PT(t,e,2,!1),n.add(r))}function B0(e,t,n){var r=0;t&&(r|=4),PT(n,e,r,t)}var Ih="_reactListening"+Math.random().toString(36).slice(2);function Ef(e){if(!e[Ih]){e[Ih]=!0,R$.forEach(function(n){n!=="selectionchange"&&(f9.has(n)||B0(n,!1,e),B0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ih]||(t[Ih]=!0,B0("selectionchange",!1,t))}}function PT(e,t,n,r){switch(aT(t)){case 1:var o=k6;break;case 4:o=I6;break;default:o=jw}n=o.bind(null,t,n,e),o=void 0,!Q1||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 z0(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=ha(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}q$(function(){var d=i,p=Nw(n),h=[];e:{var m=ST.get(e);if(m!==void 0){var v=Vw,b=e;switch(e){case"keypress":if(rm(n)===0)break e;case"keydown":case"keyup":v=H6;break;case"focusin":b="focus",v=O0;break;case"focusout":b="blur",v=O0;break;case"beforeblur":case"afterblur":v=O0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=sk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=T6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=W6;break;case bT:case wT:case CT:v=O6;break;case xT:v=K6;break;case"scroll":v=_6;break;case"wheel":v=Y6;break;case"copy":case"cut":case"paste":v=A6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=ak}var g=(t&4)!==0,x=!g&&e==="scroll",C=g?m!==null?m+"Capture":null:m;g=[];for(var E=d,w;E!==null;){w=E;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,C!==null&&(S=yf(E,C),S!=null&&g.push(Pf(E,S,w)))),x)break;E=E.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!==Y1&&(b=n.relatedTarget||n.fromElement)&&(ha(b)||b[As]))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=d,b=b?ha(b):null,b!==null&&(x=Ga(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=d),v!==b)){if(g=sk,S="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(g=ak,S="onPointerLeave",C="onPointerEnter",E="pointer"),x=v==null?m:Bc(v),w=b==null?m:Bc(b),m=new g(S,E+"leave",v,n,p),m.target=x,m.relatedTarget=w,S=null,ha(p)===d&&(g=new g(C,E+"enter",b,n,p),g.target=w,g.relatedTarget=x,S=g),x=S,v&&b)t:{for(g=v,C=b,E=0,w=g;w;w=vc(w))E++;for(w=0,S=C;S;S=vc(S))w++;for(;0<E-w;)g=vc(g),E--;for(;0<w-E;)C=vc(C),w--;for(;E--;){if(g===C||C!==null&&g===C.alternate)break t;g=vc(g),C=vc(C)}g=null}else g=null;v!==null&&bk(h,m,v,g,!1),b!==null&&x!==null&&bk(h,x,b,g,!0)}}e:{if(m=d?Bc(d):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var k=n9;else if(dk(m))if(hT)k=s9;else{k=o9;var _=r9}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=i9);if(k&&(k=k(e,d))){pT(h,k,n,p);break e}_&&_(e,m,d),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&U1(m,"number",m.value)}switch(_=d?Bc(d):window,e){case"focusin":(dk(_)||_.contentEditable==="true")&&(Nc=_,nb=d,Jd=null);break;case"focusout":Jd=nb=Nc=null;break;case"mousedown":rb=!0;break;case"contextmenu":case"mouseup":case"dragend":rb=!1,gk(h,n,p);break;case"selectionchange":if(c9)break;case"keydown":case"keyup":gk(h,n,p)}var I;if(Ww)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Fc?dT(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(uT&&n.locale!=="ko"&&(Fc||T!=="onCompositionStart"?T==="onCompositionEnd"&&Fc&&(I=cT()):(yl=p,Hw="value"in yl?yl.value:yl.textContent,Fc=!0)),_=Rm(d,T),0<_.length&&(T=new lk(T,e,null,n,p),h.push({event:T,listeners:_}),I?T.data=I:(I=fT(n),I!==null&&(T.data=I)))),(I=Q6?J6(e,n):Z6(e,n))&&(d=Rm(d,"onBeforeInput"),0<d.length&&(p=new lk("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=I))}ET(h,t)})}function Pf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=yf(e,n),i!=null&&r.unshift(Pf(e,i,o)),i=yf(e,t),i!=null&&r.push(Pf(e,i,o))),e=e.return}return r}function vc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bk(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,o?(c=yf(n,i),c!=null&&s.unshift(Pf(n,c,a))):o||(c=yf(n,i),c!=null&&s.push(Pf(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var p9=/\r\n?/g,h9=/\u0000|\uFFFD/g;function wk(e){return(typeof e=="string"?e:""+e).replace(p9,`
30
+ `).replace(h9,"")}function _h(e,t,n){if(t=wk(t),wk(e)!==t&&n)throw Error(Me(425))}function Om(){}var ob=null,ib=null;function sb(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 lb=typeof setTimeout=="function"?setTimeout:void 0,m9=typeof clearTimeout=="function"?clearTimeout:void 0,Ck=typeof Promise=="function"?Promise:void 0,g9=typeof queueMicrotask=="function"?queueMicrotask:typeof Ck!="undefined"?function(e){return Ck.resolve(null).then(e).catch(v9)}:lb;function v9(e){setTimeout(function(){throw e})}function j0(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),Cf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Cf(t)}function _l(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 xk(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 Lu=Math.random().toString(36).slice(2),Ui="__reactFiber$"+Lu,kf="__reactProps$"+Lu,As="__reactContainer$"+Lu,ab="__reactEvents$"+Lu,y9="__reactListeners$"+Lu,b9="__reactHandles$"+Lu;function ha(e){var t=e[Ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[As]||n[Ui]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xk(e);e!==null;){if(n=e[Ui])return n;e=xk(e)}return t}e=n,n=e.parentNode}return null}function op(e){return e=e[Ui]||e[As],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function _g(e){return e[kf]||null}var cb=[],zc=-1;function ql(e){return{current:e}}function wn(e){0>zc||(e.current=cb[zc],cb[zc]=null,zc--)}function dn(e,t){zc++,cb[zc]=e.current,e.current=t}var Dl={},Mr=ql(Dl),Zr=ql(!1),_a=Dl;function fu(e,t){var n=e.type.contextTypes;if(!n)return Dl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function eo(e){return e=e.childContextTypes,e!=null}function Lm(){wn(Zr),wn(Mr)}function Sk(e,t,n){if(Mr.current!==Dl)throw Error(Me(168));dn(Mr,t),dn(Zr,n)}function kT(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,r6(e)||"Unknown",o));return Fn({},n,r)}function Am(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dl,_a=Mr.current,dn(Mr,e),dn(Zr,Zr.current),!0}function Ek(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=kT(e,t,_a),r.__reactInternalMemoizedMergedChildContext=e,wn(Zr),wn(Mr),dn(Mr,e)):wn(Zr),dn(Zr,n)}var Ss=null,$g=!1,H0=!1;function IT(e){Ss===null?Ss=[e]:Ss.push(e)}function w9(e){$g=!0,IT(e)}function Yl(){if(!H0&&Ss!==null){H0=!0;var e=0,t=en;try{var n=Ss;for(en=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ss=null,$g=!1}catch(o){throw Ss!==null&&(Ss=Ss.slice(e+1)),J$(Dw,Yl),o}finally{en=t,H0=!1}}return null}var jc=[],Hc=0,Fm=null,Nm=0,qo=[],Yo=0,$a=null,Is=1,_s="";function aa(e,t){jc[Hc++]=Nm,jc[Hc++]=Fm,Fm=e,Nm=t}function _T(e,t,n){qo[Yo++]=Is,qo[Yo++]=_s,qo[Yo++]=$a,$a=e;var r=Is;e=_s;var o=32-Si(r)-1;r&=~(1<<o),n+=1;var i=32-Si(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Is=1<<32-Si(t)+o|n<<o|r,_s=i+e}else Is=1<<i|n<<o|r,_s=e}function Kw(e){e.return!==null&&(aa(e,1),_T(e,1,0))}function qw(e){for(;e===Fm;)Fm=jc[--Hc],jc[Hc]=null,Nm=jc[--Hc],jc[Hc]=null;for(;e===$a;)$a=qo[--Yo],qo[Yo]=null,_s=qo[--Yo],qo[Yo]=null,Is=qo[--Yo],qo[Yo]=null}var Eo=null,So=null,Pn=!1,bi=null;function $T(e,t){var n=Qo(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 Pk(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,Eo=e,So=_l(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Eo=e,So=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$a!==null?{id:Is,overflow:_s}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Eo=e,So=null,!0):!1;default:return!1}}function ub(e){return(e.mode&1)!==0&&(e.flags&128)===0}function db(e){if(Pn){var t=So;if(t){var n=t;if(!Pk(e,t)){if(ub(e))throw Error(Me(418));t=_l(n.nextSibling);var r=Eo;t&&Pk(e,t)?$T(r,n):(e.flags=e.flags&-4097|2,Pn=!1,Eo=e)}}else{if(ub(e))throw Error(Me(418));e.flags=e.flags&-4097|2,Pn=!1,Eo=e}}}function kk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Eo=e}function $h(e){if(e!==Eo)return!1;if(!Pn)return kk(e),Pn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!sb(e.type,e.memoizedProps)),t&&(t=So)){if(ub(e))throw TT(),Error(Me(418));for(;t;)$T(e,t),t=_l(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){So=_l(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}So=null}}else So=Eo?_l(e.stateNode.nextSibling):null;return!0}function TT(){for(var e=So;e;)e=_l(e.nextSibling)}function pu(){So=Eo=null,Pn=!1}function Yw(e){bi===null?bi=[e]:bi.push(e)}var C9=Us.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){t=Fn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Dm=ql(null),Bm=null,Vc=null,Xw=null;function Qw(){Xw=Vc=Bm=null}function Jw(e){var t=Dm.current;wn(Dm),e._currentValue=t}function fb(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 eu(e,t){Bm=e,Xw=Vc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qr=!0),e.firstContext=null)}function ti(e){var t=e._currentValue;if(Xw!==e)if(e={context:e,memoizedValue:t,next:null},Vc===null){if(Bm===null)throw Error(Me(308));Vc=e,Bm.dependencies={lanes:0,firstContext:e}}else Vc=Vc.next=e;return t}var ma=null;function Zw(e){ma===null?ma=[e]:ma.push(e)}function MT(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zw(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fs(e,r)}function Fs(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 ul=!1;function eC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RT(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 Ms(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $l(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fs(e,n)}return o=r.interleaved,o===null?(t.next=t,Zw(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fs(e,n)}function om(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,Bw(e,n)}}function Ik(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 zm(e,t,n,r){var o=e.updateQueue;ul=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=d:a.next=d,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=d=c=null,a=i;do{var m=a.lane,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=Fn({},h,m);break e;case 2:ul=!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?(d=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=d,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ma|=s,e.lanes=s,e.memoizedState=h}}function _k(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 OT=new M$.Component().refs;function pb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tg={isMounted:function(e){return(e=e._reactInternals)?Ga(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zr(),o=Ml(e),i=Ms(r,o);i.payload=t,n!=null&&(i.callback=n),t=$l(e,i,o),t!==null&&(Ei(t,e,o,r),om(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zr(),o=Ml(e),i=Ms(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$l(e,i,o),t!==null&&(Ei(t,e,o,r),om(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zr(),r=Ml(e),o=Ms(n,r);o.tag=2,t!=null&&(o.callback=t),t=$l(e,o,r),t!==null&&(Ei(t,e,r,n),om(t,e,r))}};function $k(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?!Sf(n,r)||!Sf(o,i):!0}function LT(e,t,n){var r=!1,o=Dl,i=t.contextType;return typeof i=="object"&&i!==null?i=ti(i):(o=eo(t)?_a:Mr.current,r=t.contextTypes,i=(r=r!=null)?fu(e,o):Dl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Tk(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&&Tg.enqueueReplaceState(t,t.state,null)}function hb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=OT,eC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ti(i):(i=eo(t)?_a:Mr.current,o.context=fu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(pb(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&&Tg.enqueueReplaceState(o,o.state,null),zm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function bd(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===OT&&(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 Th(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mk(e){var t=e._init;return t(e._payload)}function AT(e){function t(C,E){if(e){var w=C.deletions;w===null?(C.deletions=[E],C.flags|=16):w.push(E)}}function n(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function r(C,E){for(C=new Map;E!==null;)E.key!==null?C.set(E.key,E):C.set(E.index,E),E=E.sibling;return C}function o(C,E){return C=Rl(C,E),C.index=0,C.sibling=null,C}function i(C,E,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<E?(C.flags|=2,E):w):(C.flags|=2,E)):(C.flags|=1048576,E)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,E,w,S){return E===null||E.tag!==6?(E=Y0(w,C.mode,S),E.return=C,E):(E=o(E,w),E.return=C,E)}function c(C,E,w,S){var k=w.type;return k===Ac?p(C,E,w.props.children,S,w.key):E!==null&&(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===cl&&Mk(k)===E.type)?(S=o(E,w.props),S.ref=bd(C,E,w),S.return=C,S):(S=um(w.type,w.key,w.props,null,C.mode,S),S.ref=bd(C,E,w),S.return=C,S)}function d(C,E,w,S){return E===null||E.tag!==4||E.stateNode.containerInfo!==w.containerInfo||E.stateNode.implementation!==w.implementation?(E=X0(w,C.mode,S),E.return=C,E):(E=o(E,w.children||[]),E.return=C,E)}function p(C,E,w,S,k){return E===null||E.tag!==7?(E=xa(w,C.mode,S,k),E.return=C,E):(E=o(E,w),E.return=C,E)}function h(C,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return E=Y0(""+E,C.mode,w),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case bh:return w=um(E.type,E.key,E.props,null,C.mode,w),w.ref=bd(C,null,E),w.return=C,w;case Lc:return E=X0(E,C.mode,w),E.return=C,E;case cl:var S=E._init;return h(C,S(E._payload),w)}if(Nd(E)||hd(E))return E=xa(E,C.mode,w,null),E.return=C,E;Th(C,E)}return null}function m(C,E,w,S){var k=E!==null?E.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(C,E,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case bh:return w.key===k?c(C,E,w,S):null;case Lc:return w.key===k?d(C,E,w,S):null;case cl:return k=w._init,m(C,E,k(w._payload),S)}if(Nd(w)||hd(w))return k!==null?null:p(C,E,w,S,null);Th(C,w)}return null}function v(C,E,w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return C=C.get(w)||null,a(E,C,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case bh:return C=C.get(S.key===null?w:S.key)||null,c(E,C,S,k);case Lc:return C=C.get(S.key===null?w:S.key)||null,d(E,C,S,k);case cl:var _=S._init;return v(C,E,w,_(S._payload),k)}if(Nd(S)||hd(S))return C=C.get(w)||null,p(E,C,S,k,null);Th(E,S)}return null}function b(C,E,w,S){for(var k=null,_=null,I=E,T=E=0,O=null;I!==null&&T<w.length;T++){I.index>T?(O=I,I=null):O=I.sibling;var R=m(C,I,w[T],S);if(R===null){I===null&&(I=O);break}e&&I&&R.alternate===null&&t(C,I),E=i(R,E,T),_===null?k=R:_.sibling=R,_=R,I=O}if(T===w.length)return n(C,I),Pn&&aa(C,T),k;if(I===null){for(;T<w.length;T++)I=h(C,w[T],S),I!==null&&(E=i(I,E,T),_===null?k=I:_.sibling=I,_=I);return Pn&&aa(C,T),k}for(I=r(C,I);T<w.length;T++)O=v(I,C,T,w[T],S),O!==null&&(e&&O.alternate!==null&&I.delete(O.key===null?T:O.key),E=i(O,E,T),_===null?k=O:_.sibling=O,_=O);return e&&I.forEach(function(A){return t(C,A)}),Pn&&aa(C,T),k}function g(C,E,w,S){var k=hd(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=E,T=E=0,O=null,R=w.next();I!==null&&!R.done;T++,R=w.next()){I.index>T?(O=I,I=null):O=I.sibling;var A=m(C,I,R.value,S);if(A===null){I===null&&(I=O);break}e&&I&&A.alternate===null&&t(C,I),E=i(A,E,T),_===null?k=A:_.sibling=A,_=A,I=O}if(R.done)return n(C,I),Pn&&aa(C,T),k;if(I===null){for(;!R.done;T++,R=w.next())R=h(C,R.value,S),R!==null&&(E=i(R,E,T),_===null?k=R:_.sibling=R,_=R);return Pn&&aa(C,T),k}for(I=r(C,I);!R.done;T++,R=w.next())R=v(I,C,T,R.value,S),R!==null&&(e&&R.alternate!==null&&I.delete(R.key===null?T:R.key),E=i(R,E,T),_===null?k=R:_.sibling=R,_=R);return e&&I.forEach(function(V){return t(C,V)}),Pn&&aa(C,T),k}function x(C,E,w,S){if(typeof w=="object"&&w!==null&&w.type===Ac&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case bh:e:{for(var k=w.key,_=E;_!==null;){if(_.key===k){if(k=w.type,k===Ac){if(_.tag===7){n(C,_.sibling),E=o(_,w.props.children),E.return=C,C=E;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===cl&&Mk(k)===_.type){n(C,_.sibling),E=o(_,w.props),E.ref=bd(C,_,w),E.return=C,C=E;break e}n(C,_);break}else t(C,_);_=_.sibling}w.type===Ac?(E=xa(w.props.children,C.mode,S,w.key),E.return=C,C=E):(S=um(w.type,w.key,w.props,null,C.mode,S),S.ref=bd(C,E,w),S.return=C,C=S)}return s(C);case Lc:e:{for(_=w.key;E!==null;){if(E.key===_)if(E.tag===4&&E.stateNode.containerInfo===w.containerInfo&&E.stateNode.implementation===w.implementation){n(C,E.sibling),E=o(E,w.children||[]),E.return=C,C=E;break e}else{n(C,E);break}else t(C,E);E=E.sibling}E=X0(w,C.mode,S),E.return=C,C=E}return s(C);case cl:return _=w._init,x(C,E,_(w._payload),S)}if(Nd(w))return b(C,E,w,S);if(hd(w))return g(C,E,w,S);Th(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,E!==null&&E.tag===6?(n(C,E.sibling),E=o(E,w),E.return=C,C=E):(n(C,E),E=Y0(w,C.mode,S),E.return=C,C=E),s(C)):n(C,E)}return x}var hu=AT(!0),FT=AT(!1),ip={},Ki=ql(ip),If=ql(ip),_f=ql(ip);function ga(e){if(e===ip)throw Error(Me(174));return e}function tC(e,t){switch(dn(_f,t),dn(If,e),dn(Ki,ip),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:G1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=G1(t,e)}wn(Ki),dn(Ki,t)}function mu(){wn(Ki),wn(If),wn(_f)}function NT(e){ga(_f.current);var t=ga(Ki.current),n=G1(t,e.type);t!==n&&(dn(If,e),dn(Ki,n))}function nC(e){If.current===e&&(wn(Ki),wn(If))}var Tn=ql(0);function jm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var V0=[];function rC(){for(var e=0;e<V0.length;e++)V0[e]._workInProgressVersionPrimary=null;V0.length=0}var im=Us.ReactCurrentDispatcher,U0=Us.ReactCurrentBatchConfig,Ta=0,Ln=null,er=null,sr=null,Hm=!1,Zd=!1,$f=0,x9=0;function Sr(){throw Error(Me(321))}function oC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ii(e[n],t[n]))return!1;return!0}function iC(e,t,n,r,o,i){if(Ta=i,Ln=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,im.current=e===null||e.memoizedState===null?k9:I9,e=n(r,o),Zd){i=0;do{if(Zd=!1,$f=0,25<=i)throw Error(Me(301));i+=1,sr=er=null,t.updateQueue=null,im.current=_9,e=n(r,o)}while(Zd)}if(im.current=Vm,t=er!==null&&er.next!==null,Ta=0,sr=er=Ln=null,Hm=!1,t)throw Error(Me(300));return e}function sC(){var e=$f!==0;return $f=0,e}function Ni(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Ln.memoizedState=sr=e:sr=sr.next=e,sr}function ni(){if(er===null){var e=Ln.alternate;e=e!==null?e.memoizedState:null}else e=er.next;var t=sr===null?Ln.memoizedState:sr.next;if(t!==null)sr=t,er=e;else{if(e===null)throw Error(Me(310));er=e,e={memoizedState:er.memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},sr===null?Ln.memoizedState=sr=e:sr=sr.next=e}return sr}function Tf(e,t){return typeof t=="function"?t(e):t}function W0(e){var t=ni(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=er,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,d=i;do{var p=d.lane;if((Ta&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Ln.lanes|=p,Ma|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Ii(r,t.memoizedState)||(Qr=!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,Ln.lanes|=i,Ma|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function G0(e){var t=ni(),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);Ii(i,t.memoizedState)||(Qr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function DT(){}function BT(e,t){var n=Ln,r=ni(),o=t(),i=!Ii(r.memoizedState,o);if(i&&(r.memoizedState=o,Qr=!0),r=r.queue,lC(HT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||sr!==null&&sr.memoizedState.tag&1){if(n.flags|=2048,Mf(9,jT.bind(null,n,r,o,t),void 0,null),ar===null)throw Error(Me(349));Ta&30||zT(n,t,o)}return o}function zT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ln.updateQueue,t===null?(t={lastEffect:null,stores:null},Ln.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jT(e,t,n,r){t.value=n,t.getSnapshot=r,VT(t)&&UT(e)}function HT(e,t,n){return n(function(){VT(t)&&UT(e)})}function VT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ii(e,n)}catch(r){return!0}}function UT(e){var t=Fs(e,1);t!==null&&Ei(t,e,1,-1)}function Rk(e){var t=Ni();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tf,lastRenderedState:e},t.queue=e,e=e.dispatch=P9.bind(null,Ln,e),[t.memoizedState,e]}function Mf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ln.updateQueue,t===null?(t={lastEffect:null,stores:null},Ln.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 WT(){return ni().memoizedState}function sm(e,t,n,r){var o=Ni();Ln.flags|=e,o.memoizedState=Mf(1|t,n,void 0,r===void 0?null:r)}function Mg(e,t,n,r){var o=ni();r=r===void 0?null:r;var i=void 0;if(er!==null){var s=er.memoizedState;if(i=s.destroy,r!==null&&oC(r,s.deps)){o.memoizedState=Mf(t,n,i,r);return}}Ln.flags|=e,o.memoizedState=Mf(1|t,n,i,r)}function Ok(e,t){return sm(8390656,8,e,t)}function lC(e,t){return Mg(2048,8,e,t)}function GT(e,t){return Mg(4,2,e,t)}function KT(e,t){return Mg(4,4,e,t)}function qT(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 YT(e,t,n){return n=n!=null?n.concat([e]):null,Mg(4,4,qT.bind(null,t,e),n)}function aC(){}function XT(e,t){var n=ni();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function QT(e,t){var n=ni();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function JT(e,t,n){return Ta&21?(Ii(n,t)||(n=tT(),Ln.lanes|=n,Ma|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Qr=!0),e.memoizedState=n)}function S9(e,t){var n=en;en=n!==0&&4>n?n:4,e(!0);var r=U0.transition;U0.transition={};try{e(!1),t()}finally{en=n,U0.transition=r}}function ZT(){return ni().memoizedState}function E9(e,t,n){var r=Ml(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eM(e))tM(t,n);else if(n=MT(e,t,n,r),n!==null){var o=zr();Ei(n,e,r,o),nM(n,t,r)}}function P9(e,t,n){var r=Ml(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eM(e))tM(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,Ii(a,s)){var c=t.interleaved;c===null?(o.next=o,Zw(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=MT(e,t,o,r),n!==null&&(o=zr(),Ei(n,e,r,o),nM(n,t,r))}}function eM(e){var t=e.alternate;return e===Ln||t!==null&&t===Ln}function tM(e,t){Zd=Hm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bw(e,n)}}var Vm={readContext:ti,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},k9={readContext:ti,useCallback:function(e,t){return Ni().memoizedState=[e,t===void 0?null:t],e},useContext:ti,useEffect:Ok,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sm(4194308,4,qT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sm(4194308,4,e,t)},useInsertionEffect:function(e,t){return sm(4,2,e,t)},useMemo:function(e,t){var n=Ni();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ni();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=E9.bind(null,Ln,e),[r.memoizedState,e]},useRef:function(e){var t=Ni();return e={current:e},t.memoizedState=e},useState:Rk,useDebugValue:aC,useDeferredValue:function(e){return Ni().memoizedState=e},useTransition:function(){var e=Rk(!1),t=e[0];return e=S9.bind(null,e[1]),Ni().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ln,o=Ni();if(Pn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),ar===null)throw Error(Me(349));Ta&30||zT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ok(HT.bind(null,r,i,e),[e]),r.flags|=2048,Mf(9,jT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ni(),t=ar.identifierPrefix;if(Pn){var n=_s,r=Is;n=(r&~(1<<32-Si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$f++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=x9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},I9={readContext:ti,useCallback:XT,useContext:ti,useEffect:lC,useImperativeHandle:YT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:W0,useRef:WT,useState:function(){return W0(Tf)},useDebugValue:aC,useDeferredValue:function(e){var t=ni();return JT(t,er.memoizedState,e)},useTransition:function(){var e=W0(Tf)[0],t=ni().memoizedState;return[e,t]},useMutableSource:DT,useSyncExternalStore:BT,useId:ZT,unstable_isNewReconciler:!1},_9={readContext:ti,useCallback:XT,useContext:ti,useEffect:lC,useImperativeHandle:YT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:G0,useRef:WT,useState:function(){return G0(Tf)},useDebugValue:aC,useDeferredValue:function(e){var t=ni();return er===null?t.memoizedState=e:JT(t,er.memoizedState,e)},useTransition:function(){var e=G0(Tf)[0],t=ni().memoizedState;return[e,t]},useMutableSource:DT,useSyncExternalStore:BT,useId:ZT,unstable_isNewReconciler:!1};function gu(e,t){try{var n="",r=t;do n+=n6(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 K0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function mb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $9=typeof WeakMap=="function"?WeakMap:Map;function rM(e,t,n){n=Ms(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wm||(Wm=!0,Pb=r),mb(e,t)},n}function oM(e,t,n){n=Ms(-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(){mb(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){mb(e,t),typeof r!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Lk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $9;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=V9.bind(null,e,t,n),t.then(e,e))}function Ak(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 Fk(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=Ms(-1,1),t.tag=2,$l(n,t,1))),n.lanes|=1),e)}var T9=Us.ReactCurrentOwner,Qr=!1;function Nr(e,t,n,r){t.child=e===null?FT(t,null,n,r):hu(t,e.child,n,r)}function Nk(e,t,n,r,o){n=n.render;var i=t.ref;return eu(t,o),r=iC(e,t,n,r,i,o),n=sC(),e!==null&&!Qr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ns(e,t,o)):(Pn&&n&&Kw(t),t.flags|=1,Nr(e,t,r,o),t.child)}function Dk(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gC(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,iM(e,t,i,r,o)):(e=um(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:Sf,n(s,r)&&e.ref===t.ref)return Ns(e,t,o)}return t.flags|=1,e=Rl(i,r),e.ref=t.ref,e.return=t,t.child=e}function iM(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Sf(i,r)&&e.ref===t.ref)if(Qr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Qr=!0);else return t.lanes=e.lanes,Ns(e,t,o)}return gb(e,t,n,r,o)}function sM(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(Wc,yo),yo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,dn(Wc,yo),yo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,dn(Wc,yo),yo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,dn(Wc,yo),yo|=r;return Nr(e,t,o,n),t.child}function lM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gb(e,t,n,r,o){var i=eo(n)?_a:Mr.current;return i=fu(t,i),eu(t,o),n=iC(e,t,n,r,i,o),r=sC(),e!==null&&!Qr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ns(e,t,o)):(Pn&&r&&Kw(t),t.flags|=1,Nr(e,t,n,o),t.child)}function Bk(e,t,n,r,o){if(eo(n)){var i=!0;Am(t)}else i=!1;if(eu(t,o),t.stateNode===null)lm(e,t),LT(t,n,r),hb(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=ti(d):(d=eo(n)?_a:Mr.current,d=fu(t,d));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==d)&&Tk(t,s,r,d),ul=!1;var m=t.memoizedState;s.state=m,zm(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Zr.current||ul?(typeof p=="function"&&(pb(t,n,p,r),c=t.memoizedState),(a=ul||$k(t,n,a,r,m,c,d))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,RT(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:gi(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=ti(c):(c=eo(n)?_a:Mr.current,c=fu(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)&&Tk(t,s,r,c),ul=!1,m=t.memoizedState,s.state=m,zm(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||Zr.current||ul?(typeof v=="function"&&(pb(t,n,v,r),b=t.memoizedState),(d=ul||$k(t,n,d,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=c,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return vb(e,t,n,r,i,o)}function vb(e,t,n,r,o,i){lM(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Ek(t,n,!1),Ns(e,t,i);r=t.stateNode,T9.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=hu(t,e.child,null,i),t.child=hu(t,null,a,i)):Nr(e,t,a,i),t.memoizedState=r.state,o&&Ek(t,n,!0),t.child}function aM(e){var t=e.stateNode;t.pendingContext?Sk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sk(e,t.context,!1),tC(e,t.containerInfo)}function zk(e,t,n,r,o){return pu(),Yw(o),t.flags|=256,Nr(e,t,n,r),t.child}var yb={dehydrated:null,treeContext:null,retryLane:0};function bb(e){return{baseLanes:e,cachePool:null,transitions:null}}function cM(e,t,n){var r=t.pendingProps,o=Tn.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),dn(Tn,o&1),e===null)return db(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=Lg(s,r,0,null),e=xa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=bb(n),t.memoizedState=yb,e):cC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return M9(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=Rl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Rl(a,i):(i=xa(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?bb(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=yb,r}return i=e.child,e=i.sibling,r=Rl(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 cC(e,t){return t=Lg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mh(e,t,n,r){return r!==null&&Yw(r),hu(t,e.child,null,n),e=cC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M9(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=K0(Error(Me(422))),Mh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Lg({mode:"visible",children:r.children},o,0,null),i=xa(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&hu(t,e.child,null,s),t.child.memoizedState=bb(s),t.memoizedState=yb,i);if(!(t.mode&1))return Mh(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=K0(i,r,void 0),Mh(e,t,s,r)}if(a=(s&e.childLanes)!==0,Qr||a){if(r=ar,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,Fs(e,o),Ei(r,e,o,-1))}return mC(),r=K0(Error(Me(421))),Mh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=U9.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,So=_l(o.nextSibling),Eo=t,Pn=!0,bi=null,e!==null&&(qo[Yo++]=Is,qo[Yo++]=_s,qo[Yo++]=$a,Is=e.id,_s=e.overflow,$a=t),t=cC(t,r.children),t.flags|=4096,t)}function jk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fb(e.return,t,n)}function q0(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 uM(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Nr(e,t,r.children,n),r=Tn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jk(e,n,t);else if(e.tag===19)jk(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(dn(Tn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&jm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),q0(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&jm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}q0(t,!0,n,null,i);break;case"together":q0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ns(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ma|=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=Rl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function R9(e,t,n){switch(t.tag){case 3:aM(t),pu();break;case 5:NT(t);break;case 1:eo(t.type)&&Am(t);break;case 4:tC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;dn(Dm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(dn(Tn,Tn.current&1),t.flags|=128,null):n&t.child.childLanes?cM(e,t,n):(dn(Tn,Tn.current&1),e=Ns(e,t,n),e!==null?e.sibling:null);dn(Tn,Tn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uM(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),dn(Tn,Tn.current),r)break;return null;case 22:case 23:return t.lanes=0,sM(e,t,n)}return Ns(e,t,n)}var dM,wb,fM,pM;dM=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}};wb=function(){};fM=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ga(Ki.current);var i=null;switch(n){case"input":o=H1(e,o),r=H1(e,r),i=[];break;case"select":o=Fn({},o,{value:void 0}),r=Fn({},r,{value:void 0}),i=[];break;case"textarea":o=W1(e,o),r=W1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Om)}K1(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(gf.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(gf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&yn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};pM=function(e,t,n,r){n!==r&&(t.flags|=4)};function wd(e,t){if(!Pn)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 Er(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 O9(e,t,n){var r=t.pendingProps;switch(qw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Er(t),null;case 1:return eo(t.type)&&Lm(),Er(t),null;case 3:return r=t.stateNode,mu(),wn(Zr),wn(Mr),rC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($h(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bi!==null&&(_b(bi),bi=null))),wb(e,t),Er(t),null;case 5:nC(t);var o=ga(_f.current);if(n=t.type,e!==null&&t.stateNode!=null)fM(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 Er(t),null}if(e=ga(Ki.current),$h(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ui]=t,r[kf]=i,e=(t.mode&1)!==0,n){case"dialog":yn("cancel",r),yn("close",r);break;case"iframe":case"object":case"embed":yn("load",r);break;case"video":case"audio":for(o=0;o<Bd.length;o++)yn(Bd[o],r);break;case"source":yn("error",r);break;case"img":case"image":case"link":yn("error",r),yn("load",r);break;case"details":yn("toggle",r);break;case"input":XP(r,i),yn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},yn("invalid",r);break;case"textarea":JP(r,i),yn("invalid",r)}K1(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&&_h(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&_h(r.textContent,a,e),o=["children",""+a]):gf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&yn("scroll",r)}switch(n){case"input":wh(r),QP(r,i,!0);break;case"textarea":wh(r),ZP(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Om)}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=z$(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[Ui]=t,e[kf]=r,dM(e,t,!1,!1),t.stateNode=e;e:{switch(s=q1(n,r),n){case"dialog":yn("cancel",e),yn("close",e),o=r;break;case"iframe":case"object":case"embed":yn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Bd.length;o++)yn(Bd[o],e);o=r;break;case"source":yn("error",e),o=r;break;case"img":case"image":case"link":yn("error",e),yn("load",e),o=r;break;case"details":yn("toggle",e),o=r;break;case"input":XP(e,r),o=H1(e,r),yn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Fn({},r,{value:void 0}),yn("invalid",e);break;case"textarea":JP(e,r),o=W1(e,r),yn("invalid",e);break;default:o=r}K1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?V$(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&j$(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&vf(e,c):typeof c=="number"&&vf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(gf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&yn("scroll",e):c!=null&&Ow(e,i,c,s))}switch(n){case"input":wh(e),QP(e,r,!1);break;case"textarea":wh(e),ZP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Nl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Xc(e,!!r.multiple,i,!1):r.defaultValue!=null&&Xc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Om)}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 Er(t),null;case 6:if(e&&t.stateNode!=null)pM(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=ga(_f.current),ga(Ki.current),$h(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ui]=t,(i=r.nodeValue!==n)&&(e=Eo,e!==null))switch(e.tag){case 3:_h(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_h(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ui]=t,t.stateNode=r}return Er(t),null;case 13:if(wn(Tn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pn&&So!==null&&t.mode&1&&!(t.flags&128))TT(),pu(),t.flags|=98560,i=!1;else if(i=$h(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[Ui]=t}else pu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Er(t),i=!1}else bi!==null&&(_b(bi),bi=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||Tn.current&1?tr===0&&(tr=3):mC())),t.updateQueue!==null&&(t.flags|=4),Er(t),null);case 4:return mu(),wb(e,t),e===null&&Ef(t.stateNode.containerInfo),Er(t),null;case 10:return Jw(t.type._context),Er(t),null;case 17:return eo(t.type)&&Lm(),Er(t),null;case 19:if(wn(Tn),i=t.memoizedState,i===null)return Er(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)wd(i,!1);else{if(tr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=jm(e),s!==null){for(t.flags|=128,wd(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return dn(Tn,Tn.current&1|2),t.child}e=e.sibling}i.tail!==null&&Wn()>vu&&(t.flags|=128,r=!0,wd(i,!1),t.lanes=4194304)}else{if(!r)if(e=jm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Pn)return Er(t),null}else 2*Wn()-i.renderingStartTime>vu&&n!==1073741824&&(t.flags|=128,r=!0,wd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Wn(),t.sibling=null,n=Tn.current,dn(Tn,r?n&1|2:n&1),t):(Er(t),null);case 22:case 23:return hC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yo&1073741824&&(Er(t),t.subtreeFlags&6&&(t.flags|=8192)):Er(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function L9(e,t){switch(qw(t),t.tag){case 1:return eo(t.type)&&Lm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mu(),wn(Zr),wn(Mr),rC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nC(t),null;case 13:if(wn(Tn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));pu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(Tn),null;case 4:return mu(),null;case 10:return Jw(t.type._context),null;case 22:case 23:return hC(),null;case 24:return null;default:return null}}var Rh=!1,Ir=!1,A9=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Uc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jn(e,t,r)}else n.current=null}function Cb(e,t,n){try{n()}catch(r){jn(e,t,r)}}var Hk=!1;function F9(e,t){if(ob=Tm,e=vT(),Gw(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(S){n=null;break e}var s=0,a=-1,c=-1,d=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&&++d===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(ib={focusedElem:e,selectionRange:n},Tm=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,x=b.memoizedState,C=t.stateNode,E=C.getSnapshotBeforeUpdate(t.elementType===t.type?g:gi(t.type,g),x);C.__reactInternalSnapshotBeforeUpdate=E}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(S){jn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return b=Hk,Hk=!1,b}function ef(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&&Cb(t,n,i)}o=o.next}while(o!==r)}}function Rg(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 xb(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 hM(e){var t=e.alternate;t!==null&&(e.alternate=null,hM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[kf],delete t[ab],delete t[y9],delete t[b9])),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 mM(e){return e.tag===5||e.tag===3||e.tag===4}function Vk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mM(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 Sb(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=Om));else if(r!==4&&(e=e.child,e!==null))for(Sb(e,t,n),e=e.sibling;e!==null;)Sb(e,t,n),e=e.sibling}function Eb(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(Eb(e,t,n),e=e.sibling;e!==null;)Eb(e,t,n),e=e.sibling}var mr=null,yi=!1;function rl(e,t,n){for(n=n.child;n!==null;)gM(e,t,n),n=n.sibling}function gM(e,t,n){if(Gi&&typeof Gi.onCommitFiberUnmount=="function")try{Gi.onCommitFiberUnmount(Eg,n)}catch(a){}switch(n.tag){case 5:Ir||Uc(n,t);case 6:var r=mr,o=yi;mr=null,rl(e,t,n),mr=r,yi=o,mr!==null&&(yi?(e=mr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mr.removeChild(n.stateNode));break;case 18:mr!==null&&(yi?(e=mr,n=n.stateNode,e.nodeType===8?j0(e.parentNode,n):e.nodeType===1&&j0(e,n),Cf(e)):j0(mr,n.stateNode));break;case 4:r=mr,o=yi,mr=n.stateNode.containerInfo,yi=!0,rl(e,t,n),mr=r,yi=o;break;case 0:case 11:case 14:case 15:if(!Ir&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Cb(n,t,s),o=o.next}while(o!==r)}rl(e,t,n);break;case 1:if(!Ir&&(Uc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){jn(n,t,a)}rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:n.mode&1?(Ir=(r=Ir)||n.memoizedState!==null,rl(e,t,n),Ir=r):rl(e,t,n);break;default:rl(e,t,n)}}function Uk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new A9),t.forEach(function(r){var o=W9.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function hi(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:mr=a.stateNode,yi=!1;break e;case 3:mr=a.stateNode.containerInfo,yi=!0;break e;case 4:mr=a.stateNode.containerInfo,yi=!0;break e}a=a.return}if(mr===null)throw Error(Me(160));gM(i,s,o),mr=null,yi=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){jn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vM(t,e),t=t.sibling}function vM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hi(t,e),Fi(e),r&4){try{ef(3,e,e.return),Rg(3,e)}catch(g){jn(e,e.return,g)}try{ef(5,e,e.return)}catch(g){jn(e,e.return,g)}}break;case 1:hi(t,e),Fi(e),r&512&&n!==null&&Uc(n,n.return);break;case 5:if(hi(t,e),Fi(e),r&512&&n!==null&&Uc(n,n.return),e.flags&32){var o=e.stateNode;try{vf(o,"")}catch(g){jn(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&&D$(o,i),q1(a,s);var d=q1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?V$(o,h):p==="dangerouslySetInnerHTML"?j$(o,h):p==="children"?vf(o,h):Ow(o,p,h,d)}switch(a){case"input":V1(o,i);break;case"textarea":B$(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Xc(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Xc(o,!!i.multiple,i.defaultValue,!0):Xc(o,!!i.multiple,i.multiple?[]:"",!1))}o[kf]=i}catch(g){jn(e,e.return,g)}}break;case 6:if(hi(t,e),Fi(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){jn(e,e.return,g)}}break;case 3:if(hi(t,e),Fi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Cf(t.containerInfo)}catch(g){jn(e,e.return,g)}break;case 4:hi(t,e),Fi(e);break;case 13:hi(t,e),Fi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(fC=Wn())),r&4&&Uk(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Ir=(d=Ir)||p,hi(t,e),Ir=d):hi(t,e),Fi(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(qe=e,p=e.child;p!==null;){for(h=qe=p;qe!==null;){switch(m=qe,v=m.child,m.tag){case 0:case 11:case 14:case 15:ef(4,m,m.return);break;case 1:Uc(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){jn(r,n,g)}}break;case 5:Uc(m,m.return);break;case 22:if(m.memoizedState!==null){Gk(h);continue}}v!==null?(v.return=m,qe=v):Gk(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=H$("display",s))}catch(g){jn(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(g){jn(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:hi(t,e),Fi(e),r&4&&Uk(e);break;case 21:break;default:hi(t,e),Fi(e)}}function Fi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mM(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&&(vf(o,""),r.flags&=-33);var i=Vk(e);Eb(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Vk(e);Sb(e,a,s);break;default:throw Error(Me(161))}}catch(c){jn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function N9(e,t,n){qe=e,yM(e)}function yM(e,t,n){for(var r=(e.mode&1)!==0;qe!==null;){var o=qe,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Rh;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Ir;a=Rh;var d=Ir;if(Rh=s,(Ir=c)&&!d)for(qe=o;qe!==null;)s=qe,c=s.child,s.tag===22&&s.memoizedState!==null?Kk(o):c!==null?(c.return=s,qe=c):Kk(o);for(;i!==null;)qe=i,yM(i),i=i.sibling;qe=o,Rh=a,Ir=d}Wk(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,qe=i):Wk(e)}}function Wk(e){for(;qe!==null;){var t=qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ir||Rg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ir)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&_k(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}_k(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Cf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}Ir||t.flags&512&&xb(t)}catch(m){jn(t,t.return,m)}}if(t===e){qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,qe=n;break}qe=t.return}}function Gk(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,qe=n;break}qe=t.return}}function Kk(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rg(4,t)}catch(c){jn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){jn(t,o,c)}}var i=t.return;try{xb(t)}catch(c){jn(t,i,c)}break;case 5:var s=t.return;try{xb(t)}catch(c){jn(t,s,c)}}}catch(c){jn(t,t.return,c)}if(t===e){qe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,qe=a;break}qe=t.return}}var D9=Math.ceil,Um=Us.ReactCurrentDispatcher,uC=Us.ReactCurrentOwner,Jo=Us.ReactCurrentBatchConfig,Wt=0,ar=null,Xn=null,vr=0,yo=0,Wc=ql(0),tr=0,Rf=null,Ma=0,Og=0,dC=0,tf=null,qr=null,fC=0,vu=1/0,ws=null,Wm=!1,Pb=null,Tl=null,Oh=!1,bl=null,Gm=0,nf=0,kb=null,am=-1,cm=0;function zr(){return Wt&6?Wn():am!==-1?am:am=Wn()}function Ml(e){return e.mode&1?Wt&2&&vr!==0?vr&-vr:C9.transition!==null?(cm===0&&(cm=tT()),cm):(e=en,e!==0||(e=window.event,e=e===void 0?16:aT(e.type)),e):1}function Ei(e,t,n,r){if(50<nf)throw nf=0,kb=null,Error(Me(185));np(e,n,r),(!(Wt&2)||e!==ar)&&(e===ar&&(!(Wt&2)&&(Og|=n),tr===4&&gl(e,vr)),to(e,r),n===1&&Wt===0&&!(t.mode&1)&&(vu=Wn()+500,$g&&Yl()))}function to(e,t){var n=e.callbackNode;C6(e,t);var r=$m(e,e===ar?vr:0);if(r===0)n!==null&&nk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nk(n),t===1)e.tag===0?w9(qk.bind(null,e)):IT(qk.bind(null,e)),g9(function(){!(Wt&6)&&Yl()}),n=null;else{switch(nT(r)){case 1:n=Dw;break;case 4:n=Z$;break;case 16:n=_m;break;case 536870912:n=eT;break;default:n=_m}n=kM(n,bM.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bM(e,t){if(am=-1,cm=0,Wt&6)throw Error(Me(327));var n=e.callbackNode;if(tu()&&e.callbackNode!==n)return null;var r=$m(e,e===ar?vr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Km(e,r);else{t=r;var o=Wt;Wt|=2;var i=CM();(ar!==e||vr!==t)&&(ws=null,vu=Wn()+500,Ca(e,t));do try{j9();break}catch(a){wM(e,a)}while(1);Qw(),Um.current=i,Wt=o,Xn!==null?t=0:(ar=null,vr=0,t=tr)}if(t!==0){if(t===2&&(o=Z1(e),o!==0&&(r=o,t=Ib(e,o))),t===1)throw n=Rf,Ca(e,0),gl(e,r),to(e,Wn()),n;if(t===6)gl(e,r);else{if(o=e.current.alternate,!(r&30)&&!B9(o)&&(t=Km(e,r),t===2&&(i=Z1(e),i!==0&&(r=i,t=Ib(e,i))),t===1))throw n=Rf,Ca(e,0),gl(e,r),to(e,Wn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:ca(e,qr,ws);break;case 3:if(gl(e,r),(r&130023424)===r&&(t=fC+500-Wn(),10<t)){if($m(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){zr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=lb(ca.bind(null,e,qr,ws),t);break}ca(e,qr,ws);break;case 4:if(gl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Si(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Wn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*D9(r/1960))-r,10<r){e.timeoutHandle=lb(ca.bind(null,e,qr,ws),r);break}ca(e,qr,ws);break;case 5:ca(e,qr,ws);break;default:throw Error(Me(329))}}}return to(e,Wn()),e.callbackNode===n?bM.bind(null,e):null}function Ib(e,t){var n=tf;return e.current.memoizedState.isDehydrated&&(Ca(e,t).flags|=256),e=Km(e,t),e!==2&&(t=qr,qr=n,t!==null&&_b(t)),e}function _b(e){qr===null?qr=e:qr.push.apply(qr,e)}function B9(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(!Ii(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 gl(e,t){for(t&=~dC,t&=~Og,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Si(t),r=1<<n;e[n]=-1,t&=~r}}function qk(e){if(Wt&6)throw Error(Me(327));tu();var t=$m(e,0);if(!(t&1))return to(e,Wn()),null;var n=Km(e,t);if(e.tag!==0&&n===2){var r=Z1(e);r!==0&&(t=r,n=Ib(e,r))}if(n===1)throw n=Rf,Ca(e,0),gl(e,t),to(e,Wn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ca(e,qr,ws),to(e,Wn()),null}function pC(e,t){var n=Wt;Wt|=1;try{return e(t)}finally{Wt=n,Wt===0&&(vu=Wn()+500,$g&&Yl())}}function Ra(e){bl!==null&&bl.tag===0&&!(Wt&6)&&tu();var t=Wt;Wt|=1;var n=Jo.transition,r=en;try{if(Jo.transition=null,en=1,e)return e()}finally{en=r,Jo.transition=n,Wt=t,!(Wt&6)&&Yl()}}function hC(){yo=Wc.current,wn(Wc)}function Ca(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m9(n)),Xn!==null)for(n=Xn.return;n!==null;){var r=n;switch(qw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Lm();break;case 3:mu(),wn(Zr),wn(Mr),rC();break;case 5:nC(r);break;case 4:mu();break;case 13:wn(Tn);break;case 19:wn(Tn);break;case 10:Jw(r.type._context);break;case 22:case 23:hC()}n=n.return}if(ar=e,Xn=e=Rl(e.current,null),vr=yo=t,tr=0,Rf=null,dC=Og=Ma=0,qr=tf=null,ma!==null){for(t=0;t<ma.length;t++)if(n=ma[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}ma=null}return e}function wM(e,t){do{var n=Xn;try{if(Qw(),im.current=Vm,Hm){for(var r=Ln.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Hm=!1}if(Ta=0,sr=er=Ln=null,Zd=!1,$f=0,uC.current=null,n===null||n.return===null){tr=1,Rf=t,Xn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=vr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=Ak(s);if(v!==null){v.flags&=-257,Fk(v,s,a,i,t),v.mode&1&&Lk(i,d,t),t=v,c=d;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)){Lk(i,d,t),mC();break e}c=Error(Me(426))}}else if(Pn&&a.mode&1){var x=Ak(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Fk(x,s,a,i,t),Yw(gu(c,a));break e}}i=c=gu(c,a),tr!==4&&(tr=2),tf===null?tf=[i]:tf.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=rM(i,c,t);Ik(i,C);break e;case 1:a=c;var E=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof E.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Tl===null||!Tl.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=oM(i,a,t);Ik(i,S);break e}}i=i.return}while(i!==null)}SM(n)}catch(k){t=k,Xn===n&&n!==null&&(Xn=n=n.return);continue}break}while(1)}function CM(){var e=Um.current;return Um.current=Vm,e===null?Vm:e}function mC(){(tr===0||tr===3||tr===2)&&(tr=4),ar===null||!(Ma&268435455)&&!(Og&268435455)||gl(ar,vr)}function Km(e,t){var n=Wt;Wt|=2;var r=CM();(ar!==e||vr!==t)&&(ws=null,Ca(e,t));do try{z9();break}catch(o){wM(e,o)}while(1);if(Qw(),Wt=n,Um.current=r,Xn!==null)throw Error(Me(261));return ar=null,vr=0,tr}function z9(){for(;Xn!==null;)xM(Xn)}function j9(){for(;Xn!==null&&!f6();)xM(Xn)}function xM(e){var t=PM(e.alternate,e,yo);e.memoizedProps=e.pendingProps,t===null?SM(e):Xn=t,uC.current=null}function SM(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=L9(n,t),n!==null){n.flags&=32767,Xn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tr=6,Xn=null;return}}else if(n=O9(n,t,yo),n!==null){Xn=n;return}if(t=t.sibling,t!==null){Xn=t;return}Xn=t=e}while(t!==null);tr===0&&(tr=5)}function ca(e,t,n){var r=en,o=Jo.transition;try{Jo.transition=null,en=1,H9(e,t,n,r)}finally{Jo.transition=o,en=r}return null}function H9(e,t,n,r){do tu();while(bl!==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(x6(e,i),e===ar&&(Xn=ar=null,vr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oh||(Oh=!0,kM(_m,function(){return tu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Jo.transition,Jo.transition=null;var s=en;en=1;var a=Wt;Wt|=4,uC.current=null,F9(e,n),vM(n,e),a9(ib),Tm=!!ob,ib=ob=null,e.current=n,N9(n),p6(),Wt=a,en=s,Jo.transition=i}else e.current=n;if(Oh&&(Oh=!1,bl=e,Gm=o),i=e.pendingLanes,i===0&&(Tl=null),g6(n.stateNode),to(e,Wn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wm)throw Wm=!1,e=Pb,Pb=null,e;return Gm&1&&e.tag!==0&&tu(),i=e.pendingLanes,i&1?e===kb?nf++:(nf=0,kb=e):nf=0,Yl(),null}function tu(){if(bl!==null){var e=nT(Gm),t=Jo.transition,n=en;try{if(Jo.transition=null,en=16>e?16:e,bl===null)var r=!1;else{if(e=bl,bl=null,Gm=0,Wt&6)throw Error(Me(331));var o=Wt;for(Wt|=4,qe=e.current;qe!==null;){var i=qe,s=i.child;if(qe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(qe=d;qe!==null;){var p=qe;switch(p.tag){case 0:case 11:case 15:ef(8,p,i)}var h=p.child;if(h!==null)h.return=p,qe=h;else for(;qe!==null;){p=qe;var m=p.sibling,v=p.return;if(hM(p),p===d){qe=null;break}if(m!==null){m.return=v,qe=m;break}qe=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)}}qe=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,qe=s;else e:for(;qe!==null;){if(i=qe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ef(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,qe=C;break e}qe=i.return}}var E=e.current;for(qe=E;qe!==null;){s=qe;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,qe=w;else e:for(s=E;qe!==null;){if(a=qe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Rg(9,a)}}catch(k){jn(a,a.return,k)}if(a===s){qe=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,qe=S;break e}qe=a.return}}if(Wt=o,Yl(),Gi&&typeof Gi.onPostCommitFiberRoot=="function")try{Gi.onPostCommitFiberRoot(Eg,e)}catch(k){}r=!0}return r}finally{en=n,Jo.transition=t}}return!1}function Yk(e,t,n){t=gu(n,t),t=rM(e,t,1),e=$l(e,t,1),t=zr(),e!==null&&(np(e,1,t),to(e,t))}function jn(e,t,n){if(e.tag===3)Yk(e,e,n);else for(;t!==null;){if(t.tag===3){Yk(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))){e=gu(n,e),e=oM(t,e,1),t=$l(t,e,1),e=zr(),t!==null&&(np(t,1,e),to(t,e));break}}t=t.return}}function V9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=zr(),e.pingedLanes|=e.suspendedLanes&n,ar===e&&(vr&n)===n&&(tr===4||tr===3&&(vr&130023424)===vr&&500>Wn()-fC?Ca(e,0):dC|=n),to(e,t)}function EM(e,t){t===0&&(e.mode&1?(t=Sh,Sh<<=1,!(Sh&130023424)&&(Sh=4194304)):t=1);var n=zr();e=Fs(e,t),e!==null&&(np(e,t,n),to(e,n))}function U9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),EM(e,n)}function W9(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),EM(e,n)}var PM;PM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zr.current)Qr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qr=!1,R9(e,t,n);Qr=!!(e.flags&131072)}else Qr=!1,Pn&&t.flags&1048576&&_T(t,Nm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lm(e,t),e=t.pendingProps;var o=fu(t,Mr.current);eu(t,n),o=iC(null,t,r,e,o,n);var i=sC();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,eo(r)?(i=!0,Am(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,eC(t),o.updater=Tg,t.stateNode=o,o._reactInternals=t,hb(t,r,e,n),t=vb(null,t,r,!0,i,n)):(t.tag=0,Pn&&i&&Kw(t),Nr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=K9(r),e=gi(r,e),o){case 0:t=gb(null,t,r,e,n);break e;case 1:t=Bk(null,t,r,e,n);break e;case 11:t=Nk(null,t,r,e,n);break e;case 14:t=Dk(null,t,r,gi(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:gi(r,o),gb(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),Bk(e,t,r,o,n);case 3:e:{if(aM(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,RT(e,t),zm(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=gu(Error(Me(423)),t),t=zk(e,t,r,n,o);break e}else if(r!==o){o=gu(Error(Me(424)),t),t=zk(e,t,r,n,o);break e}else for(So=_l(t.stateNode.containerInfo.firstChild),Eo=t,Pn=!0,bi=null,n=FT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pu(),r===o){t=Ns(e,t,n);break e}Nr(e,t,r,n)}t=t.child}return t;case 5:return NT(t),e===null&&db(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,sb(r,o)?s=null:i!==null&&sb(r,i)&&(t.flags|=32),lM(e,t),Nr(e,t,s,n),t.child;case 6:return e===null&&db(t),null;case 13:return cM(e,t,n);case 4:return tC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hu(t,null,r,n):Nr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),Nk(e,t,r,o,n);case 7:return Nr(e,t,t.pendingProps,n),t.child;case 8:return Nr(e,t,t.pendingProps.children,n),t.child;case 12:return Nr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,dn(Dm,r._currentValue),r._currentValue=s,i!==null)if(Ii(i.value,s)){if(i.children===o.children&&!Zr.current){t=Ns(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=Ms(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),fb(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),fb(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Nr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,eu(t,n),o=ti(o),r=r(o),t.flags|=1,Nr(e,t,r,n),t.child;case 14:return r=t.type,o=gi(r,t.pendingProps),o=gi(r.type,o),Dk(e,t,r,o,n);case 15:return iM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),lm(e,t),t.tag=1,eo(r)?(e=!0,Am(t)):e=!1,eu(t,n),LT(t,r,o),hb(t,r,o,n),vb(null,t,r,!0,e,n);case 19:return uM(e,t,n);case 22:return sM(e,t,n)}throw Error(Me(156,t.tag))};function kM(e,t){return J$(e,t)}function G9(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 Qo(e,t,n,r){return new G9(e,t,n,r)}function gC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K9(e){if(typeof e=="function")return gC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Aw)return 11;if(e===Fw)return 14}return 2}function Rl(e,t){var n=e.alternate;return n===null?(n=Qo(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 um(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")gC(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ac:return xa(n.children,o,i,t);case Lw:s=8,o|=8;break;case D1:return e=Qo(12,n,t,o|2),e.elementType=D1,e.lanes=i,e;case B1:return e=Qo(13,n,t,o),e.elementType=B1,e.lanes=i,e;case z1:return e=Qo(19,n,t,o),e.elementType=z1,e.lanes=i,e;case A$:return Lg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O$:s=10;break e;case L$:s=9;break e;case Aw:s=11;break e;case Fw:s=14;break e;case cl:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=Qo(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function xa(e,t,n,r){return e=Qo(7,e,r,t),e.lanes=n,e}function Lg(e,t,n,r){return e=Qo(22,e,r,t),e.elementType=A$,e.lanes=n,e.stateNode={isHidden:!1},e}function Y0(e,t,n){return e=Qo(6,e,null,t),e.lanes=n,e}function X0(e,t,n){return t=Qo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q9(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=T0(0),this.expirationTimes=T0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=T0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vC(e,t,n,r,o,i,s,a,c){return e=new q9(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eC(i),e}function Y9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function IM(e){if(!e)return Dl;e=e._reactInternals;e:{if(Ga(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(eo(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(eo(n))return kT(e,n,t)}return t}function _M(e,t,n,r,o,i,s,a,c){return e=vC(n,r,!0,e,o,i,s,a,c),e.context=IM(null),n=e.current,r=zr(),o=Ml(n),i=Ms(r,o),i.callback=t!=null?t:null,$l(n,i,o),e.current.lanes=o,np(e,o,r),to(e,r),e}function Ag(e,t,n,r){var o=t.current,i=zr(),s=Ml(o);return n=IM(n),t.context===null?t.context=n:t.pendingContext=n,t=Ms(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$l(o,t,s),e!==null&&(Ei(e,o,s,i),om(e,o,s)),s}function qm(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 Xk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yC(e,t){Xk(e,t),(e=e.alternate)&&Xk(e,t)}function X9(){return null}var $M=typeof reportError=="function"?reportError:function(e){console.error(e)};function bC(e){this._internalRoot=e}Fg.prototype.render=bC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));Ag(e,t,null,null)};Fg.prototype.unmount=bC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ra(function(){Ag(null,e,null,null)}),t[As]=null}};function Fg(e){this._internalRoot=e}Fg.prototype.unstable_scheduleHydration=function(e){if(e){var t=iT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ml.length&&t!==0&&t<ml[n].priority;n++);ml.splice(n,0,e),n===0&&lT(e)}};function wC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ng(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qk(){}function Q9(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=qm(s);i.call(d)}}var s=_M(t,r,e,0,null,!1,!1,"",Qk);return e._reactRootContainer=s,e[As]=s.current,Ef(e.nodeType===8?e.parentNode:e),Ra(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=qm(c);a.call(d)}}var c=vC(e,0,!1,null,null,!1,!1,"",Qk);return e._reactRootContainer=c,e[As]=c.current,Ef(e.nodeType===8?e.parentNode:e),Ra(function(){Ag(t,c,n,r)}),c}function Dg(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=qm(s);a.call(c)}}Ag(t,s,e,o)}else s=Q9(n,t,e,o,r);return qm(s)}rT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dd(t.pendingLanes);n!==0&&(Bw(t,n|1),to(t,Wn()),!(Wt&6)&&(vu=Wn()+500,Yl()))}break;case 13:Ra(function(){var r=Fs(e,1);if(r!==null){var o=zr();Ei(r,e,1,o)}}),yC(e,1)}};zw=function(e){if(e.tag===13){var t=Fs(e,134217728);if(t!==null){var n=zr();Ei(t,e,134217728,n)}yC(e,134217728)}};oT=function(e){if(e.tag===13){var t=Ml(e),n=Fs(e,t);if(n!==null){var r=zr();Ei(n,e,t,r)}yC(e,t)}};iT=function(){return en};sT=function(e,t){var n=en;try{return en=e,t()}finally{en=n}};X1=function(e,t,n){switch(t){case"input":if(V1(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=_g(r);if(!o)throw Error(Me(90));N$(r),V1(r,o)}}}break;case"textarea":B$(e,n);break;case"select":t=n.value,t!=null&&Xc(e,!!n.multiple,t,!1)}};G$=pC;K$=Ra;var J9={usingClientEntryPoint:!1,Events:[op,Bc,_g,U$,W$,pC]},Cd={findFiberByHostInstance:ha,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Z9={bundleType:Cd.bundleType,version:Cd.version,rendererPackageName:Cd.rendererPackageName,rendererConfig:Cd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Us.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=X$(e),e===null?null:e.stateNode},findFiberByHostInstance:Cd.findFiberByHostInstance||X9,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 Lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lh.isDisabled&&Lh.supportsFiber)try{Eg=Lh.inject(Z9),Gi=Lh}catch(e){}}Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J9;Ro.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wC(t))throw Error(Me(200));return Y9(e,t,null,n)};Ro.createRoot=function(e,t){if(!wC(e))throw Error(Me(299));var n=!1,r="",o=$M;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=vC(e,1,!1,null,null,n,!1,r,o),e[As]=t.current,Ef(e.nodeType===8?e.parentNode:e),new bC(t)};Ro.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=X$(t),e=e===null?null:e.stateNode,e};Ro.flushSync=function(e){return Ra(e)};Ro.hydrate=function(e,t,n){if(!Ng(t))throw Error(Me(200));return Dg(null,e,t,!0,n)};Ro.hydrateRoot=function(e,t,n){if(!wC(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=$M;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=_M(t,null,e,1,n!=null?n:null,o,!1,i,s),e[As]=t.current,Ef(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 Fg(t)};Ro.render=function(e,t,n){if(!Ng(t))throw Error(Me(200));return Dg(null,e,t,!1,n)};Ro.unmountComponentAtNode=function(e){if(!Ng(e))throw Error(Me(40));return e._reactRootContainer?(Ra(function(){Dg(null,null,e,!1,function(){e._reactRootContainer=null,e[As]=null})}),!0):!1};Ro.unstable_batchedUpdates=pC;Ro.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ng(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return Dg(e,t,n,!1,r)};Ro.version="18.2.0-next-9e3b772b8-20220608";function TM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TM)}catch(e){console.error(e)}}TM(),_$.exports=Ro;var Au=_$.exports;const Ah=ep(Au);var MM,Jk=Au;MM=Jk.createRoot,Jk.hydrateRoot;const ej="modulepreload",tj=function(e){return"/"+e},Zk={},nj=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=tj(i),i in Zk)return;Zk[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":ej,s||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),s)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var b$;if(!((b$=window.crypto)!=null&&b$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return rt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield nj(()=>import("./sha512-40c08671.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
33
+ * @remix-run/router v1.5.0
34
+ *
35
+ * Copyright (c) Remix Software Inc.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE.md file in the root directory of this source tree.
39
+ *
40
+ * @license MIT
41
+ */function Of(){return Of=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},Of.apply(this,arguments)}var wl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wl||(wl={}));const e2="popstate";function rj(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=Ka(o.location.hash.substr(1));return $b("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");a=d===-1?c:c.slice(0,d)}return a+"#"+(typeof i=="string"?i:Ym(i))}function r(o,i){Bg(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return ij(t,n,r,e)}function nr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Bg(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function oj(){return Math.random().toString(36).substr(2,8)}function t2(e,t){return{usr:e.state,key:e.key,idx:t}}function $b(e,t,n,r){return n===void 0&&(n=null),Of({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ka(t):t,{state:n,key:t&&t.key||r||oj()})}function Ym(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ka(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ij(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=wl.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(Of({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=wl.Pop;let x=p(),C=x==null?null:x-d;d=x,c&&c({action:a,location:g.location,delta:C})}function m(x,C){a=wl.Push;let E=$b(g.location,x,C);n&&n(E,x),d=p()+1;let w=t2(E,d),S=g.createHref(E);try{s.pushState(w,"",S)}catch(k){o.location.assign(S)}i&&c&&c({action:a,location:g.location,delta:1})}function v(x,C){a=wl.Replace;let E=$b(g.location,x,C);n&&n(E,x),d=p();let w=t2(E,d),S=g.createHref(E);s.replaceState(w,"",S),i&&c&&c({action:a,location:g.location,delta:0})}function b(x){let C=o.location.origin!=="null"?o.location.origin:o.location.href,E=typeof x=="string"?x:Ym(x);return nr(C,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,C)}let g={get action(){return a},get location(){return e(o,s)},listen(x){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(e2,h),c=x,()=>{o.removeEventListener(e2,h),c=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let C=b(x);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:v,go(x){return s.go(x)}};return g}var n2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(n2||(n2={}));function sj(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ka(t):t,o=CC(r.pathname||"/",n);if(o==null)return null;let i=RM(e);lj(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=gj(i[a],bj(o));return s}function RM(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(nr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ol([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(nr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),RM(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:hj(d,i.index),routesMeta:p})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let c of OM(i.path))o(i,s,c)}),t}function OM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=OM(r.join("/")),a=[];return a.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function lj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aj=/^:\w+$/,cj=3,uj=2,dj=1,fj=10,pj=-2,r2=e=>e==="*";function hj(e,t){let n=e.split("/"),r=n.length;return n.some(r2)&&(r+=pj),t&&(r+=uj),n.filter(o=>!r2(o)).reduce((o,i)=>o+(aj.test(i)?cj:i===""?dj:fj),r)}function mj(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 gj(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=vj({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:Ol([o,p.pathname]),pathnameBase:Sj(Ol([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=Ol([o,p.pathnameBase]))}return i}function vj(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=yj(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((d,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return d[p]=wj(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function yj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Bg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function bj(e){try{return decodeURI(e)}catch(t){return Bg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function wj(e,t){try{return decodeURIComponent(e)}catch(n){return Bg(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function CC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Cj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ka(e):e;return{pathname:n?n.startsWith("/")?n:xj(n,t):t,search:Ej(r),hash:Pj(o)}}function xj(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 Q0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function LM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function AM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ka(e):(o=Of({},e),nr(!o.pathname||!o.pathname.includes("?"),Q0("?","pathname","search",o)),nr(!o.pathname||!o.pathname.includes("#"),Q0("#","pathname","hash",o)),nr(!o.search||!o.search.includes("#"),Q0("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}a=h>=0?t[h]:"/"}let c=Cj(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Ol=e=>e.join("/").replace(/\/\/+/g,"/"),Sj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ej=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FM=["post","put","patch","delete"];new Set(FM);const Ij=["get",...FM];new Set(Ij);/**
42
+ * React Router v6.10.0
43
+ *
44
+ * Copyright (c) Remix Software Inc.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE.md file in the root directory of this source tree.
48
+ *
49
+ * @license MIT
50
+ */function _j(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const $j=typeof Object.is=="function"?Object.is:_j,{useState:Tj,useEffect:Mj,useLayoutEffect:Rj,useDebugValue:Oj}=Ia;function Lj(e,t,n){const r=t(),[{inst:o},i]=Tj({inst:{value:r,getSnapshot:t}});return Rj(()=>{o.value=r,o.getSnapshot=t,J0(o)&&i({inst:o})},[e,r,t]),Mj(()=>(J0(o)&&i({inst:o}),e(()=>{J0(o)&&i({inst:o})})),[e]),Oj(r),r}function J0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$j(n,r)}catch(r){return!0}}function Aj(e,t,n){return t()}const Fj=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Nj=!Fj,Dj=Nj?Aj:Lj;"useSyncExternalStore"in Ia&&(e=>e.useSyncExternalStore)(Ia);const NM=u.createContext(null),xC=u.createContext(null),Fu=u.createContext(null),zg=u.createContext(null),Nu=u.createContext({outlet:null,matches:[]}),DM=u.createContext(null);function Tb(){return Tb=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},Tb.apply(this,arguments)}function Bj(e,t){let{relative:n}=t===void 0?{}:t;sp()||nr(!1);let{basename:r,navigator:o}=u.useContext(Fu),{hash:i,pathname:s,search:a}=SC(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:Ol([r,s])),o.createHref({pathname:c,search:a,hash:i})}function sp(){return u.useContext(zg)!=null}function Du(){return sp()||nr(!1),u.useContext(zg).location}function zj(){sp()||nr(!1);let{basename:e,navigator:t}=u.useContext(Fu),{matches:n}=u.useContext(Nu),{pathname:r}=Du(),o=JSON.stringify(LM(n).map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let d=AM(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:Ol([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function SC(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(Nu),{pathname:o}=Du(),i=JSON.stringify(LM(r).map(s=>s.pathnameBase));return u.useMemo(()=>AM(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function jj(e,t){sp()||nr(!1);let{navigator:n}=u.useContext(Fu),r=u.useContext(xC),{matches:o}=u.useContext(Nu),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Du(),d;if(t){var p;let g=typeof t=="string"?Ka(t):t;a==="/"||(p=g.pathname)!=null&&p.startsWith(a)||nr(!1),d=g}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",v=sj(e,{pathname:m}),b=Wj(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Ol([a,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?a:Ol([a,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&b?u.createElement(zg.Provider,{value:{location:Tb({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:wl.Pop}},b):b}function Hj(){let e=Yj(),t=kj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,i)}class Vj extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(Nu.Provider,{value:this.props.routeContext},u.createElement(DM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Uj(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(NM);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Nu.Provider,{value:t},r)}function Wj(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||nr(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let c=s.route.id?o==null?void 0:o[s.route.id]:null,d=null;n&&(s.route.ErrorBoundary?d=u.createElement(s.route.ErrorBoundary,null):s.route.errorElement?d=s.route.errorElement:d=u.createElement(Hj,null));let p=t.concat(r.slice(0,a+1)),h=()=>{let m=i;return c?m=d:s.route.Component?m=u.createElement(s.route.Component,null):s.route.element&&(m=s.route.element),u.createElement(Uj,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(Vj,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var o2;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(o2||(o2={}));var Xm;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Xm||(Xm={}));function Gj(e){let t=u.useContext(xC);return t||nr(!1),t}function Kj(e){let t=u.useContext(Nu);return t||nr(!1),t}function qj(e){let t=Kj(),n=t.matches[t.matches.length-1];return n.route.id||nr(!1),n.route.id}function Yj(){var e;let t=u.useContext(DM),n=Gj(Xm.UseRouteError),r=qj(Xm.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function BM(e){nr(!1)}function Xj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wl.Pop,navigator:i,static:s=!1}=e;sp()&&nr(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Ka(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=CC(d,a);return g==null?null:{location:{pathname:g,search:p,hash:h,state:m,key:v},navigationType:o}},[a,d,p,h,m,v,o]);return b==null?null:u.createElement(Fu.Provider,{value:c},u.createElement(zg.Provider,{children:n,value:b}))}function Qj(e){let{children:t,location:n}=e,r=u.useContext(NM),o=r&&!t?r.router.routes:Mb(t);return jj(o,n)}var i2;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(i2||(i2={}));new Promise(()=>{});function Mb(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let i=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Mb(r.props.children,i));return}r.type!==BM&&nr(!1),!r.props.index||!r.props.children||nr(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Mb(r.props.children,i)),n.push(s)}),n}/**
51
+ * React Router DOM v6.10.0
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function Qm(){return Qm=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},Qm.apply(this,arguments)}function zM(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 Jj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zj(e,t){return e.button===0&&(!t||t==="_self")&&!Jj(e)}const eH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],tH=["aria-current","caseSensitive","className","end","style","to","children"];function nH(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=rj({window:r,v5Compat:!0}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(Xj,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const rH=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",oH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jM=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=zM(t,eH),{basename:m}=u.useContext(Fu),v,b=!1;if(typeof d=="string"&&oH.test(d)&&(v=d,rH)){let E=new URL(window.location.href),w=d.startsWith("//")?new URL(E.protocol+d):new URL(d),S=CC(w.pathname,m);w.origin===E.origin&&S!=null?d=S+w.search+w.hash:b=!0}let g=Bj(d,{relative:o}),x=sH(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function C(E){r&&r(E),E.defaultPrevented||x(E)}return u.createElement("a",Qm({},h,{href:v||g,onClick:b||i?r:C,ref:n,target:c}))}),iH=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:d}=t,p=zM(t,tH),h=SC(c,{relative:p.relative}),m=Du(),v=u.useContext(xC),{navigator:b}=u.useContext(Fu),g=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,x=m.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(x=x.toLowerCase(),C=C?C.toLowerCase():null,g=g.toLowerCase());let E=x===g||!s&&x.startsWith(g)&&x.charAt(g.length)==="/",w=C!=null&&(C===g||!s&&C.startsWith(g)&&C.charAt(g.length)==="/"),S=E?r:void 0,k;typeof i=="function"?k=i({isActive:E,isPending:w}):k=[i,E?"active":null,w?"pending":null].filter(Boolean).join(" ");let _=typeof a=="function"?a({isActive:E,isPending:w}):a;return u.createElement(jM,Qm({},p,{"aria-current":S,className:k,ref:n,style:_,to:c}),typeof d=="function"?d({isActive:E,isPending:w}):d)});var s2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(s2||(s2={}));var l2;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(l2||(l2={}));function sH(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=zj(),c=Du(),d=SC(e,{relative:s});return u.useCallback(p=>{if(Zj(p,n)){p.preventDefault();let h=r!==void 0?r:Ym(c)===Ym(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const lH={black:"#000",white:"#fff"},Lf=lH,aH={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"},yc=aH,cH={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"},bc=cH,uH={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"},wc=uH,dH={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"},Cc=dH,fH={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"},xc=fH,pH={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"},xd=pH,hH={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"},mH=hH;function Z0(e,t){return()=>null}function P(){return P=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},P.apply(this,arguments)}function pa(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function HM(e){if(!pa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=HM(e[n])}),t}function Zo(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return pa(e)&&pa(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pa(t[o])&&o in e&&pa(e[o])?r[o]=Zo(e[o],t[o],n):n.clone?r[o]=pa(t[o])?HM(t[o]):t[o]:r[o]=t[o])}),r}var VM={exports:{}},gH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vH=gH,yH=vH;function UM(){}function WM(){}WM.resetWarningCache=UM;var bH=function(){function e(r,o,i,s,a,c){if(c!==yH){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:WM,resetWarningCache:UM};return n.PropTypes=n,n};VM.exports=bH();var wH=VM.exports;const ue=ep(wH);function Bl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var on={};/**
60
+ * @license React
61
+ * react-is.production.min.js
62
+ *
63
+ * Copyright (c) Facebook, Inc. and its affiliates.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */var EC=Symbol.for("react.element"),PC=Symbol.for("react.portal"),jg=Symbol.for("react.fragment"),Hg=Symbol.for("react.strict_mode"),Vg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Wg=Symbol.for("react.context"),CH=Symbol.for("react.server_context"),Gg=Symbol.for("react.forward_ref"),Kg=Symbol.for("react.suspense"),qg=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Xg=Symbol.for("react.lazy"),xH=Symbol.for("react.offscreen"),GM;GM=Symbol.for("react.module.reference");function li(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EC:switch(e=e.type,e){case jg:case Vg:case Hg:case Kg:case qg:return e;default:switch(e=e&&e.$$typeof,e){case CH:case Wg:case Gg:case Xg:case Yg:case Ug:return e;default:return t}}case PC:return t}}}on.ContextConsumer=Wg;on.ContextProvider=Ug;on.Element=EC;on.ForwardRef=Gg;on.Fragment=jg;on.Lazy=Xg;on.Memo=Yg;on.Portal=PC;on.Profiler=Vg;on.StrictMode=Hg;on.Suspense=Kg;on.SuspenseList=qg;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return li(e)===Wg};on.isContextProvider=function(e){return li(e)===Ug};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EC};on.isForwardRef=function(e){return li(e)===Gg};on.isFragment=function(e){return li(e)===jg};on.isLazy=function(e){return li(e)===Xg};on.isMemo=function(e){return li(e)===Yg};on.isPortal=function(e){return li(e)===PC};on.isProfiler=function(e){return li(e)===Vg};on.isStrictMode=function(e){return li(e)===Hg};on.isSuspense=function(e){return li(e)===Kg};on.isSuspenseList=function(e){return li(e)===qg};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jg||e===Vg||e===Hg||e===Kg||e===qg||e===xH||typeof e=="object"&&e!==null&&(e.$$typeof===Xg||e.$$typeof===Yg||e.$$typeof===Ug||e.$$typeof===Wg||e.$$typeof===Gg||e.$$typeof===GM||e.getModuleId!==void 0)};on.typeOf=li;function ce(e){if(typeof e!="string")throw new Error(Bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function a2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function dm(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Cn(e){return e&&e.ownerDocument||document}function _o(e){return Cn(e).defaultView||window}function Jm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const SH=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,hn=SH;let c2=0;function EH(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(c2+=1,n(`mui-${c2}`))},[t]),r}const u2=Ia["useId"];function On(e){if(u2!==void 0){const t=u2();return e!=null?e:t}return EH(e)}function Rs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(d=>{o||s(d)},[]);return[a,c]}function pn(e){const t=u.useRef(e);return hn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Ht(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Jm(n,t)})},e)}let Qg=!0,Rb=!1,d2;const PH={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 kH(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&PH[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function IH(e){e.metaKey||e.altKey||e.ctrlKey||(Qg=!0)}function e1(){Qg=!1}function _H(){this.visibilityState==="hidden"&&Rb&&(Qg=!0)}function $H(e){e.addEventListener("keydown",IH,!0),e.addEventListener("mousedown",e1,!0),e.addEventListener("pointerdown",e1,!0),e.addEventListener("touchstart",e1,!0),e.addEventListener("visibilitychange",_H,!0)}function TH(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Qg||kH(t)}function kC(){const e=u.useCallback(o=>{o!=null&&$H(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(Rb=!0,window.clearTimeout(d2),d2=window.setTimeout(()=>{Rb=!1},100),t.current=!1,!0):!1}function r(o){return TH(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function KM(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Sc;function qM(){if(Sc)return Sc;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),Sc="reverse",e.scrollLeft>0?Sc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Sc="negative")),document.body.removeChild(e),Sc}function f2(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(qM()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const MH=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},IC=MH;function _C(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=P({},i),Object.keys(o).forEach(s=>{n[r][s]=_C(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ie(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const p2=e=>e,RH=()=>{let e=p2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p2}}},OH=RH(),YM=OH,LH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=LH[t];return r?`${n}-${r}`:`${YM.generate(e)}-${t}`}function Ye(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}const Oa="$$material";function se(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 XM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var AH=/^((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)-.*))$/,FH=XM(function(e){return AH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function NH(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 DH(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 BH=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(DH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=NH(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}(),Pr="-ms-",Zm="-moz-",qt="-webkit-",QM="comm",$C="rule",TC="decl",zH="@import",JM="@keyframes",jH=Math.abs,Jg=String.fromCharCode,HH=Object.assign;function VH(e,t){return gr(e,0)^45?(((t<<2^gr(e,0))<<2^gr(e,1))<<2^gr(e,2))<<2^gr(e,3):0}function ZM(e){return e.trim()}function UH(e,t){return(e=t.exec(e))?e[0]:e}function Qt(e,t,n){return e.replace(t,n)}function Ob(e,t){return e.indexOf(t)}function gr(e,t){return e.charCodeAt(t)|0}function Af(e,t,n){return e.slice(t,n)}function ji(e){return e.length}function MC(e){return e.length}function Fh(e,t){return t.push(e),e}function WH(e,t){return e.map(t).join("")}var Zg=1,yu=1,eR=0,io=0,Yn=0,Bu="";function ev(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Zg,column:yu,length:s,return:""}}function Sd(e,t){return HH(ev("",null,null,"",null,null,0),e,{length:-e.length},t)}function GH(){return Yn}function KH(){return Yn=io>0?gr(Bu,--io):0,yu--,Yn===10&&(yu=1,Zg--),Yn}function Po(){return Yn=io<eR?gr(Bu,io++):0,yu++,Yn===10&&(yu=1,Zg++),Yn}function qi(){return gr(Bu,io)}function fm(){return io}function lp(e,t){return Af(Bu,e,t)}function Ff(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 tR(e){return Zg=yu=1,eR=ji(Bu=e),io=0,[]}function nR(e){return Bu="",e}function pm(e){return ZM(lp(io-1,Lb(e===91?e+2:e===40?e+1:e)))}function qH(e){for(;(Yn=qi())&&Yn<33;)Po();return Ff(e)>2||Ff(Yn)>3?"":" "}function YH(e,t){for(;--t&&Po()&&!(Yn<48||Yn>102||Yn>57&&Yn<65||Yn>70&&Yn<97););return lp(e,fm()+(t<6&&qi()==32&&Po()==32))}function Lb(e){for(;Po();)switch(Yn){case e:return io;case 34:case 39:e!==34&&e!==39&&Lb(Yn);break;case 40:e===41&&Lb(e);break;case 92:Po();break}return io}function XH(e,t){for(;Po()&&e+Yn!==47+10;)if(e+Yn===42+42&&qi()===47)break;return"/*"+lp(t,io-1)+"*"+Jg(e===47?e:Po())}function QH(e){for(;!Ff(qi());)Po();return lp(e,io)}function JH(e){return nR(hm("",null,null,null,[""],e=tR(e),0,[0],e))}function hm(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,v=0,b=0,g=1,x=1,C=1,E=0,w="",S=o,k=i,_=r,I=w;x;)switch(b=E,E=Po()){case 40:if(b!=108&&gr(I,h-1)==58){Ob(I+=Qt(pm(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=pm(E);break;case 9:case 10:case 13:case 32:I+=qH(b);break;case 92:I+=YH(fm()-1,7);continue;case 47:switch(qi()){case 42:case 47:Fh(ZH(XH(Po(),fm()),t,n),c);break;default:I+="/"}break;case 123*g:a[d++]=ji(I)*C;case 125*g:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+p:v>0&&ji(I)-h&&Fh(v>32?m2(I+";",r,n,h-1):m2(Qt(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Fh(_=h2(I,t,n,d,p,o,a,w,S=[],k=[],h),i),E===123)if(p===0)hm(I,t,_,_,S,i,h,a,k);else switch(m===99&&gr(I,3)===110?100:m){case 100:case 109:case 115:hm(e,_,_,r&&Fh(h2(e,_,_,0,0,o,a,w,o,S=[],h),k),o,k,h,a,r?S:k);break;default:hm(I,_,_,_,[""],k,0,a,k)}}d=p=v=0,g=C=1,w=I="",h=s;break;case 58:h=1+ji(I),v=b;default:if(g<1){if(E==123)--g;else if(E==125&&g++==0&&KH()==125)continue}switch(I+=Jg(E),E*g){case 38:C=p>0?1:(I+="\f",-1);break;case 44:a[d++]=(ji(I)-1)*C,C=1;break;case 64:qi()===45&&(I+=pm(Po())),m=qi(),p=h=ji(w=I+=QH(fm())),E++;break;case 45:b===45&&ji(I)==2&&(g=0)}}return i}function h2(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],v=MC(m),b=0,g=0,x=0;b<r;++b)for(var C=0,E=Af(e,h+1,h=jH(g=s[b])),w=e;C<v;++C)(w=ZM(g>0?m[C]+" "+E:Qt(E,/&\f/g,m[C])))&&(c[x++]=w);return ev(e,t,n,o===0?$C:a,c,d,p)}function ZH(e,t,n){return ev(e,t,n,QM,Jg(GH()),Af(e,2,-2),0)}function m2(e,t,n,r){return ev(e,t,n,TC,Af(e,0,r),Af(e,r+1,-1),r)}function nu(e,t){for(var n="",r=MC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function e8(e,t,n,r){switch(e.type){case zH:case TC:return e.return=e.return||e.value;case QM:return"";case JM:return e.return=e.value+"{"+nu(e.children,r)+"}";case $C:e.value=e.props.join(",")}return ji(n=nu(e.children,r))?e.return=e.value+"{"+n+"}":""}function t8(e){var t=MC(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 n8(e){return function(t){t.root||(t=t.return)&&e(t)}}var r8=function(t,n,r){for(var o=0,i=0;o=i,i=qi(),o===38&&i===12&&(n[r]=1),!Ff(i);)Po();return lp(t,io)},o8=function(t,n){var r=-1,o=44;do switch(Ff(o)){case 0:o===38&&qi()===12&&(n[r]=1),t[r]+=r8(io-1,n,r);break;case 2:t[r]+=pm(o);break;case 4:if(o===44){t[++r]=qi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Jg(o)}while(o=Po());return t},i8=function(t,n){return nR(o8(tR(t),n))},g2=new WeakMap,s8=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&&!g2.get(r))&&!o){g2.set(t,!0);for(var i=[],s=i8(n,i),a=r.props,c=0,d=0;c<s.length;c++)for(var p=0;p<a.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},l8=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rR(e,t){switch(VH(e,t)){case 5103:return qt+"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 qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qt+e+Zm+e+Pr+e+e;case 6828:case 4268:return qt+e+Pr+e+e;case 6165:return qt+e+Pr+"flex-"+e+e;case 5187:return qt+e+Qt(e,/(\w+).+(:[^]+)/,qt+"box-$1$2"+Pr+"flex-$1$2")+e;case 5443:return qt+e+Pr+"flex-item-"+Qt(e,/flex-|-self/,"")+e;case 4675:return qt+e+Pr+"flex-line-pack"+Qt(e,/align-content|flex-|-self/,"")+e;case 5548:return qt+e+Pr+Qt(e,"shrink","negative")+e;case 5292:return qt+e+Pr+Qt(e,"basis","preferred-size")+e;case 6060:return qt+"box-"+Qt(e,"-grow","")+qt+e+Pr+Qt(e,"grow","positive")+e;case 4554:return qt+Qt(e,/([^-])(transform)/g,"$1"+qt+"$2")+e;case 6187:return Qt(Qt(Qt(e,/(zoom-|grab)/,qt+"$1"),/(image-set)/,qt+"$1"),e,"")+e;case 5495:case 3959:return Qt(e,/(image-set\([^]*)/,qt+"$1$`$1");case 4968:return Qt(Qt(e,/(.+:)(flex-)?(.*)/,qt+"box-pack:$3"+Pr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qt+e+e;case 4095:case 3583:case 4068:case 2532:return Qt(e,/(.+)-inline(.+)/,qt+"$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(ji(e)-1-t>6)switch(gr(e,t+1)){case 109:if(gr(e,t+4)!==45)break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+qt+"$2-$3$1"+Zm+(gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ob(e,"stretch")?rR(Qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gr(e,t+1)!==115)break;case 6444:switch(gr(e,ji(e)-3-(~Ob(e,"!important")&&10))){case 107:return Qt(e,":",":"+qt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qt+(gr(e,14)===45?"inline-":"")+"box$3$1"+qt+"$2$3$1"+Pr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return qt+e+Pr+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qt+e+Pr+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qt+e+Pr+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qt+e+Pr+e+e}return e}var a8=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case TC:t.return=rR(t.value,t.length);break;case JM:return nu([Sd(t,{value:Qt(t.value,"@","@"+qt)})],o);case $C:if(t.length)return WH(t.props,function(i){switch(UH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nu([Sd(t,{props:[Qt(i,/:(read-\w+)/,":"+Zm+"$1")]})],o);case"::placeholder":return nu([Sd(t,{props:[Qt(i,/:(plac\w+)/,":"+qt+"input-$1")]}),Sd(t,{props:[Qt(i,/:(plac\w+)/,":"+Zm+"$1")]}),Sd(t,{props:[Qt(i,/:(plac\w+)/,Pr+"input-$1")]})],o)}return""})}},c8=[a8],u8=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||c8,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,d=[s8,l8];{var p,h=[e8,n8(function(g){p.insert(g)})],m=t8(d.concat(o,h)),v=function(x){return nu(JH(x),m)};c=function(x,C,E,w){p=E,v(x?x+"{"+C.styles+"}":C.styles),w&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new BH({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},oR={exports:{}},tn={};/** @license React v16.13.1
68
+ * react-is.production.min.js
69
+ *
70
+ * Copyright (c) Facebook, Inc. and its affiliates.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */var fr=typeof Symbol=="function"&&Symbol.for,RC=fr?Symbol.for("react.element"):60103,OC=fr?Symbol.for("react.portal"):60106,tv=fr?Symbol.for("react.fragment"):60107,nv=fr?Symbol.for("react.strict_mode"):60108,rv=fr?Symbol.for("react.profiler"):60114,ov=fr?Symbol.for("react.provider"):60109,iv=fr?Symbol.for("react.context"):60110,LC=fr?Symbol.for("react.async_mode"):60111,sv=fr?Symbol.for("react.concurrent_mode"):60111,lv=fr?Symbol.for("react.forward_ref"):60112,av=fr?Symbol.for("react.suspense"):60113,d8=fr?Symbol.for("react.suspense_list"):60120,cv=fr?Symbol.for("react.memo"):60115,uv=fr?Symbol.for("react.lazy"):60116,f8=fr?Symbol.for("react.block"):60121,p8=fr?Symbol.for("react.fundamental"):60117,h8=fr?Symbol.for("react.responder"):60118,m8=fr?Symbol.for("react.scope"):60119;function Lo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case RC:switch(e=e.type,e){case LC:case sv:case tv:case rv:case nv:case av:return e;default:switch(e=e&&e.$$typeof,e){case iv:case lv:case uv:case cv:case ov:return e;default:return t}}case OC:return t}}}function iR(e){return Lo(e)===sv}tn.AsyncMode=LC;tn.ConcurrentMode=sv;tn.ContextConsumer=iv;tn.ContextProvider=ov;tn.Element=RC;tn.ForwardRef=lv;tn.Fragment=tv;tn.Lazy=uv;tn.Memo=cv;tn.Portal=OC;tn.Profiler=rv;tn.StrictMode=nv;tn.Suspense=av;tn.isAsyncMode=function(e){return iR(e)||Lo(e)===LC};tn.isConcurrentMode=iR;tn.isContextConsumer=function(e){return Lo(e)===iv};tn.isContextProvider=function(e){return Lo(e)===ov};tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===RC};tn.isForwardRef=function(e){return Lo(e)===lv};tn.isFragment=function(e){return Lo(e)===tv};tn.isLazy=function(e){return Lo(e)===uv};tn.isMemo=function(e){return Lo(e)===cv};tn.isPortal=function(e){return Lo(e)===OC};tn.isProfiler=function(e){return Lo(e)===rv};tn.isStrictMode=function(e){return Lo(e)===nv};tn.isSuspense=function(e){return Lo(e)===av};tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tv||e===sv||e===rv||e===nv||e===av||e===d8||typeof e=="object"&&e!==null&&(e.$$typeof===uv||e.$$typeof===cv||e.$$typeof===ov||e.$$typeof===iv||e.$$typeof===lv||e.$$typeof===p8||e.$$typeof===h8||e.$$typeof===m8||e.$$typeof===f8)};tn.typeOf=Lo;oR.exports=tn;var g8=oR.exports,sR=g8,v8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lR={};lR[sR.ForwardRef]=v8;lR[sR.Memo]=y8;var b8=!0;function w8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var aR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||b8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},cR=function(t,n,r){aR(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 C8(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 x8={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},S8=/[A-Z]|^ms/g,E8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uR=function(t){return t.charCodeAt(1)===45},v2=function(t){return t!=null&&typeof t!="boolean"},t1=XM(function(e){return uR(e)?e:e.replace(S8,"-$&").toLowerCase()}),y2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E8,function(r,o,i){return Hi={name:o,styles:i,next:Hi},o})}return x8[t]!==1&&!uR(t)&&typeof n=="number"&&n!==0?n+"px":n};function Nf(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 Hi={name:n.name,styles:n.styles,next:Hi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Hi={name:r.name,styles:r.styles,next:Hi},r=r.next;var o=n.styles+";";return o}return P8(e,t,n)}case"function":{if(e!==void 0){var i=Hi,s=n(e);return Hi=i,Nf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function P8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Nf(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]+"}":v2(s)&&(r+=t1(i)+":"+y2(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++)v2(s[a])&&(r+=t1(i)+":"+y2(i,s[a])+";");else{var c=Nf(e,t,s);switch(i){case"animation":case"animationName":{r+=t1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var b2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Hi,AC=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="";Hi=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Nf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Nf(r,n,t[a]),o&&(i+=s[a]);b2.lastIndex=0;for(var c="",d;(d=b2.exec(i))!==null;)c+="-"+d[1];var p=C8(i)+c;return{name:p,styles:i,next:Hi}},k8=function(t){return t()},dR=Ia["useInsertionEffect"]?Ia["useInsertionEffect"]:!1,I8=dR||k8,w2=dR||u.useLayoutEffect,fR=u.createContext(typeof HTMLElement!="undefined"?u8({key:"css"}):null);fR.Provider;var pR=function(t){return u.forwardRef(function(n,r){var o=u.useContext(fR);return t(n,o,r)})},dv=u.createContext({}),_8=pR(function(e,t){var n=e.styles,r=AC([n],void 0,u.useContext(dv)),o=u.useRef();return w2(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]),w2(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&cR(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 jl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return AC(t)}var rs=function(){var t=jl.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_"}}},$8=FH,T8=function(t){return t!=="theme"},C2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$8:T8},x2=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},M8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return aR(n,r,o),I8(function(){return cR(n,r,o)}),null},R8=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=x2(t,n,r),c=a||C2(o),d=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=pR(function(g,x,C){var E=d&&g.as||o,w="",S=[],k=g;if(g.theme==null){k={};for(var _ in g)k[_]=g[_];k.theme=u.useContext(dv)}typeof g.className=="string"?w=w8(x.registered,S,g.className):g.className!=null&&(w=g.className+" ");var I=AC(h.concat(S),x.registered,k);w+=x.key+"-"+I.name,s!==void 0&&(w+=" "+s);var T=d&&a===void 0?C2(E):c,O={};for(var R in g)d&&R==="as"||T(R)&&(O[R]=g[R]);return O.className=w,O.ref=C,u.createElement(u.Fragment,null,u.createElement(M8,{cache:x,serialized:I,isStringTag:typeof E=="string"}),u.createElement(E,O))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(g,x){return e(g,P({},n,x,{shouldForwardProp:x2(b,x,!0)})).apply(void 0,h)},b}};const O8=R8;var L8=["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"],Ab=O8.bind();L8.forEach(function(e){Ab[e]=Ab(e)});const A8=Ab;var hR={exports:{}},fv={};/**
75
+ * @license React
76
+ * react-jsx-runtime.production.min.js
77
+ *
78
+ * Copyright (c) Facebook, Inc. and its affiliates.
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ */var F8=u,N8=Symbol.for("react.element"),D8=Symbol.for("react.fragment"),B8=Object.prototype.hasOwnProperty,z8=F8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j8={key:!0,ref:!0,__self:!0,__source:!0};function mR(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)B8.call(t,r)&&!j8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:N8,type:e,key:i,ref:s,props:o,_owner:z8.current}}fv.Fragment=D8;fv.jsx=mR;fv.jsxs=mR;hR.exports=fv;var M=hR.exports;function H8(e){return e==null||Object.keys(e).length===0}function V8(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(H8(o)?n:o):t;return M.jsx(_8,{styles:r})}/**
83
+ * @mui/styled-engine v5.12.0
84
+ *
85
+ * @license MIT
86
+ * This source code is licensed under the MIT license found in the
87
+ * LICENSE file in the root directory of this source tree.
88
+ */function gR(e,t){return A8(e,t)}const U8=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},W8=["values","unit","step"],G8=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)=>P({},n,{[r.key]:r.val}),{})};function K8(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,W8),i=G8(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function d(m,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?d(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]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return P({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const q8={borderRadius:4},Y8=q8;function rf(e,t){return t?Zo(e,t,{clone:!1}):e}const FC={xs:0,sm:600,md:900,lg:1200,xl:1536},S2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${FC[e]}px)`};function ri(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||S2;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||S2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||FC).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 X8(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Q8(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function J8(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 pv({values:e,breakpoints:t,base:n}){const r=n||J8(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 bu(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 eg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=bu(e,n)||r,t&&(o=t(o,r,e)),o}function Jt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,d=bu(c,r)||{};return ri(s,a,h=>{let m=eg(d,o,h);return h===m&&typeof h=="string"&&(m=eg(d,o,`${t}${h==="default"?"":ce(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function Z8(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const eV={m:"margin",p:"padding"},tV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nV=Z8(e=>{if(e.length>2)if(E2[e])e=E2[e];else return[e];const[t,n]=e.split(""),r=eV[t],o=tV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),NC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...NC,...DC];function ap(e,t,n,r){var o;const i=(o=bu(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 vR(e){return ap(e,"spacing",8)}function cp(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 rV(e,t){return n=>e.reduce((r,o)=>(r[o]=cp(t,n),r),{})}function oV(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=nV(n),i=rV(o,r),s=e[n];return ri(e,s,i)}function yR(e,t){const n=vR(e.theme);return Object.keys(e).map(r=>oV(e,t,r,n)).reduce(rf,{})}function Bn(e){return yR(e,NC)}Bn.propTypes={};Bn.filterProps=NC;function zn(e){return yR(e,DC)}zn.propTypes={};zn.filterProps=DC;function iV(e=8){if(e.mui)return e;const t=vR({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function hv(...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]?rf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Wi(e){return typeof e!="number"?e:`${e}px solid`}const sV=Jt({prop:"border",themeKey:"borders",transform:Wi}),lV=Jt({prop:"borderTop",themeKey:"borders",transform:Wi}),aV=Jt({prop:"borderRight",themeKey:"borders",transform:Wi}),cV=Jt({prop:"borderBottom",themeKey:"borders",transform:Wi}),uV=Jt({prop:"borderLeft",themeKey:"borders",transform:Wi}),dV=Jt({prop:"borderColor",themeKey:"palette"}),fV=Jt({prop:"borderTopColor",themeKey:"palette"}),pV=Jt({prop:"borderRightColor",themeKey:"palette"}),hV=Jt({prop:"borderBottomColor",themeKey:"palette"}),mV=Jt({prop:"borderLeftColor",themeKey:"palette"}),mv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ap(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:cp(t,r)});return ri(e,e.borderRadius,n)}return null};mv.propTypes={};mv.filterProps=["borderRadius"];hv(sV,lV,aV,cV,uV,dV,fV,pV,hV,mV,mv);const gv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ap(e.theme,"spacing",8),n=r=>({gap:cp(t,r)});return ri(e,e.gap,n)}return null};gv.propTypes={};gv.filterProps=["gap"];const vv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({columnGap:cp(t,r)});return ri(e,e.columnGap,n)}return null};vv.propTypes={};vv.filterProps=["columnGap"];const yv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({rowGap:cp(t,r)});return ri(e,e.rowGap,n)}return null};yv.propTypes={};yv.filterProps=["rowGap"];const gV=Jt({prop:"gridColumn"}),vV=Jt({prop:"gridRow"}),yV=Jt({prop:"gridAutoFlow"}),bV=Jt({prop:"gridAutoColumns"}),wV=Jt({prop:"gridAutoRows"}),CV=Jt({prop:"gridTemplateColumns"}),xV=Jt({prop:"gridTemplateRows"}),SV=Jt({prop:"gridTemplateAreas"}),EV=Jt({prop:"gridArea"});hv(gv,vv,yv,gV,vV,yV,bV,wV,CV,xV,SV,EV);function ru(e,t){return t==="grey"?t:e}const PV=Jt({prop:"color",themeKey:"palette",transform:ru}),kV=Jt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),IV=Jt({prop:"backgroundColor",themeKey:"palette",transform:ru});hv(PV,kV,IV);function Co(e){return e<=1&&e!==0?`${e*100}%`:e}const _V=Jt({prop:"width",transform:Co}),BC=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])||FC[n]||Co(n)}};return ri(e,e.maxWidth,t)}return null};BC.filterProps=["maxWidth"];const $V=Jt({prop:"minWidth",transform:Co}),TV=Jt({prop:"height",transform:Co}),MV=Jt({prop:"maxHeight",transform:Co}),RV=Jt({prop:"minHeight",transform:Co});Jt({prop:"size",cssProperty:"width",transform:Co});Jt({prop:"size",cssProperty:"height",transform:Co});const OV=Jt({prop:"boxSizing"});hv(_V,BC,$V,TV,MV,RV,OV);const LV={border:{themeKey:"borders",transform:Wi},borderTop:{themeKey:"borders",transform:Wi},borderRight:{themeKey:"borders",transform:Wi},borderBottom:{themeKey:"borders",transform:Wi},borderLeft:{themeKey:"borders",transform:Wi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mv},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},p:{style:zn},pt:{style:zn},pr:{style:zn},pb:{style:zn},pl:{style:zn},px:{style:zn},py:{style:zn},padding:{style:zn},paddingTop:{style:zn},paddingRight:{style:zn},paddingBottom:{style:zn},paddingLeft:{style:zn},paddingX:{style:zn},paddingY:{style:zn},paddingInline:{style:zn},paddingInlineStart:{style:zn},paddingInlineEnd:{style:zn},paddingBlock:{style:zn},paddingBlockStart:{style:zn},paddingBlockEnd:{style:zn},m:{style:Bn},mt:{style:Bn},mr:{style:Bn},mb:{style:Bn},ml:{style:Bn},mx:{style:Bn},my:{style:Bn},margin:{style:Bn},marginTop:{style:Bn},marginRight:{style:Bn},marginBottom:{style:Bn},marginLeft:{style:Bn},marginX:{style:Bn},marginY:{style:Bn},marginInline:{style:Bn},marginInlineStart:{style:Bn},marginInlineEnd:{style:Bn},marginBlock:{style:Bn},marginBlockStart:{style:Bn},marginBlockEnd:{style:Bn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gv},rowGap:{style:yv},columnGap:{style:vv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Co},maxWidth:{style:BC},minWidth:{transform:Co},height:{transform:Co},maxHeight:{transform:Co},minHeight:{transform:Co},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bv=LV;function AV(...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 FV(e,t){return typeof e=="function"?e(t):e}function NV(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:h}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const m=bu(o,d)||{};return h?h(s):ri(s,r,b=>{let g=eg(m,p,b);return b===g&&typeof b=="string"&&(g=eg(m,p,`${n}${b==="default"?"":ce(b)}`,b)),c===!1?g:{[c]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:bv;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=X8(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(v=>{const b=FV(d[v],i);if(b!=null)if(typeof b=="object")if(s[v])m=rf(m,e(v,b,i,s));else{const g=ri({theme:i},b,x=>({[v]:x}));AV(g,b)?m[v]=t({sx:b,theme:i}):m=rf(m,g)}else m=rf(m,e(v,b,i,s))}),Q8(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const bR=NV();bR.filterProps=["sx"];const wv=bR,DV=["breakpoints","palette","spacing","shape"];function zC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=se(e,DV),a=K8(n),c=iV(o);let d=Zo({breakpoints:a,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:c,shape:P({},Y8,i)},s);return d=t.reduce((p,h)=>Zo(p,h),d),d.unstable_sxConfig=P({},bv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return wv({sx:h,theme:this})},d}function BV(e){return Object.keys(e).length===0}function Cv(e=null){const t=u.useContext(dv);return!t||BV(t)?e:t}const zV=zC();function xv(e=zV){return Cv(e)}function jV({styles:e,themeId:t,defaultTheme:n={}}){const r=xv(n),o=typeof e=="function"?e(t&&r[t]||r):e;return M.jsx(V8,{styles:o})}const HV=["sx"],VV=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:bv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function jC(e){const{sx:t}=e,n=se(e,HV),{systemProps:r,otherProps:o}=VV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return pa(a)?P({},r,a):r}:i=P({},r,t),P({},o,{sx:i})}function wR(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=wR(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wR(e))&&(r&&(r+=" "),r+=t);return r}const UV=["className","component"];function WV(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=gR("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(wv);return u.forwardRef(function(c,d){const p=xv(n),h=jC(c),{className:m,component:v="div"}=h,b=se(h,UV);return M.jsx(i,P({as:v,ref:d,className:pe(m,o?o(r):r),theme:t&&p[t]||p},b))})}const GV=["variant"];function P2(e){return e.length===0}function CR(e){const{variant:t}=e,n=se(e,GV);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=P2(r)?e[o]:ce(e[o]):r+=`${P2(r)?o:ce(o)}${ce(e[o].toString())}`}),r}const KV=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qV(e){return Object.keys(e).length===0}function YV(e){return typeof e=="string"&&e.charCodeAt(0)>96}const XV=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,QV=(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=CR(o.props);r[i]=o.style}),r},JV=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(d=>{let p=!0;Object.keys(d.props).forEach(h=>{s[h]!==d.props[h]&&e[h]!==d.props[h]&&(p=!1)}),p&&a.push(t[CR(d.props)])}),a};function of(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZV=zC();function Ed({defaultTheme:e,theme:t,themeId:n}){return qV(t)?e:t[n]||t}function e7(e={}){const{themeId:t,defaultTheme:n=ZV,rootShouldForwardProp:r=of,slotShouldForwardProp:o=of}=e,i=s=>wv(P({},s,{theme:Ed(P({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{U8(s,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=se(a,KV),b=p!==void 0?p:d&&d!=="Root"||!1,g=h||!1;let x,C=of;d==="Root"?C=r:d?C=o:YV(s)&&(C=void 0);const E=gR(s,P({shouldForwardProp:C,label:x},v)),w=(S,...k)=>{const _=k?k.map(R=>typeof R=="function"&&R.__emotion_real!==R?A=>R(P({},A,{theme:Ed(P({},A,{defaultTheme:n,themeId:t}))})):R):[];let I=S;c&&m&&_.push(R=>{const A=Ed(P({},R,{defaultTheme:n,themeId:t})),V=XV(c,A);if(V){const B={};return Object.entries(V).forEach(([L,F])=>{B[L]=typeof F=="function"?F(P({},R,{theme:A})):F}),m(R,B)}return null}),c&&!b&&_.push(R=>{const A=Ed(P({},R,{defaultTheme:n,themeId:t}));return JV(R,QV(c,A),A,c)}),g||_.push(i);const T=_.length-k.length;if(Array.isArray(S)&&T>0){const R=new Array(T).fill("");I=[...S,...R],I.raw=[...S.raw,...R]}else typeof S=="function"&&S.__emotion_real!==S&&(I=R=>S(P({},R,{theme:Ed(P({},R,{defaultTheme:n,themeId:t}))})));const O=E(I,..._);return s.muiName&&(O.muiName=s.muiName),O};return E.withConfig&&(w.withConfig=E.withConfig),w}}function xR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:_C(t.components[n].defaultProps,r)}function t7({props:e,name:t,defaultTheme:n,themeId:r}){let o=xv(n);return r&&(o=o[r]||o),xR({theme:o,name:t,props:e})}function HC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function n7(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 La(e){if(e.type)return e;if(e.charAt(0)==="#")return La(n7(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Bl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Sv(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 r7(e){e=La(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Sv({type:a,values:c})}function k2(e){e=La(e);let t=e.type==="hsl"||e.type==="hsla"?La(r7(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ys((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function o7(e,t){const n=k2(e),r=k2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ct(e,t){return e=La(e),t=HC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sv(e)}function Ds(e,t){if(e=La(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 Sv(e)}function Bs(e,t){if(e=La(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 Sv(e)}const i7=u.createContext(null),SR=i7;function ER(){return u.useContext(SR)}const s7=typeof Symbol=="function"&&Symbol.for,l7=s7?Symbol.for("mui.nested"):"__THEME_NESTED__";function a7(e,t){return typeof t=="function"?t(e):P({},e,t)}function c7(e){const{children:t,theme:n}=e,r=ER(),o=u.useMemo(()=>{const i=r===null?n:a7(r,n);return i!=null&&(i[l7]=r!==null),i},[n,r]);return M.jsx(SR.Provider,{value:o,children:t})}const I2={};function _2(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?P({},t,{[e]:i}):i;return r?()=>s:s}return e?P({},t,{[e]:n}):P({},t,n)},[e,t,n,r])}function u7(e){const{children:t,theme:n,themeId:r}=e,o=Cv(I2),i=ER()||I2,s=_2(r,o,n),a=_2(r,i,n,!0);return M.jsx(c7,{theme:a,children:M.jsx(dv.Provider,{value:s,children:t})})}function d7(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const f7=["mode","contrastThreshold","tonalOffset"],$2={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:Lf.white,default:Lf.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}},n1={text:{primary:Lf.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:Lf.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 T2(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=Bs(e.main,o):t==="dark"&&(e.dark=Ds(e.main,i)))}function p7(e="light"){return e==="dark"?{main:wc[200],light:wc[50],dark:wc[400]}:{main:wc[700],light:wc[400],dark:wc[800]}}function h7(e="light"){return e==="dark"?{main:bc[200],light:bc[50],dark:bc[400]}:{main:bc[500],light:bc[300],dark:bc[700]}}function m7(e="light"){return e==="dark"?{main:yc[500],light:yc[300],dark:yc[700]}:{main:yc[700],light:yc[400],dark:yc[800]}}function g7(e="light"){return e==="dark"?{main:Cc[400],light:Cc[300],dark:Cc[700]}:{main:Cc[700],light:Cc[500],dark:Cc[900]}}function v7(e="light"){return e==="dark"?{main:xc[400],light:xc[300],dark:xc[700]}:{main:xc[800],light:xc[500],dark:xc[900]}}function y7(e="light"){return e==="dark"?{main:xd[400],light:xd[300],dark:xd[700]}:{main:"#ed6c02",light:xd[500],dark:xd[900]}}function b7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,f7),i=e.primary||p7(t),s=e.secondary||h7(t),a=e.error||m7(t),c=e.info||g7(t),d=e.success||v7(t),p=e.warning||y7(t);function h(g){return o7(g,n1.text.primary)>=n?n1.text.primary:$2.text.primary}const m=({color:g,name:x,mainShade:C=500,lightShade:E=300,darkShade:w=700})=>{if(g=P({},g),!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Bl(11,x?` (${x})`:"",C));if(typeof g.main!="string")throw new Error(Bl(12,x?` (${x})`:"",JSON.stringify(g.main)));return T2(g,"light",E,r),T2(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:n1,light:$2};return Zo(P({common:P({},Lf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:mH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const w7=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C7(e){return Math.round(e*1e5)/1e5}const M2={textTransform:"uppercase"},R2='"Roboto", "Helvetica", "Arial", sans-serif';function x7(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=R2,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=se(n,w7),v=o/14,b=h||(C=>`${C/d*v}rem`),g=(C,E,w,S,k)=>P({fontFamily:r,fontWeight:C,fontSize:b(E),lineHeight:w},r===R2?{letterSpacing:`${C7(S/E)}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,M2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,M2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zo(P({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},x),m,{clone:!1})}const S7=.2,E7=.14,P7=.12;function En(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${S7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${E7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${P7})`].join(",")}const k7=["none",En(0,2,1,-1,0,1,1,0,0,1,3,0),En(0,3,1,-2,0,2,2,0,0,1,5,0),En(0,3,3,-2,0,3,4,0,0,1,8,0),En(0,2,4,-1,0,4,5,0,0,1,10,0),En(0,3,5,-1,0,5,8,0,0,1,14,0),En(0,3,5,-1,0,6,10,0,0,1,18,0),En(0,4,5,-2,0,7,10,1,0,2,16,1),En(0,5,5,-3,0,8,10,1,0,3,14,2),En(0,5,6,-3,0,9,12,1,0,3,16,2),En(0,6,6,-3,0,10,14,1,0,4,18,3),En(0,6,7,-4,0,11,15,1,0,4,20,3),En(0,7,8,-4,0,12,17,2,0,5,22,4),En(0,7,8,-4,0,13,19,2,0,5,24,4),En(0,7,9,-4,0,14,21,2,0,5,26,4),En(0,8,9,-5,0,15,22,2,0,6,28,5),En(0,8,10,-5,0,16,24,2,0,6,30,5),En(0,8,11,-5,0,17,26,2,0,6,32,5),En(0,9,11,-5,0,18,28,2,0,7,34,6),En(0,9,12,-6,0,19,29,2,0,7,36,6),En(0,10,13,-6,0,20,31,3,0,8,38,7),En(0,10,13,-6,0,21,33,3,0,8,40,7),En(0,10,14,-6,0,22,35,3,0,8,42,7),En(0,11,14,-7,0,23,36,3,0,9,44,8),En(0,11,15,-7,0,24,38,3,0,9,46,8)],I7=k7,_7=["duration","easing","delay"],$7={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)"},PR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O2(e){return`${Math.round(e)}ms`}function T7(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ys(t,.25)+t/5)*10)}function M7(e){const t=P({},$7,e.easing),n=P({},PR,e.duration);return P({getAutoHeightDuration:T7,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return se(i,_7),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:O2(s)} ${a} ${typeof c=="string"?c:O2(c)}`).join(",")}},e,{easing:t,duration:n})}const R7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},O7=R7,L7=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function VC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=se(e,L7);if(e.vars)throw new Error(Bl(18));const a=b7(r),c=zC(e);let d=Zo(c,{mixins:d7(c.breakpoints,n),palette:a,shadows:I7.slice(),typography:x7(a,i),transitions:M7(o),zIndex:P({},O7)});return d=Zo(d,s),d=t.reduce((p,h)=>Zo(p,h),d),d.unstable_sxConfig=P({},bv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return wv({sx:h,theme:this})},d}function A7(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function F7(e){return parseFloat(e)}const N7=VC(),Ev=N7;function so(){const e=xv(Ev);return e[Oa]||e}function nt({props:e,name:t}){return t7({props:e,name:t,defaultTheme:Ev,themeId:Oa})}const Ao=e=>of(e)&&e!=="classes",D7=of,B7=e7({themeId:Oa,defaultTheme:Ev,rootShouldForwardProp:Ao}),oe=B7,z7=["theme"];function j7(e){let{theme:t}=e,n=se(e,z7);const r=t[Oa];return M.jsx(u7,P({},n,{themeId:r?Oa:void 0,theme:r||t}))}const H7=e=>{let t;return e<1?t=5.11916*ys(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},L2=H7;function Aa(e){return typeof e=="string"}function zd(e,t,n){return e===void 0||Aa(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const V7={disableDefaultClasses:!1},U7=u.createContext(V7);function kR(e){const{disableDefaultClasses:t}=u.useContext(U7);return n=>t?"":e(n)}function W7(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 Fb(e,t){return typeof e=="function"?e(t):e}function A2(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 G7(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=pe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=P({},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=W7(P({},o,r)),a=A2(r),c=A2(o),d=t(s),p=pe(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=P({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=P({},d,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}const K7=["elementType","externalSlotProps","ownerState"];function zs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=se(e,K7),s=Fb(r,o),{props:a,internalRef:c}=G7(P({},i,{externalSlotProps:s})),d=Ht(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return zd(n,P({},a,{ref:d}),o)}function q7(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=IC({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:d}}function F2(e){return e.substring(2).toLowerCase()}function Y7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function IR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),d=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Ht(t.ref,a),h=pn(b=>{const g=d.current;d.current=!1;const x=Cn(a.current);if(!c.current||!a.current||"clientX"in b&&Y7(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=>{d.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=F2(i),g=Cn(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=F2(r),g=Cn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),M.jsx(u.Fragment,{children:u.cloneElement(t,v)})}const X7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Q7(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 J7(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 Z7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J7(e))}function eU(e){const t=[],n=[];return Array.from(e.querySelectorAll(X7)).forEach((r,o)=>{const i=Q7(r);i===-1||!Z7(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 tU(){return!0}function _R(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=eU,isEnabled:s=tU,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=Ht(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=Cn(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=Cn(b.current),S=I=>{const{current:T}=b;if(T!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!T.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===d.current||w.activeElement===p.current)&&(A=i(b.current)),A.length>0){var O,R;const V=!!((O=x.current)!=null&&O.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),B=A[0],L=A[A.length-1];typeof B!="string"&&typeof L!="string"&&(V?L.focus():B.focus())}else T.focus()}}},k=I=>{x.current=I,!(r||!s()||I.key!=="Tab")&&w.activeElement===b.current&&I.shiftKey&&(c.current=!0,p.current&&p.current.focus())};w.addEventListener("focusin",S),w.addEventListener("keydown",k,!0);const _=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S(null)},50);return()=>{clearInterval(_),w.removeEventListener("focusin",S),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 S=t.props.onFocus;S&&S(w)},E=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return M.jsxs(u.Fragment,{children:[M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:C}),M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:p,"data-testid":"sentinelEnd"})]})}var no="top",oi="bottom",ii="right",ro="left",UC="auto",up=[no,oi,ii,ro],wu="start",Df="end",nU="clippingParents",$R="viewport",Pd="popper",rU="reference",N2=up.reduce(function(e,t){return e.concat([t+"-"+wu,t+"-"+Df])},[]),TR=[].concat(up,[UC]).reduce(function(e,t){return e.concat([t,t+"-"+wu,t+"-"+Df])},[]),oU="beforeRead",iU="read",sU="afterRead",lU="beforeMain",aU="main",cU="afterMain",uU="beforeWrite",dU="write",fU="afterWrite",pU=[oU,iU,sU,lU,aU,cU,uU,dU,fU];function es(e){return e?(e.nodeName||"").toLowerCase():null}function $o(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fa(e){var t=$o(e).Element;return e instanceof t||e instanceof Element}function ei(e){var t=$o(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WC(e){if(typeof ShadowRoot=="undefined")return!1;var t=$o(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hU(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];!ei(i)||!es(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 mU(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,d){return c[d]="",c},{});!ei(o)||!es(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const gU={name:"applyStyles",enabled:!0,phase:"write",fn:hU,effect:mU,requires:["computeStyles"]};function Yi(e){return e.split("-")[0]}var Sa=Math.max,tg=Math.min,Cu=Math.round;function Nb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function MR(){return!/^((?!chrome|android).)*safari/i.test(Nb())}function xu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ei(e)&&(o=e.offsetWidth>0&&Cu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cu(r.height)/e.offsetHeight||1);var s=Fa(e)?$o(e):window,a=s.visualViewport,c=!MR()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function GC(e){var t=xu(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 RR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function js(e){return $o(e).getComputedStyle(e)}function vU(e){return["table","td","th"].indexOf(es(e))>=0}function Xl(e){return((Fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pv(e){return es(e)==="html"?e:e.assignedSlot||e.parentNode||(WC(e)?e.host:null)||Xl(e)}function D2(e){return!ei(e)||js(e).position==="fixed"?null:e.offsetParent}function yU(e){var t=/firefox/i.test(Nb()),n=/Trident/i.test(Nb());if(n&&ei(e)){var r=js(e);if(r.position==="fixed")return null}var o=Pv(e);for(WC(o)&&(o=o.host);ei(o)&&["html","body"].indexOf(es(o))<0;){var i=js(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function dp(e){for(var t=$o(e),n=D2(e);n&&vU(n)&&js(n).position==="static";)n=D2(n);return n&&(es(n)==="html"||es(n)==="body"&&js(n).position==="static")?t:n||yU(e)||t}function KC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sf(e,t,n){return Sa(e,tg(t,n))}function bU(e,t,n){var r=sf(e,t,n);return r>n?n:r}function OR(){return{top:0,right:0,bottom:0,left:0}}function LR(e){return Object.assign({},OR(),e)}function AR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,LR(typeof t!="number"?t:AR(t,up))};function CU(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Yi(n.placement),c=KC(a),d=[ro,ii].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=wU(o.padding,n),m=GC(i),v=c==="y"?no:ro,b=c==="y"?oi:ii,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],x=s[c]-n.rects.reference[c],C=dp(i),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-x/2,S=h[v],k=E-m[p]-h[b],_=E/2-m[p]/2+w,I=sf(S,_,k),T=c;n.modifiersData[r]=(t={},t[T]=I,t.centerOffset=I-_,t)}}function xU(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)||RR(t.elements.popper,o)&&(t.elements.arrow=o))}const SU={name:"arrow",enabled:!0,phase:"main",fn:CU,effect:xU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var EU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PU(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cu(n*o)/o||0,y:Cu(r*o)/o||0}}function B2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,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"),E=s.hasOwnProperty("y"),w=ro,S=no,k=window;if(d){var _=dp(n),I="clientHeight",T="clientWidth";if(_===$o(n)&&(_=Xl(n),js(_).position!=="static"&&a==="absolute"&&(I="scrollHeight",T="scrollWidth")),_=_,o===no||(o===ro||o===ii)&&i===Df){S=oi;var O=h&&_===k&&k.visualViewport?k.visualViewport.height:_[I];g-=O-r.height,g*=c?1:-1}if(o===ro||(o===no||o===oi)&&i===Df){w=ii;var R=h&&_===k&&k.visualViewport?k.visualViewport.width:_[T];v-=R-r.width,v*=c?1:-1}}var A=Object.assign({position:a},d&&EU),V=p===!0?PU({x:v,y:g},$o(n)):{x:v,y:g};if(v=V.x,g=V.y,c){var B;return Object.assign({},A,(B={},B[S]=E?"0":"",B[w]=C?"0":"",B.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",B))}return Object.assign({},A,(t={},t[S]=E?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function kU(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Yi(t.placement),variation:Su(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,B2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,B2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const IU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kU,data:{}};var Nh={passive:!0};function _U(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=$o(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Nh)}),a&&c.addEventListener("resize",n.update,Nh),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Nh)}),a&&c.removeEventListener("resize",n.update,Nh)}}const $U={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_U,data:{}};var TU={left:"right",right:"left",bottom:"top",top:"bottom"};function mm(e){return e.replace(/left|right|bottom|top/g,function(t){return TU[t]})}var MU={start:"end",end:"start"};function z2(e){return e.replace(/start|end/g,function(t){return MU[t]})}function qC(e){var t=$o(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function YC(e){return xu(Xl(e)).left+qC(e).scrollLeft}function RU(e,t){var n=$o(e),r=Xl(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=MR();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+YC(e),y:c}}function OU(e){var t,n=Xl(e),r=qC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Sa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Sa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+YC(e),c=-r.scrollTop;return js(o||n).direction==="rtl"&&(a+=Sa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function XC(e){var t=js(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function FR(e){return["html","body","#document"].indexOf(es(e))>=0?e.ownerDocument.body:ei(e)&&XC(e)?e:FR(Pv(e))}function lf(e,t){var n;t===void 0&&(t=[]);var r=FR(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=$o(r),s=o?[i].concat(i.visualViewport||[],XC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(lf(Pv(s)))}function Db(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LU(e,t){var n=xu(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 j2(e,t,n){return t===$R?Db(RU(e,n)):Fa(t)?LU(t,n):Db(OU(Xl(e)))}function AU(e){var t=lf(Pv(e)),n=["absolute","fixed"].indexOf(js(e).position)>=0,r=n&&ei(e)?dp(e):e;return Fa(r)?t.filter(function(o){return Fa(o)&&RR(o,r)&&es(o)!=="body"}):[]}function FU(e,t,n,r){var o=t==="clippingParents"?AU(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=j2(e,d,r);return c.top=Sa(p.top,c.top),c.right=tg(p.right,c.right),c.bottom=tg(p.bottom,c.bottom),c.left=Sa(p.left,c.left),c},j2(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 NR(e){var t=e.reference,n=e.element,r=e.placement,o=r?Yi(r):null,i=r?Su(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case no:c={x:s,y:t.y-n.height};break;case oi:c={x:s,y:t.y+t.height};break;case ii:c={x:t.x+t.width,y:a};break;case ro:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?KC(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case wu:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Df:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Bf(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?nU:a,d=n.rootBoundary,p=d===void 0?$R:d,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=LR(typeof x!="number"?x:AR(x,up)),E=m===Pd?rU:Pd,w=e.rects.popper,S=e.elements[b?E:m],k=FU(Fa(S)?S:S.contextElement||Xl(e.elements.popper),c,p,s),_=xu(e.elements.reference),I=NR({reference:_,element:w,strategy:"absolute",placement:o}),T=Db(Object.assign({},w,I)),O=m===Pd?T:_,R={top:k.top-O.top+C.top,bottom:O.bottom-k.bottom+C.bottom,left:k.left-O.left+C.left,right:O.right-k.right+C.right},A=e.modifiersData.offset;if(m===Pd&&A){var V=A[o];Object.keys(R).forEach(function(B){var L=[ii,oi].indexOf(B)>=0?1:-1,F=[no,oi].indexOf(B)>=0?"y":"x";R[B]+=V[F]*L})}return R}function NU(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?TR:c,p=Su(r),h=p?a?N2:N2.filter(function(b){return Su(b)===p}):up,m=h.filter(function(b){return d.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=Bf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Yi(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function DU(e){if(Yi(e)===UC)return[];var t=mm(e);return[z2(e),t,z2(t)]}function BU(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,C=Yi(x),E=C===x,w=c||(E||!b?[mm(x)]:DU(x)),S=[x].concat(w).reduce(function(J,fe){return J.concat(Yi(fe)===UC?NU(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:g}):fe)},[]),k=t.rects.reference,_=t.rects.popper,I=new Map,T=!0,O=S[0],R=0;R<S.length;R++){var A=S[R],V=Yi(A),B=Su(A)===wu,L=[no,oi].indexOf(V)>=0,F=L?"width":"height",j=Bf(t,{placement:A,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),G=L?B?ii:ro:B?oi:no;k[F]>_[F]&&(G=mm(G));var N=mm(G),z=[];if(i&&z.push(j[V]<=0),a&&z.push(j[G]<=0,j[N]<=0),z.every(function(J){return J})){O=A,T=!1;break}I.set(A,z)}if(T)for(var W=b?3:1,q=function(fe){var Q=S.find(function(le){var ne=I.get(le);if(ne)return ne.slice(0,fe).every(function(he){return he})});if(Q)return O=Q,"break"},X=W;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const zU={name:"flip",enabled:!0,phase:"main",fn:BU,requiresIfExists:["offset"],data:{_skip:!1}};function H2(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 V2(e){return[no,ii,oi,ro].some(function(t){return e[t]>=0})}function jU(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Bf(t,{elementContext:"reference"}),a=Bf(t,{altBoundary:!0}),c=H2(s,r),d=H2(a,o,i),p=V2(c),h=V2(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const HU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jU};function VU(e,t,n){var r=Yi(e),o=[ro,no].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,[ro,ii].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function UU(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=TR.reduce(function(p,h){return p[h]=VU(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const WU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UU};function GU(e){var t=e.state,n=e.name;t.modifiersData[n]=NR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const KU={name:"popperOffsets",enabled:!0,phase:"read",fn:GU,data:{}};function qU(e){return e==="x"?"y":"x"}function YU(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,x=Bf(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=Yi(t.placement),E=Su(t.placement),w=!E,S=KC(C),k=qU(S),_=t.modifiersData.popperOffsets,I=t.rects.reference,T=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(i){var B,L=S==="y"?no:ro,F=S==="y"?oi:ii,j=S==="y"?"height":"width",G=_[S],N=G+x[L],z=G-x[F],W=v?-T[j]/2:0,q=E===wu?I[j]:T[j],X=E===wu?-T[j]:-I[j],ie=t.elements.arrow,J=v&&ie?GC(ie):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:OR(),Q=fe[L],le=fe[F],ne=sf(0,I[j],J[j]),he=w?I[j]/2-W-ne-Q-R.mainAxis:q-ne-Q-R.mainAxis,be=w?-I[j]/2+W+ne+le+R.mainAxis:X+ne+le+R.mainAxis,ge=t.elements.arrow&&dp(t.elements.arrow),$e=ge?S==="y"?ge.clientTop||0:ge.clientLeft||0:0,ze=(B=A==null?void 0:A[S])!=null?B:0,Ae=G+he-ze-$e,re=G+be-ze,Oe=sf(v?tg(N,Ae):N,G,v?Sa(z,re):z);_[S]=Oe,V[S]=Oe-G}if(a){var ve,je=S==="x"?no:ro,ot=S==="x"?oi:ii,pt=_[k],Je=k==="y"?"height":"width",bt=pt+x[je],lt=pt-x[ot],mt=[no,ro].indexOf(C)!==-1,ht=(ve=A==null?void 0:A[k])!=null?ve:0,ut=mt?bt:pt-I[Je]-T[Je]-ht+R.altAxis,Ke=mt?pt+I[Je]+T[Je]-ht-R.altAxis:lt,_e=v&&mt?bU(ut,pt,Ke):sf(v?ut:bt,pt,v?Ke:lt);_[k]=_e,V[k]=_e-pt}t.modifiersData[r]=V}}const XU={name:"preventOverflow",enabled:!0,phase:"main",fn:YU,requiresIfExists:["offset"]};function QU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JU(e){return e===$o(e)||!ei(e)?qC(e):QU(e)}function ZU(e){var t=e.getBoundingClientRect(),n=Cu(t.width)/e.offsetWidth||1,r=Cu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function eW(e,t,n){n===void 0&&(n=!1);var r=ei(t),o=ei(t)&&ZU(t),i=Xl(t),s=xu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((es(t)!=="body"||XC(i))&&(a=JU(t)),ei(t)?(c=xu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=YC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function tW(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 nW(e){var t=tW(e);return pU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function rW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oW(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 U2={placement:"bottom",modifiers:[],strategy:"absolute"};function W2(){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 iW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?U2:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},U2,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(C){var E=typeof C=="function"?C(p.options):C;g(),p.options=Object.assign({},i,p.options,E),p.scrollParents={reference:Fa(a)?lf(a):a.contextElement?lf(a.contextElement):[],popper:lf(c)};var w=nW(oW([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(S){return S.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var C=p.elements,E=C.reference,w=C.popper;if(W2(E,w)){p.rects={reference:eW(E,dp(w),p.options.strategy==="fixed"),popper:GC(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<p.orderedModifiers.length;S++){if(p.reset===!0){p.reset=!1,S=-1;continue}var k=p.orderedModifiers[S],_=k.fn,I=k.options,T=I===void 0?{}:I,O=k.name;typeof _=="function"&&(p=_({state:p,options:T,name:O,instance:v})||p)}}}},update:rW(function(){return new Promise(function(x){v.forceUpdate(),x(p)})}),destroy:function(){g(),m=!0}};if(!W2(a,c))return v;v.setOptions(d).then(function(x){!m&&d.onFirstUpdate&&d.onFirstUpdate(x)});function b(){p.orderedModifiers.forEach(function(x){var C=x.name,E=x.options,w=E===void 0?{}:E,S=x.effect;if(typeof S=="function"){var k=S({state:p,name:C,instance:v,options:w}),_=function(){};h.push(k||_)}})}function g(){h.forEach(function(x){return x()}),h=[]}return v}}var sW=[$U,KU,IU,gU,WU,zU,XU,SU,HU],lW=iW({defaultModifiers:sW});function aW(e){return typeof e=="function"?e():e}const cW=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Ht(u.isValidElement(r)?r.ref:null,n);if(hn(()=>{i||a(aW(o)||document.body)},[o,i]),hn(()=>{if(s&&!i)return Jm(n,s),()=>{Jm(n,null)}},[n,s,i]),i){if(u.isValidElement(r)){const d={ref:c};return u.cloneElement(r,d)}return M.jsx(u.Fragment,{children:r})}return M.jsx(u.Fragment,{children:s&&Au.createPortal(r,s)})}),DR=cW;function uW(e){return Ze("MuiPopper",e)}Ye("MuiPopper",["root"]);const dW=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pW(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 Bb(e){return typeof e=="function"?e():e}function hW(e){return e.nodeType!==void 0}const mW=()=>Ie({root:["root"]},kR(uW)),gW={},vW=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,direction:a,disablePortal:c,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:v,slotProps:b={},slots:g={},TransitionProps:x}=t,C=se(t,dW),E=u.useRef(null),w=Ht(E,n),S=u.useRef(null),k=Ht(S,v),_=u.useRef(k);hn(()=>{_.current=k},[k]),u.useImperativeHandle(v,()=>S.current,[]);const I=pW(h,a),[T,O]=u.useState(I),[R,A]=u.useState(Bb(o));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{o&&A(Bb(o))},[o]),hn(()=>{if(!R||!p)return;const j=z=>{O(z.placement)};let G=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{j(z)}}];d!=null&&(G=G.concat(d)),m&&m.modifiers!=null&&(G=G.concat(m.modifiers));const N=lW(R,E.current,P({placement:I},m,{modifiers:G}));return _.current(N),()=>{N.destroy(),_.current(null)}},[R,c,d,p,m,I]);const V={placement:T};x!==null&&(V.TransitionProps=x);const B=mW(),L=(r=s!=null?s:g.root)!=null?r:"div",F=zs({elementType:L,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:B.root});return M.jsx(L,P({},F,{children:typeof i=="function"?i(V):i}))}),yW=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:m=gW,popperRef:v,style:b,transition:g=!1,slotProps:x={},slots:C={}}=t,E=se(t,fW),[w,S]=u.useState(!0),k=()=>{S(!1)},_=()=>{S(!0)};if(!c&&!p&&(!g||w))return null;let I;if(i)I=i;else if(r){const R=Bb(r);I=R&&hW(R)?Cn(R).body:Cn(null).body}const T=!p&&c&&(!g||w)?"none":void 0,O=g?{in:p,onEnter:k,onExited:_}:void 0;return M.jsx(DR,{disablePortal:a,container:I,children:M.jsx(vW,P({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:g?!w:p,placement:h,popperOptions:m,popperRef:v,slotProps:x,slots:C},E,{style:P({position:"fixed",top:0,left:0,display:T},b),TransitionProps:O,children:o}))})}),bW=yW;function wW(e){const t=Cn(e);return t.body===e?_o(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function af(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function G2(e){return parseInt(_o(e).getComputedStyle(e).paddingRight,10)||0}function CW(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 K2(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!CW(s);a&&c&&af(s,o)})}function r1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function xW(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wW(r)){const s=KM(Cn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${G2(r)+s}px`;const a=Cn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${G2(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Cn(r).body;else{const s=r.parentElement,a=_o(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 SW(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class EW{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&&af(t.modalRef,!1);const o=SW(n);K2(n,t.mount,t.modalRef,o,!0);const i=r1(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=r1(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=xW(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=r1(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&&af(t.modalRef,n),K2(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&&af(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function PW(e){return Ze("MuiModal",e)}Ye("MuiModal",["root","hidden","backdrop"]);const kW=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],IW=e=>{const{open:t,exited:n}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kR(PW))};function _W(e){return typeof e=="function"?e():e}function $W(e){return e?e.props.hasOwnProperty("in"):!1}const TW=new EW,MW=u.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,component:a,container:c,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:g=!1,keepMounted:x=!1,manager:C=TW,onBackdropClick:E,onClose:w,onKeyDown:S,open:k,onTransitionEnter:_,onTransitionExited:I,slotProps:T={},slots:O={}}=t,R=se(t,kW),[A,V]=u.useState(!k),B=u.useRef({}),L=u.useRef(null),F=u.useRef(null),j=Ht(F,n),G=$W(i),N=(r=t["aria-hidden"])!=null?r:!0,z=()=>Cn(L.current),W=()=>(B.current.modalRef=F.current,B.current.mountNode=L.current,B.current),q=()=>{C.mount(W(),{disableScrollLock:b}),F.current&&(F.current.scrollTop=0)},X=pn(()=>{const ve=_W(c)||z().body;C.add(W(),ve),F.current&&q()}),ie=u.useCallback(()=>C.isTopModal(W()),[C]),J=pn(ve=>{L.current=ve,!(!ve||!F.current)&&(k&&ie()?q():af(F.current,N))}),fe=u.useCallback(()=>{C.remove(W(),N)},[C,N]);u.useEffect(()=>()=>{fe()},[fe]),u.useEffect(()=>{k?X():(!G||!s)&&fe()},[k,fe,G,s,X]);const Q=P({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:v,disableScrollLock:b,exited:A,hideBackdrop:g,keepMounted:x}),le=IW(Q),ne=()=>{V(!1),_&&_()},he=()=>{V(!0),I&&I(),s&&fe()},be=ve=>{ve.target===ve.currentTarget&&(E&&E(ve),w&&w(ve,"backdropClick"))},ge=ve=>{S&&S(ve),!(ve.key!=="Escape"||!ie())&&(h||(ve.stopPropagation(),w&&w(ve,"escapeKeyDown")))},$e={};i.props.tabIndex===void 0&&($e.tabIndex="-1"),G&&($e.onEnter=a2(ne,i.props.onEnter),$e.onExited=a2(he,i.props.onExited));const ze=(o=a!=null?a:O.root)!=null?o:"div",Ae=zs({elementType:ze,externalSlotProps:T.root,externalForwardedProps:R,additionalProps:{ref:j,role:"presentation",onKeyDown:ge},className:le.root,ownerState:Q}),re=O.backdrop,Oe=zs({elementType:re,externalSlotProps:T.backdrop,additionalProps:{"aria-hidden":!0,onClick:be,open:k},className:le.backdrop,ownerState:Q});return!x&&!k&&(!G||A)?null:M.jsx(DR,{ref:J,container:c,disablePortal:m,children:M.jsxs(ze,P({},Ae,{children:[!g&&re?M.jsx(re,P({},Oe)):null,M.jsx(_R,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:v,isEnabled:ie,open:k,children:u.cloneElement(i,$e)})]}))})}),RW=MW,OW=["onChange","maxRows","minRows","style","value"];function Dh(e){return parseInt(e,10)||0}const LW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function q2(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const AW=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=se(t,OW),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Ht(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({outerHeightStyle:0}),x=u.useCallback(()=>{const k=p.current,I=_o(k).getComputedStyle(k);if(I.width==="0px")return{outerHeightStyle:0};const T=m.current;T.style.width=I.width,T.value=k.value||t.placeholder||"x",T.value.slice(-1)===`
89
+ `&&(T.value+=" ");const O=I.boxSizing,R=Dh(I.paddingBottom)+Dh(I.paddingTop),A=Dh(I.borderBottomWidth)+Dh(I.borderTopWidth),V=T.scrollHeight;T.value="x";const B=T.scrollHeight;let L=V;i&&(L=Math.max(Number(i)*B,L)),o&&(L=Math.min(Number(o)*B,L)),L=Math.max(L,B);const F=L+(O==="border-box"?R+A:0),j=Math.abs(L-V)<=1;return{outerHeightStyle:F,overflow:j}},[o,i,t.placeholder]),C=(k,_)=>{const{outerHeightStyle:I,overflow:T}=_;return v.current<20&&(I>0&&Math.abs((k.outerHeightStyle||0)-I)>1||k.overflow!==T)?(v.current+=1,{overflow:T,outerHeightStyle:I}):k},E=u.useCallback(()=>{const k=x();q2(k)||g(_=>C(_,k))},[x]),w=()=>{const k=x();q2(k)||Au.flushSync(()=>{g(_=>C(_,k))})};u.useEffect(()=>{const k=zl(()=>{v.current=0,p.current&&w()});let _;const I=p.current,T=_o(I);return T.addEventListener("resize",k),typeof ResizeObserver!="undefined"&&(_=new ResizeObserver(k),_.observe(I)),()=>{k.clear(),T.removeEventListener("resize",k),_&&_.disconnect()}}),hn(()=>{E()}),u.useEffect(()=>{v.current=0},[a]);const S=k=>{v.current=0,d||E(),r&&r(k)};return M.jsxs(u.Fragment,{children:[M.jsx("textarea",P({value:a,onChange:S,ref:h,rows:i,style:P({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},c)),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:P({},LW.shadow,s,{padding:0})})]})}),FW=AW;function Y2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function BR(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=Y2(p));const h=p?a.filter(m=>{let v=(i||d)(m);return n&&(v=v.toLowerCase()),t&&(v=Y2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function o1(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const NW=BR(),X2=5,DW=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function BW(e){const{unstable_isActiveElementInListbox:t=DW,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:g=!1,filterOptions:x=NW,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:w,getOptionLabel:S=Ce=>{var me;return(me=Ce.label)!=null?me:Ce},groupBy:k,handleHomeEndKeys:_=!e.freeSolo,id:I,includeInputInList:T=!1,inputValue:O,isOptionEqualToValue:R=(Ce,me)=>Ce===me,multiple:A=!1,onChange:V,onClose:B,onHighlightChange:L,onInputChange:F,onOpen:j,open:G,openOnFocus:N=!1,options:z,readOnly:W=!1,selectOnFocus:q=!e.freeSolo,value:X}=e,ie=On(I);let J=S;J=Ce=>{const me=S(Ce);return typeof me!="string"?String(me):me};const fe=u.useRef(!1),Q=u.useRef(!0),le=u.useRef(null),ne=u.useRef(null),[he,be]=u.useState(null),[ge,$e]=u.useState(-1),ze=o?0:-1,Ae=u.useRef(ze),[re,Oe]=Rs({controlled:X,default:p,name:d}),[ve,je]=Rs({controlled:O,default:"",name:d,state:"inputValue"}),[ot,pt]=u.useState(!1),Je=u.useCallback((Ce,me)=>{if(!(A?re.length<me.length:me!==null)&&!a)return;let ft;if(A)ft="";else if(me==null)ft="";else{const Vt=J(me);ft=typeof Vt=="string"?Vt:""}ve!==ft&&(je(ft),F&&F(Ce,ft,"reset"))},[J,ve,A,F,je,a,re]),[bt,lt]=Rs({controlled:G,default:!1,name:d,state:"open"}),[mt,ht]=u.useState(!0),ut=!A&&re!=null&&ve===J(re),Ke=bt&&!W,_e=Ke?x(z.filter(Ce=>!(C&&(A?re:[re]).some(me=>me!==null&&R(Ce,me)))),{inputValue:ut&&mt?"":ve,getOptionLabel:J}):[],Te=IC({filteredOptions:_e,value:re});u.useEffect(()=>{const Ce=re!==Te.value;ot&&!Ce||E&&!Ce||Je(null,re)},[re,Je,ot,Te.value,E]);const Ne=bt&&_e.length>0&&!W,Ue=pn(Ce=>{Ce===-1?le.current.focus():he.querySelector(`[data-tag-index="${Ce}"]`).focus()});u.useEffect(()=>{A&&ge>re.length-1&&($e(-1),Ue(-1))},[re,A,ge,Ue]);function Se(Ce,me){if(!ne.current||Ce===-1)return-1;let Ve=Ce;for(;;){if(me==="next"&&Ve===_e.length||me==="previous"&&Ve===-1)return-1;const ft=ne.current.querySelector(`[data-option-index="${Ve}"]`),Vt=b?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&!ft.hasAttribute("tabindex")||Vt)Ve+=me==="next"?1:-1;else return Ve}}const Le=pn(({event:Ce,index:me,reason:Ve="auto"})=>{if(Ae.current=me,me===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${ie}-option-${me}`),L&&L(Ce,me===-1?null:_e[me],Ve),!ne.current)return;const ft=ne.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));const Vt=ne.current.parentElement.querySelector('[role="listbox"]');if(!Vt)return;if(me===-1){Vt.scrollTop=0;return}const In=ne.current.querySelector(`[data-option-index="${me}"]`);if(In&&(In.classList.add(`${n}-focused`),Ve==="keyboard"&&In.classList.add(`${n}-focusVisible`),Vt.scrollHeight>Vt.clientHeight&&Ve!=="mouse")){const _n=In,Ct=Vt.clientHeight+Vt.scrollTop,rr=_n.offsetTop+_n.offsetHeight;rr>Ct?Vt.scrollTop=rr-Vt.clientHeight:_n.offsetTop-_n.offsetHeight*(k?1.3:0)<Vt.scrollTop&&(Vt.scrollTop=_n.offsetTop-_n.offsetHeight*(k?1.3:0))}}),We=pn(({event:Ce,diff:me,direction:Ve="next",reason:ft="auto"})=>{if(!Ke)return;const In=Se((()=>{const _n=_e.length-1;if(me==="reset")return ze;if(me==="start")return 0;if(me==="end")return _n;const Ct=Ae.current+me;return Ct<0?Ct===-1&&T?-1:g&&Ae.current!==-1||Math.abs(me)>1?0:_n:Ct>_n?Ct===_n+1&&T?-1:g||Math.abs(me)>1?_n:0:Ct})(),Ve);if(Le({index:In,reason:ft,event:Ce}),r&&me!=="reset")if(In===-1)le.current.value=ve;else{const _n=J(_e[In]);le.current.value=_n,_n.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&le.current.setSelectionRange(ve.length,_n.length)}}),at=()=>{const Ce=(me,Ve)=>{const ft=me?J(me):"",Vt=Ve?J(Ve):"";return ft===Vt};if(Ae.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==_e.length&&(A?re.length===Te.value.length&&Te.value.every((me,Ve)=>J(re[Ve])===J(me)):Ce(Te.value,re))){const me=Te.filteredOptions[Ae.current];if(me&&_e.some(ft=>J(ft)===J(me)))return!0}return!1},Ot=u.useCallback(()=>{if(!Ke||at())return;const Ce=A?re[0]:re;if(_e.length===0||Ce==null){We({diff:"reset"});return}if(ne.current){if(Ce!=null){const me=_e[Ae.current];if(A&&me&&o1(re,ft=>R(me,ft))!==-1)return;const Ve=o1(_e,ft=>R(ft,Ce));Ve===-1?We({diff:"reset"}):Le({index:Ve});return}if(Ae.current>=_e.length-1){Le({index:_e.length-1});return}Le({index:Ae.current})}},[_e.length,A?!1:re,C,We,Le,Ke,ve,A]),sn=pn(Ce=>{Jm(ne,Ce),Ce&&Ot()});u.useEffect(()=>{Ot()},[Ot]);const gn=Ce=>{bt||(lt(!0),ht(!0),j&&j(Ce))},Hn=(Ce,me)=>{bt&&(lt(!1),B&&B(Ce,me))},br=(Ce,me,Ve,ft)=>{if(A){if(re.length===me.length&&re.every((Vt,In)=>Vt===me[In]))return}else if(re===me)return;V&&V(Ce,me,Ve,ft),Oe(me)},wr=u.useRef(!1),Or=(Ce,me,Ve="selectOption",ft="options")=>{let Vt=Ve,In=me;if(A){In=Array.isArray(re)?re.slice():[];const _n=o1(In,Ct=>R(me,Ct));_n===-1?In.push(me):ft!=="freeSolo"&&(In.splice(_n,1),Vt="removeOption")}Je(Ce,In),br(Ce,In,Vt,{option:me}),!m&&(!Ce||!Ce.ctrlKey&&!Ce.metaKey)&&Hn(Ce,Vt),(s===!0||s==="touch"&&wr.current||s==="mouse"&&!wr.current)&&le.current.blur()};function Nn(Ce,me){if(Ce===-1)return-1;let Ve=Ce;for(;;){if(me==="next"&&Ve===re.length||me==="previous"&&Ve===-1)return-1;const ft=he.querySelector(`[data-tag-index="${Ve}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")Ve+=me==="next"?1:-1;else return Ve}}const ln=(Ce,me)=>{if(!A)return;ve===""&&Hn(Ce,"toggleInput");let Ve=ge;ge===-1?ve===""&&me==="previous"&&(Ve=re.length-1):(Ve+=me==="next"?1:-1,Ve<0&&(Ve=0),Ve===re.length&&(Ve=-1)),Ve=Nn(Ve,me),$e(Ve),Ue(Ve)},Kn=Ce=>{fe.current=!0,je(""),F&&F(Ce,"","clear"),br(Ce,A?[]:null,"clear")},ss=Ce=>me=>{if(Ce.onKeyDown&&Ce.onKeyDown(me),!me.defaultMuiPrevented&&(ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(me.key)===-1&&($e(-1),Ue(-1)),me.which!==229))switch(me.key){case"Home":Ke&&_&&(me.preventDefault(),We({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":Ke&&_&&(me.preventDefault(),We({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),We({diff:-X2,direction:"previous",reason:"keyboard",event:me}),gn(me);break;case"PageDown":me.preventDefault(),We({diff:X2,direction:"next",reason:"keyboard",event:me}),gn(me);break;case"ArrowDown":me.preventDefault(),We({diff:1,direction:"next",reason:"keyboard",event:me}),gn(me);break;case"ArrowUp":me.preventDefault(),We({diff:-1,direction:"previous",reason:"keyboard",event:me}),gn(me);break;case"ArrowLeft":ln(me,"previous");break;case"ArrowRight":ln(me,"next");break;case"Enter":if(Ae.current!==-1&&Ke){const Ve=_e[Ae.current],ft=w?w(Ve):!1;if(me.preventDefault(),ft)return;Or(me,Ve,"selectOption"),r&&le.current.setSelectionRange(le.current.value.length,le.current.value.length)}else E&&ve!==""&&ut===!1&&(A&&me.preventDefault(),Or(me,ve,"createOption","freeSolo"));break;case"Escape":Ke?(me.preventDefault(),me.stopPropagation(),Hn(me,"escape")):c&&(ve!==""||A&&re.length>0)&&(me.preventDefault(),me.stopPropagation(),Kn(me));break;case"Backspace":if(A&&!W&&ve===""&&re.length>0){const Ve=ge===-1?re.length-1:ge,ft=re.slice();ft.splice(Ve,1),br(me,ft,"removeOption",{option:re[Ve]})}break;case"Delete":if(A&&!W&&ve===""&&re.length>0&&ge!==-1){const Ve=ge,ft=re.slice();ft.splice(Ve,1),br(me,ft,"removeOption",{option:re[Ve]})}break}},Mi=Ce=>{pt(!0),N&&!fe.current&&gn(Ce)},ls=Ce=>{if(t(ne)){le.current.focus();return}pt(!1),Q.current=!0,fe.current=!1,i&&Ae.current!==-1&&Ke?Or(Ce,_e[Ae.current],"blur"):i&&E&&ve!==""?Or(Ce,ve,"blur","freeSolo"):a&&Je(Ce,re),Hn(Ce,"blur")},as=Ce=>{const me=Ce.target.value;ve!==me&&(je(me),ht(!1),F&&F(Ce,me,"input")),me===""?!h&&!A&&br(Ce,null,"clear"):gn(Ce)},ae=Ce=>{const me=Number(Ce.currentTarget.getAttribute("data-option-index"));Ae.current!==me&&Le({event:Ce,index:me,reason:"mouse"})},ye=Ce=>{Le({event:Ce,index:Number(Ce.currentTarget.getAttribute("data-option-index")),reason:"touch"}),wr.current=!0},Fe=Ce=>{const me=Number(Ce.currentTarget.getAttribute("data-option-index"));Or(Ce,_e[me],"selectOption"),wr.current=!1},dt=Ce=>me=>{const Ve=re.slice();Ve.splice(Ce,1),br(me,Ve,"removeOption",{option:re[Ce]})},st=Ce=>{bt?Hn(Ce,"toggleInput"):gn(Ce)},He=Ce=>{Ce.target.getAttribute("id")!==ie&&Ce.preventDefault()},wt=()=>{le.current.focus(),q&&Q.current&&le.current.selectionEnd-le.current.selectionStart===0&&le.current.select(),Q.current=!1},jt=Ce=>{(ve===""||!bt)&&st(Ce)};let xn=E&&ve.length>0;xn=xn||(A?re.length>0:re!==null);let lo=_e;return k&&(lo=_e.reduce((Ce,me,Ve)=>{const ft=k(me);return Ce.length>0&&Ce[Ce.length-1].group===ft?Ce[Ce.length-1].options.push(me):Ce.push({key:Ve,index:Ve,group:ft,options:[me]}),Ce},[])),v&&ot&&ls(),{getRootProps:(Ce={})=>P({"aria-owns":Ne?`${ie}-listbox`:null},Ce,{onKeyDown:ss(Ce),onMouseDown:He,onClick:wt}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:ve,onBlur:ls,onFocus:Mi,onChange:as,onMouseDown:jt,"aria-activedescendant":Ke?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?`${ie}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,onClick:Kn}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:st}),getTagProps:({index:Ce})=>P({key:Ce,"data-tag-index":Ce,tabIndex:-1},!W&&{onDelete:dt(Ce)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:sn,onMouseDown:Ce=>{Ce.preventDefault()}}),getOptionProps:({index:Ce,option:me})=>{const Ve=(A?re:[re]).some(Vt=>Vt!=null&&R(me,Vt)),ft=w?w(me):!1;return{key:J(me),tabIndex:-1,role:"option",id:`${ie}-option-${Ce}`,onMouseMove:ae,onClick:Fe,onTouchStart:ye,"data-option-index":Ce,"aria-disabled":ft,"aria-selected":Ve}},id:ie,inputValue:ve,value:re,dirty:xn,expanded:Ke&&he,popupOpen:Ke,focused:ot||ge!==-1,anchorEl:he,setAnchorEl:be,focusedTag:ge,groupedOptions:lo}}function zW(e){return Ze("MuiSvgIcon",e)}Ye("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jW=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],HW=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return Ie(o,zW,r)},VW=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,v,b,g,x,C,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}[t.fontSize],color:(m=(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||(E=C.action)==null?void 0:E.disabled,inherit:void 0}[t.color]}}),zR=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=se(r,jW),b=P({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const x=HW(b);return M.jsxs(VW,P({as:a,className:pe(x.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{ownerState:b,children:[o,h?M.jsx("title",{children:h}):null]}))});zR.muiName="SvgIcon";const Q2=zR;function Re(e,t){function n(r,o){return M.jsx(Q2,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Q2.muiName,u.memo(u.forwardRef(n))}function zb(e,t){return zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zb(e,t)}function QC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zb(e,t)}const J2={disabled:!1},ng=xo.createContext(null);var UW=function(t){return t.scrollTop},jd="unmounted",ua="exited",da="entering",Tc="entered",jb="exiting",Ws=function(e){QC(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=ua,i.appearStatus=da):c=Tc:r.unmountOnExit||r.mountOnEnter?c=jd:c=ua,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===jd?{status:ua}: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!==da&&s!==Tc&&(i=da):(s===da||s===Tc)&&(i=jb)}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===da){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ah.findDOMNode(this);s&&UW(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ua&&this.setState({status:jd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Ah.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||J2.disabled){this.safeSetState({status:Tc},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:da},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:Tc},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ah.findDOMNode(this);if(!i||J2.disabled){this.safeSetState({status:ua},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:jb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ua},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:Ah.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===jd)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=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xo.createElement(ng.Provider,{value:null},typeof s=="function"?s(o,a):xo.cloneElement(xo.Children.only(s),a))},t}(xo.Component);Ws.contextType=ng;Ws.propTypes={};function Ec(){}Ws.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ec,onEntering:Ec,onEntered:Ec,onExit:Ec,onExiting:Ec,onExited:Ec};Ws.UNMOUNTED=jd;Ws.EXITED=ua;Ws.ENTERING=da;Ws.ENTERED=Tc;Ws.EXITING=jb;const kv=Ws;function Hb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JC(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 WW(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];a[r[c][s]]=n(d)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function va(e,t,n){return n[t]!=null?n[t]:e.props[t]}function GW(e,t){return JC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:va(n,"appear",e),enter:va(n,"enter",e),exit:va(n,"exit",e)})})}function KW(e,t,n){var r=JC(e.children),o=WW(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,d=t[i],p=u.isValidElement(d)&&!d.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:va(s,"exit",e),enter:va(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(d)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:va(s,"exit",e),enter:va(s,"enter",e)}))}}),o}var qW=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},YW={component:"div",childFactory:function(t){return t}},ZC=function(e){QC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(Hb(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?GW(o,a):KW(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=JC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=P({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=se(o,["component","childFactory"]),c=this.state.contextValue,d=qW(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?xo.createElement(ng.Provider,{value:c},d):xo.createElement(ng.Provider,{value:c},xo.createElement(i,a,d))},t}(xo.Component);ZC.propTypes={};ZC.defaultProps=YW;const XW=ZC,ex=e=>e.scrollTop;function Hl(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 QW(e){return Ze("MuiCollapse",e)}Ye("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const JW=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ZW=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ie(r,QW,n)},eG=oe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>P({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&P({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),tG=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>P({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),nG=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>P({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),jR=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:x,orientation:C="vertical",style:E,timeout:w=PR.standard,TransitionComponent:S=kv}=r,k=se(r,JW),_=P({},r,{orientation:C,collapsedSize:a}),I=ZW(_),T=so(),O=u.useRef(),R=u.useRef(null),A=u.useRef(),V=typeof a=="number"?`${a}px`:a,B=C==="horizontal",L=B?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const F=u.useRef(null),j=Ht(n,F),G=Q=>le=>{if(Q){const ne=F.current;le===void 0?Q(ne):Q(ne,le)}},N=()=>R.current?R.current[B?"clientWidth":"clientHeight"]:0,z=G((Q,le)=>{R.current&&B&&(R.current.style.position="absolute"),Q.style[L]=V,h&&h(Q,le)}),W=G((Q,le)=>{const ne=N();R.current&&B&&(R.current.style.position="");const{duration:he,easing:be}=Hl({style:E,timeout:w,easing:d},{mode:"enter"});if(w==="auto"){const ge=T.transitions.getAutoHeightDuration(ne);Q.style.transitionDuration=`${ge}ms`,A.current=ge}else Q.style.transitionDuration=typeof he=="string"?he:`${he}ms`;Q.style[L]=`${ne}px`,Q.style.transitionTimingFunction=be,v&&v(Q,le)}),q=G((Q,le)=>{Q.style[L]="auto",m&&m(Q,le)}),X=G(Q=>{Q.style[L]=`${N()}px`,b&&b(Q)}),ie=G(g),J=G(Q=>{const le=N(),{duration:ne,easing:he}=Hl({style:E,timeout:w,easing:d},{mode:"exit"});if(w==="auto"){const be=T.transitions.getAutoHeightDuration(le);Q.style.transitionDuration=`${be}ms`,A.current=be}else Q.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;Q.style[L]=V,Q.style.transitionTimingFunction=he,x&&x(Q)}),fe=Q=>{w==="auto"&&(O.current=setTimeout(Q,A.current||0)),o&&o(F.current,Q)};return M.jsx(S,P({in:p,onEnter:z,onEntered:q,onEntering:W,onExit:X,onExited:ie,onExiting:J,addEndListener:fe,nodeRef:F,timeout:w==="auto"?null:w},k,{children:(Q,le)=>M.jsx(eG,P({as:c,className:pe(I.root,s,{entered:I.entered,exited:!p&&V==="0px"&&I.hidden}[Q]),style:P({[B?"minWidth":"minHeight"]:V},E),ownerState:P({},_,{state:Q}),ref:j},le,{children:M.jsx(tG,{ownerState:P({},_,{state:Q}),className:I.wrapper,ref:R,children:M.jsx(nG,{ownerState:P({},_,{state:Q}),className:I.wrapperInner,children:i})})}))}))});jR.muiSupportAuto=!0;const HR=jR;function rG(e){return Ze("MuiPaper",e)}Ye("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 oG=["className","component","elevation","square","variant"],iG=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(i,rG,o)},sG=oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return P({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"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ct("#fff",L2(t.elevation))}, ${ct("#fff",L2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),lG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=se(r,oG),p=P({},r,{component:i,elevation:s,square:a,variant:c}),h=iG(p);return M.jsx(sG,P({as:i,ownerState:p,className:pe(h.root,o),ref:n},d))}),ai=lG;function aG(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:d}=e,[p,h]=u.useState(!1),m=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=pe(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,d);return()=>{clearTimeout(g)}}},[c,a,d]),M.jsx("span",{className:m,style:v,children:M.jsx("span",{className:b})})}const cG=Ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ko=cG,uG=["center","classes","className"];let Iv=e=>e,Z2,eI,tI,nI;const Vb=550,dG=80,fG=rs(Z2||(Z2=Iv`
90
+ 0% {
91
+ transform: scale(0);
92
+ opacity: 0.1;
93
+ }
94
+
95
+ 100% {
96
+ transform: scale(1);
97
+ opacity: 0.3;
98
+ }
99
+ `)),pG=rs(eI||(eI=Iv`
100
+ 0% {
101
+ opacity: 1;
102
+ }
103
+
104
+ 100% {
105
+ opacity: 0;
106
+ }
107
+ `)),hG=rs(tI||(tI=Iv`
108
+ 0% {
109
+ transform: scale(1);
110
+ }
111
+
112
+ 50% {
113
+ transform: scale(0.92);
114
+ }
115
+
116
+ 100% {
117
+ transform: scale(1);
118
+ }
119
+ `)),mG=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gG=oe(aG,{name:"MuiTouchRipple",slot:"Ripple"})(nI||(nI=Iv`
120
+ opacity: 0;
121
+ position: absolute;
122
+
123
+ &.${0} {
124
+ opacity: 0.3;
125
+ transform: scale(1);
126
+ animation-name: ${0};
127
+ animation-duration: ${0}ms;
128
+ animation-timing-function: ${0};
129
+ }
130
+
131
+ &.${0} {
132
+ animation-duration: ${0}ms;
133
+ }
134
+
135
+ & .${0} {
136
+ opacity: 1;
137
+ display: block;
138
+ width: 100%;
139
+ height: 100%;
140
+ border-radius: 50%;
141
+ background-color: currentColor;
142
+ }
143
+
144
+ & .${0} {
145
+ opacity: 0;
146
+ animation-name: ${0};
147
+ animation-duration: ${0}ms;
148
+ animation-timing-function: ${0};
149
+ }
150
+
151
+ & .${0} {
152
+ position: absolute;
153
+ /* @noflip */
154
+ left: 0px;
155
+ top: 0;
156
+ animation-name: ${0};
157
+ animation-duration: 2500ms;
158
+ animation-timing-function: ${0};
159
+ animation-iteration-count: infinite;
160
+ animation-delay: 200ms;
161
+ }
162
+ `),Ko.rippleVisible,fG,Vb,({theme:e})=>e.transitions.easing.easeInOut,Ko.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ko.child,Ko.childLeaving,pG,Vb,({theme:e})=>e.transitions.easing.easeInOut,Ko.childPulsate,hG,({theme:e})=>e.transitions.easing.easeInOut),vG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=se(r,uG),[c,d]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=u.useCallback(S=>{const{pulsate:k,rippleX:_,rippleY:I,rippleSize:T,cb:O}=S;d(R=>[...R,M.jsx(gG,{classes:{ripple:pe(i.ripple,Ko.ripple),rippleVisible:pe(i.rippleVisible,Ko.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Ko.ripplePulsate),child:pe(i.child,Ko.child),childLeaving:pe(i.childLeaving,Ko.childLeaving),childPulsate:pe(i.childPulsate,Ko.childPulsate)},timeout:Vb,pulsate:k,rippleX:_,rippleY:I,rippleSize:T},p.current)]),p.current+=1,h.current=O},[i]),C=u.useCallback((S={},k={},_=()=>{})=>{const{pulsate:I=!1,center:T=o||k.pulsate,fakeElement:O=!1}=k;if((S==null?void 0:S.type)==="mousedown"&&m.current){m.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(m.current=!0);const R=O?null:g.current,A=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,B,L;if(T||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)V=Math.round(A.width/2),B=Math.round(A.height/2);else{const{clientX:F,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;V=Math.round(F-A.left),B=Math.round(j-A.top)}if(T)L=Math.sqrt((2*ys(A.width,2)+ys(A.height,2))/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((R?R.clientWidth:0)-V),V)*2+2,j=Math.max(Math.abs((R?R.clientHeight:0)-B),B)*2+2;L=Math.sqrt(ys(F,2)+ys(j,2))}S!=null&&S.touches?b.current===null&&(b.current=()=>{x({pulsate:I,rippleX:V,rippleY:B,rippleSize:L,cb:_})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},dG)):x({pulsate:I,rippleX:V,rippleY:B,rippleSize:L,cb:_})},[o,x]),E=u.useCallback(()=>{C({},{pulsate:!0})},[C]),w=u.useCallback((S,k)=>{if(clearTimeout(v.current),(S==null?void 0:S.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{w(S,k)});return}b.current=null,d(_=>_.length>0?_.slice(1):_),h.current=k},[]);return u.useImperativeHandle(n,()=>({pulsate:E,start:C,stop:w}),[E,C,w]),M.jsx(mG,P({className:pe(Ko.root,i.root,s),ref:g},a,{children:M.jsx(XW,{component:null,exit:!0,children:c})}))}),yG=vG;function bG(e){return Ze("MuiButtonBase",e)}const wG=Ye("MuiButtonBase",["root","disabled","focusVisible"]),CG=wG,xG=["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"],SG=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},bG,o);return n&&r&&(s.root+=` ${r}`),s},EG=oe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${CG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:b,onClick:g,onContextMenu:x,onDragLeave:C,onFocus:E,onFocusVisible:w,onKeyDown:S,onKeyUp:k,onMouseDown:_,onMouseLeave:I,onMouseUp:T,onTouchEnd:O,onTouchMove:R,onTouchStart:A,tabIndex:V=0,TouchRippleProps:B,touchRippleRef:L,type:F}=r,j=se(r,xG),G=u.useRef(null),N=u.useRef(null),z=Ht(N,L),{isFocusVisibleRef:W,onFocus:q,onBlur:X,ref:ie}=kC(),[J,fe]=u.useState(!1);d&&J&&fe(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),G.current.focus()}}),[]);const[Q,le]=u.useState(!1);u.useEffect(()=>{le(!0)},[]);const ne=Q&&!p&&!d;u.useEffect(()=>{J&&m&&!p&&Q&&N.current.pulsate()},[p,m,J,Q]);function he(Te,Ne,Ue=h){return pn(Se=>(Ne&&Ne(Se),!Ue&&N.current&&N.current[Te](Se),!0))}const be=he("start",_),ge=he("stop",x),$e=he("stop",C),ze=he("stop",T),Ae=he("stop",Te=>{J&&Te.preventDefault(),I&&I(Te)}),re=he("start",A),Oe=he("stop",O),ve=he("stop",R),je=he("stop",Te=>{X(Te),W.current===!1&&fe(!1),b&&b(Te)},!1),ot=pn(Te=>{G.current||(G.current=Te.currentTarget),q(Te),W.current===!0&&(fe(!0),w&&w(Te)),E&&E(Te)}),pt=()=>{const Te=G.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},Je=u.useRef(!1),bt=pn(Te=>{m&&!Je.current&&J&&N.current&&Te.key===" "&&(Je.current=!0,N.current.stop(Te,()=>{N.current.start(Te)})),Te.target===Te.currentTarget&&pt()&&Te.key===" "&&Te.preventDefault(),S&&S(Te),Te.target===Te.currentTarget&&pt()&&Te.key==="Enter"&&!d&&(Te.preventDefault(),g&&g(Te))}),lt=pn(Te=>{m&&Te.key===" "&&N.current&&J&&!Te.defaultPrevented&&(Je.current=!1,N.current.stop(Te,()=>{N.current.pulsate(Te)})),k&&k(Te),g&&Te.target===Te.currentTarget&&pt()&&Te.key===" "&&!Te.defaultPrevented&&g(Te)});let mt=c;mt==="button"&&(j.href||j.to)&&(mt=v);const ht={};mt==="button"?(ht.type=F===void 0?"button":F,ht.disabled=d):(!j.href&&!j.to&&(ht.role="button"),d&&(ht["aria-disabled"]=d));const ut=Ht(n,ie,G),Ke=P({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:V,focusVisible:J}),_e=SG(Ke);return M.jsxs(EG,P({as:mt,className:pe(_e.root,a),ownerState:Ke,onBlur:je,onClick:g,onContextMenu:ge,onFocus:ot,onKeyDown:bt,onKeyUp:lt,onMouseDown:be,onMouseLeave:Ae,onMouseUp:ze,onDragLeave:$e,onTouchEnd:Oe,onTouchMove:ve,onTouchStart:re,ref:ut,tabIndex:d?-1:V,type:F},ht,j,{children:[s,ne?M.jsx(yG,P({ref:z,center:i},B)):null]}))}),ts=PG;function kG(e){return Ze("MuiAlert",e)}const IG=Ye("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),rI=IG;function _G(e){return Ze("MuiIconButton",e)}const $G=Ye("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),TG=$G,MG=["edge","children","className","color","disabled","disableFocusRipple","size"],RG=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return Ie(s,_G,t)},OG=oe(ts,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${TG.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),LG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=se(r,MG),m=P({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),v=RG(m);return M.jsx(OG,P({className:pe(v.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),lr=LG,AG=Re(M.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"),FG=Re(M.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),NG=Re(M.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"),DG=Re(M.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"),VR=Re(M.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"),BG=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],zG=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,kG,o)},jG=oe(ai,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ds:Bs,r=e.palette.mode==="light"?Bs:Ds,o=t.color||t.severity;return P({},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),[`& .${rI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${rI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&P({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),HG=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),VG=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),oI=oe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),iI={success:M.jsx(AG,{fontSize:"inherit"}),warning:M.jsx(FG,{fontSize:"inherit"}),error:M.jsx(NG,{fontSize:"inherit"}),info:M.jsx(DG,{fontSize:"inherit"})},UG=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:v="Close",color:b,components:g={},componentsProps:x={},icon:C,iconMapping:E=iI,onClose:w,role:S="alert",severity:k="success",slotProps:_={},slots:I={},variant:T="standard"}=d,O=se(d,BG),R=P({},d,{color:b,severity:k,variant:T}),A=zG(R),V=(r=(o=I.closeButton)!=null?o:g.CloseButton)!=null?r:lr,B=(i=(s=I.closeIcon)!=null?s:g.CloseIcon)!=null?i:VR,L=(a=_.closeButton)!=null?a:x.closeButton,F=(c=_.closeIcon)!=null?c:x.closeIcon;return M.jsxs(jG,P({role:S,elevation:0,ownerState:R,className:pe(A.root,m),ref:n},O,{children:[C!==!1?M.jsx(HG,{ownerState:R,className:A.icon,children:C||E[k]||iI[k]}):null,M.jsx(VG,{ownerState:R,className:A.message,children:h}),p!=null?M.jsx(oI,{ownerState:R,className:A.action,children:p}):null,p==null&&w?M.jsx(oI,{ownerState:R,className:A.action,children:M.jsx(V,P({size:"small","aria-label":v,title:v,color:"inherit",onClick:w},L,{children:M.jsx(B,P({fontSize:"small"},F))}))}):null]}))}),Fo=UG;function WG(e){return Ze("MuiTypography",e)}Ye("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const GG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],KG=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ie(a,WG,s)},qG=oe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),sI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},XG=e=>YG[e]||e,QG=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTypography"}),o=XG(r.color),i=jC(P({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=sI}=i,b=se(i,GG),g=P({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:v}),x=c||(h?"p":v[m]||sI[m])||"span",C=KG(g);return M.jsx(qG,P({as:x,ref:n,ownerState:g,className:pe(C.root,a)},b))}),_r=QG;function JG(e){return Ze("MuiAppBar",e)}Ye("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const ZG=["className","color","enableColorOnDark","position"],eK=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return Ie(o,JG,r)},Bh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,tK=oe(ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({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&&P({},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"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bh(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:Bh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bh(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"}))}),nK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=se(r,ZG),d=P({},r,{color:i,position:a,enableColorOnDark:s}),p=eK(d);return M.jsx(tK,P({square:!0,component:"header",ownerState:d,elevation:4,className:pe(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),rK=nK,oK=["components","componentsProps","slots","slotProps"],iK=oe(bW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sK=u.forwardRef(function(t,n){var r;const o=Cv(),i=nt({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=se(i,oK),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return M.jsx(iK,P({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),qa=sK;function lK(e){return Ze("MuiListSubheader",e)}Ye("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const aK=["className","color","component","disableGutters","disableSticky","inset"],cK=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${ce(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ie(s,lK,t)},uK=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({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})),UR=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=se(r,aK),h=P({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=cK(h);return M.jsx(uK,P({as:s,className:pe(m.root,o),ref:n,ownerState:h},p))});UR.muiSkipListHighlight=!0;const dK=UR,fK=Re(M.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 pK(e){return Ze("MuiChip",e)}const hK=Ye("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gt=hK,mK=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gK=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,a&&"clickable",a&&`clickableColor${ce(o)}`,s&&"deletable",s&&`deletableColor${ce(o)}`,`${c}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(c)}Color${ce(o)}`]};return Ie(d,pK,t)},vK=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:c}=n;return[{[`& .${Gt.avatar}`]:t.avatar},{[`& .${Gt.avatar}`]:t[`avatar${ce(a)}`]},{[`& .${Gt.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${Gt.icon}`]:t.icon},{[`& .${Gt.icon}`]:t[`icon${ce(a)}`]},{[`& .${Gt.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${Gt.deleteIcon}`]:t.deleteIcon},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${ce(a)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${Gt.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(r)}`]},t.root,t[`size${ce(a)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ce(r)}`],t[c],t[`${c}${ce(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({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:n,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}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Gt.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ct(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ct(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},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)`:ct(e.palette[t.color].main,.7)}`,[`&.${Gt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ct(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Gt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ct(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),yK=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function lI(e){return e.key==="Backspace"||e.key==="Delete"}const bK=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:d,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:b,onKeyDown:g,onKeyUp:x,size:C="medium",variant:E="filled",tabIndex:w,skipFocusWhenDisabled:S=!1}=r,k=se(r,mK),_=u.useRef(null),I=Ht(_,n),T=z=>{z.stopPropagation(),b&&b(z)},O=z=>{z.currentTarget===z.target&&lI(z)&&z.preventDefault(),g&&g(z)},R=z=>{z.currentTarget===z.target&&(b&&lI(z)?b(z):z.key==="Escape"&&_.current&&_.current.blur()),x&&x(z)},A=s!==!1&&v?!0:s,V=A||b?ts:c||"div",B=P({},r,{component:V,disabled:p,size:C,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!b,clickable:A,variant:E}),L=gK(B),F=V===ts?P({component:c||"div",focusVisibleClassName:L.focusVisible},b&&{disableRipple:!0}):{};let j=null;b&&(j=d&&u.isValidElement(d)?u.cloneElement(d,{className:pe(d.props.className,L.deleteIcon),onClick:T}):M.jsx(fK,{className:pe(L.deleteIcon),onClick:T}));let G=null;o&&u.isValidElement(o)&&(G=u.cloneElement(o,{className:pe(L.avatar,o.props.className)}));let N=null;return h&&u.isValidElement(h)&&(N=u.cloneElement(h,{className:pe(L.icon,h.props.className)})),M.jsxs(vK,P({as:V,className:pe(L.root,i),disabled:A&&p?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:R,ref:I,tabIndex:S&&p?-1:w,ownerState:B},F,k,{children:[G||N,M.jsx(yK,{className:pe(L.label),ownerState:B,children:m}),j]}))}),_v=bK;function Ya({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const wK=u.createContext(void 0),$v=wK;function Gs(){return u.useContext($v)}function CK(e){return M.jsx(jV,P({},e,{defaultTheme:Ev,themeId:Oa}))}function aI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function tx(e,t=!1){return e&&(aI(e.value)&&e.value!==""||t&&aI(e.defaultValue)&&e.defaultValue!=="")}function xK(e){return e.startAdornment}function SK(e){return Ze("MuiInputBase",e)}const EK=Ye("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),bo=EK,PK=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Tv=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Mv=(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]},kK=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:h,size:m,startAdornment:v,type:b}=e,g={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ie(g,SK,t)},Rv=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Tv})(({theme:e,ownerState:t})=>P({},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",[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ov=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Mv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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 P({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] + .${bo.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},[`&.${bo.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"})}),IK=M.jsx(CK,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_K=u.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:v,endAdornment:b,fullWidth:g=!1,id:x,inputComponent:C="input",inputProps:E={},inputRef:w,maxRows:S,minRows:k,multiline:_=!1,name:I,onBlur:T,onChange:O,onClick:R,onFocus:A,onKeyDown:V,onKeyUp:B,placeholder:L,readOnly:F,renderSuffix:j,rows:G,slotProps:N={},slots:z={},startAdornment:W,type:q="text",value:X}=o,ie=se(o,PK),J=E.value!=null?E.value:X,{current:fe}=u.useRef(J!=null),Q=u.useRef(),le=u.useCallback(_e=>{},[]),ne=Ht(Q,w,E.ref,le),[he,be]=u.useState(!1),ge=Gs(),$e=Ya({props:o,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ge?ge.focused:he,u.useEffect(()=>{!ge&&m&&he&&(be(!1),T&&T())},[ge,m,he,T]);const ze=ge&&ge.onFilled,Ae=ge&&ge.onEmpty,re=u.useCallback(_e=>{tx(_e)?ze&&ze():Ae&&Ae()},[ze,Ae]);hn(()=>{fe&&re({value:J})},[J,re,fe]);const Oe=_e=>{if($e.disabled){_e.stopPropagation();return}A&&A(_e),E.onFocus&&E.onFocus(_e),ge&&ge.onFocus?ge.onFocus(_e):be(!0)},ve=_e=>{T&&T(_e),E.onBlur&&E.onBlur(_e),ge&&ge.onBlur?ge.onBlur(_e):be(!1)},je=(_e,...Te)=>{if(!fe){const Ne=_e.target||Q.current;if(Ne==null)throw new Error(Bl(1));re({value:Ne.value})}E.onChange&&E.onChange(_e,...Te),O&&O(_e,...Te)};u.useEffect(()=>{re(Q.current)},[]);const ot=_e=>{Q.current&&_e.currentTarget===_e.target&&Q.current.focus(),R&&R(_e)};let pt=C,Je=E;_&&pt==="input"&&(G?Je=P({type:void 0,minRows:G,maxRows:G},Je):Je=P({type:void 0,maxRows:S,minRows:k},Je),pt=FW);const bt=_e=>{re(_e.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};u.useEffect(()=>{ge&&ge.setAdornedStart(!!W)},[ge,W]);const lt=P({},o,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:ge,fullWidth:g,hiddenLabel:$e.hiddenLabel,multiline:_,size:$e.size,startAdornment:W,type:q}),mt=kK(lt),ht=z.root||d.Root||Rv,ut=N.root||p.root||{},Ke=z.input||d.Input||Ov;return Je=P({},Je,(r=N.input)!=null?r:p.input),M.jsxs(u.Fragment,{children:[!v&&IK,M.jsxs(ht,P({},ut,!Aa(ht)&&{ownerState:P({},lt,ut.ownerState)},{ref:n,onClick:ot},ie,{className:pe(mt.root,ut.className,c,F&&"MuiInputBase-readOnly"),children:[W,M.jsx($v.Provider,{value:null,children:M.jsx(Ke,P({ownerState:lt,"aria-invalid":$e.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:$e.disabled,id:x,onAnimationStart:bt,name:I,placeholder:L,readOnly:F,required:$e.required,rows:G,value:J,onKeyDown:V,onKeyUp:B,type:q},Je,!Aa(Ke)&&{as:pt,ownerState:P({},lt,Je.ownerState)},{ref:ne,className:pe(mt.input,Je.className,F&&"MuiInputBase-readOnly"),onBlur:ve,onChange:je,onFocus:Oe}))}),b,j?j(P({},$e,{startAdornment:W})):null]}))]})}),zu=_K;function $K(e){return Ze("MuiInput",e)}const TK=P({},bo,Ye("MuiInput",["root","underline","input"])),vl=TK;function MK(e){return Ze("MuiOutlinedInput",e)}const RK=P({},bo,Ye("MuiOutlinedInput",["root","notchedOutline","input"])),Di=RK;function OK(e){return Ze("MuiFilledInput",e)}const LK=P({},bo,Ye("MuiFilledInput",["root","underline","input"])),wo=LK,WR=Re(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function AK(e){return Ze("MuiAutocomplete",e)}const FK=Ye("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),At=FK;var cI,uI;const NK=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],DK=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ce(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,AK,t)},BK=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${At.tag}`]:t.tag},{[`& .${At.tag}`]:t[`tagSize${ce(a)}`]},{[`& .${At.inputRoot}`]:t.inputRoot},{[`& .${At.input}`]:t.input},{[`& .${At.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${At.focused} .${At.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${At.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${At.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${At.inputRoot}`]:{flexWrap:"wrap",[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:26+4},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:52+4},[`& .${At.input}`]:{width:0,minWidth:30}},[`& .${vl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${vl.root}.${bo.sizeSmall}`]:{[`& .${vl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Di.root}`]:{padding:9,[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${At.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${At.endAdornment}`]:{right:9}},[`& .${Di.root}.${bo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${At.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${wo.root}`]:{paddingTop:19,paddingLeft:8,[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${wo.input}`]:{padding:"7px 4px"},[`& .${At.endAdornment}`]:{right:9}},[`& .${wo.root}.${bo.sizeSmall}`]:{paddingBottom:1,[`& .${wo.input}`]:{padding:"2.5px 4px"}},[`& .${bo.hiddenLabel}`]:{paddingTop:8},[`& .${wo.root}.${bo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${At.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${wo.root}.${bo.hiddenLabel}.${bo.sizeSmall}`]:{[`& .${At.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${At.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),zK=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),jK=oe(lr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),HK=oe(lr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),VK=oe(qa,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${At.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),UK=oe(ai,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),WK=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),GK=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),KK=oe("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${At.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"},[`&.${At.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"},[`&.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${At.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),qK=oe(dK,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),YK=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${At.option}`]:{paddingLeft:24}}),XK=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=cI||(cI=M.jsx(VR,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:x=!1,clearText:C="Clear",closeText:E="Close",componentsProps:w={},defaultValue:S=a.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:_=!1,disabled:I=!1,disabledItemsFocusable:T=!1,disableListWrap:O=!1,disablePortal:R=!1,filterSelectedOptions:A=!1,forcePopupIcon:V="auto",freeSolo:B=!1,fullWidth:L=!1,getLimitTagsText:F=He=>`+${He}`,getOptionLabel:j=He=>{var wt;return(wt=He.label)!=null?wt:He},groupBy:G,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:J="Loading…",multiple:fe=!1,noOptionsText:Q="No options",openOnFocus:le=!1,openText:ne="Open",PaperComponent:he=ai,PopperComponent:be=qa,popupIcon:ge=uI||(uI=M.jsx(WR,{})),readOnly:$e=!1,renderGroup:ze,renderInput:Ae,renderOption:re,renderTags:Oe,selectOnFocus:ve=!a.freeSolo,size:je="medium",slotProps:ot={}}=a,pt=se(a,NK),{getRootProps:Je,getInputProps:bt,getInputLabelProps:lt,getPopupIndicatorProps:mt,getClearProps:ht,getTagProps:ut,getListboxProps:Ke,getOptionProps:_e,value:Te,dirty:Ne,expanded:Ue,id:Se,popupOpen:Le,focused:We,focusedTag:at,anchorEl:Ot,setAnchorEl:sn,inputValue:gn,groupedOptions:Hn}=BW(P({},a,{componentName:"Autocomplete"})),br=!k&&!I&&Ne&&!$e,wr=(!B||V===!0)&&V!==!1,{onMouseDown:Or}=bt(),Nn=P({},a,{disablePortal:R,expanded:Ue,focused:We,fullWidth:L,hasClearIcon:br,hasPopupIcon:wr,inputFocused:at===-1,popupOpen:Le,size:je}),ln=DK(Nn);let Kn;if(fe&&Te.length>0){const He=wt=>P({className:ln.tag,disabled:I},ut(wt));Oe?Kn=Oe(Te,He,Nn):Kn=Te.map((wt,jt)=>M.jsx(_v,P({label:j(wt),size:je},He({index:jt}),m)))}if(W>-1&&Array.isArray(Kn)){const He=Kn.length-W;!We&&He>0&&(Kn=Kn.splice(0,W),Kn.push(M.jsx("span",{className:ln.tag,children:F(He)},Kn.length)))}const Mi=ze||(He=>M.jsxs("li",{children:[M.jsx(qK,{className:ln.groupLabel,ownerState:Nn,component:"div",children:He.group}),M.jsx(YK,{className:ln.groupUl,ownerState:Nn,children:He.children})]},He.key)),as=re||((He,wt)=>M.jsx("li",P({},He,{children:j(wt)}))),ae=(He,wt)=>{const jt=_e({option:He,index:wt});return as(P({},jt,{className:ln.option}),He,{selected:jt["aria-selected"],index:wt,inputValue:gn})},ye=(r=ot.clearIndicator)!=null?r:w.clearIndicator,Fe=(o=ot.paper)!=null?o:w.paper,dt=(i=ot.popper)!=null?i:w.popper,st=(s=ot.popupIndicator)!=null?s:w.popupIndicator;return M.jsxs(u.Fragment,{children:[M.jsx(BK,P({ref:n,className:pe(ln.root,v),ownerState:Nn},Je(pt),{children:Ae({id:Se,disabled:I,fullWidth:!0,size:je==="small"?"small":void 0,InputLabelProps:lt(),InputProps:P({ref:sn,className:ln.inputRoot,startAdornment:Kn,onClick:He=>{He.target===He.currentTarget&&Or(He)}},(br||wr)&&{endAdornment:M.jsxs(zK,{className:ln.endAdornment,ownerState:Nn,children:[br?M.jsx(jK,P({},ht(),{"aria-label":C,title:C,ownerState:Nn},ye,{className:pe(ln.clearIndicator,ye==null?void 0:ye.className),children:b})):null,wr?M.jsx(HK,P({},mt(),{disabled:I,"aria-label":Le?E:ne,title:Le?E:ne,ownerState:Nn},st,{className:pe(ln.popupIndicator,st==null?void 0:st.className),children:ge})):null]})}),inputProps:P({className:ln.input,disabled:I,readOnly:$e},bt())})})),Ot?M.jsx(VK,P({as:be,disablePortal:R,style:{width:Ot?Ot.clientWidth:null},ownerState:Nn,role:"presentation",anchorEl:Ot,open:Le},dt,{className:pe(ln.popper,dt==null?void 0:dt.className),children:M.jsxs(UK,P({ownerState:Nn,as:he},Fe,{className:pe(ln.paper,Fe==null?void 0:Fe.className),children:[ie&&Hn.length===0?M.jsx(WK,{className:ln.loading,ownerState:Nn,children:J}):null,Hn.length===0&&!B&&!ie?M.jsx(GK,{className:ln.noOptions,ownerState:Nn,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:Q}):null,Hn.length>0?M.jsx(KK,P({as:q,className:ln.listbox,ownerState:Nn},Ke(),X,{children:Hn.map((He,wt)=>G?Mi({key:He.key,group:He.group,children:He.options.map((jt,xn)=>ae(jt,He.index+xn))}):ae(He,wt))})):null]}))})):null]})}),nx=XK,QK=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],JK={entering:{opacity:1},entered:{opacity:1}},ZK=u.forwardRef(function(t,n){const r=so(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:b,onExiting:g,style:x,timeout:C=o,TransitionComponent:E=kv}=t,w=se(t,QK),S=u.useRef(null),k=Ht(S,a.ref,n),_=L=>F=>{if(L){const j=S.current;F===void 0?L(j):L(j,F)}},I=_(m),T=_((L,F)=>{ex(L);const j=Hl({style:x,timeout:C,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",j),L.style.transition=r.transitions.create("opacity",j),p&&p(L,F)}),O=_(h),R=_(g),A=_(L=>{const F=Hl({style:x,timeout:C,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",F),L.style.transition=r.transitions.create("opacity",F),v&&v(L)}),V=_(b),B=L=>{i&&i(S.current,L)};return M.jsx(E,P({appear:s,in:d,nodeRef:S,onEnter:T,onEntered:O,onEntering:I,onExit:A,onExited:V,onExiting:R,addEndListener:B,timeout:C},w,{children:(L,F)=>u.cloneElement(a,P({style:P({opacity:0,visibility:L==="exited"&&!d?"hidden":void 0},JK[L],x,a.props.style),ref:k},F))}))}),GR=ZK;function eq(e){return Ze("MuiBackdrop",e)}Ye("MuiBackdrop",["root","invisible"]);const tq=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nq=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},eq,t)},rq=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),oq=u.forwardRef(function(t,n){var r,o,i;const s=nt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:v,slotProps:b={},slots:g={},TransitionComponent:x=GR,transitionDuration:C}=s,E=se(s,tq),w=P({},s,{component:d,invisible:m}),S=nq(w),k=(r=b.root)!=null?r:h.root;return M.jsx(x,P({in:v,timeout:C},E,{children:M.jsx(rq,P({"aria-hidden":!0},k,{as:(o=(i=g.root)!=null?i:p.Root)!=null?o:d,className:pe(S.root,c,k==null?void 0:k.className),ownerState:P({},w,k==null?void 0:k.ownerState),classes:S,ref:n,children:a}))}))}),KR=oq;function iq(e){return Ze("MuiBadge",e)}const sq=Ye("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ol=sq,lq=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],i1=10,s1=4,aq=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`,`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}${ce(o)}`,`overlap${ce(o)}`,t!=="default"&&`color${ce(t)}`]};return Ie(a,iq,s)},cq=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),uq=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}${ce(n.overlap)}`],n.color!=="default"&&t[`color${ce(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({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:i1*2,lineHeight:1,padding:"0 6px",height:i1*2,borderRadius:i1,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:s1,height:s1*2,minWidth:s1*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),dq=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:v={},componentsProps:b={},children:g,overlap:x="rectangular",color:C="default",invisible:E=!1,max:w=99,badgeContent:S,slots:k,slotProps:_,showZero:I=!1,variant:T="standard"}=d,O=se(d,lq),{badgeContent:R,invisible:A,max:V,displayValue:B}=q7({max:w,invisible:E,badgeContent:S,showZero:I}),L=IC({anchorOrigin:p,color:C,overlap:x,variant:T,badgeContent:S}),F=A||R==null&&T!=="dot",{color:j=C,overlap:G=x,anchorOrigin:N=p,variant:z=T}=F?L:d,W=z!=="dot"?B:void 0,q=P({},d,{badgeContent:R,invisible:F,max:V,displayValue:W,showZero:I,anchorOrigin:N,color:j,overlap:G,variant:z}),X=aq(q),ie=(r=(o=k==null?void 0:k.root)!=null?o:v.Root)!=null?r:cq,J=(i=(s=k==null?void 0:k.badge)!=null?s:v.Badge)!=null?i:uq,fe=(a=_==null?void 0:_.root)!=null?a:b.root,Q=(c=_==null?void 0:_.badge)!=null?c:b.badge,le=zs({elementType:ie,externalSlotProps:fe,externalForwardedProps:O,additionalProps:{ref:n,as:m},ownerState:q,className:pe(fe==null?void 0:fe.className,X.root,h)}),ne=zs({elementType:J,externalSlotProps:Q,ownerState:q,className:pe(X.badge,Q==null?void 0:Q.className)});return M.jsxs(ie,P({},le,{children:[g,M.jsx(J,P({},ne,{children:W}))]}))}),qR=dq,fq=VC(),pq=WV({themeId:Oa,defaultTheme:fq,defaultClassName:"MuiBox-root",generateClassName:YM.generate}),et=pq;function hq(e){return Ze("MuiButton",e)}const mq=Ye("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"]),zh=mq,gq=u.createContext({}),vq=gq,yq=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bq=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ce(o)}`],endIcon:["endIcon",`iconSize${ce(o)}`]},c=Ie(a,hq,s);return P({},s,c)},YR=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wq=oe(ts,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zh.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zh.disabled}`]:P({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ct(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zh.disabled}`]:{boxShadow:"none"}}),Cq=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},YR(e))),xq=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},YR(e))),Sq=u.forwardRef(function(t,n){const r=u.useContext(vq),o=_C(r,t),i=nt({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:x="medium",startIcon:C,type:E,variant:w="text"}=i,S=se(i,yq),k=P({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:x,type:E,variant:w}),_=bq(k),I=C&&M.jsx(Cq,{className:_.startIcon,ownerState:k,children:C}),T=v&&M.jsx(xq,{className:_.endIcon,ownerState:k,children:v});return M.jsxs(wq,P({ownerState:k,className:pe(r.className,_.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:pe(_.focusVisible,b),ref:n,type:E},S,{classes:_,children:[I,s,T]}))}),cr=Sq;function Eq(e){return Ze("MuiCard",e)}Ye("MuiCard",["root"]);const Pq=["className","raised"],kq=e=>{const{classes:t}=e;return Ie({root:["root"]},Eq,t)},Iq=oe(ai,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),_q=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=se(r,Pq),a=P({},r,{raised:i}),c=kq(a);return M.jsx(Iq,P({className:pe(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),XR=_q;function $q(e){return Ze("MuiCardContent",e)}Ye("MuiCardContent",["root"]);const Tq=["className","component"],Mq=e=>{const{classes:t}=e;return Ie({root:["root"]},$q,t)},Rq=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Oq=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=se(r,Tq),a=P({},r,{component:i}),c=Mq(a);return M.jsx(Rq,P({as:i,className:pe(c.root,o),ownerState:a,ref:n},s))}),QR=Oq;function Lq(e){return Ze("PrivateSwitchBase",e)}Ye("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Aq=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Fq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return Ie(i,Lq,t)},Nq=oe(ts)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Dq=oe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Bq=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:b,name:g,onBlur:x,onChange:C,onFocus:E,readOnly:w,required:S=!1,tabIndex:k,type:_,value:I}=t,T=se(t,Aq),[O,R]=Rs({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),A=Gs(),V=z=>{E&&E(z),A&&A.onFocus&&A.onFocus(z)},B=z=>{x&&x(z),A&&A.onBlur&&A.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const W=z.target.checked;R(W),C&&C(z,W)};let F=c;A&&typeof F=="undefined"&&(F=A.disabled);const j=_==="checkbox"||_==="radio",G=P({},t,{checked:O,disabled:F,disableFocusRipple:d,edge:p}),N=Fq(G);return M.jsxs(Nq,P({component:"span",className:pe(N.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:V,onBlur:B,ownerState:G,ref:n},T,{children:[M.jsx(Dq,P({autoFocus:r,checked:o,defaultChecked:a,className:N.input,disabled:F,id:j?m:void 0,name:g,onChange:L,readOnly:w,ref:b,required:S,ownerState:G,tabIndex:k,type:_},_==="checkbox"&&I===void 0?{}:{value:I},v)),O?i:h]}))}),JR=Bq,zq=Re(M.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"),jq=Re(M.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"),Hq=Re(M.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 Vq(e){return Ze("MuiCheckbox",e)}const Uq=Ye("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),l1=Uq,Wq=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Gq=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ce(r)}`]},i=Ie(o,Vq,t);return P({},t,i)},Kq=oe(JR,{shouldForwardProp:e=>Ao(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${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${l1.checked}, &.${l1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${l1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),qq=M.jsx(jq,{}),Yq=M.jsx(zq,{}),Xq=M.jsx(Hq,{}),Qq=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=qq,color:a="primary",icon:c=Yq,indeterminate:d=!1,indeterminateIcon:p=Xq,inputProps:h,size:m="medium",className:v}=i,b=se(i,Wq),g=d?p:c,x=d?p:s,C=P({},i,{color:a,indeterminate:d,size:m}),E=Gq(C);return M.jsx(Kq,P({type:"checkbox",inputProps:P({"data-indeterminate":d},h),icon:u.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:m}),ownerState:C,ref:n,className:pe(E.root,v)},b,{classes:E}))}),ZR=Qq;function Jq(e){return Ze("MuiCircularProgress",e)}Ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zq=["className","color","disableShrink","size","style","thickness","value","variant"];let Lv=e=>e,dI,fI,pI,hI;const il=44,eY=rs(dI||(dI=Lv`
163
+ 0% {
164
+ transform: rotate(0deg);
165
+ }
166
+
167
+ 100% {
168
+ transform: rotate(360deg);
169
+ }
170
+ `)),tY=rs(fI||(fI=Lv`
171
+ 0% {
172
+ stroke-dasharray: 1px, 200px;
173
+ stroke-dashoffset: 0;
174
+ }
175
+
176
+ 50% {
177
+ stroke-dasharray: 100px, 200px;
178
+ stroke-dashoffset: -15px;
179
+ }
180
+
181
+ 100% {
182
+ stroke-dasharray: 100px, 200px;
183
+ stroke-dashoffset: -125px;
184
+ }
185
+ `)),nY=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ce(r)}`],svg:["svg"],circle:["circle",`circle${ce(n)}`,o&&"circleDisableShrink"]};return Ie(i,Jq,t)},rY=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(({ownerState:e,theme:t})=>P({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"&&jl(pI||(pI=Lv`
186
+ animation: ${0} 1.4s linear infinite;
187
+ `),eY)),oY=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),iY=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({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&&jl(hI||(hI=Lv`
188
+ animation: ${0} 1.4s ease-in-out infinite;
189
+ `),tY)),sY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,m=se(r,Zq),v=P({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),b=nY(v),g={},x={},C={};if(h==="determinate"){const E=2*Math.PI*((il-d)/2);g.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*E).toFixed(3)}px`,x.transform="rotate(-90deg)"}return M.jsx(rY,P({className:pe(b.root,o),style:P({width:a,height:a},x,c),ownerState:v,ref:n,role:"progressbar"},C,m,{children:M.jsx(oY,{className:b.svg,ownerState:v,viewBox:`${il/2} ${il/2} ${il} ${il}`,children:M.jsx(iY,{className:b.circle,style:g,ownerState:v,cx:il,cy:il,r:(il-d)/2,fill:"none",strokeWidth:d})})}))}),ju=sY,lY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],aY=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),cY=oe(KR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),uY=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({name:"MuiModal",props:t}),{BackdropComponent:p=cY,BackdropProps:h,classes:m,className:v,closeAfterTransition:b=!1,children:g,component:x,components:C={},componentsProps:E={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:k=!1,disablePortal:_=!1,disableRestoreFocus:I=!1,disableScrollLock:T=!1,hideBackdrop:O=!1,keepMounted:R=!1,slotProps:A,slots:V,theme:B}=d,L=se(d,lY),[F,j]=u.useState(!0),G={closeAfterTransition:b,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:k,disablePortal:_,disableRestoreFocus:I,disableScrollLock:T,hideBackdrop:O,keepMounted:R},N=P({},d,G,{exited:F}),z=(r=(o=V==null?void 0:V.root)!=null?o:C.Root)!=null?r:aY,W=(i=(s=V==null?void 0:V.backdrop)!=null?s:C.Backdrop)!=null?i:p,q=(a=A==null?void 0:A.root)!=null?a:E.root,X=(c=A==null?void 0:A.backdrop)!=null?c:E.backdrop;return M.jsx(RW,P({slots:{root:z,backdrop:W},slotProps:{root:()=>P({},Fb(q,N),!Aa(z)&&{as:x,theme:B},{className:pe(v,q==null?void 0:q.className,m==null?void 0:m.root,!N.open&&N.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>P({},h,Fb(X,N),{className:pe(X==null?void 0:X.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>j(!1),onTransitionExited:()=>j(!0),ref:n},L,G,{children:g}))}),rx=uY;function dY(e){return Ze("MuiDialog",e)}const fY=Ye("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),a1=fY,pY=u.createContext({}),eO=pY,hY=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mY=oe(KR,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gY=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(s,dY,t)},vY=oe(rx,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),yY=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})(({ownerState:e})=>P({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"}})),bY=oe(ai,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({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}`,[`&.${a1.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}`,[`&.${a1.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,[`&.${a1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),wY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialog"}),o=so(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:x,onClose:C,open:E,PaperComponent:w=ai,PaperProps:S={},scroll:k="paper",TransitionComponent:_=GR,transitionDuration:I=i,TransitionProps:T}=r,O=se(r,hY),R=P({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:k}),A=gY(R),V=u.useRef(),B=G=>{V.current=G.target===G.currentTarget},L=G=>{V.current&&(V.current=null,x&&x(G),C&&C(G,"backdropClick"))},F=On(a),j=u.useMemo(()=>({titleId:F}),[F]);return M.jsx(vY,P({className:pe(A.root,h),closeAfterTransition:!0,components:{Backdrop:mY},componentsProps:{backdrop:P({transitionDuration:I,as:c},d)},disableEscapeKeyDown:m,onClose:C,open:E,ref:n,onClick:L,ownerState:R},O,{children:M.jsx(_,P({appear:!0,in:E,timeout:I,role:"presentation"},T,{children:M.jsx(yY,{className:pe(A.container),onMouseDown:B,ownerState:R,children:M.jsx(bY,P({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},S,{className:pe(A.paper,S.className),ownerState:R,children:M.jsx(eO.Provider,{value:j,children:p})}))})}))}))}),CY=wY;function xY(e){return Ze("MuiDialogContent",e)}Ye("MuiDialogContent",["root","dividers"]);function SY(e){return Ze("MuiDialogTitle",e)}const EY=Ye("MuiDialogTitle",["root"]),PY=EY,kY=["className","dividers"],IY=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},xY,t)},_Y=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({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}`}:{[`.${PY.root} + &`]:{paddingTop:0}})),$Y=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=se(r,kY),a=P({},r,{dividers:i}),c=IY(a);return M.jsx(_Y,P({className:pe(c.root,o),ownerState:a,ref:n},s))}),TY=$Y,MY=["className","id"],RY=e=>{const{classes:t}=e;return Ie({root:["root"]},SY,t)},OY=oe(_r,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),LY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=se(r,MY),a=r,c=RY(a),{titleId:d=i}=u.useContext(eO);return M.jsx(OY,P({component:"h2",className:pe(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),AY=LY,FY=Ye("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mI=FY,NY=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DY(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_o(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const d=i.getComputedStyle(t);s=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const d=s.split("(")[1].split(")")[0].split(",");a=parseInt(d[4],10),c=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function BY(e){return typeof e=="function"?e():e}function jh(e,t,n){const r=BY(n),o=DY(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const zY=u.forwardRef(function(t,n){const r=so(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:d,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:b,onEntering:g,onExit:x,onExited:C,onExiting:E,style:w,timeout:S=i,TransitionComponent:k=kv}=t,_=se(t,NY),I=u.useRef(null),T=Ht(c.ref,I,n),O=N=>z=>{N&&(z===void 0?N(I.current):N(I.current,z))},R=O((N,z)=>{jh(p,N,d),ex(N),v&&v(N,z)}),A=O((N,z)=>{const W=Hl({timeout:S,style:w,easing:h},{mode:"enter"});N.style.webkitTransition=r.transitions.create("-webkit-transform",P({},W)),N.style.transition=r.transitions.create("transform",P({},W)),N.style.webkitTransform="none",N.style.transform="none",g&&g(N,z)}),V=O(b),B=O(E),L=O(N=>{const z=Hl({timeout:S,style:w,easing:h},{mode:"exit"});N.style.webkitTransition=r.transitions.create("-webkit-transform",z),N.style.transition=r.transitions.create("transform",z),jh(p,N,d),x&&x(N)}),F=O(N=>{N.style.webkitTransition="",N.style.transition="",C&&C(N)}),j=N=>{s&&s(I.current,N)},G=u.useCallback(()=>{I.current&&jh(p,I.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const N=zl(()=>{I.current&&jh(p,I.current,d)}),z=_o(I.current);return z.addEventListener("resize",N),()=>{N.clear(),z.removeEventListener("resize",N)}},[p,m,d]),u.useEffect(()=>{m||G()},[m,G]),M.jsx(k,P({nodeRef:I,onEnter:R,onEntered:V,onEntering:A,onExit:L,onExited:F,onExiting:B,addEndListener:j,appear:a,in:m,timeout:S},_,{children:(N,z)=>u.cloneElement(c,P({ref:T,style:P({visibility:N==="exited"&&!m?"hidden":void 0},w,c.props.style)},z))}))}),jY=zY;function HY(e){return Ze("MuiDrawer",e)}Ye("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const VY=["BackdropProps"],UY=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],tO=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},WY=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(n)}`,r!=="temporary"&&`paperAnchorDocked${ce(n)}`]};return Ie(o,HY,t)},GY=oe(rx,{name:"MuiDrawer",slot:"Root",overridesResolver:tO})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),gI=oe("div",{shouldForwardProp:Ao,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:tO})({flex:"0 0 auto"}),KY=oe(ai,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ce(n.anchor)}`]]}})(({theme:e,ownerState:t})=>P({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}`})),nO={left:"right",right:"left",top:"down",bottom:"up"};function qY(e){return["left","right"].indexOf(e)!==-1}function YY(e,t){return e.direction==="rtl"&&qY(t)?nO[t]:t}const XY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),o=so(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:b=!1,PaperProps:g={},SlideProps:x,TransitionComponent:C=jY,transitionDuration:E=i,variant:w="temporary"}=r,S=se(r.ModalProps,VY),k=se(r,UY),_=u.useRef(!1);u.useEffect(()=>{_.current=!0},[]);const I=YY(o,s),O=P({},r,{anchor:s,elevation:p,open:b,variant:w},k),R=WY(O),A=M.jsx(KY,P({elevation:w==="temporary"?p:0,square:!0},g,{className:pe(R.paper,g.className),ownerState:O,children:c}));if(w==="permanent")return M.jsx(gI,P({className:pe(R.root,R.docked,d),ownerState:O,ref:n},k,{children:A}));const V=M.jsx(C,P({in:b,direction:nO[I],timeout:E,appear:_.current},x,{children:A}));return w==="persistent"?M.jsx(gI,P({className:pe(R.root,R.docked,d),ownerState:O,ref:n},k,{children:V})):M.jsx(GY,P({BackdropProps:P({},a,m,{transitionDuration:E}),className:pe(R.root,R.modal,d),open:b,ownerState:O,onClose:v,hideBackdrop:h,ref:n},k,S,{children:V}))}),QY=XY,JY=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ZY=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},OK,t);return P({},t,o)},eX=oe(Rv,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tv(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 P({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}},[`&.${wo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${wo.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"},[`&.${wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wo.disabled}, .${wo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),tX=oe(Ov,{name:"MuiFilledInput",slot:"Input",overridesResolver:Mv})(({theme:e,ownerState:t})=>P({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})),rO=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:v,slots:b={},type:g="text"}=a,x=se(a,JY),C=P({},a,{fullWidth:p,inputComponent:h,multiline:m,type:g}),E=ZY(a),w={root:{ownerState:C},input:{ownerState:C}},S=(v!=null?v:d)?Zo(v!=null?v:d,w):w,k=(r=(o=b.root)!=null?o:c.Root)!=null?r:eX,_=(i=(s=b.input)!=null?s:c.Input)!=null?i:tX;return M.jsx(zu,P({slots:{root:k,input:_},componentsProps:S,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:g},x,{classes:E}))});rO.muiName="Input";const oO=rO;function nX(e){return Ze("MuiFormControl",e)}Ye("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rX=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],oX=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return Ie(o,nX,t)},iX=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),sX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:b=!1,size:g="medium",variant:x="outlined"}=r,C=se(r,rX),E=P({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:x}),w=oX(E),[S,k]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,L=>{if(!dm(L,["Input","Select"]))return;const F=dm(L,["Select"])?L.props.input:L;F&&xK(F.props)&&(B=!0)}),B}),[_,I]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,L=>{dm(L,["Input","Select"])&&tx(L.props,!0)&&(B=!0)}),B}),[T,O]=u.useState(!1);c&&T&&O(!1);const R=p!==void 0&&!c?p:T;let A;const V=u.useMemo(()=>({adornedStart:S,setAdornedStart:k,color:s,disabled:c,error:d,filled:_,focused:R,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{O(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{O(!0)},registerEffect:A,required:b,variant:x}),[S,s,c,d,_,R,h,m,A,b,g,x]);return M.jsx($v.Provider,{value:V,children:M.jsx(iX,P({as:a,ownerState:E,className:pe(w.root,i),ref:n},C,{children:o}))})}),Xa=sX;function lX(e){return Ze("MuiFormControlLabel",e)}const aX=Ye("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Hd=aX,cX=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uX=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ie(s,lX,t)},dX=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hd.label}`]:t.label},t.root,t[`labelPlacement${ce(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hd.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},{[`& .${Hd.label}`]:{[`&.${Hd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),fX=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hd.error}`]:{color:(e.vars||e).palette.error.main}})),pX=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,label:h,labelPlacement:m="end",required:v,slotProps:b={}}=i,g=se(i,cX),x=Gs(),C=(r=d!=null?d:c.props.disabled)!=null?r:x==null?void 0:x.disabled,E=v!=null?v:c.props.required,w={disabled:C,required:E};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof c.props[O]=="undefined"&&typeof i[O]!="undefined"&&(w[O]=i[O])});const S=Ya({props:i,muiFormControl:x,states:["error"]}),k=P({},i,{disabled:C,labelPlacement:m,required:E,error:S.error}),_=uX(k),I=(o=b.typography)!=null?o:a.typography;let T=h;return T!=null&&T.type!==_r&&!p&&(T=M.jsx(_r,P({component:"span"},I,{className:pe(_.label,I==null?void 0:I.className),children:T}))),M.jsxs(dX,P({className:pe(_.root,s),ownerState:k,ref:n},g,{children:[u.cloneElement(c,w),T,E&&M.jsxs(fX,{ownerState:k,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}))}),iO=pX;function hX(e){return Ze("MuiFormHelperText",e)}const mX=Ye("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),vI=mX;var yI;const gX=["children","className","component","disabled","error","filled","focused","margin","required","variant"],vX=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Ie(d,hX,t)},yX=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=se(r,gX),c=Gs(),d=Ya({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=P({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=vX(p);return M.jsx(yX,P({as:s,ownerState:p,className:pe(h.root,i),ref:n},a,{children:o===" "?yI||(yI=M.jsx("span",{className:"notranslate",children:"​"})):o}))}),Av=bX;function wX(e){return Ze("MuiFormLabel",e)}const CX=Ye("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cf=CX,xX=["children","className","color","component","disabled","error","filled","focused","required"],SX=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(c,wX,t)},EX=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${cf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cf.error}`]:{color:(e.vars||e).palette.error.main}})),PX=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${cf.error}`]:{color:(e.vars||e).palette.error.main}})),kX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=se(r,xX),c=Gs(),d=Ya({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=P({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=SX(p);return M.jsxs(EX,P({as:s,ownerState:p,className:pe(h.root,i),ref:n},a,{children:[o,d.required&&M.jsxs(PX,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),sO=kX,IX=u.createContext(),bI=IX;function _X(e){return Ze("MuiGrid",e)}const $X=[0,1,2,3,4,5,6,7,8,9,10],TX=["column-reverse","column","row-reverse","row"],MX=["nowrap","wrap-reverse","wrap"],kd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zf=Ye("MuiGrid",["root","container","item","zeroMinWidth",...$X.map(e=>`spacing-xs-${e}`),...TX.map(e=>`direction-xs-${e}`),...MX.map(e=>`wrap-xs-${e}`),...kd.map(e=>`grid-xs-${e}`),...kd.map(e=>`grid-sm-${e}`),...kd.map(e=>`grid-md-${e}`),...kd.map(e=>`grid-lg-${e}`),...kd.map(e=>`grid-xl-${e}`)]),RX=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ou(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function OX({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=pv({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let d={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${ou(p)})`;d={flexBasis:h,maxWidth:h}}}i=P({flexBasis:c,flexGrow:0,maxWidth:c},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function LX({theme:e,ownerState:t}){const n=pv({values:t.direction,breakpoints:e.breakpoints.values});return ri({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${zf.item}`]={maxWidth:"none"}),o})}function lO({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 AX({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=pv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=lO({breakpoints:e.breakpoints.values,values:i})),o=ri({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${ou(p)}`,[`& > .${zf.item}`]:{paddingTop:ou(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${zf.item}`]:{paddingTop:0}}})}return o}function FX({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=pv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=lO({breakpoints:e.breakpoints.values,values:i})),o=ri({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${ou(p)})`,marginLeft:`-${ou(p)}`,[`& > .${zf.item}`]:{paddingLeft:ou(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${zf.item}`]:{paddingLeft:0}}})}return o}function NX(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 DX=oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:d}=n;let p=[];r&&(p=NX(s,d,t));const h=[];return d.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})=>P({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}),LX,AX,FX,OX);function BX(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 zX=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=BX(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",...d,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Ie(h,_X,t)},jX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiGrid"}),{breakpoints:o}=so(),i=jC(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:x=!1}=i,C=se(i,RX),E=v||b,w=c||b,S=u.useContext(bI),k=p?a||12:S,_={},I=P({},C);o.keys.forEach(R=>{C[R]!=null&&(_[R]=C[R],delete I[R])});const T=P({},i,{columns:k,container:p,direction:h,item:m,rowSpacing:E,columnSpacing:w,wrap:g,zeroMinWidth:x,spacing:b},_,{breakpoints:o.keys}),O=zX(T);return M.jsx(bI.Provider,{value:k,children:M.jsx(DX,P({ownerState:T,className:pe(O.root,s),as:d,ref:n},I))})}),qn=jX,HX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ub(e){return`scale(${e}, ${ys(e,2)})`}const VX={entering:{opacity:1,transform:Ub(1)},entered:{opacity:1,transform:"none"}},c1=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),aO=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:v,style:b,timeout:g="auto",TransitionComponent:x=kv}=t,C=se(t,HX),E=u.useRef(),w=u.useRef(),S=so(),k=u.useRef(null),_=Ht(k,i.ref,n),I=F=>j=>{if(F){const G=k.current;j===void 0?F(G):F(G,j)}},T=I(p),O=I((F,j)=>{ex(F);const{duration:G,delay:N,easing:z}=Hl({style:b,timeout:g,easing:s},{mode:"enter"});let W;g==="auto"?(W=S.transitions.getAutoHeightDuration(F.clientHeight),w.current=W):W=G,F.style.transition=[S.transitions.create("opacity",{duration:W,delay:N}),S.transitions.create("transform",{duration:c1?W:W*.666,delay:N,easing:z})].join(","),c&&c(F,j)}),R=I(d),A=I(v),V=I(F=>{const{duration:j,delay:G,easing:N}=Hl({style:b,timeout:g,easing:s},{mode:"exit"});let z;g==="auto"?(z=S.transitions.getAutoHeightDuration(F.clientHeight),w.current=z):z=j,F.style.transition=[S.transitions.create("opacity",{duration:z,delay:G}),S.transitions.create("transform",{duration:c1?z:z*.666,delay:c1?G:G||z*.333,easing:N})].join(","),F.style.opacity=0,F.style.transform=Ub(.75),h&&h(F)}),B=I(m),L=F=>{g==="auto"&&(E.current=setTimeout(F,w.current||0)),r&&r(k.current,F)};return u.useEffect(()=>()=>{clearTimeout(E.current)},[]),M.jsx(x,P({appear:o,in:a,nodeRef:k,onEnter:O,onEntered:R,onEntering:T,onExit:V,onExited:B,onExiting:A,addEndListener:L,timeout:g==="auto"?null:g},C,{children:(F,j)=>u.cloneElement(i,P({style:P({opacity:0,transform:Ub(.75),visibility:F==="exited"&&!a?"hidden":void 0},VX[F],b,i.props.style),ref:_},j))}))});aO.muiSupportAuto=!0;const rg=aO;function UX(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return hn(()=>{let a=!0;if(!n)return;const c=n(e),d=()=>{a&&s(c.matches)};return d(),c.addListener(d),()=>{a=!1,c.removeListener(d)}},[e,n]),i}const cO=Ia["useSyncExternalStore"];function WX(e,t,n,r,o){const i=u.useCallback(()=>t,[t]),s=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return i},[i,e,r,o,n]),[a,c]=u.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addListener(h),()=>{p.removeListener(h)})]},[i,n,e]);return cO(c,a,s)}function uO(e,t={}){const n=Cv(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=xR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(cO!==void 0?WX:UX)(c,o,i,s,a)}const GX=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KX=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},$K,t);return P({},t,o)},qX=oe(Rv,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tv(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})`),P({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"},[`&.${vl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vl.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vl.disabled}, .${vl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${vl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),YX=oe(Ov,{name:"MuiInput",slot:"Input",overridesResolver:Mv})({}),dO=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:v=!1,slotProps:b,slots:g={},type:x="text"}=a,C=se(a,GX),E=KX(a),S={root:{ownerState:{disableUnderline:c}}},k=(b!=null?b:p)?Zo(b!=null?b:p,S):S,_=(r=(o=g.root)!=null?o:d.Root)!=null?r:qX,I=(i=(s=g.input)!=null?s:d.Input)!=null?i:YX;return M.jsx(zu,P({slots:{root:_,input:I},slotProps:k,fullWidth:h,inputComponent:m,multiline:v,ref:n,type:x},C,{classes:E}))});dO.muiName="Input";const fO=dO;function XX(e){return Ze("MuiInputAdornment",e)}const QX=Ye("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),wI=QX;var CI;const JX=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ZX=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},eQ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,s,r&&"hiddenLabel",i&&`size${ce(i)}`]};return Ie(a,XX,t)},tQ=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ZX})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${wI.positionStart}&:not(.${wI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),nQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=se(r,JX),m=Gs()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=P({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:v}),g=eQ(b);return M.jsx($v.Provider,{value:null,children:M.jsx(tQ,P({as:s,ownerState:b,className:pe(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?M.jsx(_r,{color:"text.secondary",children:o}):M.jsxs(u.Fragment,{children:[d==="start"?CI||(CI=M.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),og=nQ;function rQ(e){return Ze("MuiInputLabel",e)}Ye("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const oQ=["disableAnimation","margin","shrink","variant","className"],iQ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=Ie({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},rQ,t);return P({},t,d)},sQ=oe(sO,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cf.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})=>P({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"&&P({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&&P({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"&&P({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),lQ=u.forwardRef(function(t,n){const r=nt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=se(r,oQ),c=Gs();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=Ya({props:r,muiFormControl:c,states:["size","variant","required"]}),h=P({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=iQ(h);return M.jsx(sQ,P({"data-shrink":d,ownerState:h,ref:n,className:pe(m.root,s)},a,{classes:m}))}),Wb=lQ;function aQ(e){return Ze("MuiLinearProgress",e)}Ye("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cQ=["className","color","value","valueBuffer","variant"];let Hu=e=>e,xI,SI,EI,PI,kI,II;const Gb=4,uQ=rs(xI||(xI=Hu`
190
+ 0% {
191
+ left: -35%;
192
+ right: 100%;
193
+ }
194
+
195
+ 60% {
196
+ left: 100%;
197
+ right: -90%;
198
+ }
199
+
200
+ 100% {
201
+ left: 100%;
202
+ right: -90%;
203
+ }
204
+ `)),dQ=rs(SI||(SI=Hu`
205
+ 0% {
206
+ left: -200%;
207
+ right: 100%;
208
+ }
209
+
210
+ 60% {
211
+ left: 107%;
212
+ right: -8%;
213
+ }
214
+
215
+ 100% {
216
+ left: 107%;
217
+ right: -8%;
218
+ }
219
+ `)),fQ=rs(EI||(EI=Hu`
220
+ 0% {
221
+ opacity: 1;
222
+ background-position: 0 -23px;
223
+ }
224
+
225
+ 60% {
226
+ opacity: 0;
227
+ background-position: 0 -23px;
228
+ }
229
+
230
+ 100% {
231
+ opacity: 1;
232
+ background-position: -200px -23px;
233
+ }
234
+ `)),pQ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ce(r)}`,n],dashed:["dashed",`dashedColor${ce(r)}`],bar1:["bar",`barColor${ce(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ce(r)}`,n==="buffer"&&`color${ce(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(o,aQ,t)},ox=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Bs(e.palette[t].main,.62):Ds(e.palette[t].main,.5),hQ=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ce(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ox(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)"})),mQ=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ce(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=ox(t,e.color);return P({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"})},jl(PI||(PI=Hu`
235
+ animation: ${0} 3s infinite linear;
236
+ `),fQ)),gQ=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>P({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 .${Gb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Gb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&jl(kI||(kI=Hu`
237
+ width: auto;
238
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
239
+ `),uQ)),vQ=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>P({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:ox(t,e.color),transition:`transform .${Gb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&jl(II||(II=Hu`
240
+ width: auto;
241
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
242
+ `),dQ)),yQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=se(r,cQ),p=P({},r,{color:i,variant:c}),h=pQ(p),m=so(),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 M.jsxs(hQ,P({className:pe(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},d,{children:[c==="buffer"?M.jsx(mQ,{className:h.dashed,ownerState:p}):null,M.jsx(gQ,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:M.jsx(vQ,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),bQ=yQ;function wQ(e){return Ze("MuiLink",e)}const CQ=Ye("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xQ=CQ,pO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SQ=e=>pO[e]||e,EQ=({theme:e,ownerState:t})=>{const n=SQ(t.color),r=bu(e,`palette.${n}`,!1)||t.color,o=bu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ct(r,.4)},PQ=EQ,kQ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],IQ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ie(i,wQ,t)},_Q=oe(_r,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>P({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&P({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:PQ({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"},[`&.${xQ.focusVisible}`]:{outline:"auto"}})),$Q=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:m}=r,v=se(r,kQ),{isFocusVisibleRef:b,onBlur:g,onFocus:x,ref:C}=kC(),[E,w]=u.useState(!1),S=Ht(n,C),k=O=>{g(O),b.current===!1&&w(!1),a&&a(O)},_=O=>{x(O),b.current===!0&&w(!0),c&&c(O)},I=P({},r,{color:i,component:s,focusVisible:E,underline:p,variant:h}),T=IQ(I);return M.jsx(_Q,P({color:i,className:pe(T.root,o),classes:d,component:s,onBlur:k,onFocus:_,ref:S,ownerState:I,variant:h,sx:[...Object.keys(pO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),Xi=$Q,TQ=u.createContext({}),Pi=TQ;function MQ(e){return Ze("MuiList",e)}Ye("MuiList",["root","padding","dense","subheader"]);const RQ=["children","className","component","dense","disablePadding","subheader"],OQ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MQ,t)},LQ=oe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),AQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=se(r,RQ),h=u.useMemo(()=>({dense:a}),[a]),m=P({},r,{component:s,dense:a,disablePadding:c}),v=OQ(m);return M.jsx(Pi.Provider,{value:h,children:M.jsxs(LQ,P({as:s,className:pe(v.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),Fv=AQ;function FQ(e){return Ze("MuiListItem",e)}const NQ=Ye("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Mc=NQ;function DQ(e){return Ze("MuiListItemButton",e)}const BQ=Ye("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Rc=BQ,zQ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],jQ=(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]},HQ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=Ie({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},DQ,n);return P({},n,d)},VQ=oe(ts,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:jQ})(({theme:e,ownerState:t})=>P({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"}},[`&.${Rc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rc.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})),UQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:v}=r,b=se(r,zQ),g=u.useContext(Pi),x=u.useMemo(()=>({dense:c||g.dense||!1,alignItems:o,disableGutters:d}),[o,g.dense,c,d]),C=u.useRef(null);hn(()=>{i&&C.current&&C.current.focus()},[i]);const E=P({},r,{alignItems:o,dense:x.dense,disableGutters:d,divider:p,selected:m}),w=HQ(E),S=Ht(C,n);return M.jsx(Pi.Provider,{value:x,children:M.jsx(VQ,P({ref:S,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:pe(w.focusVisible,h),ownerState:E,className:pe(w.root,v)},b,{classes:w,children:a}))})}),WQ=UQ;function GQ(e){return Ze("MuiListItemSecondaryAction",e)}Ye("MuiListItemSecondaryAction",["root","disableGutters"]);const KQ=["className"],qQ=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},GQ,n)},YQ=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),hO=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,KQ),s=u.useContext(Pi),a=P({},r,{disableGutters:s.disableGutters}),c=qQ(a);return M.jsx(YQ,P({className:pe(c.root,o),ownerState:a,ref:n},i))});hO.muiName="ListItemSecondaryAction";const XQ=hO,QQ=["className"],JQ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ZQ=(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]},eJ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return Ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},FQ,r)},tJ=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:ZQ})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rc.root}`]:{paddingRight:48}},{[`&.${Mc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mc.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"}},[`&.${Mc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nJ=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:d,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:b=!1,disabled:g=!1,disableGutters:x=!1,disablePadding:C=!1,divider:E=!1,focusVisibleClassName:w,secondaryAction:S,selected:k=!1,slotProps:_={},slots:I={}}=r,T=se(r.ContainerProps,QQ),O=se(r,JQ),R=u.useContext(Pi),A=u.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),V=u.useRef(null);hn(()=>{i&&V.current&&V.current.focus()},[i]);const B=u.Children.toArray(a),L=B.length&&dm(B[B.length-1],["ListItemSecondaryAction"]),F=P({},r,{alignItems:o,autoFocus:i,button:s,dense:A.dense,disabled:g,disableGutters:x,disablePadding:C,divider:E,hasSecondaryAction:L,selected:k}),j=eJ(F),G=Ht(V,n),N=I.root||p.Root||tJ,z=_.root||h.root||{},W=P({className:pe(j.root,z.className,c),disabled:g},O);let q=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=pe(Mc.focusVisible,w),q=ts),L?(q=!W.component&&!d?"div":q,m==="li"&&(q==="li"?q="div":W.component==="li"&&(W.component="div")),M.jsx(Pi.Provider,{value:A,children:M.jsxs(nJ,P({as:m,className:pe(j.container,v),ref:G,ownerState:F},T,{children:[M.jsx(N,P({},z,!Aa(N)&&{as:q,ownerState:P({},F,z.ownerState)},W,{children:B})),B.pop()]}))})):M.jsx(Pi.Provider,{value:A,children:M.jsxs(N,P({},z,{as:q,ref:G},!Aa(N)&&{ownerState:P({},F,z.ownerState)},W,{children:[B,S&&M.jsx(XQ,{children:S})]}))})}),mO=rJ;function oJ(e){return Ze("MuiListItemIcon",e)}const iJ=Ye("MuiListItemIcon",["root","alignItemsFlexStart"]),_I=iJ,sJ=["className"],lJ=e=>{const{alignItems:t,classes:n}=e;return Ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},oJ,n)},aJ=oe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),cJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,sJ),s=u.useContext(Pi),a=P({},r,{alignItems:s.alignItems}),c=lJ(a);return M.jsx(aJ,P({className:pe(c.root,o),ownerState:a,ref:n},i))}),gO=cJ;function uJ(e){return Ze("MuiListItemText",e)}const dJ=Ye("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ig=dJ,fJ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pJ=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"]},uJ,t)},hJ=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ig.primary}`]:t.primary},{[`& .${ig.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),mJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=se(r,fJ),{dense:v}=u.useContext(Pi);let b=c!=null?c:o,g=p;const x=P({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),C=pJ(x);return b!=null&&b.type!==_r&&!s&&(b=M.jsx(_r,P({variant:v?"body2":"body1",className:C.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:b}))),g!=null&&g.type!==_r&&!s&&(g=M.jsx(_r,P({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},h,{children:g}))),M.jsxs(hJ,P({className:pe(C.root,i),ownerState:x,ref:n},m,{children:[b,g]}))}),Nv=mJ,gJ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function u1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $I(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function vO(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 Id(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")||!vO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const vJ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=se(t,gJ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});hn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,S)=>{const k=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&k){const _=`${KM(Cn(w))}px`;v.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=_,v.current.style.width=`calc(100% + ${_})`}return v.current}}),[]);const g=w=>{const S=v.current,k=w.key,_=Cn(S).activeElement;if(k==="ArrowDown")w.preventDefault(),Id(S,_,d,c,u1);else if(k==="ArrowUp")w.preventDefault(),Id(S,_,d,c,$I);else if(k==="Home")w.preventDefault(),Id(S,null,d,c,u1);else if(k==="End")w.preventDefault(),Id(S,null,d,c,$I);else if(k.length===1){const I=b.current,T=k.toLowerCase(),O=performance.now();I.keys.length>0&&(O-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&T!==I.keys[0]&&(I.repeating=!1)),I.lastTime=O,I.keys.push(T);const R=_&&!I.repeating&&vO(_,I);I.previousKeyMatched&&(R||Id(S,_,!1,c,u1,I))?w.preventDefault():I.previousKeyMatched=!1}p&&p(w)},x=Ht(v,n);let C=-1;u.Children.forEach(s,(w,S)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||C===-1)&&(C=S),C===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1)))});const E=u.Children.map(s,(w,S)=>{if(S===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 M.jsx(Fv,P({role:"menu",ref:x,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:E}))}),Dv=vJ;function yJ(e){return Ze("MuiPopover",e)}Ye("MuiPopover",["root","paper"]);const bJ=["onEntering"],wJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function TI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function MI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function RI(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function d1(e){return typeof e=="function"?e():e}const CJ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},yJ,t)},xJ=oe(rx,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SJ=oe(ai,{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}),EJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:b,PaperProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=rg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={}}=r,S=se(r.TransitionProps,bJ),k=se(r,wJ),_=u.useRef(),I=Ht(_,g.ref),T=P({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:x,TransitionComponent:C,transitionDuration:E,TransitionProps:S}),O=CJ(T),R=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=d1(i),X=(W&&W.nodeType===1?W:Cn(_.current).body).getBoundingClientRect();return{top:X.top+TI(X,s.vertical),left:X.left+MI(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),A=u.useCallback(W=>({vertical:TI(W,x.vertical),horizontal:MI(W,x.horizontal)}),[x.horizontal,x.vertical]),V=u.useCallback(W=>{const q={width:W.offsetWidth,height:W.offsetHeight},X=A(q);if(c==="none")return{top:null,left:null,transformOrigin:RI(X)};const ie=R();let J=ie.top-X.vertical,fe=ie.left-X.horizontal;const Q=J+q.height,le=fe+q.width,ne=_o(d1(i)),he=ne.innerHeight-v,be=ne.innerWidth-v;if(J<v){const ge=J-v;J-=ge,X.vertical+=ge}else if(Q>he){const ge=Q-he;J-=ge,X.vertical+=ge}if(fe<v){const ge=fe-v;fe-=ge,X.horizontal+=ge}else if(le>be){const ge=le-be;fe-=ge,X.horizontal+=ge}return{top:`${Math.round(J)}px`,left:`${Math.round(fe)}px`,transformOrigin:RI(X)}},[i,c,R,A,v]),[B,L]=u.useState(b),F=u.useCallback(()=>{const W=_.current;if(!W)return;const q=V(W);q.top!==null&&(W.style.top=q.top),q.left!==null&&(W.style.left=q.left),W.style.transformOrigin=q.transformOrigin,L(!0)},[V]),j=(W,q)=>{w&&w(W,q),F()},G=()=>{L(!1)};u.useEffect(()=>{b&&F()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{F()}}:null,[b,F]),u.useEffect(()=>{if(!b)return;const W=zl(()=>{F()}),q=_o(i);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[i,b,F]);let N=E;E==="auto"&&!C.muiSupportAuto&&(N=void 0);const z=h||(i?Cn(d1(i)).body:void 0);return M.jsx(xJ,P({BackdropProps:{invisible:!0},className:pe(O.root,p),container:z,open:b,ref:n,ownerState:T},k,{children:M.jsx(C,P({appear:!0,in:b,onEntering:j,onExited:G,timeout:N},S,{children:M.jsx(SJ,P({elevation:m},g,{ref:I,className:pe(O.paper,g.className)},B?void 0:{style:P({},g.style,{opacity:0})},{ownerState:T,children:d}))}))}))}),PJ=EJ;function kJ(e){return Ze("MuiMenu",e)}Ye("MuiMenu",["root","paper","list"]);const IJ=["onEntering"],_J=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],$J={vertical:"top",horizontal:"right"},TJ={vertical:"top",horizontal:"left"},MJ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},kJ,t)},RJ=oe(PJ,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OJ=oe(ai,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),LJ=oe(Dv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),AJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:b="selectedMenu"}=r,g=se(r.TransitionProps,IJ),x=se(r,_J),C=so(),E=C.direction==="rtl",w=P({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),S=MJ(w),k=o&&!s&&d,_=u.useRef(null),I=(R,A)=>{_.current&&_.current.adjustStyleForScrollbar(R,C),v&&v(R,A)},T=R=>{R.key==="Tab"&&(R.preventDefault(),c&&c(R,"tabKeyDown"))};let O=-1;return u.Children.map(i,(R,A)=>{u.isValidElement(R)&&(R.props.disabled||(b==="selectedMenu"&&R.props.selected||O===-1)&&(O=A))}),M.jsx(RJ,P({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$J:TJ,PaperProps:P({as:OJ},p,{classes:P({},p.classes,{root:S.paper})}),className:S.root,open:d,ref:n,transitionDuration:m,TransitionProps:P({onEntering:I},g),ownerState:w},x,{classes:h,children:M.jsx(LJ,P({onKeyDown:T,actions:_,autoFocus:o&&(O===-1||s),autoFocusItem:k,variant:b},a,{className:pe(S.list,a.className),children:i}))}))}),yO=AJ;function FJ(e){return Ze("MuiMenuItem",e)}const NJ=Ye("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_d=NJ,DJ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],BJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},zJ=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"]},FJ,s);return P({},s,c)},jJ=oe(ts,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:BJ})(({theme:e,ownerState:t})=>P({},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"}},[`&.${_d.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_d.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_d.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_d.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_d.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mI.inset}`]:{marginLeft:52},[`& .${ig.root}`]:{marginTop:0,marginBottom:0},[`& .${ig.inset}`]:{paddingLeft:36},[`& .${_I.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${_I.root} svg`]:{fontSize:"1.25rem"}}))),HJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:m}=r,v=se(r,DJ),b=u.useContext(Pi),g=u.useMemo(()=>({dense:s||b.dense||!1,disableGutters:c}),[b.dense,s,c]),x=u.useRef(null);hn(()=>{o&&x.current&&x.current.focus()},[o]);const C=P({},r,{dense:g.dense,divider:a,disableGutters:c}),E=zJ(r),w=Ht(x,n);let S;return r.disabled||(S=h!==void 0?h:-1),M.jsx(Pi.Provider,{value:g,children:M.jsx(jJ,P({ref:w,role:p,tabIndex:S,component:i,focusVisibleClassName:pe(E.focusVisible,d),className:pe(E.root,m)},v,{ownerState:C,classes:E}))})}),ur=HJ;function VJ(e){return Ze("MuiNativeSelect",e)}const UJ=Ye("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ix=UJ,WJ=["className","disabled","error","IconComponent","inputRef","variant"],GJ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return Ie(a,VJ,t)},bO=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ix.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),KJ=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ao,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ix.multiple}`]:t.multiple}]}})(bO),wO=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ix.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),qJ=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(wO),YJ=u.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:c="standard"}=t,d=se(t,WJ),p=P({},t,{disabled:o,variant:c,error:i}),h=GJ(p);return M.jsxs(u.Fragment,{children:[M.jsx(KJ,P({ownerState:p,className:pe(h.select,r),disabled:o,ref:a||n},d)),t.multiple?null:M.jsx(qJ,{as:s,ownerState:p,className:h.icon})]})}),XJ=YJ;var OI;const QJ=["children","classes","className","label","notched"],JJ=oe("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ZJ=oe("legend")(({ownerState:e,theme:t})=>P({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&P({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function eZ(e){const{className:t,label:n,notched:r}=e,o=se(e,QJ),i=n!=null&&n!=="",s=P({},e,{notched:r,withLabel:i});return M.jsx(JJ,P({"aria-hidden":!0,className:t,ownerState:s},o,{children:M.jsx(ZJ,{ownerState:s,children:i?M.jsx("span",{children:n}):OI||(OI=M.jsx("span",{className:"notranslate",children:"​"}))})}))}const tZ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nZ=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},MK,t);return P({},t,r)},rZ=oe(Rv,{shouldForwardProp:e=>Ao(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Tv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Di.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Di.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Di.focused} .${Di.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Di.error} .${Di.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Di.disabled} .${Di.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),oZ=oe(eZ,{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}}),iZ=oe(Ov,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Mv})(({theme:e,ownerState:t})=>P({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})),CO=u.forwardRef(function(t,n){var r,o,i,s,a;const c=nt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:v=!1,notched:b,slots:g={},type:x="text"}=c,C=se(c,tZ),E=nZ(c),w=Gs(),S=Ya({props:c,muiFormControl:w,states:["required"]}),k=P({},c,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:p,hiddenLabel:S.hiddenLabel,multiline:v,size:S.size,type:x}),_=(r=(o=g.root)!=null?o:d.Root)!=null?r:rZ,I=(i=(s=g.input)!=null?s:d.Input)!=null?i:iZ;return M.jsx(zu,P({slots:{root:_,input:I},renderSuffix:T=>M.jsx(oZ,{ownerState:k,className:E.notchedOutline,label:m!=null&&m!==""&&S.required?a||(a=M.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof b!="undefined"?b:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:p,inputComponent:h,multiline:v,ref:n,type:x},C,{classes:P({},E,{notchedOutline:null})}))});CO.muiName="Input";const xO=CO,LI=Re(M.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),AI=Re(M.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function sZ(e){return Ze("MuiSelect",e)}const lZ=Ye("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$d=lZ;var FI;const aZ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],cZ=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${$d.select}`]:t.select},{[`&.${$d.select}`]:t[n.variant]},{[`&.${$d.error}`]:t.error},{[`&.${$d.multiple}`]:t.multiple}]}})(bO,{[`&.${$d.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uZ=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(wO),dZ=oe("input",{shouldForwardProp:e=>D7(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 NI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function fZ(e){return e==null||typeof e=="string"&&!e.trim()}const pZ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(a,sZ,t)},hZ=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,error:v=!1,IconComponent:b,inputRef:g,labelId:x,MenuProps:C={},multiple:E,name:w,onBlur:S,onChange:k,onClose:_,onFocus:I,onOpen:T,open:O,readOnly:R,renderValue:A,SelectDisplayProps:V={},tabIndex:B,value:L,variant:F="standard"}=t,j=se(t,aZ),[G,N]=Rs({controlled:L,default:p,name:"Select"}),[z,W]=Rs({controlled:O,default:d,name:"Select"}),q=u.useRef(null),X=u.useRef(null),[ie,J]=u.useState(null),{current:fe}=u.useRef(O!=null),[Q,le]=u.useState(),ne=Ht(n,g),he=u.useCallback(Ne=>{X.current=Ne,Ne&&J(Ne)},[]),be=ie==null?void 0:ie.parentNode;u.useImperativeHandle(ne,()=>({focus:()=>{X.current.focus()},node:q.current,value:G}),[G]),u.useEffect(()=>{d&&z&&ie&&!fe&&(le(s?null:be.clientWidth),X.current.focus())},[ie,s]),u.useEffect(()=>{i&&X.current.focus()},[i]),u.useEffect(()=>{if(!x)return;const Ne=Cn(X.current).getElementById(x);if(Ne){const Ue=()=>{getSelection().isCollapsed&&X.current.focus()};return Ne.addEventListener("click",Ue),()=>{Ne.removeEventListener("click",Ue)}}},[x]);const ge=(Ne,Ue)=>{Ne?T&&T(Ue):_&&_(Ue),fe||(le(s?null:be.clientWidth),W(Ne))},$e=Ne=>{Ne.button===0&&(Ne.preventDefault(),X.current.focus(),ge(!0,Ne))},ze=Ne=>{ge(!1,Ne)},Ae=u.Children.toArray(a),re=Ne=>{const Ue=Ae.map(Le=>Le.props.value).indexOf(Ne.target.value);if(Ue===-1)return;const Se=Ae[Ue];N(Se.props.value),k&&k(Ne,Se)},Oe=Ne=>Ue=>{let Se;if(Ue.currentTarget.hasAttribute("tabindex")){if(E){Se=Array.isArray(G)?G.slice():[];const Le=G.indexOf(Ne.props.value);Le===-1?Se.push(Ne.props.value):Se.splice(Le,1)}else Se=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(Ue),G!==Se&&(N(Se),k)){const Le=Ue.nativeEvent||Ue,We=new Le.constructor(Le.type,Le);Object.defineProperty(We,"target",{writable:!0,value:{value:Se,name:w}}),k(We,Ne)}E||ge(!1,Ue)}},ve=Ne=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},je=ie!==null&&z,ot=Ne=>{!je&&S&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:G,name:w}}),S(Ne))};delete j["aria-invalid"];let pt,Je;const bt=[];let lt=!1;(tx({value:G})||m)&&(A?pt=A(G):lt=!0);const mt=Ae.map(Ne=>{if(!u.isValidElement(Ne))return null;let Ue;if(E){if(!Array.isArray(G))throw new Error(Bl(2));Ue=G.some(Se=>NI(Se,Ne.props.value)),Ue&&lt&&bt.push(Ne.props.children)}else Ue=NI(G,Ne.props.value),Ue&&lt&&(Je=Ne.props.children);return u.cloneElement(Ne,{"aria-selected":Ue?"true":"false",onClick:Oe(Ne),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(Se)},role:"option",selected:Ue,value:void 0,"data-value":Ne.props.value})});lt&&(E?bt.length===0?pt=null:pt=bt.reduce((Ne,Ue,Se)=>(Ne.push(Ue),Se<bt.length-1&&Ne.push(", "),Ne),[]):pt=Je);let ht=Q;!s&&fe&&ie&&(ht=be.clientWidth);let ut;typeof B!="undefined"?ut=B:ut=h?null:0;const Ke=V.id||(w?`mui-component-select-${w}`:void 0),_e=P({},t,{variant:F,value:G,open:je,error:v}),Te=pZ(_e);return M.jsxs(u.Fragment,{children:[M.jsx(cZ,P({ref:he,tabIndex:ut,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":je?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[x,Ke].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ve,onMouseDown:h||R?null:$e,onBlur:ot,onFocus:I},V,{ownerState:_e,className:pe(V.className,Te.select,c),id:Ke,children:fZ(pt)?FI||(FI=M.jsx("span",{className:"notranslate",children:"​"})):pt})),M.jsx(dZ,P({"aria-invalid":v,value:Array.isArray(G)?G.join(","):G,name:w,ref:q,"aria-hidden":!0,onChange:re,tabIndex:-1,disabled:h,className:Te.nativeInput,autoFocus:i,ownerState:_e},j)),M.jsx(uZ,{as:b,className:Te.icon,ownerState:_e}),M.jsx(yO,P({id:`menu-${w||""}`,anchorEl:be,open:je,onClose:ze,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:P({"aria-labelledby":x,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:P({},C.PaperProps,{style:P({minWidth:ht},C.PaperProps!=null?C.PaperProps.style:null)}),children:mt}))]})}),mZ=hZ,gZ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vZ=e=>{const{classes:t}=e;return t},sx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ao(e)&&e!=="variant",slot:"Root"},yZ=oe(fO,sx)(""),bZ=oe(xO,sx)(""),wZ=oe(oO,sx)(""),SO=u.forwardRef(function(t,n){const r=nt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=WR,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:x,multiple:C=!1,native:E=!1,onClose:w,onOpen:S,open:k,renderValue:_,SelectDisplayProps:I,variant:T="outlined"}=r,O=se(r,gZ),R=E?XJ:mZ,A=Gs(),V=Ya({props:r,muiFormControl:A,states:["variant","error"]}),B=V.variant||T,L=P({},r,{variant:B,classes:s}),F=vZ(L),j=m||{standard:M.jsx(yZ,{ownerState:L}),outlined:M.jsx(bZ,{label:b,ownerState:L}),filled:M.jsx(wZ,{ownerState:L})}[B],G=Ht(n,j.ref);return M.jsx(u.Fragment,{children:u.cloneElement(j,P({inputComponent:R,inputProps:P({children:i,error:V.error,IconComponent:p,variant:B,type:void 0,multiple:C},E?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:g,MenuProps:x,onClose:w,onOpen:S,open:k,renderValue:_,SelectDisplayProps:P({id:h},I)},v,{classes:v?Zo(F,v.classes):F},m?m.props.inputProps:{})},C&&E&&B==="outlined"?{notched:!0}:{},{ref:G,className:pe(j.props.className,a)},!m&&{variant:B},O))})});SO.muiName="Select";const lx=SO;function CZ(e){return Ze("MuiSkeleton",e)}Ye("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const xZ=["animation","className","component","height","style","variant","width"];let sg=e=>e,DI,BI,zI,jI;const SZ=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return Ie({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},CZ,t)},EZ=rs(DI||(DI=sg`
243
+ 0% {
244
+ opacity: 1;
245
+ }
246
+
247
+ 50% {
248
+ opacity: 0.4;
249
+ }
250
+
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ `)),PZ=rs(BI||(BI=sg`
255
+ 0% {
256
+ transform: translateX(-100%);
257
+ }
258
+
259
+ 50% {
260
+ /* +0.5s of delay between each loop */
261
+ transform: translateX(100%);
262
+ }
263
+
264
+ 100% {
265
+ transform: translateX(100%);
266
+ }
267
+ `)),kZ=oe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=A7(e.shape.borderRadius)||"px",r=F7(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ct(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&jl(zI||(zI=sg`
268
+ animation: ${0} 1.5s ease-in-out 0.5s infinite;
269
+ `),EZ),({ownerState:e,theme:t})=>e.animation==="wave"&&jl(jI||(jI=sg`
270
+ position: relative;
271
+ overflow: hidden;
272
+
273
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
274
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
275
+
276
+ &::after {
277
+ animation: ${0} 1.6s linear 0.5s infinite;
278
+ background: linear-gradient(
279
+ 90deg,
280
+ transparent,
281
+ ${0},
282
+ transparent
283
+ );
284
+ content: '';
285
+ position: absolute;
286
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
287
+ bottom: 0;
288
+ left: 0;
289
+ right: 0;
290
+ top: 0;
291
+ }
292
+ `),PZ,(t.vars||t).palette.action.hover)),IZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=se(r,xZ),m=P({},r,{animation:o,component:s,variant:d,hasChildren:!!h.children}),v=SZ(m);return M.jsx(kZ,P({as:s,ref:n,className:pe(v.root,i),ownerState:m},h,{style:P({width:p,height:a},c)}))}),_Z=IZ;function $Z(e){return Ze("MuiTooltip",e)}const TZ=Ye("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cl=TZ,MZ=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function RZ(e){return Math.round(e*1e5)/1e5}const OZ=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${ce(i.split("-")[0])}`],arrow:["arrow"]};return Ie(s,$Z,t)},LZ=oe(qa,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Cl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cl.arrow}`]:P({},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"] .${Cl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),AZ=oe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ce(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ct(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${RZ(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cl.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Cl.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Cl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Cl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),FZ=oe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ct(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Hh=!1,f1=null,Td={x:0,y:0};function Vh(e,t){return n=>{t&&t(n),e(n)}}const NZ=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,v,b,g,x,C,E,w,S,k;const _=nt({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:T,components:O={},componentsProps:R={},describeChild:A=!1,disableFocusListener:V=!1,disableHoverListener:B=!1,disableInteractive:L=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:G=0,enterTouchDelay:N=700,followCursor:z=!1,id:W,leaveDelay:q=0,leaveTouchDelay:X=1500,onClose:ie,onOpen:J,open:fe,placement:Q="bottom",PopperComponent:le,PopperProps:ne={},slotProps:he={},slots:be={},title:ge,TransitionComponent:$e=rg,TransitionProps:ze}=_,Ae=se(_,MZ),re=so(),Oe=re.direction==="rtl",[ve,je]=u.useState(),[ot,pt]=u.useState(null),Je=u.useRef(!1),bt=L||z,lt=u.useRef(),mt=u.useRef(),ht=u.useRef(),ut=u.useRef(),[Ke,_e]=Rs({controlled:fe,default:!1,name:"Tooltip",state:"open"});let Te=Ke;const Ne=On(W),Ue=u.useRef(),Se=u.useCallback(()=>{Ue.current!==void 0&&(document.body.style.WebkitUserSelect=Ue.current,Ue.current=void 0),clearTimeout(ut.current)},[]);u.useEffect(()=>()=>{clearTimeout(lt.current),clearTimeout(mt.current),clearTimeout(ht.current),Se()},[Se]);const Le=Ct=>{clearTimeout(f1),Hh=!0,_e(!0),J&&!Te&&J(Ct)},We=pn(Ct=>{clearTimeout(f1),f1=setTimeout(()=>{Hh=!1},800+q),_e(!1),ie&&Te&&ie(Ct),clearTimeout(lt.current),lt.current=setTimeout(()=>{Je.current=!1},re.transitions.duration.shortest)}),at=Ct=>{Je.current&&Ct.type!=="touchstart"||(ve&&ve.removeAttribute("title"),clearTimeout(mt.current),clearTimeout(ht.current),j||Hh&&G?mt.current=setTimeout(()=>{Le(Ct)},Hh?G:j):Le(Ct))},Ot=Ct=>{clearTimeout(mt.current),clearTimeout(ht.current),ht.current=setTimeout(()=>{We(Ct)},q)},{isFocusVisibleRef:sn,onBlur:gn,onFocus:Hn,ref:br}=kC(),[,wr]=u.useState(!1),Or=Ct=>{gn(Ct),sn.current===!1&&(wr(!1),Ot(Ct))},Nn=Ct=>{ve||je(Ct.currentTarget),Hn(Ct),sn.current===!0&&(wr(!0),at(Ct))},ln=Ct=>{Je.current=!0;const rr=T.props;rr.onTouchStart&&rr.onTouchStart(Ct)},Kn=at,ss=Ot,Mi=Ct=>{ln(Ct),clearTimeout(ht.current),clearTimeout(lt.current),Se(),Ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ut.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ue.current,at(Ct)},N)},ls=Ct=>{T.props.onTouchEnd&&T.props.onTouchEnd(Ct),Se(),clearTimeout(ht.current),ht.current=setTimeout(()=>{We(Ct)},X)};u.useEffect(()=>{if(!Te)return;function Ct(rr){(rr.key==="Escape"||rr.key==="Esc")&&We(rr)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[We,Te]);const as=Ht(T.ref,br,je,n);!ge&&ge!==0&&(Te=!1);const ae=u.useRef(),ye=Ct=>{const rr=T.props;rr.onMouseMove&&rr.onMouseMove(Ct),Td={x:Ct.clientX,y:Ct.clientY},ae.current&&ae.current.update()},Fe={},dt=typeof ge=="string";A?(Fe.title=!Te&&dt&&!B?ge:null,Fe["aria-describedby"]=Te?Ne:null):(Fe["aria-label"]=dt?ge:null,Fe["aria-labelledby"]=Te&&!dt?Ne:null);const st=P({},Fe,Ae,T.props,{className:pe(Ae.className,T.props.className),onTouchStart:ln,ref:as},z?{onMouseMove:ye}:{}),He={};F||(st.onTouchStart=Mi,st.onTouchEnd=ls),B||(st.onMouseOver=Vh(Kn,st.onMouseOver),st.onMouseLeave=Vh(ss,st.onMouseLeave),bt||(He.onMouseOver=Kn,He.onMouseLeave=ss)),V||(st.onFocus=Vh(Nn,st.onFocus),st.onBlur=Vh(Or,st.onBlur),bt||(He.onFocus=Nn,He.onBlur=Or));const wt=u.useMemo(()=>{var Ct;let rr=[{name:"arrow",enabled:!!ot,options:{element:ot,padding:4}}];return(Ct=ne.popperOptions)!=null&&Ct.modifiers&&(rr=rr.concat(ne.popperOptions.modifiers)),P({},ne.popperOptions,{modifiers:rr})},[ot,ne]),jt=P({},_,{isRtl:Oe,arrow:I,disableInteractive:bt,placement:Q,PopperComponentProp:le,touch:Je.current}),xn=OZ(jt),lo=(r=(o=be.popper)!=null?o:O.Popper)!=null?r:LZ,Ce=(i=(s=(a=be.transition)!=null?a:O.Transition)!=null?s:$e)!=null?i:rg,me=(c=(d=be.tooltip)!=null?d:O.Tooltip)!=null?c:AZ,Ve=(p=(h=be.arrow)!=null?h:O.Arrow)!=null?p:FZ,ft=zd(lo,P({},ne,(m=he.popper)!=null?m:R.popper,{className:pe(xn.popper,ne==null?void 0:ne.className,(v=(b=he.popper)!=null?b:R.popper)==null?void 0:v.className)}),jt),Vt=zd(Ce,P({},ze,(g=he.transition)!=null?g:R.transition),jt),In=zd(me,P({},(x=he.tooltip)!=null?x:R.tooltip,{className:pe(xn.tooltip,(C=(E=he.tooltip)!=null?E:R.tooltip)==null?void 0:C.className)}),jt),_n=zd(Ve,P({},(w=he.arrow)!=null?w:R.arrow,{className:pe(xn.arrow,(S=(k=he.arrow)!=null?k:R.arrow)==null?void 0:S.className)}),jt);return M.jsxs(u.Fragment,{children:[u.cloneElement(T,st),M.jsx(lo,P({as:le!=null?le:qa,placement:Q,anchorEl:z?{getBoundingClientRect:()=>({top:Td.y,left:Td.x,right:Td.x,bottom:Td.y,width:0,height:0})}:ve,popperRef:ae,open:ve?Te:!1,id:Ne,transition:!0},He,ft,{popperOptions:wt,children:({TransitionProps:Ct})=>M.jsx(Ce,P({timeout:re.transitions.duration.shorter},Ct,Vt,{children:M.jsxs(me,P({},In,{children:[ge,I?M.jsx(Ve,P({},_n,{ref:pt})):null]}))}))}))]})}),Vu=NZ;function DZ(e){return Ze("MuiSwitch",e)}const BZ=Ye("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kr=BZ,zZ=["className","color","edge","size","sx"],jZ=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${ce(n)}`,`size${ce(r)}`],switchBase:["switchBase",`color${ce(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ie(a,DZ,t);return P({},t,c)},HZ=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({ownerState:e})=>P({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,[`& .${kr.thumb}`]:{width:16,height:16},[`& .${kr.switchBase}`]:{padding:4,[`&.${kr.checked}`]:{transform:"translateX(16px)"}}})),VZ=oe(JR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${kr.input}`]:t.input},n.color!=="default"&&t[`color${ce(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}),[`&.${kr.checked}`]:{transform:"translateX(20px)"},[`&.${kr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kr.checked} + .${kr.track}`]:{opacity:.5},[`&.${kr.disabled} + .${kr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ct(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Bs(e.palette[t.color].main,.62):Ds(e.palette[t.color].main,.55)}`}},[`&.${kr.checked} + .${kr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),UZ=oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),WZ=oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),GZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=se(r,zZ),p=P({},r,{color:i,edge:s,size:a}),h=jZ(p),m=M.jsx(WZ,{className:h.thumb,ownerState:p});return M.jsxs(HZ,{className:pe(h.root,o),sx:c,ownerState:p,children:[M.jsx(VZ,P({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:P({},h,{root:h.switchBase})})),M.jsx(UZ,{className:h.track,ownerState:p})]})}),EO=GZ;function KZ(e){return Ze("MuiTab",e)}const qZ=Ye("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),la=qZ,YZ=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],XZ=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,d={root:["root",i&&s&&"labelIcon",`textColor${ce(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ie(d,KZ,t)},QZ=oe(ts,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ce(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},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,[`& > .${la.iconWrapper}`]:P({},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,[`&.${la.selected}`]:{opacity:1},[`&.${la.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${la.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${la.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${la.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${la.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)})),JZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:d="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:b,selected:g,selectionFollowsFocus:x,textColor:C="inherit",value:E,wrapped:w=!1}=r,S=se(r,YZ),k=P({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:C,wrapped:w}),_=XZ(k),I=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:pe(_.iconWrapper,c.props.className)}):c,T=R=>{!g&&m&&m(R,E),v&&v(R)},O=R=>{x&&!g&&m&&m(R,E),b&&b(R)};return M.jsxs(QZ,P({focusRipple:!s,className:pe(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:T,onFocus:O,ownerState:k,tabIndex:g?0:-1},S,{children:[d==="top"||d==="start"?M.jsxs(u.Fragment,{children:[I,h]}):M.jsxs(u.Fragment,{children:[h,I]}),p]}))}),PO=JZ,ZZ=u.createContext(),eee=ZZ,tee=u.createContext(),nee=tee;function ree(e){return Ze("MuiTableCell",e)}const oee=Ye("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),iee=oee,see=["align","className","component","padding","scope","size","sortDirection","variant"],lee=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return Ie(a,ree,t)},aee=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
293
+ ${e.palette.mode==="light"?Bs(ct(e.palette.divider,1),.88):Ds(ct(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${iee.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})),cee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=se(r,see),v=u.useContext(eee),b=u.useContext(nee),g=b&&b.variant==="head";let x;s?x=s:x=g?"th":"td";let C=c;x==="td"?C=void 0:!C&&g&&(C="col");const E=h||b&&b.variant,w=P({},r,{align:o,component:x,padding:a||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:E==="head"&&v&&v.stickyHeader,variant:E}),S=lee(w);let k=null;return p&&(k=p==="asc"?"ascending":"descending"),M.jsx(aee,P({as:x,ref:n,className:pe(S.root,i),"aria-sort":k,scope:C,ownerState:w},m))}),Kb=cee;function uee(e){return Ze("MuiToolbar",e)}Ye("MuiToolbar",["root","gutters","regular","dense"]);const dee=["className","component","disableGutters","variant"],fee=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ie({root:["root",!n&&"gutters",r]},uee,t)},pee=oe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({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),hee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=se(r,dee),d=P({},r,{component:i,disableGutters:s,variant:a}),p=fee(d);return M.jsx(pee,P({as:i,className:pe(p.root,o),ref:n,ownerState:d},c))}),kO=hee,qb=Re(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yb=Re(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var HI,VI,UI,WI,GI,KI,qI,YI;const mee=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],gee=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:d,showFirstButton:p,showLastButton:h}=t,m=se(t,mee),v=so(),b=E=>{a(E,0)},g=E=>{a(E,c-1)},x=E=>{a(E,c+1)},C=E=>{a(E,Math.max(0,Math.ceil(o/d)-1))};return M.jsxs("div",P({ref:n},m,{children:[p&&M.jsx(lr,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?HI||(HI=M.jsx(AI,{})):VI||(VI=M.jsx(LI,{}))}),M.jsx(lr,P({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?UI||(UI=M.jsx(Yb,{})):WI||(WI=M.jsx(qb,{}))})),M.jsx(lr,P({onClick:x,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?GI||(GI=M.jsx(qb,{})):KI||(KI=M.jsx(Yb,{}))})),h&&M.jsx(lr,{onClick:C,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?qI||(qI=M.jsx(LI,{})):YI||(YI=M.jsx(AI,{}))})]}))}),vee=gee;function yee(e){return Ze("MuiTablePagination",e)}const bee=Ye("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ea=bee;var XI;const wee=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Cee=oe(Kb,{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}})),xee=oe(kO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${Ea.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},[`& .${Ea.actions}`]:{flexShrink:0,marginLeft:20}})),See=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Eee=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),Pee=oe(lx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${Ea.selectIcon}`]:t.selectIcon,[`& .${Ea.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ea.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),kee=oe(ur,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Iee=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function _ee({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function $ee(e){return`Go to ${e} page`}const Tee=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"]},yee,t)},Mee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=vee,backIconButtonProps:i,className:s,colSpan:a,component:c=Kb,count:d,getItemAriaLabel:p=$ee,labelDisplayedRows:h=_ee,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:x,rowsPerPage:C,rowsPerPageOptions:E=[10,25,50,100],SelectProps:w={},showFirstButton:S=!1,showLastButton:k=!1}=r,_=se(r,wee),I=r,T=Tee(I),O=w.native?"option":kee;let R;(c===Kb||c==="td")&&(R=a||1e3);const A=On(w.id),V=On(w.labelId),B=()=>d===-1?(x+1)*C:C===-1?d:Math.min(d,(x+1)*C);return M.jsx(Cee,P({colSpan:R,ref:n,as:c,ownerState:I,className:pe(T.root,s)},_,{children:M.jsxs(xee,{className:T.toolbar,children:[M.jsx(See,{className:T.spacer}),E.length>1&&M.jsx(Eee,{className:T.selectLabel,id:V,children:m}),E.length>1&&M.jsx(Pee,P({variant:"standard"},!w.variant&&{input:XI||(XI=M.jsx(zu,{}))},{value:C,onChange:g,id:A,labelId:V},w,{classes:P({},w.classes,{root:pe(T.input,T.selectRoot,(w.classes||{}).root),select:pe(T.select,(w.classes||{}).select),icon:pe(T.selectIcon,(w.classes||{}).icon)}),children:E.map(L=>u.createElement(O,P({},!Aa(O)&&{ownerState:I},{className:T.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),M.jsx(Iee,{className:T.displayedRows,children:h({from:d===0?0:x*C+1,to:B(),count:d===-1?-1:d,page:x})}),M.jsx(o,{className:T.actions,backIconButtonProps:i,count:d,nextIconButtonProps:v,onPageChange:b,page:x,rowsPerPage:C,showFirstButton:S,showLastButton:k,getItemAriaLabel:p})]})}))}),Ree=Mee;function Oee(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Lee(e,t,n,r={},o=()=>{}){const{ease:i=Oee,duration:s=300}=r;let a=null;const c=t[e];let d=!1;const p=()=>{d=!0},h=m=>{if(d){o(new Error("Animation cancelled"));return}a===null&&(a=m);const 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 Aee=["onChange"],Fee={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Nee(e){const{onChange:t}=e,n=se(e,Aee),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return hn(()=>{const s=zl(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=_o(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),M.jsx("div",P({style:Fee,ref:o},n))}function Dee(e){return Ze("MuiTabScrollButton",e)}const Bee=Ye("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zee=Bee,jee=["className","slots","slotProps","direction","orientation","disabled"],Hee=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ie({root:["root",n,r&&"disabled"]},Dee,t)},Vee=oe(ts,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${zee.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Uee=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:d}=i,p=se(i,jee),m=so().direction==="rtl",v=P({isRtl:m},i),b=Hee(v),g=(r=a.StartScrollButtonIcon)!=null?r:qb,x=(o=a.EndScrollButtonIcon)!=null?o:Yb,C=zs({elementType:g,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),E=zs({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return M.jsx(Vee,P({component:"div",className:pe(b.root,s),ref:n,role:null,ownerState:v,tabIndex:null},p,{children:d==="left"?M.jsx(g,P({},C)):M.jsx(x,P({},E))}))}),Wee=Uee;function Gee(e){return Ze("MuiTabs",e)}const Kee=Ye("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),p1=Kee,qee=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],QI=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,JI=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uh=(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}}},Yee=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"]},Gee,c)},Xee=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${p1.scrollButtons}`]:t.scrollButtons},{[`& .${p1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${p1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Qee=oe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({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"})),Jee=oe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Zee=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({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})),ete=oe(Nee,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ZI={},tte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabs"}),o=so(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:x="horizontal",ScrollButtonComponent:C=Wee,scrollButtons:E="auto",selectionFollowsFocus:w,slots:S={},slotProps:k={},TabIndicatorProps:_={},TabScrollButtonProps:I={},textColor:T="primary",value:O,variant:R="standard",visibleScrollbar:A=!1}=r,V=se(r,qee),B=R==="scrollable",L=x==="vertical",F=L?"scrollTop":"scrollLeft",j=L?"top":"left",G=L?"bottom":"right",N=L?"clientHeight":"clientWidth",z=L?"height":"width",W=P({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:x,vertical:L,scrollButtons:E,textColor:T,variant:R,visibleScrollbar:A,fixed:!B,hideScrollbar:B&&!A,scrollableX:B&&!L,scrollableY:B&&L,centered:d&&!B,scrollButtonsHideMobile:!v}),q=Yee(W),X=zs({elementType:S.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:W}),ie=zs({elementType:S.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:W}),[J,fe]=u.useState(!1),[Q,le]=u.useState(ZI),[ne,he]=u.useState({start:!1,end:!1}),[be,ge]=u.useState({overflow:"hidden",scrollbarWidth:0}),$e=new Map,ze=u.useRef(null),Ae=u.useRef(null),re=()=>{const Se=ze.current;let Le;if(Se){const at=Se.getBoundingClientRect();Le={clientWidth:Se.clientWidth,scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop,scrollLeftNormalized:f2(Se,o.direction),scrollWidth:Se.scrollWidth,top:at.top,bottom:at.bottom,left:at.left,right:at.right}}let We;if(Se&&O!==!1){const at=Ae.current.children;if(at.length>0){const Ot=at[$e.get(O)];We=Ot?Ot.getBoundingClientRect():null}}return{tabsMeta:Le,tabMeta:We}},Oe=pn(()=>{const{tabsMeta:Se,tabMeta:Le}=re();let We=0,at;if(L)at="top",Le&&Se&&(We=Le.top-Se.top+Se.scrollTop);else if(at=i?"right":"left",Le&&Se){const sn=i?Se.scrollLeftNormalized+Se.clientWidth-Se.scrollWidth:Se.scrollLeft;We=(i?-1:1)*(Le[at]-Se[at]+sn)}const Ot={[at]:We,[z]:Le?Le[z]:0};if(isNaN(Q[at])||isNaN(Q[z]))le(Ot);else{const sn=Math.abs(Q[at]-Ot[at]),gn=Math.abs(Q[z]-Ot[z]);(sn>=1||gn>=1)&&le(Ot)}}),ve=(Se,{animation:Le=!0}={})=>{Le?Lee(F,ze.current,Se,{duration:o.transitions.duration.standard}):ze.current[F]=Se},je=Se=>{let Le=ze.current[F];L?Le+=Se:(Le+=Se*(i?-1:1),Le*=i&&qM()==="reverse"?-1:1),ve(Le)},ot=()=>{const Se=ze.current[N];let Le=0;const We=Array.from(Ae.current.children);for(let at=0;at<We.length;at+=1){const Ot=We[at];if(Le+Ot[N]>Se){at===0&&(Le=Se);break}Le+=Ot[N]}return Le},pt=()=>{je(-1*ot())},Je=()=>{je(ot())},bt=u.useCallback(Se=>{ge({overflow:null,scrollbarWidth:Se})},[]),lt=()=>{const Se={};Se.scrollbarSizeListener=B?M.jsx(ete,{onChange:bt,className:pe(q.scrollableX,q.hideScrollbar)}):null;const Le=ne.start||ne.end,We=B&&(E==="auto"&&Le||E===!0);return Se.scrollButtonStart=We?M.jsx(C,P({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:x,direction:i?"right":"left",onClick:pt,disabled:!ne.start},I,{className:pe(q.scrollButtons,I.className)})):null,Se.scrollButtonEnd=We?M.jsx(C,P({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ie},orientation:x,direction:i?"left":"right",onClick:Je,disabled:!ne.end},I,{className:pe(q.scrollButtons,I.className)})):null,Se},mt=pn(Se=>{const{tabsMeta:Le,tabMeta:We}=re();if(!(!We||!Le)){if(We[j]<Le[j]){const at=Le[F]+(We[j]-Le[j]);ve(at,{animation:Se})}else if(We[G]>Le[G]){const at=Le[F]+(We[G]-Le[G]);ve(at,{animation:Se})}}}),ht=pn(()=>{if(B&&E!==!1){const{scrollTop:Se,scrollHeight:Le,clientHeight:We,scrollWidth:at,clientWidth:Ot}=ze.current;let sn,gn;if(L)sn=Se>1,gn=Se<Le-We-1;else{const Hn=f2(ze.current,o.direction);sn=i?Hn<at-Ot-1:Hn>1,gn=i?Hn>1:Hn<at-Ot-1}(sn!==ne.start||gn!==ne.end)&&he({start:sn,end:gn})}});u.useEffect(()=>{const Se=zl(()=>{ze.current&&(Oe(),ht())}),Le=_o(ze.current);Le.addEventListener("resize",Se);let We;return typeof ResizeObserver!="undefined"&&(We=new ResizeObserver(Se),Array.from(Ae.current.children).forEach(at=>{We.observe(at)})),()=>{Se.clear(),Le.removeEventListener("resize",Se),We&&We.disconnect()}},[Oe,ht]);const ut=u.useMemo(()=>zl(()=>{ht()}),[ht]);u.useEffect(()=>()=>{ut.clear()},[ut]),u.useEffect(()=>{fe(!0)},[]),u.useEffect(()=>{Oe(),ht()}),u.useEffect(()=>{mt(ZI!==Q)},[mt,Q]),u.useImperativeHandle(c,()=>({updateIndicator:Oe,updateScrollButtons:ht}),[Oe,ht]);const Ke=M.jsx(Zee,P({},_,{className:pe(q.indicator,_.className),ownerState:W,style:P({},Q,_.style)}));let _e=0;const Te=u.Children.map(p,Se=>{if(!u.isValidElement(Se))return null;const Le=Se.props.value===void 0?_e:Se.props.value;$e.set(Le,_e);const We=Le===O;return _e+=1,u.cloneElement(Se,P({fullWidth:R==="fullWidth",indicator:We&&!J&&Ke,selected:We,selectionFollowsFocus:w,onChange:g,textColor:T,value:Le},_e===1&&O===!1&&!Se.props.tabIndex?{tabIndex:0}:{}))}),Ne=Se=>{const Le=Ae.current,We=Cn(Le).activeElement;if(We.getAttribute("role")!=="tab")return;let Ot=x==="horizontal"?"ArrowLeft":"ArrowUp",sn=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&i&&(Ot="ArrowRight",sn="ArrowLeft"),Se.key){case Ot:Se.preventDefault(),Uh(Le,We,JI);break;case sn:Se.preventDefault(),Uh(Le,We,QI);break;case"Home":Se.preventDefault(),Uh(Le,null,QI);break;case"End":Se.preventDefault(),Uh(Le,null,JI);break}},Ue=lt();return M.jsxs(Xee,P({className:pe(q.root,h),ownerState:W,ref:n,as:m},V,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,M.jsxs(Qee,{className:q.scroller,ownerState:W,style:{overflow:be.overflow,[L?`margin${i?"Left":"Right"}`:"marginBottom"]:A?void 0:-be.scrollbarWidth},ref:ze,onScroll:ut,children:[M.jsx(Jee,{"aria-label":s,"aria-labelledby":a,"aria-orientation":x==="vertical"?"vertical":null,className:q.flexContainer,ownerState:W,onKeyDown:Ne,ref:Ae,role:"tablist",children:Te}),J&&Ke]}),Ue.scrollButtonEnd]}))}),IO=tte;function nte(e){return Ze("MuiTextField",e)}Ye("MuiTextField",["root"]);const rte=["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"],ote={standard:fO,filled:oO,outlined:xO},ite=e=>{const{classes:t}=e;return Ie({root:["root"]},nte,t)},ste=oe(Xa,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:b,id:g,InputLabelProps:x,inputProps:C,InputProps:E,inputRef:w,label:S,maxRows:k,minRows:_,multiline:I=!1,name:T,onBlur:O,onChange:R,onFocus:A,placeholder:V,required:B=!1,rows:L,select:F=!1,SelectProps:j,type:G,value:N,variant:z="outlined"}=r,W=se(r,rte),q=P({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:I,required:B,select:F,variant:z}),X=ite(q),ie={};z==="outlined"&&(x&&typeof x.shrink!="undefined"&&(ie.notched=x.shrink),ie.label=S),F&&((!j||!j.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const J=On(g),fe=b&&J?`${J}-helper-text`:void 0,Q=S&&J?`${J}-label`:void 0,le=ote[z],ne=M.jsx(le,P({"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:v,multiline:I,name:T,rows:L,maxRows:k,minRows:_,type:G,value:N,id:J,inputRef:w,onBlur:O,onChange:R,onFocus:A,placeholder:V,inputProps:C},ie,E));return M.jsxs(ste,P({className:pe(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:B,color:c,variant:z,ownerState:q},W,{children:[S!=null&&S!==""&&M.jsx(Wb,P({htmlFor:J,id:Q},x,{children:S})),F?M.jsx(lx,P({"aria-describedby":fe,id:J,labelId:Q,value:N,input:ne},j,{children:s})):ne,b&&M.jsx(Av,P({id:fe},m,{children:b}))]}))}),fp=lte,ate=Re(M.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),ax=Re(M.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),cte=Re(M.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),ute=Re(M.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"),h1=Re(M.jsx("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated"),_O=Re(M.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),dte=Re(M.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"),fte=Re(M.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Bv=Re(M.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"),pte=Re(M.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"),hte=Re(M.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),mte=Re(M.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"),os=Re(M.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"),gte=Re(M.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),$O=Re(M.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"),vte=Re(M.jsx("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),cx=Re(M.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error"),yte=Re(M.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),bte=Re(M.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"),wte=Re(M.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"),Cte=Re(M.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"),xte=Re(M.jsx("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward"),TO=Re(M.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"),Ste=Re(M.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"),Ete=Re(M.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"),Pte=Re(M.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),lg=Re(M.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"),kte=Re(M.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"),Ite=Re(M.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"),MO=Re(M.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"),RO=Re(M.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"),_te=Re([M.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),M.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"),$te=Re(M.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Tte=Re(M.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"),Mte=Re(M.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"),Rte=Re(M.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"),Ote=Re(M.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"),Lte=Re(M.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"),ux=Re(M.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"),Ate=Re(M.jsx("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew"),Fte=Re(M.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"),dx=Re(M.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"),Nte=Re(M.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"),OO=Re(M.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"),Dte=Re(M.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"),LO=Re(M.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"),e_=Re(M.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"),Bte=Re([M.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"),M.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"),zte=Re(M.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"),jte=Re(M.jsx("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade"),zv=Re(M.jsx("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload"),Hte=Re(M.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),fx=Re(M.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),Vte=Re(M.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");var ag={exports:{}};/**
294
+ * @license
295
+ * Lodash <https://lodash.com/>
296
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
297
+ * Released under MIT license <https://lodash.com/license>
298
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
299
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
300
+ */ag.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,g=2,x=1,C=2,E=4,w=8,S=16,k=32,_=64,I=128,T=256,O=512,R=30,A="...",V=800,B=16,L=1,F=2,j=3,G=1/0,N=9007199254740991,z=17976931348623157e292,W=0/0,q=4294967295,X=q-1,ie=q>>>1,J=[["ary",I],["bind",x],["bindKey",C],["curry",w],["curryRight",S],["flip",O],["partial",k],["partialRight",_],["rearg",T]],fe="[object Arguments]",Q="[object Array]",le="[object AsyncFunction]",ne="[object Boolean]",he="[object Date]",be="[object DOMException]",ge="[object Error]",$e="[object Function]",ze="[object GeneratorFunction]",Ae="[object Map]",re="[object Number]",Oe="[object Null]",ve="[object Object]",je="[object Promise]",ot="[object Proxy]",pt="[object RegExp]",Je="[object Set]",bt="[object String]",lt="[object Symbol]",mt="[object Undefined]",ht="[object WeakMap]",ut="[object WeakSet]",Ke="[object ArrayBuffer]",_e="[object DataView]",Te="[object Float32Array]",Ne="[object Float64Array]",Ue="[object Int8Array]",Se="[object Int16Array]",Le="[object Int32Array]",We="[object Uint8Array]",at="[object Uint8ClampedArray]",Ot="[object Uint16Array]",sn="[object Uint32Array]",gn=/\b__p \+= '';/g,Hn=/\b(__p \+=) '' \+/g,br=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wr=/&(?:amp|lt|gt|quot|#39);/g,Or=/[&<>"']/g,Nn=RegExp(wr.source),ln=RegExp(Or.source),Kn=/<%-([\s\S]+?)%>/g,ss=/<%([\s\S]+?)%>/g,Mi=/<%=([\s\S]+?)%>/g,ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(ye.source),dt=/^\s+/,st=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,jt=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lo=/[()=,{}\[\]\/\s]/,Ce=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,In=/^\[object .+?Constructor\]$/,_n=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$p=/($^)/,SF=/['\n\r\u2028\u2029\\]/g,Tp="\\ud800-\\udfff",EF="\\u0300-\\u036f",PF="\\ufe20-\\ufe2f",kF="\\u20d0-\\u20ff",vS=EF+PF+kF,yS="\\u2700-\\u27bf",bS="a-z\\xdf-\\xf6\\xf8-\\xff",IF="\\xac\\xb1\\xd7\\xf7",_F="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$F="\\u2000-\\u206f",TF=" \\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",wS="A-Z\\xc0-\\xd6\\xd8-\\xde",CS="\\ufe0e\\ufe0f",xS=IF+_F+$F+TF,hy="['’]",MF="["+Tp+"]",SS="["+xS+"]",Mp="["+vS+"]",ES="\\d+",RF="["+yS+"]",PS="["+bS+"]",kS="[^"+Tp+xS+ES+yS+bS+wS+"]",my="\\ud83c[\\udffb-\\udfff]",OF="(?:"+Mp+"|"+my+")",IS="[^"+Tp+"]",gy="(?:\\ud83c[\\udde6-\\uddff]){2}",vy="[\\ud800-\\udbff][\\udc00-\\udfff]",rc="["+wS+"]",_S="\\u200d",$S="(?:"+PS+"|"+kS+")",LF="(?:"+rc+"|"+kS+")",TS="(?:"+hy+"(?:d|ll|m|re|s|t|ve))?",MS="(?:"+hy+"(?:D|LL|M|RE|S|T|VE))?",RS=OF+"?",OS="["+CS+"]?",AF="(?:"+_S+"(?:"+[IS,gy,vy].join("|")+")"+OS+RS+")*",FF="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",NF="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LS=OS+RS+AF,DF="(?:"+[RF,gy,vy].join("|")+")"+LS,BF="(?:"+[IS+Mp+"?",Mp,gy,vy,MF].join("|")+")",zF=RegExp(hy,"g"),jF=RegExp(Mp,"g"),yy=RegExp(my+"(?="+my+")|"+BF+LS,"g"),HF=RegExp([rc+"?"+PS+"+"+TS+"(?="+[SS,rc,"$"].join("|")+")",LF+"+"+MS+"(?="+[SS,rc+$S,"$"].join("|")+")",rc+"?"+$S+"+"+TS,rc+"+"+MS,NF,FF,ES,DF].join("|"),"g"),VF=RegExp("["+_S+Tp+vS+CS+"]"),UF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WF=["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"],GF=-1,vn={};vn[Te]=vn[Ne]=vn[Ue]=vn[Se]=vn[Le]=vn[We]=vn[at]=vn[Ot]=vn[sn]=!0,vn[fe]=vn[Q]=vn[Ke]=vn[ne]=vn[_e]=vn[he]=vn[ge]=vn[$e]=vn[Ae]=vn[re]=vn[ve]=vn[pt]=vn[Je]=vn[bt]=vn[ht]=!1;var un={};un[fe]=un[Q]=un[Ke]=un[_e]=un[ne]=un[he]=un[Te]=un[Ne]=un[Ue]=un[Se]=un[Le]=un[Ae]=un[re]=un[ve]=un[pt]=un[Je]=un[bt]=un[lt]=un[We]=un[at]=un[Ot]=un[sn]=!0,un[ge]=un[$e]=un[ht]=!1;var KF={À:"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"},qF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},YF={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},XF={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QF=parseFloat,JF=parseInt,AS=typeof bn=="object"&&bn&&bn.Object===Object&&bn,ZF=typeof self=="object"&&self&&self.Object===Object&&self,pr=AS||ZF||Function("return this")(),by=t&&!t.nodeType&&t,Jl=by&&!0&&e&&!e.nodeType&&e,FS=Jl&&Jl.exports===by,wy=FS&&AS.process,No=function(){try{var Z=Jl&&Jl.require&&Jl.require("util").types;return Z||wy&&wy.binding&&wy.binding("util")}catch(we){}}(),NS=No&&No.isArrayBuffer,DS=No&&No.isDate,BS=No&&No.isMap,zS=No&&No.isRegExp,jS=No&&No.isSet,HS=No&&No.isTypedArray;function ao(Z,we,de){switch(de.length){case 0:return Z.call(we);case 1:return Z.call(we,de[0]);case 2:return Z.call(we,de[0],de[1]);case 3:return Z.call(we,de[0],de[1],de[2])}return Z.apply(we,de)}function eN(Z,we,de,Ge){for(var Et=-1,Kt=Z==null?0:Z.length;++Et<Kt;){var Jn=Z[Et];we(Ge,Jn,de(Jn),Z)}return Ge}function Do(Z,we){for(var de=-1,Ge=Z==null?0:Z.length;++de<Ge&&we(Z[de],de,Z)!==!1;);return Z}function tN(Z,we){for(var de=Z==null?0:Z.length;de--&&we(Z[de],de,Z)!==!1;);return Z}function VS(Z,we){for(var de=-1,Ge=Z==null?0:Z.length;++de<Ge;)if(!we(Z[de],de,Z))return!1;return!0}function qs(Z,we){for(var de=-1,Ge=Z==null?0:Z.length,Et=0,Kt=[];++de<Ge;){var Jn=Z[de];we(Jn,de,Z)&&(Kt[Et++]=Jn)}return Kt}function Rp(Z,we){var de=Z==null?0:Z.length;return!!de&&oc(Z,we,0)>-1}function Cy(Z,we,de){for(var Ge=-1,Et=Z==null?0:Z.length;++Ge<Et;)if(de(we,Z[Ge]))return!0;return!1}function Sn(Z,we){for(var de=-1,Ge=Z==null?0:Z.length,Et=Array(Ge);++de<Ge;)Et[de]=we(Z[de],de,Z);return Et}function Ys(Z,we){for(var de=-1,Ge=we.length,Et=Z.length;++de<Ge;)Z[Et+de]=we[de];return Z}function xy(Z,we,de,Ge){var Et=-1,Kt=Z==null?0:Z.length;for(Ge&&Kt&&(de=Z[++Et]);++Et<Kt;)de=we(de,Z[Et],Et,Z);return de}function nN(Z,we,de,Ge){var Et=Z==null?0:Z.length;for(Ge&&Et&&(de=Z[--Et]);Et--;)de=we(de,Z[Et],Et,Z);return de}function Sy(Z,we){for(var de=-1,Ge=Z==null?0:Z.length;++de<Ge;)if(we(Z[de],de,Z))return!0;return!1}var rN=Ey("length");function oN(Z){return Z.split("")}function iN(Z){return Z.match(xn)||[]}function US(Z,we,de){var Ge;return de(Z,function(Et,Kt,Jn){if(we(Et,Kt,Jn))return Ge=Kt,!1}),Ge}function Op(Z,we,de,Ge){for(var Et=Z.length,Kt=de+(Ge?1:-1);Ge?Kt--:++Kt<Et;)if(we(Z[Kt],Kt,Z))return Kt;return-1}function oc(Z,we,de){return we===we?vN(Z,we,de):Op(Z,WS,de)}function sN(Z,we,de,Ge){for(var Et=de-1,Kt=Z.length;++Et<Kt;)if(Ge(Z[Et],we))return Et;return-1}function WS(Z){return Z!==Z}function GS(Z,we){var de=Z==null?0:Z.length;return de?ky(Z,we)/de:W}function Ey(Z){return function(we){return we==null?n:we[Z]}}function Py(Z){return function(we){return Z==null?n:Z[we]}}function KS(Z,we,de,Ge,Et){return Et(Z,function(Kt,Jn,an){de=Ge?(Ge=!1,Kt):we(de,Kt,Jn,an)}),de}function lN(Z,we){var de=Z.length;for(Z.sort(we);de--;)Z[de]=Z[de].value;return Z}function ky(Z,we){for(var de,Ge=-1,Et=Z.length;++Ge<Et;){var Kt=we(Z[Ge]);Kt!==n&&(de=de===n?Kt:de+Kt)}return de}function Iy(Z,we){for(var de=-1,Ge=Array(Z);++de<Z;)Ge[de]=we(de);return Ge}function aN(Z,we){return Sn(we,function(de){return[de,Z[de]]})}function qS(Z){return Z&&Z.slice(0,JS(Z)+1).replace(dt,"")}function co(Z){return function(we){return Z(we)}}function _y(Z,we){return Sn(we,function(de){return Z[de]})}function Zu(Z,we){return Z.has(we)}function YS(Z,we){for(var de=-1,Ge=Z.length;++de<Ge&&oc(we,Z[de],0)>-1;);return de}function XS(Z,we){for(var de=Z.length;de--&&oc(we,Z[de],0)>-1;);return de}function cN(Z,we){for(var de=Z.length,Ge=0;de--;)Z[de]===we&&++Ge;return Ge}var uN=Py(KF),dN=Py(qF);function fN(Z){return"\\"+XF[Z]}function pN(Z,we){return Z==null?n:Z[we]}function ic(Z){return VF.test(Z)}function hN(Z){return UF.test(Z)}function mN(Z){for(var we,de=[];!(we=Z.next()).done;)de.push(we.value);return de}function $y(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(Ge,Et){de[++we]=[Et,Ge]}),de}function QS(Z,we){return function(de){return Z(we(de))}}function Xs(Z,we){for(var de=-1,Ge=Z.length,Et=0,Kt=[];++de<Ge;){var Jn=Z[de];(Jn===we||Jn===p)&&(Z[de]=p,Kt[Et++]=de)}return Kt}function Lp(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(Ge){de[++we]=Ge}),de}function gN(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(Ge){de[++we]=[Ge,Ge]}),de}function vN(Z,we,de){for(var Ge=de-1,Et=Z.length;++Ge<Et;)if(Z[Ge]===we)return Ge;return-1}function yN(Z,we,de){for(var Ge=de+1;Ge--;)if(Z[Ge]===we)return Ge;return Ge}function sc(Z){return ic(Z)?wN(Z):rN(Z)}function ui(Z){return ic(Z)?CN(Z):oN(Z)}function JS(Z){for(var we=Z.length;we--&&st.test(Z.charAt(we)););return we}var bN=Py(YF);function wN(Z){for(var we=yy.lastIndex=0;yy.test(Z);)++we;return we}function CN(Z){return Z.match(yy)||[]}function xN(Z){return Z.match(HF)||[]}var SN=function Z(we){we=we==null?pr:lc.defaults(pr.Object(),we,lc.pick(pr,WF));var de=we.Array,Ge=we.Date,Et=we.Error,Kt=we.Function,Jn=we.Math,an=we.Object,Ty=we.RegExp,EN=we.String,Bo=we.TypeError,Ap=de.prototype,PN=Kt.prototype,ac=an.prototype,Fp=we["__core-js_shared__"],Np=PN.toString,Zt=ac.hasOwnProperty,kN=0,ZS=function(){var l=/[^.]+$/.exec(Fp&&Fp.keys&&Fp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Dp=ac.toString,IN=Np.call(an),_N=pr._,$N=Ty("^"+Np.call(Zt).replace(ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bp=FS?we.Buffer:n,Qs=we.Symbol,zp=we.Uint8Array,eE=Bp?Bp.allocUnsafe:n,jp=QS(an.getPrototypeOf,an),tE=an.create,nE=ac.propertyIsEnumerable,Hp=Ap.splice,rE=Qs?Qs.isConcatSpreadable:n,ed=Qs?Qs.iterator:n,Zl=Qs?Qs.toStringTag:n,Vp=function(){try{var l=oa(an,"defineProperty");return l({},"",{}),l}catch(f){}}(),TN=we.clearTimeout!==pr.clearTimeout&&we.clearTimeout,MN=Ge&&Ge.now!==pr.Date.now&&Ge.now,RN=we.setTimeout!==pr.setTimeout&&we.setTimeout,Up=Jn.ceil,Wp=Jn.floor,My=an.getOwnPropertySymbols,ON=Bp?Bp.isBuffer:n,oE=we.isFinite,LN=Ap.join,AN=QS(an.keys,an),Zn=Jn.max,Cr=Jn.min,FN=Ge.now,NN=we.parseInt,iE=Jn.random,DN=Ap.reverse,Ry=oa(we,"DataView"),td=oa(we,"Map"),Oy=oa(we,"Promise"),cc=oa(we,"Set"),nd=oa(we,"WeakMap"),rd=oa(an,"create"),Gp=nd&&new nd,uc={},BN=ia(Ry),zN=ia(td),jN=ia(Oy),HN=ia(cc),VN=ia(nd),Kp=Qs?Qs.prototype:n,od=Kp?Kp.valueOf:n,sE=Kp?Kp.toString:n;function H(l){if(Dn(l)&&!Pt(l)&&!(l instanceof Nt)){if(l instanceof zo)return l;if(Zt.call(l,"__wrapped__"))return lP(l)}return new zo(l)}var dc=function(){function l(){}return function(f){if(!$n(f))return{};if(tE)return tE(f);l.prototype=f;var y=new l;return l.prototype=n,y}}();function qp(){}function zo(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}H.templateSettings={escape:Kn,evaluate:ss,interpolate:Mi,variable:"",imports:{_:H}},H.prototype=qp.prototype,H.prototype.constructor=H,zo.prototype=dc(qp.prototype),zo.prototype.constructor=zo;function Nt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function UN(){var l=new Nt(this.__wrapped__);return l.__actions__=Vr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Vr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Vr(this.__views__),l}function WN(){if(this.__filtered__){var l=new Nt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function GN(){var l=this.__wrapped__.value(),f=this.__dir__,y=Pt(l),$=f<0,D=y?l.length:0,U=oD(0,D,this.__views__),K=U.start,Y=U.end,te=Y-K,xe=$?Y:K-1,Ee=this.__iteratees__,Pe=Ee.length,Be=0,it=Cr(te,this.__takeCount__);if(!y||!$&&D==te&&it==te)return TE(l,this.__actions__);var vt=[];e:for(;te--&&Be<it;){xe+=f;for(var Tt=-1,yt=l[xe];++Tt<Pe;){var Lt=Ee[Tt],zt=Lt.iteratee,po=Lt.type,Fr=zt(yt);if(po==F)yt=Fr;else if(!Fr){if(po==L)continue e;break e}}vt[Be++]=yt}return vt}Nt.prototype=dc(qp.prototype),Nt.prototype.constructor=Nt;function ea(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function KN(){this.__data__=rd?rd(null):{},this.size=0}function qN(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function YN(l){var f=this.__data__;if(rd){var y=f[l];return y===c?n:y}return Zt.call(f,l)?f[l]:n}function XN(l){var f=this.__data__;return rd?f[l]!==n:Zt.call(f,l)}function QN(l,f){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=rd&&f===n?c:f,this}ea.prototype.clear=KN,ea.prototype.delete=qN,ea.prototype.get=YN,ea.prototype.has=XN,ea.prototype.set=QN;function cs(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function JN(){this.__data__=[],this.size=0}function ZN(l){var f=this.__data__,y=Yp(f,l);if(y<0)return!1;var $=f.length-1;return y==$?f.pop():Hp.call(f,y,1),--this.size,!0}function e4(l){var f=this.__data__,y=Yp(f,l);return y<0?n:f[y][1]}function t4(l){return Yp(this.__data__,l)>-1}function n4(l,f){var y=this.__data__,$=Yp(y,l);return $<0?(++this.size,y.push([l,f])):y[$][1]=f,this}cs.prototype.clear=JN,cs.prototype.delete=ZN,cs.prototype.get=e4,cs.prototype.has=t4,cs.prototype.set=n4;function us(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function r4(){this.size=0,this.__data__={hash:new ea,map:new(td||cs),string:new ea}}function o4(l){var f=lh(this,l).delete(l);return this.size-=f?1:0,f}function i4(l){return lh(this,l).get(l)}function s4(l){return lh(this,l).has(l)}function l4(l,f){var y=lh(this,l),$=y.size;return y.set(l,f),this.size+=y.size==$?0:1,this}us.prototype.clear=r4,us.prototype.delete=o4,us.prototype.get=i4,us.prototype.has=s4,us.prototype.set=l4;function ta(l){var f=-1,y=l==null?0:l.length;for(this.__data__=new us;++f<y;)this.add(l[f])}function a4(l){return this.__data__.set(l,c),this}function c4(l){return this.__data__.has(l)}ta.prototype.add=ta.prototype.push=a4,ta.prototype.has=c4;function di(l){var f=this.__data__=new cs(l);this.size=f.size}function u4(){this.__data__=new cs,this.size=0}function d4(l){var f=this.__data__,y=f.delete(l);return this.size=f.size,y}function f4(l){return this.__data__.get(l)}function p4(l){return this.__data__.has(l)}function h4(l,f){var y=this.__data__;if(y instanceof cs){var $=y.__data__;if(!td||$.length<o-1)return $.push([l,f]),this.size=++y.size,this;y=this.__data__=new us($)}return y.set(l,f),this.size=y.size,this}di.prototype.clear=u4,di.prototype.delete=d4,di.prototype.get=f4,di.prototype.has=p4,di.prototype.set=h4;function lE(l,f){var y=Pt(l),$=!y&&sa(l),D=!y&&!$&&nl(l),U=!y&&!$&&!D&&mc(l),K=y||$||D||U,Y=K?Iy(l.length,EN):[],te=Y.length;for(var xe in l)(f||Zt.call(l,xe))&&!(K&&(xe=="length"||D&&(xe=="offset"||xe=="parent")||U&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||hs(xe,te)))&&Y.push(xe);return Y}function aE(l){var f=l.length;return f?l[Uy(0,f-1)]:n}function m4(l,f){return ah(Vr(l),na(f,0,l.length))}function g4(l){return ah(Vr(l))}function Ly(l,f,y){(y!==n&&!fi(l[f],y)||y===n&&!(f in l))&&ds(l,f,y)}function id(l,f,y){var $=l[f];(!(Zt.call(l,f)&&fi($,y))||y===n&&!(f in l))&&ds(l,f,y)}function Yp(l,f){for(var y=l.length;y--;)if(fi(l[y][0],f))return y;return-1}function v4(l,f,y,$){return Js(l,function(D,U,K){f($,D,y(D),K)}),$}function cE(l,f){return l&&Oi(f,or(f),l)}function y4(l,f){return l&&Oi(f,Wr(f),l)}function ds(l,f,y){f=="__proto__"&&Vp?Vp(l,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[f]=y}function Ay(l,f){for(var y=-1,$=f.length,D=de($),U=l==null;++y<$;)D[y]=U?n:m0(l,f[y]);return D}function na(l,f,y){return l===l&&(y!==n&&(l=l<=y?l:y),f!==n&&(l=l>=f?l:f)),l}function jo(l,f,y,$,D,U){var K,Y=f&h,te=f&m,xe=f&v;if(y&&(K=D?y(l,$,D,U):y(l)),K!==n)return K;if(!$n(l))return l;var Ee=Pt(l);if(Ee){if(K=sD(l),!Y)return Vr(l,K)}else{var Pe=xr(l),Be=Pe==$e||Pe==ze;if(nl(l))return OE(l,Y);if(Pe==ve||Pe==fe||Be&&!D){if(K=te||Be?{}:JE(l),!Y)return te?Y4(l,y4(K,l)):q4(l,cE(K,l))}else{if(!un[Pe])return D?l:{};K=lD(l,Pe,Y)}}U||(U=new di);var it=U.get(l);if(it)return it;U.set(l,K),IP(l)?l.forEach(function(yt){K.add(jo(yt,f,y,yt,l,U))}):PP(l)&&l.forEach(function(yt,Lt){K.set(Lt,jo(yt,f,y,Lt,l,U))});var vt=xe?te?t0:e0:te?Wr:or,Tt=Ee?n:vt(l);return Do(Tt||l,function(yt,Lt){Tt&&(Lt=yt,yt=l[Lt]),id(K,Lt,jo(yt,f,y,Lt,l,U))}),K}function b4(l){var f=or(l);return function(y){return uE(y,l,f)}}function uE(l,f,y){var $=y.length;if(l==null)return!$;for(l=an(l);$--;){var D=y[$],U=f[D],K=l[D];if(K===n&&!(D in l)||!U(K))return!1}return!0}function dE(l,f,y){if(typeof l!="function")throw new Bo(s);return fd(function(){l.apply(n,y)},f)}function sd(l,f,y,$){var D=-1,U=Rp,K=!0,Y=l.length,te=[],xe=f.length;if(!Y)return te;y&&(f=Sn(f,co(y))),$?(U=Cy,K=!1):f.length>=o&&(U=Zu,K=!1,f=new ta(f));e:for(;++D<Y;){var Ee=l[D],Pe=y==null?Ee:y(Ee);if(Ee=$||Ee!==0?Ee:0,K&&Pe===Pe){for(var Be=xe;Be--;)if(f[Be]===Pe)continue e;te.push(Ee)}else U(f,Pe,$)||te.push(Ee)}return te}var Js=DE(Ri),fE=DE(Ny,!0);function w4(l,f){var y=!0;return Js(l,function($,D,U){return y=!!f($,D,U),y}),y}function Xp(l,f,y){for(var $=-1,D=l.length;++$<D;){var U=l[$],K=f(U);if(K!=null&&(Y===n?K===K&&!fo(K):y(K,Y)))var Y=K,te=U}return te}function C4(l,f,y,$){var D=l.length;for(y=_t(y),y<0&&(y=-y>D?0:D+y),$=$===n||$>D?D:_t($),$<0&&($+=D),$=y>$?0:$P($);y<$;)l[y++]=f;return l}function pE(l,f){var y=[];return Js(l,function($,D,U){f($,D,U)&&y.push($)}),y}function hr(l,f,y,$,D){var U=-1,K=l.length;for(y||(y=cD),D||(D=[]);++U<K;){var Y=l[U];f>0&&y(Y)?f>1?hr(Y,f-1,y,$,D):Ys(D,Y):$||(D[D.length]=Y)}return D}var Fy=BE(),hE=BE(!0);function Ri(l,f){return l&&Fy(l,f,or)}function Ny(l,f){return l&&hE(l,f,or)}function Qp(l,f){return qs(f,function(y){return ms(l[y])})}function ra(l,f){f=el(f,l);for(var y=0,$=f.length;l!=null&&y<$;)l=l[Li(f[y++])];return y&&y==$?l:n}function mE(l,f,y){var $=f(l);return Pt(l)?$:Ys($,y(l))}function Lr(l){return l==null?l===n?mt:Oe:Zl&&Zl in an(l)?rD(l):gD(l)}function Dy(l,f){return l>f}function x4(l,f){return l!=null&&Zt.call(l,f)}function S4(l,f){return l!=null&&f in an(l)}function E4(l,f,y){return l>=Cr(f,y)&&l<Zn(f,y)}function By(l,f,y){for(var $=y?Cy:Rp,D=l[0].length,U=l.length,K=U,Y=de(U),te=1/0,xe=[];K--;){var Ee=l[K];K&&f&&(Ee=Sn(Ee,co(f))),te=Cr(Ee.length,te),Y[K]=!y&&(f||D>=120&&Ee.length>=120)?new ta(K&&Ee):n}Ee=l[0];var Pe=-1,Be=Y[0];e:for(;++Pe<D&&xe.length<te;){var it=Ee[Pe],vt=f?f(it):it;if(it=y||it!==0?it:0,!(Be?Zu(Be,vt):$(xe,vt,y))){for(K=U;--K;){var Tt=Y[K];if(!(Tt?Zu(Tt,vt):$(l[K],vt,y)))continue e}Be&&Be.push(vt),xe.push(it)}}return xe}function P4(l,f,y,$){return Ri(l,function(D,U,K){f($,y(D),U,K)}),$}function ld(l,f,y){f=el(f,l),l=nP(l,f);var $=l==null?l:l[Li(Vo(f))];return $==null?n:ao($,l,y)}function gE(l){return Dn(l)&&Lr(l)==fe}function k4(l){return Dn(l)&&Lr(l)==Ke}function I4(l){return Dn(l)&&Lr(l)==he}function ad(l,f,y,$,D){return l===f?!0:l==null||f==null||!Dn(l)&&!Dn(f)?l!==l&&f!==f:_4(l,f,y,$,ad,D)}function _4(l,f,y,$,D,U){var K=Pt(l),Y=Pt(f),te=K?Q:xr(l),xe=Y?Q:xr(f);te=te==fe?ve:te,xe=xe==fe?ve:xe;var Ee=te==ve,Pe=xe==ve,Be=te==xe;if(Be&&nl(l)){if(!nl(f))return!1;K=!0,Ee=!1}if(Be&&!Ee)return U||(U=new di),K||mc(l)?YE(l,f,y,$,D,U):tD(l,f,te,y,$,D,U);if(!(y&b)){var it=Ee&&Zt.call(l,"__wrapped__"),vt=Pe&&Zt.call(f,"__wrapped__");if(it||vt){var Tt=it?l.value():l,yt=vt?f.value():f;return U||(U=new di),D(Tt,yt,y,$,U)}}return Be?(U||(U=new di),nD(l,f,y,$,D,U)):!1}function $4(l){return Dn(l)&&xr(l)==Ae}function zy(l,f,y,$){var D=y.length,U=D,K=!$;if(l==null)return!U;for(l=an(l);D--;){var Y=y[D];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++D<U;){Y=y[D];var te=Y[0],xe=l[te],Ee=Y[1];if(K&&Y[2]){if(xe===n&&!(te in l))return!1}else{var Pe=new di;if($)var Be=$(xe,Ee,te,l,f,Pe);if(!(Be===n?ad(Ee,xe,b|g,$,Pe):Be))return!1}}return!0}function vE(l){if(!$n(l)||dD(l))return!1;var f=ms(l)?$N:In;return f.test(ia(l))}function T4(l){return Dn(l)&&Lr(l)==pt}function M4(l){return Dn(l)&&xr(l)==Je}function R4(l){return Dn(l)&&hh(l.length)&&!!vn[Lr(l)]}function yE(l){return typeof l=="function"?l:l==null?Gr:typeof l=="object"?Pt(l)?CE(l[0],l[1]):wE(l):zP(l)}function jy(l){if(!dd(l))return AN(l);var f=[];for(var y in an(l))Zt.call(l,y)&&y!="constructor"&&f.push(y);return f}function O4(l){if(!$n(l))return mD(l);var f=dd(l),y=[];for(var $ in l)$=="constructor"&&(f||!Zt.call(l,$))||y.push($);return y}function Hy(l,f){return l<f}function bE(l,f){var y=-1,$=Ur(l)?de(l.length):[];return Js(l,function(D,U,K){$[++y]=f(D,U,K)}),$}function wE(l){var f=r0(l);return f.length==1&&f[0][2]?eP(f[0][0],f[0][1]):function(y){return y===l||zy(y,l,f)}}function CE(l,f){return i0(l)&&ZE(f)?eP(Li(l),f):function(y){var $=m0(y,l);return $===n&&$===f?g0(y,l):ad(f,$,b|g)}}function Jp(l,f,y,$,D){l!==f&&Fy(f,function(U,K){if(D||(D=new di),$n(U))L4(l,f,K,y,Jp,$,D);else{var Y=$?$(l0(l,K),U,K+"",l,f,D):n;Y===n&&(Y=U),Ly(l,K,Y)}},Wr)}function L4(l,f,y,$,D,U,K){var Y=l0(l,y),te=l0(f,y),xe=K.get(te);if(xe){Ly(l,y,xe);return}var Ee=U?U(Y,te,y+"",l,f,K):n,Pe=Ee===n;if(Pe){var Be=Pt(te),it=!Be&&nl(te),vt=!Be&&!it&&mc(te);Ee=te,Be||it||vt?Pt(Y)?Ee=Y:Vn(Y)?Ee=Vr(Y):it?(Pe=!1,Ee=OE(te,!0)):vt?(Pe=!1,Ee=LE(te,!0)):Ee=[]:pd(te)||sa(te)?(Ee=Y,sa(Y)?Ee=TP(Y):(!$n(Y)||ms(Y))&&(Ee=JE(te))):Pe=!1}Pe&&(K.set(te,Ee),D(Ee,te,$,U,K),K.delete(te)),Ly(l,y,Ee)}function xE(l,f){var y=l.length;if(y)return f+=f<0?y:0,hs(f,y)?l[f]:n}function SE(l,f,y){f.length?f=Sn(f,function(U){return Pt(U)?function(K){return ra(K,U.length===1?U[0]:U)}:U}):f=[Gr];var $=-1;f=Sn(f,co(gt()));var D=bE(l,function(U,K,Y){var te=Sn(f,function(xe){return xe(U)});return{criteria:te,index:++$,value:U}});return lN(D,function(U,K){return K4(U,K,y)})}function A4(l,f){return EE(l,f,function(y,$){return g0(l,$)})}function EE(l,f,y){for(var $=-1,D=f.length,U={};++$<D;){var K=f[$],Y=ra(l,K);y(Y,K)&&cd(U,el(K,l),Y)}return U}function F4(l){return function(f){return ra(f,l)}}function Vy(l,f,y,$){var D=$?sN:oc,U=-1,K=f.length,Y=l;for(l===f&&(f=Vr(f)),y&&(Y=Sn(l,co(y)));++U<K;)for(var te=0,xe=f[U],Ee=y?y(xe):xe;(te=D(Y,Ee,te,$))>-1;)Y!==l&&Hp.call(Y,te,1),Hp.call(l,te,1);return l}function PE(l,f){for(var y=l?f.length:0,$=y-1;y--;){var D=f[y];if(y==$||D!==U){var U=D;hs(D)?Hp.call(l,D,1):Ky(l,D)}}return l}function Uy(l,f){return l+Wp(iE()*(f-l+1))}function N4(l,f,y,$){for(var D=-1,U=Zn(Up((f-l)/(y||1)),0),K=de(U);U--;)K[$?U:++D]=l,l+=y;return K}function Wy(l,f){var y="";if(!l||f<1||f>N)return y;do f%2&&(y+=l),f=Wp(f/2),f&&(l+=l);while(f);return y}function Mt(l,f){return a0(tP(l,f,Gr),l+"")}function D4(l){return aE(gc(l))}function B4(l,f){var y=gc(l);return ah(y,na(f,0,y.length))}function cd(l,f,y,$){if(!$n(l))return l;f=el(f,l);for(var D=-1,U=f.length,K=U-1,Y=l;Y!=null&&++D<U;){var te=Li(f[D]),xe=y;if(te==="__proto__"||te==="constructor"||te==="prototype")return l;if(D!=K){var Ee=Y[te];xe=$?$(Ee,te,Y):n,xe===n&&(xe=$n(Ee)?Ee:hs(f[D+1])?[]:{})}id(Y,te,xe),Y=Y[te]}return l}var kE=Gp?function(l,f){return Gp.set(l,f),l}:Gr,z4=Vp?function(l,f){return Vp(l,"toString",{configurable:!0,enumerable:!1,value:y0(f),writable:!0})}:Gr;function j4(l){return ah(gc(l))}function Ho(l,f,y){var $=-1,D=l.length;f<0&&(f=-f>D?0:D+f),y=y>D?D:y,y<0&&(y+=D),D=f>y?0:y-f>>>0,f>>>=0;for(var U=de(D);++$<D;)U[$]=l[$+f];return U}function H4(l,f){var y;return Js(l,function($,D,U){return y=f($,D,U),!y}),!!y}function Zp(l,f,y){var $=0,D=l==null?$:l.length;if(typeof f=="number"&&f===f&&D<=ie){for(;$<D;){var U=$+D>>>1,K=l[U];K!==null&&!fo(K)&&(y?K<=f:K<f)?$=U+1:D=U}return D}return Gy(l,f,Gr,y)}function Gy(l,f,y,$){var D=0,U=l==null?0:l.length;if(U===0)return 0;f=y(f);for(var K=f!==f,Y=f===null,te=fo(f),xe=f===n;D<U;){var Ee=Wp((D+U)/2),Pe=y(l[Ee]),Be=Pe!==n,it=Pe===null,vt=Pe===Pe,Tt=fo(Pe);if(K)var yt=$||vt;else xe?yt=vt&&($||Be):Y?yt=vt&&Be&&($||!it):te?yt=vt&&Be&&!it&&($||!Tt):it||Tt?yt=!1:yt=$?Pe<=f:Pe<f;yt?D=Ee+1:U=Ee}return Cr(U,X)}function IE(l,f){for(var y=-1,$=l.length,D=0,U=[];++y<$;){var K=l[y],Y=f?f(K):K;if(!y||!fi(Y,te)){var te=Y;U[D++]=K===0?0:K}}return U}function _E(l){return typeof l=="number"?l:fo(l)?W:+l}function uo(l){if(typeof l=="string")return l;if(Pt(l))return Sn(l,uo)+"";if(fo(l))return sE?sE.call(l):"";var f=l+"";return f=="0"&&1/l==-G?"-0":f}function Zs(l,f,y){var $=-1,D=Rp,U=l.length,K=!0,Y=[],te=Y;if(y)K=!1,D=Cy;else if(U>=o){var xe=f?null:Z4(l);if(xe)return Lp(xe);K=!1,D=Zu,te=new ta}else te=f?[]:Y;e:for(;++$<U;){var Ee=l[$],Pe=f?f(Ee):Ee;if(Ee=y||Ee!==0?Ee:0,K&&Pe===Pe){for(var Be=te.length;Be--;)if(te[Be]===Pe)continue e;f&&te.push(Pe),Y.push(Ee)}else D(te,Pe,y)||(te!==Y&&te.push(Pe),Y.push(Ee))}return Y}function Ky(l,f){return f=el(f,l),l=nP(l,f),l==null||delete l[Li(Vo(f))]}function $E(l,f,y,$){return cd(l,f,y(ra(l,f)),$)}function eh(l,f,y,$){for(var D=l.length,U=$?D:-1;($?U--:++U<D)&&f(l[U],U,l););return y?Ho(l,$?0:U,$?U+1:D):Ho(l,$?U+1:0,$?D:U)}function TE(l,f){var y=l;return y instanceof Nt&&(y=y.value()),xy(f,function($,D){return D.func.apply(D.thisArg,Ys([$],D.args))},y)}function qy(l,f,y){var $=l.length;if($<2)return $?Zs(l[0]):[];for(var D=-1,U=de($);++D<$;)for(var K=l[D],Y=-1;++Y<$;)Y!=D&&(U[D]=sd(U[D]||K,l[Y],f,y));return Zs(hr(U,1),f,y)}function ME(l,f,y){for(var $=-1,D=l.length,U=f.length,K={};++$<D;){var Y=$<U?f[$]:n;y(K,l[$],Y)}return K}function Yy(l){return Vn(l)?l:[]}function Xy(l){return typeof l=="function"?l:Gr}function el(l,f){return Pt(l)?l:i0(l,f)?[l]:sP(Xt(l))}var V4=Mt;function tl(l,f,y){var $=l.length;return y=y===n?$:y,!f&&y>=$?l:Ho(l,f,y)}var RE=TN||function(l){return pr.clearTimeout(l)};function OE(l,f){if(f)return l.slice();var y=l.length,$=eE?eE(y):new l.constructor(y);return l.copy($),$}function Qy(l){var f=new l.constructor(l.byteLength);return new zp(f).set(new zp(l)),f}function U4(l,f){var y=f?Qy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function W4(l){var f=new l.constructor(l.source,Ve.exec(l));return f.lastIndex=l.lastIndex,f}function G4(l){return od?an(od.call(l)):{}}function LE(l,f){var y=f?Qy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function AE(l,f){if(l!==f){var y=l!==n,$=l===null,D=l===l,U=fo(l),K=f!==n,Y=f===null,te=f===f,xe=fo(f);if(!Y&&!xe&&!U&&l>f||U&&K&&te&&!Y&&!xe||$&&K&&te||!y&&te||!D)return 1;if(!$&&!U&&!xe&&l<f||xe&&y&&D&&!$&&!U||Y&&y&&D||!K&&D||!te)return-1}return 0}function K4(l,f,y){for(var $=-1,D=l.criteria,U=f.criteria,K=D.length,Y=y.length;++$<K;){var te=AE(D[$],U[$]);if(te){if($>=Y)return te;var xe=y[$];return te*(xe=="desc"?-1:1)}}return l.index-f.index}function FE(l,f,y,$){for(var D=-1,U=l.length,K=y.length,Y=-1,te=f.length,xe=Zn(U-K,0),Ee=de(te+xe),Pe=!$;++Y<te;)Ee[Y]=f[Y];for(;++D<K;)(Pe||D<U)&&(Ee[y[D]]=l[D]);for(;xe--;)Ee[Y++]=l[D++];return Ee}function NE(l,f,y,$){for(var D=-1,U=l.length,K=-1,Y=y.length,te=-1,xe=f.length,Ee=Zn(U-Y,0),Pe=de(Ee+xe),Be=!$;++D<Ee;)Pe[D]=l[D];for(var it=D;++te<xe;)Pe[it+te]=f[te];for(;++K<Y;)(Be||D<U)&&(Pe[it+y[K]]=l[D++]);return Pe}function Vr(l,f){var y=-1,$=l.length;for(f||(f=de($));++y<$;)f[y]=l[y];return f}function Oi(l,f,y,$){var D=!y;y||(y={});for(var U=-1,K=f.length;++U<K;){var Y=f[U],te=$?$(y[Y],l[Y],Y,y,l):n;te===n&&(te=l[Y]),D?ds(y,Y,te):id(y,Y,te)}return y}function q4(l,f){return Oi(l,o0(l),f)}function Y4(l,f){return Oi(l,XE(l),f)}function th(l,f){return function(y,$){var D=Pt(y)?eN:v4,U=f?f():{};return D(y,l,gt($,2),U)}}function fc(l){return Mt(function(f,y){var $=-1,D=y.length,U=D>1?y[D-1]:n,K=D>2?y[2]:n;for(U=l.length>3&&typeof U=="function"?(D--,U):n,K&&Ar(y[0],y[1],K)&&(U=D<3?n:U,D=1),f=an(f);++$<D;){var Y=y[$];Y&&l(f,Y,$,U)}return f})}function DE(l,f){return function(y,$){if(y==null)return y;if(!Ur(y))return l(y,$);for(var D=y.length,U=f?D:-1,K=an(y);(f?U--:++U<D)&&$(K[U],U,K)!==!1;);return y}}function BE(l){return function(f,y,$){for(var D=-1,U=an(f),K=$(f),Y=K.length;Y--;){var te=K[l?Y:++D];if(y(U[te],te,U)===!1)break}return f}}function X4(l,f,y){var $=f&x,D=ud(l);function U(){var K=this&&this!==pr&&this instanceof U?D:l;return K.apply($?y:this,arguments)}return U}function zE(l){return function(f){f=Xt(f);var y=ic(f)?ui(f):n,$=y?y[0]:f.charAt(0),D=y?tl(y,1).join(""):f.slice(1);return $[l]()+D}}function pc(l){return function(f){return xy(DP(NP(f).replace(zF,"")),l,"")}}function ud(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=dc(l.prototype),$=l.apply(y,f);return $n($)?$:y}}function Q4(l,f,y){var $=ud(l);function D(){for(var U=arguments.length,K=de(U),Y=U,te=hc(D);Y--;)K[Y]=arguments[Y];var xe=U<3&&K[0]!==te&&K[U-1]!==te?[]:Xs(K,te);if(U-=xe.length,U<y)return WE(l,f,nh,D.placeholder,n,K,xe,n,n,y-U);var Ee=this&&this!==pr&&this instanceof D?$:l;return ao(Ee,this,K)}return D}function jE(l){return function(f,y,$){var D=an(f);if(!Ur(f)){var U=gt(y,3);f=or(f),y=function(Y){return U(D[Y],Y,D)}}var K=l(f,y,$);return K>-1?D[U?f[K]:K]:n}}function HE(l){return ps(function(f){var y=f.length,$=y,D=zo.prototype.thru;for(l&&f.reverse();$--;){var U=f[$];if(typeof U!="function")throw new Bo(s);if(D&&!K&&sh(U)=="wrapper")var K=new zo([],!0)}for($=K?$:y;++$<y;){U=f[$];var Y=sh(U),te=Y=="wrapper"?n0(U):n;te&&s0(te[0])&&te[1]==(I|w|k|T)&&!te[4].length&&te[9]==1?K=K[sh(te[0])].apply(K,te[3]):K=U.length==1&&s0(U)?K[Y]():K.thru(U)}return function(){var xe=arguments,Ee=xe[0];if(K&&xe.length==1&&Pt(Ee))return K.plant(Ee).value();for(var Pe=0,Be=y?f[Pe].apply(this,xe):Ee;++Pe<y;)Be=f[Pe].call(this,Be);return Be}})}function nh(l,f,y,$,D,U,K,Y,te,xe){var Ee=f&I,Pe=f&x,Be=f&C,it=f&(w|S),vt=f&O,Tt=Be?n:ud(l);function yt(){for(var Lt=arguments.length,zt=de(Lt),po=Lt;po--;)zt[po]=arguments[po];if(it)var Fr=hc(yt),ho=cN(zt,Fr);if($&&(zt=FE(zt,$,D,it)),U&&(zt=NE(zt,U,K,it)),Lt-=ho,it&&Lt<xe){var Un=Xs(zt,Fr);return WE(l,f,nh,yt.placeholder,y,zt,Un,Y,te,xe-Lt)}var pi=Pe?y:this,vs=Be?pi[l]:l;return Lt=zt.length,Y?zt=vD(zt,Y):vt&&Lt>1&&zt.reverse(),Ee&&te<Lt&&(zt.length=te),this&&this!==pr&&this instanceof yt&&(vs=Tt||ud(vs)),vs.apply(pi,zt)}return yt}function VE(l,f){return function(y,$){return P4(y,l,f($),{})}}function rh(l,f){return function(y,$){var D;if(y===n&&$===n)return f;if(y!==n&&(D=y),$!==n){if(D===n)return $;typeof y=="string"||typeof $=="string"?(y=uo(y),$=uo($)):(y=_E(y),$=_E($)),D=l(y,$)}return D}}function Jy(l){return ps(function(f){return f=Sn(f,co(gt())),Mt(function(y){var $=this;return l(f,function(D){return ao(D,$,y)})})})}function oh(l,f){f=f===n?" ":uo(f);var y=f.length;if(y<2)return y?Wy(f,l):f;var $=Wy(f,Up(l/sc(f)));return ic(f)?tl(ui($),0,l).join(""):$.slice(0,l)}function J4(l,f,y,$){var D=f&x,U=ud(l);function K(){for(var Y=-1,te=arguments.length,xe=-1,Ee=$.length,Pe=de(Ee+te),Be=this&&this!==pr&&this instanceof K?U:l;++xe<Ee;)Pe[xe]=$[xe];for(;te--;)Pe[xe++]=arguments[++Y];return ao(Be,D?y:this,Pe)}return K}function UE(l){return function(f,y,$){return $&&typeof $!="number"&&Ar(f,y,$)&&(y=$=n),f=gs(f),y===n?(y=f,f=0):y=gs(y),$=$===n?f<y?1:-1:gs($),N4(f,y,$,l)}}function ih(l){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Uo(f),y=Uo(y)),l(f,y)}}function WE(l,f,y,$,D,U,K,Y,te,xe){var Ee=f&w,Pe=Ee?K:n,Be=Ee?n:K,it=Ee?U:n,vt=Ee?n:U;f|=Ee?k:_,f&=~(Ee?_:k),f&E||(f&=~(x|C));var Tt=[l,f,D,it,Pe,vt,Be,Y,te,xe],yt=y.apply(n,Tt);return s0(l)&&rP(yt,Tt),yt.placeholder=$,oP(yt,l,f)}function Zy(l){var f=Jn[l];return function(y,$){if(y=Uo(y),$=$==null?0:Cr(_t($),292),$&&oE(y)){var D=(Xt(y)+"e").split("e"),U=f(D[0]+"e"+(+D[1]+$));return D=(Xt(U)+"e").split("e"),+(D[0]+"e"+(+D[1]-$))}return f(y)}}var Z4=cc&&1/Lp(new cc([,-0]))[1]==G?function(l){return new cc(l)}:C0;function GE(l){return function(f){var y=xr(f);return y==Ae?$y(f):y==Je?gN(f):aN(f,l(f))}}function fs(l,f,y,$,D,U,K,Y){var te=f&C;if(!te&&typeof l!="function")throw new Bo(s);var xe=$?$.length:0;if(xe||(f&=~(k|_),$=D=n),K=K===n?K:Zn(_t(K),0),Y=Y===n?Y:_t(Y),xe-=D?D.length:0,f&_){var Ee=$,Pe=D;$=D=n}var Be=te?n:n0(l),it=[l,f,y,$,D,Ee,Pe,U,K,Y];if(Be&&hD(it,Be),l=it[0],f=it[1],y=it[2],$=it[3],D=it[4],Y=it[9]=it[9]===n?te?0:l.length:Zn(it[9]-xe,0),!Y&&f&(w|S)&&(f&=~(w|S)),!f||f==x)var vt=X4(l,f,y);else f==w||f==S?vt=Q4(l,f,Y):(f==k||f==(x|k))&&!D.length?vt=J4(l,f,y,$):vt=nh.apply(n,it);var Tt=Be?kE:rP;return oP(Tt(vt,it),l,f)}function KE(l,f,y,$){return l===n||fi(l,ac[y])&&!Zt.call($,y)?f:l}function qE(l,f,y,$,D,U){return $n(l)&&$n(f)&&(U.set(f,l),Jp(l,f,n,qE,U),U.delete(f)),l}function eD(l){return pd(l)?n:l}function YE(l,f,y,$,D,U){var K=y&b,Y=l.length,te=f.length;if(Y!=te&&!(K&&te>Y))return!1;var xe=U.get(l),Ee=U.get(f);if(xe&&Ee)return xe==f&&Ee==l;var Pe=-1,Be=!0,it=y&g?new ta:n;for(U.set(l,f),U.set(f,l);++Pe<Y;){var vt=l[Pe],Tt=f[Pe];if($)var yt=K?$(Tt,vt,Pe,f,l,U):$(vt,Tt,Pe,l,f,U);if(yt!==n){if(yt)continue;Be=!1;break}if(it){if(!Sy(f,function(Lt,zt){if(!Zu(it,zt)&&(vt===Lt||D(vt,Lt,y,$,U)))return it.push(zt)})){Be=!1;break}}else if(!(vt===Tt||D(vt,Tt,y,$,U))){Be=!1;break}}return U.delete(l),U.delete(f),Be}function tD(l,f,y,$,D,U,K){switch(y){case _e:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Ke:return!(l.byteLength!=f.byteLength||!U(new zp(l),new zp(f)));case ne:case he:case re:return fi(+l,+f);case ge:return l.name==f.name&&l.message==f.message;case pt:case bt:return l==f+"";case Ae:var Y=$y;case Je:var te=$&b;if(Y||(Y=Lp),l.size!=f.size&&!te)return!1;var xe=K.get(l);if(xe)return xe==f;$|=g,K.set(l,f);var Ee=YE(Y(l),Y(f),$,D,U,K);return K.delete(l),Ee;case lt:if(od)return od.call(l)==od.call(f)}return!1}function nD(l,f,y,$,D,U){var K=y&b,Y=e0(l),te=Y.length,xe=e0(f),Ee=xe.length;if(te!=Ee&&!K)return!1;for(var Pe=te;Pe--;){var Be=Y[Pe];if(!(K?Be in f:Zt.call(f,Be)))return!1}var it=U.get(l),vt=U.get(f);if(it&&vt)return it==f&&vt==l;var Tt=!0;U.set(l,f),U.set(f,l);for(var yt=K;++Pe<te;){Be=Y[Pe];var Lt=l[Be],zt=f[Be];if($)var po=K?$(zt,Lt,Be,f,l,U):$(Lt,zt,Be,l,f,U);if(!(po===n?Lt===zt||D(Lt,zt,y,$,U):po)){Tt=!1;break}yt||(yt=Be=="constructor")}if(Tt&&!yt){var Fr=l.constructor,ho=f.constructor;Fr!=ho&&"constructor"in l&&"constructor"in f&&!(typeof Fr=="function"&&Fr instanceof Fr&&typeof ho=="function"&&ho instanceof ho)&&(Tt=!1)}return U.delete(l),U.delete(f),Tt}function ps(l){return a0(tP(l,n,uP),l+"")}function e0(l){return mE(l,or,o0)}function t0(l){return mE(l,Wr,XE)}var n0=Gp?function(l){return Gp.get(l)}:C0;function sh(l){for(var f=l.name+"",y=uc[f],$=Zt.call(uc,f)?y.length:0;$--;){var D=y[$],U=D.func;if(U==null||U==l)return D.name}return f}function hc(l){var f=Zt.call(H,"placeholder")?H:l;return f.placeholder}function gt(){var l=H.iteratee||b0;return l=l===b0?yE:l,arguments.length?l(arguments[0],arguments[1]):l}function lh(l,f){var y=l.__data__;return uD(f)?y[typeof f=="string"?"string":"hash"]:y.map}function r0(l){for(var f=or(l),y=f.length;y--;){var $=f[y],D=l[$];f[y]=[$,D,ZE(D)]}return f}function oa(l,f){var y=pN(l,f);return vE(y)?y:n}function rD(l){var f=Zt.call(l,Zl),y=l[Zl];try{l[Zl]=n;var $=!0}catch(U){}var D=Dp.call(l);return $&&(f?l[Zl]=y:delete l[Zl]),D}var o0=My?function(l){return l==null?[]:(l=an(l),qs(My(l),function(f){return nE.call(l,f)}))}:x0,XE=My?function(l){for(var f=[];l;)Ys(f,o0(l)),l=jp(l);return f}:x0,xr=Lr;(Ry&&xr(new Ry(new ArrayBuffer(1)))!=_e||td&&xr(new td)!=Ae||Oy&&xr(Oy.resolve())!=je||cc&&xr(new cc)!=Je||nd&&xr(new nd)!=ht)&&(xr=function(l){var f=Lr(l),y=f==ve?l.constructor:n,$=y?ia(y):"";if($)switch($){case BN:return _e;case zN:return Ae;case jN:return je;case HN:return Je;case VN:return ht}return f});function oD(l,f,y){for(var $=-1,D=y.length;++$<D;){var U=y[$],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":f-=K;break;case"take":f=Cr(f,l+K);break;case"takeRight":l=Zn(l,f-K);break}}return{start:l,end:f}}function iD(l){var f=l.match(wt);return f?f[1].split(jt):[]}function QE(l,f,y){f=el(f,l);for(var $=-1,D=f.length,U=!1;++$<D;){var K=Li(f[$]);if(!(U=l!=null&&y(l,K)))break;l=l[K]}return U||++$!=D?U:(D=l==null?0:l.length,!!D&&hh(D)&&hs(K,D)&&(Pt(l)||sa(l)))}function sD(l){var f=l.length,y=new l.constructor(f);return f&&typeof l[0]=="string"&&Zt.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function JE(l){return typeof l.constructor=="function"&&!dd(l)?dc(jp(l)):{}}function lD(l,f,y){var $=l.constructor;switch(f){case Ke:return Qy(l);case ne:case he:return new $(+l);case _e:return U4(l,y);case Te:case Ne:case Ue:case Se:case Le:case We:case at:case Ot:case sn:return LE(l,y);case Ae:return new $;case re:case bt:return new $(l);case pt:return W4(l);case Je:return new $;case lt:return G4(l)}}function aD(l,f){var y=f.length;if(!y)return l;var $=y-1;return f[$]=(y>1?"& ":"")+f[$],f=f.join(y>2?", ":" "),l.replace(He,`{
301
+ /* [wrapped with `+f+`] */
302
+ `)}function cD(l){return Pt(l)||sa(l)||!!(rE&&l&&l[rE])}function hs(l,f){var y=typeof l;return f=f==null?N:f,!!f&&(y=="number"||y!="symbol"&&Ct.test(l))&&l>-1&&l%1==0&&l<f}function Ar(l,f,y){if(!$n(y))return!1;var $=typeof f;return($=="number"?Ur(y)&&hs(f,y.length):$=="string"&&f in y)?fi(y[f],l):!1}function i0(l,f){if(Pt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||fo(l)?!0:as.test(l)||!ls.test(l)||f!=null&&l in an(f)}function uD(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function s0(l){var f=sh(l),y=H[f];if(typeof y!="function"||!(f in Nt.prototype))return!1;if(l===y)return!0;var $=n0(y);return!!$&&l===$[0]}function dD(l){return!!ZS&&ZS in l}var fD=Fp?ms:S0;function dd(l){var f=l&&l.constructor,y=typeof f=="function"&&f.prototype||ac;return l===y}function ZE(l){return l===l&&!$n(l)}function eP(l,f){return function(y){return y==null?!1:y[l]===f&&(f!==n||l in an(y))}}function pD(l){var f=fh(l,function($){return y.size===d&&y.clear(),$}),y=f.cache;return f}function hD(l,f){var y=l[1],$=f[1],D=y|$,U=D<(x|C|I),K=$==I&&y==w||$==I&&y==T&&l[7].length<=f[8]||$==(I|T)&&f[7].length<=f[8]&&y==w;if(!(U||K))return l;$&x&&(l[2]=f[2],D|=y&x?0:E);var Y=f[3];if(Y){var te=l[3];l[3]=te?FE(te,Y,f[4]):Y,l[4]=te?Xs(l[3],p):f[4]}return Y=f[5],Y&&(te=l[5],l[5]=te?NE(te,Y,f[6]):Y,l[6]=te?Xs(l[5],p):f[6]),Y=f[7],Y&&(l[7]=Y),$&I&&(l[8]=l[8]==null?f[8]:Cr(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=D,l}function mD(l){var f=[];if(l!=null)for(var y in an(l))f.push(y);return f}function gD(l){return Dp.call(l)}function tP(l,f,y){return f=Zn(f===n?l.length-1:f,0),function(){for(var $=arguments,D=-1,U=Zn($.length-f,0),K=de(U);++D<U;)K[D]=$[f+D];D=-1;for(var Y=de(f+1);++D<f;)Y[D]=$[D];return Y[f]=y(K),ao(l,this,Y)}}function nP(l,f){return f.length<2?l:ra(l,Ho(f,0,-1))}function vD(l,f){for(var y=l.length,$=Cr(f.length,y),D=Vr(l);$--;){var U=f[$];l[$]=hs(U,y)?D[U]:n}return l}function l0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var rP=iP(kE),fd=RN||function(l,f){return pr.setTimeout(l,f)},a0=iP(z4);function oP(l,f,y){var $=f+"";return a0(l,aD($,yD(iD($),y)))}function iP(l){var f=0,y=0;return function(){var $=FN(),D=B-($-y);if(y=$,D>0){if(++f>=V)return arguments[0]}else f=0;return l.apply(n,arguments)}}function ah(l,f){var y=-1,$=l.length,D=$-1;for(f=f===n?$:f;++y<f;){var U=Uy(y,D),K=l[U];l[U]=l[y],l[y]=K}return l.length=f,l}var sP=pD(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ae,function(y,$,D,U){f.push(D?U.replace(Ce,"$1"):$||y)}),f});function Li(l){if(typeof l=="string"||fo(l))return l;var f=l+"";return f=="0"&&1/l==-G?"-0":f}function ia(l){if(l!=null){try{return Np.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function yD(l,f){return Do(J,function(y){var $="_."+y[0];f&y[1]&&!Rp(l,$)&&l.push($)}),l.sort()}function lP(l){if(l instanceof Nt)return l.clone();var f=new zo(l.__wrapped__,l.__chain__);return f.__actions__=Vr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function bD(l,f,y){(y?Ar(l,f,y):f===n)?f=1:f=Zn(_t(f),0);var $=l==null?0:l.length;if(!$||f<1)return[];for(var D=0,U=0,K=de(Up($/f));D<$;)K[U++]=Ho(l,D,D+=f);return K}function wD(l){for(var f=-1,y=l==null?0:l.length,$=0,D=[];++f<y;){var U=l[f];U&&(D[$++]=U)}return D}function CD(){var l=arguments.length;if(!l)return[];for(var f=de(l-1),y=arguments[0],$=l;$--;)f[$-1]=arguments[$];return Ys(Pt(y)?Vr(y):[y],hr(f,1))}var xD=Mt(function(l,f){return Vn(l)?sd(l,hr(f,1,Vn,!0)):[]}),SD=Mt(function(l,f){var y=Vo(f);return Vn(y)&&(y=n),Vn(l)?sd(l,hr(f,1,Vn,!0),gt(y,2)):[]}),ED=Mt(function(l,f){var y=Vo(f);return Vn(y)&&(y=n),Vn(l)?sd(l,hr(f,1,Vn,!0),n,y):[]});function PD(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:_t(f),Ho(l,f<0?0:f,$)):[]}function kD(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:_t(f),f=$-f,Ho(l,0,f<0?0:f)):[]}function ID(l,f){return l&&l.length?eh(l,gt(f,3),!0,!0):[]}function _D(l,f){return l&&l.length?eh(l,gt(f,3),!0):[]}function $D(l,f,y,$){var D=l==null?0:l.length;return D?(y&&typeof y!="number"&&Ar(l,f,y)&&(y=0,$=D),C4(l,f,y,$)):[]}function aP(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:_t(y);return D<0&&(D=Zn($+D,0)),Op(l,gt(f,3),D)}function cP(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$-1;return y!==n&&(D=_t(y),D=y<0?Zn($+D,0):Cr(D,$-1)),Op(l,gt(f,3),D,!0)}function uP(l){var f=l==null?0:l.length;return f?hr(l,1):[]}function TD(l){var f=l==null?0:l.length;return f?hr(l,G):[]}function MD(l,f){var y=l==null?0:l.length;return y?(f=f===n?1:_t(f),hr(l,f)):[]}function RD(l){for(var f=-1,y=l==null?0:l.length,$={};++f<y;){var D=l[f];$[D[0]]=D[1]}return $}function dP(l){return l&&l.length?l[0]:n}function OD(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:_t(y);return D<0&&(D=Zn($+D,0)),oc(l,f,D)}function LD(l){var f=l==null?0:l.length;return f?Ho(l,0,-1):[]}var AD=Mt(function(l){var f=Sn(l,Yy);return f.length&&f[0]===l[0]?By(f):[]}),FD=Mt(function(l){var f=Vo(l),y=Sn(l,Yy);return f===Vo(y)?f=n:y.pop(),y.length&&y[0]===l[0]?By(y,gt(f,2)):[]}),ND=Mt(function(l){var f=Vo(l),y=Sn(l,Yy);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===l[0]?By(y,n,f):[]});function DD(l,f){return l==null?"":LN.call(l,f)}function Vo(l){var f=l==null?0:l.length;return f?l[f-1]:n}function BD(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$;return y!==n&&(D=_t(y),D=D<0?Zn($+D,0):Cr(D,$-1)),f===f?yN(l,f,D):Op(l,WS,D,!0)}function zD(l,f){return l&&l.length?xE(l,_t(f)):n}var jD=Mt(fP);function fP(l,f){return l&&l.length&&f&&f.length?Vy(l,f):l}function HD(l,f,y){return l&&l.length&&f&&f.length?Vy(l,f,gt(y,2)):l}function VD(l,f,y){return l&&l.length&&f&&f.length?Vy(l,f,n,y):l}var UD=ps(function(l,f){var y=l==null?0:l.length,$=Ay(l,f);return PE(l,Sn(f,function(D){return hs(D,y)?+D:D}).sort(AE)),$});function WD(l,f){var y=[];if(!(l&&l.length))return y;var $=-1,D=[],U=l.length;for(f=gt(f,3);++$<U;){var K=l[$];f(K,$,l)&&(y.push(K),D.push($))}return PE(l,D),y}function c0(l){return l==null?l:DN.call(l)}function GD(l,f,y){var $=l==null?0:l.length;return $?(y&&typeof y!="number"&&Ar(l,f,y)?(f=0,y=$):(f=f==null?0:_t(f),y=y===n?$:_t(y)),Ho(l,f,y)):[]}function KD(l,f){return Zp(l,f)}function qD(l,f,y){return Gy(l,f,gt(y,2))}function YD(l,f){var y=l==null?0:l.length;if(y){var $=Zp(l,f);if($<y&&fi(l[$],f))return $}return-1}function XD(l,f){return Zp(l,f,!0)}function QD(l,f,y){return Gy(l,f,gt(y,2),!0)}function JD(l,f){var y=l==null?0:l.length;if(y){var $=Zp(l,f,!0)-1;if(fi(l[$],f))return $}return-1}function ZD(l){return l&&l.length?IE(l):[]}function e5(l,f){return l&&l.length?IE(l,gt(f,2)):[]}function t5(l){var f=l==null?0:l.length;return f?Ho(l,1,f):[]}function n5(l,f,y){return l&&l.length?(f=y||f===n?1:_t(f),Ho(l,0,f<0?0:f)):[]}function r5(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:_t(f),f=$-f,Ho(l,f<0?0:f,$)):[]}function o5(l,f){return l&&l.length?eh(l,gt(f,3),!1,!0):[]}function i5(l,f){return l&&l.length?eh(l,gt(f,3)):[]}var s5=Mt(function(l){return Zs(hr(l,1,Vn,!0))}),l5=Mt(function(l){var f=Vo(l);return Vn(f)&&(f=n),Zs(hr(l,1,Vn,!0),gt(f,2))}),a5=Mt(function(l){var f=Vo(l);return f=typeof f=="function"?f:n,Zs(hr(l,1,Vn,!0),n,f)});function c5(l){return l&&l.length?Zs(l):[]}function u5(l,f){return l&&l.length?Zs(l,gt(f,2)):[]}function d5(l,f){return f=typeof f=="function"?f:n,l&&l.length?Zs(l,n,f):[]}function u0(l){if(!(l&&l.length))return[];var f=0;return l=qs(l,function(y){if(Vn(y))return f=Zn(y.length,f),!0}),Iy(f,function(y){return Sn(l,Ey(y))})}function pP(l,f){if(!(l&&l.length))return[];var y=u0(l);return f==null?y:Sn(y,function($){return ao(f,n,$)})}var f5=Mt(function(l,f){return Vn(l)?sd(l,f):[]}),p5=Mt(function(l){return qy(qs(l,Vn))}),h5=Mt(function(l){var f=Vo(l);return Vn(f)&&(f=n),qy(qs(l,Vn),gt(f,2))}),m5=Mt(function(l){var f=Vo(l);return f=typeof f=="function"?f:n,qy(qs(l,Vn),n,f)}),g5=Mt(u0);function v5(l,f){return ME(l||[],f||[],id)}function y5(l,f){return ME(l||[],f||[],cd)}var b5=Mt(function(l){var f=l.length,y=f>1?l[f-1]:n;return y=typeof y=="function"?(l.pop(),y):n,pP(l,y)});function hP(l){var f=H(l);return f.__chain__=!0,f}function w5(l,f){return f(l),l}function ch(l,f){return f(l)}var C5=ps(function(l){var f=l.length,y=f?l[0]:0,$=this.__wrapped__,D=function(U){return Ay(U,l)};return f>1||this.__actions__.length||!($ instanceof Nt)||!hs(y)?this.thru(D):($=$.slice(y,+y+(f?1:0)),$.__actions__.push({func:ch,args:[D],thisArg:n}),new zo($,this.__chain__).thru(function(U){return f&&!U.length&&U.push(n),U}))});function x5(){return hP(this)}function S5(){return new zo(this.value(),this.__chain__)}function E5(){this.__values__===n&&(this.__values__=_P(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function P5(){return this}function k5(l){for(var f,y=this;y instanceof qp;){var $=lP(y);$.__index__=0,$.__values__=n,f?D.__wrapped__=$:f=$;var D=$;y=y.__wrapped__}return D.__wrapped__=l,f}function I5(){var l=this.__wrapped__;if(l instanceof Nt){var f=l;return this.__actions__.length&&(f=new Nt(this)),f=f.reverse(),f.__actions__.push({func:ch,args:[c0],thisArg:n}),new zo(f,this.__chain__)}return this.thru(c0)}function _5(){return TE(this.__wrapped__,this.__actions__)}var $5=th(function(l,f,y){Zt.call(l,y)?++l[y]:ds(l,y,1)});function T5(l,f,y){var $=Pt(l)?VS:w4;return y&&Ar(l,f,y)&&(f=n),$(l,gt(f,3))}function M5(l,f){var y=Pt(l)?qs:pE;return y(l,gt(f,3))}var R5=jE(aP),O5=jE(cP);function L5(l,f){return hr(uh(l,f),1)}function A5(l,f){return hr(uh(l,f),G)}function F5(l,f,y){return y=y===n?1:_t(y),hr(uh(l,f),y)}function mP(l,f){var y=Pt(l)?Do:Js;return y(l,gt(f,3))}function gP(l,f){var y=Pt(l)?tN:fE;return y(l,gt(f,3))}var N5=th(function(l,f,y){Zt.call(l,y)?l[y].push(f):ds(l,y,[f])});function D5(l,f,y,$){l=Ur(l)?l:gc(l),y=y&&!$?_t(y):0;var D=l.length;return y<0&&(y=Zn(D+y,0)),mh(l)?y<=D&&l.indexOf(f,y)>-1:!!D&&oc(l,f,y)>-1}var B5=Mt(function(l,f,y){var $=-1,D=typeof f=="function",U=Ur(l)?de(l.length):[];return Js(l,function(K){U[++$]=D?ao(f,K,y):ld(K,f,y)}),U}),z5=th(function(l,f,y){ds(l,y,f)});function uh(l,f){var y=Pt(l)?Sn:bE;return y(l,gt(f,3))}function j5(l,f,y,$){return l==null?[]:(Pt(f)||(f=f==null?[]:[f]),y=$?n:y,Pt(y)||(y=y==null?[]:[y]),SE(l,f,y))}var H5=th(function(l,f,y){l[y?0:1].push(f)},function(){return[[],[]]});function V5(l,f,y){var $=Pt(l)?xy:KS,D=arguments.length<3;return $(l,gt(f,4),y,D,Js)}function U5(l,f,y){var $=Pt(l)?nN:KS,D=arguments.length<3;return $(l,gt(f,4),y,D,fE)}function W5(l,f){var y=Pt(l)?qs:pE;return y(l,ph(gt(f,3)))}function G5(l){var f=Pt(l)?aE:D4;return f(l)}function K5(l,f,y){(y?Ar(l,f,y):f===n)?f=1:f=_t(f);var $=Pt(l)?m4:B4;return $(l,f)}function q5(l){var f=Pt(l)?g4:j4;return f(l)}function Y5(l){if(l==null)return 0;if(Ur(l))return mh(l)?sc(l):l.length;var f=xr(l);return f==Ae||f==Je?l.size:jy(l).length}function X5(l,f,y){var $=Pt(l)?Sy:H4;return y&&Ar(l,f,y)&&(f=n),$(l,gt(f,3))}var Q5=Mt(function(l,f){if(l==null)return[];var y=f.length;return y>1&&Ar(l,f[0],f[1])?f=[]:y>2&&Ar(f[0],f[1],f[2])&&(f=[f[0]]),SE(l,hr(f,1),[])}),dh=MN||function(){return pr.Date.now()};function J5(l,f){if(typeof f!="function")throw new Bo(s);return l=_t(l),function(){if(--l<1)return f.apply(this,arguments)}}function vP(l,f,y){return f=y?n:f,f=l&&f==null?l.length:f,fs(l,I,n,n,n,n,f)}function yP(l,f){var y;if(typeof f!="function")throw new Bo(s);return l=_t(l),function(){return--l>0&&(y=f.apply(this,arguments)),l<=1&&(f=n),y}}var d0=Mt(function(l,f,y){var $=x;if(y.length){var D=Xs(y,hc(d0));$|=k}return fs(l,$,f,y,D)}),bP=Mt(function(l,f,y){var $=x|C;if(y.length){var D=Xs(y,hc(bP));$|=k}return fs(f,$,l,y,D)});function wP(l,f,y){f=y?n:f;var $=fs(l,w,n,n,n,n,n,f);return $.placeholder=wP.placeholder,$}function CP(l,f,y){f=y?n:f;var $=fs(l,S,n,n,n,n,n,f);return $.placeholder=CP.placeholder,$}function xP(l,f,y){var $,D,U,K,Y,te,xe=0,Ee=!1,Pe=!1,Be=!0;if(typeof l!="function")throw new Bo(s);f=Uo(f)||0,$n(y)&&(Ee=!!y.leading,Pe="maxWait"in y,U=Pe?Zn(Uo(y.maxWait)||0,f):U,Be="trailing"in y?!!y.trailing:Be);function it(Un){var pi=$,vs=D;return $=D=n,xe=Un,K=l.apply(vs,pi),K}function vt(Un){return xe=Un,Y=fd(Lt,f),Ee?it(Un):K}function Tt(Un){var pi=Un-te,vs=Un-xe,jP=f-pi;return Pe?Cr(jP,U-vs):jP}function yt(Un){var pi=Un-te,vs=Un-xe;return te===n||pi>=f||pi<0||Pe&&vs>=U}function Lt(){var Un=dh();if(yt(Un))return zt(Un);Y=fd(Lt,Tt(Un))}function zt(Un){return Y=n,Be&&$?it(Un):($=D=n,K)}function po(){Y!==n&&RE(Y),xe=0,$=te=D=Y=n}function Fr(){return Y===n?K:zt(dh())}function ho(){var Un=dh(),pi=yt(Un);if($=arguments,D=this,te=Un,pi){if(Y===n)return vt(te);if(Pe)return RE(Y),Y=fd(Lt,f),it(te)}return Y===n&&(Y=fd(Lt,f)),K}return ho.cancel=po,ho.flush=Fr,ho}var Z5=Mt(function(l,f){return dE(l,1,f)}),e3=Mt(function(l,f,y){return dE(l,Uo(f)||0,y)});function t3(l){return fs(l,O)}function fh(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Bo(s);var y=function(){var $=arguments,D=f?f.apply(this,$):$[0],U=y.cache;if(U.has(D))return U.get(D);var K=l.apply(this,$);return y.cache=U.set(D,K)||U,K};return y.cache=new(fh.Cache||us),y}fh.Cache=us;function ph(l){if(typeof l!="function")throw new Bo(s);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function n3(l){return yP(2,l)}var r3=V4(function(l,f){f=f.length==1&&Pt(f[0])?Sn(f[0],co(gt())):Sn(hr(f,1),co(gt()));var y=f.length;return Mt(function($){for(var D=-1,U=Cr($.length,y);++D<U;)$[D]=f[D].call(this,$[D]);return ao(l,this,$)})}),f0=Mt(function(l,f){var y=Xs(f,hc(f0));return fs(l,k,n,f,y)}),SP=Mt(function(l,f){var y=Xs(f,hc(SP));return fs(l,_,n,f,y)}),o3=ps(function(l,f){return fs(l,T,n,n,n,f)});function i3(l,f){if(typeof l!="function")throw new Bo(s);return f=f===n?f:_t(f),Mt(l,f)}function s3(l,f){if(typeof l!="function")throw new Bo(s);return f=f==null?0:Zn(_t(f),0),Mt(function(y){var $=y[f],D=tl(y,0,f);return $&&Ys(D,$),ao(l,this,D)})}function l3(l,f,y){var $=!0,D=!0;if(typeof l!="function")throw new Bo(s);return $n(y)&&($="leading"in y?!!y.leading:$,D="trailing"in y?!!y.trailing:D),xP(l,f,{leading:$,maxWait:f,trailing:D})}function a3(l){return vP(l,1)}function c3(l,f){return f0(Xy(f),l)}function u3(){if(!arguments.length)return[];var l=arguments[0];return Pt(l)?l:[l]}function d3(l){return jo(l,v)}function f3(l,f){return f=typeof f=="function"?f:n,jo(l,v,f)}function p3(l){return jo(l,h|v)}function h3(l,f){return f=typeof f=="function"?f:n,jo(l,h|v,f)}function m3(l,f){return f==null||uE(l,f,or(f))}function fi(l,f){return l===f||l!==l&&f!==f}var g3=ih(Dy),v3=ih(function(l,f){return l>=f}),sa=gE(function(){return arguments}())?gE:function(l){return Dn(l)&&Zt.call(l,"callee")&&!nE.call(l,"callee")},Pt=de.isArray,y3=NS?co(NS):k4;function Ur(l){return l!=null&&hh(l.length)&&!ms(l)}function Vn(l){return Dn(l)&&Ur(l)}function b3(l){return l===!0||l===!1||Dn(l)&&Lr(l)==ne}var nl=ON||S0,w3=DS?co(DS):I4;function C3(l){return Dn(l)&&l.nodeType===1&&!pd(l)}function x3(l){if(l==null)return!0;if(Ur(l)&&(Pt(l)||typeof l=="string"||typeof l.splice=="function"||nl(l)||mc(l)||sa(l)))return!l.length;var f=xr(l);if(f==Ae||f==Je)return!l.size;if(dd(l))return!jy(l).length;for(var y in l)if(Zt.call(l,y))return!1;return!0}function S3(l,f){return ad(l,f)}function E3(l,f,y){y=typeof y=="function"?y:n;var $=y?y(l,f):n;return $===n?ad(l,f,n,y):!!$}function p0(l){if(!Dn(l))return!1;var f=Lr(l);return f==ge||f==be||typeof l.message=="string"&&typeof l.name=="string"&&!pd(l)}function P3(l){return typeof l=="number"&&oE(l)}function ms(l){if(!$n(l))return!1;var f=Lr(l);return f==$e||f==ze||f==le||f==ot}function EP(l){return typeof l=="number"&&l==_t(l)}function hh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=N}function $n(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function Dn(l){return l!=null&&typeof l=="object"}var PP=BS?co(BS):$4;function k3(l,f){return l===f||zy(l,f,r0(f))}function I3(l,f,y){return y=typeof y=="function"?y:n,zy(l,f,r0(f),y)}function _3(l){return kP(l)&&l!=+l}function $3(l){if(fD(l))throw new Et(i);return vE(l)}function T3(l){return l===null}function M3(l){return l==null}function kP(l){return typeof l=="number"||Dn(l)&&Lr(l)==re}function pd(l){if(!Dn(l)||Lr(l)!=ve)return!1;var f=jp(l);if(f===null)return!0;var y=Zt.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Np.call(y)==IN}var h0=zS?co(zS):T4;function R3(l){return EP(l)&&l>=-N&&l<=N}var IP=jS?co(jS):M4;function mh(l){return typeof l=="string"||!Pt(l)&&Dn(l)&&Lr(l)==bt}function fo(l){return typeof l=="symbol"||Dn(l)&&Lr(l)==lt}var mc=HS?co(HS):R4;function O3(l){return l===n}function L3(l){return Dn(l)&&xr(l)==ht}function A3(l){return Dn(l)&&Lr(l)==ut}var F3=ih(Hy),N3=ih(function(l,f){return l<=f});function _P(l){if(!l)return[];if(Ur(l))return mh(l)?ui(l):Vr(l);if(ed&&l[ed])return mN(l[ed]());var f=xr(l),y=f==Ae?$y:f==Je?Lp:gc;return y(l)}function gs(l){if(!l)return l===0?l:0;if(l=Uo(l),l===G||l===-G){var f=l<0?-1:1;return f*z}return l===l?l:0}function _t(l){var f=gs(l),y=f%1;return f===f?y?f-y:f:0}function $P(l){return l?na(_t(l),0,q):0}function Uo(l){if(typeof l=="number")return l;if(fo(l))return W;if($n(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=$n(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=qS(l);var y=Vt.test(l);return y||_n.test(l)?JF(l.slice(2),y?2:8):ft.test(l)?W:+l}function TP(l){return Oi(l,Wr(l))}function D3(l){return l?na(_t(l),-N,N):l===0?l:0}function Xt(l){return l==null?"":uo(l)}var B3=fc(function(l,f){if(dd(f)||Ur(f)){Oi(f,or(f),l);return}for(var y in f)Zt.call(f,y)&&id(l,y,f[y])}),MP=fc(function(l,f){Oi(f,Wr(f),l)}),gh=fc(function(l,f,y,$){Oi(f,Wr(f),l,$)}),z3=fc(function(l,f,y,$){Oi(f,or(f),l,$)}),j3=ps(Ay);function H3(l,f){var y=dc(l);return f==null?y:cE(y,f)}var V3=Mt(function(l,f){l=an(l);var y=-1,$=f.length,D=$>2?f[2]:n;for(D&&Ar(f[0],f[1],D)&&($=1);++y<$;)for(var U=f[y],K=Wr(U),Y=-1,te=K.length;++Y<te;){var xe=K[Y],Ee=l[xe];(Ee===n||fi(Ee,ac[xe])&&!Zt.call(l,xe))&&(l[xe]=U[xe])}return l}),U3=Mt(function(l){return l.push(n,qE),ao(RP,n,l)});function W3(l,f){return US(l,gt(f,3),Ri)}function G3(l,f){return US(l,gt(f,3),Ny)}function K3(l,f){return l==null?l:Fy(l,gt(f,3),Wr)}function q3(l,f){return l==null?l:hE(l,gt(f,3),Wr)}function Y3(l,f){return l&&Ri(l,gt(f,3))}function X3(l,f){return l&&Ny(l,gt(f,3))}function Q3(l){return l==null?[]:Qp(l,or(l))}function J3(l){return l==null?[]:Qp(l,Wr(l))}function m0(l,f,y){var $=l==null?n:ra(l,f);return $===n?y:$}function Z3(l,f){return l!=null&&QE(l,f,x4)}function g0(l,f){return l!=null&&QE(l,f,S4)}var eB=VE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Dp.call(f)),l[f]=y},y0(Gr)),tB=VE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Dp.call(f)),Zt.call(l,f)?l[f].push(y):l[f]=[y]},gt),nB=Mt(ld);function or(l){return Ur(l)?lE(l):jy(l)}function Wr(l){return Ur(l)?lE(l,!0):O4(l)}function rB(l,f){var y={};return f=gt(f,3),Ri(l,function($,D,U){ds(y,f($,D,U),$)}),y}function oB(l,f){var y={};return f=gt(f,3),Ri(l,function($,D,U){ds(y,D,f($,D,U))}),y}var iB=fc(function(l,f,y){Jp(l,f,y)}),RP=fc(function(l,f,y,$){Jp(l,f,y,$)}),sB=ps(function(l,f){var y={};if(l==null)return y;var $=!1;f=Sn(f,function(U){return U=el(U,l),$||($=U.length>1),U}),Oi(l,t0(l),y),$&&(y=jo(y,h|m|v,eD));for(var D=f.length;D--;)Ky(y,f[D]);return y});function lB(l,f){return OP(l,ph(gt(f)))}var aB=ps(function(l,f){return l==null?{}:A4(l,f)});function OP(l,f){if(l==null)return{};var y=Sn(t0(l),function($){return[$]});return f=gt(f),EE(l,y,function($,D){return f($,D[0])})}function cB(l,f,y){f=el(f,l);var $=-1,D=f.length;for(D||(D=1,l=n);++$<D;){var U=l==null?n:l[Li(f[$])];U===n&&($=D,U=y),l=ms(U)?U.call(l):U}return l}function uB(l,f,y){return l==null?l:cd(l,f,y)}function dB(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:cd(l,f,y,$)}var LP=GE(or),AP=GE(Wr);function fB(l,f,y){var $=Pt(l),D=$||nl(l)||mc(l);if(f=gt(f,4),y==null){var U=l&&l.constructor;D?y=$?new U:[]:$n(l)?y=ms(U)?dc(jp(l)):{}:y={}}return(D?Do:Ri)(l,function(K,Y,te){return f(y,K,Y,te)}),y}function pB(l,f){return l==null?!0:Ky(l,f)}function hB(l,f,y){return l==null?l:$E(l,f,Xy(y))}function mB(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:$E(l,f,Xy(y),$)}function gc(l){return l==null?[]:_y(l,or(l))}function gB(l){return l==null?[]:_y(l,Wr(l))}function vB(l,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Uo(y),y=y===y?y:0),f!==n&&(f=Uo(f),f=f===f?f:0),na(Uo(l),f,y)}function yB(l,f,y){return f=gs(f),y===n?(y=f,f=0):y=gs(y),l=Uo(l),E4(l,f,y)}function bB(l,f,y){if(y&&typeof y!="boolean"&&Ar(l,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&f===n?(l=0,f=1):(l=gs(l),f===n?(f=l,l=0):f=gs(f)),l>f){var $=l;l=f,f=$}if(y||l%1||f%1){var D=iE();return Cr(l+D*(f-l+QF("1e-"+((D+"").length-1))),f)}return Uy(l,f)}var wB=pc(function(l,f,y){return f=f.toLowerCase(),l+(y?FP(f):f)});function FP(l){return v0(Xt(l).toLowerCase())}function NP(l){return l=Xt(l),l&&l.replace(rr,uN).replace(jF,"")}function CB(l,f,y){l=Xt(l),f=uo(f);var $=l.length;y=y===n?$:na(_t(y),0,$);var D=y;return y-=f.length,y>=0&&l.slice(y,D)==f}function xB(l){return l=Xt(l),l&&ln.test(l)?l.replace(Or,dN):l}function SB(l){return l=Xt(l),l&&Fe.test(l)?l.replace(ye,"\\$&"):l}var EB=pc(function(l,f,y){return l+(y?"-":"")+f.toLowerCase()}),PB=pc(function(l,f,y){return l+(y?" ":"")+f.toLowerCase()}),kB=zE("toLowerCase");function IB(l,f,y){l=Xt(l),f=_t(f);var $=f?sc(l):0;if(!f||$>=f)return l;var D=(f-$)/2;return oh(Wp(D),y)+l+oh(Up(D),y)}function _B(l,f,y){l=Xt(l),f=_t(f);var $=f?sc(l):0;return f&&$<f?l+oh(f-$,y):l}function $B(l,f,y){l=Xt(l),f=_t(f);var $=f?sc(l):0;return f&&$<f?oh(f-$,y)+l:l}function TB(l,f,y){return y||f==null?f=0:f&&(f=+f),NN(Xt(l).replace(dt,""),f||0)}function MB(l,f,y){return(y?Ar(l,f,y):f===n)?f=1:f=_t(f),Wy(Xt(l),f)}function RB(){var l=arguments,f=Xt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var OB=pc(function(l,f,y){return l+(y?"_":"")+f.toLowerCase()});function LB(l,f,y){return y&&typeof y!="number"&&Ar(l,f,y)&&(f=y=n),y=y===n?q:y>>>0,y?(l=Xt(l),l&&(typeof f=="string"||f!=null&&!h0(f))&&(f=uo(f),!f&&ic(l))?tl(ui(l),0,y):l.split(f,y)):[]}var AB=pc(function(l,f,y){return l+(y?" ":"")+v0(f)});function FB(l,f,y){return l=Xt(l),y=y==null?0:na(_t(y),0,l.length),f=uo(f),l.slice(y,y+f.length)==f}function NB(l,f,y){var $=H.templateSettings;y&&Ar(l,f,y)&&(f=n),l=Xt(l),f=gh({},f,$,KE);var D=gh({},f.imports,$.imports,KE),U=or(D),K=_y(D,U),Y,te,xe=0,Ee=f.interpolate||$p,Pe="__p += '",Be=Ty((f.escape||$p).source+"|"+Ee.source+"|"+(Ee===Mi?me:$p).source+"|"+(f.evaluate||$p).source+"|$","g"),it="//# sourceURL="+(Zt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++GF+"]")+`
303
+ `;l.replace(Be,function(yt,Lt,zt,po,Fr,ho){return zt||(zt=po),Pe+=l.slice(xe,ho).replace(SF,fN),Lt&&(Y=!0,Pe+=`' +
304
+ __e(`+Lt+`) +
305
+ '`),Fr&&(te=!0,Pe+=`';
306
+ `+Fr+`;
307
+ __p += '`),zt&&(Pe+=`' +
308
+ ((__t = (`+zt+`)) == null ? '' : __t) +
309
+ '`),xe=ho+yt.length,yt}),Pe+=`';
310
+ `;var vt=Zt.call(f,"variable")&&f.variable;if(!vt)Pe=`with (obj) {
311
+ `+Pe+`
312
+ }
313
+ `;else if(lo.test(vt))throw new Et(a);Pe=(te?Pe.replace(gn,""):Pe).replace(Hn,"$1").replace(br,"$1;"),Pe="function("+(vt||"obj")+`) {
314
+ `+(vt?"":`obj || (obj = {});
315
+ `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
316
+ function print() { __p += __j.call(arguments, '') }
317
+ `:`;
318
+ `)+Pe+`return __p
319
+ }`;var Tt=BP(function(){return Kt(U,it+"return "+Pe).apply(n,K)});if(Tt.source=Pe,p0(Tt))throw Tt;return Tt}function DB(l){return Xt(l).toLowerCase()}function BB(l){return Xt(l).toUpperCase()}function zB(l,f,y){if(l=Xt(l),l&&(y||f===n))return qS(l);if(!l||!(f=uo(f)))return l;var $=ui(l),D=ui(f),U=YS($,D),K=XS($,D)+1;return tl($,U,K).join("")}function jB(l,f,y){if(l=Xt(l),l&&(y||f===n))return l.slice(0,JS(l)+1);if(!l||!(f=uo(f)))return l;var $=ui(l),D=XS($,ui(f))+1;return tl($,0,D).join("")}function HB(l,f,y){if(l=Xt(l),l&&(y||f===n))return l.replace(dt,"");if(!l||!(f=uo(f)))return l;var $=ui(l),D=YS($,ui(f));return tl($,D).join("")}function VB(l,f){var y=R,$=A;if($n(f)){var D="separator"in f?f.separator:D;y="length"in f?_t(f.length):y,$="omission"in f?uo(f.omission):$}l=Xt(l);var U=l.length;if(ic(l)){var K=ui(l);U=K.length}if(y>=U)return l;var Y=y-sc($);if(Y<1)return $;var te=K?tl(K,0,Y).join(""):l.slice(0,Y);if(D===n)return te+$;if(K&&(Y+=te.length-Y),h0(D)){if(l.slice(Y).search(D)){var xe,Ee=te;for(D.global||(D=Ty(D.source,Xt(Ve.exec(D))+"g")),D.lastIndex=0;xe=D.exec(Ee);)var Pe=xe.index;te=te.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(uo(D),Y)!=Y){var Be=te.lastIndexOf(D);Be>-1&&(te=te.slice(0,Be))}return te+$}function UB(l){return l=Xt(l),l&&Nn.test(l)?l.replace(wr,bN):l}var WB=pc(function(l,f,y){return l+(y?" ":"")+f.toUpperCase()}),v0=zE("toUpperCase");function DP(l,f,y){return l=Xt(l),f=y?n:f,f===n?hN(l)?xN(l):iN(l):l.match(f)||[]}var BP=Mt(function(l,f){try{return ao(l,n,f)}catch(y){return p0(y)?y:new Et(y)}}),GB=ps(function(l,f){return Do(f,function(y){y=Li(y),ds(l,y,d0(l[y],l))}),l});function KB(l){var f=l==null?0:l.length,y=gt();return l=f?Sn(l,function($){if(typeof $[1]!="function")throw new Bo(s);return[y($[0]),$[1]]}):[],Mt(function($){for(var D=-1;++D<f;){var U=l[D];if(ao(U[0],this,$))return ao(U[1],this,$)}})}function qB(l){return b4(jo(l,h))}function y0(l){return function(){return l}}function YB(l,f){return l==null||l!==l?f:l}var XB=HE(),QB=HE(!0);function Gr(l){return l}function b0(l){return yE(typeof l=="function"?l:jo(l,h))}function JB(l){return wE(jo(l,h))}function ZB(l,f){return CE(l,jo(f,h))}var ez=Mt(function(l,f){return function(y){return ld(y,l,f)}}),tz=Mt(function(l,f){return function(y){return ld(l,y,f)}});function w0(l,f,y){var $=or(f),D=Qp(f,$);y==null&&!($n(f)&&(D.length||!$.length))&&(y=f,f=l,l=this,D=Qp(f,or(f)));var U=!($n(y)&&"chain"in y)||!!y.chain,K=ms(l);return Do(D,function(Y){var te=f[Y];l[Y]=te,K&&(l.prototype[Y]=function(){var xe=this.__chain__;if(U||xe){var Ee=l(this.__wrapped__),Pe=Ee.__actions__=Vr(this.__actions__);return Pe.push({func:te,args:arguments,thisArg:l}),Ee.__chain__=xe,Ee}return te.apply(l,Ys([this.value()],arguments))})}),l}function nz(){return pr._===this&&(pr._=_N),this}function C0(){}function rz(l){return l=_t(l),Mt(function(f){return xE(f,l)})}var oz=Jy(Sn),iz=Jy(VS),sz=Jy(Sy);function zP(l){return i0(l)?Ey(Li(l)):F4(l)}function lz(l){return function(f){return l==null?n:ra(l,f)}}var az=UE(),cz=UE(!0);function x0(){return[]}function S0(){return!1}function uz(){return{}}function dz(){return""}function fz(){return!0}function pz(l,f){if(l=_t(l),l<1||l>N)return[];var y=q,$=Cr(l,q);f=gt(f),l-=q;for(var D=Iy($,f);++y<l;)f(y);return D}function hz(l){return Pt(l)?Sn(l,Li):fo(l)?[l]:Vr(sP(Xt(l)))}function mz(l){var f=++kN;return Xt(l)+f}var gz=rh(function(l,f){return l+f},0),vz=Zy("ceil"),yz=rh(function(l,f){return l/f},1),bz=Zy("floor");function wz(l){return l&&l.length?Xp(l,Gr,Dy):n}function Cz(l,f){return l&&l.length?Xp(l,gt(f,2),Dy):n}function xz(l){return GS(l,Gr)}function Sz(l,f){return GS(l,gt(f,2))}function Ez(l){return l&&l.length?Xp(l,Gr,Hy):n}function Pz(l,f){return l&&l.length?Xp(l,gt(f,2),Hy):n}var kz=rh(function(l,f){return l*f},1),Iz=Zy("round"),_z=rh(function(l,f){return l-f},0);function $z(l){return l&&l.length?ky(l,Gr):0}function Tz(l,f){return l&&l.length?ky(l,gt(f,2)):0}return H.after=J5,H.ary=vP,H.assign=B3,H.assignIn=MP,H.assignInWith=gh,H.assignWith=z3,H.at=j3,H.before=yP,H.bind=d0,H.bindAll=GB,H.bindKey=bP,H.castArray=u3,H.chain=hP,H.chunk=bD,H.compact=wD,H.concat=CD,H.cond=KB,H.conforms=qB,H.constant=y0,H.countBy=$5,H.create=H3,H.curry=wP,H.curryRight=CP,H.debounce=xP,H.defaults=V3,H.defaultsDeep=U3,H.defer=Z5,H.delay=e3,H.difference=xD,H.differenceBy=SD,H.differenceWith=ED,H.drop=PD,H.dropRight=kD,H.dropRightWhile=ID,H.dropWhile=_D,H.fill=$D,H.filter=M5,H.flatMap=L5,H.flatMapDeep=A5,H.flatMapDepth=F5,H.flatten=uP,H.flattenDeep=TD,H.flattenDepth=MD,H.flip=t3,H.flow=XB,H.flowRight=QB,H.fromPairs=RD,H.functions=Q3,H.functionsIn=J3,H.groupBy=N5,H.initial=LD,H.intersection=AD,H.intersectionBy=FD,H.intersectionWith=ND,H.invert=eB,H.invertBy=tB,H.invokeMap=B5,H.iteratee=b0,H.keyBy=z5,H.keys=or,H.keysIn=Wr,H.map=uh,H.mapKeys=rB,H.mapValues=oB,H.matches=JB,H.matchesProperty=ZB,H.memoize=fh,H.merge=iB,H.mergeWith=RP,H.method=ez,H.methodOf=tz,H.mixin=w0,H.negate=ph,H.nthArg=rz,H.omit=sB,H.omitBy=lB,H.once=n3,H.orderBy=j5,H.over=oz,H.overArgs=r3,H.overEvery=iz,H.overSome=sz,H.partial=f0,H.partialRight=SP,H.partition=H5,H.pick=aB,H.pickBy=OP,H.property=zP,H.propertyOf=lz,H.pull=jD,H.pullAll=fP,H.pullAllBy=HD,H.pullAllWith=VD,H.pullAt=UD,H.range=az,H.rangeRight=cz,H.rearg=o3,H.reject=W5,H.remove=WD,H.rest=i3,H.reverse=c0,H.sampleSize=K5,H.set=uB,H.setWith=dB,H.shuffle=q5,H.slice=GD,H.sortBy=Q5,H.sortedUniq=ZD,H.sortedUniqBy=e5,H.split=LB,H.spread=s3,H.tail=t5,H.take=n5,H.takeRight=r5,H.takeRightWhile=o5,H.takeWhile=i5,H.tap=w5,H.throttle=l3,H.thru=ch,H.toArray=_P,H.toPairs=LP,H.toPairsIn=AP,H.toPath=hz,H.toPlainObject=TP,H.transform=fB,H.unary=a3,H.union=s5,H.unionBy=l5,H.unionWith=a5,H.uniq=c5,H.uniqBy=u5,H.uniqWith=d5,H.unset=pB,H.unzip=u0,H.unzipWith=pP,H.update=hB,H.updateWith=mB,H.values=gc,H.valuesIn=gB,H.without=f5,H.words=DP,H.wrap=c3,H.xor=p5,H.xorBy=h5,H.xorWith=m5,H.zip=g5,H.zipObject=v5,H.zipObjectDeep=y5,H.zipWith=b5,H.entries=LP,H.entriesIn=AP,H.extend=MP,H.extendWith=gh,w0(H,H),H.add=gz,H.attempt=BP,H.camelCase=wB,H.capitalize=FP,H.ceil=vz,H.clamp=vB,H.clone=d3,H.cloneDeep=p3,H.cloneDeepWith=h3,H.cloneWith=f3,H.conformsTo=m3,H.deburr=NP,H.defaultTo=YB,H.divide=yz,H.endsWith=CB,H.eq=fi,H.escape=xB,H.escapeRegExp=SB,H.every=T5,H.find=R5,H.findIndex=aP,H.findKey=W3,H.findLast=O5,H.findLastIndex=cP,H.findLastKey=G3,H.floor=bz,H.forEach=mP,H.forEachRight=gP,H.forIn=K3,H.forInRight=q3,H.forOwn=Y3,H.forOwnRight=X3,H.get=m0,H.gt=g3,H.gte=v3,H.has=Z3,H.hasIn=g0,H.head=dP,H.identity=Gr,H.includes=D5,H.indexOf=OD,H.inRange=yB,H.invoke=nB,H.isArguments=sa,H.isArray=Pt,H.isArrayBuffer=y3,H.isArrayLike=Ur,H.isArrayLikeObject=Vn,H.isBoolean=b3,H.isBuffer=nl,H.isDate=w3,H.isElement=C3,H.isEmpty=x3,H.isEqual=S3,H.isEqualWith=E3,H.isError=p0,H.isFinite=P3,H.isFunction=ms,H.isInteger=EP,H.isLength=hh,H.isMap=PP,H.isMatch=k3,H.isMatchWith=I3,H.isNaN=_3,H.isNative=$3,H.isNil=M3,H.isNull=T3,H.isNumber=kP,H.isObject=$n,H.isObjectLike=Dn,H.isPlainObject=pd,H.isRegExp=h0,H.isSafeInteger=R3,H.isSet=IP,H.isString=mh,H.isSymbol=fo,H.isTypedArray=mc,H.isUndefined=O3,H.isWeakMap=L3,H.isWeakSet=A3,H.join=DD,H.kebabCase=EB,H.last=Vo,H.lastIndexOf=BD,H.lowerCase=PB,H.lowerFirst=kB,H.lt=F3,H.lte=N3,H.max=wz,H.maxBy=Cz,H.mean=xz,H.meanBy=Sz,H.min=Ez,H.minBy=Pz,H.stubArray=x0,H.stubFalse=S0,H.stubObject=uz,H.stubString=dz,H.stubTrue=fz,H.multiply=kz,H.nth=zD,H.noConflict=nz,H.noop=C0,H.now=dh,H.pad=IB,H.padEnd=_B,H.padStart=$B,H.parseInt=TB,H.random=bB,H.reduce=V5,H.reduceRight=U5,H.repeat=MB,H.replace=RB,H.result=cB,H.round=Iz,H.runInContext=Z,H.sample=G5,H.size=Y5,H.snakeCase=OB,H.some=X5,H.sortedIndex=KD,H.sortedIndexBy=qD,H.sortedIndexOf=YD,H.sortedLastIndex=XD,H.sortedLastIndexBy=QD,H.sortedLastIndexOf=JD,H.startCase=AB,H.startsWith=FB,H.subtract=_z,H.sum=$z,H.sumBy=Tz,H.template=NB,H.times=pz,H.toFinite=gs,H.toInteger=_t,H.toLength=$P,H.toLower=DB,H.toNumber=Uo,H.toSafeInteger=D3,H.toString=Xt,H.toUpper=BB,H.trim=zB,H.trimEnd=jB,H.trimStart=HB,H.truncate=VB,H.unescape=UB,H.uniqueId=mz,H.upperCase=WB,H.upperFirst=v0,H.each=mP,H.eachRight=gP,H.first=dP,w0(H,function(){var l={};return Ri(H,function(f,y){Zt.call(H.prototype,y)||(l[y]=f)}),l}(),{chain:!1}),H.VERSION=r,Do(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){H[l].placeholder=H}),Do(["drop","take"],function(l,f){Nt.prototype[l]=function(y){y=y===n?1:Zn(_t(y),0);var $=this.__filtered__&&!f?new Nt(this):this.clone();return $.__filtered__?$.__takeCount__=Cr(y,$.__takeCount__):$.__views__.push({size:Cr(y,q),type:l+($.__dir__<0?"Right":"")}),$},Nt.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Do(["filter","map","takeWhile"],function(l,f){var y=f+1,$=y==L||y==j;Nt.prototype[l]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:gt(D,3),type:y}),U.__filtered__=U.__filtered__||$,U}}),Do(["head","last"],function(l,f){var y="take"+(f?"Right":"");Nt.prototype[l]=function(){return this[y](1).value()[0]}}),Do(["initial","tail"],function(l,f){var y="drop"+(f?"":"Right");Nt.prototype[l]=function(){return this.__filtered__?new Nt(this):this[y](1)}}),Nt.prototype.compact=function(){return this.filter(Gr)},Nt.prototype.find=function(l){return this.filter(l).head()},Nt.prototype.findLast=function(l){return this.reverse().find(l)},Nt.prototype.invokeMap=Mt(function(l,f){return typeof l=="function"?new Nt(this):this.map(function(y){return ld(y,l,f)})}),Nt.prototype.reject=function(l){return this.filter(ph(gt(l)))},Nt.prototype.slice=function(l,f){l=_t(l);var y=this;return y.__filtered__&&(l>0||f<0)?new Nt(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),f!==n&&(f=_t(f),y=f<0?y.dropRight(-f):y.take(f-l)),y)},Nt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Nt.prototype.toArray=function(){return this.take(q)},Ri(Nt.prototype,function(l,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),D=H[$?"take"+(f=="last"?"Right":""):f],U=$||/^find/.test(f);D&&(H.prototype[f]=function(){var K=this.__wrapped__,Y=$?[1]:arguments,te=K instanceof Nt,xe=Y[0],Ee=te||Pt(K),Pe=function(Lt){var zt=D.apply(H,Ys([Lt],Y));return $&&Be?zt[0]:zt};Ee&&y&&typeof xe=="function"&&xe.length!=1&&(te=Ee=!1);var Be=this.__chain__,it=!!this.__actions__.length,vt=U&&!Be,Tt=te&&!it;if(!U&&Ee){K=Tt?K:new Nt(this);var yt=l.apply(K,Y);return yt.__actions__.push({func:ch,args:[Pe],thisArg:n}),new zo(yt,Be)}return vt&&Tt?l.apply(this,Y):(yt=this.thru(Pe),vt?$?yt.value()[0]:yt.value():yt)})}),Do(["pop","push","shift","sort","splice","unshift"],function(l){var f=Ap[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);H.prototype[l]=function(){var D=arguments;if($&&!this.__chain__){var U=this.value();return f.apply(Pt(U)?U:[],D)}return this[y](function(K){return f.apply(Pt(K)?K:[],D)})}}),Ri(Nt.prototype,function(l,f){var y=H[f];if(y){var $=y.name+"";Zt.call(uc,$)||(uc[$]=[]),uc[$].push({name:f,func:y})}}),uc[nh(n,C).name]=[{name:"wrapper",func:n}],Nt.prototype.clone=UN,Nt.prototype.reverse=WN,Nt.prototype.value=GN,H.prototype.at=C5,H.prototype.chain=x5,H.prototype.commit=S5,H.prototype.next=E5,H.prototype.plant=k5,H.prototype.reverse=I5,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=_5,H.prototype.first=H.prototype.head,ed&&(H.prototype[ed]=P5),H},lc=SN();Jl?((Jl.exports=lc)._=lc,by._=lc):pr._=lc}).call(bn)})(ag,ag.exports);var Gc=ag.exports;const $t=ep(Gc);globalThis&&globalThis.__awaiter;function AO(e,t){const[n,r]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Ute(e,t,n,r){const o=u.useRef(t);FO(()=>{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 Wte(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const FO=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function Gte(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Ute("resize",n),FO(()=>{n()},[]),e}function Yr(e){const t=Wte(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Kte(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function qte(e,t){const n=[];for(const r of Kte(t))n.push(r,e);return n.splice(-1,1),jf(n)}function jf(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?jf(t):u.createElement(u.Fragment,{key:n,children:t}))}const Yte=Symbol(),px=Symbol(),Md="a",uf="w";let Xte=(e,t)=>new Proxy(e,t);const Xb=Object.getPrototypeOf,Qb=new WeakMap,NO=e=>e&&(Qb.has(e)?Qb.get(e):Xb(e)===Object.prototype||Xb(e)===Array.prototype),cg=e=>typeof e=="object"&&e!==null,Qte=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(Xb(e),t)},hx=e=>e[px]||e,DO=(e,t,n,r)=>{if(!NO(e))return e;let o=r&&r.get(e);if(!o){const c=hx(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,Qte(c)]:[c],r==null||r.set(e,o)}const[i,s]=o;let a=n&&n.get(i);return a&&a[1].f===!!s||(a=((c,d)=>{const p={f:d};let h=!1;const m=(b,g)=>{if(!h){let x=p[Md].get(c);if(x||(x={},p[Md].set(c,x)),b===uf)x[uf]=!0;else{let C=x[b];C||(C=new Set,x[b]=C),C.add(g)}}},v={get:(b,g)=>g===px?c:(m("k",g),DO(Reflect.get(b,g),p[Md],p.c)),has:(b,g)=>g===Yte?(h=!0,p[Md].delete(c),!0):(m("h",g),Reflect.has(b,g)),getOwnPropertyDescriptor:(b,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(b,g)),ownKeys:b=>(m(uf),Reflect.ownKeys(b))};return d&&(v.set=v.deleteProperty=()=>!1),[v,p]})(i,!!s),a[1].p=Xte(s||i,a[0]),n&&n.set(i,a)),a[1][Md]=t,a[1].c=n,a[1].p},BO=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!cg(e)||!cg(t))return!0;const o=n.get(hx(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const s of o.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(o[uf]===!0){if(i=((s,a)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(a);return c.length!==d.length||c.some((p,h)=>p!==d[h])})(e,t),i)return i}else for(const s of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of o.k||[])if(i=BO(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},Jte=e=>NO(e)&&e[px]||null,t_=(e,t=!0)=>{Qb.set(e,t)},Zte=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,a)=>{if(o.has(s))return;cg(s)&&o.add(s);const c=cg(s)&&t.get(hx(s));if(c){var d,p;if((d=c.h)==null||d.forEach(m=>{const v=`:has(${String(m)})`;r.push(a?[...a,v]:[v])}),c[uf]===!0){const m=":ownKeys";r.push(a?[...a,m]:[m])}else{var h;(h=c.o)==null||h.forEach(m=>{const v=`:hasOwn(${String(m)})`;r.push(a?[...a,v]:[v])})}(p=c.k)==null||p.forEach(m=>{n&&!("value"in(Object.getOwnPropertyDescriptor(s,m)||{}))||i(s[m],a?[...a,m]:[m])})}else a&&r.push(a)};return i(e),r},m1=e=>typeof e=="object"&&e!==null,dl=new WeakMap,Wh=new WeakSet,ene=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>m1(d)&&!Wh.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},o=new WeakMap,i=(d,p,h=r)=>{const m=o.get(d);if((m==null?void 0:m[0])===p)return m[1];const v=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return t_(v,!0),o.set(d,[p,v]),Reflect.ownKeys(d).forEach(b=>{if(Object.getOwnPropertyDescriptor(v,b))return;const g=Reflect.get(d,b),x={value:g,enumerable:!0,configurable:!0};if(Wh.has(g))t_(g,!1);else if(g instanceof Promise)delete x.value,x.get=()=>h(g);else if(dl.has(g)){const[C,E]=dl.get(g);x.value=i(C,E(),h)}Object.defineProperty(v,b,x)}),v},s=new WeakMap,a=[1,1],c=d=>{if(!m1(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,v=(O,R=++a[0])=>{h!==R&&(h=R,m.forEach(A=>A(O,R)))};let b=a[1];const g=(O=++a[1])=>(b!==O&&!m.size&&(b=O,C.forEach(([R])=>{const A=R[1](O);A>h&&(h=A)})),h),x=O=>(R,A)=>{const V=[...R];V[1]=[O,...V[1]],v(V,A)},C=new Map,E=(O,R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&C.has(O))throw new Error("prop listener already exists");if(m.size){const A=R[3](x(O));C.set(O,[R,A])}else C.set(O,[R])},w=O=>{var R;const A=C.get(O);A&&(C.delete(O),(R=A[1])==null||R.call(A))},S=O=>(m.add(O),m.size===1&&C.forEach(([A,V],B)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&V)throw new Error("remove already exists");const L=A[3](x(B));C.set(B,[A,L])}),()=>{m.delete(O),m.size===0&&C.forEach(([A,V],B)=>{V&&(V(),C.set(B,[A]))})}),k=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),I=t(k,{deleteProperty(O,R){const A=Reflect.get(O,R);w(R);const V=Reflect.deleteProperty(O,R);return V&&v(["delete",[R],A]),V},set(O,R,A,V){const B=Reflect.has(O,R),L=Reflect.get(O,R,V);if(B&&(e(L,A)||s.has(A)&&e(L,s.get(A))))return!0;w(R),m1(A)&&(A=Jte(A)||A);let F=A;if(A instanceof Promise)A.then(j=>{A.status="fulfilled",A.value=j,v(["resolve",[R],j])}).catch(j=>{A.status="rejected",A.reason=j,v(["reject",[R],j])});else{!dl.has(A)&&n(A)&&(F=c(A));const j=!Wh.has(F)&&dl.get(F);j&&E(R,j)}return Reflect.set(O,R,F,V),v(["set",[R],A,L]),!0}});s.set(d,I);const T=[k,g,i,S];return dl.set(I,T),Reflect.ownKeys(d).forEach(O=>{const R=Object.getOwnPropertyDescriptor(d,O);"value"in R&&(I[O]=d[O],delete R.value,delete R.writable),Object.defineProperty(k,O,R)}),I})=>[c,dl,Wh,e,t,n,r,o,i,s,a],[tne]=ene();function mx(e={}){return tne(e)}function gx(e,t,n){const r=dl.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],s=r[3];let a=!1;const d=s(p=>{if(i.push(p),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,d()}}function n_(e,t){const n=dl.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var zO={exports:{}},jO={};/**
320
+ * @license React
321
+ * use-sync-external-store-shim.production.min.js
322
+ *
323
+ * Copyright (c) Facebook, Inc. and its affiliates.
324
+ *
325
+ * This source code is licensed under the MIT license found in the
326
+ * LICENSE file in the root directory of this source tree.
327
+ */var Eu=u;function nne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rne=typeof Object.is=="function"?Object.is:nne,one=Eu.useState,ine=Eu.useEffect,sne=Eu.useLayoutEffect,lne=Eu.useDebugValue;function ane(e,t){var n=t(),r=one({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return sne(function(){o.value=n,o.getSnapshot=t,g1(o)&&i({inst:o})},[e,n,t]),ine(function(){return g1(o)&&i({inst:o}),e(function(){g1(o)&&i({inst:o})})},[e]),lne(n),n}function g1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rne(e,n)}catch(r){return!0}}function cne(e,t){return t()}var une=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?cne:ane;jO.useSyncExternalStore=Eu.useSyncExternalStore!==void 0?Eu.useSyncExternalStore:une;zO.exports=jO;var dne=zO.exports;const fne=ep(dne),{use:r_}=xo,{useSyncExternalStore:pne}=fne,hne=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=Zte(e,t,!0)}),u.useDebugValue(n.current)},mne=new WeakMap;function vx(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=pne(u.useCallback(d=>{const p=gx(e,d,n);return d(),p},[e,n]),()=>{const d=n_(e,r_);try{if(!i&&r.current&&o.current&&!BO(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>n_(e,r_));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&hne(s,a);const c=u.useMemo(()=>new WeakMap,[]);return DO(s,a,c,mne)}const Pa=mx([]),gm={closableContent:"x",padding:!0};function gne(){const e=vx(Pa);return u.createElement(u.Fragment,{},e.length>0&&e.map(t=>u.createElement(vne,ke({key:t.$id},t))))}function vne(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=ke(ke({},gm),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:yne,onClick:()=>_i()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",ke({className:"dialog",style:ke(ke({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){_i()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},Jb(e.icon)),u.createElement("div",{className:"dialog-title"},Jb(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:i}=window,s=e.position;return s&&ke(ke({margin:"1em",position:"absolute"},s[0]<o/2?{left:s[0]}:{right:o-s[0]}),s[1]<i/2?{top:s[1]}:{bottom:i-s[1]})}}function Jb(e){return typeof e=="function"?u.createElement(e):e}function yne(e){e.key==="Escape"&&_i()}function ci(e){const t=Math.random();return e.$id=t,Pa.push(e),n=>{var o;const r=Pa.findIndex(i=>i.$id===t);r<0||(Pa.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function _i(e){var n;let t=Pa.length;for(;t--;){const r=Pa[t];if(!r.reserveClosing)return Pa.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var ka={},jv={},Pu={};const bne={},wne=Object.freeze(Object.defineProperty({__proto__:null,default:bne},Symbol.toStringTag,{value:"Module"})),o_=Az(wne);Object.defineProperty(Pu,"__esModule",{value:!0});var i_=Pu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||o_.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);i_=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=o_,n=r=>o=>t.createHash(r).update(o).digest().buffer;i_=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(jv,"__esModule",{value:!0});jv.SRPParameters=void 0;const Gh=Pu;class ku{constructor(t=ku.PrimeGroup[2048],n=ku.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}jv.SRPParameters=ku;ku.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)}};ku.H={SHA1:Gh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Gh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Gh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Gh.crossEnvCrypto.hashFunctions.SHA512};var Hv={},Vv={};(function(e){var t=bn&&bn.__awaiter||function(w,S,k,_){function I(T){return T instanceof k?T:new k(function(O){O(T)})}return new(k||(k=Promise))(function(T,O){function R(B){try{V(_.next(B))}catch(L){O(L)}}function A(B){try{V(_.throw(B))}catch(L){O(L)}}function V(B){B.done?T(B.value):I(B.value).then(R,A)}V((_=_.apply(w,S||[])).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 S=w.toString(16),k=new ArrayBuffer(Math.ceil(S.length/2)),_=new Uint8Array(k);let I=0;S.length%2!==0&&(_[0]=parseInt(S[0],16),I=1);for(let T=0;T<k.byteLength;T++)_[T+I]=parseInt(S.slice(2*T+I,2*T+2+I),16);return k};e.bigIntToArrayBuffer=s;const a=w=>{const S=[];return new Uint8Array(w).forEach(k=>{S.push(("0"+k.toString(16)).slice(-2))}),BigInt(`0x${S.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const d=(w,S)=>{const k=new Uint8Array(w);if(k.length<S){const _=new Uint8Array(S);return _.fill(0,0,S-k.length),_.set(k,S-k.length),_}return k};e.padStartArrayBuffer=d;function p(w,...S){const k=S.reduce((I,T)=>I+T.byteLength,0),_=new Uint8Array(k);for(let I=0,T=0;T<S.length;T++)_.set(new Uint8Array(S[T]),I),I+=S[T].byteLength;return w.H(_)}e.hash=p;function h(w,S,...k){const _=k.map(I=>e.padStartArrayBuffer(I,S));return p(w,..._)}e.hashPadded=h;function m(w=10){const S=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(S),S.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(E(w))}e.generateRandomBigInt=v;function b(w,S,k,_){return t(this,void 0,void 0,function*(){if(!S||!S.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(S,k,_);return w.computeVerifier(I)})}e.createVerifier=b;function g(w,S,k,_){return t(this,void 0,void 0,function*(){const I=yield w.generateRandomSalt(_);return{s:I,v:yield b(w,S,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,S,k){let _=o;for(;S>r;)S%i==o?(_=w*_%k,S-=o):(w=w*w%k,S/=i);return _}e.modPow=C;const E=w=>{const S=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(S),S.buffer}})(Vv);var sl=bn&&bn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Hv,"__esModule",{value:!0});Hv.SRPRoutines=void 0;const rn=Vv;class Cne{constructor(t){this.parameters=t}hash(...t){return rn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return rn.hashPadded(this.parameters,n,...t)}computeK(){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(this.parameters.primeGroup.N),rn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return sl(this,void 0,void 0,function*(){const n=yield rn.hashBitCount(this.parameters),r=t||2*n/8;return rn.generateRandomBigInt(r)})}computeX(t,n,r){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return sl(this,void 0,void 0,function*(){return yield this.hash(rn.stringToArrayBuffer(n))})}computeVerifier(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=rn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(r),rn.bigIntToArrayBuffer(o),rn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return sl(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n),rn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=rn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return rn.modPow(i+s-c,a,s)}}Hv.SRPRoutines=Cne;var Ll={},yx=bn&&bn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.SRPClientSessionStep2=Ll.SRPClientSessionStep1=Ll.SRPClientSession=void 0;class xne{constructor(t){this.routines=t}step1(t,n){return yx(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 Uv(this.routines,t,r)})}}Ll.SRPClientSession=xne;class Uv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return yx(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),d=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new Wv(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Uv(t,n.I,new Uint8Array(n.IH).buffer)}}Ll.SRPClientSessionStep1=Uv;class Wv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return yx(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 Wv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Ll.SRPClientSessionStep2=Wv;var Iu={},Zb=bn&&bn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.SRPServerSessionStep1=Iu.SRPServerSession=void 0;const ew=Vv;class Sne{constructor(t){this.routines=t}step1(t,n,r){return Zb(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=Ene(this.routines.parameters,i,r,o);return new Gv(this.routines,t,n,r,o,s)})}}Iu.SRPServerSession=Sne;class Gv{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return Zb(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 Pne(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Zb(this,void 0,void 0,function*(){if(!n)throw new Error("Client evidence (M1) must not be null");const r=yield this.sessionKey(t);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,t,this.B,r))!==n)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(t,n,r)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(t,n){return new Gv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Iu.SRPServerSessionStep1=Gv;const Ene=(e,t,n,r)=>(ew.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,Pne=(e,t,n,r,o)=>ew.modPow(ew.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=jv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Hv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Ll;Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return r.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return r.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return r.SRPClientSessionStep2}});var o=Iu;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}})})(ka);function kne(e,t,n){return rt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new ka.SRPRoutines(new ka.SRPParameters),c=yield(yield new ka.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),d=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(d.proof)).catch(()=>Promise.reject("trust")),d})}window._=$t;Object.fromEntries(new URLSearchParams(window.location.search).entries());const s_=["","K","M","G","T"];function Na(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<s_.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):$t.round(e,isNaN(r)?e>=100?0:1:r))+" "+(s_[s]||"")+t}function iu(e,t,n=""){return t?e+t+n:""}function Ine(e,t){return new Promise(n=>setTimeout(n,e,t))}function _ne(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 bx(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function $ne(e,t){return!t||t.endsWith(e)?t:t+e}function Tne(e){return!!e}function pp(e){return e.filter(Tne)}function Mne(e,t){return Object.defineProperties(e,bx(t,n=>({enumerable:!1,writable:!0,value:n})))}function l_(e,t){return t(e)}function HO(e,{accept:t="",multiple:n=!0,folder:r=!1}={}){const o=Object.assign(document.createElement("input"),{type:"file",name:"file",accept:t,multiple:n,webkitdirectory:r});o.addEventListener("change",()=>e(o.files)),o.click()}function VO(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:i}=o.target;t(i==null?void 0:i.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function Rne(e){return(e*100).toFixed(1)+"%"}function One(e){return e==null?[]:Array.isArray(e)?e:[e]}function Lne(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function Ane(){return window.innerWidth<800}function UO(){return window.HFS}function Fne(){return UO().prefixUrl||""}function Nne(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function Dne(e){return Ze("MuiLoadingButton",e)}const Bne=Ye("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),bs=Bne,zne=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],jne=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ce(n)}`],endIcon:[t&&`endIconLoading${ce(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ce(n)}`]},i=Ie(o,Dne,r);return P({},r,i)},Hne=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Vne=oe(cr,{shouldForwardProp:e=>Hne(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${bs.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${bs.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>P({[`& .${bs.startIconLoadingStart}, & .${bs.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}),[`&.${bs.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${bs.startIconLoadingStart}, & .${bs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${bs.startIconLoadingStart}, & .${bs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Une=oe("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ce(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>P({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})),Wne=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=se(r,zne),m=On(s),v=c!=null?c:M.jsx(ju,{"aria-labelledby":m,color:"inherit",size:16}),b=P({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:d,variant:p}),g=jne(b),x=a?M.jsx(Une,{className:g.loadingIndicator,ownerState:b,children:v}):null;return M.jsxs(Vne,P({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]}))}),WO=Wne,Gne=u.createContext({}),wx=Gne,Kne=["element"];function qne(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function Yne(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 GO=u.createContext({});function Xne(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const a_=()=>{};function Qne(e){const[,t]=u.useState(),{registerDescendant:n=a_,unregisterDescendant:r=a_,descendants:o=[],parentId:i=null}=u.useContext(GO),s=qne(o,d=>d.element===e.element),a=Xne(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return hn(()=>{if(e.element)return n(P({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function KO(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=se(c,Kne);o(h=>{let m;if(h.length===0)return[P({},p,{element:d,index:0})];const v=Yne(h,d);if(h[v]&&h[v].element===d)m=h;else{const b=P({},p,{element:d,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),m})},[]),s=u.useCallback(c=>{o(d=>d.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return M.jsx(GO.Provider,{value:a,children:t})}function Jne(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext(wx),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 S=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(S&&n(e))&&p(w,e)}},handleSelection:w=>{b||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?d(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||b)&&w.preventDefault()}}}const Zne=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],ere=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:d,onClick:p,onMouseDown:h}=t,m=se(t,Zne),{disabled:v,expanded:b,selected:g,focused:x,handleExpansion:C,handleSelection:E,preventSelection:w}=Jne(d),S=a||s||i,k=I=>{w(I),h&&h(I)},_=I=>{C(I),E(I),p&&p(I)};return M.jsxs("div",P({className:pe(o,r.root,b&&r.expanded,g&&r.selected,x&&r.focused,v&&r.disabled),onClick:_,onMouseDown:k,ref:n},m,{children:[M.jsx("div",{className:r.iconContainer,children:S}),M.jsx("div",{className:r.label,children:c})]}))}),qO=ere;function tre(e){return Ze("MuiTreeItem",e)}const nre=Ye("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),ll=nre,rre=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],ore=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"]},tre,t)},ire=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),sre=oe(qO,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ll.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ll.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ll.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ll.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ll.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ll.label}`]:P({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),lre=oe(HR,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),are=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=qO,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:x,onMouseDown:C,TransitionComponent:E=HR,TransitionProps:w}=r,S=se(r,rre),{icons:k={},focus:_,isExpanded:I,isFocused:T,isSelected:O,isDisabled:R,multiSelect:A,disabledItemsFocusable:V,mapFirstChar:B,unMapFirstChar:L,registerNode:F,unregisterNode:j,treeId:G}=u.useContext(wx);let N=null;v!=null?N=v:G&&g&&(N=`${G}-${g}`);const[z,W]=u.useState(null),q=u.useRef(null),X=Ht(W,n),ie=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:J,parentId:fe}=Qne(ie),Q=!!(Array.isArray(o)?o.length:o),le=I?I(g):!1,ne=T?T(g):!1,he=O?O(g):!1,be=R?R(g):!1,ge=P({},r,{expanded:le,focused:ne,selected:he,disabled:be}),$e=ore(ge);let ze,Ae;Q&&(le?Ae=s||k.defaultCollapseIcon:Ae=p||k.defaultExpandIcon),Q?ze=k.defaultParentIcon:ze=d||k.defaultEndIcon,u.useEffect(()=>{if(F&&j&&J!==-1)return F({id:g,idAttribute:N,index:J,parentId:fe,expandable:Q,disabled:h}),()=>{j(g)}},[F,j,fe,J,g,Q,h,N]),u.useEffect(()=>{if(B&&L&&b)return B(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{L(g)}},[B,L,g,b]);let re;A?re=he:he&&(re=!0);function Oe(ve){if(ve.target===ve.currentTarget){let ot;typeof ve.target.getRootNode=="function"?ot=ve.target.getRootNode():ot=Cn(ve.target),ot.getElementById(G).focus({preventScroll:!0})}const je=!V&&be;!ne&&ve.currentTarget===ve.target&&!je&&_(ve,g)}return M.jsxs(ire,P({className:pe($e.root,i),role:"treeitem","aria-expanded":Q?le:null,"aria-selected":re,"aria-disabled":be||null,ref:X,id:N,tabIndex:-1},S,{ownerState:ge,onFocus:Oe,children:[M.jsx(sre,P({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:Ae,displayIcon:ze,ownerState:ge},c)),o&&M.jsx(KO,{id:g,children:M.jsx(lre,P({as:E,unmountOnExit:!0,className:$e.group,in:le,component:"ul",role:"group"},w,{children:o}))})]}))}),tw=are;function cre(e){return Ze("MuiTreeView",e)}Ye("MuiTreeView",["root"]);const ure=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],dre=e=>{const{classes:t}=e;return Ie({root:["root"]},cre,t)},fre=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function pre(e){return e&&e.length===1&&e.match(/\S/)}function c_(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function u_(){return!1}const hre=[],mre=[],gre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=hre,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=mre,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:x=!1,onBlur:C,onFocus:E,onKeyDown:w,onNodeFocus:S,onNodeSelect:k,onNodeToggle:_,selected:I}=r,T=se(r,ure),R=so().direction==="rtl",A=P({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:x}),V=dre(A),B=On(g),L=u.useRef(null),F=Ht(L,n),[j,G]=u.useState(null),N=u.useRef({}),z=u.useRef({}),[W,q]=Rs({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,ie]=Rs({controlled:I,default:h,name:"TreeView",state:"selected"}),J=u.useCallback(ae=>Array.isArray(W)?W.indexOf(ae)!==-1:!1,[W]),fe=u.useCallback(ae=>N.current[ae]&&N.current[ae].expandable,[]),Q=u.useCallback(ae=>Array.isArray(X)?X.indexOf(ae)!==-1:X===ae,[X]),le=u.useCallback(ae=>{let ye=N.current[ae];if(!ye)return!1;if(ye.disabled)return!0;for(;ye.parentId!=null;)if(ye=N.current[ye.parentId],ye.disabled)return!0;return!1},[]),ne=ae=>j===ae,he=ae=>Object.keys(N.current).map(ye=>N.current[ye]).filter(ye=>ye.parentId===ae).sort((ye,Fe)=>ye.index-Fe.index).map(ye=>ye.id),be=ae=>{let ye=he(ae);return m||(ye=ye.filter(Fe=>!le(Fe))),ye},ge=ae=>{if(J(ae)&&be(ae).length>0)return be(ae)[0];let ye=N.current[ae];for(;ye!=null;){const Fe=be(ye.parentId),dt=Fe[Fe.indexOf(ye.id)+1];if(dt)return dt;ye=N.current[ye.parentId]}return null},$e=ae=>{const ye=N.current[ae],Fe=be(ye.parentId),dt=Fe.indexOf(ae);if(dt===0)return ye.parentId;let st=Fe[dt-1];for(;J(st)&&be(st).length>0;)st=be(st).pop();return st},ze=()=>{let ae=be(null).pop();for(;J(ae);)ae=be(ae).pop();return ae},Ae=()=>be(null)[0],re=ae=>N.current[ae].parentId,Oe=(ae,ye)=>{if(ae===ye)return[ae,ye];const Fe=N.current[ae],dt=N.current[ye];if(Fe.parentId===dt.id||dt.parentId===Fe.id)return dt.parentId===Fe.id?[Fe.id,dt.id]:[dt.id,Fe.id];const st=[Fe.id],He=[dt.id];let wt=Fe.parentId,jt=dt.parentId,xn=He.indexOf(wt)!==-1,lo=st.indexOf(jt)!==-1,Ce=!0,me=!0;for(;!lo&&!xn;)Ce&&(st.push(wt),xn=He.indexOf(wt)!==-1,Ce=wt!==null,!xn&&Ce&&(wt=N.current[wt].parentId)),me&&!xn&&(He.push(jt),lo=st.indexOf(jt)!==-1,me=jt!==null,!lo&&me&&(jt=N.current[jt].parentId));const Ve=xn?wt:jt,ft=he(Ve),Vt=st[st.indexOf(Ve)-1],In=He[He.indexOf(Ve)-1];return ft.indexOf(Vt)<ft.indexOf(In)?[ae,ye]:[ye,ae]},ve=(ae,ye)=>{const[Fe,dt]=Oe(ae,ye),st=[Fe];let He=Fe;for(;He!==dt;)He=ge(He),st.push(He);return st},je=(ae,ye)=>{ye&&(G(ye),S&&S(ae,ye))},ot=(ae,ye)=>je(ae,ge(ye)),pt=(ae,ye)=>je(ae,$e(ye)),Je=ae=>je(ae,Ae()),bt=ae=>je(ae,ze()),lt=(ae,ye,Fe)=>{let dt,st;const He=Fe.toLowerCase(),wt=[],jt=[];Object.keys(z.current).forEach(xn=>{const lo=z.current[xn],Ce=N.current[xn],me=Ce.parentId?J(Ce.parentId):!0,Ve=m?!1:le(xn);me&&!Ve&&(wt.push(xn),jt.push(lo))}),dt=wt.indexOf(ye)+1,dt>=wt.length&&(dt=0),st=c_(jt,dt,He),st===-1&&(st=c_(jt,0,He)),st>-1&&je(ae,wt[st])},mt=(ae,ye=j)=>{let Fe;W.indexOf(ye)!==-1?Fe=W.filter(dt=>dt!==ye):Fe=[ye].concat(W),_&&_(ae,Fe),q(Fe)},ht=(ae,ye)=>{const Fe=N.current[ye],st=he(Fe.parentId).filter(wt=>fe(wt)&&!J(wt)),He=W.concat(st);st.length>0&&(q(He),_&&_(ae,He))},ut=u.useRef(null),Ke=u.useRef(!1),_e=u.useRef([]),Te=(ae,ye)=>{let Fe=X.slice();const{start:dt,next:st,current:He}=ye;!st||!He||(_e.current.indexOf(He)===-1&&(_e.current=[]),Ke.current?_e.current.indexOf(st)!==-1?(Fe=Fe.filter(wt=>wt===dt||wt!==He),_e.current=_e.current.filter(wt=>wt===dt||wt!==He)):(Fe.push(st),_e.current.push(st)):(Fe.push(st),_e.current.push(He,st)),k&&k(ae,Fe),ie(Fe))},Ne=(ae,ye)=>{let Fe=X.slice();const{start:dt,end:st}=ye;Ke.current&&(Fe=Fe.filter(jt=>_e.current.indexOf(jt)===-1));let He=ve(dt,st);He=He.filter(jt=>!le(jt)),_e.current=He;let wt=Fe.concat(He);wt=wt.filter((jt,xn)=>wt.indexOf(jt)===xn),k&&k(ae,wt),ie(wt)},Ue=(ae,ye)=>{let Fe;X.indexOf(ye)!==-1?Fe=X.filter(dt=>dt!==ye):Fe=[ye].concat(X),k&&k(ae,Fe),ie(Fe)},Se=(ae,ye)=>{const Fe=x?[ye]:ye;k&&k(ae,Fe),ie(Fe)},Le=(ae,ye,Fe=!1)=>ye?(Fe?Ue(ae,ye):Se(ae,ye),ut.current=ye,Ke.current=!1,_e.current=[],!0):!1,We=(ae,ye,Fe=!1)=>{const{start:dt=ut.current,end:st,current:He}=ye;Fe?Te(ae,{start:dt,next:st,current:He}):dt!=null&&st!=null&&Ne(ae,{start:dt,end:st}),Ke.current=!0},at=(ae,ye)=>{ut.current||(ut.current=ye);const Fe=Ke.current?ut.current:ye;We(ae,{start:Fe,end:Ae()})},Ot=(ae,ye)=>{ut.current||(ut.current=ye);const Fe=Ke.current?ut.current:ye;We(ae,{start:Fe,end:ze()})},sn=(ae,ye)=>{le(ge(ye))||We(ae,{end:ge(ye),current:ye},!0)},gn=(ae,ye)=>{le($e(ye))||We(ae,{end:$e(ye),current:ye},!0)},Hn=ae=>{We(ae,{start:Ae(),end:ze()})},br=u.useCallback(ae=>{const{id:ye,index:Fe,parentId:dt,expandable:st,idAttribute:He,disabled:wt}=ae;N.current[ye]={id:ye,index:Fe,parentId:dt,expandable:st,idAttribute:He,disabled:wt}},[]),wr=u.useCallback(ae=>{const ye=P({},N.current);delete ye[ae],N.current=ye,G(Fe=>Fe===ae&&L.current===Cn(L.current).activeElement?he(null)[0]:Fe)},[]),Or=u.useCallback((ae,ye)=>{z.current[ae]=ye},[]),Nn=u.useCallback(ae=>{const ye=P({},z.current);delete ye[ae],z.current=ye},[]),ln=ae=>(fe(j)&&(J(j)?ot(ae,j):le(j)||mt(ae)),!0),Kn=ae=>{if(J(j)&&!le(j))return mt(ae,j),!0;const ye=re(j);return ye?(je(ae,ye),!0):!1},ss=ae=>{let ye=!1;const Fe=ae.key;if(ae.altKey||ae.currentTarget!==ae.target||!j)return;const dt=ae.ctrlKey||ae.metaKey;switch(Fe){case" ":!v&&!le(j)&&(x&&ae.shiftKey?(We(ae,{end:j}),ye=!0):x?ye=Le(ae,j,!0):ye=Le(ae,j)),ae.stopPropagation();break;case"Enter":le(j)||(fe(j)?(mt(ae),ye=!0):x?ye=Le(ae,j,!0):ye=Le(ae,j)),ae.stopPropagation();break;case"ArrowDown":x&&ae.shiftKey&&!v&&sn(ae,j),ot(ae,j),ye=!0;break;case"ArrowUp":x&&ae.shiftKey&&!v&&gn(ae,j),pt(ae,j),ye=!0;break;case"ArrowRight":R?ye=Kn(ae):ye=ln(ae);break;case"ArrowLeft":R?ye=ln(ae):ye=Kn(ae);break;case"Home":x&&dt&&ae.shiftKey&&!v&&!le(j)&&at(ae,j),Je(ae),ye=!0;break;case"End":x&&dt&&ae.shiftKey&&!v&&!le(j)&&Ot(ae,j),bt(ae),ye=!0;break;default:Fe==="*"?(ht(ae,j),ye=!0):x&&dt&&Fe.toLowerCase()==="a"&&!v?(Hn(ae),ye=!0):!dt&&!ae.shiftKey&&pre(Fe)&&(lt(ae,j,Fe),ye=!0)}ye&&(ae.preventDefault(),ae.stopPropagation()),w&&w(ae)},Mi=ae=>{if(ae.target===ae.currentTarget){const ye=Array.isArray(X)?X[0]:X;je(ae,ye||be(null)[0])}E&&E(ae)},ls=ae=>{G(null),C&&C(ae)},as=N.current[j]?N.current[j].idAttribute:null;return M.jsx(wx.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:je,toggleExpansion:mt,isExpanded:J,isExpandable:fe,isFocused:ne,isSelected:Q,isDisabled:le,selectNode:v?u_:Le,selectRange:v?u_:We,multiSelect:x,disabledItemsFocusable:m,mapFirstChar:Or,unMapFirstChar:Nn,registerNode:br,unregisterNode:wr,treeId:B},children:M.jsx(KO,{children:M.jsx(fre,P({role:"tree",id:B,"aria-activedescendant":as,"aria-multiselectable":x,className:pe(V.root,i),ref:F,tabIndex:0,onKeyDown:ss,onFocus:Mi,onBlur:ls,ownerState:A},T,{children:o}))})})}),YO=gre;function Jr(m){var v=m,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=v,h=nn(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 E=S=>u.createElement(fp,ke(kt(ke({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;(d==null?void 0:d(_))!==!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:ke({startAdornment:a&&u.createElement(og,{position:"start"},a),endAdornment:c&&u.createElement(og,{position:"end"},c)},h.InputProps)}),S));return p?u.createElement(nx,{freeSolo:!0,options:p,renderInput:E}):E(null);function w(S,k=g){const _=k.trim();_!==C.current&&(C.current=_,t(_,{was:e,event:S,cancel(){x(b)}}))}}function ns(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=nn(a,["value","onChange","getApi","options","sx"]);return u.createElement(fp,kt(ke(ke({},XO(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function Cx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=nn(a,["value","onChange","getApi","options","sx"]);return u.createElement(fp,kt(ke(ke({},XO(kt(ke({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let d=c.target.value;d=Array.isArray(d)?d.map(p=>JSON.parse(p)):[],n(d,{was:t,event:c})}catch(d){}}}))}function XO(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(ur,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function vm(r){var o=r,{value:e,empty:t="-"}=o,n=nn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Jr,kt(ke({},n),{value:e,disabled:!0}))}function Es(d){var p=d,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=nn(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(Jr,ke({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=nn(g,["was"]);t(h?Number(h):null,kt(ke({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:$t.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(og,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function wi(c){var d=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=d,a=nn(d,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement(EO,kt(ke({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(et,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(iO,ke({label:e,control:v,labelPlacement:"end"},a.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(Av,{error:i},o))}function vre({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),d={padding:".5em 1em",fontWeight:"bold"};return u.createElement(qn,{container:!0},u.createElement(qn,{item:!0,xs:o,sx:d},n),u.createElement(qn,{item:!0,xs:i,sx:d},r),u.createElement(qn,{item:!0,xs:s},u.createElement(lr,{onClick(){a.current.focus()}},u.createElement(ax))),Object.entries(e||{}).map(([p,h])=>[u.createElement(qn,{key:"k",item:!0,xs:o},u.createElement(Jr,{value:p,onChange(m,g){var x=g,{was:v}=x,b=nn(x,["was"]);const C=ke({},e);m&&(C[m]=v!==void 0?C[v]:""),v!==void 0&&delete C[v],t(C,ke({was:e},b))}})),u.createElement(qn,{key:"v",item:!0,xs:i},u.createElement(Jr,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var x=g,{was:v}=x,b=nn(x,["was"]);const C=ke({},e);m?C[p]=m:delete C[p],t(C,ke({was:e},b))}})),u.createElement(qn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(lr,{onClick(m){const v=ke({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(os)))]),u.createElement(qn,{item:!0,xs:o},u.createElement(Jr,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(kt(ke({},e),{[p]:""}),kt(ke({},h),{was:e}))}}})),u.createElement(qn,{item:!0,xs:i},u.createElement(Jr,{value:"",onChange(){},disabled:!0})))}function hp(b){var g=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:d,saveOnEnter:p,gridProps:h,formProps:m}=g,v=nn(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,E]=u.useState({}),[w,S]=u.useState({}),k=typeof o=="function"?{onClick:o}:o,[_,I]=u.useState(0),T=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void B(),[_]);const R={};return u.createElement("form",kt(ke({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(et,ke({display:"flex",flexDirection:"column",gap:3},v),u.createElement(qn,ke({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((L,F)=>{if(!L)return null;if(u.isValidElement(L))return u.createElement(qn,{key:F,item:!0,xs:12},L);const ie=L,{k:j,fromField:G=Gc.identity,toField:N=Gc.identity,getError:z,error:W}=ie,q=nn(ie,["k","fromField","toField","getError","error"]);let X=C[j]||W||w[j];if(X===!0&&(X="Not valid"),j){const fe=L.hasOwnProperty("value")?L.value:t==null?void 0:t[j],Q=ke(ke({},L),q);Object.assign(q,{value:N(fe),error:!!(X||W)||void 0,getApi(le){R[j]=le},onBlur(){V(j)},onKeyDown(le){p&&le.key==="Enter"&&A()},onChange(le){try{if(le=G(le),S(ne=>kt(ke({},ne),{[j]:!1})),Gc.isEqual(le,fe))return;n(le,j),V(j)}catch(ne){S(he=>kt(ke({},he),{[j]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement(et,{color:"text.primary",component:"span",display:"block"},q.helperText)):X),q.label===void 0&&(q.label=QO(j)),Gc.defaults(q,r==null?void 0:r(Q))}{const J=q,{xs:fe=12,sm:Q,md:le,lg:ne,xl:he,comp:be=Jr,before:ge,after:$e,fromField:ze,toField:Ae}=J,re=nn(J,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(re,{name:j}),u.createElement(qn,{key:j||F,item:!0,xs:fe,sm:Q,md:le,lg:ne,xl:he},ge,u.isValidElement(be)?be:u.createElement(be,re),$e)}})),k&&u.createElement(et,{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(WO,kt(ke({variant:"contained",startIcon:u.createElement(OO),children:"Save",loading:_!==0},k),{onClick:A})),...s)));function A(){T.current=!0,V()}function V(L=""){_===0&&(O.current=L,setTimeout(()=>I(F=>F===0?1:F)))}function B(){return rt(this,null,function*(){var j,G;if(_===0)return;if(_===1)return I(2);const L="Please review errors",F={};for(const N of e){if(!N||u.isValidElement(N)||!N.k)continue;const{k:z}=N,W=t==null?void 0:t[z],q=(yield(j=R[z])==null?void 0:j.getError())||(yield(G=N.getError)==null?void 0:G.call(N,W,{values:t,fields:e}))||w[z];if(F[z]=q||!1,!T.current&&z===O.current)break;if(!x.current)return}E(F);try{if(!T.current)return;if(Object.values(F).some(Boolean))return yield d==null?void 0:d(L);const N=k&&k.onClick;N&&(yield N())}catch(N){yield d==null?void 0:d(N)}finally{T.current=!1,x.current&&I(0)}})}}function QO(e){return Gc.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function JO(){return uO("(prefers-color-scheme: dark)")}const yre={};function bre(){const e=JO()?null:yre;return u.useMemo(()=>VC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}gm.Container=function(t){const n=u.useRef(),{width:r,height:o}=Gte(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const v=m.querySelector("[autofocus]")||m.querySelector("input,textarea");v&&v instanceof HTMLElement&&v.focus()});return()=>clearTimeout(h)},[n.current]);const s=xx();t=ke(ke({},gm),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=nn(p,["sx","root"]);return gm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(CY,kt(ke(ke({open:!0,maxWidth:"lg",fullScreen:i},d),c),{onClose:()=>_i()}),t.title&&u.createElement(AY,{sx:ke({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(et,{flex:1,minWidth:40},Jb(t.title)),u.createElement(An,{icon:Bv,title:"close",onClick:()=>_i()})),u.createElement(TY,{ref:n,sx:ke({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function xx(){return JO()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const ZO={error:cx,warning:fx,info:lg,success:_O};function fn(e,t){return rt(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=nn(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=ci(kt(ke({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(et,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(lr,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(Bv)),(c=r.icon)!=null?c:u.createElement(ZO[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(et,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function Hs(i){return rt(this,arguments,function*(e,r={}){var o=r,{href:t}=o,n=nn(o,["href"]);return new Promise(a=>ci(kt(ke({className:"dialog-confirm",icon:"?",onClose:a},n),{Content:s})));function s(){return u.createElement(u.Fragment,{},u.createElement(et,{mb:2},e),u.createElement(Vf,{},u.createElement("a",{href:t,onClick:()=>_i(!0)},u.createElement(cr,{variant:"contained"},"Confirm")),u.createElement(cr,{onClick:()=>_i(!1)},"Don't")))}})}function Hf(r){return rt(this,null,function*(){var o=r,{form:e,values:t}=o,n=nn(o,["form","values"]);return new Promise(s=>ci(kt(ke({className:"dialog-confirm",icon:"?",onClose:s},n),{Content:i})));function i(){const[s,a]=u.useState(t||{}),h=typeof e=="function"?e(s):e,{onChange:c,before:d}=h,p=nn(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(hp,kt(ke({},p),{values:s,set(m,v){const b=kt(ke({},s),{[v]:m});a(b),c==null||c(b,{setValues:a})},save:kt(ke({},p.save),{onClick(){_i(s)}})})))}})}function wre(n){return rt(this,arguments,function*(e,t={}){return Hf(kt(ke({},t),{form:{fields:[ke({k:"text",label:null,autoFocus:!0,before:u.createElement(et,{mb:2},e)},t.field)],save:ke({children:"Continue",startIcon:u.createElement(xte)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(cr,{onClick:_i},"Cancel"),...t.addToBar||[]]}})).then(r=>r==null?void 0:r.text)})}function oo(e,t="info"){const r=ci({Content:o,dialogProps:{PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(et,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(ZO[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function eL(){return u.createElement(ju)}function Cre(e){return e&&/^[a-zA-Z]:$/.test(e)}function Sx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Sx(r,t[n]))}function Kv(e){return e?{outline:"2px solid"}:void 0}function An(d){var p=d,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=nn(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=Yr(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(lr,kt(ke({disabled:!!(h||o||r)},c),{onClick(...g){return rt(this,null,function*(){if(a&&!(yield Hs(a)))return;const x=n==null?void 0:n.apply(this,g);x&&x instanceof Promise&&(m(!0),x.catch(fn).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(et,{position:"relative",display:"inline-block"},u.createElement(ju,kt(ke({},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(Vu,kt(ke({title:e},s),{children:u.createElement("span",{},v)}))),v}function df(d){var p=d,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=nn(p,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=Yr(!1);typeof r=="string"&&(t=r,r=!0),i&&(n=()=>window.open(i));let v=u.createElement(WO,kt(ke({variant:"contained",startIcon:u.createElement(e),loading:!!(h||o),loadingPosition:"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(ju,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},c),{onClick(...g){return rt(this,null,function*(){if(a&&!(yield Hs(a)))return;const x=n==null?void 0:n.apply(this,g);x&&x instanceof Promise&&(m(!0),x.catch(fn).finally(()=>m(!1)))})}}));return t&&(v=u.createElement(Vu,kt(ke({title:t},s),{children:u.createElement("span",{},v)}))),v}function vo(e,t,n){return u.createElement(Vu,{title:t,children:u.createElement(e,{sx:n})})}function Ex(e){return u.createElement(Xi,ke({component:jM},e))}function Px(e){return u.createElement(et,ke({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function xre(e,t){return rt(this,null,function*(){const r=(yield St("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield St("set_config",{values:{[e]:o}}))})}function Sre(e){return Object.keys(e)}function Ere(e,t){var n;return(n=t[e])!=null?n:e}function Da(e){return uO(t=>t.breakpoints.up(e),{noSsr:!0})}function tL(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function kx(e,t){return u.createElement(An,ke({icon:dx,title:"Reload",onClick:e},t))}const Pre=navigator.platform.match("Mac");function kre(e){return(e.ctrlKey||Pre&&e.metaKey)&&e.key}function nL({icon:e,progress:t,sx:n}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(Vu,{title:Rne(t),children:u.createElement(ju,{value:t*100,variant:"determinate",size:32,sx:n})}))}function Vf(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=nn(s,["gap","vert","children","props"]);return u.createElement(et,ke({sx:ke({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}const rL="https://github.com/rejetto/hfs/",Ire=rL+"/wiki/";function mp(e,t){return Array.isArray(t)&&(t=jf(t)),u.createElement(Xi,{href:Ire+e,target:"help"},t)}function oL(e,t,n,r){let o=e[t];return gx(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const iL="admin_state",cn=mx(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[iL]||null))),sL=["onlinePluginsColumns"],_re=$t.debounce(()=>localStorage[iL]=JSON.stringify($t.pick(cn,sL)),500,{maxWait:1e3});for(const e of sL)oL(cn,e,_re);function Ql(){return vx(cn)}function Ci(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _u(e){return!!e&&!!e[To]}function Ba(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Fre}(e)||Array.isArray(e)||!!e[y_]||!!(!((t=e.constructor)===null||t===void 0)&&t[y_])||Ix(e)||_x(e))}function Uf(e,t,n){n===void 0&&(n=!1),Uu(e)===0?(n?Object.keys:Ox)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Uu(e){var t=e[To];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ix(e)?2:_x(e)?3:0}function nw(e,t){return Uu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $re(e,t){return Uu(e)===2?e.get(t):e[t]}function lL(e,t,n){var r=Uu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tre(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ix(e){return Lre&&e instanceof Map}function _x(e){return Are&&e instanceof Set}function fa(e){return e.o||e.t}function $x(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nre(e);delete t[To];for(var n=Ox(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 Tx(e,t){return t===void 0&&(t=!1),Mx(e)||_u(e)||!Ba(e)||(Uu(e)>1&&(e.set=e.add=e.clear=e.delete=Mre),Object.freeze(e),t&&Uf(e,function(n,r){return Tx(r,!0)},!0)),e}function Mre(){Ci(2)}function Mx(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Qi(e){var t=Dre[e];return t||Ci(18,e),t}function d_(){return Wf}function v1(e,t){t&&(Qi("Patches"),e.u=[],e.s=[],e.v=t)}function ug(e){rw(e),e.p.forEach(Rre),e.p=null}function rw(e){e===Wf&&(Wf=e.l)}function f_(e){return Wf={p:[],l:Wf,h:e,m:!0,_:0}}function Rre(e){var t=e[To];t.i===0||t.i===1?t.j():t.g=!0}function y1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Qi("ES5").S(t,e,r),r?(n[To].P&&(ug(t),Ci(4)),Ba(e)&&(e=dg(t,e),t.l||fg(t,e)),t.u&&Qi("Patches").M(n[To].t,e,t.u,t.s)):e=dg(t,n,[]),ug(t),t.u&&t.v(t.u,t.s),e!==aL?e:void 0}function dg(e,t,n){if(Mx(t))return t;var r=t[To];if(!r)return Uf(t,function(a,c){return p_(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return fg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=$x(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),Uf(i,function(a,c){return p_(e,r,o,a,c,n,s)}),fg(e,o,!1),n&&e.u&&Qi("Patches").N(r,n,e.u,e.s)}return r.o}function p_(e,t,n,r,o,i,s){if(_u(o)){var a=dg(e,o,i&&t&&t.i!==3&&!nw(t.R,r)?i.concat(r):void 0);if(lL(n,r,a),!_u(a))return;e.m=!1}else s&&n.add(o);if(Ba(o)&&!Mx(o)){if(!e.h.D&&e._<1)return;dg(e,o),t&&t.A.l||fg(e,o)}}function fg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Tx(t,n)}function b1(e,t){var n=e[To];return(n?fa(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 ow(e){e.P||(e.P=!0,e.l&&ow(e.l))}function w1(e){e.o||(e.o=$x(e.t))}function iw(e,t,n){var r=Ix(t)?Qi("MapSet").F(t,n):_x(t)?Qi("MapSet").T(t,n):e.O?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:d_(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,d=sw;s&&(c=[a],d=Vd);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):Qi("ES5").J(t,n);return(n?n.A:d_()).p.push(r),r}function Ore(e){return _u(e)||Ci(22,e),function t(n){if(!Ba(n))return n;var r,o=n[To],i=Uu(n);if(o){if(!o.P&&(o.i<4||!Qi("ES5").K(o)))return o.t;o.I=!0,r=m_(n,i),o.I=!1}else r=m_(n,i);return Uf(r,function(s,a){o&&$re(o.t,s)===a||lL(r,s,t(a))}),i===3?new Set(r):r}(e)}function m_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $x(e)}var g_,Wf,Rx=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Lre=typeof Map!="undefined",Are=typeof Set!="undefined",v_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",aL=Rx?Symbol.for("immer-nothing"):((g_={})["immer-nothing"]=!0,g_),y_=Rx?Symbol.for("immer-draftable"):"__$immer_draftable",To=Rx?Symbol.for("immer-state"):"__$immer_state",Fre=""+Object.prototype.constructor,Ox=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Nre=Object.getOwnPropertyDescriptors||function(e){var t={};return Ox(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Dre={},sw={get:function(e,t){if(t===To)return e;var n=fa(e);if(!nw(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||!Ba(r)?r:r===b1(e.t,t)?(w1(e),e.o[t]=iw(e.A.h,r,e)):r},has:function(e,t){return t in fa(e)},ownKeys:function(e){return Reflect.ownKeys(fa(e))},set:function(e,t,n){var r=h_(fa(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=b1(fa(e),t),i=o==null?void 0:o[To];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Tre(n,o)&&(n!==void 0||nw(e.t,t)))return!0;w1(e),ow(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return b1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,w1(e),ow(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=fa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ci(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ci(12)}},Vd={};Uf(sw,function(e,t){Vd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vd.deleteProperty=function(e,t){return Vd.set.call(this,e,t,void 0)},Vd.set=function(e,t,n){return sw.set.call(this,e[0],t,n,e[0])};var Bre=function(){function e(n){var r=this;this.O=v_,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var x=this;g===void 0&&(g=a);for(var C=arguments.length,E=Array(C>1?C-1:0),w=1;w<C;w++)E[w-1]=arguments[w];return c.produce(g,function(S){var k;return(k=i).call.apply(k,[x,S].concat(E))})}}var d;if(typeof i!="function"&&Ci(6),s!==void 0&&typeof s!="function"&&Ci(7),Ba(o)){var p=f_(r),h=iw(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?ug(p):rw(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(g){return v1(p,s),y1(g,p)},function(g){throw ug(p),g}):(v1(p,s),y1(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===aL&&(d=void 0),r.D&&Tx(d,!0),s){var v=[],b=[];Qi("Patches").M(o,d,v,b),s(v,b)}return d}Ci(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(d,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(d,p){s=d,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(d){return[d,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Ba(n)||Ci(8),_u(n)&&(n=Ore(n));var r=f_(this),o=iw(this,n,void 0);return o[To].C=!0,rw(r),o},t.finishDraft=function(n,r){var o=n&&n[To],i=o.A;return v1(i,r),y1(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!v_&&Ci(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=Qi("Patches").$;return _u(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Mo=new Bre,zre=Mo.produce;Mo.produceWithPatches.bind(Mo);Mo.setAutoFreeze.bind(Mo);Mo.setUseProxies.bind(Mo);Mo.applyPatches.bind(Mo);Mo.createDraft.bind(Mo);Mo.finishDraft.bind(Mo);const jre=zre,cL=Fne()+"/~/api/",Hre={loginSrp1:90,get_status:20},uL={};function Vre(e){Object.assign(uL,e)}function St(e,t,n={}){var s,a,c;$t.defaults(n,uL);const r=(s=n.modal)==null?void 0:s.call(n,e,t),o=pL();o&&(t=ke({csrf:o},t));const i=new AbortController;return n.timeout!==!1&&setTimeout(()=>i.abort("timeout"),1e3*((c=(a=Hre[e])!=null?a:n.timeout)!=null?c:10)),Object.assign(fetch(cL+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(d=>rt(this,null,function*(){var h;r==null||r();let p=yield d.text();try{p=JSON.parse(p)}catch(m){}if(console.debug(d.ok?"API":"API FAILED",e,t,">>",p),yield(h=n.onResponse)==null?void 0:h.call(n,d,p),!d.ok)throw new dL(d.status,p||`Failed API ${e}: ${d.statusText}`);return p}),d=>{var p;throw r==null||r(),(p=d==null?void 0:d.message)!=null&&p.includes("fetch")?Error("Network error"):d}),{abort(){i.abort("cancel")}})}class dL extends Error{constructor(t,n){super(n),this.code=t}}function gp(e,t){const[n,r]=Yr(void 0),[o,i]=Yr(void 0),[s,a]=Yr(0),c=u.useRef(),d=u.useRef();u.useEffect(()=>{var b,g;if((b=c.current)==null||b.abort(),r(void 0),i(void 0),!e)return;let h=!1;const m=St(e,t),v=m.then(x=>h||r(x),x=>h||i(x)).finally(()=>c.current=void 0);c.current=Object.assign(v,{abort(){h=!0,m.abort()}}),(g=d.current)==null||g.resolve(v)},[e,JSON.stringify(t),s]);const p=u.useCallback(()=>c.current||a(h=>h+1)||(d.current=Lne()),[a]);return[n,o,p]}function fL(e,t,n){console.debug("API EVENTS",e,t);const r={};for(const s in t){const a=t[s];a!==void 0&&(r[s]=JSON.stringify(a))}const o=pL();o&&(r.csrf=JSON.stringify(o));const i=new EventSource(cL+e+"?"+new URLSearchParams(r));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function pL(){return _ne("csrf")}function Ure(e,t={}){const[n,r]=Yr(void 0),[o,i]=Yr(void 0),[s,a]=Yr(!1);return u.useEffect(()=>{const c=fL(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),d();case"closed":return d();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?d():r(h)}});return()=>{c.close(),d()};function d(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}Vre({onResponse(e,t){return rt(this,null,function*(){if(e.status===401)throw cn.loginRequired=(t==null?void 0:t.any)!==!1||403,new dL(e.status,"Unauthorized")})}});function ko(...e){const[t,n,r]=gp(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(Fo,{severity:"error"},String(n),u.createElement(An,{icon:dx,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?eL():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}function Qa(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=Yr([]),[s,a]=Yr(void 0),[c,d]=Yr(void 0),[p,h]=Yr(!0),[m,v]=Yr(!1),[b,g]=Yr(!0),[x,C]=u.useState(0),E=u.useRef(0);return u.useEffect(()=>{if(!e)return;const k=[],_=$t.debounce(()=>{const O=k.splice(0,1/0);O.length&&i(R=>[...R,...O])},1e3,{maxWait:1e3});d(void 0),v(!0),h(!0),g(!0),i([]);const I=fL(e,t,(O,R)=>{switch(O){case"connected":return h(!1),setTimeout(()=>_.flush());case"error":return d("Connection error"),T();case"closed":return T();case"msg":One(R).forEach(A=>{if(A==="ready"){_.flush(),g(!1);return}if(A.error){A.error===401?cn.loginRequired=A.any!==!1||403:d(tL(A.error));return}if(A.props)return a(A.props);if(A.add){const V=r(A.add);n&&(V.id=++E.current),k.push(V),_();return}if(A.remove){const V=[];for(const B of A.remove){const L=$t.matches(B);$t.isEmpty($t.remove(k,L))&&V.push(L)}if($t.isEmpty(V))return;i(B=>{const L=B.filter(F=>!V.some(j=>j(F)));return L.length<B.length?L:B});return}if(A.update){_.flush(),i(V=>{const B=[...V];for(const{search:L,change:F}of A.update){const j=B.findIndex($t.matches(L));j>=0&&(B[j]=ke(ke({},B[j]),F))}return B});return}console.debug("unknown api event",O,A)}),(I==null?void 0:I.readyState)===(I==null?void 0:I.CLOSED)&&T()}});return()=>I.close();function T(){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:S,reload:w};function w(){C(k=>k+1)}function S(k){i(jre(o,_=>{k(_)}))}}const hL=u.createContext(void 0);function xt(){const e=u.useContext(hL);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
328
+ `));return e}const mL=u.createContext(void 0),Qe=()=>{const e=u.useContext(mL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Ft(e){return Ze("MuiDataGrid",e)}const ee=Ye("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","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","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","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Wre=e=>{const{classes:t}=e;return Ie({root:["main"]},Ft,t)},Gre=oe("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function gL(e){const t=Qe(),n=Wre(t);return M.jsx(Gre,{className:n.root,ownerState:t,children:e.children})}function Kre(e,t){var n=function(S){var k=S.__resizeTriggers__,_=k.firstElementChild,I=k.lastElementChild,T=_.firstElementChild;I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight,T.style.width=_.offsetWidth+1+"px",T.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},r=function(S){return S.offsetWidth!=S.__resizeLast__.width||S.offsetHeight!=S.__resizeLast__.height},o=function(S){if(!(S.target.className.indexOf("contract-trigger")<0&&S.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,S)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),d="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=d[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",x=function(S,k){if(!k.getElementById("muiDetectElementResize")){var _=(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%; }',I=k.constructor.name==="ShadowRoot"?k:S.head||S.getElementsByTagName("head")[0],T=S.createElement("style");T.id="muiDetectElementResize",T.type="text/css",e!=null&&T.setAttribute("nonce",e),T.styleSheet?T.styleSheet.cssText=_:T.appendChild(S.createTextNode(_)),I.appendChild(T)}},C=function(S,k){if(!S.__resizeTriggers__){var _=S.ownerDocument,I=t.getComputedStyle(S);I&&I.position=="static"&&(S.style.position="relative"),x(_,S.getRootNode()),S.__resizeLast__={},S.__resizeListeners__=[],(S.__resizeTriggers__=_.createElement("div")).className="Mui-resizeTriggers",S.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',S.appendChild(S.__resizeTriggers__),n(S),S.addEventListener("scroll",o,!0),a&&(S.__resizeTriggers__.__animationListener__=function(O){O.animationName==v&&n(S)},S.__resizeTriggers__.addEventListener(a,S.__resizeTriggers__.__animationListener__))}S.__resizeListeners__.push(k)},E=function(S,k){if(S.__resizeListeners__.splice(S.__resizeListeners__.indexOf(k),1),!S.__resizeListeners__.length){S.removeEventListener("scroll",o,!0),S.__resizeTriggers__.__animationListener__&&(S.__resizeTriggers__.removeEventListener(a,S.__resizeTriggers__.__animationListener__),S.__resizeTriggers__.__animationListener__=null);try{S.__resizeTriggers__=!S.removeChild(S.__resizeTriggers__)}catch(_){}}};return{addResizeListener:C,removeResizeListener:E}}const qre=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],Yre=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:d,style:p}=t,h=se(t,qre),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),x=pn(()=>{if(g.current){const S=g.current.offsetHeight||0,k=g.current.offsetWidth||0,I=_o(g.current).getComputedStyle(g.current),T=parseInt(I.paddingLeft,10)||0,O=parseInt(I.paddingRight,10)||0,R=parseInt(I.paddingTop,10)||0,A=parseInt(I.paddingBottom,10)||0,V=S-R-A,B=k-T-O;(!s&&m.height!==V||!a&&m.width!==B)&&(v({height:V,width:B}),d&&d({height:V,width:B}))}});hn(()=>{var S;if(g.current=b.current.parentElement,!g)return;const k=_o((S=g.current)!=null?S:void 0),_=Kre(c,k);return _.addResizeListener(g.current,x),x(),()=>{_.removeResizeListener(g.current,x)}},[c,x]);const C={overflow:"visible"},E={};s||(C.height=0,E.height=m.height),a||(C.width=0,E.width=m.width);const w=Ht(b,n);return M.jsx("div",P({ref:w,style:P({},C,p)},h,{children:m.height===null&&m.width===null?null:r(E)}))}),$i=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
329
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Lx=(e,t)=>e;function Xre(e){return e.acceptsApiRef}$i(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Xe=(e,t)=>Xre(t)?t(e):t(e.current.state);var pg="NOT_FOUND";function Qre(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:pg},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Jre(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return pg}function o(a,c){r(a)===pg&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Zre=function(t,n){return t===n};function eoe(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 vL(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Zre:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=eoe(o),d=s===1?Qre(c):Jre(s,c);function p(){var h=d.get(arguments);if(h===pg){if(h=e.apply(null,arguments),a){var m=d.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function toe(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function noe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,b=v.memoizeOptions,g=b===void 0?n:b,x=Array.isArray(g)?g:[g],C=toe(a),E=e.apply(void 0,[function(){return d++,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=E.apply(null,k),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:E,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),w};return o}var roe=noe(vL);const Ps={cache:null};$i(["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 tt=(...e)=>{Ps.cache===null&&(Ps.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;Ps.cache===null&&(Ps.cache={});const{cache:c}=Ps;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const d=roe(...e);return c[s]||(c[s]=new Map),c[s].set(e,d),d(a,s)};return t.acceptsApiRef=!0,t},ooe=e=>{typeof e!="undefined"?Ps.cache&&Ps.cache[e]&&delete Ps.cache[e]:Ps.cache=null},is=e=>e.rows,qv=tt(is,e=>e.totalRowCount),ioe=tt(is,e=>e.loading),soe=tt(is,e=>e.totalTopLevelRowCount),su=tt(is,e=>e.idRowsLookup),Ax=tt(is,e=>e.idToIdLookup),xl=tt(is,e=>e.tree),loe=tt(is,e=>e.groupingName),Fx=tt(is,e=>e.treeDepth),ya=tt(is,e=>e.ids),aoe=tt(is,e=>e==null?void 0:e.additionalRowGroups),vp=tt(aoe,e=>e==null?void 0:e.pinnedRows),coe=tt(vp,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)}),Nx=e=>e.sorting,Dx=tt(Nx,e=>e.sortedRows),Bx=tt(Dx,su,(e,t)=>e.map(n=>({id:n,model:t[n]}))),vi=tt(Nx,e=>e.sortModel),uoe=tt(vi,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),za=e=>e.columns,$u=tt(za,e=>e.all),Wu=tt(za,e=>e.lookup),ki=tt($u,Wu,(e,t)=>e.map(n=>t[n])),$s=tt(za,e=>e.columnVisibilityModel),Rr=tt(ki,$s,(e,t)=>e.filter(n=>t[n.field]!==!1));tt(Rr,e=>e.map(t=>t.field));const ja=tt(Rr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Yv=tt(Rr,ja,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),zx=tt(ki,e=>e.filter(t=>t.filterable)),doe=tt(ki,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));Lx(tt(zx,e=>e.map(t=>t.field)));Lx(tt(Rr,e=>e.length));const foe=Lx(tt(ja,Yv,(e,t)=>({totalWidth:t,positions:e}))),yp=e=>e.filter,Kr=tt(yp,e=>e.filterModel);tt(Kr,e=>e.quickFilterValues);const poe=tt(yp,e=>e.visibleRowsLookup),yL=tt(yp,e=>e.filteredRowsLookup);tt(yp,e=>e.filteredDescendantCountLookup);const Ks=tt(poe,Bx,(e,t)=>t.filter(n=>e[n.id]!==!1)),ff=tt(Ks,e=>e.map(t=>t.id)),hoe=tt(yL,Bx,(e,t)=>t.filter(n=>e[n.id]!==!1)),moe=tt(hoe,e=>e.map(t=>t.id)),bL=tt(Ks,xl,Fx,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),wL=tt(Ks,e=>e.length),CL=tt(bL,e=>e.length),goe=tt(Kr,Wu,(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})}),voe=tt(goe,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),Ja=e=>e.density,yoe=tt(Ja,e=>e.value),bp=tt(Ja,e=>e.rowHeight),xL=tt(Ja,e=>e.headerHeight),jx=tt(Ja,e=>e.headerGroupingMaxDepth),boe=tt(Ja,e=>e.factor),wp=tt(Ja,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function woe(e){var t,n;const r=xt(),o=Qe(),i=Xe(r,wp),[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]);hn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let d=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&d===0&&(d="auto"),s?M.jsx("div",P({style:{height:d,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:d==="auto"?0:void 0}},e)):null}function Coe(){const e=xt(),t=Qe(),n=Xe(e,qv),r=Xe(e,wL),o=Xe(e,ioe),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=M.jsx(t.components.NoRowsOverlay,P({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=M.jsx(t.components.NoResultsOverlay,P({},(d=t.componentsProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=M.jsx(t.components.LoadingOverlay,P({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:M.jsx(woe,{children:a})}function xoe(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=xt(),i=Qe(),s=Xe(o,wp),[a,c]=u.useState(i.disableVirtualization),d=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=d,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 M.jsxs(gL,{children:[M.jsx(Coe,{}),M.jsx(r,{ref:m,innerRef:h}),M.jsx(Yre,{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 M.jsx(n,{ref:v,style:C,disableVirtualization:a})}}),t]})}function Qn(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 Soe 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.state):this.props.children}}function Eoe(e){const{children:t}=e,n=xt(),r=Qn(n,"GridErrorHandler"),o=Qe(),i=n.current.state.error;return M.jsx(Soe,{hasError:i!=null,api:n,logger:r,render:s=>{var a;return M.jsx(gL,{children:M.jsx(o.components.ErrorOverlay,P({},s,i,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function Poe(){var e;const t=xt(),n=Qe(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:M.jsx("div",{ref:r,children:M.jsx(n.components.Footer,P({},(e=n.componentsProps)==null?void 0:e.footer))})}function koe(){var e;const t=xt(),n=Qe(),r=u.useRef(null);return t.current.headerRef=r,M.jsx("div",{ref:r,children:M.jsx(n.components.Header,P({},(e=n.componentsProps)==null?void 0:e.header))})}var $r;(function(e){e.Cell="cell",e.Row="row"})($r||($r={}));var Rt;(function(e){e.Edit="edit",e.View="view"})(Rt||(Rt={}));var Ut;(function(e){e.Edit="edit",e.View="view"})(Ut||(Ut={}));const lu={client:"client",server:"server"};var Br;(function(e){e.And="and",e.Or="or"})(Br||(Br={}));var Cs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(Cs||(Cs={}));var Bi;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Bi||(Bi={}));var xs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(xs||(xs={}));var zi;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(zi||(zi={}));var Gf;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(Gf||(Gf={}));function SL(e){return e.field!==void 0}const EL=e=>e.focus,xi=tt(EL,e=>e.cell),Ioe=tt(EL,e=>e.columnHeader),PL=e=>e.tabIndex,hg=tt(PL,e=>e.cell),kL=tt(PL,e=>e.columnHeader),_oe=["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 C1;function $oe(){return C1===void 0&&document.createElement("div").focus({get preventScroll(){return C1=!0,!1}}),C1}const Toe=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${ce(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return Ie(i,Ft,o)};function Moe(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:d,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:x,disableDragEvents:C,onClick:E,onDoubleClick:w,onMouseDown:S,onMouseUp:k,onKeyDown:_,onDragEnter:I,onDragOver:T}=e,O=se(e,_oe),R=s==null?m:s,A=u.useRef(null),V=u.useRef(null),B=xt(),L=Qe(),F={align:t,showRightBorder:g,isEditable:d,classes:L.classes},j=Toe(F),G=u.useCallback(Q=>le=>{const ne=B.current.getCellParams(p,i||"");B.current.publishEvent(Q,ne,le),k&&k(le)},[B,i,k,p]),N=u.useCallback(Q=>le=>{const ne=B.current.getCellParams(p,i||"");B.current.publishEvent(Q,ne,le),S&&S(le)},[B,i,S,p]),z=u.useCallback((Q,le)=>ne=>{if(!ne.currentTarget.contains(ne.target)||!B.current.getRow(p))return;const he=B.current.getCellParams(p,i||"");B.current.publishEvent(Q,he,ne),le&&le(ne)},[B,i,p]),W={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useEffect(()=>{if(!a||o===Rt.Edit)return;const Q=Cn(B.current.rootElementRef.current);if(A.current&&!A.current.contains(Q.activeElement)){const le=A.current.querySelector('[tabindex="0"]'),ne=V.current||le||A.current;if($oe())ne.focus({preventScroll:!0});else{const he=B.current.getScrollPosition();ne.focus(),B.current.scroll(he)}}},[a,o,B]);let q=O.onFocus;const ie=B.current.getColumn(i).type==="actions",J=()=>{if(n==null){const Q=R==null?void 0:R.toString();return M.jsx("div",{title:Q,className:j.content,children:Q})}return u.isValidElement(n)&&ie?u.cloneElement(n,{focusElementRef:V}):n},fe=C?null:{onDragEnter:z("cellDragEnter",I),onDragOver:z("cellDragOver",T)};return M.jsx("div",P({ref:A,className:pe(b,j.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":x,style:W,tabIndex:(o==="view"||!d)&&!ie?h:-1,onClick:z("cellClick",E),onDoubleClick:z("cellDoubleClick",w),onMouseDown:N("cellMouseDown"),onMouseUp:G("cellMouseUp"),onKeyDown:z("cellKeyDown",_)},fe,O,{onFocus:q,children:J()}))}const Roe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],Ooe=e=>{const{classes:t}=e;return Ie({root:["booleanCell"]},Ft,t)},Loe=e=>{const{value:t}=e,n=se(e,Roe),r=xt(),o=Qe(),i={classes:o.classes},s=Ooe(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return M.jsx(a,P({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))},Aoe=u.memo(Loe),Foe=e=>e.rowNode.isAutoGenerated?"":M.jsx(Aoe,P({},e)),Noe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Doe=e=>{const{classes:t}=e;return Ie({root:["editBooleanCell"]},Ft,t)};function Boe(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=se(e,Noe),d=xt(),p=u.useRef(null),h=On(),[m,v]=u.useState(r),b=Qe(),g={classes:b.classes},x=Doe(g),C=u.useCallback(E=>rt(this,null,function*(){const w=E.target.checked;a&&(yield a(E,w)),v(w),yield d.current.setEditCellValue({id:n,field:o,value:w},E)}),[d,o,n,a]);return u.useEffect(()=>{v(r)},[r]),hn(()=>{s&&p.current.focus()},[s]),M.jsx("label",P({htmlFor:h,className:pe(x.root,i)},c,{children:M.jsx(b.components.BaseCheckbox,P({id:h,inputRef:p,checked:!!m,onChange:C,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const zoe=e=>M.jsx(Boe,P({},e)),joe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],Hoe=oe(zu)({fontSize:"inherit"}),Voe=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Ft,t)};function Uoe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=se(e,joe),d=o.type==="dateTime",p=xt(),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 S;return w==null||Number.isNaN(w.getTime())?S="":S=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:w,formatted:S}},[n,d]),[v,b]=u.useState(m),x={classes:Qe().classes},C=Voe(x),E=u.useCallback(w=>rt(this,null,function*(){const S=w.target.value;let k;if(S==="")k=null;else{const[_,I]=S.split("T"),[T,O,R]=_.split("-");if(k=new Date,k.setFullYear(Number(T),Number(O)-1,Number(R)),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:S}),p.current.setEditCellValue({id:t,field:r,value:k},w)}),[p,r,t,a]);return u.useEffect(()=>{b(w=>{var S,k;return m.parsed!==w.parsed&&((S=m.parsed)==null?void 0:S.getTime())!==((k=w.parsed)==null?void 0:k.getTime())?m:w})},[m]),hn(()=>{i&&h.current.focus()},[i]),M.jsx(Hoe,P({inputRef:h,fullWidth:!0,className:C.root,type:d?"datetime-local":"date",inputProps:P({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:E},c))}const IL=e=>M.jsx(Uoe,P({},e)),Woe=Re(M.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Goe=Re(M.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),b_=Re(M.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),w_=Re(M.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Koe=Re(M.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qoe=Re(M.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"),Yoe=Re(M.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Re(M.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Re(M.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 Xoe=Re(M.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"),Qoe=Re(M.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Joe=Re(M.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Zoe=Re(M.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),eie=Re(M.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),tie=Re(M.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"),x1=Re(M.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"),_L=Re(M.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),nie=Re(M.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Hx=Re(M.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"),$L=Re(M.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"),rie=Re(M.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"),oie=Re(M.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),iie=Re(M.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 Sl(e){return typeof e=="object"&&e!==null?e.value:e}function mg(e,t){if(t===void 0)return;const n=t.find(r=>{const o=Sl(r);return String(o)===String(e)});return Sl(n)}const sie=["item","applyValue","type","apiRef","focusElementRef"],lie=({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,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return M.jsx(o,{value:d,children:h},c)}),TL=500;function Vi(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,sie),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,x]=u.useState(!1),C=On(),E=Qe(),S=(r=(((n=E.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,k=c==="singleSelect"?{select:!0,SelectProps:P({native:S},(o=E.componentsProps)==null?void 0:o.baseSelect),children:lie(d.current.getColumn(s.columnField),d.current,S?"option":ur)}:{},_=u.useCallback(T=>{let O=T.target.value;if(c==="singleSelect"){const R=d.current.getColumn(s.columnField),A=typeof R.valueOptions=="function"?R.valueOptions({field:R.field}):R.valueOptions;O=mg(O,A)}clearTimeout(m.current),b(String(O)),x(!0),m.current=setTimeout(()=>{a(P({},s,{value:O})),x(!1)},TL)},[d,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var T;const O=(T=s.value)!=null?T:"";b(String(O))},[s.value]);const I=g?{endAdornment:M.jsx(Hx,{})}:h.InputProps;return M.jsx(E.components.BaseTextField,P({id:C,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:_,variant:"standard",type:c||"text",InputProps:I,InputLabelProps:{shrink:!0},inputRef:p},k,h,(i=E.componentsProps)==null?void 0:i.baseTextField))}const aie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],cie=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Ft,t)},uie=oe(zu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),die=u.forwardRef((e,t)=>{var n,r;const o=Qe(),{id:i,value:s,field:a,colDef:c,hasFocus:d,debounceMs:p=(n=o.experimentalFeatures)!=null&&n.newEditingApi?200:TL,isProcessingProps:h,onValueChange:m}=e,v=se(e,aie),b=xt(),g=u.useRef(),[x,C]=u.useState(s),E=cie(o),w=u.useCallback(k=>rt(void 0,null,function*(){var _;const I=k.target.value;m&&(yield m(k,I));const T=b.current.getColumn(a);let O=I;T.valueParser&&(_=o.experimentalFeatures)!=null&&_.newEditingApi&&(O=T.valueParser(I,b.current.getCellParams(i,a))),C(O),b.current.setEditCellValue({id:i,field:a,value:O,debounceMs:p,unstable_skipValueParser:!0},k)}),[b,p,a,i,m,(r=o.experimentalFeatures)==null?void 0:r.newEditingApi]),S=b.current.unstable_getEditCellMeta?b.current.unstable_getEditCellMeta(i,a):{};return u.useEffect(()=>{S.changeReason!=="debouncedSetEditCellValue"&&C(s)},[S.changeReason,s]),hn(()=>{d&&g.current.focus()},[d]),M.jsx(uie,P({ref:t,inputRef:g,className:E.root,ownerState:o,fullWidth:!0,type:c.type==="number"?c.type:"text",value:x!=null?x:"",onChange:w,endAdornment:h?M.jsx(Hx,{}):void 0},v))}),fie=e=>M.jsx(die,P({},e)),Vx=e=>e==="Escape",ML=e=>e==="Enter",RL=e=>e==="Tab",OL=e=>e===" ",pie=e=>e.indexOf("Arrow")===0,hie=e=>e==="Home"||e==="End",mie=e=>e.indexOf("Page")===0,lw=e=>e==="Delete"||e==="Backspace";function Xv(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const gie=["Enter","Escape","Tab"],vie=["Enter","Tab"],yie=e=>ML(e.key)||lw(e.key)||Xv(e),bie=e=>gie.indexOf(e)>-1,C_=e=>vie.indexOf(e)>-1,Cp=e=>hie(e)||pie(e)||mie(e)||OL(e),aw=e=>!!e.key,wie=e=>RL(e)||Vx(e),Cie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],xie=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return M.jsx(t,{value:o,children:i},r)};function Sie(e){return!!e.key}function Eie(e){var t,n,r;const o=Qe(),{id:i,value:s,api:a,field:c,row:d,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===$r.Cell}=e,g=se(e,Cie),x=xt(),C=u.useRef(),E=u.useRef(),[w,S]=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:d,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 T=A=>rt(this,null,function*(){var V;S(!1);const B=A.target,L=mg(B.value,I);v&&(yield v(A,L));const F=yield x.current.setEditCellValue({id:i,field:c,value:L},A);if((V=o.experimentalFeatures)!=null&&V.newEditingApi||o.editMode===$r.Row||F===!1)return;if((yield Promise.resolve(x.current.commitCellChange({id:i,field:c},A)))&&(x.current.setCellMode(i,c,"view"),A.key)){const G=x.current.getCellParams(i,c);x.current.publishEvent("cellNavigationKeyDown",G,A)}}),O=(A,V)=>{if(o.editMode===$r.Row){S(!1);return}if(V==="backdropClick"||Vx(A.key)){var B;(B=o.experimentalFeatures)!=null&&B.newEditingApi?x.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):x.current.setCellMode(i,c,"view")}},R=A=>{Sie(A)&&A.key==="Enter"||S(!0)};return hn(()=>{h&&E.current.focus()},[h]),M.jsx(o.components.BaseSelect,P({ref:C,inputRef:E,value:s,onChange:T,open:w,onOpen:R,MenuProps:{onClose:O},error:m,native:_,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:I.map(A=>xie(A,_?"option":ur))}))}const Pie=e=>M.jsx(Eie,P({},e)),kie=["open","target","onClickAway","children","position","className","onExited"],Iie=e=>{const{classes:t}=e;return Ie({root:["menu"]},Ft,t)},_ie=oe(qa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ee.menuList}`]:{outline:0}})),$ie={"bottom-start":"top left","bottom-end":"top right"},LL=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=se(e,kie),p=xt(),h=u.useRef(r),m=u.useRef(n),v=Qe(),b=Iie(v);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const x=n?"menuOpen":"menuClose";p.current.publishEvent(x,{target:r}),m.current=n,h.current=r},[p,n,r]);const g=x=>C=>{x&&x(),c&&c(C)};return M.jsx(_ie,P({as:v.components.BasePopper,className:pe(a,b.root),ownerState:v,open:n,anchorEl:r,transition:!0,placement:s},d,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:x,placement:C})=>M.jsx(IR,{onClickAway:o,mouseEvent:"onMouseDown",children:M.jsx(rg,P({},x,{style:{transformOrigin:$ie[C]},onExited:g(x==null?void 0:x.onExited),children:M.jsx(ai,{children:i})}))})}))},Tie=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Mie=e=>typeof e.getActions=="function",Rie=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=se(e,Tie),[c,d]=u.useState(-1),[p,h]=u.useState(!1),m=xt(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),x=u.useRef({}),C=On(),E=On(),w=Qe();if(u.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([L,F])=>{F==null||F.stop({},()=>{delete x.current[L]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),u.useEffect(()=>{r||(d(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||d(0)}}),[]),!Mie(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const S=t.getActions(m.current.getRowParams(n)),k=S.filter(L=>!L.props.showInMenu),_=S.filter(L=>L.props.showInMenu),I=k.length+(_.length?1:0);u.useEffect(()=>{c>=I&&d(I-1)},[c,I]);const T=()=>{h(!0),d(I-1),g.current=!0},O=()=>{h(!1)},R=L=>F=>{x.current[L]=F},A=(L,F)=>j=>{d(L),g.current=!0,F&&F(j)},V=L=>{if(I<=1)return;let F=c;L.key==="ArrowRight"?F+=1:L.key==="ArrowLeft"&&(F-=1),!(F<0||F>=I)&&F!==c&&(L.preventDefault(),L.stopPropagation(),d(F))},B=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Enter","Escape"].includes(L.key)&&O()};return M.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:ee.actionsCell,onKeyDown:V},a,{children:[k.map((L,F)=>u.cloneElement(L,{key:F,touchRippleRef:R(F),onClick:A(F,L.props.onClick),tabIndex:c===F?o:-1})),_.length>0&&E&&M.jsx(lr,{ref:b,id:E,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":C,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:T,touchRippleRef:R(E),tabIndex:c===k.length?o:-1,children:M.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),_.length>0&&M.jsx(LL,{onClickAway:O,onClick:O,open:p,target:b.current,position:i,children:M.jsx(Dv,{id:C,className:ee.menuList,onKeyDown:B,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:_.map((L,F)=>u.cloneElement(L,{key:F}))})})]}))},Oie=e=>M.jsx(Rie,P({},e)),Lie=["field","align","width","contentWidth"],Aie=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ce(t)}`]};return Ie(r,Ft,n)};function Fie(e){const{align:t,width:n,contentWidth:r}=e,o=se(e,Lie),s={classes:Qe().classes,align:t},a=Aie(s);return M.jsx("div",P({className:a.root,style:{width:n}},o,{children:M.jsx(_Z,{width:`${r}%`})}))}const Nie=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ee.autoHeight}`]:t.autoHeight},{[`&.${ee.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ee["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ee["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ee["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ee.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${ee.editBooleanCell}`]:t.editBooleanCell},{[`& .${ee["cell--editing"]}`]:t["cell--editing"]},{[`& .${ee["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ee["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ee["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ee["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ee.cell}`]:t.cell},{[`& .${ee.cellContent}`]:t.cellContent},{[`& .${ee.cellCheckbox}`]:t.cellCheckbox},{[`& .${ee.cellSkeleton}`]:t.cellSkeleton},{[`& .${ee.checkboxInput}`]:t.checkboxInput},{[`& .${ee["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ee["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ee["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ee["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ee["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ee["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ee["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ee["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ee.columnHeader}`]:t.columnHeader},{[`& .${ee.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ee.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ee.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ee["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ee["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ee.columnSeparator}`]:t.columnSeparator},{[`& .${ee.filterIcon}`]:t.filterIcon},{[`& .${ee.iconSeparator}`]:t.iconSeparator},{[`& .${ee.menuIcon}`]:t.menuIcon},{[`& .${ee.menuIconButton}`]:t.menuIconButton},{[`& .${ee.menuOpen}`]:t.menuOpen},{[`& .${ee.menuList}`]:t.menuList},{[`& .${ee["row--editable"]}`]:t["row--editable"]},{[`& .${ee["row--editing"]}`]:t["row--editing"]},{[`& .${ee["row--dragging"]}`]:t["row--dragging"]},{[`& .${ee.row}`]:t.row},{[`& .${ee.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ee.rowReorderCell}`]:t.rowReorderCell},{[`& .${ee["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ee.sortIcon}`]:t.sortIcon},{[`& .${ee.withBorder}`]:t.withBorder},{[`& .${ee.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ee.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ee.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ee["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?Bs(ct(e.palette.divider,1),.88):Ds(ct(e.palette.divider,1),.68);return P({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",[`&.${ee.autoHeight}`]:{height:"auto",[`& .${ee["row--lastVisible"]} .${ee.cell}`]:{borderBottomColor:"transparent"}},[`& .${ee["virtualScrollerContent--overflowed"]} .${ee["row--lastVisible"]} .${ee.cell}`]:{borderBottomColor:"transparent"},[`& .${ee.columnHeader}, & .${ee.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ee.columnHeader}:focus-within, & .${ee.cell}:focus-within`]:{outline:`solid ${ct(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ee.columnHeader}:focus, & .${ee.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ee.columnHeaderCheckbox}, & .${ee.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ee.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--sorted"]} .${ee.iconButtonContainer}, & .${ee["columnHeader--filtered"]} .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}) .${ee.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}):hover .${ee.sortIcon}`]:{opacity:.5},[`& .${ee.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ee.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--filledGroup"]} .${ee.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ee["columnHeader--filledGroup"]}.${ee["columnHeader--showColumnBorder"]} .${ee.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ee["columnHeader--filledGroup"]}.${ee["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ee.sortIcon}, & .${ee.filterIcon}`]:{fontSize:"inherit"},[`& .${ee["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ee["columnHeader--alignCenter"]} .${ee.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ee["columnHeader--alignRight"]} .${ee.columnHeaderDraggableContainer}, & .${ee["columnHeader--alignRight"]} .${ee.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ee["columnHeader--alignCenter"]} .${ee.menuIcon}, & .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ee["columnHeader--alignRight"]} .${ee.menuIcon}, & .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ee["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${ee.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${ee["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ee["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ee["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ee["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ee.iconSeparator}`]:{color:"inherit"},[`& .${ee.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${ee.columnHeader}:hover`]:{[`& .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${ee.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ee.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:ct(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ct(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ee.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${ee.row}:not(.${ee["row--dynamicHeight"]}) > .${ee.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ee.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ee.cell}.${ee["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"}},[`& .${ee["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ee["row--editing"]} .${ee.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${ee.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ee.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${ee.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${ee.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ee.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${ee["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ee.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${ee.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${ee["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ee["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ee["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ee.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ee.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ee["columnHeader--dragging"]}, & .${ee["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${ee["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${ee.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ee.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ee.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Die=["children","className"],Bie=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${ce(n)}`]};return Ie(o,Ft,r)},zie=u.forwardRef(function(t,n){const r=Qe(),{children:o,className:i}=t,s=se(t,Die),a=xt(),c=Xe(a,Rr),d=Xe(a,qv),p=Xe(a,yoe),h=Xe(a,jx),m=u.useRef(null),v=Ht(m,n),b=Xe(a,coe),g=P({},r,{density:p}),x=Bie(g);a.current.rootElementRef=m;const[C,E]=u.useState(!1);return hn(()=>{E(!0)},[]),hn(()=>{C&&a.current.unstable_updateGridDimensionsRef()},[a,C]),C?M.jsx(Nie,P({ref:v,className:pe(i,x.root),ownerState:g,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+d,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),jie=["className"],Hie=e=>{const{classes:t}=e;return Ie({root:["footerContainer"]},Ft,t)},Vie=oe("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"?Bs(ct(e.palette.divider,1),.88):Ds(ct(e.palette.divider,1),.68)}`})),Uie=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,jie),i=Qe(),s=Hie(i);return M.jsx(Vie,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Wie=["className"],Gie=e=>{const{classes:t}=e;return Ie({root:["overlay"]},Ft,t)},Kie=oe("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:ct(e.palette.background.default,e.palette.action.disabledOpacity)})),Qv=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Wie),i=Qe(),s=Gie(i);return M.jsx(Kie,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),qie=["className"],Yie=e=>{const{classes:t}=e;return Ie({root:["iconButtonContainer"]},Ft,t)},Xie=oe("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),AL=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,qie),i=Qe(),s=Yie(i);return M.jsx(Xie,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Qie=e=>{const{classes:t}=e;return Ie({icon:["sortIcon"]},Ft,t)};function Jie(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?M.jsx(o,P({fontSize:"small",className:n},i)):null}function Zie(e){const{direction:t,index:n,sortingOrder:r}=e,o=xt(),i=Qe(),s=P({},e,{classes:i.classes}),a=Qie(s),c=Jie(i.components,t,a.icon,r);if(!c)return null;const d=M.jsx(lr,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return M.jsxs(AL,{children:[n!=null&&M.jsx(qR,{badgeContent:n,color:"default",children:d}),n==null&&d]})}const ese=u.memo(Zie),tse=e=>{const{classes:t,open:n}=e;return Ie({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Ft,t)},nse=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=xt(),a=Qe(),c=P({},e,{classes:a.classes}),d=tse(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return M.jsx("div",{className:d.root,children:M.jsx(lr,{ref:i,tabIndex:-1,className:d.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:M.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function rse({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=xt(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?M.jsx(LL,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:M.jsx(n,P({currentColumn:d,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function ose(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function ise(e,t){return e.closest(`.${t}`)}function Ux(e){return e.replace(/["\\]/g,"\\$&")}function sse(e,t){return e.querySelector(`[role="columnheader"][data-field="${Ux(t)}"]`)}function FL(e){return`.${ee.row}[data-id="${Ux(String(e))}"]`}function lse(e,t){return e.querySelector(FL(t))}function ase(e,{id:t,field:n}){const r=FL(t),o=`.${ee.cell}[data-field="${Ux(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}const cse=["className"],use=e=>{const{classes:t}=e;return Ie({root:["columnHeaderTitle"]},Ft,t)},dse=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),fse=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,cse),i=Qe(),s=use(i);return M.jsx(dse,P({ref:n,className:pe(s.root,r),ownerState:i},o))});function pse(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Qe(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const d=ose(s.current);c(d?n:"")}},[s,o,r,n]),M.jsx(i.components.BaseTooltip,P({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:M.jsx(fse,{ref:s,children:n})}))}const hse=["resizable","resizing","height","side"];var cw;(function(e){e.Left="left",e.Right="right"})(cw||(cw={}));const mse=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ce(o)}`],icon:["iconSeparator"]};return Ie(i,Ft,r)};function gse(e){const{height:t,side:n=cw.Right}=e,r=se(e,hse),o=Qe(),i=P({},e,{side:n,classes:o.classes}),s=mse(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return M.jsx("div",P({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:M.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const vse=u.memo(gse),yse=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],NL=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:b,width:g,columnMenuIconButton:x=null,columnMenu:C=null,columnTitleIconButtons:E=null,headerClassName:w,label:S,resizable:k,draggableContainerProps:_,columnHeaderSeparatorProps:I,disableHeaderSeparator:T}=t,O=se(t,yse),R=xt(),A=Qe(),V=u.useRef(null),[B,L]=u.useState(o),F=Ht(V,n);let j="none";return c!=null&&(j=c==="asc"?"ascending":"descending"),u.useEffect(()=>{B||L(o)},[B,o]),u.useLayoutEffect(()=>{const G=R.current.state.columnMenu;if(d&&!G.open){const z=V.current.querySelector('[tabindex="0"]')||V.current;z==null||z.focus(),R.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[R,d]),M.jsxs("div",P({ref:F,className:pe(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":j,"aria-label":v==null?S:void 0},O,{children:[M.jsxs("div",P({className:r.draggableContainer,draggable:m},_,{children:[M.jsxs("div",{className:r.titleContainer,children:[M.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:M.jsx(pse,{label:S,description:b,columnWidth:g})}),E]}),x]})),!T&&M.jsx(vse,P({resizable:!A.disableColumnResize&&!!k,resizing:a,height:s,side:h},I)),C]}))}),bse=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,d=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",d&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ie(p,Ft,n)};function wse(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:d,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:x,extendRowFullWidth:C,disableReorder:E,separatorSide:w}=e,S=xt(),k=Qe(),_=u.useRef(null),I=On(),T=On(),O=u.useRef(null),[R,A]=u.useState(a),{hasScrollX:V,hasScrollY:B}=(t=S.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},L=u.useMemo(()=>!k.disableColumnReorder&&!E&&!s.disableReorder,[k.disableColumnReorder,E,s.disableReorder]);let F;s.renderHeader&&(F=s.renderHeader(S.current.getColumnHeaderParams(s.field)));const G=h?!(h&&V&&!B)&&!C:k.showColumnRightBorder,N=P({},e,{classes:k.classes,showRightBorder:G}),z=bse(N),W=u.useCallback(ge=>$e=>{$e.currentTarget.contains($e.target)&&S.current.publishEvent(ge,S.current.getColumnHeaderParams(s.field),$e)},[S,s.field]),q=u.useMemo(()=>({onClick:W("columnHeaderClick"),onDoubleClick:W("columnHeaderDoubleClick"),onMouseOver:W("columnHeaderOver"),onMouseOut:W("columnHeaderOut"),onMouseEnter:W("columnHeaderEnter"),onMouseLeave:W("columnHeaderLeave"),onKeyDown:W("columnHeaderKeyDown"),onFocus:W("columnHeaderFocus"),onBlur:W("columnHeaderBlur")}),[W]),X=u.useMemo(()=>L?{onDragStart:W("columnHeaderDragStart"),onDragEnter:W("columnHeaderDragEnter"),onDragOver:W("columnHeaderDragOver"),onDragEnd:W("columnHeaderDragEnd")}:{},[L,W]),ie=u.useMemo(()=>({onMouseDown:W("columnSeparatorMouseDown")}),[W]);u.useEffect(()=>{R||A(a)},[R,a]);const J=u.useCallback(()=>{A(!1)},[]),fe=!k.disableColumnMenu&&!s.disableColumnMenu&&M.jsx(nse,{column:s,columnMenuId:I,columnMenuButtonId:T,open:R,iconButtonRef:O}),Q=M.jsx(rse,{columnMenuId:I,columnMenuButtonId:T,field:s.field,open:a,target:O.current,ContentComponent:k.components.ColumnMenu,contentComponentProps:(n=k.componentsProps)==null?void 0:n.columnMenu,onExited:J}),le=(r=s.sortingOrder)!=null?r:k.sortingOrder,ne=M.jsxs(u.Fragment,{children:[!k.disableColumnFilter&&M.jsx(k.components.ColumnHeaderFilterIconButton,P({field:s.field,counter:b},(o=k.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&M.jsx(ese,{direction:m,index:v,sortingOrder:le})]});u.useLayoutEffect(()=>{const ge=S.current.state.columnMenu;if(g&&!ge.open){const ze=_.current.querySelector('[tabindex="0"]')||_.current;ze==null||ze.focus(),S.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[S,g]);const he=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,be=(i=s.headerName)!=null?i:s.field;return M.jsx(NL,P({ref:_,classes:z,columnMenuOpen:a,colIndex:c,height:d,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:x,separatorSide:w,isDraggable:L,headerComponent:F,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:fe,columnTitleIconButtons:ne,headerClassName:he,label:be,resizable:!k.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:Q,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const gg=e=>e.preferencePanel;var Vl;(function(e){e.filters="filters",e.columns="columns"})(Vl||(Vl={}));const Cse=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},Ft,t)};function xse(e){var t;const{counter:n,field:r,onClick:o}=e,i=xt(),s=Qe(),a=P({},e,{classes:s.classes}),c=Cse(a),d=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=gg(i.current.state);m&&v===Vl.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=M.jsx(lr,{onClick:d,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:M.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return M.jsx(s.components.BaseTooltip,P({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:M.jsxs(AL,{children:[n>1&&M.jsx(qR,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const Sse=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],Ese=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Ft,t)},Pse=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=se(t,Sse),h=xt(),m=Qe(),v={classes:m.classes},b=Ese(v),g=u.useRef(null),x=u.useRef(),C=Ht(g,n),E=h.current.getCellElement(i,o),w=I=>{const T={value:I.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",T,I)};u.useLayoutEffect(()=>{d===0&&E&&(E.tabIndex=-1)},[E,d]),u.useEffect(()=>{if(c){var I;const T=(I=g.current)==null?void 0:I.querySelector("input");T==null||T.focus({preventScroll:!0})}else x.current&&x.current.stop({})},[c]);const S=u.useCallback(I=>{OL(I.key)&&I.stopPropagation(),Cp(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:M.jsx(m.components.BaseCheckbox,P({ref:C,tabIndex:d,checked:s,onChange:w,className:b.root,inputProps:{"aria-label":_},onKeyDown:S,disabled:!k,touchRippleRef:x},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),kse=Pse,Go=e=>e.selection,Ise=tt(Go,e=>e.length),_se=tt(Go,su,(e,t)=>new Map(e.map(n=>[n,t[n]]))),vg=tt(Go,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Gu=e=>e.pagination,Ud=tt(Gu,e=>e.page),pf=tt(Gu,e=>e.pageSize);tt(Gu,e=>e.pageCount);const Wx=tt(Gu,xl,Fx,Ks,bL,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],d=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){const v=r[h],b=t[v.id].depth;(m<d||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),$se=tt(Ks,Wx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),DL=tt(ff,Wx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Tse=["field","colDef"],Mse=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Ft,t)},Rse=u.forwardRef(function(t,n){var r;const o=se(t,Tse),[,i]=u.useState(!1),s=xt(),a=Qe(),c={classes:a.classes},d=Mse(c),p=Xe(s,kL),h=Xe(s,Go),m=Xe(s,ff),v=Xe(s,DL),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(T=>s.current.getRow(T)?a.isRowSelectable(s.current.getRowParams(T)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((O,R)=>(O[R]=!0,O),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),x=u.useMemo(()=>b.filter(T=>g[T]).length,[b,g]),C=x>0&&x<Object.keys(g).length,E=x>0,w=T=>{const O={value:T.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",O)},S=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const T=s.current.getColumnHeaderElement(t.field);S===0&&T&&(T.tabIndex=-1)},[S,s,t.field]);const k=u.useCallback(T=>{T.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!E}),Cp(T.key)&&!T.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,T)},[s,t,E]),_=u.useCallback(()=>{i(T=>!T)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",_),[s,_]);const I=s.current.getLocaleText(E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return M.jsx(a.components.BaseCheckbox,P({ref:n,indeterminate:C,checked:E,onChange:w,className:d.root,inputProps:{"aria-label":I},tabIndex:S,onKeyDown:k},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),Ose=e=>{const{onClick:t}=e,n=xt(),r=Qe(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Vl.columns)},[n,t]);return r.disableColumnSelector?null:M.jsx(ur,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},Lse=e=>{const{column:t,onClick:n}=e,r=xt(),o=Qe(),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:M.jsx(ur,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},Ase=["hideMenu","currentColumn","open","id","labelledby","className","children"],Fse=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,d=se(t,Ase),p=u.useCallback(h=>{RL(h.key)&&h.preventDefault(),wie(h.key)&&r(h)},[r]);return M.jsx(Dv,P({id:i,ref:n,className:pe(ee.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},d,{children:c}))}),Nse=$i(["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"),BL=(e,t)=>t&&e.length>1?(Nse(),[e[0]]):e,x_=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:BL(e,t)})}),Dse=e=>e==="desc",Bse=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Dse(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}},zse=(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),jse=(e,t)=>{const n=e.map(r=>Bse(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)=>zse(n,o,i)).map(o=>o.node.id)},S_=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Gx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Hse=new Intl.Collator,Vse=(e,t)=>{const n=Gx(e,t);return n!==null?n:typeof e=="string"?Hse.compare(e.toString(),t.toString()):e-t},zL=(e,t)=>{const n=Gx(e,t);return n!==null?n:Number(e)-Number(t)},jL=(e,t)=>{const n=Gx(e,t);return n!==null?n:e>t?1:e<t?-1:0};function Use(e){return typeof e=="number"}function HL(e){return typeof e=="function"}function Wse(){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 ym(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Tu=(e,t,n)=>Math.max(t,Math.min(n,e));function Os(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(!Os(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(!Os(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(!Os(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gse(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Kse(e,t,n){const r=Gse(e);return()=>t+(n-t)*r()}function VL(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const qse=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function UL(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=se(e,qse),m={color:s,error:a,helperText:c,size:d,variant:p},[v,b]=u.useState(t.value||[]),g=On(),x=Qe();u.useEffect(()=>{var E;const w=(E=t.value)!=null?E:[];b(w.map(String))},[t.value]);const C=u.useCallback((E,w)=>{b(w.map(String)),n(P({},t,{value:[...w]}))},[n,t]);return M.jsx(nx,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(E,w)=>{const{inputValue:S}=w;return S==null||S===""?[]:[S]},id:g,value:v,onChange:C,renderTags:(E,w)=>E.map((S,k)=>M.jsx(_v,P({variant:"outlined",size:"small",label:S},w({index:k})))),renderInput:E=>{var w;return M.jsx(x.components.BaseTextField,P({},E,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},E.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=x.componentsProps)==null?void 0:w.baseTextField))}},h))}const Yse=e=>{if(!e)return null;const t=new RegExp(ym(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},Xse=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(ym(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Vi},{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:Vi},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${ym(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Vi},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${ym(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Vi},{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:UL}],Ul={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:Vse,type:"string",align:"left",filterOperators:Xse(),renderEditCell:fie,getApplyQuickFilterFn:Yse},Kx="actions",Qse=P({},Ul,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Oie,getApplyQuickFilterFn:void 0}),Jse=["item","applyValue","apiRef","focusElementRef"];function Zse(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,d=se(e,Jse),[p,h]=u.useState(i.value||""),m=Qe(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":ur,x=u.useCallback(C=>{const E=C.target.value;h(E),s(P({},i,{value:E}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),M.jsxs(m.components.BaseTextField,P({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:x,select:!0,variant:"standard",SelectProps:P({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},d,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[M.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),M.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),M.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const ele=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>!!n===t},InputComponent:Zse}];function tle({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const WL=P({},Ul,{type:"boolean",align:"center",headerAlign:"center",renderCell:Foe,renderEditCell:zoe,sortComparator:zL,valueFormatter:tle,filterOperators:ele(),getApplyQuickFilterFn:void 0,aggregable:!1}),al="__check__",xp=P({},WL,{field:al,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>vg(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>M.jsx(Rse,P({},e)),renderCell:e=>M.jsx(kse,P({},e))}),nle=["item","applyValue","type","apiRef","focusElementRef","InputProps"],rle=500;function Pc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,d=se(e,nle),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=On(),x=Qe(),C=u.useCallback(E=>{const w=E.target.value;clearTimeout(p.current),m(String(w)),b(!0),p.current=setTimeout(()=>{o(P({},r,{value:w})),b(!1)},rle)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var E;const w=(E=r.value)!=null?E:"";m(String(w))},[r.value]),M.jsx(x.components.BaseTextField,P({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:P({},v?{endAdornment:M.jsx(Hx,{})}:{},c,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},d,(n=x.componentsProps)==null?void 0:n.baseTextField))}const ole=/(\d+)-(\d+)-(\d+)/,ile=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function kc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?ile:ole).slice(1).map(Number),d=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(),d);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,d)}}const GL=e=>[{value:"is",getApplyFilterFn:t=>kc(t,(n,r)=>n===r,e),InputComponent:Pc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>kc(t,(n,r)=>n!==r,e),InputComponent:Pc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>kc(t,(n,r)=>n>r,e),InputComponent:Pc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>kc(t,(n,r)=>n>=r,e),InputComponent:Pc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>kc(t,(n,r)=>n<r,e,!e),InputComponent:Pc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>kc(t,(n,r)=>n<=r,e),InputComponent:Pc,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 sle({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function lle({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const ale=P({},Ul,{type:"date",sortComparator:jL,valueFormatter:sle,filterOperators:GL(),renderEditCell:IL,getApplyQuickFilterFn:void 0}),cle=P({},Ul,{type:"dateTime",sortComparator:jL,valueFormatter:lle,filterOperators:GL(!0),renderEditCell:IL,getApplyQuickFilterFn:void 0}),fl=e=>e==null?null:Number(e),ule=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>fl(t)===fl(e),dle=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>fl(t)===e.value,InputComponent:Vi,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>fl(t)!==e.value,InputComponent:Vi,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:fl(t)>e.value,InputComponent:Vi,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:fl(t)>=e.value,InputComponent:Vi,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:fl(t)<e.value,InputComponent:Vi,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:fl(t)<=e.value,InputComponent:Vi,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:UL,InputComponentProps:{type:"number"}}],fle=P({},Ul,{type:"number",align:"right",headerAlign:"right",sortComparator:zL,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Use(e)?e.toLocaleString():e||"",filterOperators:dle(),getApplyQuickFilterFn:ule}),ple=["item","applyValue","type","apiRef","focusElementRef"],hle=({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,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return M.jsx(o,{value:d,children:h},c)});function E_(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,ple),[m,v]=u.useState((t=s.value)!=null?t:""),b=On(),g=Qe(),C=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,E=s.columnField?d.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(E!==null)return typeof E.valueOptions=="function"?E.valueOptions({field:E.field}):E.valueOptions},[E]),S=u.useCallback(k=>{let _=k.target.value;_=mg(_,w),v(String(_)),a(P({},s,{value:_}))},[a,s,w]);return u.useEffect(()=>{var k;let _;if(w!==void 0){if(_=mg(s.value,w),_!==s.value){a(P({},s,{value:_}));return}}else _=s.value;_=(k=_)!=null?k:"",v(String(_))},[s,w,a]),M.jsx(g.components.BaseTextField,P({id:b,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:S,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:P({native:C},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:hle(d.current.getColumn(s.columnField),d.current,C?"option":ur)}))}const mle=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],gle=(e,t)=>Sl(e)===Sl(t),vle=BR();function yle(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:d="standard"}=e,p=se(e,mle),h={color:i,error:s,helperText:a,size:c,variant:d},m=On(),v=Qe(),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(Sl),[g]),{valueFormatter:C,field:E}=r.current.getColumn(t.columnField),w=_=>typeof _=="object"?_.label:C&&_!==""?C({value:_,field:E,api:r.current}):_,S=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(I=>{const T=Sl(I);return(x==null?void 0:x.findIndex(R=>R===T))||0}).filter(I=>I>=0).map(I=>g[I]):t.value:[],[t.value,g,x]);u.useEffect(()=>{(!Array.isArray(t.value)||S.length!==t.value.length)&&n(P({},t,{value:S.map(Sl)}))},[t,S,n]);const k=u.useCallback((_,I)=>{n(P({},t,{value:[...I.map(Sl)]}))},[n,t]);return M.jsx(nx,P({multiple:!0,options:g,isOptionEqualToValue:gle,filterOptions:vle,id:m,value:S,onChange:k,renderTags:(_,I)=>_.map((T,O)=>M.jsx(_v,P({variant:"outlined",size:"small",label:w(T)},I({index:O})))),renderInput:_=>{var I;return M.jsx(v.components.BaseTextField,P({},_,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},_.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(I=v.componentsProps)==null?void 0:I.baseTextField))}},p))}const pl=e=>e==null||typeof e!="object"?e:e.value,ble=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[pl(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let d,p;typeof c=="object"?(d=c.value,p=c.label):(d=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(d)||s.push(d.toString()))}),({value:c})=>c!=null?s.includes(pl(c).toString()):!1},wle=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>pl(t)===pl(e.value),InputComponent:E_},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>pl(t)!==pl(e.value),InputComponent:E_},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(pl);return({value:n})=>t.includes(pl(n))},InputComponent:yle}],Cle=P({},Ul,{type:"singleSelect",renderEditCell:Pie,filterOperators:wle(),getApplyQuickFilterFn:ble}),yg="__default__",xle=()=>({string:Ul,number:fle,date:ale,dateTime:cle,boolean:WL,singleSelect:Cle,[Kx]:Qse,[yg]:Ul}),KL=["maxWidth","minWidth","width","flex"],qL=(e={})=>{const t=P({},xle());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=P({},t[n],r):t[n]=P({},t[r.extendType||yg],r)}),t};function Sle({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(d=>{s-=r.all[d].computedWidth,a-=r.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(d=>{r.freeze(d)}):c>0?Object.keys(i.min).forEach(d=>{r.freeze(d)}):n.forEach(({field:d})=>{r.freeze(d)}),o()}return o(),r.all}const YL=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=P({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let d;c.flex&&c.flex>0?(r+=c.flex,d=0,i.push(c)):d=Tu(c.width,c.minWidth,c.maxWidth),o+=d,c.computedWidth=d}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=Sle({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return P({},e,{lookup:n})},Ele=(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=P({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=P({},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}},Ple=(e,t)=>!t||!e[t]?e[yg]:e[t],Oc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=$s(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,d,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const S=za(e.current.state);m={all:s?[]:[...S.all],lookup:P({},S.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((S,k)=>P({},S,{[k]:!1}),{}));const b={};t.forEach(S=>{const{field:k}=S;b[k]=!0,v[k]=!0;let _=m.lookup[k];_==null?(_=P({},Ple(r,S.type),{field:k,hasBeenResized:!1}),m.all.push(k)):s&&m.all.push(k);let I=_.hasBeenResized;KL.forEach(T=>{S[T]!==void 0&&(I=!0,S[T]===-1&&(S[T]=1/0))}),m.lookup[k]=P({},_,{hide:S.hide==null?!1:S.hide},S,{hasBeenResized:I})}),s&&!h&&Object.keys(m.lookup).forEach(S=>{v[S]||delete m.lookup[S]});const g=P({},m.lookup),x=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let C={};if(i){let S=!1;const k=P({},o);h?x.all.forEach(_=>{k[_]=!m.lookup[_].hide}):s&&Object.keys(k).forEach(_=>{x.lookup[_]||(delete k[_],S=!0)}),x.all.forEach(_=>{if(!b[_]&&g[_]===x.lookup[_])return;let I=o[_];I===void 0&&(h?I=!0:I=!!za(e.current.state).lookup[_]);const T=!x.lookup[_].hide;T!==I&&(S=!0,k[_]=T)}),S||h?C=k:C=o}else C=o;const E=Ele(x,n),w=P({},E,{columnVisibilityModel:C});return YL(w,(a=(c=(d=e.current).getRootDimensions)==null||(p=c.call(d))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},P_=e=>t=>P({},t,{columns:e});function uw({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,d=t.current.unstable_getCellColSpanInfo(c,e);d&&d.spannedByColSpan&&(i=d.leftVisibleCellIndex)}return i}function kle({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return uw({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Ile=e=>{const{column:t,onClick:n}=e,r=xt(),o=Qe(),i=u.useRef(),c=Rr(r).filter(p=>p.disableColumnMenu!==!0).length===1,d=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:M.jsx(ur,{onClick:d,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})};function _le(e){var t;const{column:n,onClick:r}=e,o=xt(),i=Xe(o,vi),s=Qe(),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h)},[o,n,r]);return!n||!n.sortable?null:M.jsxs(u.Fragment,{children:[a.includes(null)?M.jsx(ur,{onClick:d,disabled:c==null,children:o.current.getLocaleText("columnMenuUnsort")}):null,a.includes("asc")?M.jsx(ur,{onClick:d,"data-value":"asc",disabled:c==="asc",children:o.current.getLocaleText("columnMenuSortAsc")}):null,a.includes("desc")?M.jsx(ur,{onClick:d,"data-value":"desc",disabled:c==="desc",children:o.current.getLocaleText("columnMenuSortDesc")}):null]})}const $le=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=xt(),s=[M.jsx(_le,{onClick:r,column:o}),M.jsx(Lse,{onClick:r,column:o}),M.jsx(Ile,{onClick:r,column:o}),M.jsx(Ose,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return M.jsx(Fse,P({ref:n},t,{children:a.map((c,d)=>u.cloneElement(c,{key:d,onClick:r,column:o}))}))}),Tle=["className"],Mle=e=>{const{classes:t}=e;return Ie({root:["panelContent"]},Ft,t)},Rle=oe("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function XL(e){const{className:t}=e,n=se(e,Tle),r=Qe(),o=Mle(r);return M.jsx(Rle,P({className:pe(t,o.root),ownerState:r},n))}const Ole=["className"],Lle=e=>{const{classes:t}=e;return Ie({root:["panelFooter"]},Ft,t)},Ale=oe("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function QL(e){const{className:t}=e,n=se(e,Ole),r=Qe(),o=Lle(r);return M.jsx(Ale,P({className:pe(t,o.root),ownerState:r},n))}const Fle=["className"],Nle=e=>{const{classes:t}=e;return Ie({root:["panelHeader"]},Ft,t)},Dle=oe("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Ble(e){const{className:t}=e,n=se(e,Fle),r=Qe(),o=Nle(r);return M.jsx(Dle,P({className:pe(t,o.root),ownerState:r},n))}const zle=["className","slotProps"],jle=e=>{const{classes:t}=e;return Ie({root:["panelWrapper"]},Ft,t)},Hle=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Vle=()=>!0,JL=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=se(t,zle),s=Qe(),a=jle(s);return M.jsx(_R,P({open:!0,disableEnforceFocus:!0,isEnabled:Vle},o.TrapFocus,{children:M.jsx(Hle,P({ref:n,tabIndex:-1,className:pe(r,a.root),ownerState:s},i))}))}),Ule=!1,Wle=["sort","searchPredicate","autoFocusSearchField"],Gle=e=>{const{classes:t}=e;return Ie({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ft,t)},Kle=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),qle=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${kr.root}`]:{marginRight:e.spacing(.5)}})),Yle=oe(lr)({justifyContent:"flex-end"}),k_=new Intl.Collator,Xle=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Qle(e){var t,n,r;const o=xt(),i=u.useRef(null),s=Xe(o,ki),a=Xe(o,$s),c=Qe(),[d,p]=u.useState(""),h=Gle(c),{sort:m,searchPredicate:v=Xle,autoFocusSearchField:b=!0}=e,g=se(e,Wle),x=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((T,O)=>k_.compare(T.headerName||T.field,O.headerName||O.field));case"desc":return[...s].sort((T,O)=>-k_.compare(T.headerName||T.field,O.headerName||O.field));default:return s}},[s,m]),C=T=>{const{name:O}=T.target;o.current.setColumnVisibility(O,a[O]===!1)},E=u.useCallback(T=>{if(o.current.unstable_caches.columns.isUsingColumnVisibilityModel){const O=$s(o),R=P({},O);return s.forEach(A=>{A.hideable&&(T?delete R[A.field]:R[A.field]=!1)}),o.current.setColumnVisibilityModel(R)}return o.current.updateColumns(s.map(O=>O.hideable!==!1?{field:O.field,hide:!T}:O))},[o,s]),w=u.useCallback(T=>{p(T.target.value)},[]),S=u.useMemo(()=>{if(!d)return x;const T=d.toLowerCase();return x.filter(O=>v(O,T))},[x,d,v]),k=u.useRef(null);u.useEffect(()=>{b?i.current.focus():k.current&&typeof k.current.focus=="function"&&k.current.focus()},[b]);let _=!1;const I=T=>_===!1&&T.hideable!==!1?(_=!0,!0):!1;return M.jsxs(JL,P({},g,{children:[M.jsx(Ble,{children:M.jsx(c.components.BaseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:w,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),M.jsx(XL,{children:M.jsx(Kle,{className:h.root,ownerState:c,children:S.map(T=>{var O;return M.jsxs(qle,{className:h.columnsPanelRow,ownerState:c,children:[M.jsx(iO,{control:M.jsx(c.components.BaseSwitch,P({disabled:T.hideable===!1,checked:a[T.field]!==!1,onClick:C,name:T.field,size:"small",inputRef:I(T)?k:void 0},(O=c.componentsProps)==null?void 0:O.baseSwitch)),label:T.headerName||T.field}),!c.disableColumnReorder&&Ule&&M.jsx(Yle,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:M.jsx($L,{})})]},T.field)})})}),M.jsxs(QL,{children:[M.jsx(c.components.BaseButton,P({onClick:()=>E(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),M.jsx(c.components.BaseButton,P({onClick:()=>E(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Jle=["children","className","classes"],Zle=Ye("MuiDataGrid",["panel","paper"]),eae=oe(qa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),tae=oe(ai,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),nae=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=se(e,Jle),s=xt(),a=Qe(),c=Zle,[d,p]=u.useState(!1),h=u.useCallback(()=>{s.current.hidePreferences()},[s]),m=u.useCallback(g=>{Vx(g.key)&&s.current.hidePreferences()},[s]),v=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{p(!0)},effect:()=>()=>{p(!1)}}],[]),b=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return b?M.jsx(eae,P({ref:t,placement:"bottom-start",className:pe(o,c.panel),ownerState:a,anchorEl:b,modifiers:v},i,{children:M.jsx(IR,{mouseEvent:"onMouseUp",onClickAway:h,children:M.jsx(tae,{className:c.paper,ownerState:a,elevation:8,onKeyDown:m,children:d&&r})})})):null}),rae=u.forwardRef(function(t,n){var r,o,i;const s=xt(),a=Xe(s,ki),c=Qe(),d=Xe(s,gg),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Vl.filters);return M.jsx(c.components.Panel,P({ref:n,as:c.components.BasePopper,open:a.length>0&&d.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),oae=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],iae=["InputComponentProps"],sae=e=>{const{classes:t}=e;return Ie({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ft,t)},lae=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),aae=oe(Xa,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),cae=oe(Xa,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),uae=oe(Xa,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),dae=oe(Xa,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),fae=oe(Xa,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),pae=e=>{switch(e){case Br.And:return"filterPanelOperatorAnd";case Br.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},Rd=e=>e.headerName||e.field,I_=new Intl.Collator,hae=u.forwardRef(function(t,n){var r,o,i,s,a,c,d;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:C,focusElementRef:E,linkOperators:w=[Br.And,Br.Or],columnsSort:S,deleteIconProps:k={},linkOperatorInputProps:_={},operatorInputProps:I={},columnInputProps:T={},valueInputProps:O={}}=t,R=se(t,oae),A=xt(),V=Xe(A,zx),B=On(),L=On(),F=On(),j=On(),G=Qe(),N=sae(G),z=u.useRef(null),W=u.useRef(null),q=h&&w.length>0,X=((r=G.componentsProps)==null?void 0:r.baseFormControl)||{},J=(i=(((o=G.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,fe=J?"option":ur,{InputComponentProps:Q}=O,le=se(O,iae),ne=u.useMemo(()=>{switch(S){case"asc":return V.sort((re,Oe)=>I_.compare(Rd(re),Rd(Oe)));case"desc":return V.sort((re,Oe)=>-I_.compare(Rd(re),Rd(Oe)));default:return V}},[V,S]),he=p.columnField?A.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var re;return!p.operatorValue||!he?null:(re=he.filterOperators)==null?void 0:re.find(Oe=>Oe.value===p.operatorValue)},[p,he]),ge=u.useCallback(re=>{const Oe=re.target.value,ve=A.current.getColumn(Oe);if(ve.field===he.field)return;const je=ve.filterOperators.find(pt=>pt.value===p.operatorValue)||ve.filterOperators[0],ot=!je.InputComponent||je.InputComponent!==(be==null?void 0:be.InputComponent);v(P({},p,{columnField:Oe,operatorValue:je.value,value:ot?void 0:p.value}))},[A,v,p,he,be]),$e=u.useCallback(re=>{const Oe=re.target.value,ve=he==null?void 0:he.filterOperators.find(ot=>ot.value===Oe),je=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(be==null?void 0:be.InputComponent);v(P({},p,{operatorValue:Oe,value:je?void 0:p.value}))},[v,p,he,be]),ze=u.useCallback(re=>{const Oe=re.target.value===Br.And.toString()?Br.And:Br.Or;C(Oe)},[C]),Ae=()=>{G.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(P({},p,{value:void 0})):m(p)};return u.useImperativeHandle(E,()=>({focus:()=>{if(be!=null&&be.InputComponent){var re;z==null||(re=z.current)==null||re.focus()}else W.current.focus()}}),[be]),M.jsxs(lae,P({ref:n,className:N.root,ownerState:G},R,{children:[M.jsx(aae,P({variant:"standard",as:G.components.BaseFormControl},X,k,{className:pe(N.deleteIcon,X.className,k.className),ownerState:G,children:M.jsx(lr,{"aria-label":A.current.getLocaleText("filterPanelDeleteIconLabel"),title:A.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ae,size:"small",children:M.jsx(G.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),M.jsx(cae,P({variant:"standard",as:G.components.BaseFormControl},X,_,{sx:P({display:q?"flex":"none",visibility:g?"visible":"hidden"},X.sx||{},_.sx||{}),className:pe(N.linkOperatorInput,X.className,_.className),ownerState:G,children:M.jsx(G.components.BaseSelect,P({inputProps:{"aria-label":A.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:ze,disabled:!!x||w.length===1,native:J},(s=G.componentsProps)==null?void 0:s.baseSelect,{children:w.map(re=>M.jsx(fe,{value:re.toString(),children:A.current.getLocaleText(pae(re))},re.toString()))}))})),M.jsxs(uae,P({variant:"standard",as:G.components.BaseFormControl},X,T,{className:pe(N.columnInput,X.className,T.className),ownerState:G,children:[M.jsx(Wb,{htmlFor:B,id:L,children:A.current.getLocaleText("filterPanelColumns")}),M.jsx(G.components.BaseSelect,P({labelId:L,id:B,label:A.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:ge,native:J},(a=G.componentsProps)==null?void 0:a.baseSelect,{children:ne.map(re=>M.jsx(fe,{value:re.field,children:Rd(re)},re.field))}))]})),M.jsxs(dae,P({variant:"standard",as:G.components.BaseFormControl},X,I,{className:pe(N.operatorInput,X.className,I.className),ownerState:G,children:[M.jsx(Wb,{htmlFor:F,id:j,children:A.current.getLocaleText("filterPanelOperators")}),M.jsx(G.components.BaseSelect,P({labelId:j,label:A.current.getLocaleText("filterPanelOperators"),id:F,value:p.operatorValue,onChange:$e,native:J,inputRef:W},(c=G.componentsProps)==null?void 0:c.baseSelect,{children:he==null||(d=he.filterOperators)==null?void 0:d.map(re=>M.jsx(fe,{value:re.value,children:re.label||A.current.getLocaleText(`filterOperator${ce(re.value)}`)},re.value))}))]})),M.jsx(fae,P({variant:"standard",as:G.components.BaseFormControl},X,le,{className:pe(N.valueInput,X.className,le.className),ownerState:G,children:be!=null&&be.InputComponent?M.jsx(be.InputComponent,P({apiRef:A,item:p,applyValue:v,focusElementRef:z},be.InputComponentProps,Q)):null}))]}))}),mae=["linkOperators","columnsSort","filterFormProps","children"],gae=u.forwardRef(function(t,n){var r;const o=xt(),i=Qe(),s=Xe(o,Kr),a=Xe(o,zx),c=u.useRef(null),{linkOperators:d=[Br.And,Br.Or],columnsSort:p,filterFormProps:h}=t,m=se(t,mae),v=u.useCallback(S=>{o.current.upsertFilterItem(S)},[o]),b=u.useCallback(S=>{o.current.setFilterLinkOperator(S)},[o]),g=u.useCallback(()=>{const S=a.find(k=>{var _;return(_=k.filterOperators)==null?void 0:_.length});return S?{columnField:S.field,operatorValue:S.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),x=u.useMemo(()=>{if(s.items.length)return s.items;const S=g();return S?[S]:[]},[s.items,g]),C=x.length>1,E=()=>{const S=g();S&&o.current.upsertFilterItems([...x,S])},w=u.useCallback(S=>{const k=x.length===1;o.current.deleteFilterItem(S),k&&o.current.hideFilterPanel()},[o,x.length]);return u.useEffect(()=>{d.length>0&&s.linkOperator&&!d.includes(s.linkOperator)&&b(d[0])},[d,b,s.linkOperator]),u.useEffect(()=>{x.length>0&&c.current.focus()},[x.length]),M.jsxs(JL,P({ref:n},m,{children:[M.jsx(XL,{children:x.map((S,k)=>M.jsx(hae,P({item:S,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:d,columnsSort:p},h),S.id==null?k:S.id))}),!i.disableMultipleColumnsFiltering&&M.jsx(QL,{children:M.jsx(i.components.BaseButton,P({onClick:E,startIcon:M.jsx(_L,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),vae=["hideMenu","options"],yae=["hideMenu","options"],bae=e=>{const t=xt(),{hideMenu:n,options:r}=e,o=se(e,vae);return M.jsx(ur,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},wae=e=>{const t=xt(),{hideMenu:n,options:r}=e,o=se(e,yae);return M.jsx(ur,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Kf=()=>({items:[],linkOperator:Br.And,quickFilterValues:[],quickFilterLogicOperator:Br.And}),Cae=["className","rowCount","visibleRowCount"],xae=e=>{const{classes:t}=e;return Ie({root:["rowCount"]},Ft,t)},Sae=oe("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Eae=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=se(t,Cae),a=xt(),c=Qe(),d=xae(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return M.jsxs(Sae,P({ref:n,className:pe(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),Pae=["className","selectedRowCount"],kae=e=>{const{classes:t}=e;return Ie({root:["selectedRowCount"]},Ft,t)},Iae=oe("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"}})),_ae=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=se(t,Pae),s=xt(),a=Qe(),c=kae(a),d=s.current.getLocaleText("footerRowSelected")(o);return M.jsx(Iae,P({ref:n,className:pe(c.root,r),ownerState:a},i,{children:d}))}),$ae=u.forwardRef(function(t,n){var r;const o=xt(),i=Qe(),s=Xe(o,soe),a=Xe(o,Ise),c=Xe(o,CL),d=!i.hideFooterSelectedRowCount&&a>0?M.jsx(_ae,{selectedRowCount:a}):M.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?M.jsx(Eae,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&M.jsx(i.components.Pagination,P({},(r=i.componentsProps)==null?void 0:r.pagination));return M.jsxs(Uie,P({ref:n},t,{children:[d,p,h]}))}),Tae=u.forwardRef(function(t,n){var r,o;const i=Qe();return M.jsxs("div",P({ref:n},t,{children:[M.jsx(i.components.PreferencesPanel,P({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&M.jsx(i.components.Toolbar,P({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),Mae=u.forwardRef(function(t,n){return M.jsx(Qv,P({ref:n},t,{children:M.jsx(ju,{})}))}),Rae=u.forwardRef(function(t,n){const o=xt().current.getLocaleText("noRowsLabel");return M.jsx(Qv,P({ref:n},t,{children:o}))}),Oae=oe(Ree)(({theme:e})=>({[`& .${Ea.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ea.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Lae=u.forwardRef(function(t,n){var r;const o=xt(),i=Qe(),s=Xe(o,Gu),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]),d=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return M.jsx(Oae,P({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:d,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),Jv=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Wx(e),n=$se(e)):(n=Ks(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Za=(e,t)=>{const n=Jv(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},qx="__detail_panel_toggle__",Aae=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],Fae=["changeReason"],Nae=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"]},Ft,s)},Dae=({width:e})=>{if(!e)return null;const t={width:e};return M.jsx("div",{className:"MuiDataGrid-cell",style:t})},Bae=u.forwardRef(function(t,n){var r;const{selected:o,rowId:i,row:s,index:a,style:c,position:d,rowHeight:p,className:h,visibleColumns:m,renderedColumns:v,containerWidth:b,firstColumnToRender:g,cellFocus:x,cellTabIndex:C,editRowsState:E,isLastVisible:w=!1,onClick:S,onDoubleClick:k,onMouseEnter:_,onMouseLeave:I}=t,T=se(t,Aae),O=xt(),R=u.useRef(null),A=Qe(),V=Za(O,A),B=Xe(O,Yv),L=Xe(O,vi),F=Xe(O,Fx),j=Xe(O,jx),G=Ht(R,n),N=a+j+2,{hasScrollX:z,hasScrollY:W}=(r=O.current.getRootDimensions())!=null?r:{hasScrollX:!1,hasScrollY:!1},q={selected:o,isLastVisible:w,classes:A.classes,editing:O.current.getRowMode(i)===Ut.Edit,editable:A.editMode===$r.Row,rowHeight:p},X=Nae(q);u.useLayoutEffect(()=>{p==="auto"&&R.current&&typeof ResizeObserver=="undefined"&&O.current.unstable_storeRowHeightMeasurement(i,R.current.clientHeight,d)},[O,p,i,d]),u.useLayoutEffect(()=>{if(V.range){const je=O.current.getRowIndexRelativeToVisibleRows(i);je!=null&&O.current.unstable_setLastMeasuredRowIndex(je)}const re=R.current;if(!re||p!=="auto"||typeof ResizeObserver=="undefined")return;const ve=new ResizeObserver(je=>{const[ot]=je,pt=ot.borderBoxSize&&ot.borderBoxSize.length>0?ot.borderBoxSize[0].blockSize:ot.contentRect.height;O.current.unstable_storeRowHeightMeasurement(i,pt,d)});return ve.observe(re),()=>ve.disconnect()},[O,V.range,a,p,i,d]);const ie=u.useCallback((re,Oe)=>ve=>{ve.target.nodeType===1&&!ve.currentTarget.contains(ve.target)||O.current.getRow(i)&&(O.current.publishEvent(re,O.current.getRowParams(i),ve),Oe&&Oe(ve))},[O,i]),J=u.useCallback(re=>{const Oe=ise(re.target,ee.cell),ve=Oe==null?void 0:Oe.getAttribute("data-field");ve&&(ve===xp.field||ve===qx||ve==="__reorder__"||O.current.getCellMode(i,ve)===Rt.Edit||O.current.getColumn(ve).type===Kx)||ie("rowClick",S)(re)},[O,S,ie,i]),fe=u.useCallback((re,Oe)=>{var ve;const je=O.current.getCellParams(i,re.field),ot=[],pt=A.disableColumnReorder&&re.disableReorder||!A.rowReordering&&!!L.length&&F>1&&Object.keys(E).length>0;re.cellClassName&&ot.push(pe(typeof re.cellClassName=="function"?re.cellClassName(je):re.cellClassName));const Je=E[i]?E[i][re.field]:null;let bt=null;if(Je==null&&re.renderCell){var lt;bt=re.renderCell(P({},je,{api:O.current})),ot.push(pe(ee["cell--withRenderer"],(lt=A.classes)==null?void 0:lt["cell--withRenderer"]))}if(Je!=null&&re.renderEditCell){var mt;let Ke=s;O.current.unstable_getRowWithUpdatedValues&&(Ke=O.current.unstable_getRowWithUpdatedValues(i,re.field));const _e=se(Je,Fae),Te=P({},je,{row:Ke},_e,{api:O.current});bt=re.renderEditCell(Te),ot.push(pe(ee["cell--editing"],(mt=A.classes)==null?void 0:mt["cell--editing"]))}A.getCellClassName&&ot.push(A.getCellClassName(je));const ht=x!==null&&x.id===i&&x.field===re.field,ut=C!==null&&C.id===i&&C.field===re.field&&je.cellMode==="view"?0:-1;return M.jsx(A.components.Cell,P({value:je.value,field:re.field,width:Oe.width,rowId:i,height:p,showRightBorder:Oe.showRightBorder,formattedValue:je.formattedValue,align:re.align||"left",cellMode:je.cellMode,colIndex:Oe.indexRelativeToAllColumns,isEditable:je.isEditable,hasFocus:ht,tabIndex:ut,className:pe(ot),colSpan:Oe.colSpan,disableDragEvents:pt},(ve=A.componentsProps)==null?void 0:ve.cell,{children:bt}),re.field)},[O,C,E,x,A,s,p,i,F,L.length]),Q=O.current.unstable_getRowInternalSizes(i);let le=p;if(le==="auto"&&Q){let re=0;const Oe=Object.entries(Q).reduce((ve,[je,ot])=>/^base[A-Z]/.test(je)?(re+=1,ot>ve?ot:ve):ve,0);Oe>0&&re>1&&(le=Oe)}const ne=P({},c,{maxHeight:p==="auto"?"none":p,minHeight:le});if(Q!=null&&Q.spacingTop){const re=A.rowSpacingType==="border"?"borderTopWidth":"marginTop";ne[re]=Q.spacingTop}if(Q!=null&&Q.spacingBottom){const re=A.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Oe=ne[re];typeof Oe!="number"&&(Oe=parseInt(Oe||"0",10)),Oe+=Q.spacingBottom,ne[re]=Oe}const he=O.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof A.getRowClassName=="function"){var be;const re=a-(((be=V.range)==null?void 0:be.firstRowIndex)||0),Oe=P({},O.current.getRowParams(i),{isFirstVisible:re===0,isLastVisible:re===V.rows.length-1,indexRelativeToCurrentPage:re});he.push(A.getRowClassName(Oe))}const ge=Kse(1e4,20,80),$e=[];for(let re=0;re<v.length;re+=1){const Oe=v[re],ve=g+re,je=ve===m.length-1,pt=je?!(je&&z&&!W)&&A.disableExtendRowFullWidth:A.showCellRightBorder,Je=O.current.unstable_getCellColSpanInfo(i,ve);if(Je&&!Je.spannedByColSpan)if(s){const{colSpan:bt,width:lt}=Je.cellProps,mt={width:lt,colSpan:bt,showRightBorder:pt,indexRelativeToAllColumns:ve};$e.push(fe(Oe,mt))}else{const{width:bt}=Je.cellProps,lt=Math.round(ge());$e.push(M.jsx(A.components.SkeletonCell,{width:bt,contentWidth:lt,field:Oe.field,align:Oe.align},Oe.field))}}const ze=b-B,Ae=s?{onClick:J,onDoubleClick:ie("rowDoubleClick",k),onMouseEnter:ie("rowMouseEnter",_),onMouseLeave:ie("rowMouseLeave",I)}:null;return M.jsxs("div",P({ref:G,"data-id":i,"data-rowindex":a,role:"row",className:pe(...he,X.root,h),"aria-rowindex":N,"aria-selected":o,style:ne},Ae,T,{children:[$e,ze>0&&M.jsx(Dae,{width:ze})]}))}),__=1e3;class zae{constructor(t=__){this.timeouts=new Map,this.cleanupTimeout=__,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 jae{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 Wl;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})(Wl||(Wl={}));class Hae{}function Vae(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new jae:new zae);const[a]=u.useState(new Hae),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,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!d.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&d.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,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 Uae={registry:null},De=Vae(Uae),Wae={isFirst:!0};function Dt(e,t,n){De(e,t,n,Wae)}const $_=1,Gae=1.5,Kae=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Ie(r,Ft,n)},qae=oe("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ee["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ee["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ee["scrollArea--left"]}`]:{left:0},[`&.${ee["scrollArea--right"]}`]:{right:0}}));function Yae(e){const{scrollDirection:t}=e,n=u.useRef(null),r=xt(),o=u.useRef(),[i,s]=u.useState(!1),a=Xe(r,xL),c=u.useRef({left:0,top:0}),d=Qe(),p=P({},d,{scrollDirection:t}),h=Kae(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-$_)*Gae+$_,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 De(r,"rowsScroll",m),De(r,"columnHeaderDragStart",b),De(r,"columnHeaderDragEnd",b),i?M.jsx(qae,{ref:n,className:pe(h.root),ownerState:p,onDragOver:v,style:{height:a}}):null}const T_=u.memo(Yae),Xae=({apiRef:e,props:t,children:n})=>M.jsx(mL.Provider,{value:t,children:M.jsx(hL.Provider,{value:e,children:n})}),Qae=Wse()&&window.localStorage.getItem("DEBUG")!=null,Wd=()=>{},Jae={debug:Wd,info:Wd,warn:Wd,error:Wd},M_=["debug","info","warn","error"];function R_(e,t,n=console){const r=M_.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return M_.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=Wd,i),{})}const Zae=(e,t)=>{e.current.getLogger=u.useCallback(n=>Qae?R_(n,"debug",t.logger):t.logLevel?R_(n,t.logLevel.toString(),t.logger):Jae,[t.logLevel,t.logger])};function Yt(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 ece{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 tce=e=>e.isPropagationStopped!==void 0;let O_=0;function nce(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new ece,unstable_caches:{},state:{},instanceId:O_},O_+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,tce(d)&&d.isPropagationStopped())return;const p=t.signature===Wl.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,d,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const d=n.current;return()=>{d.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Yt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{ooe(s.instanceId),s.publishEvent("unmount")}},[n]),n}function rce(e,t){const n=u.useCallback(r=>{e.current.setState(o=>P({},o,{error:r}))},[e]);u.useEffect(()=>{t.error?n({error:t.error}):n(null)},[n,t.error]),De(e,"componentError",n)}const oce=(e,t)=>{const n=u.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.getLocaleText=n};function qf(e){return qf=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},qf(e)}function ice(e,t){if(qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yf(e){var t=ice(e,"string");return qf(t)==="symbol"?t:String(t)}const sce=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(d=>{d()})},[]),r=u.useCallback((c,d,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(d)!==p&&(h.processors.set(d,p),n(h)),()=>{t.current[c].processors.set(d,null)}},[n]),o=u.useCallback((c,d,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[d]=p,()=>{const h=t.current[c].appliers,m=se(h,[d].map(Yf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const d=t.current[c];n(d)},[n]),s=u.useCallback((...c)=>{const[d,p,h]=c;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);Yt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},Sp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},dr=(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]);Sp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Yx=(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]);Sp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Xx=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);Sp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ep="none",L_={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},lce=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const b=n.current[d],g=se(b,[c].map(Yf));n.current[d]=g};n.current[d]||(n.current[d]={});const m=n.current[d],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(L_[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{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(d)},[e]),i=u.useCallback(c=>{var d;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(d=h==null?void 0:h[0])!=null?d:Ep},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Yt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},ace=(e,t,n,r,o)=>{const i=Qn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),d=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(HL(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,d,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,d,o)};e.current.subscribeEvent("unmount",m)}},[t,d,n,s,i,o,e])},cce=["stateId"],uce=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(d=>{const{stateId:p}=d,h=se(d,cce);n.current[p]=P({},h,{stateId:p})},[]),i=u.useCallback((d,p)=>{let h;if(HL(d)?h=d(e.current.state):h=d,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 E=t.signature===Wl.DataGridPro?{api:e.current,reason:p}:{reason:p};x.propOnChange(C,E)}m||e.current.publishEvent(x.changeEvent,C,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((d,p,h)=>e.current.setState(m=>P({},m,{[d]:p(m[d])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Yt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},dce=(e,t)=>{const n=nce(e,t);return Zae(n,t),rce(n,t),uce(n,t),sce(n),lce(n),oce(n,t),n},mo=(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)}}function fce(e){var t;return((t=window.getSelection())==null?void 0:t.toString())!==""?!0:e?(e.selectionEnd||0)-(e.selectionStart||0)>0:!1}const pce=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=>{const i=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!i||fce(o.target)||e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);ace(e,e.current.rootElementRef,"keydown",n),Yt(e,{unstable_copySelectedRowsToClipboard:t})},ZL=e=>e.columnMenu,hce=e=>P({},e,{columnMenu:{open:!1}}),mce=e=>{const t=Qn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===a?d:(t.debug("Opening Column Menu"),P({},d,{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"),P({},c,{columnMenu:P({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=ZL(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Yt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(ee.menuIconButton)||!c.relatedTarget)return;const d=c.relatedTarget.classList.contains(ee.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(d||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);De(e,"columnResizeStart",r),De(e,"columnHeaderFocus",s),De(e,"virtualScrollerWheel",e.current.hideColumnMenu),De(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},gce=(e,t,n)=>{var r,o,i,s,a,c,d;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=qL(t.columnTypes),m=Oc({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||(d=c.columns)==null?void 0:d.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:m})};function vce(e,t){var n,r;const o=Qn(e,"useGridColumns"),i=u.useMemo(()=>qL(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:$s,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(B=>{o.debug("Updating columns state."),e.current.setState(P_(B)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",B.all)},[o,e]),d=u.useCallback(B=>Wu(e)[B],[e]),p=u.useCallback(()=>ki(e),[e]),h=u.useCallback(()=>Rr(e),[e]),m=u.useCallback(()=>foe(e),[e]),v=u.useCallback((B,L=!0)=>(L?Rr(e):ki(e)).findIndex(j=>j.field===B),[e]),b=u.useCallback(B=>{const L=v(B);return ja(e)[L]},[e,v]),g=u.useCallback(B=>{$s(e)!==B&&(e.current.setState(F=>P({},F,{columns:Oc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),x=u.useCallback(B=>{const L=Oc({apiRef:e,columnTypes:i,columnsToUpsert:B,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),C=u.useCallback(B=>e.current.updateColumns([B]),[e]),E=u.useCallback((B,L)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var F;const j=$s(e),G=(F=j[B])!=null?F:!0;if(L!==G){const N=P({},j,{[B]:L});e.current.setColumnVisibilityModel(N)}}else{const j=e.current.getColumn(B),G=P({},j,{hide:!L});e.current.updateColumns([G]);const N={field:B,colDef:G,isVisible:L};e.current.publishEvent("columnVisibilityChange",N)}},[e]),w=u.useCallback((B,L)=>{const F=$u(e),j=F.findIndex(W=>W===B);if(j===L)return;o.debug(`Moving column ${B} to index ${L}`);const G=[...F],N=G.splice(j,1)[0];G.splice(L,0,N),c(P({},za(e.current.state),{all:G}));const z={field:B,element:e.current.getColumnHeaderElement(B),colDef:e.current.getColumn(B),targetIndex:L,oldIndex:j};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),S=u.useCallback((B,L)=>{o.debug(`Updating column ${B} width to ${L}`);const F=e.current.getColumn(B),j=P({},F,{width:L});e.current.updateColumns([j]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(B),colDef:j,width:L})},[e,o]);Yt(e,{getColumn:d,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:C,updateColumns:x,setColumnVisibilityModel:g,setColumnVisibility:E,setColumnIndex:w,setColumnWidth:S});const _=u.useCallback((B,L)=>{const F={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var j,G,N;const q=$s(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((j=(G=t.initialState)==null||(N=G.columns)==null?void 0:N.columnVisibilityModel)!=null?j:{}).length>0||Object.keys(q).length>0)&&(F.columnVisibilityModel=q)}F.orderedFields=$u(e);const z=ki(e),W={};return z.forEach(q=>{if(q.hasBeenResized){const X={};KL.forEach(ie=>{let J=q[ie];J===1/0&&(J=-1),X[ie]=J}),W[q.field]=X}}),Object.keys(W).length>0&&(F.dimensions=W),P({},B,{columns:F})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((B,L)=>{var F;const j=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(F=L.stateToRestore.columns)==null?void 0:F.columnVisibilityModel:void 0,G=L.stateToRestore.columns;if(j==null&&G==null)return B;const N=Oc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:G,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1});return e.current.setState(P_(N)),G!=null&&e.current.publishEvent("columnsChange",N.all),B},[e,i]),T=u.useCallback((B,L)=>{if(L===Vl.columns){var F;const j=t.components.ColumnsPanel;return M.jsx(j,P({},(F=t.componentsProps)==null?void 0:F.columnsPanel))}return B},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);dr(e,"exportState",_),dr(e,"restoreState",I),dr(e,"preferencePanel",T);const O=u.useRef(null);De(e,"viewportInnerSizeChange",B=>{O.current!==B.width&&(O.current=B.width,c(YL(za(e.current.state),B.width)))}),Dt(e,"columnVisibilityChange",t.onColumnVisibilityChange);const A=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const B=Oc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(B)},[e,o,c,i]);Yx(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 B=Oc({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(B)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const yce=e=>e.columnGrouping,eA=tt(yce,e=>e.lookup),bce=["groupId","children"];function wce(e){return e.groupPath!==void 0}const tA=(e,t,n)=>{if(SL(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(`
330
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{tA(i,[...t,r],n)})},nA=e=>{if(!e)return{};const t={};return e.forEach(n=>{tA(n,[],t)}),t},Qx=e=>{let t={};return e.forEach(n=>{if(SL(n))return;const{groupId:r,children:o}=n,i=se(n,bce);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=P({},i,{groupId:r}),a=Qx(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=P({},t,a,{[r]:s})}),P({},t)},Cce=(e,t)=>{var n;const r=Qx((n=t.columnGroupingModel)!=null?n:[]);return P({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},xce=(e,t)=>{var n;const r=u.useCallback(a=>{var c,d;return(c=(d=Wu(e)[a])==null?void 0:d.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>eA(e),[e]);Yt(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 d=Qx((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>P({},p,{columnGrouping:P({},p.columnGrouping,{lookup:d})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},S1=.7,E1=1.3,rA=(e,t,n,r)=>{switch(e){case Gf.Compact:return{value:e,headerHeight:Math.floor(t*S1),rowHeight:Math.floor(n*S1),headerGroupingMaxDepth:r,factor:S1};case Gf.Comfortable:return{value:e,headerHeight:Math.floor(t*E1),rowHeight:Math.floor(n*E1),headerGroupingMaxDepth:r,factor:E1};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Sce=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=nA(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 P({},e,{density:rA(t.density,t.headerHeight,t.rowHeight,n)})},Ece=(e,t)=>{const n=Xe(e,Rr),r=n.length>0?Math.max(...n.map(a=>{var c,d;return(c=(d=a.groupPath)==null?void 0:d.length)!=null?c:0})):0,o=Qn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,d=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=Ja(h),v=rA(a,c,d,p);return Os(m,v)?h:P({},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]),Yt(e,{setDensity:i})};function Pce(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 oA=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
331
+ `,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};$i(["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 kce=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return oA(i.formattedValue,r)});function Ice(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,d)=>`${c}${kce(d,t,r,o).join(o)}\r
332
+ `,"").trim();return i?`${`${t.filter(c=>c.field!==xp.field).map(c=>oA(c.headerName||c.field,o)).join(o)}\r
333
+ `}${s}`.trim():s}const iA=({apiRef:e,options:t})=>{const n=ki(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:Rr(e)).filter(o=>!o.disableExport)},_ce=({apiRef:e})=>{var t,n;const r=moe(e),o=xl(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=vp(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],d=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...d),i.size>0?s.filter(p=>i.has(p)):s},$ce=e=>{const t=Qn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const d=iA({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:_ce)({apiRef:e});return Ice({columns:d,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"});Pce(c,"csv",s==null?void 0:s.fileName)},[t,n]);Yt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:M.jsx(bae,{options:a.csvOptions}),componentName:"csvExport"}]},[]);dr(e,"exportMenu",i)},Xf=e=>e.rowsMeta;function Tce(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Mce(){const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):null}const Rce=(e,t)=>{const n=Qn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=Cn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((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=ki(e),E={};C.forEach(w=>{E[w.field]=x.includes(w.field)}),e.current.setColumnVisibilityModel(E),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return 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;const C=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b),E=v.contentDocument;if(!E)return;const w=wp(e),S=Xf(e.current.state),k=e.current.rootElementRef.current,_=k.cloneNode(!0),I=_.querySelector(`.${ee.virtualScroller}`);I.style.height="auto",I.style.width="auto",I.parentElement.style.width="auto",I.parentElement.style.height="auto";const T=_.querySelector(`.${ee.main}`);T.style.overflow="visible";const O=Mce();O&&O>=108&&(_.style.contain="size");const A=_.querySelector(`.${ee.columnHeaders}`).querySelector(`.${ee.columnHeadersInner}`);A.style.width="100%";let V=((g=k.querySelector(`.${ee.toolbarContainer}`))==null?void 0:g.clientHeight)||0,B=((x=k.querySelector(`.${ee.footerContainer}`))==null?void 0:x.clientHeight)||0;if(C.hideToolbar){var L;(L=_.querySelector(`.${ee.toolbarContainer}`))==null||L.remove(),V=0}if(C.hideFooter){var F;(F=_.querySelector(`.${ee.footerContainer}`))==null||F.remove(),B=0}_.style.height=`${S.currentPageTotalHeight+w+V+B}px`;const j=document.createElement("div");j.appendChild(_),E.body.innerHTML=j.innerHTML;const G=typeof C.pageStyle=="function"?C.pageStyle():C.pageStyle;if(typeof G=="string"){const N=E.createElement("style");N.appendChild(E.createTextNode(G)),E.head.appendChild(N)}if(C.bodyClassName&&E.body.classList.add(...C.bodyClassName.split(" ")),C.copyStyles){const N=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z<N.length;z+=1){const W=N[z];if(W.tagName==="STYLE"){const q=E.createElement(W.tagName),X=W.sheet;if(X){let ie="";for(let J=0;J<X.cssRules.length;J+=1)typeof X.cssRules[J].cssText=="string"&&(ie+=`${X.cssRules[J].cssText}\r
334
+ `);q.appendChild(E.createTextNode(ie)),E.head.appendChild(q)}}else if(W.getAttribute("href")){const q=E.createElement(W.tagName);for(let X=0;X<W.attributes.length;X+=1){const ie=W.attributes[X];ie&&q.setAttribute(ie.nodeName,ie.nodeValue||"")}E.head.appendChild(q)}}}v.contentWindow.print()},[e,r]),d=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=>rt(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=$s(e),t.pagination){const g=wL(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization(),yield Tce();const b=a(v==null?void 0:v.fileName);b.onload=()=>{c(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&d(b)})},r.current.body.appendChild(b)}),[t,n,e,a,c,d,s])};Yt(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:M.jsx(wae,{options:b.printOptions}),componentName:"printExport"}]},[]);dr(e,"exportMenu",m)},Oce=["rowsBeforePartialUpdates"];function Lce(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(`
335
+ `))}const dw=(e,t,n)=>{const r=t?t(e):e.id;return Lce(r,e,n),r},bm=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let i=0;i<e.length;i+=1){const s=e[i],a=dw(s,t);o.idRowsLookup[a]=s,o.idToIdLookup[a]=a,o.ids.push(a)}return o},sA=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=se(o,Oce),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",P({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),d=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return P({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,d)})},lA=(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(...lA(e,c.id,n))}return i};function aA(e){var t,n;const r=vp(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 fw=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=Wu(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Ace=$i(["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"),Fce=$i("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Nce=$i(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),cA=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Ace(),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&&Fce(),s&&Nce(),s||i?P({},e,{items:o.map(a=>fw(a,n))}):e.items!==o?P({},e,{items:o}):e},F_=(e,t,n)=>r=>P({},r,{filterModel:cA(e,t,n)}),uA=(e,t)=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const p=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>p(h)):p(e.value)}else r=e.value;const i=P({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=s.find(p=>p.value===i.operatorValue);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operatorValue}'.`);const c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{fn:p=>{const h=t.current.getCellParams(p,i.columnField);return c(h)},item:i}},Dce=(e,t)=>{const{items:n}=e,r=n.map(o=>uA(o,t)).filter(o=>!!o);return r.length===0?null:(o,i)=>{const s={};return(i?r.filter(c=>i(c.item.columnField)):r).forEach(c=>{s[c.item.id]=c.fn(o)}),s}},Bce=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=$u(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(d=>c(d,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},d=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),d.push(h))});const p={};return i.forEach((h,m)=>{const v=d.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}},zce=(e,t)=>{const n=Dce(e,t),r=Bce(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},jce=(e,t,n,r)=>{var o,i;const s=n.items.filter(h=>uA(h,r)!==null),a=e.filter(h=>h!=null),c=t.filter(h=>h!=null),d=(o=n.quickFilterLogicOperator)!=null?o:Kf().quickFilterLogicOperator,p=(i=n.linkOperator)!=null?i:Kf().linkOperator;if(a.length>0){const h=m=>a.some(v=>v[m.id]);if(p===Br.And){if(!s.every(h))return!1}else if(!s.some(h))return!1}if(c.length>0&&n.quickFilterValues!=null){const h=m=>c.some(v=>v[m]);if(d===Br.And){if(!n.quickFilterValues.every(h))return!1}else if(!n.quickFilterValues.some(h))return!1}return!0},Hce=(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:Kf();return P({},e,{filter:{filterModel:cA(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},Vce=(e,t)=>{var n,r,o;const i=Qn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Kr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(T=>{const O=Kr(T,e.current.instanceId),R=t.filterMode===lu.client?zce(O,e):null,A=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:R,filterModel:O!=null?O:Kf()});return P({},T,{filter:P({},T.filter,A)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback(T=>{const O=Kr(e),R=[...O.items],A=R.findIndex(V=>V.id===T.id);A===-1?R.push(T):R[A]=T,e.current.setFilterModel(P({},O,{items:R}),"upsertFilterItem")},[e]),d=u.useCallback(T=>{const O=Kr(e),R=[...O.items];T.forEach(A=>{const V=T.findIndex(B=>B.id===A.id);V===-1?R.push(A):R[V]=A}),e.current.setFilterModel(P({},O,{items:T}),"upsertFilterItems")},[e]),p=u.useCallback(T=>{const O=Kr(e),R=O.items.filter(A=>A.id!==T.id);R.length!==O.items.length&&e.current.setFilterModel(P({},O,{items:R}),"deleteFilterItem")},[e]),h=u.useCallback(T=>{if(i.debug("Displaying filter panel"),T){const O=Kr(e),R=O.items.filter(B=>{var L;if(B.value!==void 0)return!0;const j=(L=e.current.getColumn(B.columnField).filterOperators)==null?void 0:L.find(N=>N.value===B.operatorValue);return!(typeof(j==null?void 0:j.requiresFilterValue)=="undefined"?!0:j==null?void 0:j.requiresFilterValue)});let A;R.find(B=>B.columnField===T)?A=R:t.disableMultipleColumnsFiltering?A=[fw({columnField:T},e)]:A=[...R,fw({columnField:T},e)],e.current.setFilterModel(P({},O,{items:A}))}e.current.showPreferences(Vl.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback(T=>{const O=Kr(e);O.linkOperator!==T&&e.current.setFilterModel(P({},O,{linkOperator:T}),"changeLogicOperator")},[e]),b=u.useCallback(T=>{const O=Kr(e);Os(O.quickFilterValues,T)||e.current.setFilterModel(P({},O,{quickFilterValues:[...T]}))},[e]),g=u.useCallback((T,O)=>{Kr(e)!==T&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",F_(T,t.disableMultipleColumnsFiltering,e),O),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),x=u.useCallback(()=>{const T=Ks(e);return new Map(T.map(O=>[O.id,O.model]))},[e]);Yt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:x,setQuickFilterValues:b});const E=u.useCallback((T,O)=>{var R,A;const V=Kr(e);return!O.exportOnlyDirtyModels||t.filterModel!=null||((R=t.initialState)==null||(A=R.filter)==null?void 0:A.filterModel)!=null||!Os(V,Kf())?P({},T,{filter:{filterModel:V}}):T},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback((T,O)=>{var R;const A=(R=O.stateToRestore.filter)==null?void 0:R.filterModel;return A==null?T:(e.current.unstable_updateControlState("filter",F_(A,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},T,{callbacks:[...T.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=u.useCallback((T,O)=>{if(O===Vl.filters){var R;const A=t.components.FilterPanel;return M.jsx(A,P({},(R=t.componentsProps)==null?void 0:R.filterPanel))}return T},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),k=u.useCallback(T=>{if(t.filterMode===lu.client&&T.isRowMatchingFilters){const O=ya(e),R={};for(let A=0;A<O.length;A+=1){const V=O[A];let B;if(typeof V=="string"&&V.startsWith("auto-generated-group-footer"))B=!0;else{const{passingFilterItems:L,passingQuickFilterValues:F}=T.isRowMatchingFilters(V);B=jce([L],[F],T.filterModel,e)}R[V]=B}return{filteredRowsLookup:R,visibleRowsLookup:R,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);dr(e,"exportState",E),dr(e,"restoreState",w),dr(e,"preferencePanel",S),Xx(e,Ep,"filtering",k);const _=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const T=Kr(e),O=doe(e),R=T.items.filter(A=>A.columnField&&O[A.columnField]);R.length<T.items.length&&e.current.setFilterModel(P({},T,{items:R}))},[e,i]),I=u.useCallback(T=>{T==="filtering"&&e.current.unstable_applyFilters()},[e]);De(e,"rowsSet",s),De(e,"rowExpansionChange",e.current.unstable_applyFilters),De(e,"columnsChange",_),De(e,"activeStrategyProcessorChange",I),Sp(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Uce=e=>P({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),Wce=(e,t)=>{const n=Qn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((x,C)=>{x&&e.current.getRow(x.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(x.id,x.field),C)},[e]),i=u.useCallback((x,C)=>{const E=xi(e);(E==null?void 0:E.id)===x&&(E==null?void 0:E.field)===C||(e.current.setState(w=>(n.debug(`Focusing on cell with id=${x} and field=${C}`),P({},w,{tabIndex:{cell:{id:x,field:C},columnHeader:null},focus:{cell:{id:x,field:C},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(x)&&(E&&o(E,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(x,C))))},[e,n,o]),s=u.useCallback((x,C={})=>{const E=xi(e);o(E,C),e.current.setState(w=>(n.debug(`Focusing on column header with colIndex=${x}`),P({},w,{tabIndex:{columnHeader:{field:x},cell:null},focus:{columnHeader:{field:x},cell:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((x,C,E)=>{let w=e.current.getColumnIndex(C),S=e.current.getRowIndexRelativeToVisibleRows(x);const k=Rr(e);E==="right"?w+=1:E==="left"?w-=1:S+=1;const _=Jv(e,{pagination:t.pagination,paginationMode:t.paginationMode});w>=k.length?(S+=1,S<_.rows.length&&(w=0)):w<0&&(S-=1,S>=0&&(w=k.length-1)),S=Tu(S,0,_.rows.length-1);const I=_.rows[S],T=e.current.unstable_getCellColSpanInfo(I.id,w);T&&T.spannedByColSpan&&(E==="left"||E==="below"?w=T.leftVisibleCellIndex:E==="right"&&(w=T.rightVisibleCellIndex)),w=Tu(w,0,k.length-1);const O=k[w];e.current.setCellFocus(I.id,O.field)},[e,t.pagination,t.paginationMode]),c=u.useCallback(({id:x,field:C})=>{e.current.setCellFocus(x,C)},[e]),d=u.useCallback((x,C)=>{C.key==="Enter"||C.key==="Tab"||Cp(C.key)||e.current.setCellFocus(x.id,x.field)},[e]),p=u.useCallback(({field:x},C)=>{C.target===C.currentTarget&&e.current.setColumnHeaderFocus(x,C)},[e]),h=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(x=>P({},x,{focus:{cell:null,columnHeader:null}}))},[n,e]),m=u.useCallback(x=>{r.current=x},[]),v=u.useCallback(x=>{const C=r.current;r.current=null;const E=xi(e);if(!E){C&&e.current.setCellFocus(C.id,C.field);return}if((C==null?void 0:C.id)===E.id&&(C==null?void 0:C.field)===E.field)return;const w=e.current.getCellElement(E.id,E.field);w!=null&&w.contains(x.target)||(C?e.current.setCellFocus(C.id,C.field):(e.current.setState(S=>P({},S,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),o(E,x)))},[e,o]),b=u.useCallback(x=>{if(x.cellMode==="view")return;const C=xi(e);((C==null?void 0:C.id)!==x.id||(C==null?void 0:C.field)!==x.field)&&e.current.setCellFocus(x.id,x.field)},[e]),g=u.useCallback(()=>{const x=xi(e);x&&!e.current.getRow(x.id)&&e.current.setState(C=>P({},C,{focus:{cell:null,columnHeader:null}}))},[e]);Yt(e,{setCellFocus:i,setColumnHeaderFocus:s,unstable_moveFocusToRelativeCell:a}),u.useEffect(()=>{const x=Cn(e.current.rootElementRef.current);return x.addEventListener("click",v),()=>{x.removeEventListener("click",v)}},[e,v]),De(e,"columnHeaderBlur",h),De(e,"cellDoubleClick",c),De(e,"cellMouseDown",m),De(e,"cellKeyDown",d),De(e,"cellModeChange",b),De(e,"columnHeaderFocus",p),De(e,"rowsSet",g)};function Gce(e,t){const n=vp(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Kce=(e,t)=>{const n=Qn(e,"useGridKeyboardNavigation"),r=Za(e,t).rows,o=u.useMemo(()=>Gce(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=Ks(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(E=>E.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,E=o.length-1,w=0,S=Rr(e).length-1;let k=!0;switch(m.key){case"ArrowDown":case"Enter":{x<E&&i(g,a(x+1));break}case"ArrowUp":{x>C?i(g,a(x-1)):s(g,m);break}case"ArrowRight":{g<S&&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<S&&i(g+1,a(x),"right");break}case" ":{if(h.field===qx)break;const I=h.colDef;if(I&&I.type==="treeDataGroup")break;!m.shiftKey&&x<E&&i(g,a(Math.min(x+b,E)));break}case"PageDown":{x<E&&i(g,a(Math.min(x+b,E)));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(S,a(E)):i(S,a(x));break}default:k=!1}k&&m.preventDefault()},[e,o,i,s,a]),d=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${ee.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==xp.field||!e.current.getRootDimensions())return;const x=e.current.unstable_getViewportPageSize(),C=h.field?e.current.getColumnIndex(h.field):0,E=0,w=o.length-1,S=0,k=Rr(e).length-1;let _=!0;switch(m.key){case"ArrowDown":{i(C,a(E));break}case"ArrowRight":{C<k&&s(C+1,m);break}case"ArrowLeft":{C>S&&s(C-1,m);break}case"PageDown":{w!==null&&i(C,a(Math.min(E+x,w)));break}case"Home":{s(S,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!==Rt.Edit&&Cp(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);De(e,"cellNavigationKeyDown",c),De(e,"columnHeaderKeyDown",d),De(e,"cellKeyDown",p)},dA=e=>e?0:100,N_=e=>t=>P({},t,{pagination:P({},t.pagination,{pageSize:e})}),qce=(e,t)=>{var n,r;const o=Qn(e,"useGridPageSize"),i=Xe(e,bp);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:pf,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==pf(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(N_(h)),e.current.forceUpdate())},[e,o])};Yt(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=pf(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==dA(t.autoPageSize)?P({},h,{pagination:P({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),d=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(N_(b)),h},[e]);dr(e,"exportState",c),dr(e,"restoreState",d);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=aA(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);De(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},pw=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,hw=e=>e.pageCount?P({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,D_=e=>t=>P({},t,{pagination:hw(P({},t.pagination,{page:e}))});$i(["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 Yce=(e,t)=>{var n,r;const o=Qn(e,"useGridPage"),i=Xe(e,CL);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Ud,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(D_(m)),e.current.forceUpdate()},[e,o])};Yt(e,a);const c=u.useCallback((m,v)=>{var b,g;const x=Ud(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||x!==0?P({},m,{pagination:P({},m.pagination,{page:x})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),d=u.useCallback((m,v)=>{var b,g;const x=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:Ud(e);return e.current.setState(D_(x)),m},[e]);dr(e,"exportState",c),dr(e,"restoreState",d);const p=m=>{e.current.setState(v=>{const b=pw(v.pagination.rowCount,m);return P({},v,{pagination:hw(P({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:Ud(e)*pf(e)});De(e,"pageSizeChange",p),De(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=pw(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return P({},m,{pagination:hw(P({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},Xce=(e,t)=>{var n,r,o,i,s,a,c,d;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=dA(t.autoPageSize),P({},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:pw((c=t.rowCount)!=null?c:0,p),rowCount:(d=t.rowCount)!=null?d:0}})},Qce=(e,t)=>{qce(e,t),Yce(e,t)},Jce=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Zce=(e,t)=>{var n;const r=Qn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=gg(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>P({},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]),d=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>P({},v,{preferencePanel:P({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Yt(e,{showPreferences:d,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=gg(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?P({},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=>P({},g,{preferencePanel:b})),m},[e]);dr(e,"exportState",p),dr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},Mn=e=>e.editRows;function B_(e){return typeof e.then=="function"}const eue=(e,t)=>{var n;const r=Qn(e,"useGridEditRows"),o=w=>(...S)=>{t.editMode===$r.Cell&&w(...S)},i=u.useCallback((w,S,k)=>{e.current.getCellMode(w,S)!==k&&(r.debug(`Switching cell id: ${w} field: ${S} to mode: ${k}`),e.current.setState(_=>{const I=P({},_.editRows);return I[w]=P({},I[w]),k===Rt.Edit?I[w][S]={value:e.current.getCellValue(w,S)}:(delete I[w][S],Object.keys(I[w]).length||delete I[w]),P({},_,{editRows:I})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,S)))},[e,r]),s=u.useCallback((w,S)=>{const k=Mn(e.current.state);return k[w]&&k[w][S]?Rt.Edit:Rt.View},[e]),a=u.useCallback((w,S={})=>{var k;const{id:_,field:I}=w;e.current.unstable_runPendingEditCellValueMutation(_,I);const T=e.current.getEditRowsModel();if(!T[_]||!T[_][I])throw new Error(`MUI: Cell at id: ${_} and field: ${I} is not in edit mode.`);const O=T[_][I],R=e.current.getColumn(I),A=e.current.getRow(_);if((k=t.experimentalFeatures)!=null&&k.preventCommitWhileValidating){const L=T[_][I];if(L.isValidating||L.error)return!1}const V=P({},w,{value:O.value});let B=!!O.error;if(!B&&typeof R.preProcessEditCellProps=="function"){const L=R.preProcessEditCellProps({id:_,row:A,props:O});if(B_(L))return L.then(F=>(e.current.unstable_setEditCellProps({id:_,field:I,props:F}),F.error?!1:(e.current.publishEvent("cellEditCommit",V,S),!0)));e.current.unstable_setEditCellProps({id:_,field:I,props:L}),B=!!L.error}return B?!1:(e.current.publishEvent("cellEditCommit",V,S),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const S=e.current.getColumn(w.field),k=e.current.getRow(w.id);return new Promise(_=>{let I={value:w.value};const O=e.current.getEditRowsModel()[w.id][w.field];if(typeof S.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(P({},w,{props:I})),_(!0);return}I=e.current.unstable_setEditCellProps(P({},w,{props:P({},O,{isValidating:!0})})),Promise.resolve(S.preProcessEditCellProps({id:w.id,row:k,props:P({},I,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(R=>{e.current.unstable_setEditCellProps(P({},w,{props:P({},R,{isValidating:!1})})),_(!R.error)})})},[e]);Yt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,S)=>rt(void 0,null,function*(){if(S.which===229)return;const{id:k,field:_,cellMode:I,isEditable:T}=w;if(!T)return;const O=I===Rt.Edit,R=S.ctrlKey||S.metaKey||S.altKey;if(!O&&yie(S)&&!R&&!(S.key===" "&&S.shiftKey)&&e.current.publishEvent("cellEditStart",w,S),!O&&lw(S.key)&&(e.current.setEditCellValue({id:k,field:_,value:""}),e.current.commitCellChange({id:k,field:_},S),e.current.publishEvent("cellEditStop",w,S)),O&&C_(S.key)){const A={id:k,field:_};if(!(yield e.current.commitCellChange(A,S)))return}O&&bie(S.key)&&e.current.publishEvent("cellEditStop",w,S)}),[e]),h=u.useCallback((w,S)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,S)},[e]),m=(w,S)=>rt(void 0,null,function*(){w.cellMode!==Rt.View&&(yield e.current.commitCellChange(w,S),e.current.publishEvent("cellEditStop",w,S))}),v=pn((w,S)=>{m(w,S)}),b=pn(()=>{const w=xi(e);if(!w)return;const S=e.current.getCellParams(w.id,w.field);m(S,{})}),g=u.useCallback((w,S)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,Rt.Edit),aw(S)&&Xv(S)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),x=u.useCallback((w,S)=>{if(e.current.setCellMode(w.id,w.field,Rt.View),!!aw(S)){if(C_(S.key)){e.current.publishEvent("cellNavigationKeyDown",w,S);return}(S.key==="Escape"||lw(S.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),C=u.useCallback(w=>{const{id:S,field:k}=w,_=e.current.getEditRowsModel(),{value:I}=_[S][k];r.debug(`Setting cell id: ${S} field: ${k} to value: ${I==null?void 0:I.toString()}`);const T=e.current.getRow(S);if(T){const O=e.current.getColumn(w.field);let R=P({},T,{[k]:I});O.valueSetter&&(R=O.valueSetter({row:T,value:I})),e.current.updateRows([R])}},[e,r]),E=u.useCallback(w=>{const S=e.current.getRow(w.id),k=e.current.getColumn(w.field),_=k.preProcessEditCellProps?k.preProcessEditCellProps({id:w.id,row:S,props:w.props}):w.props;B_(_)?_.then(I=>{e.current.unstable_setEditCellProps(P({},w,{props:I}))}):e.current.unstable_setEditCellProps(P({},w,{props:_}))},[e]);De(e,"cellKeyDown",o(p)),De(e,"cellDoubleClick",o(h)),De(e,"cellFocusOut",o(v)),De(e,"columnHeaderDragStart",o(b)),De(e,"cellEditStart",o(g)),De(e,"cellEditStop",o(x)),De(e,"cellEditCommit",o(C)),De(e,"editCellPropsChange",o(E)),Dt(e,"cellEditCommit",t.onCellEditCommit),Dt(e,"cellEditStart",t.onCellEditStart),Dt(e,"cellEditStop",t.onCellEditStop)},tue=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=Xe(e,ki),a=I=>(...T)=>{t.editMode===$r.Row&&I(...T)},c=u.useCallback((I,T)=>{T!==e.current.getRowMode(I)&&(e.current.setState(O=>{const R=P({},O.editRows);return T===Ut.Edit?(R[I]={},s.forEach(A=>{const V=e.current.getCellParams(I,A.field);V.isEditable&&(R[I][A.field]={value:V.value})})):delete R[I],P({},O,{editRows:R})}),e.current.forceUpdate())},[e,s]),d=u.useCallback(I=>t.editMode===$r.Cell?Ut.View:Mn(e.current.state)[I]?Ut.Edit:Ut.View,[e,t.editMode]),p=u.useCallback((I,T={})=>{var O;if(t.editMode===$r.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((O=t.experimentalFeatures)!=null&&O.preventCommitWhileValidating&&!Object.keys(A).reduce((F,j)=>F&&!A[j].isValidating&&!A[j].error,!0)||Object.values(A).some(L=>!!L.error))return!1;const B=Object.keys(A).filter(L=>typeof e.current.getColumn(L).preProcessEditCellProps=="function");if(B.length>0){const L=e.current.getRow(I),F=B.map(j=>rt(void 0,null,function*(){const G=e.current.getColumn(j),N=yield Promise.resolve(G.preProcessEditCellProps({id:I,row:L,props:A[j]}));return e.current.unstable_setEditCellProps({id:I,field:j,props:N}),N.error}));return Promise.all(F).then(j=>j.some(G=>!!G)?!1:(e.current.publishEvent("rowEditCommit",I,T),!0))}return e.current.publishEvent("rowEditCommit",I,T),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(I=>{const O=e.current.getEditRowsModel()[I.id],R=e.current.getRow(I.id);let A=!0;return new Promise(V=>{Object.keys(O).forEach(B=>rt(void 0,null,function*(){const L=e.current.getColumn(B);let F=B===I.field?{value:I.value}:O[B];F=e.current.unstable_setEditCellProps({id:I.id,field:B,props:P({},F,{isValidating:!0})}),L.preProcessEditCellProps&&(F=yield Promise.resolve(L.preProcessEditCellProps({id:I.id,row:R,props:P({},F,{value:B===I.field?e.current.unstable_parseValue(I.id,B,I.value):F.value})}))),F.error&&(A=!1),e.current.unstable_setEditCellProps({id:I.id,field:B,props:P({},F,{isValidating:!1})})})),V(A)})},[e]);Yt(e,{setRowMode:c,getRowMode:d,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((I,T)=>rt(void 0,null,function*(){if(T.which===229)return;const{cellMode:O,isEditable:R}=I;if(!R)return;const A=O===Rt.Edit,V=e.current.getRowParams(I.id);if(A)if(T.key==="Enter"){var B;if(!(yield e.current.commitRowChange(I.id))&&(B=t.experimentalFeatures)!=null&&B.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",V,T)}else T.key==="Escape"&&e.current.publishEvent("rowEditStop",V,T);else T.key==="Enter"&&e.current.publishEvent("rowEditStart",V,T)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((I,T)=>{if(!I.isEditable)return;const O=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStart",O,T)},[e]),g=u.useCallback(I=>{const T=e.current.getRow(I.id),R=e.current.getEditRowsModel()[I.id];Object.keys(R).forEach(A=>rt(void 0,null,function*(){const V=e.current.getColumn(A);if(V.preProcessEditCellProps){const B=A===I.field?I.props:R[A],L=yield Promise.resolve(V.preProcessEditCellProps({id:I.id,row:T,props:B}));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,Ut.Edit)},[e]),C=u.useCallback((I,T)=>{e.current.setRowMode(I.id,Ut.View),T.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",I,T)},[e]),E=u.useCallback(I=>{const O=e.current.getEditRowsModel()[I];if(!O)throw new Error(`MUI: Row at id: ${I} is not being edited.`);const R=e.current.getRow(I);if(R){let A=P({},R);Object.keys(O).forEach(V=>{const B=e.current.getColumn(V),L=O[V].value;B.valueSetter?A=B.valueSetter({row:A,value:L}):A[V]=L}),e.current.updateRows([A])}},[e]),w=u.useCallback(I=>{i.current=I},[]),S=(I,T)=>rt(void 0,null,function*(){I.cellMode!==Rt.View&&(i.current=null,o.current=setTimeout(()=>rt(void 0,null,function*(){var O;if(((O=i.current)==null?void 0:O.id)!==I.id){yield e.current.commitRowChange(I.id,T);const R=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStop",R,T)}})))}),k=pn((I,T)=>{S(I,T)}),_=pn(()=>{const I=xi(e);if(!I)return;const T=e.current.getCellParams(I.id,I.field);S(T,{})});De(e,"cellKeyDown",a(v)),De(e,"cellDoubleClick",a(b)),De(e,"editCellPropsChange",a(g)),De(e,"rowEditStart",a(x)),De(e,"rowEditStop",a(C)),De(e,"rowEditCommit",a(E)),De(e,"cellFocusIn",a(w)),De(e,"cellFocusOut",a(k)),De(e,"columnHeaderDragStart",a(_)),Dt(e,"rowEditCommit",t.onRowEditCommit),Dt(e,"rowEditStart",t.onRowEditStart),Dt(e,"rowEditStop",t.onRowEditStop)},nue=e=>P({},e,{editRows:{}});function rue(e,t){var n;const r=Qn(e,"useGridEditRows");eue(e,t),tue(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:Mn,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,E)=>{if(!C){E();return}if(o.current[g]||(o.current[g]={}),o.current[g][x]){const[k]=o.current[g][x];clearTimeout(k)}const w=()=>{E();const[k]=o.current[g][x];clearTimeout(k),delete o.current[g][x]},S=setTimeout(()=>{E(),delete o.current[g][x]},C);o.current[g][x]=[S,w]},a=u.useCallback((g,x)=>{if(o.current[g]){if(!x)Object.keys(o.current[g]).forEach(C=>{const[,E]=o.current[g][C];E()});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 E={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",E,x)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),d=u.useCallback((g,x,C)=>{const E=e.current.getColumn(x);return E.valueParser?E.valueParser(C,e.current.getCellParams(g,x)):C},[e]),p=u.useCallback(g=>{const{id:x,field:C,props:E}=g;return r.debug(`Setting cell props on id: ${x} field: ${C}`),e.current.setState(S=>{const k=P({},S.editRows);return k[x]=P({},S.editRows[x]),k[x][C]=P({},E,{value:d(x,C,E.value)}),P({},S,{editRows:k})}),e.current.forceUpdate(),Mn(e.current.state)[x][C]},[e,r,d]),h=u.useCallback(g=>{Mn(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(C=>P({},C,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>Mn(e.current.state),[e]),v=u.useCallback((g,x)=>{const C=x.detail>1;g.isEditable&&g.cellMode===Rt.View&&C&&x.preventDefault()},[]);De(e,"cellMouseDown",v),Dt(e,"editCellPropsChange",t.onEditCellPropsChange),Yt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:d,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const oue=["id","field"],iue=["id","field"],sue=$i(["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"),lue=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d,signature:p}=t,h=L=>(...F)=>{t.editMode===$r.Cell&&L(...F)},m=u.useCallback((L,F)=>{const j=e.current.getCellParams(L,F);if(!e.current.isCellEditable(j))throw new Error(`MUI: The cell with id=${L} and field=${F} is not editable.`)},[e]),v=u.useCallback((L,F,j)=>{if(e.current.getCellMode(L,F)!==j)throw new Error(`MUI: The cell with id=${L} and field=${F} is not in ${j} mode.`)},[e]),b=u.useCallback((L,F)=>{if(!L.isEditable||L.cellMode===Rt.Edit)return;const j=P({},L,{reason:Cs.cellDoubleClick});e.current.publishEvent("cellEditStart",j,F)},[e]),g=u.useCallback((L,F)=>{if(L.cellMode===Rt.View||e.current.getCellMode(L.id,L.field)===Rt.View)return;const j=P({},L,{reason:Bi.cellFocusOut});e.current.publishEvent("cellEditStop",j,F)},[e]),x=u.useCallback((L,F)=>{if(L.cellMode===Rt.Edit){if(F.which===229)return;let j;if(F.key==="Escape"?j=Bi.escapeKeyDown:F.key==="Enter"?j=Bi.enterKeyDown:F.key==="Tab"&&(j=F.shiftKey?Bi.shiftTabKeyDown:Bi.tabKeyDown,F.preventDefault()),j){const G=P({},L,{reason:j});e.current.publishEvent("cellEditStop",G,F)}}else if(L.isEditable){let j;if(F.key===" "&&F.shiftKey)return;if(Xv(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?j=Cs.printableKeyDown:F.key==="Enter"?j=Cs.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(j=Cs.deleteKeyDown),j){const G=P({},L,{reason:j,key:F.key});e.current.publishEvent("cellEditStart",G,F)}}},[e]),C=u.useCallback(L=>{const{id:F,field:j,reason:G,key:N}=L,z={id:F,field:j};G===Cs.printableKeyDown?u.version.startsWith("18")?z.initialValue=N:z.deleteValue=!0:G===Cs.deleteKeyDown&&(z.deleteValue=!0),e.current.startCellEditMode(z)},[e]),E=u.useCallback(L=>{const{id:F,field:j,reason:G}=L;e.current.unstable_runPendingEditCellValueMutation(F,j);let N;G===Bi.enterKeyDown?N="below":G===Bi.tabKeyDown?N="right":G===Bi.shiftTabKeyDown&&(N="left");let z=G==="escapeKeyDown";Mn(e.current.state)[F][j].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:F,field:j,ignoreModifications:z,cellToFocusAfter:N})},[e,t.disableIgnoreModificationsIfProcessingProps]);De(e,"cellDoubleClick",h(b)),De(e,"cellFocusOut",h(g)),De(e,"cellKeyDown",h(x)),De(e,"cellEditStart",h(C)),De(e,"cellEditStop",h(E)),Dt(e,"cellEditStart",t.onCellEditStart),Dt(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((L,F)=>{const j=Mn(e.current.state);return j[L]&&j[L][F]?Rt.Edit:Rt.View},[e]),S=pn(L=>{const F=L!==t.cellModesModel;if(d&&F){const j=p===Wl.DataGridPro?{api:e.current}:{};d(L,j)}t.cellModesModel&&F||(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))}),k=u.useCallback((L,F,j)=>{const G=P({},o.current);if(j!==null)G[L]=P({},G[L],{[F]:P({},j)});else{const N=G[L],z=se(N,[F].map(Yf));G[L]=z,Object.keys(G[L]).length===0&&delete G[L]}S(G)},[S]),_=u.useCallback((L,F,j)=>{e.current.setState(G=>{const N=P({},G.editRows);return j!==null?N[L]=P({},N[L],{[F]:P({},j)}):(delete N[L][F],Object.keys(N[L]).length===0&&delete N[L]),P({},G,{editRows:N})}),e.current.forceUpdate()},[e]),I=u.useCallback(L=>{const{id:F,field:j}=L,G=se(L,oue);m(F,j),v(F,j,Rt.View),k(F,j,P({mode:Rt.Edit},G))},[m,v,k]),T=pn(L=>{const{id:F,field:j,deleteValue:G,initialValue:N}=L;let z=e.current.getCellValue(F,j);(G||N)&&(z=G?"":N),_(F,j,{value:z,error:!1,isProcessingProps:!1}),e.current.setCellFocus(F,j)}),O=u.useCallback(L=>{const{id:F,field:j}=L,G=se(L,iue);v(F,j,Rt.Edit),k(F,j,P({mode:Rt.View},G))},[v,k]),R=pn(L=>rt(void 0,null,function*(){const{id:F,field:j,ignoreModifications:G,cellToFocusAfter:N="none"}=L;v(F,j,Rt.Edit),e.current.unstable_runPendingEditCellValueMutation(F,j);const z=()=>{_(F,j,null),k(F,j,null),N!=="none"&&e.current.unstable_moveFocusToRelativeCell(F,j,N)};if(G){z();return}const W=Mn(e.current.state),{error:q,isProcessingProps:X}=W[F][j];if(q||X){i.current[F][j].mode=Rt.Edit,k(F,j,{mode:Rt.Edit});return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(F,j);if(s){const J=fe=>{i.current[F][j].mode=Rt.Edit,k(F,j,{mode:Rt.Edit}),a?a(fe):sue()};try{const fe=e.current.getRow(F);Promise.resolve(s(ie,fe)).then(Q=>{e.current.updateRows([Q]),z()}).catch(J)}catch(fe){J(fe)}}else e.current.updateRows([ie]),z()})),A=u.useCallback(L=>rt(void 0,null,function*(){var F,j;const{id:G,field:N,value:z,debounceMs:W,unstable_skipValueParser:q}=L;m(G,N),v(G,N,Rt.Edit);const X=e.current.getColumn(N),ie=e.current.getRow(G);let J=z;X.valueParser&&!q&&(J=X.valueParser(z,e.current.getCellParams(G,N)));let fe=Mn(e.current.state),Q=P({},fe[G][N],{value:J,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(X.preProcessEditCellProps){const le=z!==fe[G][N].value;Q=P({},Q,{isProcessingProps:!0}),_(G,N,Q),Q=yield Promise.resolve(X.preProcessEditCellProps({id:G,row:ie,props:Q,hasChanged:le}))}return e.current.getCellMode(G,N)===Rt.View?!1:(fe=Mn(e.current.state),Q=P({},Q,{isProcessingProps:!1}),Q.value=X.preProcessEditCellProps?fe[G][N].value:J,_(G,N,Q),fe=Mn(e.current.state),!((F=fe[G])!=null&&(j=F[N])!=null&&j.error))}),[e,m,v,_]),V=u.useCallback((L,F)=>{const j=e.current.getColumn(F),G=Mn(e.current.state),{value:N}=G[L][F],z=e.current.getRow(L);return j.valueSetter?j.valueSetter({value:N,row:z}):P({},z,{[F]:N})},[e]);Yt(e,{getCellMode:w,startCellEditMode:I,stopCellEditMode:O,unstable_setCellEditingEditCellValue:A,unstable_getRowWithUpdatedValuesFromCellEditing:V}),u.useEffect(()=>{c&&S(c)},[c,S]),u.useEffect(()=>{const L=Ax(e),F=i.current;i.current=VL(n),Object.entries(n).forEach(([j,G])=>{Object.entries(G).forEach(([N,z])=>{var W,q,X;const ie=((W=F[j])==null||(q=W[N])==null?void 0:q.mode)||Rt.View,J=(X=L[j])!=null?X:j;z.mode===Rt.Edit&&ie===Rt.View?T(P({id:J,field:N},z)):z.mode===Rt.View&&ie===Rt.Edit&&R(P({id:J,field:N},z))})})},[e,n,T,R])},aue=["id"],cue=["id"],uue=$i(["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"),due=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=N=>(...z)=>{t.editMode===$r.Row&&N(...z)},b=u.useCallback((N,z)=>{const W=e.current.getCellParams(N,z);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${N} and field=${z} is not editable.`)},[e]),g=u.useCallback((N,z)=>{if(e.current.getRowMode(N)!==z)throw new Error(`MUI: The row with id=${N} is not in ${z} mode.`)},[e]),x=u.useCallback((N,z)=>{if(!N.isEditable||e.current.getRowMode(N.id)===Ut.Edit)return;const W=e.current.getRowParams(N.id),q=P({},W,{field:N.field,reason:xs.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),C=u.useCallback(N=>{a.current=N},[]),E=u.useCallback((N,z)=>{N.isEditable&&e.current.getRowMode(N.id)!==Ut.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==N.id){if(!e.current.getRow(N.id)||e.current.getRowMode(N.id)===Ut.View)return;const q=e.current.getRowParams(N.id),X=P({},q,{field:N.field,reason:zi.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((N,z)=>{if(N.cellMode===Ut.Edit){if(z.which===229)return;let W;if(z.key==="Escape")W=zi.escapeKeyDown;else if(z.key==="Enter")W=zi.enterKeyDown;else if(z.key==="Tab"){const q=$u(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(N.id,X)));z.shiftKey?N.field===q[0]&&(W=zi.shiftTabKeyDown):N.field===q[q.length-1]&&(W=zi.tabKeyDown),W&&z.preventDefault()}if(W){const q=e.current.getRowParams(N.id),X=P({},q,{reason:W,field:N.field});e.current.publishEvent("rowEditStop",X,z)}}else if(N.isEditable){let W;if(z.key===" "&&z.shiftKey)return;if(Xv(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?W=xs.printableKeyDown:z.key==="Enter"?W=xs.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(W=xs.deleteKeyDown),W){const q=e.current.getRowParams(N.id),X=P({},q,{field:N.field,key:z.key,reason:W});e.current.publishEvent("rowEditStart",X,z)}}},[e]),S=u.useCallback(N=>{const{id:z,field:W,reason:q,key:X}=N,ie={id:z,fieldToFocus:W};q===xs.printableKeyDown?u.version.startsWith("18")?ie.initialValue=X:ie.deleteValue=!!W:q===xs.deleteKeyDown&&(ie.deleteValue=!!W),e.current.startRowEditMode(ie)},[e]),k=u.useCallback(N=>{const{id:z,reason:W,field:q}=N;e.current.unstable_runPendingEditCellValueMutation(z);let X;W===zi.enterKeyDown?X="below":W===zi.tabKeyDown?X="right":W===zi.shiftTabKeyDown&&(X="left");let ie=W==="escapeKeyDown";const J=Mn(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(J[z]).some(fe=>fe.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);De(e,"cellDoubleClick",v(x)),De(e,"cellFocusIn",v(C)),De(e,"cellFocusOut",v(E)),De(e,"cellKeyDown",v(w)),De(e,"rowEditStart",v(S)),De(e,"rowEditStop",v(k)),Dt(e,"rowEditStart",t.onRowEditStart),Dt(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(N=>{if(t.editMode===$r.Cell)return Ut.View;const z=Mn(e.current.state);return z[N]&&Object.keys(z[N]).length>0?Ut.Edit:Ut.View},[e,t.editMode]),I=pn(N=>{const z=N!==t.rowModesModel;if(h&&z){const W=m===Wl.DataGridPro?{api:e.current}:{};h(N,W)}t.rowModesModel&&z||(r(N),o.current=N,e.current.publishEvent("rowModesModelChange",N))}),T=u.useCallback((N,z)=>{const W=P({},o.current);z!==null?W[N]=P({},z):delete W[N],I(W)},[I]),O=u.useCallback((N,z)=>{e.current.setState(W=>{const q=P({},W.editRows);return z!==null?q[N]=z:delete q[N],P({},W,{editRows:q})}),e.current.forceUpdate()},[e]),R=u.useCallback((N,z,W)=>{e.current.setState(q=>{const X=P({},q.editRows);return W!==null?X[N]=P({},X[N],{[z]:P({},W)}):(delete X[N][z],Object.keys(X[N]).length===0&&delete X[N]),P({},q,{editRows:X})}),e.current.forceUpdate()},[e]),A=u.useCallback(N=>{const{id:z}=N,W=se(N,aue);g(z,Ut.View),T(z,P({mode:Ut.Edit},W))},[g,T]),V=pn(N=>{const{id:z,fieldToFocus:W,deleteValue:q,initialValue:X}=N,J=$u(e).reduce((fe,Q)=>{if(!e.current.getCellParams(z,Q).isEditable)return fe;let ne=e.current.getCellValue(z,Q);return W===Q&&(q||X)&&(ne=q?"":X),fe[Q]={value:ne,error:!1,isProcessingProps:!1},fe},{});O(z,J),W&&e.current.setCellFocus(z,W)}),B=u.useCallback(N=>{const{id:z}=N,W=se(N,cue);g(z,Ut.Edit),T(z,P({mode:Ut.View},W))},[g,T]),L=pn(N=>{const{id:z,ignoreModifications:W,field:q,cellToFocusAfter:X="none"}=N;e.current.unstable_runPendingEditCellValueMutation(z);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),O(z,null),T(z,null)};if(W){ie();return}const J=Mn(e.current.state),fe=e.current.getRow(z);if(Object.values(J[z]).some(he=>he.isProcessingProps)){i.current[z].mode=Ut.Edit;return}if(Object.values(J[z]).some(he=>he.error)){i.current[z].mode=Ut.Edit,T(z,{mode:Ut.Edit});return}const ne=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const he=be=>{i.current[z].mode=Ut.Edit,T(z,{mode:Ut.Edit}),d?d(be):uue()};try{Promise.resolve(c(ne,fe)).then(be=>{e.current.updateRows([be]),ie()}).catch(he)}catch(be){he(be)}}else e.current.updateRows([ne]),ie()}),F=u.useCallback(N=>{const{id:z,field:W,value:q,debounceMs:X,unstable_skipValueParser:ie}=N;b(z,W);const J=e.current.getColumn(W),fe=e.current.getRow(z);let Q=q;J.valueParser&&!ie&&(Q=J.valueParser(q,e.current.getCellParams(z,W)));let le=Mn(e.current.state),ne=P({},le[z][W],{value:Q,changeReason:X?"debouncedSetEditCellValue":"setEditCellValue"});return J.preProcessEditCellProps||R(z,W,ne),new Promise(he=>{const be=[];if(J.preProcessEditCellProps){const ge=ne.value!==le[z][W].value;ne=P({},ne,{isProcessingProps:!0}),R(z,W,ne);const $e=le[z],ze=se($e,[W].map(Yf)),Ae=Promise.resolve(J.preProcessEditCellProps({id:z,row:fe,props:ne,hasChanged:ge,otherFieldsProps:ze})).then(re=>{if(e.current.getRowMode(z)===Ut.View){he(!1);return}le=Mn(e.current.state),re=P({},re,{isProcessingProps:!1}),re.value=J.preProcessEditCellProps?le[z][W].value:Q,R(z,W,re)});be.push(Ae)}Object.entries(le[z]).forEach(([ge,$e])=>{if(ge===W)return;const ze=e.current.getColumn(ge);if(!ze.preProcessEditCellProps)return;$e=P({},$e,{isProcessingProps:!0}),R(z,ge,$e),le=Mn(e.current.state);const Ae=le[z],re=se(Ae,[ge].map(Yf)),Oe=Promise.resolve(ze.preProcessEditCellProps({id:z,row:fe,props:$e,hasChanged:!1,otherFieldsProps:re})).then(ve=>{if(e.current.getRowMode(z)===Ut.View){he(!1);return}ve=P({},ve,{isProcessingProps:!1}),R(z,ge,ve)});be.push(Oe)}),Promise.all(be).then(()=>{e.current.getRowMode(z)===Ut.Edit?(le=Mn(e.current.state),he(!le[z][W].error)):he(!1)})})},[e,b,R]),j=u.useCallback(N=>{const z=Mn(e.current.state),W=e.current.getRow(N);let q=P({},W);return Object.entries(z[N]).forEach(([X,ie])=>{const J=e.current.getColumn(X);J.valueSetter?q=J.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);Yt(e,{getRowMode:_,startRowEditMode:A,stopRowEditMode:B,unstable_setRowEditingEditCellValue:F,unstable_getRowWithUpdatedValuesFromRowEditing:j}),u.useEffect(()=>{p&&I(p)},[p,I]),u.useEffect(()=>{const N=Ax(e),z=i.current;i.current=VL(n),Object.entries(n).forEach(([W,q])=>{var X,ie;const J=((X=z[W])==null?void 0:X.mode)||Ut.View,fe=(ie=N[W])!=null?ie:W;q.mode===Ut.Edit&&J===Ut.View?V(P({id:fe},q)):q.mode===Ut.View&&J===Ut.Edit&&L(P({id:fe},q))})},[e,n,V,L])},fue=e=>P({},e,{editRows:{}}),pue=(e,t)=>{lue(e,t),due(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>h.rowNode.isAutoGenerated||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!h.rowNode.isPinned,[r]),i=(h,m,v,b)=>{if(!v){b();return}if(n.current[h]||(n.current[h]={}),n.current[h][m]){const[C]=n.current[h][m];clearTimeout(C)}const g=()=>{const[C]=n.current[h][m];clearTimeout(C),b(),delete n.current[h][m]},x=setTimeout(()=>{b(),delete n.current[h][m]},v);n.current[h][m]=[x,g]};u.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([m,v])=>{Object.keys(v).forEach(b=>{const[g]=h[m][b];clearTimeout(g),delete h[m][b]})})}},[]);const s=u.useCallback((h,m)=>{if(n.current[h]){if(!m)Object.keys(n.current[h]).forEach(v=>{const[,b]=n.current[h][v];b()});else if(n.current[h][m]){const[,v]=n.current[h][m];v()}}},[]),a=u.useCallback(h=>{const{id:m,field:v,debounceMs:b}=h;return new Promise(g=>{i(m,v,b,()=>rt(void 0,null,function*(){const x=t.editMode===$r.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(m,v)===Rt.Edit){const C=yield x(h);g(C)}}))})},[e,t.editMode]),c=u.useCallback((h,m)=>t.editMode===$r.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(h,m):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),d=u.useCallback((h,m)=>({changeReason:Mn(e.current.state)[h][m].changeReason}),[e]);Yt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c,unstable_getEditCellMeta:d})},hue=(e,t,n)=>(n.current.unstable_caches.rows=bm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:sA({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),mue=(e,t)=>{const n=Qn(e,"useGridRows"),r=Za(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(R=>{var A;return(A=su(e)[R])!=null?A:null},[e]),a=u.useMemo(()=>r.rows.reduce((R,{id:A},V)=>(R[A]=V,R),{}),[r.rows]),c=u.useCallback((R,A)=>{const V=()=>{i.current=null,o.current=Date.now(),e.current.setState(L=>P({},L,{rows:sA({apiRef:e,previousTree:xl(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,!A){V();return}const B=t.throttleRowsMs-(Date.now()-o.current);if(B>0){i.current=setTimeout(V,B);return}V()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`);const A=bm({rows:R,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),V=e.current.unstable_caches.rows;A.rowsBeforePartialUpdates=V.rowsBeforePartialUpdates,c(A,!0)},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(R=>{if(t.signature===Wl.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(`
336
+ `));const A=new Map;R.forEach(F=>{const j=dw(F,t.getRowId,"A row was provided without id when calling updateRows():");A.has(j)?A.set(j,P({},A.get(j),F)):A.set(j,F)});const V=[],B=e.current.unstable_caches.rows,L={rowsBeforePartialUpdates:B.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:B.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:B.rowCountPropBeforePartialUpdates,idRowsLookup:P({},B.idRowsLookup),idToIdLookup:P({},B.idToIdLookup),ids:[...B.ids]};A.forEach((F,j)=>{if(F._action==="delete"){delete L.idRowsLookup[j],delete L.idToIdLookup[j],V.push(j);return}if(!e.current.getRow(j)){L.idRowsLookup[j]=F,L.idToIdLookup[j]=j,L.ids.push(j);return}L.idRowsLookup[j]=P({},e.current.getRow(j),F)}),V.length>0&&(L.ids=L.ids.filter(F=>!V.includes(F))),c(L,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const R=ya(e),A=su(e);return new Map(R.map(V=>[V,A[V]]))},[e]),m=u.useCallback(()=>qv(e),[e]),v=u.useCallback(()=>ya(e),[e]),b=u.useCallback(R=>a[R],[a]),g=u.useCallback((R,A)=>{const V=e.current.getRowNode(R);if(!V)throw new Error(`MUI: No row with id #${R} found`);const B=P({},V,{childrenExpanded:A});e.current.setState(L=>P({},L,{rows:P({},L.rows,{tree:P({},L.rows.tree,{[R]:B})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",B)},[e]),x=u.useCallback(R=>{var A;return(A=xl(e)[R])!=null?A:null},[e]),C=u.useCallback(({skipAutoGeneratedRows:R=!0,groupId:A,applySorting:V,applyFiltering:B})=>{const L=xl(e);let F;if(V){const j=L[A];if(!j)return[];const G=Dx(e);F=[];const N=G.findIndex(z=>z===A)+1;for(let z=N;z<G.length&&L[G[z]].depth>j.depth;z+=1){const W=G[z],q=L[W];(!R||!q.isAutoGenerated)&&F.push(W)}}else F=lA(L,A,R);if(B){const j=yL(e);F=F.filter(G=>j[G]!==!1)}return F},[e]),E=u.useCallback((R,A)=>{const V=ya(e),B=V.findIndex(F=>F===R);if(B===-1||B===A)return;n.debug(`Moving row ${R} to index ${A}`);const L=[...V];L.splice(A,0,L.splice(B,1)[0]),e.current.setState(F=>P({},F,{rows:P({},F.rows,{ids:L})})),e.current.unstable_caches.rows.ids=L,e.current.publishEvent("rowsSet")},[e,n]),w=u.useCallback((R,A)=>{if(t.signature===Wl.DataGrid&&A.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
337
+ `));if(A.length===0)return;const B=[...ya(e)],L=su(e),F=Ax(e),j=xl(e),G=P({},L),N=P({},F),z=P({},j),W=A.map(q=>({id:dw(q,t.getRowId,"A row was provided without id when calling replaceRows()."),model:q}));W.forEach((q,X)=>{const[ie]=B.splice(R+X,1,q.id);delete G[ie],delete N[ie],delete z[ie]}),W.forEach(q=>{const X={id:q.id,parent:null,depth:0,groupingKey:null,groupingField:null};G[q.id]=q.model,N[q.id]=q.id,z[q.id]=X}),e.current.unstable_caches.rows.idRowsLookup=G,e.current.unstable_caches.rows.idToIdLookup=N,e.current.unstable_caches.rows.ids=B,e.current.setState(q=>{const X={idRowsLookup:G,idToIdLookup:N,tree:z,ids:B};return P({},q,{rows:P({},q.rows,X,{groupingResponseBeforeRowHydration:P({},q.rows.groupingResponseBeforeRowHydration,X)})})}),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),S={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:d,setRowIndex:E,updateRows:p,setRowChildrenExpansion:g,getRowNode:x,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:C,unstable_replaceRows:w},k=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=bm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c(R,!1)},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),_=u.useCallback(R=>{R==="rowTreeCreation"&&k()},[k]),I=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==loe(e)&&k()},[e,k]);De(e,"activeStrategyProcessorChange",_),De(e,"strategyAvailabilityChange",I);const T=u.useCallback(()=>{e.current.setState(R=>P({},R,{rows:P({},R.rows,e.current.unstable_applyPipeProcessors("hydrateRows",R.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);Yx(e,"hydrateRows",T),Yt(e,S),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const O=u.useRef(!0);u.useEffect(()=>{if(O.current){O.current=!1;return}const R=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,A=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading,V=e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(R){A||(e.current.setState(B=>P({},B,{rows:P({},B.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),V||(e.current.setState(B=>P({},B,{rows:P({},B.rows,{totalRowCount:Math.max(t.rowCount||0,B.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,B.rows.totalTopLevelRowCount)})})),e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(bm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},gue=({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:Ep,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},vue=e=>{Xx(e,Ep,"rowTreeCreation",gue)};$i(["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 yue(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=xi(e),x=hg(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=xi(e),E=hg(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:E&&E.field===m&&E.id===h?0:-1,value:b,formattedValue:b};return v&&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?sse(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?lse(e.current.rootElementRef.current,h):null,[e]),d=u.useCallback((h,m)=>e.current.rootElementRef.current?ase(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Yt(e,{getCellValue:s,getCellParams:i,getCellElement:d,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const fA=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],bue=(e,t)=>{var n;return P({},e,{selection:(n=fA(t.selectionModel))!=null?n:[]})},wue=(e,t)=>{const n=Qn(e,"useGridSelection"),r=u.useMemo(()=>fA(t.selectionModel,Go(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Go,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:d,isRowSelectable:p}=t,h=!s||i,m=Za(e,t),v=u.useCallback(L=>{var F;let j=L;const G=(F=o.current)!=null?F:L,N=e.current.isRowSelected(L);if(N){const z=ff(e),W=z.findIndex(X=>X===G),q=z.findIndex(X=>X===j);if(W===q)return;W>q?j=z[q+1]:j=z[q-1]}o.current=L,e.current.selectRowRange({startId:G,endId:j},!N)},[e]),b=u.useCallback(L=>{Go(e.current.state)!==L&&(n.debug("Setting selection model"),e.current.setState(j=>P({},j,{selection:L})),e.current.forceUpdate())},[e,n]),g=u.useCallback(L=>Go(e.current.state).includes(L),[e]),x=u.useCallback(L=>{if(p&&!p(e.current.getRowParams(L)))return!1;const F=e.current.getRowNode(L);return!((F==null?void 0:F.position)==="footer"||F!=null&&F.isPinned)},[e,p]),C=u.useCallback(()=>_se(e),[e]),E=u.useCallback((L,F=!0,j=!1)=>{if(e.current.isRowSelectable(L))if(o.current=L,j)n.debug(`Setting selection for row ${L}`),e.current.setSelectionModel(F?[L]:[]);else{n.debug(`Toggling selection for row ${L}`);const N=Go(e.current.state).filter(W=>W!==L);F&&N.push(L),(N.length<2||h)&&e.current.setSelectionModel(N)}},[e,n,h]),w=u.useCallback((L,F=!0,j=!1)=>{n.debug("Setting selection for several rows");const G=L.filter(W=>e.current.isRowSelectable(W));let N;if(j)N=F?G:[];else{const W=P({},vg(e));G.forEach(q=>{F?W[q]=q:delete W[q]}),N=Object.values(W)}(N.length<2||h)&&e.current.setSelectionModel(N)},[e,n,h]),S=u.useCallback(({startId:L,endId:F},j=!0,G)=>{if(!e.current.getRow(L)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${L} to row ${F}`);const N=ff(e),z=N.indexOf(L),W=N.indexOf(F),[q,X]=z>W?[W,z]:[z,W],ie=N.slice(q,X+1);e.current.selectRows(ie,j,G)},[e,n]);Yt(e,{selectRow:E,selectRows:w,selectRowRange:S,setSelectionModel:b,getSelectedRows:C,isRowSelected:g,isRowSelectable:x});const _=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const L=Go(e.current.state),F=su(e),j=P({},vg(e));let G=!1;L.forEach(N=>{F[N]||(delete j[N],G=!0)}),G&&e.current.setSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((L,F)=>{const j=F.metaKey||F.ctrlKey,G=!i&&!j&&!aw(F),N=!h||G,z=e.current.isRowSelected(L);N?e.current.selectRow(L,G?!0:!z,!0):e.current.selectRow(L,!z,!1)},[e,h,i]),T=u.useCallback((L,F)=>{var j;if(a)return;const G=(j=F.target.closest(`.${ee.cell}`))==null?void 0:j.getAttribute("data-field");G===xp.field||G===qx||G&&e.current.getColumn(G).type===Kx||e.current.getRowNode(L.id).isPinned||(F.shiftKey&&(h||i)?v(L.id):I(L.id,F))},[a,h,i,e,v,I]),O=u.useCallback((L,F)=>{if(h&&F.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[h]),R=u.useCallback((L,F)=>{F.nativeEvent.shiftKey?v(L.id):e.current.selectRow(L.id,L.value)},[e,v]),A=u.useCallback(L=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?DL(e):ff(e);e.current.selectRows(j,L.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=u.useCallback((L,F)=>{if(e.current.getCellMode(L.id,L.field)!==Rt.Edit&&F.currentTarget.contains(F.target)){if(Cp(F.key)&&F.shiftKey){const j=xi(e);if(j&&j.id!==L.id){F.preventDefault();const G=e.current.isRowSelected(j.id);if(!h){e.current.selectRow(j.id,!G,!0);return}const N=e.current.getRowIndexRelativeToVisibleRows(j.id),z=e.current.getRowIndexRelativeToVisibleRows(L.id);let W,q;N>z?G?(W=z,q=N-1):(W=z,q=N):G?(W=N+1,q=z):(W=N,q=z);const X=m.rows.slice(W,q+1).map(ie=>ie.id);e.current.selectRows(X,!G);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),I(L.id,F);return}F.key.toLowerCase()==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,I,w,m.rows,h]);De(e,"sortedRowsSet",_),De(e,"rowClick",T),De(e,"rowSelectionCheckboxChange",R),De(e,"headerSelectionCheckboxChange",A),De(e,"cellMouseDown",O),De(e,"cellKeyDown",V),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const B=r!=null;u.useEffect(()=>{if(B)return;const L=Go(e.current.state);if(x){const F=L.filter(j=>x(j));F.length<L.length&&e.current.setSelectionModel(F)}},[e,x,B]),u.useEffect(()=>{const L=Go(e.current.state);if(!h&&L.length>1){const{rows:F}=Jv(e,{pagination:c,paginationMode:d}),j=F.reduce((N,{id:z})=>(N[z]=!0,N),{}),G=L.find(N=>{let z=!0;return x&&(z=x(N)),z&&j[N]});e.current.setSelectionModel(G!==void 0?[G]:[])}},[e,h,i,s,x,c,d])},Cue={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"},xue=["sortingOrder"],Sue=u.memo(function(t){const{sortingOrder:n}=t,r=se(t,xue),o=Qe(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?M.jsx(s,P({},r)):null}),Eue=["error","hasError","errorInfo"],Pue=u.forwardRef(function(t,n){const{error:r}=t,o=se(t,Eue),i=xt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=Xe(i,bp);return M.jsx(Qv,P({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:(r==null?void 0:r.message)||s}))}),kue=u.forwardRef(function(t,n){const o=xt().current.getLocaleText("noResultsOverlayLabel");return M.jsx(Qv,P({ref:n},t,{children:o}))}),Iue={BooleanCellTrueIcon:oie,BooleanCellFalseIcon:x1,ColumnMenuIcon:tie,OpenFilterButtonIcon:Koe,FilterPanelDeleteIcon:x1,ColumnFilteredIcon:qoe,ColumnSelectorIcon:Xoe,ColumnUnsortedIcon:Sue,ColumnSortedAscendingIcon:Woe,ColumnSortedDescendingIcon:Goe,ColumnResizeIcon:Qoe,DensityCompactIcon:Joe,DensityStandardIcon:Zoe,DensityComfortableIcon:eie,ExportIcon:rie,MoreActionsIcon:iie,TreeDataCollapseIcon:w_,TreeDataExpandIcon:b_,GroupingCriteriaCollapseIcon:w_,GroupingCriteriaExpandIcon:b_,DetailPanelExpandIcon:_L,DetailPanelCollapseIcon:nie,RowReorderIcon:$L,QuickFilterIcon:Yoe,QuickFilterClearIcon:x1},z_=P({},Iue,{BaseCheckbox:ZR,BaseTextField:fp,BaseFormControl:Xa,BaseSelect:lx,BaseSwitch:EO,BaseButton:cr,BaseTooltip:Vu,BasePopper:qa,Cell:Moe,SkeletonCell:Fie,ColumnHeaderFilterIconButton:xse,ColumnMenu:$le,ErrorOverlay:Pue,Footer:$ae,Header:Tae,Toolbar:null,PreferencesPanel:rae,LoadingOverlay:Mae,NoResultsOverlay:kue,NoRowsOverlay:Rae,Pagination:Lae,FilterPanel:gae,ColumnsPanel:Qle,Panel:nae,Row:Bae}),_ue=e=>{const{classes:t}=e;return u.useMemo(()=>Ie({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ft,t),[t])},$ue=(e,t)=>{const n={classes:t.classes},r=_ue(n),o=u.useCallback(i=>{const s=P({},xp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[al]!=null;return a&&!c?(i.lookup[al]=s,i.all=[al,...i.all]):!a&&c?(delete i.lookup[al],i.all=i.all.filter(d=>d!==al)):a&&c&&(i.lookup[al]=P({},s,i.lookup[al])),i},[e,r,t.checkboxSelection]);dr(e,"hydrateColumns",o)},Tue=(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 P({},e,{sorting:{sortModel:BL(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Mue=(e,t)=>{var n,r;const o=Qn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:vi,changeEvent:"sortModelChange"});const i=u.useCallback((I,T)=>{const O=vi(e),R=O.findIndex(V=>V.field===I);let A=[...O];return R>-1?T?A.splice(R,1,T):A.splice(R,1):A=[...O,T],A},[e]),s=u.useCallback((I,T)=>{var O;const A=vi(e).find(B=>B.field===I.field);if(A){var V;const B=T===void 0?S_((V=I.sortingOrder)!=null?V:t.sortingOrder,A.sort):T;return B==null?void 0:P({},A,{sort:B})}return{field:I.field,sort:T===void 0?S_((O=I.sortingOrder)!=null?O:t.sortingOrder):T}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode===lu.server)return o.debug("Skipping sorting rows as sortingMode = server"),P({},I,{sorting:P({},I.sorting,{sortedRows:ya(I,e.current.instanceId)})});const T=vi(I,e.current.instanceId),O=jse(T,e),R=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:O});return P({},I,{sorting:P({},I.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(I=>{vi(e)!==I&&(o.debug("Setting sort model"),e.current.setState(x_(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),d=u.useCallback((I,T,O)=>{if(!I.sortable)return;const R=s(I,T);let A;!O||t.disableMultipleColumnsSorting?A=R?[R]:[]:A=i(I.field,R),e.current.setSortModel(A)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>vi(e),[e]),h=u.useCallback(()=>Bx(e).map(T=>T.model),[e]),m=u.useCallback(()=>Dx(e),[e]),v=u.useCallback(I=>e.current.getSortedRowIds().indexOf(I),[e]),b=u.useCallback(I=>e.current.getSortedRowIds()[I],[e]);Yt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:d,applySorting:a});const x=u.useCallback((I,T)=>{var O,R;const A=vi(e);return!T.exportOnlyDirtyModels||t.sortModel!=null||((O=t.initialState)==null||(R=O.sorting)==null?void 0:R.sortModel)!=null||A.length>0?P({},I,{sorting:{sortModel:A}}):I},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),C=u.useCallback((I,T)=>{var O;const R=(O=T.stateToRestore.sorting)==null?void 0:O.sortModel;return R==null?I:(e.current.setState(x_(R,t.disableMultipleColumnsSorting)),P({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),E=u.useCallback(I=>{const T=xl(e);if(!I.sortRowList){const A=[],V=[];return ya(e).forEach(B=>{T[B].isPinned||(T[B].position==="footer"?V.push(B):A.push(B))}),[...A,...V]}const O=[],R=[];return Object.values(T).forEach(A=>{A.isPinned||(A.position==="footer"?R.push(A.id):O.push(A))}),[...I.sortRowList(O),...R]},[e]);dr(e,"exportState",x),dr(e,"restoreState",C),Xx(e,Ep,"sorting",E);const w=u.useCallback(({colDef:I},T)=>{const O=T.shiftKey||T.metaKey||T.ctrlKey;d(I,void 0,O)},[d]),S=u.useCallback(({colDef:I},T)=>{ML(T.key)&&!T.ctrlKey&&!T.metaKey&&d(I,void 0,T.shiftKey)},[d]),k=u.useCallback(()=>{const I=vi(e),T=Wu(e);if(I.length>0){const O=I.filter(R=>T[R.field]);O.length<I.length&&e.current.setSortModel(O)}},[e]),_=u.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);De(e,"columnHeaderClick",w),De(e,"columnHeaderKeyDown",S),De(e,"rowsSet",e.current.applySorting),De(e,"columnsChange",k),De(e,"activeStrategyProcessorChange",_),Sp(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function j_(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 Rue=(e,t)=>{const n=Qn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=Xe(e,Ks),s=u.useCallback(p=>{const h=qv(e),m=Rr(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 E=ja(e);let w;if(typeof p.rowIndex!="undefined"){var g;const S=(g=i[p.rowIndex])==null?void 0:g.id,k=e.current.unstable_getCellColSpanInfo(S,p.colIndex);k&&!k.spannedByColSpan&&(w=k.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),b.left=j_({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:E[p.colIndex]})}if(p.rowIndex!=null){var x,C;const E=Xf(e.current.state),w=Ud(e),S=pf(e),k=t.pagination?p.rowIndex-w*S:p.rowIndex,_=E.positions[k+1]?E.positions[k+1]-E.positions[k]:E.currentPageTotalHeight-E.positions[k],I=((x=o.current.querySelector(`.${ee["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,T=((C=o.current.querySelector(`.${ee["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;b.top=j_({clientHeight:o.current.clientHeight-I-T,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:E.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]);Yt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Oue(e,t){Dt(e,"columnHeaderClick",t.onColumnHeaderClick),Dt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Dt(e,"columnHeaderOver",t.onColumnHeaderOver),Dt(e,"columnHeaderOut",t.onColumnHeaderOut),Dt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Dt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Dt(e,"columnOrderChange",t.onColumnOrderChange),Dt(e,"cellClick",t.onCellClick),Dt(e,"cellDoubleClick",t.onCellDoubleClick),Dt(e,"cellKeyDown",t.onCellKeyDown),Dt(e,"cellFocusOut",t.onCellFocusOut),Dt(e,"preferencePanelClose",t.onPreferencePanelClose),Dt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Dt(e,"menuOpen",t.onMenuOpen),Dt(e,"menuClose",t.onMenuClose),Dt(e,"rowDoubleClick",t.onRowDoubleClick),Dt(e,"rowClick",t.onRowClick),Dt(e,"componentError",t.onError),Dt(e,"stateChange",t.onStateChange)}const Lue=({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 Aue(e,t){const n=Qn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Xe(e,Xf),a=Xe(e,wp),c=u.useCallback(()=>{var x;const C=(x=e.current.rootElementRef)==null?void 0:x.current,E=Yv(e),w=aA(e);if(!o.current)return;let S;if(t.scrollbarSize!=null)S=t.scrollbarSize;else if(!E||!C)S=0;else{const V=Cn(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),S=V.offsetWidth-V.clientWidth,C.removeChild(V)}let k,_,I;if(t.autoHeight)I=!1,_=Math.round(E)>o.current.width,k={width:o.current.width,height:s.currentPageTotalHeight+(_?S:0)};else{k={width:o.current.width,height:o.current.height-a};const A=Lue({content:{width:Math.round(E),height:s.currentPageTotalHeight},container:{width:k.width,height:k.height-w.top-w.bottom},scrollBarSize:S});I=A.hasScrollY,_=A.hasScrollX}const T={width:k.width-(I?S:0),height:k.height-(_?S:0)},O={viewportOuterSize:k,viewportInnerSize:T,hasScrollX:_,hasScrollY:I,scrollBarSize:S},R=i.current;i.current=O,(O.viewportInnerSize.width!==(R==null?void 0:R.viewportInnerSize.width)||O.viewportInnerSize.height!==(R==null?void 0:R.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",O.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),d=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=Jv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),S=w.lastRowIndex-w.firstRowIndex;return Math.min(S-1,C.rows.length)}const E=Math.floor(x.viewportInnerSize.height/bp(e));return Math.min(E,C.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Yt(e,{resize:d,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>zl(d,60),[d]),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(`
338
+ `)),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(`
339
+ `)),r.current=!0),b.current){d(),b.current=!1;return}v()},[t.autoHeight,v,n,d]);hn(()=>c(),[c]),Dt(e,"sortedRowsSet",c),Dt(e,"pageChange",c),Dt(e,"pageSizeChange",c),Dt(e,"columnsChange",c),De(e,"resize",g),Dt(e,"debouncedResize",t.onResize)}const Fue=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Nue=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=Xe(e,bp),d=Xe(e,yp),p=Xe(e,Gu),h=Xe(e,Nx),m=Za(e,t),v=Xe(e,vp),b=u.useCallback(()=>{var O,R;a.current=!1;const A=boe(e.current.state,e.current.instanceId),V=F=>{i.current[F.id]||(i.current[F.id]={sizes:{baseCenter:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:j,needsFirstMeasurement:G,sizes:N}=i.current[F.id];let z=c;const W=N.baseCenter;if(j)z=W;else if(n){const Q=n(P({},F,{densityFactor:A}));if(Q==="auto"){if(G){const le=o?o(P({},F,{densityFactor:A})):c;z=le!=null?le:c}else z=W;a.current=!0,i.current[F.id].autoHeight=!0}else z=Q!=null?Q:c,i.current[F.id].needsFirstMeasurement=!1,i.current[F.id].autoHeight=!1}else i.current[F.id].needsFirstMeasurement=!1;const q=Object.entries(N).reduce((Q,[le,ne])=>(/^base[A-Z]/.test(le)&&(Q[le]=ne),Q),{}),X=P({},q,{baseCenter:z});if(r){var ie,J;const Q=e.current.getRowIndexRelativeToVisibleRows(F.id),le=r(P({},F,{isFirstVisible:Q===0,isLastVisible:Q===m.rows.length-1,indexRelativeToCurrentPage:Q}));X.spacingTop=(ie=le.top)!=null?ie:0,X.spacingBottom=(J=le.bottom)!=null?J:0}const fe=e.current.unstable_applyPipeProcessors("rowHeight",X,F);return i.current[F.id].sizes=fe,fe},B=[],L=m.rows.reduce((F,j)=>{B.push(F);let G=0,N=0;const z=V(j);return Object.entries(z).forEach(([W,q])=>{/^base[A-Z]/.test(W)?G=q>G?q:G:N+=q}),F+G+N},0);v==null||(O=v.top)==null||O.forEach(F=>{V(F)}),v==null||(R=v.bottom)==null||R.forEach(F=>{V(F)}),e.current.setState(F=>P({},F,{rowsMeta:{currentPageTotalHeight:L,positions:B}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback(O=>{const R=i.current[O];return R?R.sizes.baseCenter:c},[c]),x=O=>{var R;return(R=i.current[O])==null?void 0:R.sizes},C=u.useCallback((O,R)=>{i.current[O].sizes.baseCenter=R,i.current[O].isResized=!0,i.current[O].needsFirstMeasurement=!1,b()},[b]),E=u.useMemo(()=>zl(b),[b]),w=u.useCallback((O,R,A)=>{if(!i.current[O]||!i.current[O].autoHeight)return;const V=i.current[O].sizes[`base${ce(A)}`]!==R;i.current[O].needsFirstMeasurement=!1,i.current[O].sizes[`base${ce(A)}`]=R,V&&E()},[E]),S=u.useCallback(O=>{var R;return((R=i.current[O])==null?void 0:R.autoHeight)||!1},[]),k=u.useCallback(()=>s.current,[]),_=u.useCallback(O=>{a.current&&O>s.current&&(s.current=O)},[]),I=u.useCallback(()=>{i.current={},b()},[b]);u.useEffect(()=>{b()},[c,d,p,h,b]),Yx(e,"rowHeight",b),Yt(e,{unstable_getLastMeasuredRowIndex:k,unstable_setLastMeasuredRowIndex:_,unstable_rowHasAutoHeight:S,unstable_getRowHeight:g,unstable_getRowInternalSizes:x,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:w,resetRowHeights:I})},Due=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]);Yt(e,{exportState:t,restoreState:n})},Bue=e=>{const t=u.useRef({}),n=u.useCallback((c,d,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][d]=p},[]),r=u.useCallback((c,d)=>{var p;return(p=t.current[c])==null?void 0:p[d]},[]),o=u.useCallback(c=>{const{columnIndex:d,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[d],x=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!x||x===1)return n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let C=g.computedWidth;for(let E=1;E<x;E+=1){const w=d+E;if(w>=h&&w<m){const S=v[w];C+=S.computedWidth,n(p,d+E,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(d+x,b-1),leftVisibleCellIndex:d})}n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:x,width:C}})}return{colSpan:x}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:d,maxLastColumn:p,columns:h})=>{for(let m=d;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:d,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Yt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);De(e,"columnOrderChange",a)},zue=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=nA(t.columnGroupingModel);return o.all.forEach(a=>{var c,d;const p=(c=s[a])!=null?c:[],h=o.lookup[a];wce(h)&&Os(p,h==null?void 0:h.groupPath)||(o.lookup[a]=P({},o.lookup[a],{groupPath:(d=s[a])!=null?d:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);dr(e,"hydrateColumns",r)},jue=e=>{var t,n;const r=dce(void 0,e);return zue(r,e),$ue(r,e),vue(r),mo(bue,r,e),mo(gce,r,e),mo(Cce,r,e),mo(hue,r,e),mo((t=e.experimentalFeatures)!=null&&t.newEditingApi?fue:nue,r,e),mo(Uce,r,e),mo(Tue,r,e),mo(Jce,r,e),mo(Hce,r,e),mo(Sce,r,e),mo(Xce,r,e),mo(Fue,r,e),mo(hce,r,e),Kce(r,e),wue(r,e),vce(r,e),mue(r,e),yue(r),Bue(r),xce(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?pue:rue)(r,e),Wce(r,e),Zce(r,e),Vce(r,e),Mue(r,e),Ece(r,e),Qce(r,e),Nue(r,e),Rue(r,e),mce(r),$ce(r),Rce(r,e),pce(r),Aue(r,e),Oue(r,e),Due(r),r},Hue={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Vue=100,Uue={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:Gf.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:$r.Cell,filterMode:lu.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:lu.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:lu.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},Wue=e=>{if(e.pageSize>Vue)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=nt({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>P({},Cue,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return P({},z_);const i={};return Object.entries(z_).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>P({},Uue,t,{localeText:n,components:r},Hue),[t,n,r])},Gue=["className"],Kue=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},Ft,t)},que=oe("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Yue=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Gue),i=Qe(),s=Kue(i);return M.jsx(que,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Xue=["className","style"],Que=e=>{const{classes:t,overflowedContent:n}=e;return Ie({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Ft,t)},Jue=oe("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Zue=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=se(t,Xue),s=Qe(),a=P({},s,{overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"}),c=Que(a);return M.jsx(Jue,P({ref:n,className:pe(c.root,r),ownerState:a,style:o},i))}),ede=["className"],tde=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},Ft,t)},nde=oe("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),rde=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,ede),i=Qe(),s=tde(i);return M.jsx(nde,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),ode=["style"];function au(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?au(e,t,n,o):au(e,t,o+1,r)}function ide(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return au(e,t,Math.floor(n/2),Math.min(n,t.length))}const hl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Tu(e-n,r,o),Tu(t+n,r,o)],sde=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,lde=e=>{var t,n;const r=xt(),o=Qe(),i=Xe(r,Rr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=Xe(r,ja),v=Xe(r,Yv),b=Xe(r,bp),g=Xe(r,xi),x=Xe(r,hg),C=Xe(r,Xf),E=Xe(r,Mn),w=Xe(r,vg),S=Za(r,o),k=u.useRef(null),_=u.useRef(null),I=Ht(s,_),[T,O]=u.useState(null),R=u.useRef(T),A=u.useRef({top:0,left:0}),[V,B]=u.useState({width:null,height:null}),L=u.useRef(v),F=u.useCallback(ne=>{var he,be;const ge=r.current.unstable_getLastMeasuredRowIndex();let $e=ge===1/0;(he=S.range)!=null&&he.lastRowIndex&&!$e&&($e=ge>=S.range.lastRowIndex);const ze=Tu(ge-(((be=S.range)==null?void 0:be.firstRowIndex)||0),0,C.positions.length);return $e||C.positions[ze]>=ne?au(ne,C.positions):ide(ne,C.positions,ze)},[r,(t=S.range)==null?void 0:t.firstRowIndex,(n=S.range)==null?void 0:n.lastRowIndex,C.positions]),j=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:S.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ne,left:he}=A.current,be=Math.min(F(ne),C.positions.length-1),ge=o.autoHeight?be+S.rows.length:F(ne+V.height);let $e=!1,ze=0,Ae=m.length;const[re,Oe]=hl({firstIndex:be,lastIndex:ge,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer});for(let ve=re;ve<Oe&&!$e;ve+=1){const je=S.rows[ve];$e=r.current.unstable_rowHasAutoHeight(je.id)}return $e||(ze=au(he,m),Ae=au(he+V.width,m)),{firstRowIndex:be,lastRowIndex:ge,firstColumnIndex:ze,lastColumnIndex:Ae}},[a,F,C.positions.length,o.autoHeight,o.rowBuffer,S.rows,m,i.length,r,V]);hn(()=>{a?k.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),hn(()=>{B({width:_.current.clientWidth,height:_.current.clientHeight})},[C.currentPageTotalHeight]);const G=u.useCallback(ne=>{B({width:ne.width,height:ne.height})},[]);De(r,"resize",G);const N=u.useCallback(ne=>{const[he,be]=hl({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer}),[ge]=hl({firstIndex:ne.firstColumnIndex,lastIndex:ne.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),$e=uw({firstColumnToRender:ge,apiRef:r,firstRowToRender:he,lastRowToRender:be,visibleRows:S.rows}),ze=Xf(r.current.state).positions[he],Ae=ja(r)[$e];k.current.style.transform=`translate3d(${Ae}px, ${ze}px, 0px)`,typeof c=="function"&&c({top:ze,left:Ae})},[r,S.rows,c,d,p,o.columnBuffer,o.rowBuffer]),z=u.useCallback(ne=>{if(R.current&&sde(ne,R.current)){N(ne);return}O(ne),N(ne);const[he,be]=hl({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:he,lastRowToRender:be}),R.current=ne},[r,O,R,S.rows.length,o.rowBuffer,N]);hn(()=>{if(V.width==null)return;const ne=j();z(ne);const{top:he,left:be}=A.current,ge={top:he,left:be,renderContext:ne};r.current.publishEvent("rowsScroll",ge)},[r,j,V.width,z]);const W=ne=>{const{scrollTop:he,scrollLeft:be}=ne.currentTarget;if(A.current.top=he,A.current.left=be,be<0||he<0||!R.current)return;const ge=a?R.current:j(),$e=Math.abs(ge.firstRowIndex-R.current.firstRowIndex),ze=Math.abs(ge.lastRowIndex-R.current.lastRowIndex),Ae=Math.abs(ge.firstColumnIndex-R.current.firstColumnIndex),re=Math.abs(ge.lastColumnIndex-R.current.lastColumnIndex),Oe=$e>=o.rowThreshold||ze>=o.rowThreshold||Ae>=o.columnThreshold||re>=o.columnThreshold||L.current!==v;r.current.publishEvent("rowsScroll",{top:he,left:be,renderContext:Oe?ge:R.current},ne),Oe&&(Au.flushSync(()=>{z(ge)}),L.current=v)},q=ne=>{r.current.publishEvent("virtualScrollerWheel",{},ne)},X=ne=>{r.current.publishEvent("virtualScrollerTouchMove",{},ne)},ie=(ne={renderContext:T})=>{const{renderContext:he,minFirstColumn:be=d,maxLastColumn:ge=p,availableSpace:$e=V.width,rowIndexOffset:ze=0,position:Ae="center"}=ne;if(!he||$e==null)return null;const re=a?0:o.rowBuffer,Oe=a?0:o.columnBuffer,[ve,je]=hl({firstIndex:he.firstRowIndex,lastIndex:he.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:re}),ot=[];if(ne.rows)ne.rows.forEach(Ke=>{ot.push(Ke),r.current.unstable_calculateColSpan({rowId:Ke.id,minFirstColumn:be,maxLastColumn:ge,columns:i})});else{if(!S.range)return null;for(let Ke=ve;Ke<je;Ke+=1){const _e=S.rows[Ke];ot.push(_e),r.current.unstable_calculateColSpan({rowId:_e.id,minFirstColumn:be,maxLastColumn:ge,columns:i})}}const[pt,Je]=hl({firstIndex:he.firstColumnIndex,lastIndex:he.lastColumnIndex,minFirstIndex:be,maxLastIndex:ge,buffer:Oe}),bt=uw({firstColumnToRender:pt,apiRef:r,firstRowToRender:ve,lastRowToRender:je,visibleRows:S.rows}),lt=i.slice(bt,Je),mt=[];for(let Ke=0;Ke<ot.length;Ke+=1){var ht,ut;const{id:_e,model:Te}=ot[Ke],Ne=ve+Ke===S.rows.length-1,Ue=r.current.unstable_rowHasAutoHeight(_e)?"auto":r.current.unstable_getRowHeight(_e);let Se;w[_e]==null?Se=!1:Se=r.current.isRowSelectable(_e),mt.push(M.jsx(o.components.Row,P({row:Te,rowId:_e,rowHeight:Ue,cellFocus:g,cellTabIndex:x,editRowsState:E,renderedColumns:lt,visibleColumns:i,firstColumnToRender:bt,lastColumnToRender:Je,selected:Se,index:ze+((S==null||(ht=S.range)==null?void 0:ht.firstRowIndex)||0)+ve+Ke,containerWidth:$e,isLastVisible:Ne,position:Ae},typeof h=="function"?h(_e,Te):{},(ut=o.componentsProps)==null?void 0:ut.row),_e))}return mt},J=V.width&&v>V.width,fe=u.useMemo(()=>{const ne=Math.max(C.currentPageTotalHeight,1);let he=!1;_!=null&&_.current&&ne<=(_==null?void 0:_.current.clientHeight)&&(he=!0);const be={width:J?v:"auto",height:ne,minHeight:he?"100%":"auto"};return o.autoHeight&&S.rows.length===0&&(be.height=2*b),be},[_,v,C.currentPageTotalHeight,S.rows.length,J,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,fe]),o.autoHeight&&S.rows.length===0&&(fe.height=2*b);const Q={};J||(Q.overflowX="hidden"),o.autoHeight&&(Q.overflowY="hidden");const le=u.useCallback(()=>R.current,[]);return r.current.unstable_getRenderContext=le,{renderContext:T,updateRenderZonePosition:N,getRows:ie,getRootProps:(ne={})=>{let{style:he={}}=ne,be=se(ne,ode);return P({ref:I,onScroll:W,onWheel:q,onTouchMove:X,style:P({},he,Q)},be)},getContentProps:({style:ne={}}={})=>({style:P({},ne,fe)}),getRenderZoneProps:()=>({ref:k})}},ade=["className","disableVirtualization"],cde=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=se(t,ade),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=lde({ref:n,disableVirtualization:o});return M.jsx(Yue,P({className:r},s(i),{children:M.jsx(Zue,P({},a(),{children:M.jsx(rde,P({},c(),{children:d()}))}))}))}),ude=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"]},Ft,t)};function dde(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:d,isLastColumn:p,extendRowFullWidth:h}=e,m=Qe(),v=xt(),b=Xe(v,eA),{hasScrollX:g,hasScrollY:x}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},C=r?b[r]:{},{headerName:E=r!=null?r:"",description:w="",headerAlign:S=void 0}=C;let k;const _=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),I={groupId:r,headerName:E,description:w,depth:i,maxDepth:s,fields:a,colIndex:d,isLastColumn:p};r&&_&&(k=_(I));const O=p?!(p&&g&&!x)&&!h:m.showColumnRightBorder,R=m.showColumnRightBorder,A=P({},e,{classes:m.classes,showRightBorder:O,showColumnBorder:R,headerAlign:S,depth:i,isDragging:!1}),V=E!=null?E:r,B=On(),L=r===null?`empty-group-cell-${B}`:r,F=ude(A),j=typeof C.headerClassName=="function"?C.headerClassName(I):C.headerClassName;return M.jsx(NL,{classes:F,columnMenuOpen:!1,colIndex:d,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:k,headerClassName:j,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 H_=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function fde(e){return!!e.target}const pde=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=xt(),c=Xe(a,Rr),d=Xe(a,ja),p=Xe(a,kL),h=Xe(a,hg),m=Xe(a,Ioe),v=Xe(a,xL),b=Xe(a,jx),g=Xe(a,wp),x=Xe(a,voe),C=Xe(a,uoe),E=Xe(a,ZL),w=Qe(),S=u.useRef(null),k=Ht(t,S),[_,I]=u.useState(null),T=u.useRef(_),O=u.useRef(0),R=Za(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const A=u.useRef(vL(kle,{equalityCheck:(ie,J)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(fe=>ie[fe]===J[fe])})),V=u.useCallback(ie=>{const[J,fe]=hl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:w.rowBuffer}),Q=A.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:J,lastRowToRender:fe,apiRef:a,visibleRows:R.rows}),le=Q>0?O.current-d[Q]:O.current;S.current.style.transform=`translate3d(${-le}px, 0px, 0px)`},[d,n,w.columnBuffer,a,R.rows,w.rowBuffer]);u.useLayoutEffect(()=>{_&&V(_)},[_,V]);const B=u.useCallback(({left:ie,renderContext:J=null},fe)=>{var Q,le;if(!S.current||O.current===ie&&((Q=T.current)==null?void 0:Q.firstColumnIndex)===(J==null?void 0:J.firstColumnIndex)&&((le=T.current)==null?void 0:le.lastColumnIndex)===(J==null?void 0:J.lastColumnIndex))return;O.current=ie;let ne=!1;J!==T.current||!T.current?(fde(fe)?(Au.flushSync(()=>{I(J)}),ne=!0):I(J),T.current=J):ne=!0,J&&ne&&V(J)},[V]),L=u.useCallback(ie=>s(ie.field),[]),F=u.useCallback(()=>s(""),[]),j=u.useCallback(ie=>o(ie.field),[]),G=u.useCallback(()=>o(""),[]);De(a,"columnResizeStart",L),De(a,"columnResizeStop",F),De(a,"columnHeaderDragStart",j),De(a,"columnHeaderDragEnd",G),De(a,"rowsScroll",B);const N=ie=>{const{renderContext:J=_,minFirstColumn:fe=n,maxLastColumn:Q=c.length}=ie||{};if(!J)return null;const[le,ne]=hl({firstIndex:J.firstRowIndex,lastIndex:J.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:w.rowBuffer}),he=A.current({firstColumnIndex:J.firstColumnIndex,minColumnIndex:fe,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:le,lastRowToRender:ne,visibleRows:R.rows}),be=Math.min(J.lastColumnIndex+w.columnBuffer,Q);return{renderedColumns:c.slice(he,be),firstColumnToRender:he,lastColumnToRender:be,minFirstColumn:fe,maxLastColumn:Q}},z=(ie,J={})=>{const fe=N(ie);if(fe==null)return null;const{renderedColumns:Q,firstColumnToRender:le}=fe,ne=[];for(let he=0;he<Q.length;he+=1){const be=Q[he],ge=le+he,$e=ge===0,ze=!(p===null&&h===null),Ae=p!==null&&p.field===be.field||$e&&!ze?0:-1,re=m!==null&&m.field===be.field,Oe=E.open&&E.field===be.field;ne.push(M.jsx(wse,P({},C[be.field],{columnMenuOpen:Oe,filterItemsCounter:x[be.field]&&x[be.field].length,headerHeight:v,isDragging:be.field===r,column:be,colIndex:ge,isResizing:i===be.field,isLastColumn:ge===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:re,tabIndex:Ae},J),be.field))}return M.jsx(H_,{role:"row","aria-rowindex":b+1,ownerState:w,children:ne})},W=(ie=[],J)=>ie.slice(0,J+1),q=ie=>{if(b===0)return null;const J=N(ie);if(J==null||J.renderedColumns.length===0)return null;const{renderedColumns:fe,firstColumnToRender:Q,lastColumnToRender:le,maxLastColumn:ne}=J,he=[],be=[];for(let lt=0;lt<b;lt+=1){var ge,$e,ze;const mt=[];let ht=0,ut=Q-1;const Ke=(ge=c[Q])==null||($e=ge.groupPath)==null?void 0:$e[lt],_e=W((ze=c[Q])==null?void 0:ze.groupPath,lt);for(;Ke!==null&&ut>=n&&(Ae=c[ut])!=null&&Ae.groupPath&&Os(W((re=c[ut])==null?void 0:re.groupPath,lt),_e);){var Ae,re,Oe;const Ue=c[ut];if(ht+=(Oe=Ue.computedWidth)!=null?Oe:0,mt.length===0){var ve;mt.push({width:(ve=Ue.computedWidth)!=null?ve:0,fields:[Ue.field],groupId:Ke,groupParents:_e,colIndex:ut})}else{var je;mt[0].width+=(je=Ue.computedWidth)!=null?je:0,mt[0].fields.push(Ue.field),mt[0].colIndex=ut}ut-=1}const Te=fe.reduce((Ue,Se,Le)=>{var We;const at=Ue[Ue.length-1];if(Se.groupPath&&Se.groupPath.length>lt){var Ot;if(at&&at.groupId===Se.groupPath[lt]){var sn;return[...Ue.slice(0,Ue.length-1),P({},at,{width:at.width+((sn=Se.computedWidth)!=null?sn:0),fields:[...at.fields,Se.field]})]}return[...Ue,{groupId:Se.groupPath[lt],groupParents:W(Se.groupPath,lt),width:(Ot=Se.computedWidth)!=null?Ot:0,fields:[Se.field],colIndex:Q+Le}]}if(at&&at.groupId===null&&Os(W(Se.groupPath,lt),at.groupParents)){var gn;return[...Ue.slice(0,Ue.length-1),P({},at,{width:at.width+((gn=Se.computedWidth)!=null?gn:0),fields:[...at.fields,Se.field]})]}return[...Ue,{groupId:null,groupParents:W(Se.groupPath,lt),width:(We=Se.computedWidth)!=null?We:0,fields:[Se.field],colIndex:Q+Le}]},mt);ut=le;const Ne=Te[Te.length-1].groupId;for(;Ne!==null&&ut<ne&&(ot=c[ut])!=null&&ot.groupPath&&((pt=c[ut])==null||(Je=pt.groupPath)==null?void 0:Je[lt])===Ne;){var ot,pt,Je,bt;const Ue=c[ut];Te[Te.length-1].width+=(bt=Ue.computedWidth)!=null?bt:0,Te[Te.length-1].fields.push(Ue.field),ut+=1}be.push({leftOverflow:ht,elements:[...Te]})}return be.forEach((lt,mt)=>{he.push(M.jsx(H_,{style:{height:`${v}px`,transform:`translateX(-${lt.leftOverflow}px)`},role:"row","aria-rowindex":mt+1,ownerState:w,children:lt.elements.map(({groupId:ht,width:ut,fields:Ke,colIndex:_e},Te)=>M.jsx(dde,{groupId:ht,width:ut,fields:Ke,colIndex:_e,depth:mt,isLastColumn:_e===c.length-Ke.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:be.length,height:v},Te))},mt))}),he},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:_,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>P({style:X},ie),getInnerProps:()=>({ref:k,role:"rowgroup"})}},hde=["className"],mde=e=>{const{classes:t}=e;return Ie({root:["columnHeaders"]},Ft,t)},gde=oe("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",boxSizing:"border-box",borderBottom:`1px solid ${e.palette.mode==="light"?Bs(ct(e.palette.divider,1),.88):Ds(ct(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),vde=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,hde),i=Qe(),s=mde(i);return M.jsx(gde,P({ref:n,className:pe(r,s.root),ownerState:i},o))}),yde=["isDragging","className"],bde=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ie({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ft,r)},wde=oe("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ee.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ee.columnHeaderDropZone} .${ee.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ee["columnHeadersInner--scrollable"]} .${ee.columnHeader}:last-child`]:{borderRight:"none"}})),Cde=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=se(t,yde),c=xt(),d=Qe(),p=P({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=bde(p);return M.jsx(wde,P({ref:n,className:pe(s,h.root),ownerState:p},a))}),xde=["innerRef","className"],Sde=u.forwardRef(function(t,n){const{innerRef:r}=t,o=se(t,xde),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:d}=pde({innerRef:r});return M.jsxs(vde,P({ref:n},s(o),{children:[M.jsx(T_,{scrollDirection:"left"}),M.jsxs(Cde,P({isDragging:i},a(),{children:[d(),c()]})),M.jsx(T_,{scrollDirection:"right"})]}))}),pA=u.forwardRef(function(t,n){const r=Wue(t),o=jue(r);return M.jsx(Xae,{apiRef:o,props:r,children:M.jsx(zie,{className:r.className,style:r.style,sx:r.sx,ref:n,children:M.jsxs(Eoe,{children:[M.jsx(koe,{}),M.jsx(xoe,{ColumnHeadersComponent:Sde,VirtualScrollerComponent:cde}),M.jsx(Poe,{})]})})})}),Ku=u.memo(pA);pA.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:Z0(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:Z0(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(`
340
+ `)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.arrayOf(ue.object).isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:Z0(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 Ede(){return u.createElement(u.Fragment,{},u.createElement(kde),u.createElement(Ide))}const Pde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function kde(){const{data:e,element:t}=ko("get_status"),{data:n}=Ure("get_connection_stats");e&&n&&Object.assign(e,n);const r=Da("md"),o=Da("sm");return t||u.createElement(et,{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:Na,minWidth:"4em"}),o&&i("got",{render:Na,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:hA}));function i(a,{label:c,minWidth:d,render:p}={}){let h=$t.get(e,a);if(h===void 0)return null;typeof h=="string"&&Pde.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=$t.capitalize(a.replaceAll("_"," "))),u.createElement(_v,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:d}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Ide(){const{list:e,error:t,props:n}=Qa("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(d=>!r||d.path).map((d,p)=>ke({id:p},d)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:d,value:p})=>(d.v===6?`[${p}]`:p)+" :"+d.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:d})=>new Date(d).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:d,row:p}){if(!d)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(Cte,{sx:{mr:1}}),p.archive,u.createElement(et,{ml:2,color:"text.secondary"},d));const h=d==null?void 0:d.lastIndexOf("/");return u.createElement(u.Fragment,{},p.uploadProgress!==void 0&&u.createElement(nL,{icon:zv,progress:p.uploadProgress,sx:{mr:1}}),d.slice(h+1),h>0&&u.createElement(et,{ml:2,color:"text.secondary"},d.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:d,row:p})=>u.createElement(u.Fragment,{},"IPv"+d,p.secure&&vo(MO,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",renderCell:({value:d,row:p})=>hA(Math.max(d||0,p.inSpeed||0))},{field:"sent",headerName:"Total",type:"number",renderCell:({value:d,row:p})=>Na(Math.max(d||0,p.got||0))},{field:"agent",headerName:"Agent"},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:d}){return u.createElement("div",{},u.createElement(An,{icon:os,title:"Disconnect",onClick:()=>St("disconnect",$t.pick(d,["ip","port"]))}),u.createElement(An,{icon:ute,title:"Block IP",disabled:d.ip===(n==null?void 0:n.you),onClick:()=>_de(d.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(et,{display:"flex",alignItems:"center"},u.createElement(ns,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(et,{flex:1}),u.createElement(An,{title:i?"Resume":"Pause",icon:i?ux:Rte,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Fo,{severity:"error"},t):u.createElement(Ku,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function _de(e){return xre("block",t=>[...t,{ip:e}])}function hA(e){return e?Na(e*1e3,{post:"B/s",k:1e3,digits:1}):""}function $de(){const e=ci({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=mA();return u.createElement(u.Fragment,{},u.createElement(et,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t.isRoot?"(home)":t.id)),u.createElement(uF,{from:t.source,onSelect(r){return rt(this,null,function*(){const o=pp(yield Promise.all(r.map(i=>St("add_vfs",{parent:t.id,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield fn(u.createElement(et,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),Ua(),e()})}}))}})}function Tde(){return rt(this,null,function*(){try{const e=yield wre("Enter folder name");if(!e)return;const{id:t}=mA();yield St("add_vfs",{parent:t,name:e}),Ua([t+e]),yield fn(`Folder "${e}" created`,"success")}catch(e){yield fn(e)}})}function mA(){const e=cn.selectedFiles[0]||cn.vfs;return e.type==="folder"?e:e.parent}function gA(n){var r=n,{items:e}=r,t=nn(r,["items"]);const[o,i]=xo.useState(),s=!!o,a=u.useCallback(()=>i(void 0),[]);return u.createElement(xo.Fragment,{},u.createElement(cr,ke({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(yO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(ur,kt(ke({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Mde(){return u.createElement(et,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(gA,{variant:"contained",startIcon:u.createElement(ax),items:[{children:"from disk",onClick:$de},{children:"virtual folder",onClick:Tde}]},"Add"),kx(()=>Ua()))}function ks(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 Jx=Symbol.for("yaml.alias"),mw=Symbol.for("yaml.document"),Al=Symbol.for("yaml.map"),vA=Symbol.for("yaml.pair"),Vs=Symbol.for("yaml.scalar"),qu=Symbol.for("yaml.seq"),si=Symbol.for("yaml.node.type"),ec=e=>!!e&&typeof e=="object"&&e[si]===Jx,Pp=e=>!!e&&typeof e=="object"&&e[si]===mw,tc=e=>!!e&&typeof e=="object"&&e[si]===Al,kn=e=>!!e&&typeof e=="object"&&e[si]===vA,mn=e=>!!e&&typeof e=="object"&&e[si]===Vs,Yu=e=>!!e&&typeof e=="object"&&e[si]===qu;function Rn(e){if(e&&typeof e=="object")switch(e[si]){case Al:case qu:return!0}return!1}function Gn(e){if(e&&typeof e=="object")switch(e[si]){case Jx:case Al:case Vs:case qu:return!0}return!1}const Rde=e=>(mn(e)||Rn(e))&&!!e.anchor;class Zx{constructor(t){Object.defineProperty(this,si,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Xr=Symbol("break visit"),yA=Symbol("skip children"),Ji=Symbol("remove node");function Gl(e,t){const n=bA(t);Pp(e)?Kc(null,e.contents,n,Object.freeze([e]))===Ji&&(e.contents=null):Kc(null,e,n,Object.freeze([]))}Gl.BREAK=Xr;Gl.SKIP=yA;Gl.REMOVE=Ji;function Kc(e,t,n,r){const o=wA(e,t,n,r);if(Gn(o)||kn(o))return CA(e,r,o),Kc(e,o,n,r);if(typeof o!="symbol"){if(Rn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Kc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Xr)return Xr;s===Ji&&(t.items.splice(i,1),i-=1)}}}else if(kn(t)){r=Object.freeze(r.concat(t));const i=Kc("key",t.key,n,r);if(i===Xr)return Xr;i===Ji&&(t.key=null);const s=Kc("value",t.value,n,r);if(s===Xr)return Xr;s===Ji&&(t.value=null)}}return o}function Zv(e,t){return rt(this,null,function*(){const n=bA(t);Pp(e)?(yield qc(null,e.contents,n,Object.freeze([e])))===Ji&&(e.contents=null):yield qc(null,e,n,Object.freeze([]))})}Zv.BREAK=Xr;Zv.SKIP=yA;Zv.REMOVE=Ji;function qc(e,t,n,r){return rt(this,null,function*(){const o=yield wA(e,t,n,r);if(Gn(o)||kn(o))return CA(e,r,o),qc(e,o,n,r);if(typeof o!="symbol"){if(Rn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield qc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Xr)return Xr;s===Ji&&(t.items.splice(i,1),i-=1)}}}else if(kn(t)){r=Object.freeze(r.concat(t));const i=yield qc("key",t.key,n,r);if(i===Xr)return Xr;i===Ji&&(t.key=null);const s=yield qc("value",t.value,n,r);if(s===Xr)return Xr;s===Ji&&(t.value=null)}}return o})}function bA(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 wA(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(tc(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Yu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(kn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(mn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(ec(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function CA(e,t,n){const r=t[t.length-1];if(Rn(r))r.items[e]=n;else if(kn(r))e==="key"?r.key=n:r.value=n;else if(Pp(r))r.contents=n;else{const o=ec(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Ode={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Lde=e=>e.replace(/[!,[\]{}]/g,t=>Ode[t]);class Dr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Dr.defaultYaml,t),this.tags=Object.assign({},Dr.defaultTags,n)}clone(){const t=new Dr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Dr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Dr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Dr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Dr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Dr.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Lde(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&Gn(t.contents)){const i={};Gl(t.contents,(s,a)=>{Gn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
341
+ `)}}Dr.defaultYaml={explicit:!1,version:"1.2"};Dr.defaultTags={"!!":"tag:yaml.org,2002:"};function xA(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 SA(e){const t=new Set;return Gl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function EA(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ade(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=SA(e));const s=EA(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(mn(s.node)||Rn(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 ey extends Zx{constructor(t){super(Jx),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Gl(t,{Node:(r,o)=>{if(o===this)return Gl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}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=wm(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(xA(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function wm(e,t,n){if(ec(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Rn(t)){let r=0;for(const o of t.items){const i=wm(e,o,n);i>r&&(r=i)}return r}else if(kn(t)){const r=wm(e,t.key,n),o=wm(e,t.value,n);return Math.max(r,o)}return 1}function Zi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Zi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Rde(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 PA=e=>!e||typeof e!="function"&&typeof e!="object";class It extends Zx{constructor(t){super(Vs),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Zi(this.value,t,n)}toString(){return String(this.value)}}It.BLOCK_FOLDED="BLOCK_FOLDED";It.BLOCK_LITERAL="BLOCK_LITERAL";It.PLAIN="PLAIN";It.QUOTE_DOUBLE="QUOTE_DOUBLE";It.QUOTE_SINGLE="QUOTE_SINGLE";const Fde="tag:yaml.org,2002:";function Nde(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 Qf(e,t,n){var h,m;if(Pp(e)&&(e=e.contents),Gn(e))return e;if(kn(e)){const v=(m=(h=n.schema[Al]).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!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new ey(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=Fde+t.slice(2));let d=Nde(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new It(e);return c&&(c.node=v),v}d=e instanceof Map?s[Al]:Symbol.iterator in Object(e)?s[qu]:s[Al]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):new It(e);return t&&(p.tag=t),c&&(c.node=p),p}function bg(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 Qf(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 Gd=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ty extends Zx{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Gn(r)||kn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Gd(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Rn(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,bg(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(Rn(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&&mn(i)?i.value:i:Rn(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!kn(n))return!1;const r=n.value;return r==null||t&&mn(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 Rn(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(Rn(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,bg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}ty.maxFlowStringSingleLineLength=60;const Dde=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ts(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const El=(e,t,n)=>e.endsWith(`
342
+ `)?Ts(n,t):n.includes(`
343
+ `)?`
344
+ `+Ts(n,t):(e.endsWith(" ")?"":" ")+n,kA="flow",gw="block",Cm="quoted";function ny(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const d=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?d.push(0):h=o-r);let m,v,b=!1,g=-1,x=-1,C=-1;n===gw&&(g=V_(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===Cm&&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===`
345
+ `)n===gw&&(g=V_(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
346
+ `&&v!==" "){const S=e[g+1];S&&S!==" "&&S!==`
347
+ `&&S!==" "&&(m=g)}if(g>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===Cm){for(;v===" "||v===" ";)v=w,w=e[g+=1],b=!0;const S=g>C+1?g-2:x-1;if(p[S])return e;d.push(S),p[S]=!0,h=S+c,m=void 0}else b=!0}v=w}if(b&&a&&a(),d.length===0)return e;s&&s();let E=e.slice(0,d[0]);for(let w=0;w<d.length;++w){const S=d[w],k=d[w+1]||e.length;S===0?E=`
348
+ ${t}${e.slice(0,k)}`:(n===Cm&&p[S]&&(E+=`${e[S]}\\`),E+=`
349
+ ${t}${e.slice(S+1,k)}`)}return E}function V_(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
350
+ `);n=e[t+1]}return t}const ry=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),oy=e=>/^(%|---|\.\.\.)/m.test(e);function Bde(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]===`
351
+ `){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function hf(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(oy(e)?" ":"");let s="",a=0;for(let c=0,d=n[c];d;d=n[++c])if(d===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,d="\\"),d==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
352
+
353
+ `;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
354
+ `,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:ny(s,i,Cm,ry(t,!1))}function vw(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
355
+ `)||/[ \t]\n|\n[ \t]/.test(e))return hf(e,t);const n=t.indent||(oy(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
356
+ ${n}`)+"'";return t.implicitKey?r:ny(r,n,kA,ry(t,!1))}function Yc(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=hf;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=vw:i&&!o?r=hf:r=n?vw:hf}return r(e,t)}function xm({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Yc(n,r);const d=r.indent||(r.forceBlockIndent||oy(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===It.BLOCK_FOLDED?!1:t===It.BLOCK_LITERAL?!0:!Bde(n,c,d.length);if(!n)return p?`|
357
+ `:`>
358
+ `;let h,m;for(m=n.length;m>0;--m){const _=n[m-1];if(_!==`
359
+ `&&_!==" "&&_!==" ")break}let v=n.substring(m);const b=v.indexOf(`
360
+ `);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
361
+ `&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${d}`));let g=!1,x,C=-1;for(x=0;x<n.length;++x){const _=n[x];if(_===" ")g=!0;else if(_===`
362
+ `)C=x;else break}let E=n.substring(0,C<x?C+1:x);E&&(n=n.substring(E.length),E=E.replace(/\n+/g,`$&${d}`));let S=(p?"|":">")+(g?d?"2":"1":"")+h;if(e&&(S+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${S}
363
+ ${d}${E}${n}${v}`;n=n.replace(/\n+/g,`
364
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const k=ny(`${E}${n}${v}`,d,gw,ry(r,!0));return`${S}
365
+ ${d}${k}`}function zde(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,indentStep:d,inFlow:p}=t;if(a&&/[\n[\]{},]/.test(i)||p&&/[[\]{},]/.test(i))return Yc(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
366
+ `)?Yc(i,t):xm(e,t,n,r);if(!a&&!p&&o!==It.PLAIN&&i.includes(`
367
+ `))return xm(e,t,n,r);if(oy(i)){if(c==="")return t.forceBlockIndent=!0,xm(e,t,n,r);if(a&&c===d)return Yc(i,t)}const h=i.replace(/\n+/g,`$&
368
+ ${c}`);if(s){const m=g=>{var x;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((x=g.test)==null?void 0:x.test(h))},{compat:v,tags:b}=t.doc.schema;if(b.some(m)||v!=null&&v.some(m))return Yc(i,t)}return a?h:ny(h,c,kA,ry(t,!1))}function kp(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!==It.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=It.QUOTE_DOUBLE);const c=p=>{switch(p){case It.BLOCK_FOLDED:case It.BLOCK_LITERAL:return o||i?Yc(s.value,t):xm(s,t,n,r);case It.QUOTE_DOUBLE:return hf(s.value,t);case It.QUOTE_SINGLE:return vw(s.value,t);case It.PLAIN:return zde(s,t,n,r);default:return null}};let d=c(a);if(d===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(d=c(m),d===null)throw new Error(`Unsupported default string type ${m}`)}return d}function IA(e,t){const n=Object.assign({blockQuote:!0,commentString:Dde,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function jde(e,t){var o,i,s,a;if(t.tag){const c=e.filter(d=>d.tag===t.tag);if(c.length>0)return(o=c.find(d=>d.format===t.format))!=null?o:c[0]}let n,r;if(mn(t)){r=t.value;const c=e.filter(d=>{var p;return(p=d.identify)==null?void 0:p.call(d,r)});n=(i=c.find(d=>d.format===t.format))!=null?i:c.find(d=>!d.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function Hde(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(mn(e)||Rn(e))&&e.anchor;i&&xA(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 Ha(e,t,n,r){var c,d;if(kn(e))return e.toString(t,n,r);if(ec(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=Gn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=jde(t.doc.schema.tags,i));const s=Hde(i,o,t);s.length>0&&(t.indentAtStart=((d=t.indentAtStart)!=null?d:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):mn(i)?kp(i,t,n,r):i.toString(t,n,r);return s?mn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
369
+ ${t.indent}${a}`:a}function Vde({key:e,value:t},n,r,o){var I,T;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Gn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Rn(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||Rn(e)||(mn(e)?e.type===It.BLOCK_FOLDED||e.type===It.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,x=Ha(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+=El(x,n.indent,d(m)):g&&o&&o(),x;b&&(m=null),v?(m&&(x+=El(x,n.indent,d(m))),x=`? ${x}
370
+ ${a}:`):(x=`${x}:`,m&&(x+=El(x,n.indent,d(m))));let C,E,w;Gn(t)?(C=!!t.spaceBefore,E=t.commentBefore,w=t.comment):(C=!1,E=null,w=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!v&&!m&&mn(t)&&(n.indentAtStart=x.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Yu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let S=!1;const k=Ha(t,n,()=>S=!0,()=>g=!0);let _=" ";if(m||C||E){if(_=C?`
371
+ `:"",E){const O=d(E);_+=`
372
+ ${Ts(O,n.indent)}`}k===""&&!n.inFlow?_===`
373
+ `&&(_=`
374
+
375
+ `):_+=`
376
+ ${n.indent}`}else if(!v&&Rn(t)){const O=k[0],R=k.indexOf(`
377
+ `),A=R!==-1,V=(T=(I=n.inFlow)!=null?I:t.flow)!=null?T:t.items.length===0;if(A||!V){let B=!1;if(A&&(O==="&"||O==="!")){let L=k.indexOf(" ");O==="&"&&L!==-1&&L<R&&k[L+1]==="!"&&(L=k.indexOf(" ",L+1)),(L===-1||R<L)&&(B=!0)}B||(_=`
378
+ ${n.indent}`)}}else(k===""||k[0]===`
379
+ `)&&(_="");return x+=_+k,n.inFlow?S&&r&&r():w&&!S?x+=El(x,n.indent,d(w)):g&&o&&o(),x}function _A(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const U_="<<";function $A(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Ude(n))if(r=ec(r)?r.resolve(e.doc):r,Yu(r))for(const o of r.items)P1(e,t,o);else if(Array.isArray(r))for(const o of r)P1(e,t,o);else P1(e,t,r);else{const o=Zi(n,"",e);if(t instanceof Map)t.set(o,Zi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Wde(n,o,e),s=Zi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Ude=e=>e===U_||mn(e)&&e.value===U_&&(!e.type||e.type===It.PLAIN);function P1(e,t,n){const r=e&&ec(n)?n.resolve(e.doc):n;if(!tc(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 Wde(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Gn(e)&&n&&n.doc){const r=IA(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)+'..."'),_A(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 eS(e,t,n){const r=Qf(e,void 0,n),o=Qf(t,void 0,n);return new Tr(r,o)}class Tr{constructor(t,n=null){Object.defineProperty(this,si,{value:vA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Gn(n)&&(n=n.clone(t)),Gn(r)&&(r=r.clone(t)),new Tr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return $A(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Vde(this,t,n,r):JSON.stringify(this)}}function TA(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?Kde:Gde)(e,t,n)}function Gde({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const g=t[b];let x=null;if(Gn(g))!h&&g.spaceBefore&&m.push(""),wg(n,m,g.commentBefore,h),g.comment&&(x=g.comment);else if(kn(g)){const E=Gn(g.key)?g.key:null;E&&(!h&&E.spaceBefore&&m.push(""),wg(n,m,E.commentBefore,h))}h=!1;let C=Ha(g,p,()=>x=null,()=>h=!0);x&&(C+=El(C,i,d(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?`
380
+ ${c}${g}`:`
381
+ `}}return e?(v+=`
382
+ `+Ts(d(e),c),a&&a()):h&&s&&s(),v}function Kde({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:c,options:{commentString:d}}=n;o+=a;const p=Object.assign({},n,{indent:o,inFlow:!0,type:null});let h=!1,m=0;const v=[];for(let C=0;C<t.length;++C){const E=t[C];let w=null;if(Gn(E))E.spaceBefore&&v.push(""),wg(n,v,E.commentBefore,!1),E.comment&&(w=E.comment);else if(kn(E)){const k=Gn(E.key)?E.key:null;k&&(k.spaceBefore&&v.push(""),wg(n,v,k.commentBefore,!1),k.comment&&(h=!0));const _=Gn(E.value)?E.value:null;_?(_.comment&&(w=_.comment),_.commentBefore&&(h=!0)):E.value==null&&k&&k.comment&&(w=k.comment)}w&&(h=!0);let S=Ha(E,p,()=>w=null);C<t.length-1&&(S+=","),w&&(S+=El(S,o,d(w))),!h&&(v.length>m||S.includes(`
383
+ `))&&(h=!0),v.push(S),m=v.length}let b;const{start:g,end:x}=r;if(v.length===0)b=g+x;else if(h||(h=v.reduce((E,w)=>E+w.length+2,2)>ty.maxFlowStringSingleLineLength),h){b=g;for(const C of v)b+=C?`
384
+ ${a}${s}${C}`:`
385
+ `;b+=`
386
+ ${s}${x}`}else b=`${g}${c}${v.join(" ")}${c}${x}`;return e&&(b+=El(b,s,d(e)),i&&i()),b}function wg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=Ts(t(r),e);n.push(i.trimStart())}}function ba(e,t){const n=mn(t)?t.value:t;for(const r of e)if(kn(r)&&(r.key===t||r.key===n||mn(r.key)&&r.key.value===n))return r}class Xo extends ty{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Al,t),this.items=[]}add(t,n){var s;let r;kn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Tr(t,t==null?void 0:t.value):r=new Tr(t.key,t.value);const o=ba(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`);mn(o.value)&&PA(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=ba(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=ba(this.items,t),o=r==null?void 0:r.value;return(i=!n&&mn(o)?o.value:o)!=null?i:void 0}has(t){return!!ba(this.items,t)}set(t,n){this.add(new Tr(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)$A(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!kn(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})),TA(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function qde(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Xo(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(eS(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 Xu={collection:"map",createNode:qde,default:!0,nodeClass:Xo,tag:"tag:yaml.org,2002:map",resolve(e,t){return tc(e)||t("Expected a mapping for this tag"),e}};class nc extends ty{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(qu,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Kh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Kh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&mn(o)?o.value:o}has(t){const n=Kh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Kh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];mn(o)&&PA(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(Zi(i,String(o++),n));return r}toString(t,n,r){return t?TA(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Kh(e){let t=mn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Yde(e,t,n){const{replacer:r}=n,o=new nc(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(Qf(s,void 0,n))}}return o}const Qu={collection:"seq",createNode:Yde,default:!0,nodeClass:nc,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Yu(e)||t("Expected a sequence for this tag"),e}},iy={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),kp(e,t,n,r)}},sy={identify:e=>e==null,createNode:()=>new It(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new It(null),stringify:({source:e},t)=>typeof e=="string"&&sy.test.test(e)?e:t.options.nullStr},tS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new It(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&tS.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 Ti({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 MA={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:Ti},RA={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():Ti(e)}},OA={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 It(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Ti},ly=e=>typeof e=="bigint"||Number.isInteger(e),nS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function LA(e,t,n){const{value:r}=e;return ly(r)&&r>=0?n+r.toString(t):Ti(e)}const AA={identify:e=>ly(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>nS(e,2,8,n),stringify:e=>LA(e,8,"0o")},FA={identify:ly,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>nS(e,0,10,n),stringify:Ti},NA={identify:e=>ly(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>nS(e,2,16,n),stringify:e=>LA(e,16,"0x")},Xde=[Xu,Qu,iy,sy,tS,AA,FA,NA,MA,RA,OA];function W_(e){return typeof e=="bigint"||Number.isInteger(e)}const qh=({value:e})=>JSON.stringify(e),Qde=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:qh},{identify:e=>e==null,createNode:()=>new It(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:qh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:qh},{identify:W_,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})=>W_(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:qh}],Jde={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Zde=[Xu,Qu].concat(Qde,Jde),rS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<s.length;++d)c+=String.fromCharCode(s[d]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=It.BLOCK_LITERAL),t!==It.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(a.length/c),p=new Array(d);for(let h=0,m=0;h<d;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===It.BLOCK_LITERAL?`
387
+ `:" ")}return kp({comment:e,type:t,value:a},r,o,i)}};function DA(e,t){var n;if(Yu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!kn(o)){if(tc(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Tr(new It(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
388
+ ${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
389
+ ${s.comment}`:o.comment}o=i}e.items[r]=kn(o)?o:new Tr(o)}}else t("Expected a sequence for this tag");return e}function BA(e,t,n){const{replacer:r}=n,o=new nc(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const d=Object.keys(s);if(d.length===1)a=d[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(eS(a,c,n))}return o}const oS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:DA,createNode:BA};class cu extends nc{constructor(){super(),this.add=Xo.prototype.add.bind(this),this.delete=Xo.prototype.delete.bind(this),this.get=Xo.prototype.get.bind(this),this.has=Xo.prototype.has.bind(this),this.set=Xo.prototype.set.bind(this),this.tag=cu.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(kn(o)?(i=Zi(o.key,"",n),s=Zi(o.value,i,n)):i=Zi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}cu.tag="tag:yaml.org,2002:omap";const iS={collection:"seq",identify:e=>e instanceof Map,nodeClass:cu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=DA(e,t),r=[];for(const{key:o}of n.items)mn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new cu,n)},createNode(e,t,n){const r=BA(e,t,n),o=new cu;return o.items=r.items,o}};function zA({value:e,source:t},n){return t&&(e?jA:HA).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const jA={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 It(!0),stringify:zA},HA={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 It(!1),stringify:zA},efe={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:Ti},tfe={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():Ti(e)}},nfe={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 It(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:Ti},Ip=e=>typeof e=="bigint"||Number.isInteger(e);function ay(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 sS(e,t,n){const{value:r}=e;if(Ip(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Ti(e)}const rfe={identify:Ip,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ay(e,2,2,n),stringify:e=>sS(e,2,"0b")},ofe={identify:Ip,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ay(e,1,8,n),stringify:e=>sS(e,8,"0")},ife={identify:Ip,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ay(e,0,10,n),stringify:Ti},sfe={identify:Ip,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ay(e,2,16,n),stringify:e=>sS(e,16,"0x")};class uu extends Xo{constructor(t){super(t),this.tag=uu.tag}add(t){let n;kn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Tr(t.key,null):n=new Tr(t,null),ba(this.items,n.key)||this.items.push(n)}get(t,n){const r=ba(this.items,t);return!n&&kn(r)?mn(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=ba(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Tr(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")}}uu.tag="tag:yaml.org,2002:set";const lS={collection:"map",identify:e=>e instanceof Set,nodeClass:uu,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(tc(e)){if(e.hasAllNullValues(!0))return Object.assign(new uu,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 uu(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(eS(i,null,n));return o}};function aS(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 VA(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Ti(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 UA={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})=>aS(e,n),stringify:VA},WA={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=>aS(e,!1),stringify:VA},cy={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(cy.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=aS(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},G_=[Xu,Qu,iy,sy,jA,HA,rfe,ofe,ife,sfe,efe,tfe,nfe,rS,iS,oS,lS,UA,WA,cy],K_=new Map([["core",Xde],["failsafe",[Xu,Qu,iy]],["json",Zde],["yaml11",G_],["yaml-1.1",G_]]),q_={binary:rS,bool:tS,float:OA,floatExp:RA,floatNaN:MA,floatTime:WA,int:FA,intHex:NA,intOct:AA,intTime:UA,map:Xu,null:sy,omap:iS,pairs:oS,seq:Qu,set:lS,timestamp:cy},lfe={"tag:yaml.org,2002:binary":rS,"tag:yaml.org,2002:omap":iS,"tag:yaml.org,2002:pairs":oS,"tag:yaml.org,2002:set":lS,"tag:yaml.org,2002:timestamp":cy};function k1(e,t){let n=K_.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(K_.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=q_[r];if(o)return o;const i=Object.keys(q_).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const afe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class uy{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?k1(t,"compat"):t?k1(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?lfe:{},this.tags=k1(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Al,{value:Xu}),Object.defineProperty(this,Vs,{value:iy}),Object.defineProperty(this,qu,{value:Qu}),this.sortMapEntries=typeof s=="function"?s:s===!0?afe:null}clone(){const t=Object.create(uy.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function cfe(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=IA(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(Ts(d,""))}let s=!1,a=null;if(e.contents){if(Gn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(Ts(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=Ha(e.contents,o,()=>a=null,d);a&&(p+=El(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Ha(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
390
+ `)?(n.push("..."),n.push(Ts(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&s&&(d=d.replace(/^\n+/,"")),d&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(Ts(i(d),"")))}return n.join(`
391
+ `)+`
392
+ `}function Kd(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=Kd(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=Kd(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=Kd(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=Kd(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Ju{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,si,{value:mw});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Dr({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Ju.prototype,{[si]:{value:mw}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Gn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Ic(this.contents)&&this.contents.add(t)}addIn(t,n){Ic(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=SA(this);t.anchor=!n||r.has(n)?EA(n||"a",r):n}return new ey(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=E=>typeof E=="number"||E instanceof String||E 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:d,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=Ade(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:v},g=Qf(t,p,b);return a&&Rn(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 Tr(o,i)}delete(t){return Ic(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Gd(t)?this.contents==null?!1:(this.contents=null,!0):Ic(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Rn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Gd(t)?!n&&mn(this.contents)?this.contents.value:this.contents:Rn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Rn(this.contents)?this.contents.has(t):!1}hasIn(t){return Gd(t)?this.contents!==void 0:Rn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=bg(this.schema,[t],n):Ic(this.contents)&&this.contents.set(t,n)}setIn(t,n){Gd(t)?this.contents=n:this.contents==null?this.contents=bg(this.schema,Array.from(t),n):Ic(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Dr({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Dr({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new uy(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:Ha},c=Zi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:d,res:p}of a.anchors.values())i(p,d);return typeof s=="function"?Kd(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 cfe(this,t)}}function Ic(e){if(Rn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class cS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class wa extends cS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class GA extends cS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Cg=(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)+`…
393
+ `),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.max(1,Math.min(c.col-o,80-i)));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
394
+
395
+ ${s}
396
+ ${d}
397
+ `}};function Mu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,v=!1,b=!1,g=null,x=null,C=null,E=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"),d=!0;break;case"comment":{d||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),d=!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,d=!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,d=!1,b=!0;break}case n:(g||x)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),E&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t!=null?t:"collection"}`),E=_,c=!1,d=!1;break;case"comma":if(t){C&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=_,c=!1,d=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,d=!1}const S=e[e.length-1],k=S?S.offset+S.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:E,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:x,end:k,start:w!=null?w:k}}function Jf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
398
+ `))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(Jf(t.key)||Jf(t.value))return!0}return!1;default:return!0}}function yw(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Jf(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function KA(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||mn(i)&&mn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const Y_="All mapping items must start at the same column";function ufe({composeNode:e,composeEmptyNode:t},n,r,o){var c;const i=new Xo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const d of r.items){const{start:p,key:h,sep:m,value:v}=d,b=Mu(p,{indicator:"explicit-key-ind",next:h!=null?h:m==null?void 0:m[0],offset:s,onError:o,startOnNewline:!0}),g=!b.found;if(g){if(h&&(h.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&o(s,"BAD_INDENT",Y_)),!b.anchor&&!b.tag&&!m){a=b.end,b.comment&&(i.comment?i.comment+=`
399
+ `+b.comment:i.comment=b.comment);continue}(b.hasNewlineAfterProp||Jf(h))&&o(h!=null?h:p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=b.found)==null?void 0:c.indent)!==r.indent&&o(s,"BAD_INDENT",Y_);const x=b.end,C=h?e(n,h,b,o):t(n,x,p,null,b,o);n.schema.compat&&yw(r.indent,h,o),KA(n,i.items,C)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const E=Mu(m!=null?m:[],{indicator:"map-value-ind",next:v,offset:C.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(s=E.end,E.found){g&&((v==null?void 0:v.type)==="block-map"&&!E.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<E.found.offset-1024&&o(C.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const w=v?e(n,v,E,o):t(n,s,m,null,E,o);n.schema.compat&&yw(r.indent,v,o),s=w.range[2];const S=new Tr(C,w);n.options.keepSourceTokens&&(S.srcToken=d),i.items.push(S)}else{g&&o(C.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),E.comment&&(C.comment?C.comment+=`
400
+ `+E.comment:C.comment=E.comment);const w=new Tr(C);n.options.keepSourceTokens&&(w.srcToken=d),i.items.push(w)}}return a&&a<s&&o(a,"IMPOSSIBLE","Map comment with trailing content"),i.range=[r.offset,s,a!=null?a:s],i}function dfe({composeNode:e,composeEmptyNode:t},n,r,o){const i=new nc(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const{start:c,value:d}of r.items){const p=Mu(c,{indicator:"seq-item-ind",next:d,offset:s,onError:o,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||d)d&&d.type==="block-seq"?o(p.end,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{a=p.end,p.comment&&(i.comment=p.comment);continue}const h=d?e(n,d,p,o):t(n,p.end,c,null,p,o);n.schema.compat&&yw(r.indent,d,o),s=h.range[2],i.items.push(h)}return i.range=[r.offset,s,a!=null?a:s],i}function _p(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:d}=a;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=c.length}}return{comment:o,offset:t}}const I1="Block collections are not allowed within flow collections",_1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ffe({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Xo(n.schema):new nc(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const x=r.items[g],{start:C,key:E,sep:w,value:S}=x,k=Mu(C,{flow:s,indicator:"explicit-key-ind",next:E!=null?E:w==null?void 0:w[0],offset:d,onError:o,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!w&&!S){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+=`
401
+ `+k.comment:a.comment=k.comment),d=k.end;continue}!i&&n.options.strict&&Jf(E)&&o(E,"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];kn(I)&&(I=(b=I.value)!=null?b:I.key),I.comment?I.comment+=`
402
+ `+_:I.comment=_,k.comment=k.comment.substring(_.length+1)}}if(!i&&!w&&!k.found){const _=S?e(n,S,k,o):t(n,k.end,w,null,k,o);a.items.push(_),d=_.range[2],_1(S)&&o(_.range,"BLOCK_IN_FLOW",I1)}else{const _=k.end,I=E?e(n,E,k,o):t(n,_,C,null,k,o);_1(E)&&o(I.range,"BLOCK_IN_FLOW",I1);const T=Mu(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:S,offset:I.range[2],onError:o,startOnNewline:!1});if(T.found){if(!i&&!k.found&&n.options.strict){if(w)for(const A of w){if(A===T.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<T.found.offset-1024&&o(T.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&S.source[0]===":"?o(S,"MISSING_CHAR",`Missing space after : in ${s}`):o(T.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const O=S?e(n,S,T,o):T.found?t(n,T.end,w,null,T,o):null;O?_1(S)&&o(O.range,"BLOCK_IN_FLOW",I1):T.comment&&(I.comment?I.comment+=`
403
+ `+T.comment:I.comment=T.comment);const R=new Tr(I,O);if(n.options.keepSourceTokens&&(R.srcToken=x),i){const A=a;KA(n,A.items,I)&&o(_,"DUPLICATE_KEY","Map keys must be unique"),A.items.push(R)}else{const A=new Xo(n.schema);A.flow=!0,A.items.push(R),a.items.push(A)}d=O?O.range[2]:T.end}}const p=i?"}":"]",[h,...m]=r.end;let v=d;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(d,c?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=_p(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
404
+ `+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function pfe(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=ufe(e,t,n,o);break}case"block-seq":{i=dfe(e,t,n,o);break}case"flow-collection":{i=ffe(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=tc(i)?"map":"seq";let d=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!d){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),d=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=d.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Gn(p)?p:new It(p);return h.range=i.range,h.tag=s,d!=null&&d.format&&(h.format=d.format),h}function qA(e,t,n){const r=e.offset,o=hfe(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?It.BLOCK_FOLDED:It.BLOCK_LITERAL,s=e.source?mfe(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?`
405
+ `.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,d=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 E="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+x.length,"MISSING_CHAR",E)}o.indent===0&&(c=x.length),p=g;break}d+=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)+`
406
+ `;for(let g=p;g<a;++g){let[x,C]=s[g];d+=x.length+C.length+1;const E=C[C.length-1]==="\r";if(E&&(C=C.slice(0,-1)),C&&x.length<c){const S=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-C.length-(E?2:1),"BAD_INDENT",S),x=""}i===It.BLOCK_LITERAL?(h+=m+x.slice(c)+C,m=`
407
+ `):x.length>c||C[0]===" "?(m===" "?m=`
408
+ `:!v&&m===`
409
+ `&&(m=`
410
+
411
+ `),h+=m+x.slice(c)+C,m=`
412
+ `,v=!0):C===""?m===`
413
+ `?h+=`
414
+ `:m=`
415
+ `:(h+=m+C,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
416
+ `+s[g][0].slice(c);h[h.length-1]!==`
417
+ `&&(h+=`
418
+ `);break;default:h+=`
419
+ `}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function hfe({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 d=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":d=!0;case"newline":h+=v.source.length;break;case"comment":n&&!d&&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 mfe(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 YA(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=It.PLAIN,c=gfe(i,d);break;case"single-quoted-scalar":a=It.QUOTE_SINGLE,c=vfe(i,d);break;case"double-quoted-scalar":a=It.QUOTE_DOUBLE,c=yfe(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=_p(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function gfe(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}`),XA(e)}function vfe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),XA(e.slice(1,-1)).replace(/''/g,"'")}function XA(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
420
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
421
+ `,"sy")}catch(d){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
422
+ `?o+=i:i=`
423
+ `:(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 yfe(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
424
+ `))if(o===`
425
+ `){const{fold:i,offset:s}=bfe(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=wfe[i];if(s)n+=s;else if(i===`
426
+ `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
427
+ `)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+=Cfe(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!==`
428
+ `&&!(s==="\r"&&e[r+2]===`
429
+ `)&&(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 bfe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
430
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
431
+ `);)r===`
432
+ `&&(n+=`
433
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const wfe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
434
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Cfe(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 QA(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?qA(t,e.options.strict,r):YA(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?xfe(e.schema,o,c,n,r):t.type==="scalar"?Sfe(e,o,t,r):e.schema[Vs];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=mn(h)?h:new It(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new It(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),d.format&&(p.format=d.format),s&&(p.comment=s),p}function xfe(e,t,n,r,o){var a;if(n==="!")return e[Vs];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[Vs])}function Sfe({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[Vs];if(t.compat){const a=(s=t.compat.find(c=>{var d;return c.default&&((d=c.test)==null?void 0:d.test(n))}))!=null?s:t[Vs];if(i.tag!==a.tag){const c=e.tagString(i.tag),d=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${d}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Efe(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 Pfe={composeNode:JA,composeEmptyNode:uS};function JA(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=kfe(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=QA(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=pfe(Pfe,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=uS(e,t.offset,void 0,null,n,r),d=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&d&&(c.srcToken=t),c}function uS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:Efe(t,n,r),indent:-1,source:""},h=QA(e,p,a,d);return s&&(h.anchor=s.source.substring(1),h.anchor===""&&d(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=c),h}function kfe({options:e},{offset:t,source:n,end:r},o){const i=new ey(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=_p(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Ife(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Ju(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Mu(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?JA(d,o,p,s):uS(d,p.end,r,null,p,s);const h=c.contents.range[2],m=_p(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Od(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 X_(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?`
435
+
436
+ `:`
437
+ `)+(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 dS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Od(n);i?this.warnings.push(new GA(s,r,o)):this.errors.push(new wa(s,r,o))},this.directives=new Dr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=X_(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
438
+ ${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Rn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];kn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
439
+ ${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
440
+ ${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:X_(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=Od(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Ife(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 wa(Od(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 wa(Od(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=_p(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}
441
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new wa(Od(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 Ju(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 _fe(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 wa([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return YA(e,t,r);case"block-scalar":return qA(e,t,r)}}return null}function $fe(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=kp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(d=t.end)!=null?d:[{type:"newline",offset:-1,indent:r,source:`
442
+ `}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
443
+ `),h=a.substring(0,p),m=a.substring(p+1)+`
444
+ `,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return ZA(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
445
+ `}),{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 Tfe(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=kp({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">":Mfe(e,c);break;case'"':$1(e,c,"double-quoted-scalar");break;case"'":$1(e,c,"single-quoted-scalar");break;default:$1(e,c,"scalar")}}function Mfe(e,t){const n=t.indexOf(`
446
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
447
+ `;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}];ZA(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
448
+ `});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 ZA(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 $1(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:`
449
+ `};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 Rfe=e=>"type"in e?xg(e):Sm(e);function xg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=xg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Sm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Sm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Sm(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Sm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=xg(t)),n)for(const i of n)o+=i.source;return r&&(o+=xg(r)),o}const bw=Symbol("break visit"),Ofe=Symbol("skip children"),eF=Symbol("remove item");function Va(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),tF(Object.freeze([]),e,t)}Va.BREAK=bw;Va.SKIP=Ofe;Va.REMOVE=eF;Va.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};Va.parentCollection=(e,t)=>{const n=Va.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 tF(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=tF(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===bw)return bw;a===eF&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const dy="\uFEFF",fy="",py="",Zf="",Lfe=e=>!!e&&"items"in e,Afe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Ffe(e){switch(e){case dy:return"<BOM>";case fy:return"<DOC>";case py:return"<FLOW_END>";case Zf:return"<SCALAR>";default:return JSON.stringify(e)}}function nF(e){switch(e){case dy:return"byte-order-mark";case fy:return"doc-mode";case py:return"flow-error-end";case Zf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
450
+ `:case`\r
451
+ `: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 Nfe=Object.freeze(Object.defineProperty({__proto__:null,BOM:dy,DOCUMENT:fy,FLOW_END:py,SCALAR:Zf,createScalarToken:$fe,isCollection:Lfe,isScalar:Afe,prettyToken:Ffe,resolveAsScalar:_fe,setScalarValue:Tfe,stringify:Rfe,tokenType:nF,visit:Va},Symbol.toStringTag,{value:"Module"}));function Wo(e){switch(e){case void 0:case" ":case`
452
+ `:case"\r":case" ":return!0;default:return!1}}const Q_="0123456789ABCDEFabcdef".split(""),Dfe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),T1=",[]{}".split(""),Bfe=` ,[]{}
453
+ \r `.split(""),M1=e=>!e||Bfe.includes(e);class rF{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===`
454
+ `?!0:n==="\r"?this.buffer[t+1]===`
455
+ `:!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===`
456
+ `||!o&&!this.atEnd)return t+r+1}return n===`
457
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Wo(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(`
458
+ `,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]===dy&&(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 fy,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==="---"&&Wo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Wo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Wo(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===":")&&Wo(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(M1),"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("..."))&&Wo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield py,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(M1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Wo(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(`
459
+ `,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
460
+ `,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=>Wo(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`
461
+ `:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
462
+ `)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(`
463
+ `,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===`
464
+ `&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield Zf,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(Wo(i)||t&&i===",")break;n=r}else if(Wo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
465
+ `?(r+=1,o=`
466
+ `,i=this.buffer[r+1]):n=r),i==="#"||t&&T1.includes(i))break;if(o===`
467
+ `){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&T1.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Zf,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(M1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Wo(n)||t&&T1.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(;!Wo(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(Dfe.includes(n))n=this.buffer[++t];else if(n==="%"&&Q_.includes(this.buffer[t+1])&&Q_.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===`
468
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
469
+ `?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 oF{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 mi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function J_(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 iF(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 Yh(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function _c(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function Z_(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!mi(t.start,"explicit-key-ind")&&!mi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,iF(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let fS=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rF,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"&&Z_(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=!mi(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&&J_(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":{J_(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=Yh(this.peek(2)),r=_c(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
470
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
471
+ `,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&&!mi(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(mi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(mi(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(iF(n.key)&&!mi(n.sep,"newline")){const s=_c(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(mi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=_c(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):mi(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"&&mi(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||mi(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=Yh(r),i=_c(o);Z_(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(`
472
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
473
+ `,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=Yh(t),r=_c(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Yh(t),r=_c(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function sF(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new oF||null,prettyErrors:t}}function zfe(e,t={}){const{lineCounter:n,prettyErrors:r}=sF(t),o=new fS(n==null?void 0:n.addNewLine),i=new dS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Cg(e,n)),a.warnings.forEach(Cg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function lF(e,t={}){const{lineCounter:n,prettyErrors:r}=sF(t),o=new fS(n==null?void 0:n.addNewLine),i=new dS(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 wa(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Cg(e,n)),s.warnings.forEach(Cg(e,n))),s}function jfe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=lF(e,n);if(!o)return null;if(o.warnings.forEach(i=>_A(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 Hfe(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 Ju(e,r,n).toString(n)}const e$=Object.freeze(Object.defineProperty({__proto__:null,Alias:ey,CST:Nfe,Composer:dS,Document:Ju,Lexer:rF,LineCounter:oF,Pair:Tr,Parser:fS,Scalar:It,Schema:uy,YAMLError:cS,YAMLMap:Xo,YAMLParseError:wa,YAMLSeq:nc,YAMLWarning:GA,isAlias:ec,isCollection:Rn,isDocument:Pp,isMap:tc,isNode:Gn,isPair:kn,isScalar:mn,isSeq:Yu,parse:jfe,parseAllDocuments:zfe,parseDocument:lF,stringify:Hfe,visit:Gl,visitAsync:Zv},Symbol.toStringTag,{value:"Module"})),Vfe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function Ufe({file:e,anyMask:t,defaultPerms:n,addToBar:r,urls:o}){var R,V;const O=e,{parent:i,children:s,isRoot:a,byMasks:c}=O,d=nn(O,["parent","children","isRoot","byMasks"]),[p,h]=u.useState(d);u.useEffect(()=>{h(Object.assign(bx(n,()=>null),d))},[e]);const{source:m}=e,v=e.type==="folder",b=m!==void 0,g=b&&v,x=u.useMemo(()=>{const B={};let L=i;for(;L;)$t.defaults(B,L,L.byMasks),L=L.parent;return $t.defaults(B,n)},[i]),C=b&&!!p.ctime,E=b&&!g,w=e.accept>""||v&&((R=e.can_upload)!=null?R:x.can_upload),S=xx(),{data:k,element:_}=ko("get_accounts");if(_||!k)return _;const I=k.list;return u.createElement(hp,{values:p,set(B,L){var G;if(L==="link")return;const j=L==="source"&&((G=p.source)==null?void 0:G.endsWith(p.name))?Nne(B):p.name;h(kt(ke({},p),{name:j,[L]:B}))},barSx:ke({gap:2,width:"100%"},S),stickyBar:!0,addToBar:[!a&&u.createElement(An,{icon:os,title:"Delete",confirm:"Delete?",onClick:()=>St("del_vfs",{uris:[e.id]}).then(()=>Ua())}),r],onError:fn,save:{sx:Kv(!Sx(p,d)),onClick(){return rt(this,null,function*(){const B=$t.omit(p,["ctime","mtime","size","id"]);B.masks||(B.masks=null),yield St("set_vfs",{uri:p.id,props:B}),B.name!==e.name&&(cn.selectedFiles[0].id=e.parent.id+B.name+(v?"/":"")),Ua()})}},fields:[a?u.createElement(Fo,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:b&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:Gfe,urls:o},{k:"source",label:"Source on disk",comp:mf,files:!v,folders:v,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},T("can_read","Who can see but not download will be asked to login"),T("can_see","If you don't see, you may still download with a direct link",{after:v&&p.can_see!=null&&u.createElement(wi,{size:"small",label:"Propagate permission inside this folder",value:((V=p.propagate)==null?void 0:V.can_see)!==!1,onChange(B){const L=kt(ke({},p.propagate),{can_see:B?void 0:!1});h(kt(ke({},p),{propagate:$t.every(L,F=>F===void 0)?null:L}))}})}),v&&T("can_list","Permission to see content of folders"),v&&T("can_delete",b?"":"Works only on folders with source"),v&&T("can_upload",b?"":"Works only on folders with source",{lg:w?6:12}),w&&{k:"accept",label:"Accept on upload",placeholder:"anything",helperText:u.createElement(Xi,{href:Vfe,target:"_blank"},"Example: .zip"),lg:6},E&&{k:"size",comp:vm,lg:4,toField:Na},C&&{k:"ctime",comp:vm,md:6,lg:E&&4,label:"Created",toField:t$},C&&{k:"mtime",comp:vm,md:6,lg:E&&4,label:"Modified",toField:t$},e.website&&{k:"default",comp:wi,label:"Serve index.html",toField:Boolean,fromField:B=>B?"index.html":null,helperText:ks("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},v&&{k:"masks",multiline:!0,lg:!0,toField:e$.stringify,fromField:B=>B?e$.parse(B):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function T(B,L,F={}){return ke({showInherited:t,otherPerms:$t.without(Object.keys(n),B).map(j=>({value:j,label:"As "+ww(j)})),k:B,lg:6,comp:Wfe,parent:i,accounts:I,helperText:L,label:"Who can "+ww(B),inherit:x[B],byMasks:c==null?void 0:c[B]},F)}}function ww(e){const t=e.split("_")[1];return t==="read"?"download":t}function t$(e){return e?new Date(e).toLocaleString():"-"}function Wfe(p){var h=p,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s,otherPerms:a,byMasks:c}=h,d=nn(h,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks"]);const m=(c!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+n$(c!=null?c:r),v=u.useMemo(()=>pp([{value:null,label:m},{value:!0},{value:!1},{value:"*"},...a,{value:[],label:"Select accounts"}].map(g=>(g.value===e||s||g.value!==r)&&ke({label:$t.capitalize(n$(g.value))},g))),[r,n,e]),b=Array.isArray(e);return u.createElement("div",{},u.createElement(ns,kt(ke({},d),{helperText:!b&&i,value:b?[]:e,onChange(g,{was:x,event:C}){t(g,{was:x,event:C})},options:v})),b&&u.createElement(Cx,{label:o!=null&&o.length?"Choose accounts for "+d.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(g=>({value:g.username,label:g.username})))||[]}))}function n$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+ww(e):"*UNKNOWN*"+JSON.stringify(e)}function Gfe({value:e,urls:t}){const{data:n,error:r,reload:o}=ko("get_config",{only:["base_url"]}),i=n==null?void 0:n.base_url,s=(i||(t?t[0]:""))+e;return u.createElement(et,{display:"flex"},u.createElement(vm,{label:"Link",value:s,error:r,end:u.createElement(et,{},u.createElement(An,{icon:mte,title:"Copy",onClick:()=>navigator.clipboard.writeText(s)}),u.createElement(An,{icon:$O,title:"Change",onClick:a}))}));function a(){const c=new URL(i||t[0]).protocol+"//";ci({title:"Change link",onClose:o,Content(){const[d,p]=u.useState(i),[h,m]=u.useState(c);return u.createElement(et,{display:"flex",flexDirection:"column"},u.createElement(et,{mb:2},"You can choose a different base address for your links"),u.createElement(Dv,{},t.map(b=>u.createElement(ur,{key:b,selected:b===d,onClick:()=>v(b)},b,b===d&&u.createElement(_O,{sx:{ml:2}})))),u.createElement(Jr,{label:"Custom IP or domain",helperText:ks(`You can type any address but *you* are responsible to make the address work.
474
+ This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:!d||t.includes(d)?"":d.slice(h.length),onChange:b=>v(iu(h,b)),start:u.createElement(ns,{value:h,onChange:m,options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}));function v(b){return rt(this,null,function*(){b.endsWith("/")&&(b=b.slice(0,-1)),yield St("set_config",{values:{base_url:b}}),p(b)})}}})}}let Cw;function Kfe(){var g,x,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Ql(),{data:r,reload:o,element:i}=ko("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>function E(w){var S;return!$t.isEmpty(w==null?void 0:w.masks)||((S=w==null?void 0:w.children)==null?void 0:S.some(E))}(t),[t]),a="md",c=Da(a),[d]=gp("get_status"),p=u.useMemo(()=>{var E,w;return typeof d=="object"&&$t.sortBy(Object.values(((E=d.urls)==null?void 0:E.https)||((w=d.urls)==null?void 0:w.http)||{}),S=>S.includes("["))},[d]);function h(){cn.selectedFiles=[]}const m=n.length?n.length===1?u.createElement(Ufe,{addToBar:c&&u.createElement(An,{icon:Bv,title:"Close",onClick:h}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,urls:p,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(Vf,{alignItems:"center"},u.createElement(_r,{variant:"h6"},n.length+" selected"),u.createElement(cr,{onClick:qfe,startIcon:u.createElement(os)},"Remove")),u.createElement(Fv,{dense:!0,disablePadding:!0},n.map(E=>u.createElement(mO,{key:E.id},u.createElement(Nv,{primary:E.name,secondary:E.source}))))):null;if(u.useEffect(()=>{if(!(c||!m))return ci({title:n.length>1?"Multiple selection":n[0].name,Content:()=>m,onClose:h})},[c,n]),u.useEffect(()=>{if(cn.vfs=void 0,!r)return;e.clear();const{root:E}=r;if(!E)return;E.isRoot=!0,S(E),cn.vfs=E;const w=Cw||cn.selectedFiles.map(k=>k.id);Cw=void 0,cn.selectedFiles=pp(w.map(k=>e.get(k)));function S(k,_="/",I=void 0){if(k.parent=I,k.id=k.isRoot?"/":iu(_,encodeURIComponent(k.name),k.type==="folder"?"/":""),e.set(k.id,k),!!k.children)for(const T of k.children)S(T,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 ",qte(" or ",p.slice(0,3).map(E=>u.createElement(Xi,{href:E},E)))]};return u.createElement(qn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},b&&u.createElement(qn,{item:!0,mb:2,xs:12},u.createElement(Fo,b)),u.createElement(qn,{item:!0,[a]:6,lg:5},u.createElement(_r,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Mde),t&&u.createElement(Yfe,{id2node:e})),c&&m&&u.createElement(qn,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(XR,{},u.createElement(QR,{},m))))}function Ua(e){Cw=e,cn.vfs=void 0}function qfe(){return rt(this,null,function*(){const e=cn.selectedFiles;if(e.length&&(yield Hs(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);$t.pull(t,"/");const{errors:n}=yield St("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return fn("Following elements couldn't be deleted: "+r.join(", "),"error");Ua()}catch(t){yield fn(t)}})}const aF=wte,cF=kte;function Yfe({id2node:e}){const{vfs:t,selectedFiles:n}=Ql(),[r,o]=u.useState(n.map(m=>m.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef(),c=u.useRef();if(!t)return null;const d="vfs";return u.createElement(YO,{ref:c,expanded:i,selected:r,multiSelect:!0,id:d,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,v){o(v),cn.selectedFiles=pp(v.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var E,w;let{id:v,name:b,isRoot:g}=m;if(!v)debugger;const x=m.type==="folder";return u.createElement(tw,{ref(S){S==null||S.addEventListener("focusin",k=>k.stopImmediatePropagation())},label:u.createElement(et,{draggable:!g,onDragStart(){a.current=v},onDragOver(S){if(!x)return;const k=a.current;k!=null&&k.startsWith(v)&&!k.slice(v.length+1).includes("/")||S.preventDefault()},onDrop(){return rt(this,null,function*(){const S=a.current;S&&(yield Hs(`Moving ${S} under ${v}`))&&St("move_vfs",{from:S,parent:v}).then(()=>{Ua([v+S.slice(1+S.lastIndexOf("/",S.length-2))])},fn)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(et,{display:"flex",flex:0},g?vo(Pte,"home, or root if you like"):x?vo(aF,"Folder"):vo(cF,"File"),u.createElement(et,{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&&vo(os,"Delete permission"),m.can_upload!==void 0&&vo(zv,"Upload permission"),!g&&!m.source&&vo(pte,"Virtual (no source)"),p(m.can_see)&&vo(Nte,"Restrictions on who can see"),p(m.can_read)&&vo(MO,"Restrictions on who can download"),m.default&&vo(Vte,"Act as website"),m.masks&&vo(Bte,"Masks"),m.size===-1&&vo(Ste,"Source not found"))),g?"Home":(()=>{var I;const S=(I=m.parent)==null?void 0:I.source,{source:k}=m,_=S&&(k!=null&&k.startsWith(S))?"."+k.slice(S.length):k;return!_||!(k!=null&&k.endsWith(b))||_.length>45?u.createElement(et,{lineHeight:"1.2em"},b):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},_.slice(0,-b.length)),_.slice(-b.length))})()),key:b,collapseIcon:u.createElement(yte,{onClick(S){s(i.filter(k=>k!==v)),S.preventDefault(),S.stopPropagation()}}),expandIcon:u.createElement(fte,{onClick(S){s([...i,v]),S.preventDefault(),S.stopPropagation()}}),nodeId:v},g&&!((E=m.children)!=null&&E.length)?u.createElement(tw,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(w=m.children)==null?void 0:w.map(h))}}var r$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Xfe(e,t){return!!(e===t||r$(e)&&r$(t))}function Qfe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Xfe(e[n],t[n]))return!1;return!0}function R1(e,t){t===void 0&&(t=Qfe);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 Jfe=typeof performance=="object"&&typeof performance.now=="function",o$=Jfe?function(){return performance.now()}:function(){return Date.now()};function i$(e){cancelAnimationFrame(e.id)}function Zfe(e,t){var n=o$();function r(){o$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var O1=-1;function s$(e){if(e===void 0&&(e=!1),O1===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),O1=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return O1}var $c=null;function l$(e){if(e===void 0&&(e=!1),$c===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?$c="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?$c="negative":$c="positive-ascending"),document.body.removeChild(t),$c}return $c}var epe=150,tpe=function(t,n){return t};function npe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){QC(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,Hb(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Hb(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=R1(function(x,C,E,w){return g.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:C,visibleStartIndex:E,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=R1(function(x,C,E){return g.props.onScroll({scrollDirection:x,scrollOffset:C,scrollUpdateWasRequested:E})}),g._getItemStyle=void 0,g._getItemStyle=function(x){var C=g.props,E=C.direction,w=C.itemSize,S=C.layout,k=g._getItemStyleCache(d&&w,d&&S,d&&E),_;if(k.hasOwnProperty(x))_=k[x];else{var I=n(g.props,x,g._instanceProps),T=o(g.props,x,g._instanceProps),O=E==="horizontal"||S==="horizontal",R=E==="rtl",A=O?I:0;k[x]=_={position:"absolute",left:R?void 0:A,right:R?A:void 0,top:O?0:I,height:O?"100%":T,width:O?T:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=R1(function(x,C,E){return{}}),g._onScrollHorizontal=function(x){var C=x.currentTarget,E=C.clientWidth,w=C.scrollLeft,S=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=S-E-w;break}return I=Math.max(0,Math.min(I,S-E)),{isScrolling:!0,scrollDirection:k.scrollOffset<w?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(x){var C=x.currentTarget,E=C.clientHeight,w=C.scrollHeight,S=C.scrollTop;g.setState(function(k){if(k.scrollOffset===S)return null;var _=Math.max(0,Math.min(S,w-E));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&&i$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=Zfe(g._resetIsScrolling,epe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,x){return rpe(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,E=C.itemCount,w=C.layout,S=this.state.scrollOffset;g=Math.max(0,Math.min(g,E-1));var k=0;if(this._outerRef){var _=this._outerRef;w==="vertical"?k=_.scrollWidth>_.clientWidth?s$():0:k=_.scrollHeight>_.clientHeight?s$():0}this.scrollTo(i(this.props,g,x,S,this._instanceProps,k))},v.componentDidMount=function(){var g=this.props,x=g.direction,C=g.initialScrollOffset,E=g.layout;if(typeof C=="number"&&this._outerRef!=null){var w=this._outerRef;x==="horizontal"||E==="horizontal"?w.scrollLeft=C:w.scrollTop=C}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,x=g.direction,C=g.layout,E=this.state,w=E.scrollOffset,S=E.scrollUpdateWasRequested;if(S&&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&&i$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,x=g.children,C=g.className,E=g.direction,w=g.height,S=g.innerRef,k=g.innerElementType,_=g.innerTagName,I=g.itemCount,T=g.itemData,O=g.itemKey,R=O===void 0?tpe:O,A=g.layout,V=g.outerElementType,B=g.outerTagName,L=g.style,F=g.useIsScrolling,j=g.width,G=this.state.isScrolling,N=E==="horizontal"||A==="horizontal",z=N?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),q=W[0],X=W[1],ie=[];if(I>0)for(var J=q;J<=X;J++)ie.push(u.createElement(x,{data:T,key:R(J,T),index:J,isScrolling:F?G:void 0,style:this._getItemStyle(J)}));var fe=r(this.props,this._instanceProps);return u.createElement(V||B||"div",{className:C,onScroll:z,ref:this._outerRefSetter,style:P({position:"relative",height:w,width:j,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},L)},u.createElement(k||_||"div",{children:ie,ref:S,style:{height:N?"100%":fe,pointerEvents:G?"none":void 0,width:N?fe:"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],E=x[1],w=x[2],S=x[3];this._callOnItemsRendered(C,E,w,S)}}if(typeof this.props.onScroll=="function"){var k=this.state,_=k.scrollDirection,I=k.scrollOffset,T=k.scrollUpdateWasRequested;this._callOnScroll(_,I,T)}},v._getRangeToRender=function(){var g=this.props,x=g.itemCount,C=g.overscanCount,E=this.state,w=E.isScrolling,S=E.scrollDirection,k=E.scrollOffset;if(x===0)return[0,0,0,0];var _=s(this.props,k,this._instanceProps),I=a(this.props,_,k,this._instanceProps),T=!w||S==="backward"?Math.max(1,C):1,O=!w||S==="forward"?Math.max(1,C):1;return[Math.max(0,_-T),Math.max(0,Math.min(x-1,I+O)),_,I]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var rpe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},ope=npe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var a=t.direction,c=t.height,d=t.itemCount,p=t.itemSize,h=t.layout,m=t.width,v=a==="horizontal"||h==="horizontal",b=v?m:c,g=Math.max(0,d*p-b),x=Math.min(g,n*p),C=Math.max(0,n*p-b+p+s);switch(r==="smart"&&(o>=C-b&&o<=x+b?r="auto":r="center"),r){case"start":return x;case"end":return C;case"center":{var E=Math.round(C+(x-C)/2);return E<Math.ceil(b/2)?0:E>g+Math.floor(b/2)?g:E}case"auto":default:return o>=C&&o<=x?o:o<C?C:x}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,d=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?d:i,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 uF({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,d]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{St("resolve_path",{path:i,closestFolder:!0}).then(V=>{typeof V.path=="string"&&(a(V.path),p.current=V.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,loading:v}=Qa(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),C("")},[s]);const[b,g]=u.useState([]),[x,C]=u.useState(""),E=u.useMemo(()=>$t.debounce(V=>C(V)),[]),w=u.useMemo(()=>{const V=new RegExp($t.escapeRegExp(x),"i");return B=>V.test(B)},[x]),[S,k]=u.useState(0),_=u.useMemo(()=>h.filter(V=>w(V.n)),[h,w]);if(v)return eL();const I=p.current?"":"/",T=p.current?"\\":"/",O=$ne(T,s),R=s.length<2;return u.createElement(u.Fragment,{},u.createElement(et,{display:"flex",gap:1},u.createElement(cr,{title:"root",disabled:R,onClick(){a(I)}},u.createElement(Hte)),u.createElement(cr,{disabled:R,title:"parent folder",onClick(){const V=/[\\/]$/.test(s)?s.slice(0,-1):s,B=Cre(V)?I:V.slice(0,V.lastIndexOf(T)||1);a(B)}},u.createElement(cte)),u.createElement(Jr,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(V){return rt(this,null,function*(){if(!V)return a(I);const B=yield St("resolve_path",{path:V});a(B.path)})}})),m?u.createElement(Fo,{severity:"error"},tL(m)):u.createElement(u.Fragment,{},u.createElement(et,{ref(V){if(!V)return;const B=(V==null?void 0:V.clientHeight)-1;B-S>1&&k(B)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(ope,{width:"100%",height:S,itemSize:46,itemCount:_.length,overscanCount:5,children({index:V,style:B}){const L=_[V],F=L.k==="d";return u.createElement(ur,{style:kt(ke({},B),{padding:0}),key:L.n,onClick(){F?a(O+L.n):e([O+L.n])}},t&&u.createElement(ZR,{checked:b.includes(L.n),disabled:!r&&F,onClick(j){const G=L.n,N=b.filter(z=>z!==G);g(N.length<b.length?N:[...b,G]),j.stopPropagation()}}),u.createElement(gO,{},u.createElement(L.k?aF:cF)),u.createElement(Nv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},L.n),!F&&L.s!==void 0&&u.createElement(_r,{variant:"body2",color:"text.secondary",ml:4,mr:1},Na(L.s)))}}):u.createElement(Px,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(et,{display:"flex",gap:1},(t||r||!n)&&u.createElement(cr,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(V=>O+V):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(fp,{value:x,label:`Filter results (${_.length}${_.length<h.length?"/"+h.length:""})`,onChange(V){E(V.target.value)},sx:{flex:1}}))))}function mf(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=nn(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Da("md");return u.createElement(Jr,kt(ke({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(og,{position:"end"},u.createElement(An,{icon:vte,title:"Browse files...",edge:"end",onClick(){const h=ci({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(uF,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return rt(this,null,function*(){var x;let b=v==null?void 0:v[0];if(!b)return;const g=(x=yield St("get_cwd"))==null?void 0:x.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}function ipe(){var S,k,_;const e=" — ",{username:t}=Ql(),{data:n,reload:r,element:o}=ko("get_status"),{data:i}=ko("get_vfs"),[s]=gp(t&&"get_account"),{data:a,reload:c}=ko("get_config",{only:["https_port","cert","private_key","proxies"]}),{list:d}=Qa("get_plugins"),[p,h]=u.useState("");if(o||!n)return o;const{http:m,https:v}=n,b=!(m!=null&&m.listening)&&(v!=null&&v.listening)?"s":"",g=b?v:(m==null?void 0:m.listening)&&m,x=g&&`http${b}://`+window.location.hostname+(g.port===(b?443:80)?"":":"+g.port),C=$t.pick(n,["http","https"]),E=bx(C,T=>T.busy?[`port ${T.port} already used by ${T.busy}${e}choose a `,Xh("different port"),` or stop ${T.busy}`]:T.error),w=E&&pp(Object.entries(E).map(([T,O])=>O&&[ks(`Protocol _${T}_ cannot work: `),O,(pS(O)||hS(O))&&[e,u.createElement(Xi,{sx:{cursor:"pointer"},onClick(){mS().then(c).then(r)}},"make one")," or ",e,Xh("provide adequate files")]]));return u.createElement(et,{display:"flex",gap:2,flexDirection:"column"},t&&go("","Welcome "+t),w.length?jf(w.map(T=>go("error",jf(T)))):go("success","Server is working"),i?!((k=(S=i.root)==null?void 0:S.children)!=null&&k.length)&&!((_=i.root)!=null&&_.source)?go("warning","You have no files shared",e,spe("add some")):go("",ks("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Xi,{target:"frontend",href:"/"},"Front-end",u.createElement(Ite,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(bQ),!x&&go("warning","Frontend unreachable: ",$t.map(E,(T,O)=>O+" "+(T?"is in error":"is off")).join(", "),!w.length&&[e,Xh("switch http or https on")]),d.find(T=>T.badApi)&&go("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&go("",ks("On _localhost_ you don't need to login"),e,u.createElement(Ex,{to:"accounts"},ks("to access from another computer create an account with /admin/ permission"))),xw(a,n)&&go("warning",xw(a,n),e,Xh("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(cr,{size:"small",onClick(){return rt(this,null,function*(){(yield Hs("Go on only if you know what you are doing"))&&(yield St("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning"),e,mp("Proxy-warning","Explanation")),n.frpDetected&&go("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",{},ks("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)`))),go("",u.createElement(Xi,{target:"support",href:rL+"discussions"},"Get support")),u.createElement(et,{mt:4},n.update==="local"?u.createElement(df,{icon:h1,onClick:a$},"Update from local file"):p?(n==null?void 0:n.version)===p?go("","You got the latest version"):n.update?u.createElement(df,{icon:h1,onClick:a$},iu("Update to ",p)):go("",`Version ${p} available`):u.createElement(df,{variant:"outlined",icon:h1,onClick:()=>St("check_update").then(T=>h(T.name),T=>{h(""),fn(T).then()})},"Check for updates")))}function a$(){return rt(this,null,function*(){if(!(yield Hs("Update may take less than a minute, depending on the speed of your server")))return;oo("Downloading"),yield St("update"),oo("Restarting");const e=Date.now();for(;yield St("NONE").then(()=>0,t=>!t.code);)Date.now()-e>1e4&&oo("This is taking too long, please check your server","warning"),yield Ine(500);oL(cn,"loginRequired",()=>cn.loginRequired=!1),yield fn("Procedure complete","success"),window.location.reload()})}function go(e,...t){return u.createElement(et,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:dte,info:lg,"":lg,warning:fx,error:cx}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function spe(e="File System page"){return u.createElement(Ex,{to:"fs"},e)}function Xh(e="Options page"){return u.createElement(Ex,{to:"options"},e)}function xw(e,t){return e&&!e.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}let Fl,Sw;const dF=mx({changes:{}});gx(cn,e=>{e.some(t=>t[1][0]==="config")&&fF()});const Sg={log:"Access log file",error_log:"Access error log file"},c$=Jr;function lpe(){var v;const{data:e,reload:t,element:n}=ko("get_config",{omit:["vfs"]}),r=Ql(),{changes:o}=vx(dF),i=ko(e&&"get_status"),s=i.data,a=Sw=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>Sw=void 0,[]);const c=(v=gp("get_admins")[0])==null?void 0:v.list;if(n)return n;if(i.error)return i.element;const d=Fl!==e?cn.config=Fl=e:r.config,p={comp:Es,min:1,placeholder:"no limit",md:3},h=d.https_port>=0;return u.createElement(hp,{sx:{maxWidth:"60em"},values:d,set(b,g){cn.config[g]=b},stickyBar:!0,onError:fn,save:{onClick:m,sx:Kv(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(cr,{onClick(){t(),a()},startIcon:u.createElement(dx)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:u$,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:u$,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(b){return b>=0&&!h&&!d.cert&&cpe(),b}},kt(ke({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),kt(ke({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),h&&d.port>=0&&{k:"force_https",comp:wi,sm:12,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},h&&{k:"cert",comp:mf,md:4,label:"HTTPS certificate file",helperText:mp("HTTPS#certificate","What is this?"),error:l_(s==null?void 0:s.https.error,b=>pS(b)&&[b," - ",u.createElement(Xi,{key:"fix",sx:{cursor:"pointer"},onClick:mS},"make one")])},h&&ke({k:"private_key",comp:mf,md:4,label:"HTTPS private key file"},l_(s==null?void 0:s.https.error,b=>hS(b)?{error:!0,helperText:b}:null)),{k:"open_browser_at_start",comp:wi,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:wi,label:"Unprotected admin on localhost",md:4,getError:b=>!b&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},{k:"file_menu_on_link",comp:ns,label:"Access file menu",sm:12,md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:mf,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:Sg.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Sg.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:ns,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:c$,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(Ew)},{k:"proxies",comp:Es,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:xw(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:ape},{k:"dont_overwrite_uploading",comp:wi,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Es,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Es,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"keep_session_alive",comp:wi,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"zip_calculate_size_for_seconds",comp:Es,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"admin_net",comp:c$,label:"Admin-panel accessible from",placeholder:"any address",md:12,helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(Ew))},{k:"mime",comp:vre,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:b=>b.split(`
475
+ `).map(g=>g.trim()).filter(Boolean).map(g=>({ip:g})),toField:b=>Array.isArray(b)?b.map(g=>g==null?void 0:g.ip).filter(Boolean).join(`
476
+ `):""}]});function m(){return rt(this,null,function*(){var T,O;if($t.isEmpty(o))return oo("Nothing to save");const b=window.location,g=["port","https_port"];if(g.every(R=>o[R]!==void 0))return fn("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const x=[(T=s==null?void 0:s.http)==null?void 0:T.listening,(O=s==null?void 0:s.https)==null?void 0:O.listening],C=location.protocol==="https:";C&&(g.reverse(),x.reverse());const E=o[g[0]],w=d[g[1]],S=w>0&&x[1],k=C?"http":"https";if(E<0&&!S)return fn("You cannot switch off this port unless you have a working fixed port for "+k,"warning");if(E===0&&!S)return fn("You cannot randomize this port unless you have a working fixed port for "+k,"warning");if(E>0&&!(yield Hs("You are changing the port and you may be disconnected")))return;const _="cert"in o||"private_key"in o;if(C&&_&&!(yield Hs("You may disrupt https service, kicking you out")))return;if(yield St("set_config",{values:o}),E!==void 0)return yield fn("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=E<=0?(C?"http:":"https:")+"//"+b.hostname+":"+w+b.pathname:b.protocol+"//"+b.hostname+":"+E+b.pathname;const I="port"in o||"https_port"in o;setTimeout(a,I||_?1e3:0),Object.assign(Fl,o),fF(),oo("Changes applied","success")})}}function fF(){const e={};if(cn.config)for(const[t,n]of Object.entries(cn.config))JSON.stringify(n)!==JSON.stringify(Fl==null?void 0:Fl[t])&&(e[t]=n);dF.changes=e}function pS(e){return/certificate/.test(e)}function hS(e){return/private key/.test(e)}function u$({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const d=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(pS(p)||hS(p)?p=void 0:s=!0),u.createElement(et,{},u.createElement(et,{display:"flex"},u.createElement(ns,{sx:{flexGrow:1},label:e,error:s,value:d,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Es,{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 ape({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(et,{display:"flex"},u.createElement(ns,{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(Jr,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(Ew)}))}function Ew(){return mp("Wildcards","Wildcards supported")}function cpe(){ci({Content:()=>u.createElement(et,{},u.createElement(et,{display:"flex",gap:1},u.createElement(lg),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(et,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(cr,{variant:"contained",onClick(){_i(),mS().then()}},"Help me!"),u.createElement(cr,{onClick:_i},"I will handle the matter myself")))})}function mS(){return rt(this,null,function*(){if(!window.crypto.subtle)return fn("Retry this procedure on localhost","warning");const e=ci({title:"Get a certificate",Content:()=>u.createElement(Vf,{flexDirection:"column"},u.createElement("p",{},"HTTPS needs a certificate to work."),"We suggest you to ",u.createElement(Xi,{target:"cert",href:"https://letsencrypt.org/",onClick:e},u.createElement(cr,{size:"small",color:"success"},"get a free but proper certificate")),"or, if you are in a hurry",u.createElement(cr,{size:"small",color:"warning",onClick(){return rt(this,null,function*(){try{const n=yield St("save_pem",yield upe({}));yield St("set_config",{values:n}),Fl&&Object.assign(Fl,n),setTimeout(Sw,1e3),Object.assign(cn.config,n),yield fn("Certificate saved","success")}finally{e()}})}},"make a basic certificate"),mp("HTTPS#certificate",u.createElement(Vf,{},u.createElement(fx,{color:"warning"}),"but BEWARE it won't be perfect")))})})}function upe(e){return rt(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}function dpe({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)),Ane()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(hp,{formRef:h,values:i,set(v,b){s(kt(ke({},i),{[b]:v}))},barSx:ke({gap:2,width:"100%"},xx()),stickyBar:!0,addToBar:[!d&&u.createElement(An,{icon:os,title:"Delete",confirm:"Delete?",onClick:()=>St("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(et,{flex:1}),pF(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&&St("get_account",{username:v}).then(b=>(b==null?void 0:b.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:d,label:d?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:wi,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},ke({k:"admin",comp:wi,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"}),p&&u.createElement(Fo,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:Cx,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:fn,save:{sx:Kv(!Sx(i,e)),onClick(){return rt(this,null,function*(){const S=i,{password:v="",password2:b,adminActualAccess:g,hasPassword:x}=S,C=nn(S,["password","password2","adminActualAccess","hasPassword"]),{username:E}=i;if(d){const k=yield St("add_account",C);if(v)try{yield Pw(E,v)}catch(_){throw St("del_account",{username:E}).then(),_}t(k==null?void 0:k.username),oo("Account created","success");return}const w=yield St("set_account",{username:e.username,changes:C});v&&(yield Pw(E,v)),setTimeout(()=>oo("Account modified","success"),1),t(w==null?void 0:w.username)})}}})}function Pw(e,t){return rt(this,null,function*(){const n=new ka.SRPRoutines(new ka.SRPParameters),r=yield ka.createVerifierAndSalt(n,e,t);return St("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return St("change_password_others",{username:e,newPassword:t})})})}const L1={fieldSeparator:",",lineSeparator:`
477
+ `,quote:'"'},Qh={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class d$ extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class fpe{constructor(t=L1){Ai(this,"_rows",[]);Ai(this,"_row",[]);Ai(this,"_cell","");Ai(this,"_options",L1);Ai(this,"_state",ke({},Qh));Ai(this,"_index",0);Ai(this,"_current","");Ai(this,"_previous","");Ai(this,"_quoteState",ke({},Qh));this._options=Object.assign({},L1,t)}parse(t){for(this.reset(),this._index=0;this._index<t.length;this._index++)this._state.appendCell=!0,this._previous=this._current,this._current=t[this._index],this.handleNext();if(this._row.length>0&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this.addRow(this._row,this._rows,this._state)),this._state.quoted)throw new d$(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,i)=>{r[o]=n[i]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=ke({},this._state),this._previous==="\\"?this.handleQuoteEscaped():this.handleQuoteNotEscaped(),!0):!1}handleQuoteEscaped(){this._cell=this._cell.slice(0,Math.max(0,this._cell.length-1))}handleQuoteNotEscaped(){if(this._cell.length===0||this._state.quoted)this._state.quoted=!this._state.quoted;else throw new d$(this._state.line,this._state.lineOffset);this._state.appendCell=!1}handleFieldSeparator(){return this._current===this._options.fieldSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0),!0):!1}handleLineSeparator(){return this._current===this._options.lineSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0,this._state.appendRow=!0),!0):!1}processState(){this._state.appendCell&&(this._cell+=this._current),this._state.appendField&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this._cell=""),this._state.appendRow&&(this.addRow(this._row,this._rows,this._state),this._row=[]),this._state.lineOffset++,this._state.fieldOffset++}fieldValue(t){return t}addField(t,n,r){n.push(t),r.field++,r.fieldOffset=-1,r.appendField=!1}addRow(t,n,r){n.push(t),r.field=0,r.line++,r.lineOffset=-1,r.appendRow=!1}makeImmutable(){this.rows.forEach(t=>{t.forEach(n=>Object.freeze(n)),Object.freeze(t)}),Object.freeze(this._rows)}reset(){this._rows=[],this._row=[],this._cell="",this._state=ke({},Qh),this._index=0,this._current="",this._previous="",this._quoteState=ke({},Qh)}}function ppe(e){return rt(this,null,function*(){HO(t=>rt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield VO(n);if(!r)return;const i=new fpe().parse(r.trim()),s={comp:Es,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},c=yield Hf({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],v=p(m,ke(ke({},a),h));return{save:{startIcon:u.createElement(zv),children:"Go"},fields:[u.createElement(et,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:Es,min:0,max:i.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:wi,md:6},kt(ke({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",v.u)}),kt(ke({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",v.p)}),kt(ke({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",v.g)}),kt(ke({k:"redirectColumn"},s),{helperText:u.createElement(u.Fragment,{},"First redirect: ",v.r)})]}}});if(!c)return;const d=ci({title:"Importing...",Content(){const[h,m]=u.useState(0),[v,b]=u.useState();return u.useEffect(()=>{let g=!1;return setTimeout(()=>rt(this,null,function*(){var S;if(g)return;let x=0,C=0,E=c.skipFirstLines;const w=i.length-E;try{let k=0;for(const _ of i){if(g)return;if(E){E--;continue}const I=p(_,c);b(I),m(k++/w),yield St("add_account",{username:I.u,belongs:(S=I.g)==null?void 0:S.split(","),redirect:I.r,overwrite:c.overwriteExistingAccounts}).then(()=>{if(I.p)return Pw(I.u,I.p)},T=>{if(T.code===409)return C++;x++})}}finally{d();const k=w-x-C,_="Results: "+[iu("",x," failed"),iu("",k," succeeded"),iu("",C," skipped because already present")].filter(Boolean).join(", ");fn(_,!k&&x?"error":x||C?"warning":"success"),e==null||e()}})),()=>{g=!0}},[]),u.createElement(et,{display:"flex",gap:2,alignItems:"center"},u.createElement(nL,{icon:TO,progress:h}),v==null?void 0:v.u)}});function p(h,m){return{u:h[m.usernameColumn-1],p:h[m.passwordColumn-1],g:h[m.groupColumn-1],r:h[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function hpe(){const{username:e}=Ql(),{data:t,reload:n,element:r}=ko("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&&$t.find(a,{username:o[0]}),p=Da("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(Vf,{alignItems:"center"},u.createElement(_r,{variant:"h6"},o.length+" selected"),u.createElement(cr,{onClick:v,startIcon:u.createElement(os)},"Remove")),u.createElement(Fv,{},o.map(b=>u.createElement(mO,{key:b},u.createElement(Nv,{},b))))):u.createElement(dpe,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:p&&u.createElement(An,{icon:Bv,title:"Close",onClick:m}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(p||!h||!o.length))return ci({title:$t.isString(o)?$t.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m})},[p,o,c]),r||u.createElement(qn,{container:!0,maxWidth:"80em"},u.createElement(qn,{item:!0,xs:12},u.createElement(et,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(gA,{variant:"contained",startIcon:u.createElement(Lte),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>ppe(n)}]},"Add"),kx(n),(a==null?void 0:a.length)>0&&u.createElement(_r,{p:1},`${a.length} account(s)`))),u.createElement(qn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Fo,{severity:"info"},ks`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(YO,{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(tw,{key:b.username,nodeId:b.username,label:u.createElement(et,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},pF(b),b.adminActualAccess&&vo(Tte,"Can login into Admin"),b.username,!!((g=b.belongs)!=null&&g.length)&&u.createElement(et,{sx:{color:"text.secondary",fontSize:"small"}},"(",(x=b.belongs)==null?void 0:x.join(", "),")"))})}))),p&&h&&u.createElement(qn,{item:!0,md:7},u.createElement(XR,{},u.createElement(QR,{},h))));function m(){i([])}function v(){return rt(this,null,function*(){if(o.length>$t.pull(o,e).length&&(yield fn("Won't delete current account","warning")),!!o.length&&(yield Hs(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield St("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return fn("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield fn(b)}})}}function pF(e,t={}){return u.createElement(e.hasPassword?Ote:TO,t)}function mpe(){const{element:e}=ko("get_config",{only:[]}),{username:t}=Ql();return e||u.createElement(et,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(df,{icon:RO,size:"large",variant:"contained",onClick:()=>St("logout").catch(r=>r.code!==401&&fn(r))},"I want to logout")):u.createElement(Fo,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(df,{icon:Ate,size:"large",variant:"contained",color:"warning",confirm:"After you quit, this interface won't respond anymore",onClick(){return rt(this,null,function*(){yield St("quit"),yield fn("Good-bye","success"),location.reload()})}},"Quit HFS"))}function gpe(){const{list:e,error:t,connecting:n,reload:r}=Qa("list_langs",void 0,{addId:!0}),o=u.useMemo(()=>["en",...$t.uniq(e.map(a=>a.code))],[e]),i=Da("md");return t||u.createElement(u.Fragment,{},i&&u.createElement(Fo,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(et,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(et,{mb:1,display:"flex"},u.createElement(cr,{variant:"contained",startIcon:u.createElement(zv),onClick:s},"Add"),u.createElement(et,{flex:1}),u.createElement(vpe,{langs:o})),u.createElement(Ku,{loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:80},{field:"version",width:80},{field:"hfs_version",headerName:"HFS version"},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:a}){return a.embedded?"Embedded":u.createElement("div",{},u.createElement(An,{icon:os,title:"Delete",confirm:"Delete?",onClick(){return rt(this,null,function*(){yield St("del_lang",$t.pick(a,"code")),r(),oo("Deleted")})}}))}}]})));function s(){HO(a=>rt(this,null,function*(){if(!a)return;const c={};for(const d of a)c[d.name]=yield VO(d);try{yield St("add_langs",{langs:c}),r(),oo("Loaded")}catch(d){yield fn(d)}}),{accept:".json"})}}function vpe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=ko("get_config",{only:[t]}),[i,s]=u.useState();u.useEffect(()=>s(o?i:n[t]),[o]);const[a,c]=u.useState();return u.createElement(ns,{fullWidth:!1,disabled:o||typeof a=="string",value:a!=null?a:i,onChange(p){return rt(this,null,function*(){c(p);try{yield St("set_config",{values:{[t]:p}}),yield r()}finally{c(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(p=>({value:p,label:"Force language: "+p}))]})}function ype(){const[e,t]=u.useState(0),n=Sre(Sg);return u.createElement(u.Fragment,{},u.createElement(IO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(PO,{label:Sg[r],key:r}))),u.createElement(bpe,{key:e,file:n[e]}))}function bpe({file:e}){const{list:t,error:n,connecting:r}=Qa("get_log",{file:e},{addId:!0});return n||u.createElement(Ku,{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})=>Na(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}function hF(c){var d=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=d,a=nn(d,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>Mne(ke({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return ke(ke({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:QO(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(An,{icon:ax,title:"Add",onClick:m=>Hf({form:{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(An,{icon:$O,title:"Modify",onClick:b=>Hf({values:m,form:{fields:n}}).then(g=>{if(!g)return;const x=r.map((C,E)=>E===v?g:C);o(x,{was:r,event:b})})}),u.createElement(An,{icon:os,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(sO,{sx:{ml:1}},e),t&&u.createElement(Av,{},t),u.createElement(et,ke({height:"20em"},a),u.createElement(Ku,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function f$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=Qa(e?"get_plugin_updates":"get_plugins");return r?vF(r):u.createElement(Ku,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:'No updates available. Only plugins available on "search online" are checked.'},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:mF},{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(yF,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(An,i.started?{icon:e_,title:u.createElement(et,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>St("set_plugin",{id:a,enabled:!1}).then(()=>oo("Plugin is stopping",u.createElement(e_,{color:"warning"})))}:{icon:ux,title:`Start ${a}`,onClick:()=>bF(a)}),u.createElement(An,{icon:LO,title:"Options",disabled:!i.started&&"Start plugin to access options"||!s&&"No options available for this plugin",progress:!1,onClick(){return rt(this,null,function*(){const p=yield St("get_plugin",{id:a}),h=yield Hf({title:`${a} options`,form:{before:u.createElement(et,{mx:2,mb:3},i.description),fields:gF(s)},values:p.config,dialogProps:i.configDialog});!h||$t.isEqual(p.config,h)||(yield St("set_plugin",{id:a,config:h}),oo("Configuration saved"))})}}),u.createElement(An,{icon:os,title:"Uninstall",confirm:"Remove?",onClick(){return rt(this,null,function*(){yield St("uninstall_plugin",{id:a}),oo("Plugin uninstalled")})}}))}}]})}function mF({row:e,value:t}){const{repo:n}=e,r=typeof e.badApi=="string"&&u.createElement(Vu,{title:e.badApi,children:u.createElement(cx,{fontSize:"small",color:"warning",sx:{ml:-.5,mr:.5}})});if(!n)return[r,t];const o=n.split("/"),i=u.createElement(Xi,{href:"https://github.com/"+n,target:"plugin"},o[1]);return u.createElement(u.Fragment,{},r,i," by ",o[0])}function gF(e){return Object.entries(e).map(([t,n])=>{if(!$t.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=nn(d,["type","defaultValue","fields","frontend"]);const c=wpe[r];return c===hF&&(i=gF(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),ke({k:t,comp:c,fields:i},a)})}const wpe={string:Jr,number:Es,boolean:wi,select:ns,multiselect:Cx,array:hF,real_path:mf};function vF(e){return u.createElement(Fo,{severity:"error"},Ere(e,{ENOTFOUND:"Couldn't reach github.com"}))}function yF({id:e,then:t}){return u.createElement(An,{icon:jte,title:"Update",onClick(){return rt(this,null,function*(){yield St("update_plugin",{id:e}),t==null||t(e),oo("Plugin updated")})}})}function bF(e){return St("set_plugin",{id:e,enabled:!0}).then(()=>oo("Plugin is starting",u.createElement(ux,{color:"success"})))}function Cpe(){const[e,t]=u.useState(""),n=AO(e,1e3),{list:r,error:o,initializing:i,updateList:s}=Qa("search_online_plugins",{text:n}),a=Ql();return o?vF(o):u.createElement(u.Fragment,{},u.createElement(Jr,{value:e,onChange:t,start:u.createElement(Dte),typing:!0,label:"Search text"}),u.createElement(Ku,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(cn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1,renderCell:mF},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:d,branch:p}=c;return u.createElement("div",{},c.update?u.createElement(yF,{id:d,then(){s(m=>$t.find(m,{id:d}).update=!1)}}):u.createElement(An,{icon:gte,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 rt(this,null,function*(){const m=yield St("download_plugin",{id:d,branch:p});yield bF(m.id)})}}))}}]}))}const wF={Installed:f$,"Search online":Cpe,"Check updates":()=>u.createElement(f$,{updates:!0})},xpe=Object.keys(wF),Spe=Object.values(wF);function Epe(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(IO,{value:e,onChange(n,r){t(r)}},xpe.map(n=>u.createElement(PO,{label:n,key:n}))),u.createElement(Spe[e]))}var CF={},Ppe=bn&&bn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ir=bn&&bn.__assign||function(){return ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ir.apply(this,arguments)},kpe=bn&&bn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ipe=bn&&bn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_pe=bn&&bn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&kpe(t,e,n);return Ipe(t,e),t},$pe=bn&&bn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(CF,"__esModule",{value:!0});var Ld=_pe(u),Tpe=13,Mpe=9,Rpe=8,Ope=89,Jh=90,Lpe=77,p$=57,h$=219,m$=222,g$=192,Ape=27,v$=100,Fpe=3e3,Npe=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),A1=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Em="npm__react-simple-code-editor__textarea",Dpe=`
478
+ /**
479
+ * Reset the text fill color so that placeholder is visible
480
+ */
481
+ .`.concat(Em,`:empty {
482
+ -webkit-text-fill-color: inherit !important;
483
+ }
484
+
485
+ /**
486
+ * Hack to apply on some CSS on IE10 and IE11
487
+ */
488
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
489
+ /**
490
+ * IE doesn't support '-webkit-text-fill-color'
491
+ * So we use 'color: transparent' to make the text transparent on IE
492
+ * Unlike other browsers, it doesn't affect caret color in IE
493
+ */
494
+ .`).concat(Em,` {
495
+ color: transparent !important;
496
+ }
497
+
498
+ .`).concat(Em,`::selection {
499
+ background-color: #accef7 !important;
500
+ color: transparent !important;
501
+ }
502
+ }
503
+ `),Bpe=function(e){Ppe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,i=r.selectionStart,s=r.selectionEnd;n._recordChange({value:o,selectionStart:i,selectionEnd:s})}},n._getLines=function(r,o){return r.substring(0,o).split(`
504
+ `)},n._recordChange=function(r,o){var i,s,a;o===void 0&&(o=!1);var c=n._history,d=c.stack,p=c.offset;if(d.length&&p>-1){n._history.stack=d.slice(0,p+1);var h=n._history.stack.length;if(h>v$){var m=h-v$;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var v=Date.now();if(o){var b=n._history.stack[n._history.offset];if(b&&v-b.timestamp<Fpe){var g=/[^a-z0-9]([a-z0-9]+)$/i,x=(i=n._getLines(b.value,b.selectionStart).pop())===null||i===void 0?void 0:i.match(g),C=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(g);if(x!=null&&x[1]&&(!((a=C==null?void 0:C[1])===null||a===void 0)&&a.startsWith(x[1]))){n._history.stack[n._history.offset]=ir(ir({},r),{timestamp:v});return}}}n._history.stack.push(ir(ir({},r),{timestamp:v})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,i=n._history.stack[n._history.offset];i&&o&&(n._history.stack[n._history.offset]=ir(ir({},i),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i-1];s&&(n._updateInput(s),n._history.offset=Math.max(i-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i+1];s&&(n._updateInput(s),n._history.offset=Math.min(i+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,i=o.tabSize,s=o.insertSpaces,a=o.ignoreTabKey,c=o.onKeyDown;if(!(c&&(c(r),r.defaultPrevented))){r.keyCode===Ape&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,v=(s?" ":" ").repeat(i);if(r.keyCode===Mpe&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var b=n._getLines(p,h),g=b.length-1,x=n._getLines(p,m).length-1,C=p.split(`
505
+ `).map(function(V,B){return B>=g&&B<=x&&V.startsWith(v)?V.substring(v.length):V}).join(`
506
+ `);if(p!==C){var E=b[g];n._applyEdits({value:C,selectionStart:E!=null&&E.startsWith(v)?h-v.length:h,selectionEnd:m-(p.length-C.length)})}}else if(h!==m){var b=n._getLines(p,h),w=b.length-1,S=n._getLines(p,m).length-1,E=b[w];n._applyEdits({value:p.split(`
507
+ `).map(function(L,F){return F>=w&&F<=S?v+L:L}).join(`
508
+ `),selectionStart:E&&/\S/.test(E)?h+v.length:h,selectionEnd:m+v.length*(S-w+1)})}else{var k=h+v.length;n._applyEdits({value:p.substring(0,h)+v+p.substring(m),selectionStart:k,selectionEnd:k})}else if(r.keyCode===Rpe){var _=h!==m,I=p.substring(0,h);if(I.endsWith(v)&&!_){r.preventDefault();var k=h-v.length;n._applyEdits({value:p.substring(0,h-v.length)+p.substring(m),selectionStart:k,selectionEnd:k})}}else if(r.keyCode===Tpe){if(h===m){var T=n._getLines(p,h).pop(),O=T==null?void 0:T.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var R=`
509
+ `+O[0],k=h+R.length;n._applyEdits({value:p.substring(0,h)+R+p.substring(m),selectionStart:k,selectionEnd:k})}}}else if(r.keyCode===p$||r.keyCode===h$||r.keyCode===m$||r.keyCode===g$){var A=void 0;r.keyCode===p$&&r.shiftKey?A=["(",")"]:r.keyCode===h$?r.shiftKey?A=["{","}"]:A=["[","]"]:r.keyCode===m$?r.shiftKey?A=['"','"']:A=["'","'"]:r.keyCode===g$&&!r.shiftKey&&(A=["`","`"]),h!==m&&A&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+A[0]+p.substring(h,m)+A[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else(A1?r.metaKey&&r.keyCode===Jh:r.ctrlKey&&r.keyCode===Jh)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(A1?r.metaKey&&r.keyCode===Jh&&r.shiftKey:Npe?r.ctrlKey&&r.keyCode===Ope:r.ctrlKey&&r.keyCode===Jh&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===Lpe&&r.ctrlKey&&(!A1||r.shiftKey)&&(r.preventDefault(),n.setState(function(V){return{capture:!V.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,i=o.value,s=o.selectionStart,a=o.selectionEnd;n._recordChange({value:i,selectionStart:s,selectionEnd:a},!0),n.props.onValueChange(i)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,i=r.style,s=r.padding,a=r.highlight,c=r.textareaId,d=r.textareaClassName,p=r.autoFocus,h=r.disabled,m=r.form,v=r.maxLength,b=r.minLength,g=r.name,x=r.placeholder,C=r.readOnly,E=r.required,w=r.onClick,S=r.onFocus,k=r.onBlur,_=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,T=$pe(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof s=="object"?s.top:s,paddingRight:typeof s=="object"?s.right:s,paddingBottom:typeof s=="object"?s.bottom:s,paddingLeft:typeof s=="object"?s.left:s},R=a(o);return Ld.createElement("div",ir({},T,{style:ir(ir({},Ad.container),i)}),Ld.createElement("pre",ir({className:I,"aria-hidden":"true",style:ir(ir(ir({},Ad.editor),Ad.highlight),O)},typeof R=="string"?{dangerouslySetInnerHTML:{__html:R+"<br />"}}:{children:R})),Ld.createElement("textarea",{ref:function(A){return n._input=A},style:ir(ir(ir({},Ad.editor),Ad.textarea),O),className:Em+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:w,onKeyUp:_,onFocus:S,onBlur:k,disabled:h,form:m,maxLength:v,minLength:b,name:g,placeholder:x,readOnly:C,required:E,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Ld.createElement("style",{dangerouslySetInnerHTML:{__html:Dpe}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Ld.Component),zpe=CF.default=Bpe,Ad={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};function jpe(){const{data:e,reload:t}=ko("get_custom_html"),[n,r]=u.useState(""),[o,i]=u.useState({}),[s,a]=u.useState({});u.useEffect(()=>e&&a(e==null?void 0:e.sections),[e]),u.useEffect(()=>i(s),[s]);const c=u.useMemo(()=>{const h=Object.keys(o);return h.includes(n)||r((h==null?void 0:h[0])||""),h.map(m=>{var v;return{value:m,label:$t.startCase(m)+((v=o[m])!=null&&v.trim()?" *":"")}})},[AO(o,500)]),d=u.useMemo(()=>!$t.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(Fo,{severity:"info"},ks("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice. "),mp("customization","More help")),u.createElement(et,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(ns,{label:"Section",value:n,options:c,onChange:r}),kx(t),u.createElement(An,{icon:OO,title:`Save
510
+ (ctrl+s)`,sx:Kv(d),onClick:p})),u.createElement(zpe,{value:(o==null?void 0:o[n])||"",onValueChange:h=>i(m=>kt(ke({},m),{[n]:h})),highlight:Hpe,onKeyDown:h=>{kre(h)==="s"&&(p().then(),h.preventDefault())},padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:{fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8881"}}));function p(){return St("set_custom_html",{sections:o}).then(()=>a(o))}}function Hpe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const kw=[{path:"",icon:Fte,label:"Home",title:"Admin panel",comp:ipe},{path:"fs",icon:ate,label:"Shared files",comp:Kfe},{path:"accounts",icon:_te,comp:hpe},{path:"options",icon:LO,comp:lpe},{path:"monitoring",icon:Mte,comp:Ede},{path:"logs",icon:Ete,comp:ype},{path:"language",icon:zte,comp:gpe},{path:"plugins",icon:bte,comp:Epe},{path:"html",icon:hte,label:"Custom HTML",comp:jpe},{path:"logout",icon:RO,comp:mpe}];let F1;function y$({onSelect:e}){var n;const[t]=gp(!F1&&"get_status");return F1||(F1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(et,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Fv,{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(et,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(_r,{variant:"h3"},"HFS"),u.createElement(et,{pb:1,fontSize:"small"},F1)),kw.map(r=>u.createElement(WQ,{key:r.path,to:r.path,component:iH,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(gO,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(r.icon)),u.createElement(Nv,{sx:{whiteSpace:"nowrap"},primary:xF(r)}))),u.createElement(et,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function xF(e){var t;return e&&((t=e.label)!=null?t:$t.capitalize(e.path))}function Vpe({children:e}){const{loginRequired:t}=Ql();return t===403?u.createElement(Px,{},u.createElement(Fo,{severity:"error"},"Admin-panel only for localhost"),u.createElement(et,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Upe):u.createElement(u.Fragment,{},e)}function Upe(){var s;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),i=(s=o.current)==null?void 0:s.querySelector('input[value=""]');return u.useEffect(()=>{var c;return(c=i==null?void 0:i.focus)==null?void 0:c.call(i)},[i]),u.createElement(Px,{},u.createElement(hp,{formRef:o,values:e,set(c,d){t(kt(ke({},e),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Fo,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return rt(this,null,function*(){try{r(""),yield Wpe(e.username,e.password)}catch(c){r(String(c))}})}}}))}function Wpe(e,t){return rt(this,null,function*(){const n=yield kne(e,t,St).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";cn.loginRequired=!1,gS(n)})}gS(UO().session);function gS(e){if(!e)return;const{exp:t,username:n}=e;if(cn.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(()=>St("refresh_session").then(gS),o)}function Gpe(){return u.createElement(j7,{theme:bre()},u.createElement(Kpe,{},u.createElement(Vpe,{},u.createElement(nH,{},u.createElement(qpe)))))}function Kpe(e){return u.createElement(et,ke({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function qpe(){const e=Du().pathname.slice(1),t=kw.find(s=>s.path===e),n=t&&(t.title||xF(t)),[r,o]=u.useState(!1),i=Da("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Ype,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(QY,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(y$,{onSelect:()=>o(!1)})),u.createElement(et,{display:"flex",flex:1},i&&u.createElement(y$),u.createElement(et,{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(_r,{variant:"h2",mb:2},n),u.createElement(Qj,{},kw.map((s,a)=>u.createElement(BM,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(gne)))}function Ype({title:e,openMenu:t}){return u.createElement(rK,{position:"sticky",sx:{mb:2}},u.createElement(kO,{},u.createElement(lr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement($te)),e))}MM(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Gpe)));export{bn as c,ep as g};