diff --git a/404.html b/404.html index e33f484..43221ca 100644 --- a/404.html +++ b/404.html @@ -8,7 +8,7 @@ - + diff --git a/assets/index-sThpz0tD.js b/assets/index-DhqfbRD4.js similarity index 83% rename from assets/index-sThpz0tD.js rename to assets/index-DhqfbRD4.js index 262fe58..5db6694 100644 --- a/assets/index-sThpz0tD.js +++ b/assets/index-DhqfbRD4.js @@ -1,4 +1,4 @@ -var sC=Object.defineProperty;var lC=(e,t,n)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Za=(e,t,n)=>lC(e,typeof t!="symbol"?t+"":t,n);function V0(e,t){for(var n=0;nr[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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W0={exports:{}},Fu={},U0={exports:{}},We={};/** +var sC=Object.defineProperty;var lC=(e,t,n)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Za=(e,t,n)=>lC(e,typeof t!="symbol"?t+"":t,n);function V0(e,t){for(var n=0;nr[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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W0={exports:{}},Nu={},U0={exports:{}},We={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var sC=Object.defineProperty;var lC=(e,t,n)=>t in e?sC(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ml=Symbol.for("react.element"),cC=Symbol.for("react.portal"),uC=Symbol.for("react.fragment"),dC=Symbol.for("react.strict_mode"),fC=Symbol.for("react.profiler"),pC=Symbol.for("react.provider"),hC=Symbol.for("react.context"),mC=Symbol.for("react.forward_ref"),gC=Symbol.for("react.suspense"),yC=Symbol.for("react.memo"),vC=Symbol.for("react.lazy"),xg=Symbol.iterator;function xC(e){return e===null||typeof e!="object"?null:(e=xg&&e[xg]||e["@@iterator"],typeof e=="function"?e:null)}var H0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y0=Object.assign,K0={};function za(e,t,n){this.props=e,this.context=t,this.refs=K0,this.updater=n||H0}za.prototype.isReactComponent={};za.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")};za.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function G0(){}G0.prototype=za.prototype;function ph(e,t,n){this.props=e,this.context=t,this.refs=K0,this.updater=n||H0}var hh=ph.prototype=new G0;hh.constructor=ph;Y0(hh,za.prototype);hh.isPureReactComponent=!0;var Sg=Array.isArray,Q0=Object.prototype.hasOwnProperty,mh={current:null},X0={key:!0,ref:!0,__self:!0,__source:!0};function q0(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Q0.call(t,r)&&!X0.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1t in e?sC(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kC=p,EC=Symbol.for("react.element"),PC=Symbol.for("react.fragment"),MC=Object.prototype.hasOwnProperty,RC=kC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DC={key:!0,ref:!0,__self:!0,__source:!0};function J0(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)MC.call(t,r)&&!DC.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:EC,type:e,key:i,ref:a,props:o,_owner:RC.current}}Fu.Fragment=PC;Fu.jsx=J0;Fu.jsxs=J0;W0.exports=Fu;var x=W0.exports,ex={exports:{}},_n={},tx={exports:{}},nx={};/** + */var kC=p,EC=Symbol.for("react.element"),PC=Symbol.for("react.fragment"),MC=Object.prototype.hasOwnProperty,RC=kC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DC={key:!0,ref:!0,__self:!0,__source:!0};function J0(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)MC.call(t,r)&&!DC.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:EC,type:e,key:i,ref:a,props:o,_owner:RC.current}}Nu.Fragment=PC;Nu.jsx=J0;Nu.jsxs=J0;W0.exports=Nu;var x=W0.exports,ex={exports:{}},_n={},tx={exports:{}},nx={};/** * @license React * scheduler.production.min.js * @@ -30,27 +30,27 @@ var sC=Object.defineProperty;var lC=(e,t,n)=>t in e?sC(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var IC=p,Nn=TC;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gf=Object.prototype.hasOwnProperty,OC=/^[: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]*$/,wg={},Cg={};function $C(e){return Gf.call(Cg,e)?!0:Gf.call(wg,e)?!1:OC.test(e)?Cg[e]=!0:(wg[e]=!0,!1)}function AC(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 LC(e,t,n,r){if(t===null||typeof t>"u"||AC(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 pn(e,t,n,r,o,i,a){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=a}var tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tn[e]=new pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tn[t]=new pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tn[e]=new pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tn[e]=new pn(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){tn[e]=new pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tn[e]=new pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tn[e]=new pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tn[e]=new pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tn[e]=new pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var yh=/[\-:]([a-z])/g;function vh(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(yh,vh);tn[t]=new pn(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(yh,vh);tn[t]=new pn(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(yh,vh);tn[t]=new pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!1,!1)});tn.xlinkHref=new pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!0,!0)});function xh(e,t,n,r){var o=tn.hasOwnProperty(t)?tn[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kf=Object.prototype.hasOwnProperty,OC=/^[: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]*$/,wg={},Cg={};function $C(e){return Kf.call(Cg,e)?!0:Kf.call(wg,e)?!1:OC.test(e)?Cg[e]=!0:(wg[e]=!0,!1)}function AC(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 LC(e,t,n,r){if(t===null||typeof t>"u"||AC(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 pn(e,t,n,r,o,i,a){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=a}var tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tn[e]=new pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tn[t]=new pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tn[e]=new pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tn[e]=new pn(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){tn[e]=new pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tn[e]=new pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tn[e]=new pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tn[e]=new pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tn[e]=new pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var gh=/[\-:]([a-z])/g;function yh(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(gh,yh);tn[t]=new pn(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(gh,yh);tn[t]=new pn(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(gh,yh);tn[t]=new pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!1,!1)});tn.xlinkHref=new pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tn[e]=new pn(e,1,!1,e.toLowerCase(),null,!0,!0)});function vh(e,t,n,r){var o=tn.hasOwnProperty(t)?tn[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{nf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function jC(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=rf(e.type,!1),e;case 11:return e=rf(e.type.render,!1),e;case 1:return e=rf(e.type,!0),e;default:return""}}function Zf(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 Ki:return"Fragment";case Yi:return"Portal";case Qf:return"Profiler";case Sh:return"StrictMode";case Xf:return"Suspense";case qf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ix:return(e.displayName||"Context")+".Consumer";case ox:return(e._context.displayName||"Context")+".Provider";case bh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wh:return t=e.displayName||null,t!==null?t:Zf(e.type)||"Memo";case So:t=e._payload,e=e._init;try{return Zf(e(t))}catch{}}return null}function NC(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 Zf(t);case 8:return t===Sh?"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 jo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FC(e){var t=sx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){e._valueTracker||(e._valueTracker=FC(e))}function lx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jf(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jo(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 cx(e,t){t=t.checked,t!=null&&xh(e,"checked",t,!1)}function ep(e,t){cx(e,t);var n=jo(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")?tp(e,t.type,n):t.hasOwnProperty("defaultValue")&&tp(e,t.type,jo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pg(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 tp(e,t,n){(t!=="number"||Gc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cs=Array.isArray;function ia(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={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},BC=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function px(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function hx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=px(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zC=kt({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 op(e,t){if(t){if(zC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function ip(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 ap=null;function Ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sp=null,aa=null,sa=null;function Dg(e){if(e=Tl(e)){if(typeof sp!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Wu(t),sp(e.stateNode,e.type,t))}}function mx(e){aa?sa?sa.push(e):sa=[e]:aa=e}function gx(){if(aa){var e=aa,t=sa;if(sa=aa=null,Dg(e),t)for(e=0;e>>=0,e===0?32:31-(qC(e)/ZC|0)|0}var nc=64,rc=4194304;function ks(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 Zc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ks(s):(i&=a,i!==0&&(r=ks(i)))}else a=n&~o,a!==0?r=ks(a):i!==0&&(r=ks(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;0n;n++)t.push(e);return t}function Rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gr(t),e[t]=n}function nk(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=$s),Fg=" ",Bg=!1;function jx(e,t){switch(e){case"keyup":return Tk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gi=!1;function Ok(e,t){switch(e){case"compositionend":return Nx(t);case"keypress":return t.which!==32?null:(Bg=!0,Fg);case"textInput":return e=t.data,e===Fg&&Bg?null:e;default:return null}}function $k(e,t){if(Gi)return e==="compositionend"||!Ih&&jx(e,t)?(e=Ax(),Ic=Rh=ko=null,Gi=!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)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=Wg(n)}}function _x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(){for(var e=window,t=Gc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gc(e.document)}return t}function Oh(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 Vk(e){var t=Vx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_x(n.ownerDocument.documentElement,n)){if(r!==null&&Oh(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=Ug(n,i);var a=Ug(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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=document.documentMode,Qi=null,pp=null,Ls=null,hp=!1;function Hg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hp||Qi==null||Qi!==Gc(r)||(r=Qi,"selectionStart"in r&&Oh(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}),Ls&&nl(Ls,r)||(Ls=r,r=tu(pp,"onSelect"),0Zi||(e.current=Sp[Zi],Sp[Zi]=null,Zi--)}function ft(e,t){Zi++,Sp[Zi]=e.current,e.current=t}var No={},ln=_o(No),vn=_o(!1),pi=No;function Sa(e,t){var n=e.type.contextTypes;if(!n)return No;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 xn(e){return e=e.childContextTypes,e!=null}function ru(){mt(vn),mt(ln)}function Zg(e,t,n){if(ln.current!==No)throw Error(he(168));ft(ln,t),ft(vn,n)}function qx(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(he(108,NC(e)||"Unknown",o));return kt({},n,r)}function ou(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,pi=ln.current,ft(ln,e),ft(vn,vn.current),!0}function Jg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=qx(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,mt(vn),mt(ln),ft(ln,e)):mt(vn),ft(vn,n)}var qr=null,Uu=!1,vf=!1;function Zx(e){qr===null?qr=[e]:qr.push(e)}function eE(e){Uu=!0,Zx(e)}function Vo(){if(!vf&&qr!==null){vf=!0;var e=0,t=rt;try{var n=qr;for(rt=1;e>=a,o-=a,Zr=1<<32-gr(t)+o|n<P?($=M,M=null):$=M.sibling;var w=f(h,M,v[P],b);if(w===null){M===null&&(M=$);break}e&&M&&w.alternate===null&&t(h,M),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w,M=$}if(P===v.length)return n(h,M),bt&&qo(h,P),E;if(M===null){for(;PP?($=M,M=null):$=M.sibling;var R=f(h,M,w.value,b);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(h,M),m=i(R,m,P),k===null?E=R:k.sibling=R,k=R,M=$}if(w.done)return n(h,M),bt&&qo(h,P),E;if(M===null){for(;!w.done;P++,w=v.next())w=d(h,w.value,b),w!==null&&(m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return bt&&qo(h,P),E}for(M=r(h,M);!w.done;P++,w=v.next())w=y(M,h,P,w.value,b),w!==null&&(e&&w.alternate!==null&&M.delete(w.key===null?P:w.key),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return e&&M.forEach(function(A){return t(h,A)}),bt&&qo(h,P),E}function C(h,m,v,b){if(typeof v=="object"&&v!==null&&v.type===Ki&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Jl:e:{for(var E=v.key,k=m;k!==null;){if(k.key===E){if(E=v.type,E===Ki){if(k.tag===7){n(h,k.sibling),m=o(k,v.props.children),m.return=h,h=m;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===So&&ny(E)===k.type){n(h,k.sibling),m=o(k,v.props),m.ref=os(h,k,v),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===Ki?(m=ci(v.props.children,h.mode,b,v.key),m.return=h,h=m):(b=Bc(v.type,v.key,v.props,null,h.mode,b),b.ref=os(h,m,v),b.return=h,h=b)}return a(h);case Yi:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(h,m.sibling),m=o(m,v.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Pf(v,h.mode,b),m.return=h,h=m}return a(h);case So:return k=v._init,C(h,m,k(v._payload),b)}if(Cs(v))return g(h,m,v,b);if(Ja(v))return S(h,m,v,b);uc(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,v),m.return=h,h=m):(n(h,m),m=Ef(v,h.mode,b),m.return=h,h=m),a(h)):n(h,m)}return C}var wa=nS(!0),rS=nS(!1),su=_o(null),lu=null,ta=null,jh=null;function Nh(){jh=ta=lu=null}function Fh(e){var t=su.current;mt(su),e._currentValue=t}function Cp(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 ca(e,t){lu=e,jh=ta=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function nr(e){var t=e._currentValue;if(jh!==e)if(e={context:e,memoizedValue:t,next:null},ta===null){if(lu===null)throw Error(he(308));ta=e,lu.dependencies={lanes:0,firstContext:e}}else ta=ta.next=e;return t}var oi=null;function Bh(e){oi===null?oi=[e]:oi.push(e)}function oS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Bh(t)):(n.next=o.next,o.next=n),t.interleaved=n,ao(e,r)}function ao(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 bo=!1;function zh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iS(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 eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ao(e,n)}return o=r.interleaved,o===null?(t.next=t,Bh(r)):(t.next=o.next,o.next=t),r.interleaved=t,ao(e,n)}function $c(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,Eh(e,n)}}function ry(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,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 cu(e,t,n,r){var o=e.updateQueue;bo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,y=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,S=s;switch(f=t,y=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(y,d,f):g,f==null)break e;d=kt({},d,f);break e;case 2:bo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else y={eventTime:y,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=y,l=d):u=u.next=y,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);gi|=a,e.lanes=a,e.memoizedState=d}}function oy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Sf.transition;Sf.transition={};try{e(!1),t()}finally{rt=n,Sf.transition=r}}function wS(){return rr().memoizedState}function oE(e,t,n){var r=Ao(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CS(e))kS(t,n);else if(n=oS(e,t,n,r),n!==null){var o=dn();yr(n,e,r,o),ES(n,t,r)}}function iE(e,t,n){var r=Ao(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CS(e))kS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,vr(s,a)){var l=t.interleaved;l===null?(o.next=o,Bh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=oS(e,t,o,r),n!==null&&(o=dn(),yr(n,e,r,o),ES(n,t,r))}}function CS(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function kS(e,t){js=du=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ES(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Eh(e,n)}}var fu={readContext:nr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},aE={readContext:nr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:ay,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Lc(4194308,4,yS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lc(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();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=oE.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:iy,useDebugValue:Gh,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=iy(!1),t=e[0];return e=rE.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Ir();if(bt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Gt===null)throw Error(he(349));mi&30||cS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ay(dS.bind(null,r,i,e),[e]),r.flags|=2048,ul(9,uS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Gt.identifierPrefix;if(bt){var n=Jr,r=Zr;n=(r&~(1<<32-gr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ll++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{tf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function jC(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=nf(e.type,!1),e;case 11:return e=nf(e.type.render,!1),e;case 1:return e=nf(e.type,!0),e;default:return""}}function qf(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 Ki:return"Fragment";case Yi:return"Portal";case Gf:return"Profiler";case xh:return"StrictMode";case Qf:return"Suspense";case Xf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ix:return(e.displayName||"Context")+".Consumer";case ox:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bh:return t=e.displayName||null,t!==null?t:qf(e.type)||"Memo";case bo:t=e._payload,e=e._init;try{return qf(e(t))}catch{}}return null}function NC(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 qf(t);case 8:return t===xh?"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 No(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FC(e){var t=sx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jl(e){e._valueTracker||(e._valueTracker=FC(e))}function lx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zf(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=No(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 cx(e,t){t=t.checked,t!=null&&vh(e,"checked",t,!1)}function Jf(e,t){cx(e,t);var n=No(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")?ep(e,t.type,n):t.hasOwnProperty("defaultValue")&&ep(e,t.type,No(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pg(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 ep(e,t,n){(t!=="number"||Kc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cs=Array.isArray;function ia(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ec.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={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},BC=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function px(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function hx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=px(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zC=kt({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 rp(e,t){if(t){if(zC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function op(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 ip=null;function wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ap=null,aa=null,sa=null;function Dg(e){if(e=Tl(e)){if(typeof ap!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Vu(t),ap(e.stateNode,e.type,t))}}function mx(e){aa?sa?sa.push(e):sa=[e]:aa=e}function gx(){if(aa){var e=aa,t=sa;if(sa=aa=null,Dg(e),t)for(e=0;e>>=0,e===0?32:31-(qC(e)/ZC|0)|0}var tc=64,nc=4194304;function ks(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 qc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ks(s):(i&=a,i!==0&&(r=ks(i)))}else a=n&~o,a!==0?r=ks(a):i!==0&&(r=ks(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;0n;n++)t.push(e);return t}function Rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gr(t),e[t]=n}function nk(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=$s),Fg=" ",Bg=!1;function jx(e,t){switch(e){case"keyup":return Tk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gi=!1;function Ok(e,t){switch(e){case"compositionend":return Nx(t);case"keypress":return t.which!==32?null:(Bg=!0,Fg);case"textInput":return e=t.data,e===Fg&&Bg?null:e;default:return null}}function $k(e,t){if(Gi)return e==="compositionend"||!Th&&jx(e,t)?(e=Ax(),Tc=Mh=Eo=null,Gi=!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)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=Wg(n)}}function _x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(){for(var e=window,t=Kc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kc(e.document)}return t}function Ih(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 Vk(e){var t=Vx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_x(n.ownerDocument.documentElement,n)){if(r!==null&&Ih(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=Ug(n,i);var a=Ug(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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=document.documentMode,Qi=null,fp=null,Ls=null,pp=!1;function Hg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pp||Qi==null||Qi!==Kc(r)||(r=Qi,"selectionStart"in r&&Ih(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}),Ls&&nl(Ls,r)||(Ls=r,r=eu(fp,"onSelect"),0Zi||(e.current=xp[Zi],xp[Zi]=null,Zi--)}function ft(e,t){Zi++,xp[Zi]=e.current,e.current=t}var Fo={},ln=Vo(Fo),vn=Vo(!1),hi=Fo;function Sa(e,t){var n=e.type.contextTypes;if(!n)return Fo;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 xn(e){return e=e.childContextTypes,e!=null}function nu(){mt(vn),mt(ln)}function Zg(e,t,n){if(ln.current!==Fo)throw Error(he(168));ft(ln,t),ft(vn,n)}function qx(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(he(108,NC(e)||"Unknown",o));return kt({},n,r)}function ru(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fo,hi=ln.current,ft(ln,e),ft(vn,vn.current),!0}function Jg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=qx(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,mt(vn),mt(ln),ft(ln,e)):mt(vn),ft(vn,n)}var qr=null,Wu=!1,yf=!1;function Zx(e){qr===null?qr=[e]:qr.push(e)}function eE(e){Wu=!0,Zx(e)}function Wo(){if(!yf&&qr!==null){yf=!0;var e=0,t=rt;try{var n=qr;for(rt=1;e>=a,o-=a,Zr=1<<32-gr(t)+o|n<P?($=M,M=null):$=M.sibling;var w=f(h,M,v[P],b);if(w===null){M===null&&(M=$);break}e&&M&&w.alternate===null&&t(h,M),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w,M=$}if(P===v.length)return n(h,M),bt&&Zo(h,P),E;if(M===null){for(;PP?($=M,M=null):$=M.sibling;var R=f(h,M,w.value,b);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(h,M),m=i(R,m,P),k===null?E=R:k.sibling=R,k=R,M=$}if(w.done)return n(h,M),bt&&Zo(h,P),E;if(M===null){for(;!w.done;P++,w=v.next())w=d(h,w.value,b),w!==null&&(m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return bt&&Zo(h,P),E}for(M=r(h,M);!w.done;P++,w=v.next())w=y(M,h,P,w.value,b),w!==null&&(e&&w.alternate!==null&&M.delete(w.key===null?P:w.key),m=i(w,m,P),k===null?E=w:k.sibling=w,k=w);return e&&M.forEach(function(A){return t(h,A)}),bt&&Zo(h,P),E}function C(h,m,v,b){if(typeof v=="object"&&v!==null&&v.type===Ki&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Zl:e:{for(var E=v.key,k=m;k!==null;){if(k.key===E){if(E=v.type,E===Ki){if(k.tag===7){n(h,k.sibling),m=o(k,v.props.children),m.return=h,h=m;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===bo&&ny(E)===k.type){n(h,k.sibling),m=o(k,v.props),m.ref=os(h,k,v),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}v.type===Ki?(m=ui(v.props.children,h.mode,b,v.key),m.return=h,h=m):(b=Fc(v.type,v.key,v.props,null,h.mode,b),b.ref=os(h,m,v),b.return=h,h=b)}return a(h);case Yi:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(h,m.sibling),m=o(m,v.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Ef(v,h.mode,b),m.return=h,h=m}return a(h);case bo:return k=v._init,C(h,m,k(v._payload),b)}if(Cs(v))return g(h,m,v,b);if(Ja(v))return S(h,m,v,b);cc(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,v),m.return=h,h=m):(n(h,m),m=kf(v,h.mode,b),m.return=h,h=m),a(h)):n(h,m)}return C}var wa=nS(!0),rS=nS(!1),au=Vo(null),su=null,ta=null,Lh=null;function jh(){Lh=ta=su=null}function Nh(e){var t=au.current;mt(au),e._currentValue=t}function wp(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 ca(e,t){su=e,Lh=ta=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function nr(e){var t=e._currentValue;if(Lh!==e)if(e={context:e,memoizedValue:t,next:null},ta===null){if(su===null)throw Error(he(308));ta=e,su.dependencies={lanes:0,firstContext:e}}else ta=ta.next=e;return t}var ii=null;function Fh(e){ii===null?ii=[e]:ii.push(e)}function oS(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fh(t)):(n.next=o.next,o.next=n),t.interleaved=n,ao(e,r)}function ao(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 wo=!1;function Bh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iS(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 eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $o(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ao(e,n)}return o=r.interleaved,o===null?(t.next=t,Fh(r)):(t.next=o.next,o.next=t),r.interleaved=t,ao(e,n)}function Oc(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,kh(e,n)}}function ry(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,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 lu(e,t,n,r){var o=e.updateQueue;wo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,y=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,S=s;switch(f=t,y=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(y,d,f):g,f==null)break e;d=kt({},d,f);break e;case 2:wo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else y={eventTime:y,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=y,l=d):u=u.next=y,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);yi|=a,e.lanes=a,e.memoizedState=d}}function oy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xf.transition;xf.transition={};try{e(!1),t()}finally{rt=n,xf.transition=r}}function wS(){return rr().memoizedState}function oE(e,t,n){var r=Lo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CS(e))kS(t,n);else if(n=oS(e,t,n,r),n!==null){var o=dn();yr(n,e,r,o),ES(n,t,r)}}function iE(e,t,n){var r=Lo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CS(e))kS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,vr(s,a)){var l=t.interleaved;l===null?(o.next=o,Fh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=oS(e,t,o,r),n!==null&&(o=dn(),yr(n,e,r,o),ES(n,t,r))}}function CS(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function kS(e,t){js=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ES(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kh(e,n)}}var du={readContext:nr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},aE={readContext:nr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:ay,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ac(4194308,4,yS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ac(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ac(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();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=oE.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:iy,useDebugValue:Kh,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=iy(!1),t=e[0];return e=rE.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Ir();if(bt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Gt===null)throw Error(he(349));gi&30||cS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ay(dS.bind(null,r,i,e),[e]),r.flags|=2048,ul(9,uS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Gt.identifierPrefix;if(bt){var n=Jr,r=Zr;n=(r&~(1<<32-gr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ll++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Lr]=t,e[il]=r,LS(e,t,!1,!1),t.stateNode=e;e:{switch(a=ip(n,r),n){case"dialog":ht("cancel",e),ht("close",e),o=r;break;case"iframe":case"object":case"embed":ht("load",e),o=r;break;case"video":case"audio":for(o=0;oEa&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304)}else{if(!r)if(e=uu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),is(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!bt)return on(t),null}else 2*Tt()-i.renderingStartTime>Ea&&n!==1073741824&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=wt.current,ft(wt,r?n&1|2:n&1),t):(on(t),null);case 22:case 23:return em(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(on(t),t.subtreeFlags&6&&(t.flags|=8192)):on(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function hE(e,t){switch(Ah(t),t.tag){case 1:return xn(t.type)&&ru(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(),mt(vn),mt(ln),Wh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vh(t),null;case 13:if(mt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mt(wt),null;case 4:return Ca(),null;case 10:return Fh(t.type._context),null;case 22:case 23:return em(),null;case 24:return null;default:return null}}var fc=!1,sn=!1,mE=typeof WeakSet=="function"?WeakSet:Set,be=null;function na(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dt(e,t,r)}else n.current=null}function Op(e,t,n){try{n()}catch(r){Dt(e,t,r)}}var yy=!1;function gE(e,t){if(mp=Jc,e=Vx(),Oh(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{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(gp={focusedElem:e,selectionRange:n},Jc=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,C=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:fr(t.type,S),C);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(b){Dt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=yy,yy=!1,g}function Ns(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&&Op(t,n,i)}o=o.next}while(o!==r)}}function Ku(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 $p(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 FS(e){var t=e.alternate;t!==null&&(e.alternate=null,FS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[il],delete t[xp],delete t[Zk],delete t[Jk])),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 BS(e){return e.tag===5||e.tag===3||e.tag===4}function vy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BS(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 Ap(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=nu));else if(r!==4&&(e=e.child,e!==null))for(Ap(e,t,n),e=e.sibling;e!==null;)Ap(e,t,n),e=e.sibling}function Lp(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(Lp(e,t,n),e=e.sibling;e!==null;)Lp(e,t,n),e=e.sibling}var Zt=null,pr=!1;function yo(e,t,n){for(n=n.child;n!==null;)zS(e,t,n),n=n.sibling}function zS(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Bu,n)}catch{}switch(n.tag){case 5:sn||na(n,t);case 6:var r=Zt,o=pr;Zt=null,yo(e,t,n),Zt=r,pr=o,Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Zt.removeChild(n.stateNode));break;case 18:Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?yf(e.parentNode,n):e.nodeType===1&&yf(e,n),el(e)):yf(Zt,n.stateNode));break;case 4:r=Zt,o=pr,Zt=n.stateNode.containerInfo,pr=!0,yo(e,t,n),Zt=r,pr=o;break;case 0:case 11:case 14:case 15:if(!sn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Op(n,t,a),o=o.next}while(o!==r)}yo(e,t,n);break;case 1:if(!sn&&(na(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Dt(n,t,s)}yo(e,t,n);break;case 21:yo(e,t,n);break;case 22:n.mode&1?(sn=(r=sn)||n.memoizedState!==null,yo(e,t,n),sn=r):yo(e,t,n);break;default:yo(e,t,n)}}function xy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mE),t.forEach(function(r){var o=EE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vE(r/1960))-r,10e?16:e,Eo===null)var r=!1;else{if(e=Eo,Eo=null,mu=0,Ge&6)throw Error(he(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,a=i.child;if(be.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lTt()-Zh?li(e,0):qh|=n),Sn(e,t)}function GS(e,t){t===0&&(e.mode&1?(t=rc,rc<<=1,!(rc&130023424)&&(rc=4194304)):t=1);var n=dn();e=ao(e,t),e!==null&&(Rl(e,t,n),Sn(e,n))}function kE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),GS(e,n)}function EE(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(he(314))}r!==null&&r.delete(t),GS(e,n)}var QS;QS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,fE(e,t,n);yn=!!(e.flags&131072)}else yn=!1,bt&&t.flags&1048576&&Jx(t,au,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jc(e,t),e=t.pendingProps;var o=Sa(t,ln.current);ca(t,n),o=Hh(null,t,r,e,o,n);var i=Yh();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,xn(r)?(i=!0,ou(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zh(t),o.updater=Yu,t.stateNode=o,o._reactInternals=t,Ep(t,r,e,n),t=Rp(null,t,r,!0,i,n)):(t.tag=0,bt&&i&&$h(t),un(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ME(r),e=fr(r,e),o){case 0:t=Mp(null,t,r,e,n);break e;case 1:t=hy(null,t,r,e,n);break e;case 11:t=fy(null,t,r,e,n);break e;case 14:t=py(null,t,r,fr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),Mp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),hy(e,t,r,o,n);case 3:e:{if(OS(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,iS(e,t),cu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ka(Error(he(423)),t),t=my(e,t,r,n,o);break e}else if(r!==o){o=ka(Error(he(424)),t),t=my(e,t,r,n,o);break e}else for($n=Io(t.stateNode.containerInfo.firstChild),An=t,bt=!0,mr=null,n=rS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ba(),r===o){t=so(e,t,n);break e}un(e,t,r,n)}t=t.child}return t;case 5:return aS(t),e===null&&wp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yp(r,o)?a=null:i!==null&&yp(r,i)&&(t.flags|=32),IS(e,t),un(e,t,a,n),t.child;case 6:return e===null&&wp(t),null;case 13:return $S(e,t,n);case 4:return _h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wa(t,null,r,n):un(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),fy(e,t,r,o,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ft(su,r._currentValue),r._currentValue=a,i!==null)if(vr(i.value,a)){if(i.children===o.children&&!vn.current){t=so(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Cp(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(he(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Cp(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}un(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ca(t,n),o=nr(o),r=r(o),t.flags|=1,un(e,t,r,n),t.child;case 14:return r=t.type,o=fr(r,t.pendingProps),o=fr(r.type,o),py(e,t,r,o,n);case 15:return DS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),jc(e,t),t.tag=1,xn(r)?(e=!0,ou(t)):e=!1,ca(t,n),PS(t,r,o),Ep(t,r,o,n),Rp(null,t,r,!0,e,n);case 19:return AS(e,t,n);case 22:return TS(e,t,n)}throw Error(he(156,t.tag))};function XS(e,t){return Cx(e,t)}function PE(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 Zn(e,t,n,r){return new PE(e,t,n,r)}function nm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ME(e){if(typeof e=="function")return nm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bh)return 11;if(e===wh)return 14}return 2}function Lo(e,t){var n=e.alternate;return n===null?(n=Zn(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 Bc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")nm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ki:return ci(n.children,o,i,t);case Sh:a=8,o|=8;break;case Qf:return e=Zn(12,n,t,o|2),e.elementType=Qf,e.lanes=i,e;case Xf:return e=Zn(13,n,t,o),e.elementType=Xf,e.lanes=i,e;case qf:return e=Zn(19,n,t,o),e.elementType=qf,e.lanes=i,e;case ax:return Qu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ox:a=10;break e;case ix:a=9;break e;case bh:a=11;break e;case wh:a=14;break e;case So:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Zn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ci(e,t,n,r){return e=Zn(7,e,r,t),e.lanes=n,e}function Qu(e,t,n,r){return e=Zn(22,e,r,t),e.elementType=ax,e.lanes=n,e.stateNode={isHidden:!1},e}function Ef(e,t,n){return e=Zn(6,e,null,t),e.lanes=n,e}function Pf(e,t,n){return t=Zn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RE(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=af(0),this.expirationTimes=af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rm(e,t,n,r,o,i,a,s,l){return e=new RE(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Zn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zh(i),e}function DE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eb)}catch(e){console.error(e)}}eb(),ex.exports=_n;var ed=ex.exports;const Ps=fo(ed),AE=V0({__proto__:null,default:Ps},[ed]);var tb,My=ed;tb=My.createRoot,My.hydrateRoot;const LE="/timetrekah-frontend/logo.png",fl={black:"#000",white:"#fff"},ji={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"},Ni={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"},Fi={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"},Bi={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"},zi={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"},ss={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"},jE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function lo(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const er="$$material";function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Jt(Wa,--kn):0,Pa--,Ft===10&&(Pa=1,nd--),Ft}function Ln(){return Ft=kn2||hl(Ft)>3?"":" "}function JE(e,t){for(;--t&&Ln()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Ol(e,zc()+(t<6&&_r()==32&&Ln()==32))}function _p(e){for(;Ln();)switch(Ft){case e:return kn;case 34:case 39:e!==34&&e!==39&&_p(Ft);break;case 40:e===41&&_p(e);break;case 92:Ln();break}return kn}function eP(e,t){for(;Ln()&&e+Ft!==57;)if(e+Ft===84&&_r()===47)break;return"/*"+Ol(t,kn-1)+"*"+td(e===47?e:Ln())}function tP(e){for(;!hl(_r());)Ln();return Ol(e,kn)}function nP(e){return lb(Vc("",null,null,null,[""],e=sb(e),0,[0],e))}function Vc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,y=0,g=0,S=1,C=1,h=1,m=0,v="",b=o,E=i,k=r,M=v;C;)switch(g=m,m=Ln()){case 40:if(g!=108&&Jt(M,d-1)==58){zp(M+=et(_c(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:M+=_c(m);break;case 9:case 10:case 13:case 32:M+=ZE(g);break;case 92:M+=JE(zc()-1,7);continue;case 47:switch(_r()){case 42:case 47:mc(rP(eP(Ln(),zc()),t,n),l);break;default:M+="/"}break;case 123*S:s[c++]=Or(M)*h;case 125*S:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:h==-1&&(M=et(M,/\f/g,"")),y>0&&Or(M)-d&&mc(y>32?Dy(M+";",r,n,d-1):Dy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(mc(k=Ry(M,t,n,c,u,o,s,v,b=[],E=[],d),i),m===123)if(u===0)Vc(M,t,k,k,b,i,d,s,E);else switch(f===99&&Jt(M,3)===110?100:f){case 100:case 108:case 109:case 115:Vc(e,k,k,r&&mc(Ry(e,k,k,0,0,o,s,v,o,b=[],d),E),o,E,d,s,r?b:E);break;default:Vc(M,k,k,k,[""],E,0,s,E)}}c=u=y=0,S=h=1,v=M="",d=a;break;case 58:d=1+Or(M),y=g;default:if(S<1){if(m==123)--S;else if(m==125&&S++==0&&qE()==125)continue}switch(M+=td(m),m*S){case 38:h=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Or(M)-1)*h,h=1;break;case 64:_r()===45&&(M+=_c(Ln())),f=_r(),u=d=Or(v=M+=tP(zc())),m++;break;case 45:g===45&&Or(M)==2&&(S=0)}}return i}function Ry(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],y=cm(f),g=0,S=0,C=0;g0?f[h]+" "+m:et(m,/&\f/g,f[h])))&&(l[C++]=v);return rd(e,t,n,o===0?sm:s,l,c,u)}function rP(e,t,n){return rd(e,t,n,rb,td(XE()),pl(e,2,-2),0)}function Dy(e,t,n,r){return rd(e,t,n,lm,pl(e,0,r),pl(e,r+1,-1),r)}function da(e,t){for(var n="",r=cm(e),o=0;o6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+vu+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?cb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Or(e)-3-(~zp(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(Jt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+an+e+e}return e}var fP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lm:t.return=cb(t.value,t.length);break;case ob:return da([ls(t,{value:et(t.value,"@","@"+Je)})],o);case sm:if(t.length)return QE(t.props,function(i){switch(GE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return da([ls(t,{props:[et(i,/:(read-\w+)/,":"+vu+"$1")]})],o);case"::placeholder":return da([ls(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,":"+vu+"$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,an+"input-$1")]})],o)}return""})}},pP=[fP],hP=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(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||pP,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),h=1;h<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Lr]=t,e[il]=r,LS(e,t,!1,!1),t.stateNode=e;e:{switch(a=op(n,r),n){case"dialog":ht("cancel",e),ht("close",e),o=r;break;case"iframe":case"object":case"embed":ht("load",e),o=r;break;case"video":case"audio":for(o=0;oEa&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304)}else{if(!r)if(e=cu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),is(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!bt)return on(t),null}else 2*Tt()-i.renderingStartTime>Ea&&n!==1073741824&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=wt.current,ft(wt,r?n&1|2:n&1),t):(on(t),null);case 22:case 23:return Jh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mn&1073741824&&(on(t),t.subtreeFlags&6&&(t.flags|=8192)):on(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function hE(e,t){switch($h(t),t.tag){case 1:return xn(t.type)&&nu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(),mt(vn),mt(ln),Vh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _h(t),null;case 13:if(mt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mt(wt),null;case 4:return Ca(),null;case 10:return Nh(t.type._context),null;case 22:case 23:return Jh(),null;case 24:return null;default:return null}}var dc=!1,sn=!1,mE=typeof WeakSet=="function"?WeakSet:Set,be=null;function na(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Dt(e,t,r)}else n.current=null}function Ip(e,t,n){try{n()}catch(r){Dt(e,t,r)}}var yy=!1;function gE(e,t){if(hp=Zc,e=Vx(),Ih(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{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mp={focusedElem:e,selectionRange:n},Zc=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,C=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:fr(t.type,S),C);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(b){Dt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return g=yy,yy=!1,g}function Ns(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&&Ip(t,n,i)}o=o.next}while(o!==r)}}function Yu(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 Op(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 FS(e){var t=e.alternate;t!==null&&(e.alternate=null,FS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[il],delete t[vp],delete t[Zk],delete t[Jk])),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 BS(e){return e.tag===5||e.tag===3||e.tag===4}function vy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BS(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 $p(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=tu));else if(r!==4&&(e=e.child,e!==null))for($p(e,t,n),e=e.sibling;e!==null;)$p(e,t,n),e=e.sibling}function Ap(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(Ap(e,t,n),e=e.sibling;e!==null;)Ap(e,t,n),e=e.sibling}var Zt=null,pr=!1;function vo(e,t,n){for(n=n.child;n!==null;)zS(e,t,n),n=n.sibling}function zS(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Fu,n)}catch{}switch(n.tag){case 5:sn||na(n,t);case 6:var r=Zt,o=pr;Zt=null,vo(e,t,n),Zt=r,pr=o,Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Zt.removeChild(n.stateNode));break;case 18:Zt!==null&&(pr?(e=Zt,n=n.stateNode,e.nodeType===8?gf(e.parentNode,n):e.nodeType===1&&gf(e,n),el(e)):gf(Zt,n.stateNode));break;case 4:r=Zt,o=pr,Zt=n.stateNode.containerInfo,pr=!0,vo(e,t,n),Zt=r,pr=o;break;case 0:case 11:case 14:case 15:if(!sn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Ip(n,t,a),o=o.next}while(o!==r)}vo(e,t,n);break;case 1:if(!sn&&(na(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Dt(n,t,s)}vo(e,t,n);break;case 21:vo(e,t,n);break;case 22:n.mode&1?(sn=(r=sn)||n.memoizedState!==null,vo(e,t,n),sn=r):vo(e,t,n);break;default:vo(e,t,n)}}function xy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mE),t.forEach(function(r){var o=EE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vE(r/1960))-r,10e?16:e,Po===null)var r=!1;else{if(e=Po,Po=null,hu=0,Ge&6)throw Error(he(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,a=i.child;if(be.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lTt()-qh?ci(e,0):Xh|=n),Sn(e,t)}function GS(e,t){t===0&&(e.mode&1?(t=nc,nc<<=1,!(nc&130023424)&&(nc=4194304)):t=1);var n=dn();e=ao(e,t),e!==null&&(Rl(e,t,n),Sn(e,n))}function kE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),GS(e,n)}function EE(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(he(314))}r!==null&&r.delete(t),GS(e,n)}var QS;QS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,fE(e,t,n);yn=!!(e.flags&131072)}else yn=!1,bt&&t.flags&1048576&&Jx(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lc(e,t),e=t.pendingProps;var o=Sa(t,ln.current);ca(t,n),o=Uh(null,t,r,e,o,n);var i=Hh();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,xn(r)?(i=!0,ru(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Bh(t),o.updater=Hu,t.stateNode=o,o._reactInternals=t,kp(t,r,e,n),t=Mp(null,t,r,!0,i,n)):(t.tag=0,bt&&i&&Oh(t),un(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lc(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ME(r),e=fr(r,e),o){case 0:t=Pp(null,t,r,e,n);break e;case 1:t=hy(null,t,r,e,n);break e;case 11:t=fy(null,t,r,e,n);break e;case 14:t=py(null,t,r,fr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),Pp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),hy(e,t,r,o,n);case 3:e:{if(OS(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,iS(e,t),lu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ka(Error(he(423)),t),t=my(e,t,r,n,o);break e}else if(r!==o){o=ka(Error(he(424)),t),t=my(e,t,r,n,o);break e}else for($n=Oo(t.stateNode.containerInfo.firstChild),An=t,bt=!0,mr=null,n=rS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ba(),r===o){t=so(e,t,n);break e}un(e,t,r,n)}t=t.child}return t;case 5:return aS(t),e===null&&bp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,gp(r,o)?a=null:i!==null&&gp(r,i)&&(t.flags|=32),IS(e,t),un(e,t,a,n),t.child;case 6:return e===null&&bp(t),null;case 13:return $S(e,t,n);case 4:return zh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wa(t,null,r,n):un(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),fy(e,t,r,o,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ft(au,r._currentValue),r._currentValue=a,i!==null)if(vr(i.value,a)){if(i.children===o.children&&!vn.current){t=so(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),wp(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(he(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),wp(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}un(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ca(t,n),o=nr(o),r=r(o),t.flags|=1,un(e,t,r,n),t.child;case 14:return r=t.type,o=fr(r,t.pendingProps),o=fr(r.type,o),py(e,t,r,o,n);case 15:return DS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fr(r,o),Lc(e,t),t.tag=1,xn(r)?(e=!0,ru(t)):e=!1,ca(t,n),PS(t,r,o),kp(t,r,o,n),Mp(null,t,r,!0,e,n);case 19:return AS(e,t,n);case 22:return TS(e,t,n)}throw Error(he(156,t.tag))};function XS(e,t){return Cx(e,t)}function PE(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 Zn(e,t,n,r){return new PE(e,t,n,r)}function tm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ME(e){if(typeof e=="function")return tm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sh)return 11;if(e===bh)return 14}return 2}function jo(e,t){var n=e.alternate;return n===null?(n=Zn(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 Fc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")tm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ki:return ui(n.children,o,i,t);case xh:a=8,o|=8;break;case Gf:return e=Zn(12,n,t,o|2),e.elementType=Gf,e.lanes=i,e;case Qf:return e=Zn(13,n,t,o),e.elementType=Qf,e.lanes=i,e;case Xf:return e=Zn(19,n,t,o),e.elementType=Xf,e.lanes=i,e;case ax:return Gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ox:a=10;break e;case ix:a=9;break e;case Sh:a=11;break e;case bh:a=14;break e;case bo:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Zn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ui(e,t,n,r){return e=Zn(7,e,r,t),e.lanes=n,e}function Gu(e,t,n,r){return e=Zn(22,e,r,t),e.elementType=ax,e.lanes=n,e.stateNode={isHidden:!1},e}function kf(e,t,n){return e=Zn(6,e,null,t),e.lanes=n,e}function Ef(e,t,n){return t=Zn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RE(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=of(0),this.expirationTimes=of(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=of(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function nm(e,t,n,r,o,i,a,s,l){return e=new RE(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Zn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bh(i),e}function DE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eb)}catch(e){console.error(e)}}eb(),ex.exports=_n;var Ju=ex.exports;const Ps=fo(Ju),AE=V0({__proto__:null,default:Ps},[Ju]);var tb,My=Ju;tb=My.createRoot,My.hydrateRoot;const LE="/timetrekah-frontend/logo.png",fl={black:"#000",white:"#fff"},ji={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"},Ni={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"},Fi={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"},Bi={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"},zi={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"},ss={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"},jE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function lo(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const er="$$material";function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Jt(Wa,--kn):0,Pa--,Ft===10&&(Pa=1,td--),Ft}function Ln(){return Ft=kn2||hl(Ft)>3?"":" "}function JE(e,t){for(;--t&&Ln()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Ol(e,Bc()+(t<6&&_r()==32&&Ln()==32))}function zp(e){for(;Ln();)switch(Ft){case e:return kn;case 34:case 39:e!==34&&e!==39&&zp(Ft);break;case 40:e===41&&zp(e);break;case 92:Ln();break}return kn}function eP(e,t){for(;Ln()&&e+Ft!==57;)if(e+Ft===84&&_r()===47)break;return"/*"+Ol(t,kn-1)+"*"+ed(e===47?e:Ln())}function tP(e){for(;!hl(_r());)Ln();return Ol(e,kn)}function nP(e){return lb(_c("",null,null,null,[""],e=sb(e),0,[0],e))}function _c(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,y=0,g=0,S=1,C=1,h=1,m=0,v="",b=o,E=i,k=r,M=v;C;)switch(g=m,m=Ln()){case 40:if(g!=108&&Jt(M,d-1)==58){Bp(M+=et(zc(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:M+=zc(m);break;case 9:case 10:case 13:case 32:M+=ZE(g);break;case 92:M+=JE(Bc()-1,7);continue;case 47:switch(_r()){case 42:case 47:hc(rP(eP(Ln(),Bc()),t,n),l);break;default:M+="/"}break;case 123*S:s[c++]=Or(M)*h;case 125*S:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:h==-1&&(M=et(M,/\f/g,"")),y>0&&Or(M)-d&&hc(y>32?Dy(M+";",r,n,d-1):Dy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(hc(k=Ry(M,t,n,c,u,o,s,v,b=[],E=[],d),i),m===123)if(u===0)_c(M,t,k,k,b,i,d,s,E);else switch(f===99&&Jt(M,3)===110?100:f){case 100:case 108:case 109:case 115:_c(e,k,k,r&&hc(Ry(e,k,k,0,0,o,s,v,o,b=[],d),E),o,E,d,s,r?b:E);break;default:_c(M,k,k,k,[""],E,0,s,E)}}c=u=y=0,S=h=1,v=M="",d=a;break;case 58:d=1+Or(M),y=g;default:if(S<1){if(m==123)--S;else if(m==125&&S++==0&&qE()==125)continue}switch(M+=ed(m),m*S){case 38:h=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Or(M)-1)*h,h=1;break;case 64:_r()===45&&(M+=zc(Ln())),f=_r(),u=d=Or(v=M+=tP(Bc())),m++;break;case 45:g===45&&Or(M)==2&&(S=0)}}return i}function Ry(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],y=lm(f),g=0,S=0,C=0;g0?f[h]+" "+m:et(m,/&\f/g,f[h])))&&(l[C++]=v);return nd(e,t,n,o===0?am:s,l,c,u)}function rP(e,t,n){return nd(e,t,n,rb,ed(XE()),pl(e,2,-2),0)}function Dy(e,t,n,r){return nd(e,t,n,sm,pl(e,0,r),pl(e,r+1,-1),r)}function da(e,t){for(var n="",r=lm(e),o=0;o6)switch(Jt(e,t+1)){case 109:if(Jt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+yu+(Jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bp(e,"stretch")?cb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jt(e,t+1)!==115)break;case 6444:switch(Jt(e,Or(e)-3-(~Bp(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(Jt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(Jt(e,t+11)){case 114:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+an+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+an+e+e}return e}var fP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sm:t.return=cb(t.value,t.length);break;case ob:return da([ls(t,{value:et(t.value,"@","@"+Je)})],o);case am:if(t.length)return QE(t.props,function(i){switch(GE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return da([ls(t,{props:[et(i,/:(read-\w+)/,":"+yu+"$1")]})],o);case"::placeholder":return da([ls(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,":"+yu+"$1")]}),ls(t,{props:[et(i,/:(plac\w+)/,an+"input-$1")]})],o)}return""})}},pP=[fP],hP=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(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||pP,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),h=1;h=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 PP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MP=!1,RP=/[A-Z]|^ms/g,DP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gb=function(t){return t.charCodeAt(1)===45},Iy=function(t){return t!=null&&typeof t!="boolean"},Mf=nb(function(e){return gb(e)?e:e.replace(RP,"-$&").toLowerCase()}),Oy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DP,function(r,o,i){return $r={name:o,styles:i,next:$r},o})}return PP[t]!==1&&!gb(t)&&typeof n=="number"&&n!==0?n+"px":n},TP="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ml(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return $r={name:o.name,styles:o.styles,next:$r},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;var s=i.styles+";";return s}return IP(e,t,n)}case"function":{if(e!==void 0){var l=$r,c=n(e);return $r=l,ml(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function IP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?LP:jP},jy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},NP=!1,FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hb(n,r,o),$P(function(){return mb(n,r,o)}),null},BP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=jy(t,n,r),l=s||Ly(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,y=1;yt(YP(o)?n:o):t;return x.jsx(AP,{styles:r})}/** + */var Xt=typeof Symbol=="function"&&Symbol.for,cm=Xt?Symbol.for("react.element"):60103,um=Xt?Symbol.for("react.portal"):60106,rd=Xt?Symbol.for("react.fragment"):60107,od=Xt?Symbol.for("react.strict_mode"):60108,id=Xt?Symbol.for("react.profiler"):60114,ad=Xt?Symbol.for("react.provider"):60109,sd=Xt?Symbol.for("react.context"):60110,dm=Xt?Symbol.for("react.async_mode"):60111,ld=Xt?Symbol.for("react.concurrent_mode"):60111,cd=Xt?Symbol.for("react.forward_ref"):60112,ud=Xt?Symbol.for("react.suspense"):60113,mP=Xt?Symbol.for("react.suspense_list"):60120,dd=Xt?Symbol.for("react.memo"):60115,fd=Xt?Symbol.for("react.lazy"):60116,gP=Xt?Symbol.for("react.block"):60121,yP=Xt?Symbol.for("react.fundamental"):60117,vP=Xt?Symbol.for("react.responder"):60118,xP=Xt?Symbol.for("react.scope"):60119;function Wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case dm:case ld:case rd:case id:case od:case ud:return e;default:switch(e=e&&e.$$typeof,e){case sd:case cd:case fd:case dd:case ad:return e;default:return t}}case um:return t}}}function db(e){return Wn(e)===ld}ot.AsyncMode=dm;ot.ConcurrentMode=ld;ot.ContextConsumer=sd;ot.ContextProvider=ad;ot.Element=cm;ot.ForwardRef=cd;ot.Fragment=rd;ot.Lazy=fd;ot.Memo=dd;ot.Portal=um;ot.Profiler=id;ot.StrictMode=od;ot.Suspense=ud;ot.isAsyncMode=function(e){return db(e)||Wn(e)===dm};ot.isConcurrentMode=db;ot.isContextConsumer=function(e){return Wn(e)===sd};ot.isContextProvider=function(e){return Wn(e)===ad};ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};ot.isForwardRef=function(e){return Wn(e)===cd};ot.isFragment=function(e){return Wn(e)===rd};ot.isLazy=function(e){return Wn(e)===fd};ot.isMemo=function(e){return Wn(e)===dd};ot.isPortal=function(e){return Wn(e)===um};ot.isProfiler=function(e){return Wn(e)===id};ot.isStrictMode=function(e){return Wn(e)===od};ot.isSuspense=function(e){return Wn(e)===ud};ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rd||e===ld||e===id||e===od||e===ud||e===mP||typeof e=="object"&&e!==null&&(e.$$typeof===fd||e.$$typeof===dd||e.$$typeof===ad||e.$$typeof===sd||e.$$typeof===cd||e.$$typeof===yP||e.$$typeof===vP||e.$$typeof===xP||e.$$typeof===gP)};ot.typeOf=Wn;ub.exports=ot;var SP=ub.exports,fb=SP,bP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pb={};pb[fb.ForwardRef]=bP;pb[fb.Memo]=wP;var CP=!0;function kP(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var hb=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||CP===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},mb=function(t,n,r){hb(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 EP(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 PP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MP=!1,RP=/[A-Z]|^ms/g,DP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gb=function(t){return t.charCodeAt(1)===45},Iy=function(t){return t!=null&&typeof t!="boolean"},Pf=nb(function(e){return gb(e)?e:e.replace(RP,"-$&").toLowerCase()}),Oy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DP,function(r,o,i){return $r={name:o,styles:i,next:$r},o})}return PP[t]!==1&&!gb(t)&&typeof n=="number"&&n!==0?n+"px":n},TP="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ml(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return $r={name:o.name,styles:o.styles,next:$r},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;var s=i.styles+";";return s}return IP(e,t,n)}case"function":{if(e!==void 0){var l=$r,c=n(e);return $r=l,ml(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function IP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?LP:jP},jy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},NP=!1,FP=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hb(n,r,o),$P(function(){return mb(n,r,o)}),null},BP=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=jy(t,n,r),l=s||Ly(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,y=1;yt(YP(o)?n:o):t;return x.jsx(AP,{styles:r})}/** * @mui/styled-engine v6.2.1 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function kb(e,t){return Vp(e,t)}function KP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ny=[];function Fy(e){return Ny[0]=e,hd(Ny)}function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Eb(e){if(p.isValidElement(e)||!jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Eb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jr(e)&&jr(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?r[o]=t[o]:jr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&jr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=jr(t[o])?Eb(t[o]):t[o]:r[o]=t[o]}),r}const GP=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)=>({...n,[r.key]:r.val}),{})};function QP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=GP(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(f){return a.indexOf(f)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function qP(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZP(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function JP(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const eM={borderRadius:4};function zs(e,t){return t?Qt(e,t,{clone:!1}):e}const gd={xs:0,sm:600,md:900,lg:1200,xl:1536},By={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gd[e]}px)`},tM={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function xr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||By;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||By;return Object.keys(t).reduce((a,s)=>{if(qP(i.keys,s)){const l=ZP(r.containerQueries?r:tM,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||gd).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Pb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Mb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nM(e,...t){const n=Pb(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return Mb(Object.keys(n),r)}function rM(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Rf({values:e,breakpoints:t,base:n}){const r=n||rM(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ce(e){if(typeof e!="string")throw new Error(lo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ma(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 xu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ma(e,n)||r,t&&(o=t(o,r,e)),o}function $t(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ma(l,r)||{};return xr(a,s,d=>{let f=xu(c,o,d);return d===f&&typeof d=="string"&&(f=xu(c,o,`${t}${d==="default"?"":ce(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function oM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iM={m:"margin",p:"padding"},aM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sM=oM(e=>{if(e.length>2)if(zy[e])e=zy[e];else return[e];const[t,n]=e.split(""),r=iM[t],o=aM[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),hm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hm,...mm];function Al(e,t,n,r){const o=Ma(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function yd(e){return Al(e,"spacing",8)}function vi(e,t){return typeof t=="string"||t==null?t:e(t)}function lM(e,t){return n=>e.reduce((r,o)=>(r[o]=vi(t,n),r),{})}function cM(e,t,n,r){if(!t.includes(n))return null;const o=sM(n),i=lM(o,r),a=e[n];return xr(e,a,i)}function Rb(e,t){const n=yd(e.theme);return Object.keys(e).map(r=>cM(e,t,r,n)).reduce(zs,{})}function Mt(e){return Rb(e,hm)}Mt.propTypes={};Mt.filterProps=hm;function Rt(e){return Rb(e,mm)}Rt.propTypes={};Rt.filterProps=mm;function Db(e=8,t=yd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function vd(...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]?zs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qn(e){return typeof e!="number"?e:`${e}px solid`}function sr(e,t){return $t({prop:e,themeKey:"borders",transform:t})}const uM=sr("border",qn),dM=sr("borderTop",qn),fM=sr("borderRight",qn),pM=sr("borderBottom",qn),hM=sr("borderLeft",qn),mM=sr("borderColor"),gM=sr("borderTopColor"),yM=sr("borderRightColor"),vM=sr("borderBottomColor"),xM=sr("borderLeftColor"),SM=sr("outline",qn),bM=sr("outlineColor"),xd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Al(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:vi(t,r)});return xr(e,e.borderRadius,n)}return null};xd.propTypes={};xd.filterProps=["borderRadius"];vd(uM,dM,fM,pM,hM,mM,gM,yM,vM,xM,xd,SM,bM);const Sd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Al(e.theme,"spacing",8),n=r=>({gap:vi(t,r)});return xr(e,e.gap,n)}return null};Sd.propTypes={};Sd.filterProps=["gap"];const bd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({columnGap:vi(t,r)});return xr(e,e.columnGap,n)}return null};bd.propTypes={};bd.filterProps=["columnGap"];const wd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({rowGap:vi(t,r)});return xr(e,e.rowGap,n)}return null};wd.propTypes={};wd.filterProps=["rowGap"];const wM=$t({prop:"gridColumn"}),CM=$t({prop:"gridRow"}),kM=$t({prop:"gridAutoFlow"}),EM=$t({prop:"gridAutoColumns"}),PM=$t({prop:"gridAutoRows"}),MM=$t({prop:"gridTemplateColumns"}),RM=$t({prop:"gridTemplateRows"}),DM=$t({prop:"gridTemplateAreas"}),TM=$t({prop:"gridArea"});vd(Sd,bd,wd,wM,CM,kM,EM,PM,MM,RM,DM,TM);function fa(e,t){return t==="grey"?t:e}const IM=$t({prop:"color",themeKey:"palette",transform:fa}),OM=$t({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fa}),$M=$t({prop:"backgroundColor",themeKey:"palette",transform:fa});vd(IM,OM,$M);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const AM=$t({prop:"width",transform:Tn}),gm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||gd[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Tn(n)}};return xr(e,e.maxWidth,t)}return null};gm.filterProps=["maxWidth"];const LM=$t({prop:"minWidth",transform:Tn}),jM=$t({prop:"height",transform:Tn}),NM=$t({prop:"maxHeight",transform:Tn}),FM=$t({prop:"minHeight",transform:Tn});$t({prop:"size",cssProperty:"width",transform:Tn});$t({prop:"size",cssProperty:"height",transform:Tn});const BM=$t({prop:"boxSizing"});vd(AM,gm,LM,jM,NM,FM,BM);const Ll={border:{themeKey:"borders",transform:qn},borderTop:{themeKey:"borders",transform:qn},borderRight:{themeKey:"borders",transform:qn},borderBottom:{themeKey:"borders",transform:qn},borderLeft:{themeKey:"borders",transform:qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xd},color:{themeKey:"palette",transform:fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fa},backgroundColor:{themeKey:"palette",transform:fa},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Sd},rowGap:{style:wd},columnGap:{style:bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:gm},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zM(...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 _M(e,t){return typeof e=="function"?e(t):e}function VM(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Ma(o,c)||{};return d?d(a):xr(a,r,g=>{let S=xu(f,u,g);return g===S&&typeof g=="string"&&(S=xu(f,u,`${n}${g==="default"?"":ce(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Ll;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Pb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const y=_M(l[f],o);if(y!=null)if(typeof y=="object")if(i[f])d=zs(d,e(f,y,o,i));else{const g=xr({theme:o},y,S=>({[f]:S}));zM(g,y)?d[f]=t({sx:y,theme:o}):d=zs(d,g)}else d=zs(d,e(f,y,o,i))}),XP(o,Mb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const Fo=VM();Fo.filterProps=["sx"];function WM(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Ua(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=QP(n),l=Db(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...eM,...i}},a);return c=JP(c),c.applyStyles=WM,c=t.reduce((u,d)=>Qt(u,d),c),c.unstable_sxConfig={...Ll,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return Fo({sx:d,theme:this})},c}function UM(e){return Object.keys(e).length===0}function ym(e=null){const t=p.useContext(md);return!t||UM(t)?e:t}const HM=Ua();function jl(e=HM){return ym(e)}function YM({styles:e,themeId:t,defaultTheme:n={}}){const r=jl(n),o=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(Cb,{styles:o})}const KM=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ll;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Cd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=KM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return jr(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const _y=e=>e,GM=()=>{let e=_y;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_y}}},Tb=GM();function Ib(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Fo);return p.forwardRef(function(l,c){const u=jl(n),{className:d,component:f="div",...y}=Cd(l);return x.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...y})})}const XM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ge(e,t,n="Mui"){const r=XM[t];return r?`${n}-${r}`:`${Tb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Ob(e){const{variants:t,...n}=e,r={variants:t,style:Fy(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fy(o.style))}),r}const qM=Ua();function Wc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ZM(e){return e?(t,n)=>n[e]:null}function JM(e,t,n){e.theme=tR(e.theme)?n:e.theme[t]||e.theme}function Uc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Uc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return $b(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function $b(e,t,n=[]){var o;let r;e:for(let i=0;i{KP(s,E=>E.filter(k=>k!==Fo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:y=ZM(rR(u)),...g}=l,S=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let h=Wc;u==="Root"||u==="root"?h=r:u?h=o:nR(s)&&(h=void 0);const m=kb(s,{shouldForwardProp:h,label:eR(),...g}),v=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(M){return Uc(M,E)};if(jr(E)){const k=Ob(E);return k.variants?function(P){return Uc(P,k)}:k.style}return E},b=(...E)=>{const k=[],M=E.map(v),P=[];if(k.push(i),c&&y&&P.push(function(A){var I,N;const O=(N=(I=A.theme.components)==null?void 0:I[c])==null?void 0:N.styleOverrides;if(!O)return null;const T={};for(const D in O)T[D]=Uc(A,O[D]);return y(A,T)}),c&&!S&&P.push(function(A){var T,I;const j=A.theme,O=(I=(T=j==null?void 0:j.components)==null?void 0:T[c])==null?void 0:I.variants;return O?$b(A,O):null}),C||P.push(Fo),Array.isArray(M[0])){const R=M.shift(),A=new Array(k.length).fill(""),j=new Array(P.length).fill("");let O;O=[...A,...R,...j],O.raw=[...A,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...P],w=m(...$);return s.muiName&&(w.muiName=s.muiName),w};return m.withConfig&&(b.withConfig=m.withConfig),b}}function eR(e,t){return void 0}function tR(e){for(const t in e)return!1;return!0}function nR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rR(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const vm=Ab();function gl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=gl(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Lb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:gl(t.components[n].defaultProps,r)}function kd({props:e,name:t,defaultTheme:n,themeId:r}){let o=jl(n);return r&&(o=o[r]||o),Lb({theme:o,name:t,props:e})}const Ut=typeof window<"u"?p.useLayoutEffect:p.useEffect;function oR(e,t,n,r,o){const[i,a]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ut(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const iR={...Gs},jb=iR.useSyncExternalStore;function aR(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return jb(l,s,a)}function sR(e={}){const{themeId:t}=e;return function(r,o={}){let i=ym();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Lb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(jb!==void 0?aR:oR)(d,s,l,c,u)}}function lR(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function xm(e,t=0,n=1){return lR(e,t,n)}function cR(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 Bo(e){if(e.type)return e;if(e.charAt(0)==="#")return Bo(cR(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(lo(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"].includes(o))throw new Error(lo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const uR=e=>{const t=Bo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ms=(e,t)=>{try{return uR(e)}catch{return e}};function Ed(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Nb(e){e=Bo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Ed({type:s,values:l})}function Wp(e){e=Bo(e);let t=e.type==="hsl"||e.type==="hsla"?Bo(Nb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dR(e,t){const n=Wp(e),r=Wp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ze(e,t){return e=Bo(e),t=xm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ed(e)}function gc(e,t,n){try{return ze(e,t)}catch{return e}}function Ra(e,t){if(e=Bo(e),t=xm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ed(e)}function lt(e,t,n){try{return Ra(e,t)}catch{return e}}function Da(e,t){if(e=Bo(e),t=xm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ed(e)}function ct(e,t,n){try{return Da(e,t)}catch{return e}}function Fb(e,t=.15){return Wp(e)>.5?Ra(e,t):Da(e,t)}function yc(e,t,n){try{return Fb(e,t)}catch{return e}}const Bb=J.oneOfType([J.func,J.object]);function Vy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Sm(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 _s(e,t){var n,r,o;return p.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function Sr(e){return Wt(e).defaultView||window}function Up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Wy=0;function fR(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Wy+=1,n(`mui-${Wy}`))},[t]),r}const pR={...Gs},Uy=pR.useId;function Wo(e){if(Uy!==void 0){const t=Uy();return e??t}return fR(e)}function co({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=p.useRef(e);return Ut(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ye(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Up(n,t)})},e)}const Hy={};function zb(e,t){const n=p.useRef(Hy);return n.current===Hy&&(n.current=e(t)),n}const hR=[];function mR(e){p.useEffect(e,hR)}class bm{constructor(){Za(this,"currentId",null);Za(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Za(this,"disposeEffect",()=>this.clear)}static create(){return new bm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function wm(){const e=zb(bm.create).current;return mR(e.disposeEffect),e}function Su(e){try{return e.matches(":focus-visible")}catch{}return!1}function _b(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const gR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ye(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yy(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 Wb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},S={...n,...o,...r};return y.length>0&&(S.className=y),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const a=bu({...o,...r}),s=Yy(r),l=Yy(o),c=t(a),u=pe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}function Qe(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Pd(n,r),{props:s,internalRef:l}=Wb({...i,externalSlotProps:a}),c=Ye(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Vb(t,{...s,ref:c},r)}function Pi(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ub=p.createContext(null);function Cm(){return p.useContext(Ub)}const vR=typeof Symbol=="function"&&Symbol.for,xR=vR?Symbol.for("mui.nested"):"__THEME_NESTED__";function SR(e,t){return typeof t=="function"?t(e):{...e,...t}}function bR(e){const{children:t,theme:n}=e,r=Cm(),o=p.useMemo(()=>{const i=r===null?{...n}:SR(r,n);return i!=null&&(i[xR]=r!==null),i},[n,r]);return x.jsx(Ub.Provider,{value:o,children:t})}const Hb=p.createContext();function wR({value:e,...t}){return x.jsx(Hb.Provider,{value:e??!0,...t})}const lr=()=>p.useContext(Hb)??!1,Yb=p.createContext(void 0);function CR({value:e,children:t}){return x.jsx(Yb.Provider,{value:e,children:t})}function kR(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?gl(o.defaultProps,r):!o.styleOverrides&&!o.variants?gl(o,r):r}function ER({props:e,name:t}){const n=p.useContext(Yb);return kR({props:e,name:t,theme:{components:n}})}const Ky={};function Gy(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Kb(e){const{children:t,theme:n,themeId:r}=e,o=ym(Ky),i=Cm()||Ky,a=Gy(r,o,n),s=Gy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return x.jsx(bR,{theme:s,children:x.jsx(md.Provider,{value:a,children:x.jsx(wR,{value:l,children:x.jsx(CR,{value:r?a[r].components:a.components,children:t})})})})}const Qy={theme:void 0};function PR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Qy.theme=o.theme,i=Ob(e(Qy)),t=i,n=o.theme),i}}const km="mode",Em="color-scheme",MR="data-color-scheme";function RR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=km,colorSchemeStorageKey:i=Em,attribute:a=MR,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + */function kb(e,t){return _p(e,t)}function KP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ny=[];function Fy(e){return Ny[0]=e,pd(Ny)}function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Eb(e){if(p.isValidElement(e)||!jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Eb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jr(e)&&jr(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?r[o]=t[o]:jr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&jr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=jr(t[o])?Eb(t[o]):t[o]:r[o]=t[o]}),r}const GP=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)=>({...n,[r.key]:r.val}),{})};function QP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=GP(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(f){return a.indexOf(f)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function qP(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZP(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function JP(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const eM={borderRadius:4};function zs(e,t){return t?Qt(e,t,{clone:!1}):e}const md={xs:0,sm:600,md:900,lg:1200,xl:1536},By={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${md[e]}px)`},tM={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:md[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function xr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||By;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||By;return Object.keys(t).reduce((a,s)=>{if(qP(i.keys,s)){const l=ZP(r.containerQueries?r:tM,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||md).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Pb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Mb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nM(e,...t){const n=Pb(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return Mb(Object.keys(n),r)}function rM(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Mf({values:e,breakpoints:t,base:n}){const r=n||rM(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ce(e){if(typeof e!="string")throw new Error(lo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ma(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 vu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ma(e,n)||r,t&&(o=t(o,r,e)),o}function $t(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Ma(l,r)||{};return xr(a,s,d=>{let f=vu(c,o,d);return d===f&&typeof d=="string"&&(f=vu(c,o,`${t}${d==="default"?"":ce(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function oM(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iM={m:"margin",p:"padding"},aM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sM=oM(e=>{if(e.length>2)if(zy[e])e=zy[e];else return[e];const[t,n]=e.split(""),r=iM[t],o=aM[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),pm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pm,...hm];function Al(e,t,n,r){const o=Ma(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function gd(e){return Al(e,"spacing",8)}function xi(e,t){return typeof t=="string"||t==null?t:e(t)}function lM(e,t){return n=>e.reduce((r,o)=>(r[o]=xi(t,n),r),{})}function cM(e,t,n,r){if(!t.includes(n))return null;const o=sM(n),i=lM(o,r),a=e[n];return xr(e,a,i)}function Rb(e,t){const n=gd(e.theme);return Object.keys(e).map(r=>cM(e,t,r,n)).reduce(zs,{})}function Mt(e){return Rb(e,pm)}Mt.propTypes={};Mt.filterProps=pm;function Rt(e){return Rb(e,hm)}Rt.propTypes={};Rt.filterProps=hm;function Db(e=8,t=gd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function yd(...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]?zs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qn(e){return typeof e!="number"?e:`${e}px solid`}function sr(e,t){return $t({prop:e,themeKey:"borders",transform:t})}const uM=sr("border",qn),dM=sr("borderTop",qn),fM=sr("borderRight",qn),pM=sr("borderBottom",qn),hM=sr("borderLeft",qn),mM=sr("borderColor"),gM=sr("borderTopColor"),yM=sr("borderRightColor"),vM=sr("borderBottomColor"),xM=sr("borderLeftColor"),SM=sr("outline",qn),bM=sr("outlineColor"),vd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Al(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:xi(t,r)});return xr(e,e.borderRadius,n)}return null};vd.propTypes={};vd.filterProps=["borderRadius"];yd(uM,dM,fM,pM,hM,mM,gM,yM,vM,xM,vd,SM,bM);const xd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Al(e.theme,"spacing",8),n=r=>({gap:xi(t,r)});return xr(e,e.gap,n)}return null};xd.propTypes={};xd.filterProps=["gap"];const Sd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({columnGap:xi(t,r)});return xr(e,e.columnGap,n)}return null};Sd.propTypes={};Sd.filterProps=["columnGap"];const bd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Al(e.theme,"spacing",8),n=r=>({rowGap:xi(t,r)});return xr(e,e.rowGap,n)}return null};bd.propTypes={};bd.filterProps=["rowGap"];const wM=$t({prop:"gridColumn"}),CM=$t({prop:"gridRow"}),kM=$t({prop:"gridAutoFlow"}),EM=$t({prop:"gridAutoColumns"}),PM=$t({prop:"gridAutoRows"}),MM=$t({prop:"gridTemplateColumns"}),RM=$t({prop:"gridTemplateRows"}),DM=$t({prop:"gridTemplateAreas"}),TM=$t({prop:"gridArea"});yd(xd,Sd,bd,wM,CM,kM,EM,PM,MM,RM,DM,TM);function fa(e,t){return t==="grey"?t:e}const IM=$t({prop:"color",themeKey:"palette",transform:fa}),OM=$t({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fa}),$M=$t({prop:"backgroundColor",themeKey:"palette",transform:fa});yd(IM,OM,$M);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const AM=$t({prop:"width",transform:Tn}),mm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||md[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Tn(n)}};return xr(e,e.maxWidth,t)}return null};mm.filterProps=["maxWidth"];const LM=$t({prop:"minWidth",transform:Tn}),jM=$t({prop:"height",transform:Tn}),NM=$t({prop:"maxHeight",transform:Tn}),FM=$t({prop:"minHeight",transform:Tn});$t({prop:"size",cssProperty:"width",transform:Tn});$t({prop:"size",cssProperty:"height",transform:Tn});const BM=$t({prop:"boxSizing"});yd(AM,mm,LM,jM,NM,FM,BM);const Ll={border:{themeKey:"borders",transform:qn},borderTop:{themeKey:"borders",transform:qn},borderRight:{themeKey:"borders",transform:qn},borderBottom:{themeKey:"borders",transform:qn},borderLeft:{themeKey:"borders",transform:qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vd},color:{themeKey:"palette",transform:fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fa},backgroundColor:{themeKey:"palette",transform:fa},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:xd},rowGap:{style:bd},columnGap:{style:Sd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:mm},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zM(...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 _M(e,t){return typeof e=="function"?e(t):e}function VM(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Ma(o,c)||{};return d?d(a):xr(a,r,g=>{let S=vu(f,u,g);return g===S&&typeof g=="string"&&(S=vu(f,u,`${n}${g==="default"?"":ce(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Ll;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Pb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const y=_M(l[f],o);if(y!=null)if(typeof y=="object")if(i[f])d=zs(d,e(f,y,o,i));else{const g=xr({theme:o},y,S=>({[f]:S}));zM(g,y)?d[f]=t({sx:y,theme:o}):d=zs(d,g)}else d=zs(d,e(f,y,o,i))}),XP(o,Mb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const Bo=VM();Bo.filterProps=["sx"];function WM(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Ua(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=QP(n),l=Db(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...eM,...i}},a);return c=JP(c),c.applyStyles=WM,c=t.reduce((u,d)=>Qt(u,d),c),c.unstable_sxConfig={...Ll,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return Bo({sx:d,theme:this})},c}function UM(e){return Object.keys(e).length===0}function gm(e=null){const t=p.useContext(hd);return!t||UM(t)?e:t}const HM=Ua();function jl(e=HM){return gm(e)}function YM({styles:e,themeId:t,defaultTheme:n={}}){const r=jl(n),o=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(Cb,{styles:o})}const KM=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ll;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function wd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=KM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return jr(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const _y=e=>e,GM=()=>{let e=_y;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_y}}},Tb=GM();function Ib(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Bo);return p.forwardRef(function(l,c){const u=jl(n),{className:d,component:f="div",...y}=wd(l);return x.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...y})})}const XM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ge(e,t,n="Mui"){const r=XM[t];return r?`${n}-${r}`:`${Tb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Ob(e){const{variants:t,...n}=e,r={variants:t,style:Fy(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fy(o.style))}),r}const qM=Ua();function Vc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ZM(e){return e?(t,n)=>n[e]:null}function JM(e,t,n){e.theme=tR(e.theme)?n:e.theme[t]||e.theme}function Wc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Wc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return $b(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function $b(e,t,n=[]){var o;let r;e:for(let i=0;i{KP(s,E=>E.filter(k=>k!==Bo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:y=ZM(rR(u)),...g}=l,S=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let h=Vc;u==="Root"||u==="root"?h=r:u?h=o:nR(s)&&(h=void 0);const m=kb(s,{shouldForwardProp:h,label:eR(),...g}),v=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(M){return Wc(M,E)};if(jr(E)){const k=Ob(E);return k.variants?function(P){return Wc(P,k)}:k.style}return E},b=(...E)=>{const k=[],M=E.map(v),P=[];if(k.push(i),c&&y&&P.push(function(A){var I,N;const O=(N=(I=A.theme.components)==null?void 0:I[c])==null?void 0:N.styleOverrides;if(!O)return null;const T={};for(const D in O)T[D]=Wc(A,O[D]);return y(A,T)}),c&&!S&&P.push(function(A){var T,I;const j=A.theme,O=(I=(T=j==null?void 0:j.components)==null?void 0:T[c])==null?void 0:I.variants;return O?$b(A,O):null}),C||P.push(Bo),Array.isArray(M[0])){const R=M.shift(),A=new Array(k.length).fill(""),j=new Array(P.length).fill("");let O;O=[...A,...R,...j],O.raw=[...A,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...P],w=m(...$);return s.muiName&&(w.muiName=s.muiName),w};return m.withConfig&&(b.withConfig=m.withConfig),b}}function eR(e,t){return void 0}function tR(e){for(const t in e)return!1;return!0}function nR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rR(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ym=Ab();function gl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=gl(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Lb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:gl(t.components[n].defaultProps,r)}function Cd({props:e,name:t,defaultTheme:n,themeId:r}){let o=jl(n);return r&&(o=o[r]||o),Lb({theme:o,name:t,props:e})}const Ut=typeof window<"u"?p.useLayoutEffect:p.useEffect;function oR(e,t,n,r,o){const[i,a]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ut(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const iR={...Gs},jb=iR.useSyncExternalStore;function aR(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return jb(l,s,a)}function sR(e={}){const{themeId:t}=e;return function(r,o={}){let i=gm();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Lb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(jb!==void 0?aR:oR)(d,s,l,c,u)}}function lR(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function vm(e,t=0,n=1){return lR(e,t,n)}function cR(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 zo(e){if(e.type)return e;if(e.charAt(0)==="#")return zo(cR(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(lo(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"].includes(o))throw new Error(lo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const uR=e=>{const t=zo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ms=(e,t)=>{try{return uR(e)}catch{return e}};function kd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Nb(e){e=zo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),kd({type:s,values:l})}function Vp(e){e=zo(e);let t=e.type==="hsl"||e.type==="hsla"?zo(Nb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dR(e,t){const n=Vp(e),r=Vp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ze(e,t){return e=zo(e),t=vm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kd(e)}function mc(e,t,n){try{return ze(e,t)}catch{return e}}function Ra(e,t){if(e=zo(e),t=vm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return kd(e)}function lt(e,t,n){try{return Ra(e,t)}catch{return e}}function Da(e,t){if(e=zo(e),t=vm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return kd(e)}function ct(e,t,n){try{return Da(e,t)}catch{return e}}function Fb(e,t=.15){return Vp(e)>.5?Ra(e,t):Da(e,t)}function gc(e,t,n){try{return Fb(e,t)}catch{return e}}const Bb=J.oneOfType([J.func,J.object]);function Vy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function xm(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 _s(e,t){var n,r,o;return p.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function Sr(e){return Wt(e).defaultView||window}function Wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Wy=0;function fR(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Wy+=1,n(`mui-${Wy}`))},[t]),r}const pR={...Gs},Uy=pR.useId;function Uo(e){if(Uy!==void 0){const t=Uy();return e??t}return fR(e)}function co({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=p.useRef(e);return Ut(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ye(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Wp(n,t)})},e)}const Hy={};function zb(e,t){const n=p.useRef(Hy);return n.current===Hy&&(n.current=e(t)),n}const hR=[];function mR(e){p.useEffect(e,hR)}class Sm{constructor(){Za(this,"currentId",null);Za(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Za(this,"disposeEffect",()=>this.clear)}static create(){return new Sm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function bm(){const e=zb(Sm.create).current;return mR(e.disposeEffect),e}function xu(e){try{return e.matches(":focus-visible")}catch{}return!1}function _b(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const gR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ye(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yy(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 Wb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},S={...n,...o,...r};return y.length>0&&(S.className=y),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const a=Su({...o,...r}),s=Yy(r),l=Yy(o),c=t(a),u=pe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Ed(e,t,n){return typeof e=="function"?e(t,n):e}function Qe(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Ed(n,r),{props:s,internalRef:l}=Wb({...i,externalSlotProps:a}),c=Ye(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Vb(t,{...s,ref:c},r)}function Mi(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ub=p.createContext(null);function wm(){return p.useContext(Ub)}const vR=typeof Symbol=="function"&&Symbol.for,xR=vR?Symbol.for("mui.nested"):"__THEME_NESTED__";function SR(e,t){return typeof t=="function"?t(e):{...e,...t}}function bR(e){const{children:t,theme:n}=e,r=wm(),o=p.useMemo(()=>{const i=r===null?{...n}:SR(r,n);return i!=null&&(i[xR]=r!==null),i},[n,r]);return x.jsx(Ub.Provider,{value:o,children:t})}const Hb=p.createContext();function wR({value:e,...t}){return x.jsx(Hb.Provider,{value:e??!0,...t})}const lr=()=>p.useContext(Hb)??!1,Yb=p.createContext(void 0);function CR({value:e,children:t}){return x.jsx(Yb.Provider,{value:e,children:t})}function kR(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?gl(o.defaultProps,r):!o.styleOverrides&&!o.variants?gl(o,r):r}function ER({props:e,name:t}){const n=p.useContext(Yb);return kR({props:e,name:t,theme:{components:n}})}const Ky={};function Gy(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Kb(e){const{children:t,theme:n,themeId:r}=e,o=gm(Ky),i=wm()||Ky,a=Gy(r,o,n),s=Gy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return x.jsx(bR,{theme:s,children:x.jsx(hd.Provider,{value:a,children:x.jsx(wR,{value:l,children:x.jsx(CR,{value:r?a[r].components:a.components,children:t})})})})}const Qy={theme:void 0};function PR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Qy.theme=o.theme,i=Ob(e(Qy)),t=i,n=o.theme),i}}const Cm="mode",km="color-scheme",MR="data-color-scheme";function RR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Cm,colorSchemeStorageKey:i=km,attribute:a=MR,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,y]=d[1].split("=");y||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -77,15 +77,15 @@ try { if (colorScheme) { ${c} } -} catch(e){}})();`}},"mui-color-scheme-init")}function Xy(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Gb(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function DR(e){return Gb(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Df(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function TR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=km,colorSchemeStorageKey:a=Em,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=p.useState(()=>{const b=Df(i,t),E=Df(`${a}-light`,n),k=Df(`${a}-dark`,r);return{mode:b,systemMode:Xy(b),lightColorScheme:E,darkColorScheme:k}}),[y,g]=p.useState(l||!u);p.useEffect(()=>{g(!0)},[]);const S=DR(d),C=p.useCallback(b=>{f(E=>{if(b===E.mode)return E;const k=b??t;try{localStorage.setItem(i,k)}catch{}return{...E,mode:k,systemMode:Xy(k)}})},[i,t]),h=p.useCallback(b=>{b?typeof b=="string"?b&&!c.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const k={...E};return Gb(E,M=>{try{localStorage.setItem(`${a}-${M}`,b)}catch{}M==="light"&&(k.lightColorScheme=b),M==="dark"&&(k.darkColorScheme=b)}),k}):f(E=>{const k={...E},M=b.light===null?n:b.light,P=b.dark===null?r:b.dark;if(M)if(!c.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${a}-light`,M)}catch{}}if(P)if(!c.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=P;try{localStorage.setItem(`${a}-dark`,P)}catch{}}return k}):f(E=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...E,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=p.useCallback(b=>{d.mode==="system"&&f(E=>{const k=b!=null&&b.matches?"dark":"light";return E.systemMode===k?E:{...E,systemMode:k}})},[d.mode]),v=p.useRef(m);return v.current=m,p.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const b=(...k)=>v.current(...k),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(b),b(E),()=>{E.removeListener(b)}},[u]),p.useEffect(()=>{if(s&&u){const b=E=>{const k=E.newValue;typeof E.key=="string"&&E.key.startsWith(a)&&(!k||c.match(k))&&(E.key.endsWith("light")&&h({light:k}),E.key.endsWith("dark")&&h({dark:k})),E.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",b),()=>{s.removeEventListener("storage",b)}}},[h,C,i,a,c,t,s,u]),{...d,mode:y?d.mode:void 0,systemMode:y?d.systemMode:void 0,colorScheme:y?S:void 0,setMode:C,setColorScheme:h}}const IR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OR(e){const{themeId:t,theme:n={},modeStorageKey:r=km,colorSchemeStorageKey:o=Em,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=p.createContext(void 0),u=()=>p.useContext(c)||l,d={},f={};function y(h){var tt,Pe,_e,ut;const{children:m,theme:v,modeStorageKey:b=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:w=!1,disableStyleSheetGeneration:R=!1,defaultMode:A="system",noSsr:j}=h,O=p.useRef(!1),T=Cm(),I=p.useContext(c),N=!!I&&!w,D=p.useMemo(()=>v||(typeof n=="function"?n():n),[v]),L=D[t],z=L||D,{colorSchemes:V=d,components:H=f,cssVarPrefix:se}=z,X=Object.keys(V).filter(je=>!!V[je]).join(","),Y=p.useMemo(()=>X.split(","),[X]),le=typeof a=="string"?a:a.light,ae=typeof a=="string"?a:a.dark,te=V[le]&&V[ae]?A:((Pe=(tt=V[z.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Pe.mode)||((_e=z.palette)==null?void 0:_e.mode),{mode:Z,setMode:re,systemMode:ie,lightColorScheme:W,darkColorScheme:F,colorScheme:K,setColorScheme:Q}=TR({supportedColorSchemes:Y,defaultLightColorScheme:le,defaultDarkColorScheme:ae,modeStorageKey:b,colorSchemeStorageKey:E,defaultMode:te,storageWindow:M,noSsr:j});let ne=Z,ue=K;N&&(ne=I.mode,ue=I.colorScheme);const ee=p.useMemo(()=>{var At;const je=ue||z.defaultColorScheme,Oe=((At=z.generateThemeVars)==null?void 0:At.call(z))||z.vars,pt={...z,components:H,colorSchemes:V,cssVarPrefix:se,vars:Oe};if(typeof pt.generateSpacing=="function"&&(pt.spacing=pt.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(st=>{Ne[st]&&typeof Ne[st]=="object"?pt[st]={...pt[st],...Ne[st]}:pt[st]=Ne[st]})}return s?s(pt):pt},[z,ue,H,V,se]),fe=z.colorSchemeSelector;p.useEffect(()=>{if(ue&&$&&fe&&fe!=="media"){const je=fe;let Oe=fe;if(je==="class"&&(Oe=".%s"),je==="data"&&(Oe="[data-%s]"),je!=null&&je.startsWith("data-")&&!je.includes("%s")&&(Oe=`[${je}="%s"]`),Oe.startsWith("."))$.classList.remove(...Y.map(pt=>Oe.substring(1).replace("%s",pt))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const pt=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(pt){const[At,Ne]=pt[1].split("=");Ne||Y.forEach(st=>{$.removeAttribute(At.replace(ue,st))}),$.setAttribute(At,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,Y]),p.useEffect(()=>{let je;if(k&&O.current&&P){const Oe=P.createElement("style");Oe.appendChild(P.createTextNode(IR)),P.head.appendChild(Oe),window.getComputedStyle(P.body),je=setTimeout(()=>{P.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,P]),p.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ve=p.useMemo(()=>({allColorSchemes:Y,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:ne,setColorScheme:Q,setMode:re,systemMode:ie}),[Y,ue,F,W,ne,Q,re,ie,ee.colorSchemeSelector]);let Le=!0;(R||z.cssVariables===!1||N&&(T==null?void 0:T.cssVarPrefix)===se)&&(Le=!1);const xe=x.jsxs(p.Fragment,{children:[x.jsx(Kb,{themeId:L?t:void 0,theme:ee,children:m}),Le&&x.jsx(Cb,{styles:((ut=ee.generateStyleSheets)==null?void 0:ut.call(ee))||[]})]});return N?xe:x.jsx(c.Provider,{value:ve,children:xe})}const g=typeof a=="string"?a:a.light,S=typeof a=="string"?a:a.dark;return{CssVarsProvider:y,useColorScheme:u,getInitColorSchemeScript:h=>RR({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:S,modeStorageKey:r,...h})}}function $R(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const qy=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},AR=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},LR=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Tf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return AR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=LR(s,l);Object.assign(o,{[u]:d}),qy(i,s,`var(${u})`,c),qy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function jR(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Tf(l,t);let f=d;const y={},{[s]:g,...S}=i;if(Object.entries(S||{}).forEach(([v,b])=>{const{vars:E,css:k,varsWithDefaults:M}=Tf(b,t);f=Qt(f,M),y[v]={css:k,vars:E}}),g){const{css:v,vars:b,varsWithDefaults:E}=Tf(g,t);f=Qt(f,E),y[s]={css:v,vars:b}}function C(v,b){var k,M;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),v){if(E==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((M=(k=i[v])==null?void 0:k.palette)==null?void 0:M.mode)||v})`]:{":root":b}};if(E)return e.defaultColorScheme===v?`:root, ${E.replace("%s",String(v))}`:E.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(y).forEach(([,{vars:b}])=>{v=Qt(v,b)}),v},generateStyleSheets:()=>{var P,$;const v=[],b=e.defaultColorScheme||"light";function E(w,R){Object.keys(R).length&&v.push(typeof w=="string"?{[w]:{...R}}:w)}E(n(void 0,{...u}),u);const{[b]:k,...M}=y;if(k){const{css:w}=k,R=($=(P=i[b])==null?void 0:P.palette)==null?void 0:$.mode,A=!r&&R?{colorScheme:R,...w}:{...w};E(n(b,{...A}),A)}return Object.entries(M).forEach(([w,{css:R}])=>{var O,T;const A=(T=(O=i[w])==null?void 0:O.palette)==null?void 0:T.mode,j=!r&&A?{colorScheme:A,...R}:{...R};E(n(w,{...j}),j)}),v}}}function NR(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const FR=Ua(),BR=vm("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zR=e=>kd({props:e,name:"MuiContainer",defaultTheme:FR}),_R=(e,t)=>{const n=l=>ge(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ce(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ye(s,n,r)};function VR(e={}){const{createStyledComponent:t=BR,useThemeProps:n=zR,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:y=!1,maxWidth:g="lg",classes:S,...C}=c,h={...c,component:d,disableGutters:f,fixed:y,maxWidth:g},m=_R(h,r);return x.jsx(o,{as:d,ownerState:h,className:pe(m.root,u),ref:l,...C})})}const WR=(e,t)=>e.filter(n=>t.includes(n)),Ha=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:WR(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function wu(e){return`--Grid-${e}Spacing`}function Md(e){return`--Grid-parent-${e}Spacing`}const Zy="--Grid-columns",pa="--Grid-parent-columns",UR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${pa}) - (var(${pa}) - ${o}) * (var(${Md("column")}) / var(${pa})))`}),r(n,i)}),n},HR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${pa}) + var(${Md("column")}) * ${o} / var(${pa}))`}),r(n,i)}),n},YR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zy]:12};return Ha(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Zy]:i,"> *":{[pa]:i}})}),n},KR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[wu("row")]:i,"> *":{[Md("row")]:i}})}),n},GR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[wu("column")]:i,"> *":{[Md("column")]:i}})}),n},QR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},XR=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${wu("row")}) var(${wu("column")})`}}),qR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},ZR=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},JR=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],eD=Ua(),tD=vm("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function nD(e){return kd({props:e,name:"MuiGrid",defaultTheme:eD})}function rD(e={}){const{createStyledComponent:t=tD,useThemeProps:n=nD,useTheme:r=jl,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:y,wrap:g,size:S}=c,C={root:["root",d&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...JR(f),...qR(S),...d?ZR(y,u.breakpoints.keys[0]):[]]};return ye(C,h=>ge(o,h),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((y,g)=>{y!==null&&d(y)&&u.keys[g]&&(f[u.keys[g]]=y)}):typeof c=="object"?Object.keys(c).forEach(y=>{const g=c[y];g!=null&&d(g)&&(f[y]=g)}):f[u.keys[0]]=c),f}const s=t(YR,GR,KR,UR,QR,XR,HR),l=p.forwardRef(function(u,d){const f=r(),y=n(u),g=Cd(y),{className:S,children:C,columns:h=12,container:m=!1,component:v="div",direction:b="row",wrap:E="wrap",size:k={},offset:M={},spacing:P=0,rowSpacing:$=P,columnSpacing:w=P,unstable_level:R=0,...A}=g,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),T=u.columns??(R?void 0:h),I=u.spacing??(R?void 0:P),N=u.rowSpacing??u.spacing??(R?void 0:$),D=u.columnSpacing??u.spacing??(R?void 0:w),L={...g,level:R,columns:T,container:m,direction:b,wrap:E,spacing:I,rowSpacing:N,columnSpacing:D,size:j,offset:O},z=i(L,f);return x.jsx(s,{ref:d,as:v,ownerState:L,className:pe(z.root,S),...A,children:p.Children.map(C,V=>{var H;return p.isValidElement(V)&&_s(V,["Grid"])&&m&&V.props.container?p.cloneElement(V,{unstable_level:((H=V.props)==null?void 0:H.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const oD=Ua(),iD=vm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function aD(e){return kd({props:e,name:"MuiStack",defaultTheme:oD})}function sD(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cD=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...xr({theme:t},Rf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=yd(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Rf({values:e.direction,base:o}),a=Rf({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=Qt(n,xr({theme:t},a,(l,c)=>e.useFlexGap?{gap:vi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lD(c?i[c]:e.direction)}`]:vi(r,l)}}))}return n=nM(t.breakpoints,n),n};function uD(e={}){const{createStyledComponent:t=iD,useThemeProps:n=aD,componentName:r="MuiStack"}=e,o=()=>ye({root:["root"]},l=>ge(r,l),{}),i=t(cD);return p.forwardRef(function(l,c){const u=n(l),d=Cd(u),{component:f="div",direction:y="column",spacing:g=0,divider:S,children:C,className:h,useFlexGap:m=!1,...v}=d,b={direction:y,spacing:g,useFlexGap:m},E=o();return x.jsx(i,{as:f,ownerState:b,ref:c,className:pe(E.root,h),...v,children:S?sD(C,S):C})})}function Qb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fl.white,default:fl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const dD=Qb();function Xb(){return{text:{primary:fl.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:fl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Jy=Xb();function ev(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=Da(e.main,o):t==="dark"&&(e.dark=Ra(e.main,i)))}function fD(e="light"){return e==="dark"?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function pD(e="light"){return e==="dark"?{main:Ni[200],light:Ni[50],dark:Ni[400]}:{main:Ni[500],light:Ni[300],dark:Ni[700]}}function hD(e="light"){return e==="dark"?{main:ji[500],light:ji[300],dark:ji[700]}:{main:ji[700],light:ji[400],dark:ji[800]}}function mD(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[500],dark:Bi[900]}}function gD(e="light"){return e==="dark"?{main:zi[400],light:zi[300],dark:zi[700]}:{main:zi[800],light:zi[500],dark:zi[900]}}function yD(e="light"){return e==="dark"?{main:ss[400],light:ss[300],dark:ss[700]}:{main:"#ed6c02",light:ss[500],dark:ss[900]}}function Pm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||fD(t),a=e.secondary||pD(t),s=e.error||hD(t),l=e.info||mD(t),c=e.success||gD(t),u=e.warning||yD(t);function d(S){return dR(S,Jy.text.primary)>=n?Jy.text.primary:dD.text.primary}const f=({color:S,name:C,mainShade:h=500,lightShade:m=300,darkShade:v=700})=>{if(S={...S},!S.main&&S[h]&&(S.main=S[h]),!S.hasOwnProperty("main"))throw new Error(lo(11,C?` (${C})`:"",h));if(typeof S.main!="string")throw new Error(lo(12,C?` (${C})`:"",JSON.stringify(S.main)));return ev(S,"light",m,r),ev(S,"dark",v,r),S.contrastText||(S.contrastText=d(S.main)),S};let y;return t==="light"?y=Qb():t==="dark"&&(y=Xb()),Qt({common:{...fl},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...y},o)}function vD(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function xD(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function SD(e){return Math.round(e*1e5)/1e5}const tv={textTransform:"uppercase"},nv='"Roboto", "Helvetica", "Arial", sans-serif';function qb(e,t){const{fontFamily:n=nv,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,y=u||(C=>`${C/l*f}rem`),g=(C,h,m,v,b)=>({fontFamily:n,fontWeight:C,fontSize:y(h),lineHeight:m,...n===nv?{letterSpacing:`${SD(v/h)}em`}:{},...b,...c}),S={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,tv),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,tv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...S},d,{clone:!1})}const bD=.2,wD=.14,CD=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wD})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CD})`].join(",")}const kD=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],ED={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)"},PD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rv(e){return`${Math.round(e)}ms`}function MD(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function RD(e){const t={...ED,...e.easing},n={...PD,...e.duration};return{getAutoHeightDuration:MD,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:rv(a)} ${s} ${typeof l=="string"?l:rv(l)}`).join(",")},...e,easing:t,duration:n}}const DD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function TD(e){return jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Zb(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Rf(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function TR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Cm,colorSchemeStorageKey:a=km,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=p.useState(()=>{const b=Rf(i,t),E=Rf(`${a}-light`,n),k=Rf(`${a}-dark`,r);return{mode:b,systemMode:Xy(b),lightColorScheme:E,darkColorScheme:k}}),[y,g]=p.useState(l||!u);p.useEffect(()=>{g(!0)},[]);const S=DR(d),C=p.useCallback(b=>{f(E=>{if(b===E.mode)return E;const k=b??t;try{localStorage.setItem(i,k)}catch{}return{...E,mode:k,systemMode:Xy(k)}})},[i,t]),h=p.useCallback(b=>{b?typeof b=="string"?b&&!c.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):f(E=>{const k={...E};return Gb(E,M=>{try{localStorage.setItem(`${a}-${M}`,b)}catch{}M==="light"&&(k.lightColorScheme=b),M==="dark"&&(k.darkColorScheme=b)}),k}):f(E=>{const k={...E},M=b.light===null?n:b.light,P=b.dark===null?r:b.dark;if(M)if(!c.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=M;try{localStorage.setItem(`${a}-light`,M)}catch{}}if(P)if(!c.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=P;try{localStorage.setItem(`${a}-dark`,P)}catch{}}return k}):f(E=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...E,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=p.useCallback(b=>{d.mode==="system"&&f(E=>{const k=b!=null&&b.matches?"dark":"light";return E.systemMode===k?E:{...E,systemMode:k}})},[d.mode]),v=p.useRef(m);return v.current=m,p.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const b=(...k)=>v.current(...k),E=window.matchMedia("(prefers-color-scheme: dark)");return E.addListener(b),b(E),()=>{E.removeListener(b)}},[u]),p.useEffect(()=>{if(s&&u){const b=E=>{const k=E.newValue;typeof E.key=="string"&&E.key.startsWith(a)&&(!k||c.match(k))&&(E.key.endsWith("light")&&h({light:k}),E.key.endsWith("dark")&&h({dark:k})),E.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",b),()=>{s.removeEventListener("storage",b)}}},[h,C,i,a,c,t,s,u]),{...d,mode:y?d.mode:void 0,systemMode:y?d.systemMode:void 0,colorScheme:y?S:void 0,setMode:C,setColorScheme:h}}const IR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OR(e){const{themeId:t,theme:n={},modeStorageKey:r=Cm,colorSchemeStorageKey:o=km,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=p.createContext(void 0),u=()=>p.useContext(c)||l,d={},f={};function y(h){var tt,Pe,_e,ut;const{children:m,theme:v,modeStorageKey:b=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:w=!1,disableStyleSheetGeneration:R=!1,defaultMode:A="system",noSsr:j}=h,O=p.useRef(!1),T=wm(),I=p.useContext(c),N=!!I&&!w,D=p.useMemo(()=>v||(typeof n=="function"?n():n),[v]),L=D[t],z=L||D,{colorSchemes:V=d,components:H=f,cssVarPrefix:se}=z,X=Object.keys(V).filter(je=>!!V[je]).join(","),Y=p.useMemo(()=>X.split(","),[X]),le=typeof a=="string"?a:a.light,ae=typeof a=="string"?a:a.dark,te=V[le]&&V[ae]?A:((Pe=(tt=V[z.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Pe.mode)||((_e=z.palette)==null?void 0:_e.mode),{mode:Z,setMode:re,systemMode:ie,lightColorScheme:W,darkColorScheme:F,colorScheme:K,setColorScheme:Q}=TR({supportedColorSchemes:Y,defaultLightColorScheme:le,defaultDarkColorScheme:ae,modeStorageKey:b,colorSchemeStorageKey:E,defaultMode:te,storageWindow:M,noSsr:j});let ne=Z,ue=K;N&&(ne=I.mode,ue=I.colorScheme);const ee=p.useMemo(()=>{var At;const je=ue||z.defaultColorScheme,Oe=((At=z.generateThemeVars)==null?void 0:At.call(z))||z.vars,pt={...z,components:H,colorSchemes:V,cssVarPrefix:se,vars:Oe};if(typeof pt.generateSpacing=="function"&&(pt.spacing=pt.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(st=>{Ne[st]&&typeof Ne[st]=="object"?pt[st]={...pt[st],...Ne[st]}:pt[st]=Ne[st]})}return s?s(pt):pt},[z,ue,H,V,se]),fe=z.colorSchemeSelector;p.useEffect(()=>{if(ue&&$&&fe&&fe!=="media"){const je=fe;let Oe=fe;if(je==="class"&&(Oe=".%s"),je==="data"&&(Oe="[data-%s]"),je!=null&&je.startsWith("data-")&&!je.includes("%s")&&(Oe=`[${je}="%s"]`),Oe.startsWith("."))$.classList.remove(...Y.map(pt=>Oe.substring(1).replace("%s",pt))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const pt=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(pt){const[At,Ne]=pt[1].split("=");Ne||Y.forEach(st=>{$.removeAttribute(At.replace(ue,st))}),$.setAttribute(At,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,Y]),p.useEffect(()=>{let je;if(k&&O.current&&P){const Oe=P.createElement("style");Oe.appendChild(P.createTextNode(IR)),P.head.appendChild(Oe),window.getComputedStyle(P.body),je=setTimeout(()=>{P.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,P]),p.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ve=p.useMemo(()=>({allColorSchemes:Y,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:ne,setColorScheme:Q,setMode:re,systemMode:ie}),[Y,ue,F,W,ne,Q,re,ie,ee.colorSchemeSelector]);let Le=!0;(R||z.cssVariables===!1||N&&(T==null?void 0:T.cssVarPrefix)===se)&&(Le=!1);const xe=x.jsxs(p.Fragment,{children:[x.jsx(Kb,{themeId:L?t:void 0,theme:ee,children:m}),Le&&x.jsx(Cb,{styles:((ut=ee.generateStyleSheets)==null?void 0:ut.call(ee))||[]})]});return N?xe:x.jsx(c.Provider,{value:ve,children:xe})}const g=typeof a=="string"?a:a.light,S=typeof a=="string"?a:a.dark;return{CssVarsProvider:y,useColorScheme:u,getInitColorSchemeScript:h=>RR({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:S,modeStorageKey:r,...h})}}function $R(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const qy=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},AR=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},LR=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Df(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return AR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=LR(s,l);Object.assign(o,{[u]:d}),qy(i,s,`var(${u})`,c),qy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function jR(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Df(l,t);let f=d;const y={},{[s]:g,...S}=i;if(Object.entries(S||{}).forEach(([v,b])=>{const{vars:E,css:k,varsWithDefaults:M}=Df(b,t);f=Qt(f,M),y[v]={css:k,vars:E}}),g){const{css:v,vars:b,varsWithDefaults:E}=Df(g,t);f=Qt(f,E),y[s]={css:v,vars:b}}function C(v,b){var k,M;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),v){if(E==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((M=(k=i[v])==null?void 0:k.palette)==null?void 0:M.mode)||v})`]:{":root":b}};if(E)return e.defaultColorScheme===v?`:root, ${E.replace("%s",String(v))}`:E.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(y).forEach(([,{vars:b}])=>{v=Qt(v,b)}),v},generateStyleSheets:()=>{var P,$;const v=[],b=e.defaultColorScheme||"light";function E(w,R){Object.keys(R).length&&v.push(typeof w=="string"?{[w]:{...R}}:w)}E(n(void 0,{...u}),u);const{[b]:k,...M}=y;if(k){const{css:w}=k,R=($=(P=i[b])==null?void 0:P.palette)==null?void 0:$.mode,A=!r&&R?{colorScheme:R,...w}:{...w};E(n(b,{...A}),A)}return Object.entries(M).forEach(([w,{css:R}])=>{var O,T;const A=(T=(O=i[w])==null?void 0:O.palette)==null?void 0:T.mode,j=!r&&A?{colorScheme:A,...R}:{...R};E(n(w,{...j}),j)}),v}}}function NR(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const FR=Ua(),BR=ym("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zR=e=>Cd({props:e,name:"MuiContainer",defaultTheme:FR}),_R=(e,t)=>{const n=l=>ge(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ce(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ye(s,n,r)};function VR(e={}){const{createStyledComponent:t=BR,useThemeProps:n=zR,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,d=a.breakpoints.values[u];return d!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:y=!1,maxWidth:g="lg",classes:S,...C}=c,h={...c,component:d,disableGutters:f,fixed:y,maxWidth:g},m=_R(h,r);return x.jsx(o,{as:d,ownerState:h,className:pe(m.root,u),ref:l,...C})})}const WR=(e,t)=>e.filter(n=>t.includes(n)),Ha=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:WR(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function bu(e){return`--Grid-${e}Spacing`}function Pd(e){return`--Grid-parent-${e}Spacing`}const Zy="--Grid-columns",pa="--Grid-parent-columns",UR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${pa}) - (var(${pa}) - ${o}) * (var(${Pd("column")}) / var(${pa})))`}),r(n,i)}),n},HR=({theme:e,ownerState:t})=>{const n={};return Ha(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${pa}) + var(${Pd("column")}) * ${o} / var(${pa}))`}),r(n,i)}),n},YR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zy]:12};return Ha(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Zy]:i,"> *":{[pa]:i}})}),n},KR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[bu("row")]:i,"> *":{[Pd("row")]:i}})}),n},GR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[bu("column")]:i,"> *":{[Pd("column")]:i}})}),n},QR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ha(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},XR=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${bu("row")}) var(${bu("column")})`}}),qR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},ZR=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},JR=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],eD=Ua(),tD=ym("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function nD(e){return Cd({props:e,name:"MuiGrid",defaultTheme:eD})}function rD(e={}){const{createStyledComponent:t=tD,useThemeProps:n=nD,useTheme:r=jl,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:y,wrap:g,size:S}=c,C={root:["root",d&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...JR(f),...qR(S),...d?ZR(y,u.breakpoints.keys[0]):[]]};return ye(C,h=>ge(o,h),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((y,g)=>{y!==null&&d(y)&&u.keys[g]&&(f[u.keys[g]]=y)}):typeof c=="object"?Object.keys(c).forEach(y=>{const g=c[y];g!=null&&d(g)&&(f[y]=g)}):f[u.keys[0]]=c),f}const s=t(YR,GR,KR,UR,QR,XR,HR),l=p.forwardRef(function(u,d){const f=r(),y=n(u),g=wd(y),{className:S,children:C,columns:h=12,container:m=!1,component:v="div",direction:b="row",wrap:E="wrap",size:k={},offset:M={},spacing:P=0,rowSpacing:$=P,columnSpacing:w=P,unstable_level:R=0,...A}=g,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),T=u.columns??(R?void 0:h),I=u.spacing??(R?void 0:P),N=u.rowSpacing??u.spacing??(R?void 0:$),D=u.columnSpacing??u.spacing??(R?void 0:w),L={...g,level:R,columns:T,container:m,direction:b,wrap:E,spacing:I,rowSpacing:N,columnSpacing:D,size:j,offset:O},z=i(L,f);return x.jsx(s,{ref:d,as:v,ownerState:L,className:pe(z.root,S),...A,children:p.Children.map(C,V=>{var H;return p.isValidElement(V)&&_s(V,["Grid"])&&m&&V.props.container?p.cloneElement(V,{unstable_level:((H=V.props)==null?void 0:H.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const oD=Ua(),iD=ym("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function aD(e){return Cd({props:e,name:"MuiStack",defaultTheme:oD})}function sD(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cD=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...xr({theme:t},Mf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=gd(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Mf({values:e.direction,base:o}),a=Mf({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=Qt(n,xr({theme:t},a,(l,c)=>e.useFlexGap?{gap:xi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lD(c?i[c]:e.direction)}`]:xi(r,l)}}))}return n=nM(t.breakpoints,n),n};function uD(e={}){const{createStyledComponent:t=iD,useThemeProps:n=aD,componentName:r="MuiStack"}=e,o=()=>ye({root:["root"]},l=>ge(r,l),{}),i=t(cD);return p.forwardRef(function(l,c){const u=n(l),d=wd(u),{component:f="div",direction:y="column",spacing:g=0,divider:S,children:C,className:h,useFlexGap:m=!1,...v}=d,b={direction:y,spacing:g,useFlexGap:m},E=o();return x.jsx(i,{as:f,ownerState:b,ref:c,className:pe(E.root,h),...v,children:S?sD(C,S):C})})}function Qb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fl.white,default:fl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const dD=Qb();function Xb(){return{text:{primary:fl.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:fl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Jy=Xb();function ev(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=Da(e.main,o):t==="dark"&&(e.dark=Ra(e.main,i)))}function fD(e="light"){return e==="dark"?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function pD(e="light"){return e==="dark"?{main:Ni[200],light:Ni[50],dark:Ni[400]}:{main:Ni[500],light:Ni[300],dark:Ni[700]}}function hD(e="light"){return e==="dark"?{main:ji[500],light:ji[300],dark:ji[700]}:{main:ji[700],light:ji[400],dark:ji[800]}}function mD(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[500],dark:Bi[900]}}function gD(e="light"){return e==="dark"?{main:zi[400],light:zi[300],dark:zi[700]}:{main:zi[800],light:zi[500],dark:zi[900]}}function yD(e="light"){return e==="dark"?{main:ss[400],light:ss[300],dark:ss[700]}:{main:"#ed6c02",light:ss[500],dark:ss[900]}}function Em(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||fD(t),a=e.secondary||pD(t),s=e.error||hD(t),l=e.info||mD(t),c=e.success||gD(t),u=e.warning||yD(t);function d(S){return dR(S,Jy.text.primary)>=n?Jy.text.primary:dD.text.primary}const f=({color:S,name:C,mainShade:h=500,lightShade:m=300,darkShade:v=700})=>{if(S={...S},!S.main&&S[h]&&(S.main=S[h]),!S.hasOwnProperty("main"))throw new Error(lo(11,C?` (${C})`:"",h));if(typeof S.main!="string")throw new Error(lo(12,C?` (${C})`:"",JSON.stringify(S.main)));return ev(S,"light",m,r),ev(S,"dark",v,r),S.contrastText||(S.contrastText=d(S.main)),S};let y;return t==="light"?y=Qb():t==="dark"&&(y=Xb()),Qt({common:{...fl},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...y},o)}function vD(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function xD(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function SD(e){return Math.round(e*1e5)/1e5}const tv={textTransform:"uppercase"},nv='"Roboto", "Helvetica", "Arial", sans-serif';function qb(e,t){const{fontFamily:n=nv,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,y=u||(C=>`${C/l*f}rem`),g=(C,h,m,v,b)=>({fontFamily:n,fontWeight:C,fontSize:y(h),lineHeight:m,...n===nv?{letterSpacing:`${SD(v/h)}em`}:{},...b,...c}),S={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,tv),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,tv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...S},d,{clone:!1})}const bD=.2,wD=.14,CD=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wD})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CD})`].join(",")}const kD=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],ED={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)"},PD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rv(e){return`${Math.round(e)}ms`}function MD(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function RD(e){const t={...ED,...e.easing},n={...PD,...e.duration};return{getAutoHeightDuration:MD,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:rv(a)} ${s} ${typeof l=="string"?l:rv(l)}`).join(",")},...e,easing:t,duration:n}}const DD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function TD(e){return jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Zb(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iQt(y,g),f),f.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(g){return Fo({sx:g,theme:this})},f.toRuntimeSource=Zb,f}function Yp(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const ID=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ew(e){return e==="dark"?ID:[]}function OD(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Pm(t);return{palette:i,opacity:{...Jb(i.mode),...n},overlays:r||ew(i.mode),...o}}function $D(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const AD=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],LD=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return AD(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function jD(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function Rs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Nb(e)}function Gr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ms(Rs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ND(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Rr=e=>{try{return e()}catch{}},FD=(e="mui")=>$R(e);function If(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=OD({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Hp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Jb(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ew(o)},a}function BD(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=$D,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=FD(i),{[d]:y,light:g,dark:S,...C}=n,h={...C};let m=y;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(lo(21,d));const v=If(h,m,c,d);g&&!h.light&&If(h,g,void 0,"light"),S&&!h.dark&&If(h,S,void 0,"dark");let b={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:h,font:{...vD(v.typography),...v.font},spacing:ND(c.spacing)};Object.keys(b.colorSchemes).forEach($=>{const w=b.colorSchemes[$].palette,R=A=>{const j=A.split("-"),O=j[1],T=j[2];return f(A,w[O][T])};if(w.mode==="light"&&(oe(w.common,"background","#fff"),oe(w.common,"onBackground","#000")),w.mode==="dark"&&(oe(w.common,"background","#000"),oe(w.common,"onBackground","#fff")),jD(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){oe(w.Alert,"errorColor",lt(w.error.light,.6)),oe(w.Alert,"infoColor",lt(w.info.light,.6)),oe(w.Alert,"successColor",lt(w.success.light,.6)),oe(w.Alert,"warningColor",lt(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-main")),oe(w.Alert,"infoFilledBg",R("palette-info-main")),oe(w.Alert,"successFilledBg",R("palette-success-main")),oe(w.Alert,"warningFilledBg",R("palette-warning-main")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.main))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.main))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.main))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.main))),oe(w.Alert,"errorStandardBg",ct(w.error.light,.9)),oe(w.Alert,"infoStandardBg",ct(w.info.light,.9)),oe(w.Alert,"successStandardBg",ct(w.success.light,.9)),oe(w.Alert,"warningStandardBg",ct(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-100")),oe(w.Avatar,"defaultBg",R("palette-grey-400")),oe(w.Button,"inheritContainedBg",R("palette-grey-300")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-A100")),oe(w.Chip,"defaultBorder",R("palette-grey-400")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-700")),oe(w.Chip,"defaultIconColor",R("palette-grey-700")),oe(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(w.LinearProgress,"primaryBg",ct(w.primary.main,.62)),oe(w.LinearProgress,"secondaryBg",ct(w.secondary.main,.62)),oe(w.LinearProgress,"errorBg",ct(w.error.main,.62)),oe(w.LinearProgress,"infoBg",ct(w.info.main,.62)),oe(w.LinearProgress,"successBg",ct(w.success.main,.62)),oe(w.LinearProgress,"warningBg",ct(w.warning.main,.62)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),oe(w.Slider,"primaryTrack",ct(w.primary.main,.62)),oe(w.Slider,"secondaryTrack",ct(w.secondary.main,.62)),oe(w.Slider,"errorTrack",ct(w.error.main,.62)),oe(w.Slider,"infoTrack",ct(w.info.main,.62)),oe(w.Slider,"successTrack",ct(w.success.main,.62)),oe(w.Slider,"warningTrack",ct(w.warning.main,.62));const A=yc(w.background.default,.8);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",yc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-400")),oe(w.StepContent,"border",R("palette-grey-400")),oe(w.Switch,"defaultColor",R("palette-common-white")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-100")),oe(w.Switch,"primaryDisabledColor",ct(w.primary.main,.62)),oe(w.Switch,"secondaryDisabledColor",ct(w.secondary.main,.62)),oe(w.Switch,"errorDisabledColor",ct(w.error.main,.62)),oe(w.Switch,"infoDisabledColor",ct(w.info.main,.62)),oe(w.Switch,"successDisabledColor",ct(w.success.main,.62)),oe(w.Switch,"warningDisabledColor",ct(w.warning.main,.62)),oe(w.TableCell,"border",ct(gc(w.divider,1),.88)),oe(w.Tooltip,"bg",gc(w.grey[700],.92))}if(w.mode==="dark"){oe(w.Alert,"errorColor",ct(w.error.light,.6)),oe(w.Alert,"infoColor",ct(w.info.light,.6)),oe(w.Alert,"successColor",ct(w.success.light,.6)),oe(w.Alert,"warningColor",ct(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-dark")),oe(w.Alert,"infoFilledBg",R("palette-info-dark")),oe(w.Alert,"successFilledBg",R("palette-success-dark")),oe(w.Alert,"warningFilledBg",R("palette-warning-dark")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.dark))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.dark))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.dark))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.dark))),oe(w.Alert,"errorStandardBg",lt(w.error.light,.9)),oe(w.Alert,"infoStandardBg",lt(w.info.light,.9)),oe(w.Alert,"successStandardBg",lt(w.success.light,.9)),oe(w.Alert,"warningStandardBg",lt(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-900")),oe(w.AppBar,"darkBg",R("palette-background-paper")),oe(w.AppBar,"darkColor",R("palette-text-primary")),oe(w.Avatar,"defaultBg",R("palette-grey-600")),oe(w.Button,"inheritContainedBg",R("palette-grey-800")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-700")),oe(w.Chip,"defaultBorder",R("palette-grey-700")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-300")),oe(w.Chip,"defaultIconColor",R("palette-grey-300")),oe(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(w.LinearProgress,"primaryBg",lt(w.primary.main,.5)),oe(w.LinearProgress,"secondaryBg",lt(w.secondary.main,.5)),oe(w.LinearProgress,"errorBg",lt(w.error.main,.5)),oe(w.LinearProgress,"infoBg",lt(w.info.main,.5)),oe(w.LinearProgress,"successBg",lt(w.success.main,.5)),oe(w.LinearProgress,"warningBg",lt(w.warning.main,.5)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),oe(w.Slider,"primaryTrack",lt(w.primary.main,.5)),oe(w.Slider,"secondaryTrack",lt(w.secondary.main,.5)),oe(w.Slider,"errorTrack",lt(w.error.main,.5)),oe(w.Slider,"infoTrack",lt(w.info.main,.5)),oe(w.Slider,"successTrack",lt(w.success.main,.5)),oe(w.Slider,"warningTrack",lt(w.warning.main,.5));const A=yc(w.background.default,.98);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",yc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-600")),oe(w.StepContent,"border",R("palette-grey-600")),oe(w.Switch,"defaultColor",R("palette-grey-300")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-600")),oe(w.Switch,"primaryDisabledColor",lt(w.primary.main,.55)),oe(w.Switch,"secondaryDisabledColor",lt(w.secondary.main,.55)),oe(w.Switch,"errorDisabledColor",lt(w.error.main,.55)),oe(w.Switch,"infoDisabledColor",lt(w.info.main,.55)),oe(w.Switch,"successDisabledColor",lt(w.success.main,.55)),oe(w.Switch,"warningDisabledColor",lt(w.warning.main,.55)),oe(w.TableCell,"border",lt(gc(w.divider,1),.68)),oe(w.Tooltip,"bg",gc(w.grey[700],.92))}Gr(w.background,"default"),Gr(w.background,"paper"),Gr(w.common,"background"),Gr(w.common,"onBackground"),Gr(w,"divider"),Object.keys(w).forEach(A=>{const j=w[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&oe(w[A],"mainChannel",Ms(Rs(j.main))),j.light&&oe(w[A],"lightChannel",Ms(Rs(j.light))),j.dark&&oe(w[A],"darkChannel",Ms(Rs(j.dark))),j.contrastText&&oe(w[A],"contrastTextChannel",Ms(Rs(j.contrastText))),A==="text"&&(Gr(w[A],"primary"),Gr(w[A],"secondary")),A==="action"&&(j.active&&Gr(w[A],"active"),j.selected&&Gr(w[A],"selected")))})}),b=t.reduce(($,w)=>Qt($,w),b);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:LD(b)},{vars:k,generateThemeVars:M,generateStyleSheets:P}=jR(b,E);return b.vars=k,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([$,w])=>{b[$]=w}),b.generateThemeVars=M,b.generateStyleSheets=P,b.generateSpacing=function(){return Db(c.spacing,yd(this))},b.getColorSchemeSelector=NR(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},b.unstable_sx=function(w){return Fo({sx:w,theme:this})},b.toRuntimeSource=Zb,b}function ov(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Pm({...n===!0?{}:n.palette,mode:t})})}function Rd(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Hp(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Hp({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},ov(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},ov(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),BD({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Dd=Rd();function Cr(){const e=jl(Dd);return e[er]||e}function gt({props:e,name:t}){return kd({props:e,name:t,defaultTheme:Dd,themeId:er})}function tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Un=e=>tw(e)&&e!=="classes",G=Ab({themeId:er,defaultTheme:Dd,rootShouldForwardProp:Un});function iv({theme:e,...t}){const n=er in e?e[er]:void 0;return x.jsx(Kb,{...t,themeId:n?er:void 0,theme:n||e})}const vc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:zD,useColorScheme:Hz,getInitColorSchemeScript:Yz}=OR({themeId:er,theme:()=>Rd({cssVariables:!0}),colorSchemeStorageKey:vc.colorSchemeStorageKey,modeStorageKey:vc.modeStorageKey,defaultColorScheme:{light:vc.defaultLightColorScheme,dark:vc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:qb(e.palette,e.typography)};return t.unstable_sx=function(r){return Fo({sx:r,theme:this})},t}}),_D=zD;function VD({theme:e,...t}){return typeof e=="function"?x.jsx(iv,{theme:e,...t}):"colorSchemes"in(er in e?e[er]:e)?x.jsx(_D,{theme:e,...t}):x.jsx(iv,{theme:e,...t})}function WD(e){return x.jsx(YM,{...e,defaultTheme:Dd,themeId:er})}function Mm(e){return function(n){return x.jsx(WD,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function UD(){return Cd}const Be=PR;function Ie(e){return ER(e)}function HD(e){return ge("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return ye(o,HD,r)},KD=G("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)}`]]}})(Be(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var C,h;return{props:{color:S},style:{color:(h=(C=(e.vars??e).palette)==null?void 0:C[S])==null?void 0:h.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...y}=r,g=p.isValidElement(o)&&o.type==="svg",S={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},C={};u||(C.viewBox=f);const h=YD(S);return x.jsxs(KD,{as:s,className:pe(h.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...y,...g&&o.props,ownerState:S,children:[g?o.props.children:o,d?x.jsx("title",{children:d}):null]})});Cu&&(Cu.muiName="SvgIcon");function Ht(e,t){function n(r,o){return x.jsx(Cu,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Cu.muiName,p.memo(p.forwardRef(n))}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Kp(e,t){return Kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kp(e,t)}function Rm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kp(e,t)}function GD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function QD(e,t){e.classList?e.classList.add(t):GD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function av(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function XD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=av(e.className,t):e.setAttribute("class",av(e.className&&e.className.baseVal||"",t))}const sv={disabled:!1},ku=_t.createContext(null);var nw=function(t){return t.scrollTop},Ds="unmounted",Jo="exited",ei="entering",Hi="entered",Gp="exiting",cr=function(e){Rm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Jo,i.appearStatus=ei):l=Hi:r.unmountOnExit||r.mountOnEnter?l=Ds:l=Jo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ds?{status:Jo}: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 a=this.state.status;this.props.in?a!==ei&&a!==Hi&&(i=ei):(a===ei||a===Hi)&&(i=Gp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this);a&&nw(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jo&&this.setState({status:Ds})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Ps.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||sv.disabled){this.safeSetState({status:Hi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ei},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Hi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ps.findDOMNode(this);if(!i||sv.disabled){this.safeSetState({status:Jo},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Gp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Jo},function(){o.props.onExited(s)})})})},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,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ds)return null;var i=this.props,a=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 s=Ae(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _t.createElement(ku.Provider,{value:null},typeof a=="function"?a(o,s):_t.cloneElement(_t.Children.only(a),s))},t}(_t.Component);cr.contextType=ku;cr.propTypes={};function _i(){}cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};cr.UNMOUNTED=Ds;cr.EXITED=Jo;cr.ENTERING=ei;cr.ENTERED=Hi;cr.EXITING=Gp;var qD=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return QD(t,r)})},Of=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return XD(t,r)})},Dm=function(e){Rm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ta(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function oT(e){return ge("MuiPaper",e)}me("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 iT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,oT,o)},aT=G("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}`]]}})(Be(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),br=p.forwardRef(function(t,n){var y;const r=Ie({props:t,name:"MuiPaper"}),o=Cr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=iT(d);return x.jsx(aT,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ze("#fff",Yp(s))}, ${ze("#fff",Yp(s))})`}},...u.style}})});function In(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,y=Pd(u[e],o),{props:{component:g,...S},internalRef:C}=Wb({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:y}),h=Ye(C,y==null?void 0:y.ref,t.ref),m=e==="root"?g||l:g,v=Vb(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...S,...m&&{as:m},ref:h},o);return[f,v]}class Eu{constructor(){Za(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Eu}static use(){const t=zb(Eu.create).current,[n,r]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=r,p.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=lT(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function sT(){return Eu.use()}function lT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function cT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=p.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),p.useEffect(()=>{if(!s&&l!=null){const S=setTimeout(l,c);return()=>{clearTimeout(S)}}},[l,s,c]),x.jsx("span",{className:f,style:y,children:x.jsx("span",{className:g})})}const Gn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qp=550,uT=80,dT=$l` +export default theme;`}function Up(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error(lo(20));const u=Em(i),d=Ua(e);let f=Qt(d,{mixins:xD(d.breakpoints,r),palette:u,shadows:kD.slice(),typography:qb(u,s),transitions:RD(a),zIndex:{...DD}});return f=Qt(f,c),f=t.reduce((y,g)=>Qt(y,g),f),f.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(g){return Bo({sx:g,theme:this})},f.toRuntimeSource=Zb,f}function Hp(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const ID=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Hp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ew(e){return e==="dark"?ID:[]}function OD(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Em(t);return{palette:i,opacity:{...Jb(i.mode),...n},overlays:r||ew(i.mode),...o}}function $D(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const AD=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],LD=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return AD(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function jD(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function Rs(e){return typeof e!="string"||!e.startsWith("hsl")?e:Nb(e)}function Gr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ms(Rs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ND(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Rr=e=>{try{return e()}catch{}},FD=(e="mui")=>$R(e);function Tf(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=OD({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Up({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Jb(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ew(o)},a}function BD(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=$D,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=FD(i),{[d]:y,light:g,dark:S,...C}=n,h={...C};let m=y;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(lo(21,d));const v=Tf(h,m,c,d);g&&!h.light&&Tf(h,g,void 0,"light"),S&&!h.dark&&Tf(h,S,void 0,"dark");let b={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:h,font:{...vD(v.typography),...v.font},spacing:ND(c.spacing)};Object.keys(b.colorSchemes).forEach($=>{const w=b.colorSchemes[$].palette,R=A=>{const j=A.split("-"),O=j[1],T=j[2];return f(A,w[O][T])};if(w.mode==="light"&&(oe(w.common,"background","#fff"),oe(w.common,"onBackground","#000")),w.mode==="dark"&&(oe(w.common,"background","#000"),oe(w.common,"onBackground","#fff")),jD(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){oe(w.Alert,"errorColor",lt(w.error.light,.6)),oe(w.Alert,"infoColor",lt(w.info.light,.6)),oe(w.Alert,"successColor",lt(w.success.light,.6)),oe(w.Alert,"warningColor",lt(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-main")),oe(w.Alert,"infoFilledBg",R("palette-info-main")),oe(w.Alert,"successFilledBg",R("palette-success-main")),oe(w.Alert,"warningFilledBg",R("palette-warning-main")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.main))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.main))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.main))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.main))),oe(w.Alert,"errorStandardBg",ct(w.error.light,.9)),oe(w.Alert,"infoStandardBg",ct(w.info.light,.9)),oe(w.Alert,"successStandardBg",ct(w.success.light,.9)),oe(w.Alert,"warningStandardBg",ct(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-100")),oe(w.Avatar,"defaultBg",R("palette-grey-400")),oe(w.Button,"inheritContainedBg",R("palette-grey-300")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-A100")),oe(w.Chip,"defaultBorder",R("palette-grey-400")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-700")),oe(w.Chip,"defaultIconColor",R("palette-grey-700")),oe(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(w.LinearProgress,"primaryBg",ct(w.primary.main,.62)),oe(w.LinearProgress,"secondaryBg",ct(w.secondary.main,.62)),oe(w.LinearProgress,"errorBg",ct(w.error.main,.62)),oe(w.LinearProgress,"infoBg",ct(w.info.main,.62)),oe(w.LinearProgress,"successBg",ct(w.success.main,.62)),oe(w.LinearProgress,"warningBg",ct(w.warning.main,.62)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),oe(w.Slider,"primaryTrack",ct(w.primary.main,.62)),oe(w.Slider,"secondaryTrack",ct(w.secondary.main,.62)),oe(w.Slider,"errorTrack",ct(w.error.main,.62)),oe(w.Slider,"infoTrack",ct(w.info.main,.62)),oe(w.Slider,"successTrack",ct(w.success.main,.62)),oe(w.Slider,"warningTrack",ct(w.warning.main,.62));const A=gc(w.background.default,.8);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",gc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-400")),oe(w.StepContent,"border",R("palette-grey-400")),oe(w.Switch,"defaultColor",R("palette-common-white")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-100")),oe(w.Switch,"primaryDisabledColor",ct(w.primary.main,.62)),oe(w.Switch,"secondaryDisabledColor",ct(w.secondary.main,.62)),oe(w.Switch,"errorDisabledColor",ct(w.error.main,.62)),oe(w.Switch,"infoDisabledColor",ct(w.info.main,.62)),oe(w.Switch,"successDisabledColor",ct(w.success.main,.62)),oe(w.Switch,"warningDisabledColor",ct(w.warning.main,.62)),oe(w.TableCell,"border",ct(mc(w.divider,1),.88)),oe(w.Tooltip,"bg",mc(w.grey[700],.92))}if(w.mode==="dark"){oe(w.Alert,"errorColor",ct(w.error.light,.6)),oe(w.Alert,"infoColor",ct(w.info.light,.6)),oe(w.Alert,"successColor",ct(w.success.light,.6)),oe(w.Alert,"warningColor",ct(w.warning.light,.6)),oe(w.Alert,"errorFilledBg",R("palette-error-dark")),oe(w.Alert,"infoFilledBg",R("palette-info-dark")),oe(w.Alert,"successFilledBg",R("palette-success-dark")),oe(w.Alert,"warningFilledBg",R("palette-warning-dark")),oe(w.Alert,"errorFilledColor",Rr(()=>w.getContrastText(w.error.dark))),oe(w.Alert,"infoFilledColor",Rr(()=>w.getContrastText(w.info.dark))),oe(w.Alert,"successFilledColor",Rr(()=>w.getContrastText(w.success.dark))),oe(w.Alert,"warningFilledColor",Rr(()=>w.getContrastText(w.warning.dark))),oe(w.Alert,"errorStandardBg",lt(w.error.light,.9)),oe(w.Alert,"infoStandardBg",lt(w.info.light,.9)),oe(w.Alert,"successStandardBg",lt(w.success.light,.9)),oe(w.Alert,"warningStandardBg",lt(w.warning.light,.9)),oe(w.Alert,"errorIconColor",R("palette-error-main")),oe(w.Alert,"infoIconColor",R("palette-info-main")),oe(w.Alert,"successIconColor",R("palette-success-main")),oe(w.Alert,"warningIconColor",R("palette-warning-main")),oe(w.AppBar,"defaultBg",R("palette-grey-900")),oe(w.AppBar,"darkBg",R("palette-background-paper")),oe(w.AppBar,"darkColor",R("palette-text-primary")),oe(w.Avatar,"defaultBg",R("palette-grey-600")),oe(w.Button,"inheritContainedBg",R("palette-grey-800")),oe(w.Button,"inheritContainedHoverBg",R("palette-grey-700")),oe(w.Chip,"defaultBorder",R("palette-grey-700")),oe(w.Chip,"defaultAvatarColor",R("palette-grey-300")),oe(w.Chip,"defaultIconColor",R("palette-grey-300")),oe(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(w.LinearProgress,"primaryBg",lt(w.primary.main,.5)),oe(w.LinearProgress,"secondaryBg",lt(w.secondary.main,.5)),oe(w.LinearProgress,"errorBg",lt(w.error.main,.5)),oe(w.LinearProgress,"infoBg",lt(w.info.main,.5)),oe(w.LinearProgress,"successBg",lt(w.success.main,.5)),oe(w.LinearProgress,"warningBg",lt(w.warning.main,.5)),oe(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),oe(w.Slider,"primaryTrack",lt(w.primary.main,.5)),oe(w.Slider,"secondaryTrack",lt(w.secondary.main,.5)),oe(w.Slider,"errorTrack",lt(w.error.main,.5)),oe(w.Slider,"infoTrack",lt(w.info.main,.5)),oe(w.Slider,"successTrack",lt(w.success.main,.5)),oe(w.Slider,"warningTrack",lt(w.warning.main,.5));const A=gc(w.background.default,.98);oe(w.SnackbarContent,"bg",A),oe(w.SnackbarContent,"color",Rr(()=>w.getContrastText(A))),oe(w.SpeedDialAction,"fabHoverBg",gc(w.background.paper,.15)),oe(w.StepConnector,"border",R("palette-grey-600")),oe(w.StepContent,"border",R("palette-grey-600")),oe(w.Switch,"defaultColor",R("palette-grey-300")),oe(w.Switch,"defaultDisabledColor",R("palette-grey-600")),oe(w.Switch,"primaryDisabledColor",lt(w.primary.main,.55)),oe(w.Switch,"secondaryDisabledColor",lt(w.secondary.main,.55)),oe(w.Switch,"errorDisabledColor",lt(w.error.main,.55)),oe(w.Switch,"infoDisabledColor",lt(w.info.main,.55)),oe(w.Switch,"successDisabledColor",lt(w.success.main,.55)),oe(w.Switch,"warningDisabledColor",lt(w.warning.main,.55)),oe(w.TableCell,"border",lt(mc(w.divider,1),.68)),oe(w.Tooltip,"bg",mc(w.grey[700],.92))}Gr(w.background,"default"),Gr(w.background,"paper"),Gr(w.common,"background"),Gr(w.common,"onBackground"),Gr(w,"divider"),Object.keys(w).forEach(A=>{const j=w[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&oe(w[A],"mainChannel",Ms(Rs(j.main))),j.light&&oe(w[A],"lightChannel",Ms(Rs(j.light))),j.dark&&oe(w[A],"darkChannel",Ms(Rs(j.dark))),j.contrastText&&oe(w[A],"contrastTextChannel",Ms(Rs(j.contrastText))),A==="text"&&(Gr(w[A],"primary"),Gr(w[A],"secondary")),A==="action"&&(j.active&&Gr(w[A],"active"),j.selected&&Gr(w[A],"selected")))})}),b=t.reduce(($,w)=>Qt($,w),b);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:LD(b)},{vars:k,generateThemeVars:M,generateStyleSheets:P}=jR(b,E);return b.vars=k,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([$,w])=>{b[$]=w}),b.generateThemeVars=M,b.generateStyleSheets=P,b.generateSpacing=function(){return Db(c.spacing,gd(this))},b.getColorSchemeSelector=NR(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...Ll,...c==null?void 0:c.unstable_sxConfig},b.unstable_sx=function(w){return Bo({sx:w,theme:this})},b.toRuntimeSource=Zb,b}function ov(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Em({...n===!0?{}:n.palette,mode:t})})}function Md(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Up(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Up({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},ov(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},ov(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),BD({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Rd=Md();function Cr(){const e=jl(Rd);return e[er]||e}function gt({props:e,name:t}){return Cd({props:e,name:t,defaultTheme:Rd,themeId:er})}function tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Un=e=>tw(e)&&e!=="classes",G=Ab({themeId:er,defaultTheme:Rd,rootShouldForwardProp:Un});function iv({theme:e,...t}){const n=er in e?e[er]:void 0;return x.jsx(Kb,{...t,themeId:n?er:void 0,theme:n||e})}const yc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:zD,useColorScheme:Hz,getInitColorSchemeScript:Yz}=OR({themeId:er,theme:()=>Md({cssVariables:!0}),colorSchemeStorageKey:yc.colorSchemeStorageKey,modeStorageKey:yc.modeStorageKey,defaultColorScheme:{light:yc.defaultLightColorScheme,dark:yc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:qb(e.palette,e.typography)};return t.unstable_sx=function(r){return Bo({sx:r,theme:this})},t}}),_D=zD;function VD({theme:e,...t}){return typeof e=="function"?x.jsx(iv,{theme:e,...t}):"colorSchemes"in(er in e?e[er]:e)?x.jsx(_D,{theme:e,...t}):x.jsx(iv,{theme:e,...t})}function WD(e){return x.jsx(YM,{...e,defaultTheme:Rd,themeId:er})}function Pm(e){return function(n){return x.jsx(WD,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function UD(){return wd}const Be=PR;function Ie(e){return ER(e)}function HD(e){return ge("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return ye(o,HD,r)},KD=G("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)}`]]}})(Be(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var C,h;return{props:{color:S},style:{color:(h=(C=(e.vars??e).palette)==null?void 0:C[S])==null?void 0:h.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),wu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...y}=r,g=p.isValidElement(o)&&o.type==="svg",S={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},C={};u||(C.viewBox=f);const h=YD(S);return x.jsxs(KD,{as:s,className:pe(h.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...y,...g&&o.props,ownerState:S,children:[g?o.props.children:o,d?x.jsx("title",{children:d}):null]})});wu&&(wu.muiName="SvgIcon");function Ht(e,t){function n(r,o){return x.jsx(wu,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=wu.muiName,p.memo(p.forwardRef(n))}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yp(e,t)}function Mm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yp(e,t)}function GD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function QD(e,t){e.classList?e.classList.add(t):GD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function av(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function XD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=av(e.className,t):e.setAttribute("class",av(e.className&&e.className.baseVal||"",t))}const sv={disabled:!1},Cu=_t.createContext(null);var nw=function(t){return t.scrollTop},Ds="unmounted",ei="exited",ti="entering",Hi="entered",Kp="exiting",cr=function(e){Mm(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=ei,i.appearStatus=ti):l=Hi:r.unmountOnExit||r.mountOnEnter?l=Ds:l=ei,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ds?{status:ei}: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 a=this.state.status;this.props.in?a!==ti&&a!==Hi&&(i=ti):(a===ti||a===Hi)&&(i=Kp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ti){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this);a&&nw(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ei&&this.setState({status:Ds})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Ps.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||sv.disabled){this.safeSetState({status:Hi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ti},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Hi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ps.findDOMNode(this);if(!i||sv.disabled){this.safeSetState({status:ei},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Kp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ei},function(){o.props.onExited(s)})})})},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,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ds)return null;var i=this.props,a=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 s=Ae(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _t.createElement(Cu.Provider,{value:null},typeof a=="function"?a(o,s):_t.cloneElement(_t.Children.only(a),s))},t}(_t.Component);cr.contextType=Cu;cr.propTypes={};function _i(){}cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};cr.UNMOUNTED=Ds;cr.EXITED=ei;cr.ENTERING=ti;cr.ENTERED=Hi;cr.EXITING=Kp;var qD=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return QD(t,r)})},If=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return XD(t,r)})},Rm=function(e){Mm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ta(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function oT(e){return ge("MuiPaper",e)}me("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 iT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,oT,o)},aT=G("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}`]]}})(Be(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),br=p.forwardRef(function(t,n){var y;const r=Ie({props:t,name:"MuiPaper"}),o=Cr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=iT(d);return x.jsx(aT,{as:a,ownerState:d,className:pe(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ze("#fff",Hp(s))}, ${ze("#fff",Hp(s))})`}},...u.style}})});function In(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...s}=t,{component:l,slots:c={[e]:void 0},slotProps:u={[e]:void 0},...d}=i,f=c[e]||r,y=Ed(u[e],o),{props:{component:g,...S},internalRef:C}=Wb({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:y}),h=Ye(C,y==null?void 0:y.ref,t.ref),m=e==="root"?g||l:g,v=Vb(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...S,...m&&{as:m},ref:h},o);return[f,v]}class ku{constructor(){Za(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ku}static use(){const t=zb(ku.create).current,[n,r]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=r,p.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=lT(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function sT(){return ku.use()}function lT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function cT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=p.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),p.useEffect(()=>{if(!s&&l!=null){const S=setTimeout(l,c);return()=>{clearTimeout(S)}}},[l,s,c]),x.jsx("span",{className:f,style:y,children:x.jsx("span",{className:g})})}const Gn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gp=550,uT=80,dT=$l` 0% { transform: scale(0); opacity: 0.1; @@ -123,7 +123,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann opacity: 0.3; transform: scale(1); animation-name: ${dT}; - animation-duration: ${Qp}ms; + animation-duration: ${Gp}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -143,7 +143,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann & .${Gn.childLeaving} { opacity: 0; animation-name: ${fT}; - animation-duration: ${Qp}ms; + animation-duration: ${Gp}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -158,8 +158,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann animation-iteration-count: infinite; animation-delay: 200ms; } -`,gT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=p.useState([]),u=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),y=wm(),g=p.useRef(null),S=p.useRef(null),C=p.useCallback(b=>{const{pulsate:E,rippleX:k,rippleY:M,rippleSize:P,cb:$}=b;c(w=>[...w,x.jsx(mT,{classes:{ripple:pe(i.ripple,Gn.ripple),rippleVisible:pe(i.rippleVisible,Gn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Gn.ripplePulsate),child:pe(i.child,Gn.child),childLeaving:pe(i.childLeaving,Gn.childLeaving),childPulsate:pe(i.childPulsate,Gn.childPulsate)},timeout:Qp,pulsate:E,rippleX:k,rippleY:M,rippleSize:P},u.current)]),u.current+=1,d.current=$},[i]),h=p.useCallback((b={},E={},k=()=>{})=>{const{pulsate:M=!1,center:P=o||E.pulsate,fakeElement:$=!1}=E;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const w=$?null:S.current,R=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,j,O;if(P||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)A=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:T,clientY:I}=b.touches&&b.touches.length>0?b.touches[0]:b;A=Math.round(T-R.left),j=Math.round(I-R.top)}if(P)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const T=Math.max(Math.abs((w?w.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((w?w.clientHeight:0)-j),j)*2+2;O=Math.sqrt(T**2+I**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},y.start(uT,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},[o,C,y]),m=p.useCallback(()=>{h({},{pulsate:!0})},[h]),v=p.useCallback((b,E)=>{if(y.clear(),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{v(b,E)});return}g.current=null,c(k=>k.length>0?k.slice(1):k),d.current=E},[y]);return p.useImperativeHandle(n,()=>({pulsate:m,start:h,stop:v}),[m,h,v]),x.jsx(hT,{className:pe(Gn.root,i.root,a),ref:S,...s,children:x.jsx(Nl,{component:null,exit:!0,children:l})})});function yT(e){return ge("MuiButtonBase",e)}const vT=me("MuiButtonBase",["root","disabled","focusVisible"]),xT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ye({root:["root",t&&"disabled",n&&"focusVisible"]},yT,o);return n&&r&&(a.root+=` ${r}`),a},ST=G("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"},[`&.${vT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ia=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:S,onClick:C,onContextMenu:h,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:E,onKeyUp:k,onMouseDown:M,onMouseLeave:P,onMouseUp:$,onTouchEnd:w,onTouchMove:R,onTouchStart:A,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:T,type:I,...N}=r,D=p.useRef(null),L=sT(),z=Ye(L.ref,T),[V,H]=p.useState(!1);c&&V&&H(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),D.current.focus()}}),[]);const se=L.shouldMount&&!u&&!c;p.useEffect(()=>{V&&f&&!u&&L.pulsate()},[u,f,V,L]);const X=Qr(L,"start",M,d),Y=Qr(L,"stop",h,d),le=Qr(L,"stop",m,d),ae=Qr(L,"stop",$,d),te=Qr(L,"stop",xe=>{V&&xe.preventDefault(),P&&P(xe)},d),Z=Qr(L,"start",A,d),re=Qr(L,"stop",w,d),ie=Qr(L,"stop",R,d),W=Qr(L,"stop",xe=>{Su(xe.target)||H(!1),S&&S(xe)},!1),F=Se(xe=>{D.current||(D.current=xe.currentTarget),Su(xe.target)&&(H(!0),b&&b(xe)),v&&v(xe)}),K=()=>{const xe=D.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Q=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&L.stop(xe,()=>{L.start(xe)}),xe.target===xe.currentTarget&&K()&&xe.key===" "&&xe.preventDefault(),E&&E(xe),xe.target===xe.currentTarget&&K()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),ne=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&L.stop(xe,()=>{L.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&K()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=g);const ee={};ue==="button"?(ee.type=I===void 0?"button":I,ee.disabled=c):(!N.href&&!N.to&&(ee.role="button"),c&&(ee["aria-disabled"]=c));const fe=Ye(n,D),ve={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=xT(ve);return x.jsxs(ST,{as:ue,className:pe(Le.root,s),ownerState:ve,onBlur:W,onClick:C,onContextMenu:Y,onFocus:F,onKeyDown:Q,onKeyUp:ne,onMouseDown:X,onMouseLeave:te,onMouseUp:ae,onDragLeave:le,onTouchEnd:re,onTouchMove:ie,onTouchStart:Z,ref:fe,tabIndex:c?-1:j,type:I,...ee,...N,children:[a,se?x.jsx(gT,{ref:z,center:i,...O}):null]})});function Qr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function bT(e){return typeof e.main=="string"}function wT(e,t=[]){if(!bT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Kt(e=[]){return([,t])=>t&&wT(t,e)}function CT(e){return ge("MuiAlert",e)}const lv=me("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function kT(e){return ge("MuiIconButton",e)}const ET=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),PT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return ye(a,kT,t)},MT=G(Ia,{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)}`]]}})(Be(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Be(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ET.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wr=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},y=PT(f);return x.jsx(MT,{className:pe(y.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),RT=Ht(x.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"),DT=Ht(x.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),TT=Ht(x.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"),IT=Ht(x.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"),OT=Ht(x.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"),$T=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,CT,o)},AT=G(br,{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)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?Ra:Da,n=e.palette.mode==="light"?Da:Ra;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),LT=G("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jT=G("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cv=G("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),uv={success:x.jsx(RT,{fontSize:"inherit"}),warning:x.jsx(DT,{fontSize:"inherit"}),error:x.jsx(TT,{fontSize:"inherit"}),info:x.jsx(IT,{fontSize:"inherit"})},Fl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=uv,onClose:y,role:g="alert",severity:S="success",slotProps:C={},slots:h={},variant:m="standard",...v}=r,b={...r,color:l,severity:S,variant:m,colorSeverity:l||S},E=$T(b),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...h},slotProps:{...u,...C}},[M,P]=In("closeButton",{elementType:Wr,externalForwardedProps:k,ownerState:b}),[$,w]=In("closeIcon",{elementType:OT,externalForwardedProps:k,ownerState:b});return x.jsxs(AT,{role:g,elevation:0,ownerState:b,className:pe(E.root,a),ref:n,...v,children:[d!==!1?x.jsx(LT,{ownerState:b,className:E.icon,children:d||f[S]||uv[S]}):null,x.jsx(jT,{ownerState:b,className:E.message,children:i}),o!=null?x.jsx(cv,{ownerState:b,className:E.action,children:o}):null,o==null&&y?x.jsx(cv,{ownerState:b,className:E.action,children:x.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...P,children:x.jsx($,{fontSize:"small",...w})})}):null]})});function NT(e){return ge("MuiTypography",e)}me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BT=UD(),zT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(s,NT,a)},_T=G("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]}})(Be(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ce(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),dv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fe=p.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!FT[r],a=BT({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:y="body1",variantMapping:g=dv,...S}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:y,variantMapping:g},h=c||(f?"p":g[y]||dv[y])||"span",m=zT(C);return x.jsx(_T,{as:h,ref:n,className:pe(m.root,l),...S,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...S.style}})});function VT(e){return ge("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const WT=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return ye(o,VT,r)},fv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UT=G(br,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?fv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?fv(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),HT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=WT(c);return x.jsx(UT,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var bn="top",or="bottom",ir="right",wn="left",Om="auto",Bl=[bn,or,ir,wn],Oa="start",yl="end",YT="clippingParents",rw="viewport",cs="popper",KT="reference",pv=Bl.reduce(function(e,t){return e.concat([t+"-"+Oa,t+"-"+yl])},[]),ow=[].concat(Bl,[Om]).reduce(function(e,t){return e.concat([t,t+"-"+Oa,t+"-"+yl])},[]),GT="beforeRead",QT="read",XT="afterRead",qT="beforeMain",ZT="main",JT="afterMain",e2="beforeWrite",t2="write",n2="afterWrite",r2=[GT,QT,XT,qT,ZT,JT,e2,t2,n2];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $m(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function o2(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];!tr(i)||!Ur(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function i2(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!tr(o)||!Ur(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const a2={name:"applyStyles",enabled:!0,phase:"write",fn:o2,effect:i2,requires:["computeStyles"]};function Vr(e){return e.split("-")[0]}var ui=Math.max,Pu=Math.min,$a=Math.round;function Xp(){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 iw(){return!/^((?!chrome|android).)*safari/i.test(Xp())}function Aa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&tr(e)&&(o=e.offsetWidth>0&&$a(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$a(r.height)/e.offsetHeight||1);var a=xi(e)?Fn(e):window,s=a.visualViewport,l=!iw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Am(e){var t=Aa(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 aw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Fn(e).getComputedStyle(e)}function s2(e){return["table","td","th"].indexOf(Ur(e))>=0}function Uo(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Td(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||($m(e)?e.host:null)||Uo(e)}function hv(e){return!tr(e)||uo(e).position==="fixed"?null:e.offsetParent}function l2(e){var t=/firefox/i.test(Xp()),n=/Trident/i.test(Xp());if(n&&tr(e)){var r=uo(e);if(r.position==="fixed")return null}var o=Td(e);for($m(o)&&(o=o.host);tr(o)&&["html","body"].indexOf(Ur(o))<0;){var i=uo(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 zl(e){for(var t=Fn(e),n=hv(e);n&&s2(n)&&uo(n).position==="static";)n=hv(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&uo(n).position==="static")?t:n||l2(e)||t}function Lm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vs(e,t,n){return ui(e,Pu(t,n))}function c2(e,t,n){var r=Vs(e,t,n);return r>n?n:r}function sw(){return{top:0,right:0,bottom:0,left:0}}function lw(e){return Object.assign({},sw(),e)}function cw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lw(typeof t!="number"?t:cw(t,Bl))};function d2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vr(n.placement),l=Lm(s),c=[wn,ir].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=u2(o.padding,n),f=Am(i),y=l==="y"?bn:wn,g=l==="y"?or:ir,S=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],h=zl(i),m=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,v=S/2-C/2,b=d[y],E=m-f[u]-d[g],k=m/2-f[u]/2+v,M=Vs(b,k,E),P=l;n.modifiersData[r]=(t={},t[P]=M,t.centerOffset=M-k,t)}}function f2(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)||aw(t.elements.popper,o)&&(t.elements.arrow=o))}const p2={name:"arrow",enabled:!0,phase:"main",fn:d2,effect:f2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function La(e){return e.split("-")[1]}var h2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:$a(n*o)/o||0,y:$a(r*o)/o||0}}function mv(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,y=f===void 0?0:f,g=a.y,S=g===void 0?0:g,C=typeof u=="function"?u({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=wn,b=bn,E=window;if(c){var k=zl(n),M="clientHeight",P="clientWidth";if(k===Fn(n)&&(k=Uo(n),uo(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",P="scrollWidth")),k=k,o===bn||(o===wn||o===ir)&&i===yl){b=or;var $=d&&k===E&&E.visualViewport?E.visualViewport.height:k[M];S-=$-r.height,S*=l?1:-1}if(o===wn||(o===bn||o===or)&&i===yl){v=ir;var w=d&&k===E&&E.visualViewport?E.visualViewport.width:k[P];y-=w-r.width,y*=l?1:-1}}var R=Object.assign({position:s},c&&h2),A=u===!0?m2({x:y,y:S},Fn(n)):{x:y,y:S};if(y=A.x,S=A.y,l){var j;return Object.assign({},R,(j={},j[b]=m?"0":"",j[v]=h?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",j))}return Object.assign({},R,(t={},t[b]=m?S+"px":"",t[v]=h?y+"px":"",t.transform="",t))}function g2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Vr(t.placement),variation:La(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,mv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const y2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g2,data:{}};var xc={passive:!0};function v2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,xc)}),s&&l.addEventListener("resize",n.update,xc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,xc)}),s&&l.removeEventListener("resize",n.update,xc)}}const x2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v2,data:{}};var S2={left:"right",right:"left",bottom:"top",top:"bottom"};function Hc(e){return e.replace(/left|right|bottom|top/g,function(t){return S2[t]})}var b2={start:"end",end:"start"};function gv(e){return e.replace(/start|end/g,function(t){return b2[t]})}function jm(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nm(e){return Aa(Uo(e)).left+jm(e).scrollLeft}function w2(e,t){var n=Fn(e),r=Uo(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=iw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Nm(e),y:l}}function C2(e){var t,n=Uo(e),r=jm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ui(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ui(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Nm(e),l=-r.scrollTop;return uo(o||n).direction==="rtl"&&(s+=ui(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Fm(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uw(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:tr(e)&&Fm(e)?e:uw(Td(e))}function Ws(e,t){var n;t===void 0&&(t=[]);var r=uw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Fn(r),a=o?[i].concat(i.visualViewport||[],Fm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ws(Td(a)))}function qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k2(e,t){var n=Aa(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 yv(e,t,n){return t===rw?qp(w2(e,n)):xi(t)?k2(t,n):qp(C2(Uo(e)))}function E2(e){var t=Ws(Td(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0,r=n&&tr(e)?zl(e):e;return xi(r)?t.filter(function(o){return xi(o)&&aw(o,r)&&Ur(o)!=="body"}):[]}function P2(e,t,n,r){var o=t==="clippingParents"?E2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=yv(e,c,r);return l.top=ui(u.top,l.top),l.right=Pu(u.right,l.right),l.bottom=Pu(u.bottom,l.bottom),l.left=ui(u.left,l.left),l},yv(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Vr(r):null,i=r?La(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case bn:l={x:a,y:t.y-n.height};break;case or:l={x:a,y:t.y+t.height};break;case ir:l={x:t.x+t.width,y:s};break;case wn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Lm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Oa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function vl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YT:s,c=n.rootBoundary,u=c===void 0?rw:c,d=n.elementContext,f=d===void 0?cs:d,y=n.altBoundary,g=y===void 0?!1:y,S=n.padding,C=S===void 0?0:S,h=lw(typeof C!="number"?C:cw(C,Bl)),m=f===cs?KT:cs,v=e.rects.popper,b=e.elements[g?m:f],E=P2(xi(b)?b:b.contextElement||Uo(e.elements.popper),l,u,a),k=Aa(e.elements.reference),M=dw({reference:k,element:v,strategy:"absolute",placement:o}),P=qp(Object.assign({},v,M)),$=f===cs?P:k,w={top:E.top-$.top+h.top,bottom:$.bottom-E.bottom+h.bottom,left:E.left-$.left+h.left,right:$.right-E.right+h.right},R=e.modifiersData.offset;if(f===cs&&R){var A=R[o];Object.keys(w).forEach(function(j){var O=[ir,or].indexOf(j)>=0?1:-1,T=[bn,or].indexOf(j)>=0?"y":"x";w[j]+=A[T]*O})}return w}function M2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ow:l,u=La(r),d=u?s?pv:pv.filter(function(g){return La(g)===u}):Bl,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var y=f.reduce(function(g,S){return g[S]=vl(e,{placement:S,boundary:o,rootBoundary:i,padding:a})[Vr(S)],g},{});return Object.keys(y).sort(function(g,S){return y[g]-y[S]})}function R2(e){if(Vr(e)===Om)return[];var t=Hc(e);return[gv(e),t,gv(t)]}function D2(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,h=Vr(C),m=h===C,v=l||(m||!g?[Hc(C)]:R2(C)),b=[C].concat(v).reduce(function(X,Y){return X.concat(Vr(Y)===Om?M2(t,{placement:Y,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:S}):Y)},[]),E=t.rects.reference,k=t.rects.popper,M=new Map,P=!0,$=b[0],w=0;w=0,T=O?"width":"height",I=vl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?ir:wn:j?or:bn;E[T]>k[T]&&(N=Hc(N));var D=Hc(N),L=[];if(i&&L.push(I[A]<=0),s&&L.push(I[N]<=0,I[D]<=0),L.every(function(X){return X})){$=R,P=!1;break}M.set(R,L)}if(P)for(var z=g?3:1,V=function(Y){var le=b.find(function(ae){var te=M.get(ae);if(te)return te.slice(0,Y).every(function(Z){return Z})});if(le)return $=le,"break"},H=z;H>0;H--){var se=V(H);if(se==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const T2={name:"flip",enabled:!0,phase:"main",fn:D2,requiresIfExists:["offset"],data:{_skip:!1}};function vv(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 xv(e){return[bn,ir,or,wn].some(function(t){return e[t]>=0})}function I2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vl(t,{elementContext:"reference"}),s=vl(t,{altBoundary:!0}),l=vv(a,r),c=vv(s,o,i),u=xv(l),d=xv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const O2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I2};function $2(e,t,n){var r=Vr(e),o=[wn,bn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[wn,ir].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function A2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ow.reduce(function(u,d){return u[d]=$2(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const L2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:A2};function j2(e){var t=e.state,n=e.name;t.modifiersData[n]=dw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const N2={name:"popperOffsets",enabled:!0,phase:"read",fn:j2,data:{}};function F2(e){return e==="x"?"y":"x"}function B2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,y=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,C=vl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),h=Vr(t.placement),m=La(t.placement),v=!m,b=Lm(h),E=F2(b),k=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,$=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,w=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(k){if(i){var j,O=b==="y"?bn:wn,T=b==="y"?or:ir,I=b==="y"?"height":"width",N=k[b],D=N+C[O],L=N-C[T],z=y?-P[I]/2:0,V=m===Oa?M[I]:P[I],H=m===Oa?-P[I]:-M[I],se=t.elements.arrow,X=y&&se?Am(se):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sw(),le=Y[O],ae=Y[T],te=Vs(0,M[I],X[I]),Z=v?M[I]/2-z-te-le-w.mainAxis:V-te-le-w.mainAxis,re=v?-M[I]/2+z+te+ae+w.mainAxis:H+te+ae+w.mainAxis,ie=t.elements.arrow&&zl(t.elements.arrow),W=ie?b==="y"?ie.clientTop||0:ie.clientLeft||0:0,F=(j=R==null?void 0:R[b])!=null?j:0,K=N+Z-F-W,Q=N+re-F,ne=Vs(y?Pu(D,K):D,N,y?ui(L,Q):L);k[b]=ne,A[b]=ne-N}if(s){var ue,ee=b==="x"?bn:wn,fe=b==="x"?or:ir,ve=k[E],Le=E==="y"?"height":"width",xe=ve+C[ee],tt=ve-C[fe],Pe=[bn,wn].indexOf(h)!==-1,_e=(ue=R==null?void 0:R[E])!=null?ue:0,ut=Pe?xe:ve-M[Le]-P[Le]-_e+w.altAxis,je=Pe?ve+M[Le]+P[Le]-_e-w.altAxis:tt,Oe=y&&Pe?c2(ut,ve,je):Vs(y?ut:xe,ve,y?je:tt);k[E]=Oe,A[E]=Oe-ve}t.modifiersData[r]=A}}const z2={name:"preventOverflow",enabled:!0,phase:"main",fn:B2,requiresIfExists:["offset"]};function _2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V2(e){return e===Fn(e)||!tr(e)?jm(e):_2(e)}function W2(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function U2(e,t,n){n===void 0&&(n=!1);var r=tr(t),o=tr(t)&&W2(t),i=Uo(t),a=Aa(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||Fm(i))&&(s=V2(t)),tr(t)?(l=Aa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Nm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function H2(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 a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Y2(e){var t=H2(e);return r2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function K2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function G2(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 Sv={placement:"bottom",modifiers:[],strategy:"absolute"};function bv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Z2(o)||document.body)},[o,i]),Ut(()=>{if(a&&!i)return Up(n,a),()=>{Up(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return r}return a&&ed.createPortal(r,a)});function J2(e){return ge("MuiPopper",e)}me("MuiPopper",["root"]);function eI(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 Zp(e){return typeof e=="function"?e():e}function tI(e){return e.nodeType!==void 0}const nI=e=>{const{classes:t}=e;return ye({root:["root"]},J2,t)},rI={},oI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:y={},TransitionProps:g,ownerState:S,...C}=t,h=p.useRef(null),m=Ye(h,n),v=p.useRef(null),b=Ye(v,d),E=p.useRef(b);Ut(()=>{E.current=b},[b]),p.useImperativeHandle(d,()=>v.current,[]);const k=eI(c,i),[M,P]=p.useState(k),[$,w]=p.useState(Zp(r));p.useEffect(()=>{v.current&&v.current.forceUpdate()}),p.useEffect(()=>{r&&w(Zp(r))},[r]),Ut(()=>{if(!$||!l)return;const T=D=>{P(D.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{T(D)}}];s!=null&&(I=I.concat(s)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const N=q2($,h.current,{placement:k,...u,modifiers:I});return E.current(N),()=>{N.destroy(),E.current(null)}},[$,a,s,l,u,k]);const R={placement:M};g!==null&&(R.TransitionProps=g);const A=nI(t),j=y.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return x.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),iI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=rI,popperRef:y,style:g,transition:S=!1,slotProps:C={},slots:h={},...m}=t,[v,b]=p.useState(!0),E=()=>{b(!1)},k=()=>{b(!0)};if(!l&&!u&&(!S||v))return null;let M;if(i)M=i;else if(r){const w=Zp(r);M=w&&tI(w)?Wt(w).body:Wt(null).body}const P=!u&&l&&(!S||v)?"none":void 0,$=S?{in:u,onEnter:E,onExited:k}:void 0;return x.jsx(fw,{disablePortal:s,container:M,children:x.jsx(oI,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:S?!v:u,placement:d,popperOptions:f,popperRef:y,slotProps:C,slots:h,...m,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:$,children:o})})}),aI=G(iI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sI=p.forwardRef(function(t,n){const r=lr(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,slots:m,slotProps:v,...b}=o,E=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,...b};return x.jsx(aI,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:v??l,...k,ref:n})}),lI=Ht(x.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 cI(e){return ge("MuiChip",e)}const Ve=me("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),uI=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,s&&"clickable",s&&`clickableColor${ce(o)}`,a&&"deletable",a&&`deletableColor${ce(o)}`,`${l}${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(l)}Color${ce(o)}`]};return ye(c,cI,t)},dI=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${ce(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(r)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ce(r)}`],t[l],t[`${l}${ce(r)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{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:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ze(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)`:ze(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ze(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{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}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),fI=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function wv(e){return e.key==="Backspace"||e.key==="Delete"}const pI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:y,onDelete:g,onKeyDown:S,onKeyUp:C,size:h="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:b=!1,...E}=r,k=p.useRef(null),M=Ye(k,n),P=L=>{L.stopPropagation(),g&&g(L)},$=L=>{L.currentTarget===L.target&&wv(L)&&L.preventDefault(),S&&S(L)},w=L=>{L.currentTarget===L.target&&g&&wv(L)&&g(L),C&&C(L)},R=a!==!1&&y?!0:a,A=R||g?Ia:l||"div",j={...r,component:A,disabled:u,size:h,color:s,iconColor:p.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:R,variant:m},O=uI(j),T=A===Ia?{component:l||"div",focusVisibleClassName:O.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=c&&p.isValidElement(c)?p.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:P}):x.jsx(lI,{className:pe(O.deleteIcon),onClick:P}));let N=null;o&&p.isValidElement(o)&&(N=p.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let D=null;return d&&p.isValidElement(d)&&(D=p.cloneElement(d,{className:pe(O.icon,d.props.className)})),x.jsxs(dI,{as:A,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:y,onKeyDown:$,onKeyUp:w,ref:M,tabIndex:b&&u?-1:v,ownerState:j,...T,...E,children:[N||D,x.jsx(fI,{className:pe(O.label),ownerState:j,children:f}),I]})});function Sc(e){return parseInt(e,10)||0}const hI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const gI=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=p.useRef(s!=null),u=p.useRef(null),d=Ye(n,u),f=p.useRef(null),y=p.useRef(null),g=p.useCallback(()=>{const h=u.current,v=Sr(h).getComputedStyle(h);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=y.current;b.style.width=v.width,b.value=h.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const E=v.boxSizing,k=Sc(v.paddingBottom)+Sc(v.paddingTop),M=Sc(v.borderBottomWidth)+Sc(v.borderTopWidth),P=b.scrollHeight;b.value="x";const $=b.scrollHeight;let w=P;i&&(w=Math.max(Number(i)*$,w)),o&&(w=Math.min(Number(o)*$,w)),w=Math.max(w,$);const R=w+(E==="border-box"?k+M:0),A=Math.abs(w-P)<=1;return{outerHeightStyle:R,overflowing:A}},[o,i,t.placeholder]),S=p.useCallback(()=>{const h=g();if(mI(h))return;const m=h.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=h.overflowing?"hidden":""},[g]);Ut(()=>{const h=()=>{S()};let m;const v=Sm(h),b=u.current,E=Sr(b);E.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(h),k.observe(b)),()=>{v.clear(),cancelAnimationFrame(m),E.removeEventListener("resize",v),k&&k.disconnect()}},[g,S]),Ut(()=>{S()});const C=h=>{c||S(),r&&r(h)};return x.jsxs(p.Fragment,{children:[x.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...hI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function xl(e){return typeof e=="string"}function Ya({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Id=p.createContext(void 0);function kr(){return p.useContext(Id)}function Cv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mu(e,t=!1){return e&&(Cv(e.value)&&e.value!==""||t&&Cv(e.defaultValue)&&e.defaultValue!=="")}function yI(e){return e.startAdornment}function vI(e){return ge("MuiInputBase",e)}const ja=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var kv;const Od=(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]},$d=(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]},xI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:y,type:g}=e,S={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ce(f)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ye(S,vI,t)},Ad=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Od})(Be(({theme:e})=>({...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",[`&.${ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ld=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ja.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ja.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ev=Mm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Bm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:y,endAdornment:g,error:S,fullWidth:C=!1,id:h,inputComponent:m="input",inputProps:v={},inputRef:b,margin:E,maxRows:k,minRows:M,multiline:P=!1,name:$,onBlur:w,onChange:R,onClick:A,onFocus:j,onKeyDown:O,onKeyUp:T,placeholder:I,readOnly:N,renderSuffix:D,rows:L,size:z,slotProps:V={},slots:H={},startAdornment:se,type:X="text",value:Y,...le}=r,ae=v.value!=null?v.value:Y,{current:te}=p.useRef(ae!=null),Z=p.useRef(),re=p.useCallback(Ne=>{},[]),ie=Ye(Z,b,v.ref,re),[W,F]=p.useState(!1),K=kr(),Q=Ya({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=K?K.focused:W,p.useEffect(()=>{!K&&f&&W&&(F(!1),w&&w())},[K,f,W,w]);const ne=K&&K.onFilled,ue=K&&K.onEmpty,ee=p.useCallback(Ne=>{Mu(Ne)?ne&&ne():ue&&ue()},[ne,ue]);Ut(()=>{te&&ee({value:ae})},[ae,ee,te]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),K&&K.onFocus?K.onFocus(Ne):F(!0)},ve=Ne=>{w&&w(Ne),v.onBlur&&v.onBlur(Ne),K&&K.onBlur?K.onBlur(Ne):F(!1)},Le=(Ne,...st)=>{if(!te){const Hn=Ne.target||Z.current;if(Hn==null)throw new Error(lo(1));ee({value:Hn.value})}v.onChange&&v.onChange(Ne,...st),R&&R(Ne,...st)};p.useEffect(()=>{ee(Z.current)},[]);const xe=Ne=>{Z.current&&Ne.currentTarget===Ne.target&&Z.current.focus(),A&&A(Ne)};let tt=m,Pe=v;P&&tt==="input"&&(L?Pe={type:void 0,minRows:L,maxRows:L,...Pe}:Pe={type:void 0,maxRows:k,minRows:M,...Pe},tt=gI);const _e=Ne=>{ee(Ne.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!se)},[K,se]);const ut={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:g,error:Q.error,focused:Q.focused,formControl:K,fullWidth:C,hiddenLabel:Q.hiddenLabel,multiline:P,size:Q.size,startAdornment:se,type:X},je=xI(ut),Oe=H.root||c.Root||Ad,pt=V.root||u.root||{},At=H.input||c.Input||Ld;return Pe={...Pe,...V.input??u.input},x.jsxs(p.Fragment,{children:[!y&&typeof Ev=="function"&&(kv||(kv=x.jsx(Ev,{}))),x.jsxs(Oe,{...pt,ref:n,onClick:xe,...le,...!xl(Oe)&&{ownerState:{...ut,...pt.ownerState}},className:pe(je.root,pt.className,s,N&&"MuiInputBase-readOnly"),children:[se,x.jsx(Id.Provider,{value:null,children:x.jsx(At,{"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:h,onAnimationStart:_e,name:$,placeholder:I,readOnly:N,required:Q.required,rows:L,value:ae,onKeyDown:O,onKeyUp:T,type:X,...Pe,...!xl(At)&&{as:tt,ownerState:{...ut,...Pe.ownerState}},ref:ie,className:pe(je.input,Pe.className,N&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Le,onFocus:fe})}),g,D?D({...Q,startAdornment:se}):null]})]})});function SI(e){return ge("MuiInput",e)}const us={...ja,...me("MuiInput",["root","underline","input"])};function bI(e){return ge("MuiOutlinedInput",e)}const Dr={...ja,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function wI(e){return ge("MuiFilledInput",e)}const Ko={...ja,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},CI=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kI={entering:{opacity:1},entered:{opacity:1}},Ka=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:y,onExited:g,onExiting:S,style:C,timeout:h=o,TransitionComponent:m=cr,...v}=t,b=p.useRef(null),E=Ye(b,Pi(s),n),k=O=>T=>{if(O){const I=b.current;T===void 0?O(I):O(I,T)}},M=k(f),P=k((O,T)=>{Im(O);const I=Ta({style:C,timeout:h,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),u&&u(O,T)}),$=k(d),w=k(S),R=k(O=>{const T=Ta({style:C,timeout:h,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",T),O.style.transition=r.transitions.create("opacity",T),y&&y(O)}),A=k(g),j=O=>{i&&i(b.current,O)};return x.jsx(m,{appear:a,in:c,nodeRef:b,onEnter:P,onEntered:$,onEntering:M,onExit:R,onExited:A,onExiting:w,addEndListener:j,timeout:h,...v,children:(O,T)=>p.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...kI[O],...C,...s.props.style},ref:E,...T})})});function EI(e){return ge("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const PI=e=>{const{ownerState:t,...n}=e;return n},MI=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},EI,t)},RI=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:y,transitionDuration:g,...S}=r,C={...r,component:a,invisible:s},h=MI(C),m={transition:y,root:c.Root,...f},v={...u,...d},b={slots:m,slotProps:v},[E,k]=In("root",{elementType:RI,externalForwardedProps:b,className:pe(h.root,i),ownerState:C}),[M,P]=In("transition",{elementType:Ka,externalForwardedProps:b,ownerState:C}),$=PI(P);return x.jsx(M,{in:l,timeout:g,...S,...$,children:x.jsx(E,{"aria-hidden":!0,...k,classes:h,ref:n,children:o})})}),DI=me("MuiBox",["root"]),TI=Rd(),Ot=QM({themeId:er,defaultTheme:TI,defaultClassName:DI.root,generateClassName:Tb.generate});function II(e){return ge("MuiButton",e)}const Vi=me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),OI=p.createContext({}),$I=p.createContext(void 0),AI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},l=ye(s,II,a);return{...a,...l}},hw=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],LI=G(Ia,{shouldForwardProp:e=>Un(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]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:ze(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),jI=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...hw]}),NI=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...hw]}),it=p.forwardRef(function(t,n){const r=p.useContext(OI),o=p.useContext($I),i=gl(r,t),a=Ie({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:S,fullWidth:C=!1,size:h="medium",startIcon:m,type:v,variant:b="text",...E}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:y,fullWidth:C,size:h,type:v,variant:b},M=AI(k),P=m&&x.jsx(jI,{className:M.startIcon,ownerState:k,children:m}),$=g&&x.jsx(NI,{className:M.endIcon,ownerState:k,children:g}),w=o||"";return x.jsxs(LI,{ownerState:k,className:pe(r.className,M.root,u,w),component:c,disabled:d,focusRipple:!y,focusVisibleClassName:pe(M.focusVisible,S),ref:n,type:v,...E,classes:M,children:[P,s,$]})});function FI(e){return ge("MuiCard",e)}me("MuiCard",["root"]);const BI=e=>{const{classes:t}=e;return ye({root:["root"]},FI,t)},zI=G(br,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Sl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=BI(s);return x.jsx(zI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function _I(e){return ge("MuiCardContent",e)}me("MuiCardContent",["root"]);const VI=e=>{const{classes:t}=e;return ye({root:["root"]},_I,t)},WI=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),mw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=VI(s);return x.jsx(WI,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function UI(e){return ge("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const HI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ye({root:["root",n&&"media",r&&"img"]},UI,t)},YI=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),KI=["video","audio","picture","iframe","img"],GI=["picture","img"],QI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=KI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,y={...r,component:a,isMediaComponent:d,isImageComponent:GI.includes(a)},g=HI(y);return x.jsx(YI,{className:pe(g.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:y,src:d?s||l:void 0,...u,children:o})});function XI(e){return ge("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vo=44,Jp=$l` +`,gT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=p.useState([]),u=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),y=bm(),g=p.useRef(null),S=p.useRef(null),C=p.useCallback(b=>{const{pulsate:E,rippleX:k,rippleY:M,rippleSize:P,cb:$}=b;c(w=>[...w,x.jsx(mT,{classes:{ripple:pe(i.ripple,Gn.ripple),rippleVisible:pe(i.rippleVisible,Gn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Gn.ripplePulsate),child:pe(i.child,Gn.child),childLeaving:pe(i.childLeaving,Gn.childLeaving),childPulsate:pe(i.childPulsate,Gn.childPulsate)},timeout:Gp,pulsate:E,rippleX:k,rippleY:M,rippleSize:P},u.current)]),u.current+=1,d.current=$},[i]),h=p.useCallback((b={},E={},k=()=>{})=>{const{pulsate:M=!1,center:P=o||E.pulsate,fakeElement:$=!1}=E;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const w=$?null:S.current,R=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,j,O;if(P||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)A=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:T,clientY:I}=b.touches&&b.touches.length>0?b.touches[0]:b;A=Math.round(T-R.left),j=Math.round(I-R.top)}if(P)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const T=Math.max(Math.abs((w?w.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((w?w.clientHeight:0)-j),j)*2+2;O=Math.sqrt(T**2+I**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},y.start(uT,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},[o,C,y]),m=p.useCallback(()=>{h({},{pulsate:!0})},[h]),v=p.useCallback((b,E)=>{if(y.clear(),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{v(b,E)});return}g.current=null,c(k=>k.length>0?k.slice(1):k),d.current=E},[y]);return p.useImperativeHandle(n,()=>({pulsate:m,start:h,stop:v}),[m,h,v]),x.jsx(hT,{className:pe(Gn.root,i.root,a),ref:S,...s,children:x.jsx(Nl,{component:null,exit:!0,children:l})})});function yT(e){return ge("MuiButtonBase",e)}const vT=me("MuiButtonBase",["root","disabled","focusVisible"]),xT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ye({root:["root",t&&"disabled",n&&"focusVisible"]},yT,o);return n&&r&&(a.root+=` ${r}`),a},ST=G("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"},[`&.${vT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ia=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:S,onClick:C,onContextMenu:h,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:E,onKeyUp:k,onMouseDown:M,onMouseLeave:P,onMouseUp:$,onTouchEnd:w,onTouchMove:R,onTouchStart:A,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:T,type:I,...N}=r,D=p.useRef(null),L=sT(),z=Ye(L.ref,T),[V,H]=p.useState(!1);c&&V&&H(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),D.current.focus()}}),[]);const se=L.shouldMount&&!u&&!c;p.useEffect(()=>{V&&f&&!u&&L.pulsate()},[u,f,V,L]);const X=Qr(L,"start",M,d),Y=Qr(L,"stop",h,d),le=Qr(L,"stop",m,d),ae=Qr(L,"stop",$,d),te=Qr(L,"stop",xe=>{V&&xe.preventDefault(),P&&P(xe)},d),Z=Qr(L,"start",A,d),re=Qr(L,"stop",w,d),ie=Qr(L,"stop",R,d),W=Qr(L,"stop",xe=>{xu(xe.target)||H(!1),S&&S(xe)},!1),F=Se(xe=>{D.current||(D.current=xe.currentTarget),xu(xe.target)&&(H(!0),b&&b(xe)),v&&v(xe)}),K=()=>{const xe=D.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Q=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&L.stop(xe,()=>{L.start(xe)}),xe.target===xe.currentTarget&&K()&&xe.key===" "&&xe.preventDefault(),E&&E(xe),xe.target===xe.currentTarget&&K()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),ne=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&L.stop(xe,()=>{L.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&K()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=g);const ee={};ue==="button"?(ee.type=I===void 0?"button":I,ee.disabled=c):(!N.href&&!N.to&&(ee.role="button"),c&&(ee["aria-disabled"]=c));const fe=Ye(n,D),ve={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=xT(ve);return x.jsxs(ST,{as:ue,className:pe(Le.root,s),ownerState:ve,onBlur:W,onClick:C,onContextMenu:Y,onFocus:F,onKeyDown:Q,onKeyUp:ne,onMouseDown:X,onMouseLeave:te,onMouseUp:ae,onDragLeave:le,onTouchEnd:re,onTouchMove:ie,onTouchStart:Z,ref:fe,tabIndex:c?-1:j,type:I,...ee,...N,children:[a,se?x.jsx(gT,{ref:z,center:i,...O}):null]})});function Qr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function bT(e){return typeof e.main=="string"}function wT(e,t=[]){if(!bT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Kt(e=[]){return([,t])=>t&&wT(t,e)}function CT(e){return ge("MuiAlert",e)}const lv=me("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function kT(e){return ge("MuiIconButton",e)}const ET=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),PT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return ye(a,kT,t)},MT=G(Ia,{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)}`]]}})(Be(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Be(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ET.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wr=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},y=PT(f);return x.jsx(MT,{className:pe(y.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),RT=Ht(x.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"),DT=Ht(x.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),TT=Ht(x.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"),IT=Ht(x.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"),OT=Ht(x.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"),$T=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,CT,o)},AT=G(br,{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)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?Ra:Da,n=e.palette.mode==="light"?Da:Ra;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${lv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Kt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),LT=G("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jT=G("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cv=G("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),uv={success:x.jsx(RT,{fontSize:"inherit"}),warning:x.jsx(DT,{fontSize:"inherit"}),error:x.jsx(TT,{fontSize:"inherit"}),info:x.jsx(IT,{fontSize:"inherit"})},Fl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=uv,onClose:y,role:g="alert",severity:S="success",slotProps:C={},slots:h={},variant:m="standard",...v}=r,b={...r,color:l,severity:S,variant:m,colorSeverity:l||S},E=$T(b),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...h},slotProps:{...u,...C}},[M,P]=In("closeButton",{elementType:Wr,externalForwardedProps:k,ownerState:b}),[$,w]=In("closeIcon",{elementType:OT,externalForwardedProps:k,ownerState:b});return x.jsxs(AT,{role:g,elevation:0,ownerState:b,className:pe(E.root,a),ref:n,...v,children:[d!==!1?x.jsx(LT,{ownerState:b,className:E.icon,children:d||f[S]||uv[S]}):null,x.jsx(jT,{ownerState:b,className:E.message,children:i}),o!=null?x.jsx(cv,{ownerState:b,className:E.action,children:o}):null,o==null&&y?x.jsx(cv,{ownerState:b,className:E.action,children:x.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...P,children:x.jsx($,{fontSize:"small",...w})})}):null]})});function NT(e){return ge("MuiTypography",e)}me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BT=UD(),zT=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(s,NT,a)},_T=G("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]}})(Be(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ce(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),dv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fe=p.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!FT[r],a=BT({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:y="body1",variantMapping:g=dv,...S}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:y,variantMapping:g},h=c||(f?"p":g[y]||dv[y])||"span",m=zT(C);return x.jsx(_T,{as:h,ref:n,className:pe(m.root,l),...S,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...S.style}})});function VT(e){return ge("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const WT=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return ye(o,VT,r)},fv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UT=G(br,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?fv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?fv(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),HT=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=WT(c);return x.jsx(UT,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var bn="top",or="bottom",ir="right",wn="left",Im="auto",Bl=[bn,or,ir,wn],Oa="start",yl="end",YT="clippingParents",rw="viewport",cs="popper",KT="reference",pv=Bl.reduce(function(e,t){return e.concat([t+"-"+Oa,t+"-"+yl])},[]),ow=[].concat(Bl,[Im]).reduce(function(e,t){return e.concat([t,t+"-"+Oa,t+"-"+yl])},[]),GT="beforeRead",QT="read",XT="afterRead",qT="beforeMain",ZT="main",JT="afterMain",e2="beforeWrite",t2="write",n2="afterWrite",r2=[GT,QT,XT,qT,ZT,JT,e2,t2,n2];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Si(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Om(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function o2(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];!tr(i)||!Ur(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function i2(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!tr(o)||!Ur(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const a2={name:"applyStyles",enabled:!0,phase:"write",fn:o2,effect:i2,requires:["computeStyles"]};function Vr(e){return e.split("-")[0]}var di=Math.max,Eu=Math.min,$a=Math.round;function Qp(){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 iw(){return!/^((?!chrome|android).)*safari/i.test(Qp())}function Aa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&tr(e)&&(o=e.offsetWidth>0&&$a(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$a(r.height)/e.offsetHeight||1);var a=Si(e)?Fn(e):window,s=a.visualViewport,l=!iw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function $m(e){var t=Aa(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 aw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Om(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Fn(e).getComputedStyle(e)}function s2(e){return["table","td","th"].indexOf(Ur(e))>=0}function Ho(e){return((Si(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dd(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(Om(e)?e.host:null)||Ho(e)}function hv(e){return!tr(e)||uo(e).position==="fixed"?null:e.offsetParent}function l2(e){var t=/firefox/i.test(Qp()),n=/Trident/i.test(Qp());if(n&&tr(e)){var r=uo(e);if(r.position==="fixed")return null}var o=Dd(e);for(Om(o)&&(o=o.host);tr(o)&&["html","body"].indexOf(Ur(o))<0;){var i=uo(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 zl(e){for(var t=Fn(e),n=hv(e);n&&s2(n)&&uo(n).position==="static";)n=hv(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&uo(n).position==="static")?t:n||l2(e)||t}function Am(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vs(e,t,n){return di(e,Eu(t,n))}function c2(e,t,n){var r=Vs(e,t,n);return r>n?n:r}function sw(){return{top:0,right:0,bottom:0,left:0}}function lw(e){return Object.assign({},sw(),e)}function cw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lw(typeof t!="number"?t:cw(t,Bl))};function d2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vr(n.placement),l=Am(s),c=[wn,ir].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=u2(o.padding,n),f=$m(i),y=l==="y"?bn:wn,g=l==="y"?or:ir,S=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],h=zl(i),m=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,v=S/2-C/2,b=d[y],E=m-f[u]-d[g],k=m/2-f[u]/2+v,M=Vs(b,k,E),P=l;n.modifiersData[r]=(t={},t[P]=M,t.centerOffset=M-k,t)}}function f2(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)||aw(t.elements.popper,o)&&(t.elements.arrow=o))}const p2={name:"arrow",enabled:!0,phase:"main",fn:d2,effect:f2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function La(e){return e.split("-")[1]}var h2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:$a(n*o)/o||0,y:$a(r*o)/o||0}}function mv(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,y=f===void 0?0:f,g=a.y,S=g===void 0?0:g,C=typeof u=="function"?u({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=wn,b=bn,E=window;if(c){var k=zl(n),M="clientHeight",P="clientWidth";if(k===Fn(n)&&(k=Ho(n),uo(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",P="scrollWidth")),k=k,o===bn||(o===wn||o===ir)&&i===yl){b=or;var $=d&&k===E&&E.visualViewport?E.visualViewport.height:k[M];S-=$-r.height,S*=l?1:-1}if(o===wn||(o===bn||o===or)&&i===yl){v=ir;var w=d&&k===E&&E.visualViewport?E.visualViewport.width:k[P];y-=w-r.width,y*=l?1:-1}}var R=Object.assign({position:s},c&&h2),A=u===!0?m2({x:y,y:S},Fn(n)):{x:y,y:S};if(y=A.x,S=A.y,l){var j;return Object.assign({},R,(j={},j[b]=m?"0":"",j[v]=h?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",j))}return Object.assign({},R,(t={},t[b]=m?S+"px":"",t[v]=h?y+"px":"",t.transform="",t))}function g2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Vr(t.placement),variation:La(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,mv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const y2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g2,data:{}};var vc={passive:!0};function v2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,vc)}),s&&l.addEventListener("resize",n.update,vc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,vc)}),s&&l.removeEventListener("resize",n.update,vc)}}const x2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v2,data:{}};var S2={left:"right",right:"left",bottom:"top",top:"bottom"};function Uc(e){return e.replace(/left|right|bottom|top/g,function(t){return S2[t]})}var b2={start:"end",end:"start"};function gv(e){return e.replace(/start|end/g,function(t){return b2[t]})}function Lm(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jm(e){return Aa(Ho(e)).left+Lm(e).scrollLeft}function w2(e,t){var n=Fn(e),r=Ho(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=iw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+jm(e),y:l}}function C2(e){var t,n=Ho(e),r=Lm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=di(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=di(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+jm(e),l=-r.scrollTop;return uo(o||n).direction==="rtl"&&(s+=di(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Nm(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uw(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:tr(e)&&Nm(e)?e:uw(Dd(e))}function Ws(e,t){var n;t===void 0&&(t=[]);var r=uw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Fn(r),a=o?[i].concat(i.visualViewport||[],Nm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ws(Dd(a)))}function Xp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k2(e,t){var n=Aa(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 yv(e,t,n){return t===rw?Xp(w2(e,n)):Si(t)?k2(t,n):Xp(C2(Ho(e)))}function E2(e){var t=Ws(Dd(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0,r=n&&tr(e)?zl(e):e;return Si(r)?t.filter(function(o){return Si(o)&&aw(o,r)&&Ur(o)!=="body"}):[]}function P2(e,t,n,r){var o=t==="clippingParents"?E2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=yv(e,c,r);return l.top=di(u.top,l.top),l.right=Eu(u.right,l.right),l.bottom=Eu(u.bottom,l.bottom),l.left=di(u.left,l.left),l},yv(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Vr(r):null,i=r?La(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case bn:l={x:a,y:t.y-n.height};break;case or:l={x:a,y:t.y+t.height};break;case ir:l={x:t.x+t.width,y:s};break;case wn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Am(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Oa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case yl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function vl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YT:s,c=n.rootBoundary,u=c===void 0?rw:c,d=n.elementContext,f=d===void 0?cs:d,y=n.altBoundary,g=y===void 0?!1:y,S=n.padding,C=S===void 0?0:S,h=lw(typeof C!="number"?C:cw(C,Bl)),m=f===cs?KT:cs,v=e.rects.popper,b=e.elements[g?m:f],E=P2(Si(b)?b:b.contextElement||Ho(e.elements.popper),l,u,a),k=Aa(e.elements.reference),M=dw({reference:k,element:v,strategy:"absolute",placement:o}),P=Xp(Object.assign({},v,M)),$=f===cs?P:k,w={top:E.top-$.top+h.top,bottom:$.bottom-E.bottom+h.bottom,left:E.left-$.left+h.left,right:$.right-E.right+h.right},R=e.modifiersData.offset;if(f===cs&&R){var A=R[o];Object.keys(w).forEach(function(j){var O=[ir,or].indexOf(j)>=0?1:-1,T=[bn,or].indexOf(j)>=0?"y":"x";w[j]+=A[T]*O})}return w}function M2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ow:l,u=La(r),d=u?s?pv:pv.filter(function(g){return La(g)===u}):Bl,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var y=f.reduce(function(g,S){return g[S]=vl(e,{placement:S,boundary:o,rootBoundary:i,padding:a})[Vr(S)],g},{});return Object.keys(y).sort(function(g,S){return y[g]-y[S]})}function R2(e){if(Vr(e)===Im)return[];var t=Uc(e);return[gv(e),t,gv(t)]}function D2(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,h=Vr(C),m=h===C,v=l||(m||!g?[Uc(C)]:R2(C)),b=[C].concat(v).reduce(function(X,Y){return X.concat(Vr(Y)===Im?M2(t,{placement:Y,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:S}):Y)},[]),E=t.rects.reference,k=t.rects.popper,M=new Map,P=!0,$=b[0],w=0;w=0,T=O?"width":"height",I=vl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?ir:wn:j?or:bn;E[T]>k[T]&&(N=Uc(N));var D=Uc(N),L=[];if(i&&L.push(I[A]<=0),s&&L.push(I[N]<=0,I[D]<=0),L.every(function(X){return X})){$=R,P=!1;break}M.set(R,L)}if(P)for(var z=g?3:1,V=function(Y){var le=b.find(function(ae){var te=M.get(ae);if(te)return te.slice(0,Y).every(function(Z){return Z})});if(le)return $=le,"break"},H=z;H>0;H--){var se=V(H);if(se==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const T2={name:"flip",enabled:!0,phase:"main",fn:D2,requiresIfExists:["offset"],data:{_skip:!1}};function vv(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 xv(e){return[bn,ir,or,wn].some(function(t){return e[t]>=0})}function I2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=vl(t,{elementContext:"reference"}),s=vl(t,{altBoundary:!0}),l=vv(a,r),c=vv(s,o,i),u=xv(l),d=xv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const O2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I2};function $2(e,t,n){var r=Vr(e),o=[wn,bn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[wn,ir].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function A2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ow.reduce(function(u,d){return u[d]=$2(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const L2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:A2};function j2(e){var t=e.state,n=e.name;t.modifiersData[n]=dw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const N2={name:"popperOffsets",enabled:!0,phase:"read",fn:j2,data:{}};function F2(e){return e==="x"?"y":"x"}function B2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,y=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,C=vl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),h=Vr(t.placement),m=La(t.placement),v=!m,b=Am(h),E=F2(b),k=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,$=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,w=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(k){if(i){var j,O=b==="y"?bn:wn,T=b==="y"?or:ir,I=b==="y"?"height":"width",N=k[b],D=N+C[O],L=N-C[T],z=y?-P[I]/2:0,V=m===Oa?M[I]:P[I],H=m===Oa?-P[I]:-M[I],se=t.elements.arrow,X=y&&se?$m(se):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sw(),le=Y[O],ae=Y[T],te=Vs(0,M[I],X[I]),Z=v?M[I]/2-z-te-le-w.mainAxis:V-te-le-w.mainAxis,re=v?-M[I]/2+z+te+ae+w.mainAxis:H+te+ae+w.mainAxis,ie=t.elements.arrow&&zl(t.elements.arrow),W=ie?b==="y"?ie.clientTop||0:ie.clientLeft||0:0,F=(j=R==null?void 0:R[b])!=null?j:0,K=N+Z-F-W,Q=N+re-F,ne=Vs(y?Eu(D,K):D,N,y?di(L,Q):L);k[b]=ne,A[b]=ne-N}if(s){var ue,ee=b==="x"?bn:wn,fe=b==="x"?or:ir,ve=k[E],Le=E==="y"?"height":"width",xe=ve+C[ee],tt=ve-C[fe],Pe=[bn,wn].indexOf(h)!==-1,_e=(ue=R==null?void 0:R[E])!=null?ue:0,ut=Pe?xe:ve-M[Le]-P[Le]-_e+w.altAxis,je=Pe?ve+M[Le]+P[Le]-_e-w.altAxis:tt,Oe=y&&Pe?c2(ut,ve,je):Vs(y?ut:xe,ve,y?je:tt);k[E]=Oe,A[E]=Oe-ve}t.modifiersData[r]=A}}const z2={name:"preventOverflow",enabled:!0,phase:"main",fn:B2,requiresIfExists:["offset"]};function _2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V2(e){return e===Fn(e)||!tr(e)?Lm(e):_2(e)}function W2(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function U2(e,t,n){n===void 0&&(n=!1);var r=tr(t),o=tr(t)&&W2(t),i=Ho(t),a=Aa(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||Nm(i))&&(s=V2(t)),tr(t)?(l=Aa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=jm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function H2(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 a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Y2(e){var t=H2(e);return r2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function K2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function G2(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 Sv={placement:"bottom",modifiers:[],strategy:"absolute"};function bv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Z2(o)||document.body)},[o,i]),Ut(()=>{if(a&&!i)return Wp(n,a),()=>{Wp(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return r}return a&&Ju.createPortal(r,a)});function J2(e){return ge("MuiPopper",e)}me("MuiPopper",["root"]);function eI(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 qp(e){return typeof e=="function"?e():e}function tI(e){return e.nodeType!==void 0}const nI=e=>{const{classes:t}=e;return ye({root:["root"]},J2,t)},rI={},oI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:y={},TransitionProps:g,ownerState:S,...C}=t,h=p.useRef(null),m=Ye(h,n),v=p.useRef(null),b=Ye(v,d),E=p.useRef(b);Ut(()=>{E.current=b},[b]),p.useImperativeHandle(d,()=>v.current,[]);const k=eI(c,i),[M,P]=p.useState(k),[$,w]=p.useState(qp(r));p.useEffect(()=>{v.current&&v.current.forceUpdate()}),p.useEffect(()=>{r&&w(qp(r))},[r]),Ut(()=>{if(!$||!l)return;const T=D=>{P(D.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{T(D)}}];s!=null&&(I=I.concat(s)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const N=q2($,h.current,{placement:k,...u,modifiers:I});return E.current(N),()=>{N.destroy(),E.current(null)}},[$,a,s,l,u,k]);const R={placement:M};g!==null&&(R.TransitionProps=g);const A=nI(t),j=y.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return x.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),iI=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=rI,popperRef:y,style:g,transition:S=!1,slotProps:C={},slots:h={},...m}=t,[v,b]=p.useState(!0),E=()=>{b(!1)},k=()=>{b(!0)};if(!l&&!u&&(!S||v))return null;let M;if(i)M=i;else if(r){const w=qp(r);M=w&&tI(w)?Wt(w).body:Wt(null).body}const P=!u&&l&&(!S||v)?"none":void 0,$=S?{in:u,onEnter:E,onExited:k}:void 0;return x.jsx(fw,{disablePortal:s,container:M,children:x.jsx(oI,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:S?!v:u,placement:d,popperOptions:f,popperRef:y,slotProps:C,slots:h,...m,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:$,children:o})})}),aI=G(iI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sI=p.forwardRef(function(t,n){const r=lr(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,slots:m,slotProps:v,...b}=o,E=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:g,popperOptions:S,popperRef:C,transition:h,...b};return x.jsx(aI,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:v??l,...k,ref:n})}),lI=Ht(x.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 cI(e){return ge("MuiChip",e)}const Ve=me("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),uI=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,s&&"clickable",s&&`clickableColor${ce(o)}`,a&&"deletable",a&&`deletableColor${ce(o)}`,`${l}${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(l)}Color${ce(o)}`]};return ye(c,cI,t)},dI=G("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${ce(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(r)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ce(r)}`],t[l],t[`${l}${ce(r)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{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:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ze(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)`:ze(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ze(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{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}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ze(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),fI=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function wv(e){return e.key==="Backspace"||e.key==="Delete"}const pI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:y,onDelete:g,onKeyDown:S,onKeyUp:C,size:h="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:b=!1,...E}=r,k=p.useRef(null),M=Ye(k,n),P=L=>{L.stopPropagation(),g&&g(L)},$=L=>{L.currentTarget===L.target&&wv(L)&&L.preventDefault(),S&&S(L)},w=L=>{L.currentTarget===L.target&&g&&wv(L)&&g(L),C&&C(L)},R=a!==!1&&y?!0:a,A=R||g?Ia:l||"div",j={...r,component:A,disabled:u,size:h,color:s,iconColor:p.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:R,variant:m},O=uI(j),T=A===Ia?{component:l||"div",focusVisibleClassName:O.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=c&&p.isValidElement(c)?p.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:P}):x.jsx(lI,{className:pe(O.deleteIcon),onClick:P}));let N=null;o&&p.isValidElement(o)&&(N=p.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let D=null;return d&&p.isValidElement(d)&&(D=p.cloneElement(d,{className:pe(O.icon,d.props.className)})),x.jsxs(dI,{as:A,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:y,onKeyDown:$,onKeyUp:w,ref:M,tabIndex:b&&u?-1:v,ownerState:j,...T,...E,children:[N||D,x.jsx(fI,{className:pe(O.label),ownerState:j,children:f}),I]})});function xc(e){return parseInt(e,10)||0}const hI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const gI=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=p.useRef(s!=null),u=p.useRef(null),d=Ye(n,u),f=p.useRef(null),y=p.useRef(null),g=p.useCallback(()=>{const h=u.current,v=Sr(h).getComputedStyle(h);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=y.current;b.style.width=v.width,b.value=h.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const E=v.boxSizing,k=xc(v.paddingBottom)+xc(v.paddingTop),M=xc(v.borderBottomWidth)+xc(v.borderTopWidth),P=b.scrollHeight;b.value="x";const $=b.scrollHeight;let w=P;i&&(w=Math.max(Number(i)*$,w)),o&&(w=Math.min(Number(o)*$,w)),w=Math.max(w,$);const R=w+(E==="border-box"?k+M:0),A=Math.abs(w-P)<=1;return{outerHeightStyle:R,overflowing:A}},[o,i,t.placeholder]),S=p.useCallback(()=>{const h=g();if(mI(h))return;const m=h.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=h.overflowing?"hidden":""},[g]);Ut(()=>{const h=()=>{S()};let m;const v=xm(h),b=u.current,E=Sr(b);E.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(h),k.observe(b)),()=>{v.clear(),cancelAnimationFrame(m),E.removeEventListener("resize",v),k&&k.disconnect()}},[g,S]),Ut(()=>{S()});const C=h=>{c||S(),r&&r(h)};return x.jsxs(p.Fragment,{children:[x.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...hI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function xl(e){return typeof e=="string"}function Ya({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Td=p.createContext(void 0);function kr(){return p.useContext(Td)}function Cv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pu(e,t=!1){return e&&(Cv(e.value)&&e.value!==""||t&&Cv(e.defaultValue)&&e.defaultValue!=="")}function yI(e){return e.startAdornment}function vI(e){return ge("MuiInputBase",e)}const ja=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var kv;const Id=(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]},Od=(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]},xI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:y,type:g}=e,S={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ce(f)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ye(S,vI,t)},$d=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Id})(Be(({theme:e})=>({...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",[`&.${ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ad=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Od})(Be(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ja.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ja.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ev=Pm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Fm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:y,endAdornment:g,error:S,fullWidth:C=!1,id:h,inputComponent:m="input",inputProps:v={},inputRef:b,margin:E,maxRows:k,minRows:M,multiline:P=!1,name:$,onBlur:w,onChange:R,onClick:A,onFocus:j,onKeyDown:O,onKeyUp:T,placeholder:I,readOnly:N,renderSuffix:D,rows:L,size:z,slotProps:V={},slots:H={},startAdornment:se,type:X="text",value:Y,...le}=r,ae=v.value!=null?v.value:Y,{current:te}=p.useRef(ae!=null),Z=p.useRef(),re=p.useCallback(Ne=>{},[]),ie=Ye(Z,b,v.ref,re),[W,F]=p.useState(!1),K=kr(),Q=Ya({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=K?K.focused:W,p.useEffect(()=>{!K&&f&&W&&(F(!1),w&&w())},[K,f,W,w]);const ne=K&&K.onFilled,ue=K&&K.onEmpty,ee=p.useCallback(Ne=>{Pu(Ne)?ne&&ne():ue&&ue()},[ne,ue]);Ut(()=>{te&&ee({value:ae})},[ae,ee,te]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),K&&K.onFocus?K.onFocus(Ne):F(!0)},ve=Ne=>{w&&w(Ne),v.onBlur&&v.onBlur(Ne),K&&K.onBlur?K.onBlur(Ne):F(!1)},Le=(Ne,...st)=>{if(!te){const Hn=Ne.target||Z.current;if(Hn==null)throw new Error(lo(1));ee({value:Hn.value})}v.onChange&&v.onChange(Ne,...st),R&&R(Ne,...st)};p.useEffect(()=>{ee(Z.current)},[]);const xe=Ne=>{Z.current&&Ne.currentTarget===Ne.target&&Z.current.focus(),A&&A(Ne)};let tt=m,Pe=v;P&&tt==="input"&&(L?Pe={type:void 0,minRows:L,maxRows:L,...Pe}:Pe={type:void 0,maxRows:k,minRows:M,...Pe},tt=gI);const _e=Ne=>{ee(Ne.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!se)},[K,se]);const ut={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:g,error:Q.error,focused:Q.focused,formControl:K,fullWidth:C,hiddenLabel:Q.hiddenLabel,multiline:P,size:Q.size,startAdornment:se,type:X},je=xI(ut),Oe=H.root||c.Root||$d,pt=V.root||u.root||{},At=H.input||c.Input||Ad;return Pe={...Pe,...V.input??u.input},x.jsxs(p.Fragment,{children:[!y&&typeof Ev=="function"&&(kv||(kv=x.jsx(Ev,{}))),x.jsxs(Oe,{...pt,ref:n,onClick:xe,...le,...!xl(Oe)&&{ownerState:{...ut,...pt.ownerState}},className:pe(je.root,pt.className,s,N&&"MuiInputBase-readOnly"),children:[se,x.jsx(Td.Provider,{value:null,children:x.jsx(At,{"aria-invalid":Q.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:h,onAnimationStart:_e,name:$,placeholder:I,readOnly:N,required:Q.required,rows:L,value:ae,onKeyDown:O,onKeyUp:T,type:X,...Pe,...!xl(At)&&{as:tt,ownerState:{...ut,...Pe.ownerState}},ref:ie,className:pe(je.input,Pe.className,N&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Le,onFocus:fe})}),g,D?D({...Q,startAdornment:se}):null]})]})});function SI(e){return ge("MuiInput",e)}const us={...ja,...me("MuiInput",["root","underline","input"])};function bI(e){return ge("MuiOutlinedInput",e)}const Dr={...ja,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function wI(e){return ge("MuiFilledInput",e)}const Go={...ja,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},CI=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kI={entering:{opacity:1},entered:{opacity:1}},Ka=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:y,onExited:g,onExiting:S,style:C,timeout:h=o,TransitionComponent:m=cr,...v}=t,b=p.useRef(null),E=Ye(b,Mi(s),n),k=O=>T=>{if(O){const I=b.current;T===void 0?O(I):O(I,T)}},M=k(f),P=k((O,T)=>{Tm(O);const I=Ta({style:C,timeout:h,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),u&&u(O,T)}),$=k(d),w=k(S),R=k(O=>{const T=Ta({style:C,timeout:h,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",T),O.style.transition=r.transitions.create("opacity",T),y&&y(O)}),A=k(g),j=O=>{i&&i(b.current,O)};return x.jsx(m,{appear:a,in:c,nodeRef:b,onEnter:P,onEntered:$,onEntering:M,onExit:R,onExited:A,onExiting:w,addEndListener:j,timeout:h,...v,children:(O,T)=>p.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...kI[O],...C,...s.props.style},ref:E,...T})})});function EI(e){return ge("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const PI=e=>{const{ownerState:t,...n}=e;return n},MI=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},EI,t)},RI=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:y,transitionDuration:g,...S}=r,C={...r,component:a,invisible:s},h=MI(C),m={transition:y,root:c.Root,...f},v={...u,...d},b={slots:m,slotProps:v},[E,k]=In("root",{elementType:RI,externalForwardedProps:b,className:pe(h.root,i),ownerState:C}),[M,P]=In("transition",{elementType:Ka,externalForwardedProps:b,ownerState:C}),$=PI(P);return x.jsx(M,{in:l,timeout:g,...S,...$,children:x.jsx(E,{"aria-hidden":!0,...k,classes:h,ref:n,children:o})})}),DI=me("MuiBox",["root"]),TI=Md(),Ot=QM({themeId:er,defaultTheme:TI,defaultClassName:DI.root,generateClassName:Tb.generate});function II(e){return ge("MuiButton",e)}const Vi=me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),OI=p.createContext({}),$I=p.createContext(void 0),AI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},l=ye(s,II,a);return{...a,...l}},hw=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],LI=G(Ia,{shouldForwardProp:e=>Un(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]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:ze(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),jI=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...hw]}),NI=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...hw]}),it=p.forwardRef(function(t,n){const r=p.useContext(OI),o=p.useContext($I),i=gl(r,t),a=Ie({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:S,fullWidth:C=!1,size:h="medium",startIcon:m,type:v,variant:b="text",...E}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:y,fullWidth:C,size:h,type:v,variant:b},M=AI(k),P=m&&x.jsx(jI,{className:M.startIcon,ownerState:k,children:m}),$=g&&x.jsx(NI,{className:M.endIcon,ownerState:k,children:g}),w=o||"";return x.jsxs(LI,{ownerState:k,className:pe(r.className,M.root,u,w),component:c,disabled:d,focusRipple:!y,focusVisibleClassName:pe(M.focusVisible,S),ref:n,type:v,...E,classes:M,children:[P,s,$]})});function FI(e){return ge("MuiCard",e)}me("MuiCard",["root"]);const BI=e=>{const{classes:t}=e;return ye({root:["root"]},FI,t)},zI=G(br,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Sl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=BI(s);return x.jsx(zI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function _I(e){return ge("MuiCardContent",e)}me("MuiCardContent",["root"]);const VI=e=>{const{classes:t}=e;return ye({root:["root"]},_I,t)},WI=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),mw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=VI(s);return x.jsx(WI,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function UI(e){return ge("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const HI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ye({root:["root",n&&"media",r&&"img"]},UI,t)},YI=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),KI=["video","audio","picture","iframe","img"],GI=["picture","img"],QI=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,d=KI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,y={...r,component:a,isMediaComponent:d,isImageComponent:GI.includes(a)},g=HI(y);return x.jsx(YI,{className:pe(g.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:y,src:d?s||l:void 0,...u,children:o})});function XI(e){return ge("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xo=44,Zp=$l` 0% { transform: rotate(0deg); } @@ -167,7 +167,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: rotate(360deg); } -`,eh=$l` +`,Jp=$l` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -182,12 +182,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`,qI=typeof Jp!="string"?pm` - animation: ${Jp} 1.4s linear infinite; - `:null,ZI=typeof eh!="string"?pm` - animation: ${eh} 1.4s ease-in-out infinite; - `:null,JI=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 ye(i,XI,t)},eO=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qI||{animation:`${Jp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tO=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),nO=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Be(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ZI||{animation:`${eh} 1.4s ease-in-out infinite`}}]}))),_l=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,y={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=JI(y),S={},C={},h={};if(d==="determinate"){const m=2*Math.PI*((vo-c)/2);S.strokeDasharray=m.toFixed(3),h["aria-valuenow"]=Math.round(u),S.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return x.jsx(eO,{className:pe(g.root,o),style:{width:s,height:s,...C,...l},ownerState:y,ref:n,role:"progressbar",...h,...f,children:x.jsx(tO,{className:g.svg,ownerState:y,viewBox:`${vo/2} ${vo/2} ${vo} ${vo}`,children:x.jsx(nO,{className:g.circle,style:S,ownerState:y,cx:vo,cy:vo,r:(vo-c)/2,fill:"none",strokeWidth:c})})})});function Pv(e){return e.substring(2).toLowerCase()}function rO(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Ye(Pi(t),s),d=Se(g=>{const S=c.current;c.current=!1;const C=Wt(s.current);if(!l.current||!s.current||"clientX"in g&&rO(g,C))return;if(a.current){a.current=!1;return}let h;g.composedPath?h=g.composedPath().includes(s.current):h=!C.documentElement.contains(g.target)||s.current.contains(g.target),!h&&(n||!S)&&o(g)}),f=g=>S=>{c.current=!0;const C=t.props[g];C&&C(S)},y={ref:u};return i!==!1&&(y[i]=f(i)),p.useEffect(()=>{if(i!==!1){const g=Pv(i),S=Wt(s.current),C=()=>{a.current=!0};return S.addEventListener(g,d),S.addEventListener("touchmove",C),()=>{S.removeEventListener(g,d),S.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(y[r]=f(r)),p.useEffect(()=>{if(r!==!1){const g=Pv(r),S=Wt(s.current);return S.addEventListener(g,d),()=>{S.removeEventListener(g,d)}}},[d,r]),p.cloneElement(t,y)}const jd=VR({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),th=typeof Mm({})=="function",iO=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),aO=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),gw=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:iO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...aO(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Yc="mui-ecs",sO=e=>{const t=gw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Yc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,s;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Yc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Yc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},lO=Mm(th?({theme:e,enableColorScheme:t})=>gw(e,t):({theme:e})=>sO(e));function yw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(p.Fragment,{children:[th&&x.jsx(lO,{enableColorScheme:r}),!th&&!r&&x.jsx("span",{className:Yc,style:{display:"none"}}),n]})}function cO(e){const t=Wt(e);return t.body===e?Sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mv(e){return parseInt(Sr(e).getComputedStyle(e).paddingRight,10)||0}function uO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Rv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!uO(a);s&&l&&Us(a,o)})}function $f(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(cO(r)){const a=_b(Sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mv(r)+a}px`;const s=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Mv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const a=r.parentElement,s=Sr(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a: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:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function fO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pO{constructor(){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&&Us(t.modalRef,!1);const o=fO(n);Rv(n,t.mount,t.modalRef,o,!0);const i=$f(this.containers,a=>a.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=$f(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=dO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=$f(this.containers,a=>a.modals.includes(t)),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&&Us(t.modalRef,n),Rv(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Us(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mO(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 gO(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 yO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gO(e))}function vO(e){const t=[],n=[];return Array.from(e.querySelectorAll(hO)).forEach((r,o)=>{const i=mO(r);i===-1||!yO(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 xO(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=vO,isEnabled:a=xO,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),y=p.useRef(!1),g=p.useRef(null),S=Ye(Pi(t),g),C=p.useRef(null);p.useEffect(()=>{!s||!g.current||(y.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),y.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current),b=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===g.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{var $,w;const M=g.current;if(M===null)return;if(!v.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(v.activeElement)||r&&v.activeElement!==c.current&&v.activeElement!==u.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!y.current)return;let P=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(P=i(g.current)),P.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((w=C.current)==null?void 0:w.key)==="Tab"),A=P[0],j=P[P.length-1];typeof A!="string"&&typeof j!="string"&&(R?j.focus():A.focus())}else M.focus()};v.addEventListener("focusin",E),v.addEventListener("keydown",b,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",E),v.removeEventListener("keydown",b,!0)}},[n,r,o,a,s,i]);const h=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0,f.current=v.target;const b=t.props.onFocus;b&&b(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0};return x.jsxs(p.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:S,onFocus:h}),x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function SO(e){return typeof e=="function"?e():e}function bO(e){return e?e.props.hasOwnProperty("in"):!1}const Dv=()=>{},bc=new pO;function wO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=p.useRef({}),f=p.useRef(null),y=p.useRef(null),g=Ye(y,u),[S,C]=p.useState(!c),h=bO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>Wt(f.current),b=()=>(d.current.modalRef=y.current,d.current.mount=f.current,d.current),E=()=>{bc.mount(b(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Se(()=>{const T=SO(t)||v().body;bc.add(b(),T),y.current&&E()}),M=()=>bc.isTopModal(b()),P=Se(T=>{f.current=T,T&&(c&&M()?E():y.current&&Us(y.current,m))}),$=p.useCallback(()=>{bc.remove(b(),m)},[m]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{c?k():(!h||!o)&&$()},[c,$,h,o,k]);const w=T=>I=>{var N;(N=T.onKeyDown)==null||N.call(T,I),!(I.key!=="Escape"||I.which===229||!M())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},R=T=>I=>{var N;(N=T.onClick)==null||N.call(T,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(T={})=>{const I=bu(e);delete I.onTransitionEnter,delete I.onTransitionExited;const N={...I,...T};return{role:"presentation",...N,onKeyDown:w(N),ref:g}},getBackdropProps:(T={})=>{const I=T;return{"aria-hidden":!0,...I,onClick:R(I),open:c}},getTransitionProps:()=>{const T=()=>{C(!1),i&&i()},I=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Vy(T,(s==null?void 0:s.props.onEnter)??Dv),onExited:Vy(I,(s==null?void 0:s.props.onExited)??Dv)}},rootRef:g,portalRef:P,isTopModal:M,exited:S,hasTransition:h}}function CO(e){return ge("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const kO=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},CO,r)},EO=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Be(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),PO=G(pw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zm=p.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=PO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:C=!1,disablePortal:h=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:b=!1,keepMounted:E=!1,onBackdropClick:k,onClose:M,onTransitionEnter:P,onTransitionExited:$,open:w,slotProps:R={},slots:A={},theme:j,...O}=r,T={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:h,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:b,keepMounted:E},{getRootProps:I,getBackdropProps:N,getTransitionProps:D,portalRef:L,isTopModal:z,exited:V,hasTransition:H}=wO({...T,rootRef:n}),se={...T,exited:V},X=kO(se),Y={};if(c.props.tabIndex===void 0&&(Y.tabIndex="-1"),H){const{onEnter:W,onExited:F}=D();Y.onEnter=W,Y.onExited=F}const le={...O,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...y,...R}},[ae,te]=In("root",{elementType:EO,externalForwardedProps:le,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:se,className:pe(s,X==null?void 0:X.root,!se.open&&se.exited&&(X==null?void 0:X.hidden))}),[Z,re]=In("backdrop",{elementType:o,externalForwardedProps:le,additionalProps:i,getSlotProps:W=>N({...W,onClick:F=>{k&&k(F),W!=null&&W.onClick&&W.onClick(F)}}),className:pe(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:se}),ie=Ye(i==null?void 0:i.ref,re.ref);return!E&&!w&&(!H||V)?null:x.jsx(fw,{ref:L,container:u,disablePortal:h,children:x.jsxs(ae,{...te,children:[!b&&o?x.jsx(Z,{...re,ref:ie}):null,x.jsx(vw,{disableEnforceFocus:S,disableAutoFocus:g,disableRestoreFocus:m,isEnabled:z,open:w,children:p.cloneElement(c,Y)})]})})});function MO(e){return ge("MuiDialog",e)}const Hs=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xw=p.createContext({}),RO=G(pw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ye(a,MO,t)},TO=G(zm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),IO=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),OO=G(br,{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]}})(Be(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_m=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:S=!1,maxWidth:C="sm",onBackdropClick:h,onClick:m,onClose:v,open:b,PaperComponent:E=br,PaperProps:k={},scroll:M="paper",TransitionComponent:P=Ka,transitionDuration:$=i,TransitionProps:w,...R}=r,A={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:S,maxWidth:C,scroll:M},j=DO(A),O=p.useRef(),T=L=>{O.current=L.target===L.currentTarget},I=L=>{m&&m(L),O.current&&(O.current=null,h&&h(L),v&&v(L,"backdropClick"))},N=Wo(s),D=p.useMemo(()=>({titleId:N}),[N]);return x.jsx(TO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:RO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:y,onClose:v,open:b,ref:n,onClick:I,ownerState:A,...R,children:x.jsx(P,{appear:!0,in:b,timeout:$,role:"presentation",...w,children:x.jsx(IO,{className:pe(j.container),onMouseDown:T,ownerState:A,children:x.jsx(OO,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:A,children:x.jsx(xw.Provider,{value:D,children:d})})})})})});function $O(e){return ge("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const AO=e=>{const{classes:t,disableSpacing:n}=e;return ye({root:["root",!n&&"spacing"]},$O,t)},LO=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Vm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=AO(s);return x.jsx(LO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function jO(e){return ge("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);function NO(e){return ge("MuiDialogTitle",e)}const FO=me("MuiDialogTitle",["root"]),BO=e=>{const{classes:t,dividers:n}=e;return ye({root:["root",n&&"dividers"]},jO,t)},zO=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Be(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${FO.root} + &`]:{paddingTop:0}}}]}))),Wm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=BO(s);return x.jsx(zO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),_O=e=>{const{classes:t}=e;return ye({root:["root"]},NO,t)},VO=G(Fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=_O(s),{titleId:c=i}=p.useContext(xw);return x.jsx(VO,{component:"h2",className:pe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})}),Tv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function WO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Sr(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function UO(e){return typeof e=="function"?e():e}function wc(e,t,n){const r=UO(n),o=WO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const HO=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:y,onEntered:g,onEntering:S,onExit:C,onExited:h,onExiting:m,style:v,timeout:b=i,TransitionComponent:E=cr,...k}=t,M=p.useRef(null),P=Ye(Pi(l),M,n),$=D=>L=>{D&&(L===void 0?D(M.current):D(M.current,L))},w=$((D,L)=>{wc(u,D,c),Im(D),y&&y(D,L)}),R=$((D,L)=>{const z=Ta({timeout:b,style:v,easing:d},{mode:"enter"});D.style.webkitTransition=r.transitions.create("-webkit-transform",{...z}),D.style.transition=r.transitions.create("transform",{...z}),D.style.webkitTransform="none",D.style.transform="none",S&&S(D,L)}),A=$(g),j=$(m),O=$(D=>{const L=Ta({timeout:b,style:v,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",L),D.style.transition=r.transitions.create("transform",L),wc(u,D,c),C&&C(D)}),T=$(D=>{D.style.webkitTransition="",D.style.transition="",h&&h(D)}),I=D=>{a&&a(M.current,D)},N=p.useCallback(()=>{M.current&&wc(u,M.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const D=Sm(()=>{M.current&&wc(u,M.current,c)}),L=Sr(M.current);return L.addEventListener("resize",D),()=>{D.clear(),L.removeEventListener("resize",D)}},[u,f,c]),p.useEffect(()=>{f||N()},[f,N]),x.jsx(E,{nodeRef:M,onEnter:w,onEntered:A,onEntering:R,onExit:O,onExited:T,onExiting:j,addEndListener:I,appear:s,in:f,timeout:b,...k,children:(D,L)=>p.cloneElement(l,{ref:P,style:{visibility:D==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...L})})});function YO(e){return ge("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const bw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},KO=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 ye(o,YO,t)},GO=G(zm,{name:"MuiDrawer",slot:"Root",overridesResolver:bw})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Iv=G("div",{shouldForwardProp:Un,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:bw})({flex:"0 0 auto"}),QO=G(br,{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)}`]]}})(Be(({theme:e})=>({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,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),ww={left:"right",right:"left",top:"down",bottom:"up"};function XO(e){return["left","right"].includes(e)}function qO({direction:e},t){return e==="rtl"&&XO(t)?ww[t]:t}const ZO=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=Cr(),i=lr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:y,...g}={},onClose:S,open:C=!1,PaperProps:h={},SlideProps:m,TransitionComponent:v=HO,transitionDuration:b=a,variant:E="temporary",...k}=r,M=p.useRef(!1);p.useEffect(()=>{M.current=!0},[]);const P=qO({direction:i?"rtl":"ltr"},s),w={...r,anchor:s,elevation:d,open:C,variant:E,...k},R=KO(w),A=x.jsx(QO,{elevation:E==="temporary"?d:0,square:!0,...h,className:pe(R.paper,h.className),ownerState:w,children:c});if(E==="permanent")return x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:A});const j=x.jsx(v,{in:C,direction:ww[P],timeout:b,appear:M.current,...m,children:A});return E==="persistent"?x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:j}):x.jsx(GO,{BackdropProps:{...l,...y,transitionDuration:b},className:pe(R.root,R.modal,u),open:C,ownerState:w,onClose:S,hideBackdrop:f,ref:n,...k,...g,children:j})}),JO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ye(l,wI,t);return{...t,...c}},e$=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Od(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ko.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{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"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.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})`:n}`,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(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),t$=G(Ld,{name:"MuiFilledInput",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ru=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...g}=r,S={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:y},C=JO(r),h={root:{ownerState:S},input:{ownerState:S}},m=d??a?Qt(h,d??a):h,v=f.root??i.Root??e$,b=f.input??i.Input??t$;return x.jsx(Bm,{slots:{root:v,input:b},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:y,...g,classes:C})});Ru&&(Ru.muiName="Input");function n$(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r$=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return ye(o,n$,t)},o$=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),to=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:y="none",required:g=!1,size:S="medium",variant:C="outlined",...h}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:y,required:g,size:S,variant:C},v=r$(m),[b,E]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{if(!_s(O,["Input","Select"]))return;const T=_s(O,["Select"])?O.props.input:O;T&&yI(T.props)&&(j=!0)}),j}),[k,M]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{_s(O,["Input","Select"])&&(Mu(O.props,!0)||Mu(O.props.inputProps,!0))&&(j=!0)}),j}),[P,$]=p.useState(!1);l&&P&&$(!1);const w=u!==void 0&&!l?u:P;let R;p.useRef(!1);const A=p.useMemo(()=>({adornedStart:b,setAdornedStart:E,color:a,disabled:l,error:c,filled:k,focused:w,fullWidth:d,hiddenLabel:f,size:S,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:g,variant:C}),[b,a,l,c,k,w,d,f,R,g,S,C]);return x.jsx(Id.Provider,{value:A,children:x.jsx(o$,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...h,children:o})})});function i$(e){return ge("MuiFormHelperText",e)}const Ov=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $v;const a$=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ye(c,i$,t)},s$=G("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]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ov.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ov.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Cw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:y,...g}=r,S=kr(),C=Ya({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),h={...r,component:a,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete h.ownerState;const m=a$(h);return x.jsx(s$,{as:a,className:pe(m.root,i),ref:n,...g,ownerState:h,children:o===" "?$v||($v=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function l$(e){return ge("MuiFormLabel",e)}const Ys=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),c$=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ye(l,l$,t)},u$=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{[`&.${Ys.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ys.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),d$=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Be(({theme:e})=>({[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}))),ha=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...y}=r,g=kr(),S=Ya({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:S.color||"primary",component:s,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},h=c$(C);return x.jsxs(u$,{as:s,ownerState:C,className:pe(h.root,i),ref:n,...y,children:[o,S.required&&x.jsxs(d$,{ownerState:C,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]})}),di=rD({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Ie({props:e,name:"MuiGrid2"}),useTheme:Cr});function nh(e){return`scale(${e}, ${e**2})`}const f$={entering:{opacity:1,transform:nh(1)},entered:{opacity:1,transform:"none"}},Af=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bl=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:y,style:g,timeout:S="auto",TransitionComponent:C=cr,...h}=t,m=wm(),v=p.useRef(),b=Cr(),E=p.useRef(null),k=Ye(E,Pi(i),n),M=T=>I=>{if(T){const N=E.current;I===void 0?T(N):T(N,I)}},P=M(u),$=M((T,I)=>{Im(T);const{duration:N,delay:D,easing:L}=Ta({style:g,timeout:S,easing:a},{mode:"enter"});let z;S==="auto"?(z=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=z):z=N,T.style.transition=[b.transitions.create("opacity",{duration:z,delay:D}),b.transitions.create("transform",{duration:Af?z:z*.666,delay:D,easing:L})].join(","),l&&l(T,I)}),w=M(c),R=M(y),A=M(T=>{const{duration:I,delay:N,easing:D}=Ta({style:g,timeout:S,easing:a},{mode:"exit"});let L;S==="auto"?(L=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=L):L=I,T.style.transition=[b.transitions.create("opacity",{duration:L,delay:N}),b.transitions.create("transform",{duration:Af?L:L*.666,delay:Af?N:N||L*.333,easing:D})].join(","),T.style.opacity=0,T.style.transform=nh(.75),d&&d(T)}),j=M(f),O=T=>{S==="auto"&&m.start(v.current||0,T),r&&r(E.current,T)};return x.jsx(C,{appear:o,in:s,nodeRef:E,onEnter:$,onEntered:w,onEntering:P,onExit:A,onExited:j,onExiting:R,addEndListener:O,timeout:S==="auto"?null:S,...h,children:(T,I)=>p.cloneElement(i,{style:{opacity:0,transform:nh(.75),visibility:T==="exited"&&!s?"hidden":void 0,...f$[T],...g,...i.props.style},ref:k,...I})})});bl&&(bl.muiSupportAuto=!0);const Nd=sR({themeId:er}),p$=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},SI,t);return{...t,...o}},h$=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Od(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${us.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${us.disabled}, .${us.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${us.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),m$=G(Ld,{name:"MuiInput",slot:"Input",overridesResolver:$d})({}),Du=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...y}=r,g=p$(r),C={root:{ownerState:{disableUnderline:o}}},h=u??a?Qt(u??a,C):C,m=d.root??i.Root??h$,v=d.input??i.Input??m$;return x.jsx(Bm,{slots:{root:m,input:v},slotProps:h,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...y,classes:g})});Du&&(Du.muiName="Input");function g$(e){return ge("MuiInputAdornment",e)}const Av=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lv;const y$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},v$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,a,r&&"hiddenLabel",i&&`size${ce(i)}`]};return ye(s,g$,t)},x$=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:y$})(Be(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Av.positionStart}&:not(.${Av.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),kw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=kr()||{};let y=u;u&&f.variant,f&&!y&&(y=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:y},S=v$(g);return x.jsx(Id.Provider,{value:null,children:x.jsx(x$,{as:a,ownerState:g,className:pe(S.root,i),ref:n,...d,children:typeof o=="string"&&!l?x.jsx(Fe,{color:"textSecondary",children:o}):x.jsxs(p.Fragment,{children:[c==="start"?Lv||(Lv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function S$(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const b$=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,a],asterisk:[s&&"asterisk"]},c=ye(l,S$,t);return{...t,...c}},w$=G(ha,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ys.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Be(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Fd=p.forwardRef(function(t,n){const r=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=kr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ya({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=b$(y);return x.jsx(w$,{"data-shrink":d,ref:n,className:pe(g.root,l),...c,ownerState:y,classes:g})});function C$(e){return ge("MuiLink",e)}const k$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),E$=({theme:e,ownerState:t})=>{const n=t.color,r=Ma(e,`palette.${n}`,!1)||t.color,o=Ma(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ze(r,.4)},jv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ye(i,C$,t)},M$=G(Fe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(Be(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:ze(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ze(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:ze(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${k$.focusVisible}`]:{outline:"auto"}}}]}))),Um=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=Cr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:y,...g}=r,[S,C]=p.useState(!1),h=E=>{Su(E.target)||C(!1),l&&l(E)},m=E=>{Su(E.target)&&C(!0),c&&c(E)},v={...r,color:a,component:s,focusVisible:S,underline:d,variant:f},b=P$(v);return x.jsx(M$,{color:a,className:pe(b.root,i),classes:u,component:s,onBlur:h,onFocus:m,ref:n,ownerState:v,variant:f,...g,sx:[...jv[a]===void 0?[{color:a}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...d==="always"&&a!=="inherit"&&!jv[a]&&{"--Link-underlineColor":E$({theme:o,ownerState:v})}}})}),fi=p.createContext({});function R$(e){return ge("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const D$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R$,t)},T$=G("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ew=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=p.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},y=D$(f);return x.jsx(fi.Provider,{value:d,children:x.jsxs(T$,{as:a,className:pe(y.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function I$(e){return ge("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const O$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function $$(e){return ge("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const A$=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},$$,n)},L$=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=p.useContext(fi),s={...r,disableGutters:a.disableGutters},l=A$(s);return x.jsx(L$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});Pw.muiName="ListItemSecondaryAction";const j$=(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.hasSecondaryAction&&t.secondaryAction]},N$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ye({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},I$,n)},F$=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:j$})(Be(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${O$.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),B$=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),z$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:y=!1,disableGutters:g=!1,disablePadding:S=!1,divider:C=!1,secondaryAction:h,slotProps:m={},slots:v={},...b}=r,E=p.useContext(fi),k=p.useMemo(()=>({dense:y||E.dense||!1,alignItems:o,disableGutters:g}),[o,E.dense,y,g]),M=p.useRef(null),P=p.Children.toArray(i),$=P.length&&_s(P[P.length-1],["ListItemSecondaryAction"]),w={...r,alignItems:o,dense:k.dense,disableGutters:g,disablePadding:S,divider:C,hasSecondaryAction:$},R=N$(w),A=Ye(M,n),j=v.root||l.Root||F$,O=m.root||c.root||{},T={className:pe(R.root,O.className,a),...b};let I=s||"li";return $?(I=!T.component&&!s?"div":I,u==="li"&&(I==="li"?I="div":T.component==="li"&&(T.component="div")),x.jsx(fi.Provider,{value:k,children:x.jsxs(B$,{as:u,className:pe(R.container,d),ref:A,ownerState:w,...f,children:[x.jsx(j,{...O,...!xl(j)&&{as:I,ownerState:{...w,...O.ownerState}},...T,children:P}),P.pop()]})})):x.jsx(fi.Provider,{value:k,children:x.jsxs(j,{...O,as:I,ref:A,...!xl(j)&&{ownerState:{...w,...O.ownerState}},...T,children:[P,h&&x.jsx(Pw,{children:h})]})})}),Nv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Fv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Lf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mw(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.startsWith(t.keys.join(""))}function ds(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Mw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const _$=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,y=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ut(()=>{o&&y.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const E=!y.current.style.width;if(v.clientHeight{const b=y.current,E=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=Wt(b).activeElement;if(E==="ArrowDown")v.preventDefault(),ds(b,M,c,l,Lf);else if(E==="ArrowUp")v.preventDefault(),ds(b,M,c,l,Bv);else if(E==="Home")v.preventDefault(),ds(b,null,c,l,Lf);else if(E==="End")v.preventDefault(),ds(b,null,c,l,Bv);else if(E.length===1){const P=g.current,$=E.toLowerCase(),w=performance.now();P.keys.length>0&&(w-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&$!==P.keys[0]&&(P.repeating=!1)),P.lastTime=w,P.keys.push($);const R=M&&!P.repeating&&Mw(M,P);P.previousKeyMatched&&(R||ds(b,M,!1,l,Lf,P))?v.preventDefault():P.previousKeyMatched=!1}u&&u(v)},C=Ye(y,n);let h=-1;p.Children.forEach(a,(v,b)=>{if(!p.isValidElement(v)){h===b&&(h+=1,h>=a.length&&(h=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||h===-1)&&(h=b),h===b&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))});const m=p.Children.map(a,(v,b)=>{if(b===h){const E={};return i&&(E.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),p.cloneElement(v,E)}return v});return x.jsx(Ew,{role:"menu",ref:C,className:s,onKeyDown:S,tabIndex:o?0:-1,...f,children:m})});function V$(e){return ge("MuiPopover",e)}me("MuiPopover",["root","paper"]);function zv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _v(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Vv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function jf(e){return typeof e=="function"?e():e}const W$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},V$,t)},U$=G(zm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rw=G(br,{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}),H$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:y=16,open:g,PaperProps:S={},slots:C={},slotProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=bl,transitionDuration:b="auto",TransitionProps:{onEntering:E,...k}={},disableScrollLock:M=!1,...P}=r,$=(h==null?void 0:h.paper)??S,w=p.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:y,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:b,TransitionProps:k},A=W$(R),j=p.useCallback(()=>{if(l==="anchorPosition")return s;const re=jf(i),W=(re&&re.nodeType===1?re:Wt(w.current).body).getBoundingClientRect();return{top:W.top+zv(W,a.vertical),left:W.left+_v(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=p.useCallback(re=>({vertical:zv(re,m.vertical),horizontal:_v(re,m.horizontal)}),[m.horizontal,m.vertical]),T=p.useCallback(re=>{const ie={width:re.offsetWidth,height:re.offsetHeight},W=O(ie);if(l==="none")return{top:null,left:null,transformOrigin:Vv(W)};const F=j();let K=F.top-W.vertical,Q=F.left-W.horizontal;const ne=K+ie.height,ue=Q+ie.width,ee=Sr(jf(i)),fe=ee.innerHeight-y,ve=ee.innerWidth-y;if(y!==null&&Kfe){const Le=ne-fe;K-=Le,W.vertical+=Le}if(y!==null&&Qve){const Le=ue-ve;Q-=Le,W.horizontal+=Le}return{top:`${Math.round(K)}px`,left:`${Math.round(Q)}px`,transformOrigin:Vv(W)}},[i,l,j,O,y]),[I,N]=p.useState(g),D=p.useCallback(()=>{const re=w.current;if(!re)return;const ie=T(re);ie.top!==null&&re.style.setProperty("top",ie.top),ie.left!==null&&(re.style.left=ie.left),re.style.transformOrigin=ie.transformOrigin,N(!0)},[T]);p.useEffect(()=>(M&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,M,D]);const L=(re,ie)=>{E&&E(re,ie),D()},z=()=>{N(!1)};p.useEffect(()=>{g&&D()}),p.useImperativeHandle(o,()=>g?{updatePosition:()=>{D()}}:null,[g,D]),p.useEffect(()=>{if(!g)return;const re=Sm(()=>{D()}),ie=Sr(i);return ie.addEventListener("resize",re),()=>{re.clear(),ie.removeEventListener("resize",re)}},[i,g,D]);let V=b;b==="auto"&&!v.muiSupportAuto&&(V=void 0);const H=d||(i?Wt(jf(i)).body:void 0),se={slots:C,slotProps:{...h,paper:$}},[X,Y]=In("paper",{elementType:Rw,externalForwardedProps:se,additionalProps:{elevation:f,className:pe(A.paper,$==null?void 0:$.className),style:I?$.style:{...$.style,opacity:0}},ownerState:R}),[le,{slotProps:ae,...te}]=In("root",{elementType:U$,externalForwardedProps:se,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:R,className:pe(A.root,u)}),Z=Ye(w,Y.ref);return x.jsx(le,{...te,...!xl(le)&&{slotProps:ae,disableScrollLock:M},...P,ref:n,children:x.jsx(v,{appear:!0,in:g,onEntering:L,onExited:z,timeout:V,...k,children:x.jsx(X,{...Y,ref:Z,children:c})})})});function Y$(e){return ge("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const K$={vertical:"top",horizontal:"right"},G$={vertical:"top",horizontal:"left"},Q$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},Y$,t)},X$=G(H$,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q$=G(Rw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z$=G(_$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:y="auto",TransitionProps:{onEntering:g,...S}={},variant:C="selectedMenu",slots:h={},slotProps:m={},...v}=r,b=lr(),E={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:y,TransitionProps:S,variant:C},k=Q$(E),M=o&&!s&&u,P=p.useRef(null),$=(I,N)=>{P.current&&P.current.adjustStyleForScrollbar(I,{direction:b?"rtl":"ltr"}),g&&g(I,N)},w=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let R=-1;p.Children.map(i,(I,N)=>{p.isValidElement(I)&&(I.props.disabled||(C==="selectedMenu"&&I.props.selected||R===-1)&&(R=N))});const A=h.paper??q$,j=m.paper??d,O=Qe({elementType:h.root,externalSlotProps:m.root,ownerState:E,className:[k.root,a]}),T=Qe({elementType:A,externalSlotProps:j,ownerState:E,className:k.paper});return x.jsx(X$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?K$:G$,slots:{paper:A,root:h.root},slotProps:{root:O,paper:T},open:u,ref:n,transitionDuration:y,TransitionProps:{onEntering:$,...S},ownerState:E,...v,classes:f,children:x.jsx(Z$,{onKeyDown:w,actions:P,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function J$(e){return ge("MuiMenuItem",e)}const fs=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tA=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},J$,a);return{...a,...l}},nA=G(Ia,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eA})(Be(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(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})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tv.inset}`]:{marginLeft:52},[`& .${Fv.root}`]:{marginTop:0,marginBottom:0},[`& .${Fv.inset}`]:{paddingLeft:36},[`& .${Nv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Nv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Tu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...y}=r,g=p.useContext(fi),S=p.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),C=p.useRef(null);Ut(()=>{o&&C.current&&C.current.focus()},[o]);const h={...r,dense:S.dense,divider:s,disableGutters:l},m=tA(r),v=Ye(C,n);let b;return r.disabled||(b=d!==void 0?d:-1),x.jsx(fi.Provider,{value:S,children:x.jsx(nA,{ref:v,role:u,tabIndex:b,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...y,ownerState:h,classes:m})})});function rA(e){return ge("MuiNativeSelect",e)}const Hm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(s,rA,t)},Tw=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),iA=G(Tw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hm.multiple}`]:t.multiple}]}})({}),Iw=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),aA=G(Iw,{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]}})({}),sA=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=oA(u);return x.jsxs(p.Fragment,{children:[x.jsx(iA,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:x.jsx(aA,{as:a,ownerState:u,className:d.icon})]})});var Wv;const lA=G("fieldset",{shouldForwardProp:Un})({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%"}),cA=G("legend",{shouldForwardProp:Un})(Be(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uA(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return x.jsx(lA,{"aria-hidden":!0,className:r,ownerState:l,...a,children:x.jsx(cA,{ownerState:l,children:s?x.jsx("span",{children:o}):Wv||(Wv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const dA=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bI,t);return{...t,...r}},fA=G(Ad,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Od})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{color:n},style:{[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Dr.error} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dr.disabled} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),pA=G(uA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Be(({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}})),hA=G(Ld,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(Be(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Iu=p.forwardRef(function(t,n){var r;const o=Ie({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...y}=o,g=dA(o),S=kr(),C=Ya({props:o,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),h={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:S,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??fA,v=d.input??i.Input??hA;return x.jsx(Bm,{slots:{root:m,input:v},renderSuffix:b=>x.jsx(pA,{ownerState:h,className:g.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=x.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(b.startAdornment||b.filled||b.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...y,classes:{...g,notchedOutline:null}})});Iu&&(Iu.muiName="Input");function mA(e){return ge("MuiSelect",e)}const ps=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Uv;const gA=G(Tw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ps.select}`]:t.select},{[`&.${ps.select}`]:t[n.variant]},{[`&.${ps.error}`]:t.error},{[`&.${ps.multiple}`]:t.multiple}]}})({[`&.${ps.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yA=G(Iw,{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]}})({}),vA=G("input",{shouldForwardProp:e=>tw(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 Hv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xA(e){return e==null||typeof e=="string"&&!e.trim()}const SA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(s,mA,t)},bA=p.forwardRef(function(t,n){var go;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:y=!1,IconComponent:g,inputRef:S,labelId:C,MenuProps:h={},multiple:m,name:v,onBlur:b,onChange:E,onClose:k,onFocus:M,onOpen:P,open:$,readOnly:w,renderValue:R,required:A,SelectDisplayProps:j={},tabIndex:O,type:T,value:I,variant:N="standard",...D}=t,[L,z]=co({controlled:I,default:u,name:"Select"}),[V,H]=co({controlled:$,default:c,name:"Select"}),se=p.useRef(null),X=p.useRef(null),[Y,le]=p.useState(null),{current:ae}=p.useRef($!=null),[te,Z]=p.useState(),re=Ye(n,S),ie=p.useCallback(Me=>{X.current=Me,Me&&le(Me)},[]),W=Y==null?void 0:Y.parentNode;p.useImperativeHandle(re,()=>({focus:()=>{X.current.focus()},node:se.current,value:L}),[L]),p.useEffect(()=>{c&&V&&Y&&!ae&&(Z(a?null:W.clientWidth),X.current.focus())},[Y,a]),p.useEffect(()=>{i&&X.current.focus()},[i]),p.useEffect(()=>{if(!C)return;const Me=Wt(X.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&X.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?P&&P(qe):k&&k(qe),ae||(Z(a?null:W.clientWidth),H(Me))},K=Me=>{Me.button===0&&(Me.preventDefault(),X.current.focus(),F(!0,Me))},Q=Me=>{F(!1,Me)},ne=p.Children.toArray(s),ue=Me=>{const qe=ne.find(vt=>vt.props.value===Me.target.value);qe!==void 0&&(z(qe.props.value),E&&E(Me,qe))},ee=Me=>qe=>{let vt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){vt=Array.isArray(L)?L.slice():[];const En=L.indexOf(Me.props.value);En===-1?vt.push(Me.props.value):vt.splice(En,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),L!==vt&&(z(vt),E)){const En=qe.nativeEvent||qe,nt=new En.constructor(En.type,En);Object.defineProperty(nt,"target",{writable:!0,value:{value:vt,name:v}}),E(nt,Me)}m||F(!1,qe)}},fe=Me=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ve=Y!==null&&V,Le=Me=>{!ve&&b&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:L,name:v}}),b(Me))};delete D["aria-invalid"];let xe,tt;const Pe=[];let _e=!1;(Mu({value:L})||f)&&(R?xe=R(L):_e=!0);const ut=ne.map(Me=>{if(!p.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(L))throw new Error(lo(2));qe=L.some(vt=>Hv(vt,Me.props.value)),qe&&_e&&Pe.push(Me.props.children)}else qe=Hv(L,Me.props.value),qe&&_e&&(tt=Me.props.children);return p.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:ee(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Pe.length===0?xe=null:xe=Pe.reduce((Me,qe,vt)=>(Me.push(qe),vt{const{classes:t}=e;return t},Ym={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Un(e)&&e!=="variant",slot:"Root"},CA=G(Du,Ym)(""),kA=G(Iu,Ym)(""),EA=G(Ru,Ym)(""),Bd=p.forwardRef(function(t,n){const r=Ie({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=CI,id:d,input:f,inputProps:y,label:g,labelId:S,MenuProps:C,multiple:h=!1,native:m=!1,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:M,variant:P="outlined",...$}=r,w=m?sA:bA,R=kr(),A=Ya({props:r,muiFormControl:R,states:["variant","error"]}),j=A.variant||P,O={...r,variant:j,classes:a},T=wA(O),{root:I,...N}=T,D=f||{standard:x.jsx(CA,{ownerState:O}),outlined:x.jsx(kA,{label:g,ownerState:O}),filled:x.jsx(EA,{ownerState:O})}[j],L=Ye(n,Pi(D));return x.jsx(p.Fragment,{children:p.cloneElement(D,{inputComponent:w,inputProps:{children:i,error:A.error,IconComponent:u,variant:j,type:void 0,multiple:h,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:C,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:{id:d,...M}},...y,classes:y?Qt(N,y.classes):N,...f?f.props.inputProps:{}},...(h&&m||c)&&j==="outlined"?{notched:!0}:{},ref:L,className:pe(D.props.className,s,T.root),...!f&&{variant:j},...$})})});Bd.muiName="Select";function PA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=wm();p.useEffect(()=>{if(!o)return;function h(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[o,r]);const s=Se((h,m)=>{r==null||r(h,m)}),l=Se(h=>{!r||h==null||a.start(h,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=h=>{r==null||r(h,"clickaway")},u=a.clear,d=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=h=>m=>{const v=h.onBlur;v==null||v(m),d()},y=h=>m=>{const v=h.onFocus;v==null||v(m),u()},g=h=>m=>{const v=h.onMouseEnter;v==null||v(m),u()},S=h=>m=>{const v=h.onMouseLeave;v==null||v(m),d()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(h={})=>{const m={...bu(e),...bu(h)};return{role:"presentation",...h,...m,onBlur:f(m),onFocus:y(m),onMouseEnter:g(m),onMouseLeave:S(m)}},onClickAway:c}}function MA(e){return ge("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const RA=e=>{const{classes:t}=e;return ye({root:["root"],action:["action"],message:["message"]},MA,t)},DA=G(br,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Be(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Fb(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),TA=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),IA=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),OA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=RA(c);return x.jsxs(DA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[x.jsx(TA,{className:u.message,ownerState:c,children:a}),o?x.jsx(IA,{className:u.action,ownerState:c,children:o}):null]})});function $A(e){return ge("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const AA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`]};return ye(r,$A,t)},Yv=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}`]]}})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Vl=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:y,disableWindowBlurListener:g=!1,message:S,onBlur:C,onClose:h,onFocus:m,onMouseEnter:v,onMouseLeave:b,open:E,resumeHideDuration:k,TransitionComponent:M=bl,transitionDuration:P=i,TransitionProps:{onEnter:$,onExited:w,...R}={},...A}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:P},O=AA(j),{getRootProps:T,onClickAway:I}=PA({...j}),[N,D]=p.useState(!0),L=Qe({elementType:Yv,getSlotProps:T,externalForwardedProps:A,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),z=H=>{D(!0),w&&w(H)},V=(H,se)=>{D(!1),$&&$(H,se)};return!E&&N?null:x.jsx(oO,{onClickAway:I,...f,children:x.jsx(Yv,{...L,children:x.jsx(M,{appear:!0,in:E,timeout:P,direction:s==="top"?"down":"up",onEnter:V,onExited:z,...R,children:u||x.jsx(OA,{message:S,action:a,...y})})})})}),Mi=uD({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),Ow=p.createContext();function LA(e){return ge("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const jA=e=>{const{classes:t,stickyHeader:n}=e;return ye({root:["root",n&&"stickyHeader"]},LA,t)},NA=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Be(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Kv="table",FA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=Kv,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=jA(u),f=p.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return x.jsx(Ow.Provider,{value:f,children:x.jsx(NA,{as:i,role:i===Kv?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),zd=p.createContext();function BA(e){return ge("MuiTableBody",e)}me("MuiTableBody",["root"]);const zA=e=>{const{classes:t}=e;return ye({root:["root"]},BA,t)},_A=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),VA={variant:"body"},Gv="tbody",WA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=Gv,...a}=r,s={...r,component:i},l=zA(s);return x.jsx(zd.Provider,{value:VA,children:x.jsx(_A,{className:pe(l.root,o),as:i,ref:n,role:i===Gv?null:"rowgroup",ownerState:s,...a})})});function UA(e){return ge("MuiTableCell",e)}const HA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),YA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return ye(s,UA,t)},KA=G("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]}})(Be(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Da(ze(e.palette.divider,1),.88):Ra(ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${HA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Pn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,y=p.useContext(Ow),g=p.useContext(zd),S=g&&g.variant==="head";let C;a?C=a:C=S?"th":"td";let h=l;C==="td"?h=void 0:!h&&S&&(h="col");const m=d||g&&g.variant,v={...r,align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&y&&y.stickyHeader,variant:m},b=YA(v);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),x.jsx(KA,{as:C,ref:n,className:pe(b.root,i),"aria-sort":E,scope:h,ownerState:v,...f})});function GA(e){return ge("MuiTableContainer",e)}me("MuiTableContainer",["root"]);const QA=e=>{const{classes:t}=e;return ye({root:["root"]},GA,t)},XA=G("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),qA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=QA(s);return x.jsx(XA,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function ZA(e){return ge("MuiTableHead",e)}me("MuiTableHead",["root"]);const JA=e=>{const{classes:t}=e;return ye({root:["root"]},ZA,t)},eL=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),tL={variant:"head"},Qv="thead",nL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableHead"}),{className:o,component:i=Qv,...a}=r,s={...r,component:i},l=JA(s);return x.jsx(zd.Provider,{value:tL,children:x.jsx(eL,{as:i,className:pe(l.root,o),ref:n,role:i===Qv?null:"rowgroup",ownerState:s,...a})})});function rL(e){return ge("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const oL=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},rL,t)},iL=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Be(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),aL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=oL(c);return x.jsx(iL,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})});function sL(e){return ge("MuiTableRow",e)}const Xv=me("MuiTableRow",["root","selected","hover","head","footer"]),lL=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ye({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},sL,t)},cL=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Be(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Xv.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(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}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),qv="tr",Nf=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableRow"}),{className:o,component:i=qv,hover:a=!1,selected:s=!1,...l}=r,c=p.useContext(zd),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=lL(u);return x.jsx(cL,{as:i,ref:n,className:pe(d.root,o),role:i===qv?null:"row",ownerState:u,...l})});function uL(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const dL={standard:Du,filled:Ru,outlined:Iu},fL=e=>{const{classes:t}=e;return ye({root:["root"]},uL,t)},pL=G(to,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:y=!1,helperText:g,id:S,InputLabelProps:C,inputProps:h,InputProps:m,inputRef:v,label:b,maxRows:E,minRows:k,multiline:M=!1,name:P,onBlur:$,onChange:w,onFocus:R,placeholder:A,required:j=!1,rows:O,select:T=!1,SelectProps:I,slots:N={},slotProps:D={},type:L,value:z,variant:V="outlined",...H}=r,se={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:y,multiline:M,required:j,select:T,variant:V},X=fL(se),Y=Wo(S),le=g&&Y?`${Y}-helper-text`:void 0,ae=b&&Y?`${Y}-label`:void 0,te=dL[V],Z={slots:N,slotProps:{input:m,inputLabel:C,htmlInput:h,formHelperText:f,select:I,...D}},re={},ie=Z.slotProps.inputLabel;V==="outlined"&&(ie&&typeof ie.shrink<"u"&&(re.notched=ie.shrink),re.label=b),T&&((!I||!I.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const[W,F]=In("input",{elementType:te,externalForwardedProps:Z,additionalProps:re,ownerState:se}),[K,Q]=In("inputLabel",{elementType:Fd,externalForwardedProps:Z,ownerState:se}),[ne,ue]=In("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:se}),[ee,fe]=In("formHelperText",{elementType:Cw,externalForwardedProps:Z,ownerState:se}),[ve,Le]=In("select",{elementType:Bd,externalForwardedProps:Z,ownerState:se}),xe=x.jsx(W,{"aria-describedby":le,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:y,multiline:M,name:P,rows:O,maxRows:E,minRows:k,type:L,value:z,id:Y,inputRef:v,onBlur:$,onChange:w,onFocus:R,placeholder:A,inputProps:ue,slots:{input:N.htmlInput?ne:void 0},...F});return x.jsxs(pL,{className:pe(X.root,s),disabled:u,error:d,fullWidth:y,ref:n,required:j,color:l,variant:V,ownerState:se,...H,children:[b!=null&&b!==""&&x.jsx(K,{htmlFor:Y,id:ae,...Q,children:b}),T?x.jsx(ve,{"aria-describedby":le,id:Y,labelId:ae,value:z,input:xe,...Le,children:a}):xe,g&&x.jsx(ee,{id:le,...fe,children:g})]})}),nn=p.createContext();var $w={exports:{}},Aw={};/** +`,qI=typeof Zp!="string"?fm` + animation: ${Zp} 1.4s linear infinite; + `:null,ZI=typeof Jp!="string"?fm` + animation: ${Jp} 1.4s ease-in-out infinite; + `:null,JI=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 ye(i,XI,t)},eO=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Be(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qI||{animation:`${Zp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tO=G("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),nO=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Be(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ZI||{animation:`${Jp} 1.4s ease-in-out infinite`}}]}))),Bm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,y={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=JI(y),S={},C={},h={};if(d==="determinate"){const m=2*Math.PI*((xo-c)/2);S.strokeDasharray=m.toFixed(3),h["aria-valuenow"]=Math.round(u),S.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return x.jsx(eO,{className:pe(g.root,o),style:{width:s,height:s,...C,...l},ownerState:y,ref:n,role:"progressbar",...h,...f,children:x.jsx(tO,{className:g.svg,ownerState:y,viewBox:`${xo/2} ${xo/2} ${xo} ${xo}`,children:x.jsx(nO,{className:g.circle,style:S,ownerState:y,cx:xo,cy:xo,r:(xo-c)/2,fill:"none",strokeWidth:c})})})});function Pv(e){return e.substring(2).toLowerCase()}function rO(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Ye(Mi(t),s),d=Se(g=>{const S=c.current;c.current=!1;const C=Wt(s.current);if(!l.current||!s.current||"clientX"in g&&rO(g,C))return;if(a.current){a.current=!1;return}let h;g.composedPath?h=g.composedPath().includes(s.current):h=!C.documentElement.contains(g.target)||s.current.contains(g.target),!h&&(n||!S)&&o(g)}),f=g=>S=>{c.current=!0;const C=t.props[g];C&&C(S)},y={ref:u};return i!==!1&&(y[i]=f(i)),p.useEffect(()=>{if(i!==!1){const g=Pv(i),S=Wt(s.current),C=()=>{a.current=!0};return S.addEventListener(g,d),S.addEventListener("touchmove",C),()=>{S.removeEventListener(g,d),S.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(y[r]=f(r)),p.useEffect(()=>{if(r!==!1){const g=Pv(r),S=Wt(s.current);return S.addEventListener(g,d),()=>{S.removeEventListener(g,d)}}},[d,r]),p.cloneElement(t,y)}const Ld=VR({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),eh=typeof Pm({})=="function",iO=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),aO=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),gw=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:iO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...aO(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Hc="mui-ecs",sO=e=>{const t=gw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Hc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,s;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Hc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Hc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},lO=Pm(eh?({theme:e,enableColorScheme:t})=>gw(e,t):({theme:e})=>sO(e));function yw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(p.Fragment,{children:[eh&&x.jsx(lO,{enableColorScheme:r}),!eh&&!r&&x.jsx("span",{className:Hc,style:{display:"none"}}),n]})}function cO(e){const t=Wt(e);return t.body===e?Sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mv(e){return parseInt(Sr(e).getComputedStyle(e).paddingRight,10)||0}function uO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Rv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!uO(a);s&&l&&Us(a,o)})}function Of(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(cO(r)){const a=_b(Sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mv(r)+a}px`;const s=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Mv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const a=r.parentElement,s=Sr(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a: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:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function fO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pO{constructor(){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&&Us(t.modalRef,!1);const o=fO(n);Rv(n,t.mount,t.modalRef,o,!0);const i=Of(this.containers,a=>a.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=Of(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=dO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Of(this.containers,a=>a.modals.includes(t)),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&&Us(t.modalRef,n),Rv(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Us(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mO(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 gO(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 yO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gO(e))}function vO(e){const t=[],n=[];return Array.from(e.querySelectorAll(hO)).forEach((r,o)=>{const i=mO(r);i===-1||!yO(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 xO(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=vO,isEnabled:a=xO,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),y=p.useRef(!1),g=p.useRef(null),S=Ye(Mi(t),g),C=p.useRef(null);p.useEffect(()=>{!s||!g.current||(y.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),y.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),p.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current),b=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===g.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{var $,w;const M=g.current;if(M===null)return;if(!v.hasFocus()||!a()||l.current){l.current=!1;return}if(M.contains(v.activeElement)||r&&v.activeElement!==c.current&&v.activeElement!==u.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!y.current)return;let P=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(P=i(g.current)),P.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((w=C.current)==null?void 0:w.key)==="Tab"),A=P[0],j=P[P.length-1];typeof A!="string"&&typeof j!="string"&&(R?j.focus():A.focus())}else M.focus()};v.addEventListener("focusin",E),v.addEventListener("keydown",b,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",E),v.removeEventListener("keydown",b,!0)}},[n,r,o,a,s,i]);const h=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0,f.current=v.target;const b=t.props.onFocus;b&&b(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0};return x.jsxs(p.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:S,onFocus:h}),x.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function SO(e){return typeof e=="function"?e():e}function bO(e){return e?e.props.hasOwnProperty("in"):!1}const Dv=()=>{},Sc=new pO;function wO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=p.useRef({}),f=p.useRef(null),y=p.useRef(null),g=Ye(y,u),[S,C]=p.useState(!c),h=bO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>Wt(f.current),b=()=>(d.current.modalRef=y.current,d.current.mount=f.current,d.current),E=()=>{Sc.mount(b(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},k=Se(()=>{const T=SO(t)||v().body;Sc.add(b(),T),y.current&&E()}),M=()=>Sc.isTopModal(b()),P=Se(T=>{f.current=T,T&&(c&&M()?E():y.current&&Us(y.current,m))}),$=p.useCallback(()=>{Sc.remove(b(),m)},[m]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{c?k():(!h||!o)&&$()},[c,$,h,o,k]);const w=T=>I=>{var N;(N=T.onKeyDown)==null||N.call(T,I),!(I.key!=="Escape"||I.which===229||!M())&&(n||(I.stopPropagation(),l&&l(I,"escapeKeyDown")))},R=T=>I=>{var N;(N=T.onClick)==null||N.call(T,I),I.target===I.currentTarget&&l&&l(I,"backdropClick")};return{getRootProps:(T={})=>{const I=Su(e);delete I.onTransitionEnter,delete I.onTransitionExited;const N={...I,...T};return{role:"presentation",...N,onKeyDown:w(N),ref:g}},getBackdropProps:(T={})=>{const I=T;return{"aria-hidden":!0,...I,onClick:R(I),open:c}},getTransitionProps:()=>{const T=()=>{C(!1),i&&i()},I=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Vy(T,(s==null?void 0:s.props.onEnter)??Dv),onExited:Vy(I,(s==null?void 0:s.props.onExited)??Dv)}},rootRef:g,portalRef:P,isTopModal:M,exited:S,hasTransition:h}}function CO(e){return ge("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const kO=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},CO,r)},EO=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Be(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),PO=G(pw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zm=p.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=PO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:C=!1,disablePortal:h=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:b=!1,keepMounted:E=!1,onBackdropClick:k,onClose:M,onTransitionEnter:P,onTransitionExited:$,open:w,slotProps:R={},slots:A={},theme:j,...O}=r,T={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:S,disableEscapeKeyDown:C,disablePortal:h,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:b,keepMounted:E},{getRootProps:I,getBackdropProps:N,getTransitionProps:D,portalRef:L,isTopModal:z,exited:V,hasTransition:H}=wO({...T,rootRef:n}),se={...T,exited:V},X=kO(se),Y={};if(c.props.tabIndex===void 0&&(Y.tabIndex="-1"),H){const{onEnter:W,onExited:F}=D();Y.onEnter=W,Y.onExited=F}const le={...O,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...y,...R}},[ae,te]=In("root",{elementType:EO,externalForwardedProps:le,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:se,className:pe(s,X==null?void 0:X.root,!se.open&&se.exited&&(X==null?void 0:X.hidden))}),[Z,re]=In("backdrop",{elementType:o,externalForwardedProps:le,additionalProps:i,getSlotProps:W=>N({...W,onClick:F=>{k&&k(F),W!=null&&W.onClick&&W.onClick(F)}}),className:pe(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:se}),ie=Ye(i==null?void 0:i.ref,re.ref);return!E&&!w&&(!H||V)?null:x.jsx(fw,{ref:L,container:u,disablePortal:h,children:x.jsxs(ae,{...te,children:[!b&&o?x.jsx(Z,{...re,ref:ie}):null,x.jsx(vw,{disableEnforceFocus:S,disableAutoFocus:g,disableRestoreFocus:m,isEnabled:z,open:w,children:p.cloneElement(c,Y)})]})})});function MO(e){return ge("MuiDialog",e)}const Hs=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xw=p.createContext({}),RO=G(pw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ye(a,MO,t)},TO=G(zm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),IO=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),OO=G(br,{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]}})(Be(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Hs.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hs.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_m=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:S=!1,maxWidth:C="sm",onBackdropClick:h,onClick:m,onClose:v,open:b,PaperComponent:E=br,PaperProps:k={},scroll:M="paper",TransitionComponent:P=Ka,transitionDuration:$=i,TransitionProps:w,...R}=r,A={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:S,maxWidth:C,scroll:M},j=DO(A),O=p.useRef(),T=L=>{O.current=L.target===L.currentTarget},I=L=>{m&&m(L),O.current&&(O.current=null,h&&h(L),v&&v(L,"backdropClick"))},N=Uo(s),D=p.useMemo(()=>({titleId:N}),[N]);return x.jsx(TO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:RO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:y,onClose:v,open:b,ref:n,onClick:I,ownerState:A,...R,children:x.jsx(P,{appear:!0,in:b,timeout:$,role:"presentation",...w,children:x.jsx(IO,{className:pe(j.container),onMouseDown:T,ownerState:A,children:x.jsx(OO,{as:E,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:A,children:x.jsx(xw.Provider,{value:D,children:d})})})})})});function $O(e){return ge("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const AO=e=>{const{classes:t,disableSpacing:n}=e;return ye({root:["root",!n&&"spacing"]},$O,t)},LO=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Vm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=AO(s);return x.jsx(LO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function jO(e){return ge("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);function NO(e){return ge("MuiDialogTitle",e)}const FO=me("MuiDialogTitle",["root"]),BO=e=>{const{classes:t,dividers:n}=e;return ye({root:["root",n&&"dividers"]},jO,t)},zO=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Be(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${FO.root} + &`]:{paddingTop:0}}}]}))),Wm=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=BO(s);return x.jsx(zO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),_O=e=>{const{classes:t}=e;return ye({root:["root"]},NO,t)},VO=G(Fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=_O(s),{titleId:c=i}=p.useContext(xw);return x.jsx(VO,{component:"h2",className:pe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})}),Tv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function WO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Sr(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function UO(e){return typeof e=="function"?e():e}function bc(e,t,n){const r=UO(n),o=WO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const HO=p.forwardRef(function(t,n){const r=Cr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:y,onEntered:g,onEntering:S,onExit:C,onExited:h,onExiting:m,style:v,timeout:b=i,TransitionComponent:E=cr,...k}=t,M=p.useRef(null),P=Ye(Mi(l),M,n),$=D=>L=>{D&&(L===void 0?D(M.current):D(M.current,L))},w=$((D,L)=>{bc(u,D,c),Tm(D),y&&y(D,L)}),R=$((D,L)=>{const z=Ta({timeout:b,style:v,easing:d},{mode:"enter"});D.style.webkitTransition=r.transitions.create("-webkit-transform",{...z}),D.style.transition=r.transitions.create("transform",{...z}),D.style.webkitTransform="none",D.style.transform="none",S&&S(D,L)}),A=$(g),j=$(m),O=$(D=>{const L=Ta({timeout:b,style:v,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",L),D.style.transition=r.transitions.create("transform",L),bc(u,D,c),C&&C(D)}),T=$(D=>{D.style.webkitTransition="",D.style.transition="",h&&h(D)}),I=D=>{a&&a(M.current,D)},N=p.useCallback(()=>{M.current&&bc(u,M.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const D=xm(()=>{M.current&&bc(u,M.current,c)}),L=Sr(M.current);return L.addEventListener("resize",D),()=>{D.clear(),L.removeEventListener("resize",D)}},[u,f,c]),p.useEffect(()=>{f||N()},[f,N]),x.jsx(E,{nodeRef:M,onEnter:w,onEntered:A,onEntering:R,onExit:O,onExited:T,onExiting:j,addEndListener:I,appear:s,in:f,timeout:b,...k,children:(D,L)=>p.cloneElement(l,{ref:P,style:{visibility:D==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...L})})});function YO(e){return ge("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const bw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},KO=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 ye(o,YO,t)},GO=G(zm,{name:"MuiDrawer",slot:"Root",overridesResolver:bw})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Iv=G("div",{shouldForwardProp:Un,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:bw})({flex:"0 0 auto"}),QO=G(br,{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)}`]]}})(Be(({theme:e})=>({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,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),ww={left:"right",right:"left",top:"down",bottom:"up"};function XO(e){return["left","right"].includes(e)}function qO({direction:e},t){return e==="rtl"&&XO(t)?ww[t]:t}const ZO=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=Cr(),i=lr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:y,...g}={},onClose:S,open:C=!1,PaperProps:h={},SlideProps:m,TransitionComponent:v=HO,transitionDuration:b=a,variant:E="temporary",...k}=r,M=p.useRef(!1);p.useEffect(()=>{M.current=!0},[]);const P=qO({direction:i?"rtl":"ltr"},s),w={...r,anchor:s,elevation:d,open:C,variant:E,...k},R=KO(w),A=x.jsx(QO,{elevation:E==="temporary"?d:0,square:!0,...h,className:pe(R.paper,h.className),ownerState:w,children:c});if(E==="permanent")return x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:A});const j=x.jsx(v,{in:C,direction:ww[P],timeout:b,appear:M.current,...m,children:A});return E==="persistent"?x.jsx(Iv,{className:pe(R.root,R.docked,u),ownerState:w,ref:n,...k,children:j}):x.jsx(GO,{BackdropProps:{...l,...y,transitionDuration:b},className:pe(R.root,R.modal,u),open:C,ownerState:w,onClose:S,hideBackdrop:f,ref:n,...k,...g,children:j})}),JO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ye(l,wI,t);return{...t,...c}},e$=G($d,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Id(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Go.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Go.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{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"},[`&.${Go.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Go.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})`:n}`,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(.${Go.disabled}, .${Go.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Go.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),t$=G(Ad,{name:"MuiFilledInput",slot:"Input",overridesResolver:Od})(Be(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Mu=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...g}=r,S={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:y},C=JO(r),h={root:{ownerState:S},input:{ownerState:S}},m=d??a?Qt(h,d??a):h,v=f.root??i.Root??e$,b=f.input??i.Input??t$;return x.jsx(Fm,{slots:{root:v,input:b},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:y,...g,classes:C})});Mu&&(Mu.muiName="Input");function n$(e){return ge("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r$=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return ye(o,n$,t)},o$=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),to=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:y="none",required:g=!1,size:S="medium",variant:C="outlined",...h}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:y,required:g,size:S,variant:C},v=r$(m),[b,E]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{if(!_s(O,["Input","Select"]))return;const T=_s(O,["Select"])?O.props.input:O;T&&yI(T.props)&&(j=!0)}),j}),[k,M]=p.useState(()=>{let j=!1;return o&&p.Children.forEach(o,O=>{_s(O,["Input","Select"])&&(Pu(O.props,!0)||Pu(O.props.inputProps,!0))&&(j=!0)}),j}),[P,$]=p.useState(!1);l&&P&&$(!1);const w=u!==void 0&&!l?u:P;let R;p.useRef(!1);const A=p.useMemo(()=>({adornedStart:b,setAdornedStart:E,color:a,disabled:l,error:c,filled:k,focused:w,fullWidth:d,hiddenLabel:f,size:S,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:g,variant:C}),[b,a,l,c,k,w,d,f,R,g,S,C]);return x.jsx(Td.Provider,{value:A,children:x.jsx(o$,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...h,children:o})})});function i$(e){return ge("MuiFormHelperText",e)}const Ov=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $v;const a$=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ye(c,i$,t)},s$=G("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]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ov.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ov.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Cw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:y,...g}=r,S=kr(),C=Ya({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),h={...r,component:a,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete h.ownerState;const m=a$(h);return x.jsx(s$,{as:a,className:pe(m.root,i),ref:n,...g,ownerState:h,children:o===" "?$v||($v=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function l$(e){return ge("MuiFormLabel",e)}const Ys=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),c$=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ye(l,l$,t)},u$=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{[`&.${Ys.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ys.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),d$=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Be(({theme:e})=>({[`&.${Ys.error}`]:{color:(e.vars||e).palette.error.main}}))),ha=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...y}=r,g=kr(),S=Ya({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:S.color||"primary",component:s,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},h=c$(C);return x.jsxs(u$,{as:s,ownerState:C,className:pe(h.root,i),ref:n,...y,children:[o,S.required&&x.jsxs(d$,{ownerState:C,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]})}),fi=rD({createStyledComponent:G("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Ie({props:e,name:"MuiGrid2"}),useTheme:Cr});function th(e){return`scale(${e}, ${e**2})`}const f$={entering:{opacity:1,transform:th(1)},entered:{opacity:1,transform:"none"}},$f=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bl=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:y,style:g,timeout:S="auto",TransitionComponent:C=cr,...h}=t,m=bm(),v=p.useRef(),b=Cr(),E=p.useRef(null),k=Ye(E,Mi(i),n),M=T=>I=>{if(T){const N=E.current;I===void 0?T(N):T(N,I)}},P=M(u),$=M((T,I)=>{Tm(T);const{duration:N,delay:D,easing:L}=Ta({style:g,timeout:S,easing:a},{mode:"enter"});let z;S==="auto"?(z=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=z):z=N,T.style.transition=[b.transitions.create("opacity",{duration:z,delay:D}),b.transitions.create("transform",{duration:$f?z:z*.666,delay:D,easing:L})].join(","),l&&l(T,I)}),w=M(c),R=M(y),A=M(T=>{const{duration:I,delay:N,easing:D}=Ta({style:g,timeout:S,easing:a},{mode:"exit"});let L;S==="auto"?(L=b.transitions.getAutoHeightDuration(T.clientHeight),v.current=L):L=I,T.style.transition=[b.transitions.create("opacity",{duration:L,delay:N}),b.transitions.create("transform",{duration:$f?L:L*.666,delay:$f?N:N||L*.333,easing:D})].join(","),T.style.opacity=0,T.style.transform=th(.75),d&&d(T)}),j=M(f),O=T=>{S==="auto"&&m.start(v.current||0,T),r&&r(E.current,T)};return x.jsx(C,{appear:o,in:s,nodeRef:E,onEnter:$,onEntered:w,onEntering:P,onExit:A,onExited:j,onExiting:R,addEndListener:O,timeout:S==="auto"?null:S,...h,children:(T,I)=>p.cloneElement(i,{style:{opacity:0,transform:th(.75),visibility:T==="exited"&&!s?"hidden":void 0,...f$[T],...g,...i.props.style},ref:k,...I})})});bl&&(bl.muiSupportAuto=!0);const jd=sR({themeId:er}),p$=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},SI,t);return{...t,...o}},h$=G($d,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Id(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${us.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${us.disabled}, .${us.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${us.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),m$=G(Ad,{name:"MuiInput",slot:"Input",overridesResolver:Od})({}),Ru=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...y}=r,g=p$(r),C={root:{ownerState:{disableUnderline:o}}},h=u??a?Qt(u??a,C):C,m=d.root??i.Root??h$,v=d.input??i.Input??m$;return x.jsx(Fm,{slots:{root:m,input:v},slotProps:h,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...y,classes:g})});Ru&&(Ru.muiName="Input");function g$(e){return ge("MuiInputAdornment",e)}const Av=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Lv;const y$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},v$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,a,r&&"hiddenLabel",i&&`size${ce(i)}`]};return ye(s,g$,t)},x$=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:y$})(Be(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Av.positionStart}&:not(.${Av.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),kw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=kr()||{};let y=u;u&&f.variant,f&&!y&&(y=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:y},S=v$(g);return x.jsx(Td.Provider,{value:null,children:x.jsx(x$,{as:a,ownerState:g,className:pe(S.root,i),ref:n,...d,children:typeof o=="string"&&!l?x.jsx(Fe,{color:"textSecondary",children:o}):x.jsxs(p.Fragment,{children:[c==="start"?Lv||(Lv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function S$(e){return ge("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const b$=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,a],asterisk:[s&&"asterisk"]},c=ye(l,S$,t);return{...t,...c}},w$=G(ha,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ys.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Be(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Nd=p.forwardRef(function(t,n){const r=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=kr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ya({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=b$(y);return x.jsx(w$,{"data-shrink":d,ref:n,className:pe(g.root,l),...c,ownerState:y,classes:g})});function C$(e){return ge("MuiLink",e)}const k$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),E$=({theme:e,ownerState:t})=>{const n=t.color,r=Ma(e,`palette.${n}`,!1)||t.color,o=Ma(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ze(r,.4)},jv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ye(i,C$,t)},M$=G(Fe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(Be(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:ze(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ze(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:ze(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${k$.focusVisible}`]:{outline:"auto"}}}]}))),Um=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=Cr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:y,...g}=r,[S,C]=p.useState(!1),h=E=>{xu(E.target)||C(!1),l&&l(E)},m=E=>{xu(E.target)&&C(!0),c&&c(E)},v={...r,color:a,component:s,focusVisible:S,underline:d,variant:f},b=P$(v);return x.jsx(M$,{color:a,className:pe(b.root,i),classes:u,component:s,onBlur:h,onFocus:m,ref:n,ownerState:v,variant:f,...g,sx:[...jv[a]===void 0?[{color:a}]:[],...Array.isArray(y)?y:[y]],style:{...g.style,...d==="always"&&a!=="inherit"&&!jv[a]&&{"--Link-underlineColor":E$({theme:o,ownerState:v})}}})}),pi=p.createContext({});function R$(e){return ge("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const D$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R$,t)},T$=G("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ew=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=p.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},y=D$(f);return x.jsx(pi.Provider,{value:d,children:x.jsxs(T$,{as:a,className:pe(y.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function I$(e){return ge("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const O$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function $$(e){return ge("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const A$=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},$$,n)},L$=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Pw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=p.useContext(pi),s={...r,disableGutters:a.disableGutters},l=A$(s);return x.jsx(L$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});Pw.muiName="ListItemSecondaryAction";const j$=(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.hasSecondaryAction&&t.secondaryAction]},N$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ye({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},I$,n)},F$=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:j$})(Be(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${O$.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),B$=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),z$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:y=!1,disableGutters:g=!1,disablePadding:S=!1,divider:C=!1,secondaryAction:h,slotProps:m={},slots:v={},...b}=r,E=p.useContext(pi),k=p.useMemo(()=>({dense:y||E.dense||!1,alignItems:o,disableGutters:g}),[o,E.dense,y,g]),M=p.useRef(null),P=p.Children.toArray(i),$=P.length&&_s(P[P.length-1],["ListItemSecondaryAction"]),w={...r,alignItems:o,dense:k.dense,disableGutters:g,disablePadding:S,divider:C,hasSecondaryAction:$},R=N$(w),A=Ye(M,n),j=v.root||l.Root||F$,O=m.root||c.root||{},T={className:pe(R.root,O.className,a),...b};let I=s||"li";return $?(I=!T.component&&!s?"div":I,u==="li"&&(I==="li"?I="div":T.component==="li"&&(T.component="div")),x.jsx(pi.Provider,{value:k,children:x.jsxs(B$,{as:u,className:pe(R.container,d),ref:A,ownerState:w,...f,children:[x.jsx(j,{...O,...!xl(j)&&{as:I,ownerState:{...w,...O.ownerState}},...T,children:P}),P.pop()]})})):x.jsx(pi.Provider,{value:k,children:x.jsxs(j,{...O,as:I,ref:A,...!xl(j)&&{ownerState:{...w,...O.ownerState}},...T,children:[P,h&&x.jsx(Pw,{children:h})]})})}),Nv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Fv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Af(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mw(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.startsWith(t.keys.join(""))}function ds(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Mw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const _$=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,y=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ut(()=>{o&&y.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const E=!y.current.style.width;if(v.clientHeight{const b=y.current,E=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=Wt(b).activeElement;if(E==="ArrowDown")v.preventDefault(),ds(b,M,c,l,Af);else if(E==="ArrowUp")v.preventDefault(),ds(b,M,c,l,Bv);else if(E==="Home")v.preventDefault(),ds(b,null,c,l,Af);else if(E==="End")v.preventDefault(),ds(b,null,c,l,Bv);else if(E.length===1){const P=g.current,$=E.toLowerCase(),w=performance.now();P.keys.length>0&&(w-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&$!==P.keys[0]&&(P.repeating=!1)),P.lastTime=w,P.keys.push($);const R=M&&!P.repeating&&Mw(M,P);P.previousKeyMatched&&(R||ds(b,M,!1,l,Af,P))?v.preventDefault():P.previousKeyMatched=!1}u&&u(v)},C=Ye(y,n);let h=-1;p.Children.forEach(a,(v,b)=>{if(!p.isValidElement(v)){h===b&&(h+=1,h>=a.length&&(h=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||h===-1)&&(h=b),h===b&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))});const m=p.Children.map(a,(v,b)=>{if(b===h){const E={};return i&&(E.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(E.tabIndex=0),p.cloneElement(v,E)}return v});return x.jsx(Ew,{role:"menu",ref:C,className:s,onKeyDown:S,tabIndex:o?0:-1,...f,children:m})});function V$(e){return ge("MuiPopover",e)}me("MuiPopover",["root","paper"]);function zv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _v(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Vv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Lf(e){return typeof e=="function"?e():e}const W$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},V$,t)},U$=G(zm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rw=G(br,{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}),H$=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:y=16,open:g,PaperProps:S={},slots:C={},slotProps:h={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=bl,transitionDuration:b="auto",TransitionProps:{onEntering:E,...k}={},disableScrollLock:M=!1,...P}=r,$=(h==null?void 0:h.paper)??S,w=p.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:y,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:b,TransitionProps:k},A=W$(R),j=p.useCallback(()=>{if(l==="anchorPosition")return s;const re=Lf(i),W=(re&&re.nodeType===1?re:Wt(w.current).body).getBoundingClientRect();return{top:W.top+zv(W,a.vertical),left:W.left+_v(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=p.useCallback(re=>({vertical:zv(re,m.vertical),horizontal:_v(re,m.horizontal)}),[m.horizontal,m.vertical]),T=p.useCallback(re=>{const ie={width:re.offsetWidth,height:re.offsetHeight},W=O(ie);if(l==="none")return{top:null,left:null,transformOrigin:Vv(W)};const F=j();let K=F.top-W.vertical,Q=F.left-W.horizontal;const ne=K+ie.height,ue=Q+ie.width,ee=Sr(Lf(i)),fe=ee.innerHeight-y,ve=ee.innerWidth-y;if(y!==null&&Kfe){const Le=ne-fe;K-=Le,W.vertical+=Le}if(y!==null&&Qve){const Le=ue-ve;Q-=Le,W.horizontal+=Le}return{top:`${Math.round(K)}px`,left:`${Math.round(Q)}px`,transformOrigin:Vv(W)}},[i,l,j,O,y]),[I,N]=p.useState(g),D=p.useCallback(()=>{const re=w.current;if(!re)return;const ie=T(re);ie.top!==null&&re.style.setProperty("top",ie.top),ie.left!==null&&(re.style.left=ie.left),re.style.transformOrigin=ie.transformOrigin,N(!0)},[T]);p.useEffect(()=>(M&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,M,D]);const L=(re,ie)=>{E&&E(re,ie),D()},z=()=>{N(!1)};p.useEffect(()=>{g&&D()}),p.useImperativeHandle(o,()=>g?{updatePosition:()=>{D()}}:null,[g,D]),p.useEffect(()=>{if(!g)return;const re=xm(()=>{D()}),ie=Sr(i);return ie.addEventListener("resize",re),()=>{re.clear(),ie.removeEventListener("resize",re)}},[i,g,D]);let V=b;b==="auto"&&!v.muiSupportAuto&&(V=void 0);const H=d||(i?Wt(Lf(i)).body:void 0),se={slots:C,slotProps:{...h,paper:$}},[X,Y]=In("paper",{elementType:Rw,externalForwardedProps:se,additionalProps:{elevation:f,className:pe(A.paper,$==null?void 0:$.className),style:I?$.style:{...$.style,opacity:0}},ownerState:R}),[le,{slotProps:ae,...te}]=In("root",{elementType:U$,externalForwardedProps:se,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:R,className:pe(A.root,u)}),Z=Ye(w,Y.ref);return x.jsx(le,{...te,...!xl(le)&&{slotProps:ae,disableScrollLock:M},...P,ref:n,children:x.jsx(v,{appear:!0,in:g,onEntering:L,onExited:z,timeout:V,...k,children:x.jsx(X,{...Y,ref:Z,children:c})})})});function Y$(e){return ge("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const K$={vertical:"top",horizontal:"right"},G$={vertical:"top",horizontal:"left"},Q$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},Y$,t)},X$=G(H$,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q$=G(Rw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z$=G(_$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dw=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:y="auto",TransitionProps:{onEntering:g,...S}={},variant:C="selectedMenu",slots:h={},slotProps:m={},...v}=r,b=lr(),E={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:y,TransitionProps:S,variant:C},k=Q$(E),M=o&&!s&&u,P=p.useRef(null),$=(I,N)=>{P.current&&P.current.adjustStyleForScrollbar(I,{direction:b?"rtl":"ltr"}),g&&g(I,N)},w=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let R=-1;p.Children.map(i,(I,N)=>{p.isValidElement(I)&&(I.props.disabled||(C==="selectedMenu"&&I.props.selected||R===-1)&&(R=N))});const A=h.paper??q$,j=m.paper??d,O=Qe({elementType:h.root,externalSlotProps:m.root,ownerState:E,className:[k.root,a]}),T=Qe({elementType:A,externalSlotProps:j,ownerState:E,className:k.paper});return x.jsx(X$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?K$:G$,slots:{paper:A,root:h.root},slotProps:{root:O,paper:T},open:u,ref:n,transitionDuration:y,TransitionProps:{onEntering:$,...S},ownerState:E,...v,classes:f,children:x.jsx(Z$,{onKeyDown:w,actions:P,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function J$(e){return ge("MuiMenuItem",e)}const fs=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tA=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},J$,a);return{...a,...l}},nA=G(Ia,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eA})(Be(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(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})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tv.inset}`]:{marginLeft:52},[`& .${Fv.root}`]:{marginTop:0,marginBottom:0},[`& .${Fv.inset}`]:{paddingLeft:36},[`& .${Nv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Nv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Du=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...y}=r,g=p.useContext(pi),S=p.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),C=p.useRef(null);Ut(()=>{o&&C.current&&C.current.focus()},[o]);const h={...r,dense:S.dense,divider:s,disableGutters:l},m=tA(r),v=Ye(C,n);let b;return r.disabled||(b=d!==void 0?d:-1),x.jsx(pi.Provider,{value:S,children:x.jsx(nA,{ref:v,role:u,tabIndex:b,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...y,ownerState:h,classes:m})})});function rA(e){return ge("MuiNativeSelect",e)}const Hm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(s,rA,t)},Tw=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),iA=G(Tw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hm.multiple}`]:t.multiple}]}})({}),Iw=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),aA=G(Iw,{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]}})({}),sA=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=oA(u);return x.jsxs(p.Fragment,{children:[x.jsx(iA,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:x.jsx(aA,{as:a,ownerState:u,className:d.icon})]})});var Wv;const lA=G("fieldset",{shouldForwardProp:Un})({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%"}),cA=G("legend",{shouldForwardProp:Un})(Be(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uA(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return x.jsx(lA,{"aria-hidden":!0,className:r,ownerState:l,...a,children:x.jsx(cA,{ownerState:l,children:s?x.jsx("span",{children:o}):Wv||(Wv=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const dA=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bI,t);return{...t,...r}},fA=G($d,{shouldForwardProp:e=>Un(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Id})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kt()).map(([n])=>({props:{color:n},style:{[`&.${Dr.focused} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Dr.error} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dr.disabled} .${Dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),pA=G(uA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Be(({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}})),hA=G(Ad,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Od})(Be(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Tu=p.forwardRef(function(t,n){var r;const o=Ie({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...y}=o,g=dA(o),S=kr(),C=Ya({props:o,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),h={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:S,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??fA,v=d.input??i.Input??hA;return x.jsx(Fm,{slots:{root:m,input:v},renderSuffix:b=>x.jsx(pA,{ownerState:h,className:g.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=x.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(b.startAdornment||b.filled||b.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...y,classes:{...g,notchedOutline:null}})});Tu&&(Tu.muiName="Input");function mA(e){return ge("MuiSelect",e)}const ps=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Uv;const gA=G(Tw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ps.select}`]:t.select},{[`&.${ps.select}`]:t[n.variant]},{[`&.${ps.error}`]:t.error},{[`&.${ps.multiple}`]:t.multiple}]}})({[`&.${ps.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yA=G(Iw,{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]}})({}),vA=G("input",{shouldForwardProp:e=>tw(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 Hv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xA(e){return e==null||typeof e=="string"&&!e.trim()}const SA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(s,mA,t)},bA=p.forwardRef(function(t,n){var yo;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:y=!1,IconComponent:g,inputRef:S,labelId:C,MenuProps:h={},multiple:m,name:v,onBlur:b,onChange:E,onClose:k,onFocus:M,onOpen:P,open:$,readOnly:w,renderValue:R,required:A,SelectDisplayProps:j={},tabIndex:O,type:T,value:I,variant:N="standard",...D}=t,[L,z]=co({controlled:I,default:u,name:"Select"}),[V,H]=co({controlled:$,default:c,name:"Select"}),se=p.useRef(null),X=p.useRef(null),[Y,le]=p.useState(null),{current:ae}=p.useRef($!=null),[te,Z]=p.useState(),re=Ye(n,S),ie=p.useCallback(Me=>{X.current=Me,Me&&le(Me)},[]),W=Y==null?void 0:Y.parentNode;p.useImperativeHandle(re,()=>({focus:()=>{X.current.focus()},node:se.current,value:L}),[L]),p.useEffect(()=>{c&&V&&Y&&!ae&&(Z(a?null:W.clientWidth),X.current.focus())},[Y,a]),p.useEffect(()=>{i&&X.current.focus()},[i]),p.useEffect(()=>{if(!C)return;const Me=Wt(X.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&X.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?P&&P(qe):k&&k(qe),ae||(Z(a?null:W.clientWidth),H(Me))},K=Me=>{Me.button===0&&(Me.preventDefault(),X.current.focus(),F(!0,Me))},Q=Me=>{F(!1,Me)},ne=p.Children.toArray(s),ue=Me=>{const qe=ne.find(vt=>vt.props.value===Me.target.value);qe!==void 0&&(z(qe.props.value),E&&E(Me,qe))},ee=Me=>qe=>{let vt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){vt=Array.isArray(L)?L.slice():[];const En=L.indexOf(Me.props.value);En===-1?vt.push(Me.props.value):vt.splice(En,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),L!==vt&&(z(vt),E)){const En=qe.nativeEvent||qe,nt=new En.constructor(En.type,En);Object.defineProperty(nt,"target",{writable:!0,value:{value:vt,name:v}}),E(nt,Me)}m||F(!1,qe)}},fe=Me=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ve=Y!==null&&V,Le=Me=>{!ve&&b&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:L,name:v}}),b(Me))};delete D["aria-invalid"];let xe,tt;const Pe=[];let _e=!1;(Pu({value:L})||f)&&(R?xe=R(L):_e=!0);const ut=ne.map(Me=>{if(!p.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(L))throw new Error(lo(2));qe=L.some(vt=>Hv(vt,Me.props.value)),qe&&_e&&Pe.push(Me.props.children)}else qe=Hv(L,Me.props.value),qe&&_e&&(tt=Me.props.children);return p.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:ee(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Pe.length===0?xe=null:xe=Pe.reduce((Me,qe,vt)=>(Me.push(qe),vt{const{classes:t}=e;return t},Ym={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Un(e)&&e!=="variant",slot:"Root"},CA=G(Ru,Ym)(""),kA=G(Tu,Ym)(""),EA=G(Mu,Ym)(""),Fd=p.forwardRef(function(t,n){const r=Ie({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=CI,id:d,input:f,inputProps:y,label:g,labelId:S,MenuProps:C,multiple:h=!1,native:m=!1,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:M,variant:P="outlined",...$}=r,w=m?sA:bA,R=kr(),A=Ya({props:r,muiFormControl:R,states:["variant","error"]}),j=A.variant||P,O={...r,variant:j,classes:a},T=wA(O),{root:I,...N}=T,D=f||{standard:x.jsx(CA,{ownerState:O}),outlined:x.jsx(kA,{label:g,ownerState:O}),filled:x.jsx(EA,{ownerState:O})}[j],L=Ye(n,Mi(D));return x.jsx(p.Fragment,{children:p.cloneElement(D,{inputComponent:w,inputProps:{children:i,error:A.error,IconComponent:u,variant:j,type:void 0,multiple:h,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:S,MenuProps:C,onClose:v,onOpen:b,open:E,renderValue:k,SelectDisplayProps:{id:d,...M}},...y,classes:y?Qt(N,y.classes):N,...f?f.props.inputProps:{}},...(h&&m||c)&&j==="outlined"?{notched:!0}:{},ref:L,className:pe(D.props.className,s,T.root),...!f&&{variant:j},...$})})});Fd.muiName="Select";function PA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=bm();p.useEffect(()=>{if(!o)return;function h(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[o,r]);const s=Se((h,m)=>{r==null||r(h,m)}),l=Se(h=>{!r||h==null||a.start(h,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=h=>{r==null||r(h,"clickaway")},u=a.clear,d=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=h=>m=>{const v=h.onBlur;v==null||v(m),d()},y=h=>m=>{const v=h.onFocus;v==null||v(m),u()},g=h=>m=>{const v=h.onMouseEnter;v==null||v(m),u()},S=h=>m=>{const v=h.onMouseLeave;v==null||v(m),d()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(h={})=>{const m={...Su(e),...Su(h)};return{role:"presentation",...h,...m,onBlur:f(m),onFocus:y(m),onMouseEnter:g(m),onMouseLeave:S(m)}},onClickAway:c}}function MA(e){return ge("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const RA=e=>{const{classes:t}=e;return ye({root:["root"],action:["action"],message:["message"]},MA,t)},DA=G(br,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Be(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Fb(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),TA=G("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),IA=G("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),OA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=RA(c);return x.jsxs(DA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[x.jsx(TA,{className:u.message,ownerState:c,children:a}),o?x.jsx(IA,{className:u.action,ownerState:c,children:o}):null]})});function $A(e){return ge("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const AA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`]};return ye(r,$A,t)},Yv=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}`]]}})(Be(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),_l=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=Cr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:y,disableWindowBlurListener:g=!1,message:S,onBlur:C,onClose:h,onFocus:m,onMouseEnter:v,onMouseLeave:b,open:E,resumeHideDuration:k,TransitionComponent:M=bl,transitionDuration:P=i,TransitionProps:{onEnter:$,onExited:w,...R}={},...A}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:P},O=AA(j),{getRootProps:T,onClickAway:I}=PA({...j}),[N,D]=p.useState(!0),L=Qe({elementType:Yv,getSlotProps:T,externalForwardedProps:A,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),z=H=>{D(!0),w&&w(H)},V=(H,se)=>{D(!1),$&&$(H,se)};return!E&&N?null:x.jsx(oO,{onClickAway:I,...f,children:x.jsx(Yv,{...L,children:x.jsx(M,{appear:!0,in:E,timeout:P,direction:s==="top"?"down":"up",onEnter:V,onExited:z,...R,children:u||x.jsx(OA,{message:S,action:a,...y})})})})}),Ri=uD({createStyledComponent:G("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),Ow=p.createContext();function LA(e){return ge("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const jA=e=>{const{classes:t,stickyHeader:n}=e;return ye({root:["root",n&&"stickyHeader"]},LA,t)},NA=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Be(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Kv="table",FA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=Kv,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=jA(u),f=p.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return x.jsx(Ow.Provider,{value:f,children:x.jsx(NA,{as:i,role:i===Kv?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),Bd=p.createContext();function BA(e){return ge("MuiTableBody",e)}me("MuiTableBody",["root"]);const zA=e=>{const{classes:t}=e;return ye({root:["root"]},BA,t)},_A=G("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),VA={variant:"body"},Gv="tbody",WA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=Gv,...a}=r,s={...r,component:i},l=zA(s);return x.jsx(Bd.Provider,{value:VA,children:x.jsx(_A,{className:pe(l.root,o),as:i,ref:n,role:i===Gv?null:"rowgroup",ownerState:s,...a})})});function UA(e){return ge("MuiTableCell",e)}const HA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),YA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return ye(s,UA,t)},KA=G("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]}})(Be(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Da(ze(e.palette.divider,1),.88):Ra(ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${HA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Pn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,y=p.useContext(Ow),g=p.useContext(Bd),S=g&&g.variant==="head";let C;a?C=a:C=S?"th":"td";let h=l;C==="td"?h=void 0:!h&&S&&(h="col");const m=d||g&&g.variant,v={...r,align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&y&&y.stickyHeader,variant:m},b=YA(v);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),x.jsx(KA,{as:C,ref:n,className:pe(b.root,i),"aria-sort":E,scope:h,ownerState:v,...f})});function GA(e){return ge("MuiTableContainer",e)}me("MuiTableContainer",["root"]);const QA=e=>{const{classes:t}=e;return ye({root:["root"]},GA,t)},XA=G("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),qA=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=QA(s);return x.jsx(XA,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function ZA(e){return ge("MuiTableHead",e)}me("MuiTableHead",["root"]);const JA=e=>{const{classes:t}=e;return ye({root:["root"]},ZA,t)},eL=G("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),tL={variant:"head"},Qv="thead",nL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableHead"}),{className:o,component:i=Qv,...a}=r,s={...r,component:i},l=JA(s);return x.jsx(Bd.Provider,{value:tL,children:x.jsx(eL,{as:i,className:pe(l.root,o),ref:n,role:i===Qv?null:"rowgroup",ownerState:s,...a})})});function rL(e){return ge("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const oL=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},rL,t)},iL=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Be(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),aL=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=oL(c);return x.jsx(iL,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})});function sL(e){return ge("MuiTableRow",e)}const Xv=me("MuiTableRow",["root","selected","hover","head","footer"]),lL=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ye({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},sL,t)},cL=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Be(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Xv.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(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}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),qv="tr",jf=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableRow"}),{className:o,component:i=qv,hover:a=!1,selected:s=!1,...l}=r,c=p.useContext(Bd),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=lL(u);return x.jsx(cL,{as:i,ref:n,className:pe(d.root,o),role:i===qv?null:"row",ownerState:u,...l})});function uL(e){return ge("MuiTextField",e)}me("MuiTextField",["root"]);const dL={standard:Ru,filled:Mu,outlined:Tu},fL=e=>{const{classes:t}=e;return ye({root:["root"]},uL,t)},pL=G(to,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cn=p.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:y=!1,helperText:g,id:S,InputLabelProps:C,inputProps:h,InputProps:m,inputRef:v,label:b,maxRows:E,minRows:k,multiline:M=!1,name:P,onBlur:$,onChange:w,onFocus:R,placeholder:A,required:j=!1,rows:O,select:T=!1,SelectProps:I,slots:N={},slotProps:D={},type:L,value:z,variant:V="outlined",...H}=r,se={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:y,multiline:M,required:j,select:T,variant:V},X=fL(se),Y=Uo(S),le=g&&Y?`${Y}-helper-text`:void 0,ae=b&&Y?`${Y}-label`:void 0,te=dL[V],Z={slots:N,slotProps:{input:m,inputLabel:C,htmlInput:h,formHelperText:f,select:I,...D}},re={},ie=Z.slotProps.inputLabel;V==="outlined"&&(ie&&typeof ie.shrink<"u"&&(re.notched=ie.shrink),re.label=b),T&&((!I||!I.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const[W,F]=In("input",{elementType:te,externalForwardedProps:Z,additionalProps:re,ownerState:se}),[K,Q]=In("inputLabel",{elementType:Nd,externalForwardedProps:Z,ownerState:se}),[ne,ue]=In("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:se}),[ee,fe]=In("formHelperText",{elementType:Cw,externalForwardedProps:Z,ownerState:se}),[ve,Le]=In("select",{elementType:Fd,externalForwardedProps:Z,ownerState:se}),xe=x.jsx(W,{"aria-describedby":le,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:y,multiline:M,name:P,rows:O,maxRows:E,minRows:k,type:L,value:z,id:Y,inputRef:v,onBlur:$,onChange:w,onFocus:R,placeholder:A,inputProps:ue,slots:{input:N.htmlInput?ne:void 0},...F});return x.jsxs(pL,{className:pe(X.root,s),disabled:u,error:d,fullWidth:y,ref:n,required:j,color:l,variant:V,ownerState:se,...H,children:[b!=null&&b!==""&&x.jsx(K,{htmlFor:Y,id:ae,...Q,children:b}),T?x.jsx(ve,{"aria-describedby":le,id:Y,labelId:ae,value:z,input:xe,...Le,children:a}):xe,g&&x.jsx(ee,{id:le,...fe,children:g})]})}),nn=p.createContext();var $w={exports:{}},Aw={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -195,7 +195,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Na=p;function hL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mL=typeof Object.is=="function"?Object.is:hL,gL=Na.useState,yL=Na.useEffect,vL=Na.useLayoutEffect,xL=Na.useDebugValue;function SL(e,t){var n=t(),r=gL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return vL(function(){o.value=n,o.getSnapshot=t,Ff(o)&&i({inst:o})},[e,n,t]),yL(function(){return Ff(o)&&i({inst:o}),e(function(){Ff(o)&&i({inst:o})})},[e]),xL(n),n}function Ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mL(e,n)}catch{return!0}}function bL(e,t){return t()}var wL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bL:SL;Aw.useSyncExternalStore=Na.useSyncExternalStore!==void 0?Na.useSyncExternalStore:wL;$w.exports=Aw;var Lw=$w.exports;const Po=()=>{},It=Po(),ma=Object,Te=e=>e===It,On=e=>typeof e=="function",jn=(e,t)=>({...e,...t}),CL=e=>On(e.then),Cc=new WeakMap;let kL=0;const wl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(ma(e)===e&&!r&&n!=RegExp){if(o=Cc.get(e),o)return o;if(o=++kL+"~",Cc.set(e,o),n==Array){for(o="@",i=0;i_d&&typeof window.requestAnimationFrame!=Km,Gm=(e,t)=>{const n=Nr.get(e);return[()=>!Te(t)&&e.get(t)||Bf,r=>{if(!Te(t)){const o=e.get(t);t in kc||(kc[t]=o),n[5](t,jn(o,r),o||Bf)}},n[6],()=>!Te(t)&&t in kc?kc[t]:!Te(t)&&e.get(t)||Bf]};let oh=!0;const PL=()=>oh,[ih,ah]=_d&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Po,Po],ML=()=>{const e=rh&&document.visibilityState;return Te(e)||e!=="hidden"},RL=e=>(rh&&document.addEventListener("visibilitychange",e),ih("focus",e),()=>{rh&&document.removeEventListener("visibilitychange",e),ah("focus",e)}),DL=e=>{const t=()=>{oh=!0,e()},n=()=>{oh=!1};return ih("online",t),ih("offline",n),()=>{ah("online",t),ah("offline",n)}},IL={isOnline:PL,isVisible:ML},OL={initFocus:RL,initReconnect:DL},Cl=!_t.useId,Si=!_d||"Deno"in window,jw=e=>EL()?window.requestAnimationFrame(e):setTimeout(e,1),no=Si?p.useEffect:p.useLayoutEffect,zf=typeof navigator<"u"&&navigator.connection,Zv=!Si&&zf&&(["slow-2g","2g"].includes(zf.effectiveType)||zf.saveData),Wl=e=>{if(On(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?wl(e):"",[e,t]};let $L=0;const Fa=()=>++$L,Nw=0,Fw=1,Bw=2,AL=3;var Fr={__proto__:null,ERROR_REVALIDATE_EVENT:AL,FOCUS_EVENT:Nw,MUTATE_EVENT:Bw,RECONNECT_EVENT:Fw};async function Qm(...e){const[t,n,r,o]=e,i=jn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=i.throwOnError;if(On(n)){const f=n,y=[],g=t.keys();for(const S of g)!/^\$(inf|sub)\$/.test(S)&&f(t.get(S)._k)&&y.push(S);return Promise.all(y.map(d))}return d(n);async function d(f){const[y]=Wl(f);if(!y)return;const[g,S]=Gm(t,y),[C,h,m,v]=Nr.get(t),b=()=>{const j=C[y];return(On(i.revalidate)?i.revalidate(g().data,f):i.revalidate!==!1)&&(delete m[y],delete v[y],j&&j[0])?j[0](Bw).then(()=>g().data):g().data};if(e.length<3)return b();let E=r,k;const M=Fa();h[y]=[M,0];const P=!Te(l),$=g(),w=$.data,R=$._c,A=Te(R)?w:R;if(P&&(l=On(l)?l(A,w):l,S({data:l,_c:A})),On(E))try{E=E(A)}catch(j){k=j}if(E&&CL(E))if(E=await E.catch(j=>{k=j}),M!==h[y][0]){if(k)throw k;return E}else k&&P&&c(k)&&(a=!0,S({data:A,_c:It}));if(a&&!k)if(On(a)){const j=a(E,A);S({data:j,error:It,_c:It})}else S({data:E,error:It,_c:It});if(h[y][1]=Fa(),Promise.resolve(b()).then(()=>{S({_c:It})}),k){if(u)throw k;return}return E}}const Jv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zw=(e,t)=>{if(!Nr.has(e)){const n=jn(OL,t),r={},o=Qm.bind(It,e);let i=Po;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const y=a[u];if(y)for(const g of y)g(d,f)},c=()=>{if(!Nr.has(e)&&(Nr.set(e,[r,{},{},{},o,l,s]),!Si)){const u=n.initFocus(setTimeout.bind(It,Jv.bind(It,r,Nw))),d=n.initReconnect(setTimeout.bind(It,Jv.bind(It,r,Fw)));i=()=>{u&&u(),d&&d(),Nr.delete(e)}}};return c(),[e,o,c,i]}return[e,Nr.get(e)[4]]},LL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Te(i)&&a>i||setTimeout(r,s,o)},jL=(e,t)=>wl(e)==wl(t),[Xm,qm]=zw(new Map),Vd=jn({onLoadingSlow:Po,onSuccess:Po,onError:Po,onErrorRetry:LL,onDiscarded:Po,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Zv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Zv?5e3:3e3,compare:jL,isPaused:()=>!1,cache:Xm,mutate:qm,fallback:{}},IL),_w=(e,t)=>{const n=jn(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=jn(o,a))}return n},sh=p.createContext({}),Zm=e=>{const{value:t}=e,n=p.useContext(sh),r=On(t),o=p.useMemo(()=>r?t(n):t,[r,n,t]),i=p.useMemo(()=>r?o:_w(n,o),[r,n,o]),a=o&&o.provider,s=p.useRef(It);a&&!s.current&&(s.current=zw(a(i.cache||Xm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),no(()=>{if(l)return l[2]&&l[2](),l[3]},[]),p.createElement(sh.Provider,jn(e,{value:i}))},NL="$inf$",Vw=_d&&window.__SWR_DEVTOOLS_USE__,FL=Vw?window.__SWR_DEVTOOLS_USE__:[],BL=()=>{Vw&&(window.__SWR_DEVTOOLS_REACT__=_t)},Ww=e=>On(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Uw=()=>jn(Vd,p.useContext(sh)),zL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Wl(t),[,,,s]=Nr.get(Xm);if(a.startsWith(NL))return n(...i);const l=s[a];return Te(l)?n(...i):(delete s[a],l)}),r),_L=FL.concat(zL),Hw=e=>function(...n){const r=Uw(),[o,i,a]=Ww(n),s=_w(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(_L);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},Yw=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},VL=(e,t)=>(...n)=>{const[r,o,i]=Ww(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};BL();const e0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),_f={dedupe:!0},WL=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Wl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,H=Te(V)?T:V,se=D.error,X=p.useRef(H),Y=f?Te(V)?X.current:V:H,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(H)?!1:l:Te(H)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,_f);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(H)||Si?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(_f).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(Y),i&&Te(H)&&h){if(!Cl&&Si)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);e0(F)}if(Te(se)){const F=re(_f);Te(Y)||(F.status="fulfilled",F.value=!0),e0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,Y},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}},UL=ma.defineProperty(Zm,"defaultValue",{value:Vd}),Bn=Hw(WL),Ri="https://timetrekah.goodflame.ru",HL=async e=>{const t=await fetch(Ri+e,{credentials:"include"});if(!t.ok){const n=new Error("An error occurred while fetching the data.");throw n.info=await t.json(),n.status=t.status,n}return t.json()},zn=e=>async t=>{const n=await fetch(Ri+t,{headers:{Authorization:`Token ${e}`},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Kw=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t+n+"/",{method:"DELETE",headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}},Gw=e=>async(t,{arg:n})=>{console.log(n);const r=await fetch(Ri+t+n.id+"/",{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Qw=async(e,{arg:t})=>{const n=await fetch(Ri+e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Jm=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Xw=e=>async(t,{arg:n})=>{const r=await fetch(Ri+t,{method:"POST",body:n,headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()};_t.use;ma.defineProperty(Zm,"defaultValue",{value:Vd});const Wd=()=>{const{token:e}=p.useContext(nn),{data:t,error:n,isLoading:r,mutate:o}=Bn(e?"/auth/users/me":null,zn(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function YL(){p.useState(0);const{user:e}=Wd();return p.useContext(nn),x.jsx(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:x.jsxs(Fe,{variant:"h1",children:["Welcome, ",e.username]})})}/** + */var Na=p;function hL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mL=typeof Object.is=="function"?Object.is:hL,gL=Na.useState,yL=Na.useEffect,vL=Na.useLayoutEffect,xL=Na.useDebugValue;function SL(e,t){var n=t(),r=gL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return vL(function(){o.value=n,o.getSnapshot=t,Nf(o)&&i({inst:o})},[e,n,t]),yL(function(){return Nf(o)&&i({inst:o}),e(function(){Nf(o)&&i({inst:o})})},[e]),xL(n),n}function Nf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mL(e,n)}catch{return!0}}function bL(e,t){return t()}var wL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bL:SL;Aw.useSyncExternalStore=Na.useSyncExternalStore!==void 0?Na.useSyncExternalStore:wL;$w.exports=Aw;var Lw=$w.exports;const Mo=()=>{},It=Mo(),ma=Object,Te=e=>e===It,On=e=>typeof e=="function",jn=(e,t)=>({...e,...t}),CL=e=>On(e.then),wc=new WeakMap;let kL=0;const wl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(ma(e)===e&&!r&&n!=RegExp){if(o=wc.get(e),o)return o;if(o=++kL+"~",wc.set(e,o),n==Array){for(o="@",i=0;izd&&typeof window.requestAnimationFrame!=Km,Gm=(e,t)=>{const n=Nr.get(e);return[()=>!Te(t)&&e.get(t)||Ff,r=>{if(!Te(t)){const o=e.get(t);t in Cc||(Cc[t]=o),n[5](t,jn(o,r),o||Ff)}},n[6],()=>!Te(t)&&t in Cc?Cc[t]:!Te(t)&&e.get(t)||Ff]};let rh=!0;const PL=()=>rh,[oh,ih]=zd&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Mo,Mo],ML=()=>{const e=nh&&document.visibilityState;return Te(e)||e!=="hidden"},RL=e=>(nh&&document.addEventListener("visibilitychange",e),oh("focus",e),()=>{nh&&document.removeEventListener("visibilitychange",e),ih("focus",e)}),DL=e=>{const t=()=>{rh=!0,e()},n=()=>{rh=!1};return oh("online",t),oh("offline",n),()=>{ih("online",t),ih("offline",n)}},IL={isOnline:PL,isVisible:ML},OL={initFocus:RL,initReconnect:DL},Cl=!_t.useId,bi=!zd||"Deno"in window,jw=e=>EL()?window.requestAnimationFrame(e):setTimeout(e,1),no=bi?p.useEffect:p.useLayoutEffect,Bf=typeof navigator<"u"&&navigator.connection,Zv=!bi&&Bf&&(["slow-2g","2g"].includes(Bf.effectiveType)||Bf.saveData),Vl=e=>{if(On(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?wl(e):"",[e,t]};let $L=0;const Fa=()=>++$L,Nw=0,Fw=1,Bw=2,AL=3;var Fr={__proto__:null,ERROR_REVALIDATE_EVENT:AL,FOCUS_EVENT:Nw,MUTATE_EVENT:Bw,RECONNECT_EVENT:Fw};async function Qm(...e){const[t,n,r,o]=e,i=jn({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=i.throwOnError;if(On(n)){const f=n,y=[],g=t.keys();for(const S of g)!/^\$(inf|sub)\$/.test(S)&&f(t.get(S)._k)&&y.push(S);return Promise.all(y.map(d))}return d(n);async function d(f){const[y]=Vl(f);if(!y)return;const[g,S]=Gm(t,y),[C,h,m,v]=Nr.get(t),b=()=>{const j=C[y];return(On(i.revalidate)?i.revalidate(g().data,f):i.revalidate!==!1)&&(delete m[y],delete v[y],j&&j[0])?j[0](Bw).then(()=>g().data):g().data};if(e.length<3)return b();let E=r,k;const M=Fa();h[y]=[M,0];const P=!Te(l),$=g(),w=$.data,R=$._c,A=Te(R)?w:R;if(P&&(l=On(l)?l(A,w):l,S({data:l,_c:A})),On(E))try{E=E(A)}catch(j){k=j}if(E&&CL(E))if(E=await E.catch(j=>{k=j}),M!==h[y][0]){if(k)throw k;return E}else k&&P&&c(k)&&(a=!0,S({data:A,_c:It}));if(a&&!k)if(On(a)){const j=a(E,A);S({data:j,error:It,_c:It})}else S({data:E,error:It,_c:It});if(h[y][1]=Fa(),Promise.resolve(b()).then(()=>{S({_c:It})}),k){if(u)throw k;return}return E}}const Jv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zw=(e,t)=>{if(!Nr.has(e)){const n=jn(OL,t),r={},o=Qm.bind(It,e);let i=Mo;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const y=a[u];if(y)for(const g of y)g(d,f)},c=()=>{if(!Nr.has(e)&&(Nr.set(e,[r,{},{},{},o,l,s]),!bi)){const u=n.initFocus(setTimeout.bind(It,Jv.bind(It,r,Nw))),d=n.initReconnect(setTimeout.bind(It,Jv.bind(It,r,Fw)));i=()=>{u&&u(),d&&d(),Nr.delete(e)}}};return c(),[e,o,c,i]}return[e,Nr.get(e)[4]]},LL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Te(i)&&a>i||setTimeout(r,s,o)},jL=(e,t)=>wl(e)==wl(t),[Xm,qm]=zw(new Map),_d=jn({onLoadingSlow:Mo,onSuccess:Mo,onError:Mo,onErrorRetry:LL,onDiscarded:Mo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Zv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Zv?5e3:3e3,compare:jL,isPaused:()=>!1,cache:Xm,mutate:qm,fallback:{}},IL),_w=(e,t)=>{const n=jn(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=jn(o,a))}return n},ah=p.createContext({}),Zm=e=>{const{value:t}=e,n=p.useContext(ah),r=On(t),o=p.useMemo(()=>r?t(n):t,[r,n,t]),i=p.useMemo(()=>r?o:_w(n,o),[r,n,o]),a=o&&o.provider,s=p.useRef(It);a&&!s.current&&(s.current=zw(a(i.cache||Xm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),no(()=>{if(l)return l[2]&&l[2](),l[3]},[]),p.createElement(ah.Provider,jn(e,{value:i}))},NL="$inf$",Vw=zd&&window.__SWR_DEVTOOLS_USE__,FL=Vw?window.__SWR_DEVTOOLS_USE__:[],BL=()=>{Vw&&(window.__SWR_DEVTOOLS_REACT__=_t)},Ww=e=>On(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Uw=()=>jn(_d,p.useContext(ah)),zL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Vl(t),[,,,s]=Nr.get(Xm);if(a.startsWith(NL))return n(...i);const l=s[a];return Te(l)?n(...i):(delete s[a],l)}),r),_L=FL.concat(zL),Hw=e=>function(...n){const r=Uw(),[o,i,a]=Ww(n),s=_w(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(_L);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},Yw=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},VL=(e,t)=>(...n)=>{const[r,o,i]=Ww(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};BL();const e0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),zf={dedupe:!0},WL=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Vl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,H=Te(V)?T:V,se=D.error,X=p.useRef(H),Y=f?Te(V)?X.current:V:H,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(H)?!1:l:Te(H)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,zf);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(H)||bi?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(zf).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(Y),i&&Te(H)&&h){if(!Cl&&bi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);e0(F)}if(Te(se)){const F=re(zf);Te(Y)||(F.status="fulfilled",F.value=!0),e0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,Y},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}},UL=ma.defineProperty(Zm,"defaultValue",{value:_d}),Bn=Hw(WL),Di="https://timetrekah.goodflame.ru",HL=async e=>{const t=await fetch(Di+e,{credentials:"include"});if(!t.ok){const n=new Error("An error occurred while fetching the data.");throw n.info=await t.json(),n.status=t.status,n}return t.json()},zn=e=>async t=>{const n=await fetch(Di+t,{headers:{Authorization:`Token ${e}`},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Kw=e=>async(t,{arg:n})=>{const r=await fetch(Di+t+n+"/",{method:"DELETE",headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}},Gw=e=>async(t,{arg:n})=>{console.log(n);const r=await fetch(Di+t+n.id+"/",{method:"PUT",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Qw=async(e,{arg:t})=>{const n=await fetch(Di+e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},credentials:"include"});if(!n.ok){const r=new Error("An error occurred while fetching the data.");throw r.info=await n.json(),r.status=n.status,r}return n.json()},Jm=e=>async(t,{arg:n})=>{const r=await fetch(Di+t,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()},Xw=e=>async(t,{arg:n})=>{const r=await fetch(Di+t,{method:"POST",body:n,headers:{Authorization:`Token ${e}`},credentials:"include"});if(!r.ok){const o=new Error("An error occurred while fetching the data.");throw o.info=await r.json(),o.status=r.status,o}return r.json()};_t.use;ma.defineProperty(Zm,"defaultValue",{value:_d});const Vd=()=>{const{token:e}=p.useContext(nn),{data:t,error:n,isLoading:r,mutate:o}=Bn(e?"/auth/users/me":null,zn(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function YL(){p.useState(0);const{user:e}=Vd();return p.useContext(nn),x.jsx(Ri,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:x.jsxs(Fe,{variant:"h1",children:["Welcome, ",e.username]})})}/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. @@ -204,8 +204,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GL(){return Math.random().toString(36).substr(2,8)}function n0(e,t){return{usr:e.state,key:e.key,idx:t}}function kl(e,t,n,r){return n===void 0&&(n=null),St({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ho(t):t,{state:n,key:t&&t.key||r||GL()})}function bi(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 Ho(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 QL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Nt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(St({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Nt.Pop;let C=u(),h=C==null?null:C-c;c=C,l&&l({action:s,location:S.location,delta:h})}function f(C,h){s=Nt.Push;let m=kl(S.location,C,h);c=u()+1;let v=n0(m,c),b=S.createHref(m);try{a.pushState(v,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:s,location:S.location,delta:1})}function y(C,h){s=Nt.Replace;let m=kl(S.location,C,h);c=u();let v=n0(m,c),b=S.createHref(m);a.replaceState(v,"",b),i&&l&&l({action:s,location:S.location,delta:0})}function g(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:bi(C);return m=m.replace(/ $/,"%20"),He(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let S={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(t0,d),l=C,()=>{o.removeEventListener(t0,d),l=null}},createHref(C){return t(o,C)},createURL:g,encodeLocation(C){let h=g(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(C){return a.go(C)}};return S}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));const XL=new Set(["lazy","caseSensitive","path","id","index","children"]);function qL(e){return e.index===!0}function Ou(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),qL(o)){let l=St({},o,t(o),{id:s});return r[s]=l,l}else{let l=St({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Ou(o.children,t,a,r)),l}})}function ti(e,t,n){return n===void 0&&(n="/"),Kc(e,t,n,!1)}function Kc(e,t,n,r){let o=typeof t=="string"?Ho(t):t,i=Ga(o.pathname||"/",n);if(i==null)return null;let a=qw(e);JL(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ro([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:aj(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Zw(i.path))o(i,a,l)}),t}function Zw(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 a=Zw(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function JL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ej=/^:[\w-]+$/,tj=3,nj=2,rj=1,oj=10,ij=-2,r0=e=>e==="*";function aj(e,t){let n=e.split("/"),r=n.length;return n.some(r0)&&(r+=ij),t&&(r+=nj),n.filter(o=>!r0(o)).reduce((o,i)=>o+(ej.test(i)?tj:i===""?rj:oj),r)}function sj(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 lj(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:y}=u;if(f==="*"){let S=s[d]||"";a=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=s[d];return y&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function cj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ba(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ba(!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 Ga(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 dj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ho(e):e;return{pathname:n?n.startsWith("/")?n:fj(n,t):t,search:hj(r),hash:mj(o)}}function fj(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 Vf(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 and the router will parse it for you.'}function Jw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eg(e,t){let n=Jw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ho(e):(o=St({},e),He(!o.pathname||!o.pathname.includes("?"),Vf("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Vf("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Vf("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=dj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ro=e=>e.join("/").replace(/\/\/+/g,"/"),pj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class $u{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ud(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],gj=new Set(e1),yj=["get",...e1],vj=new Set(yj),xj=new Set([301,302,303,307,308]),Sj=new Set([307,308]),Wf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),t1="remix-router-transitions";function Cj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;He(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let B=e.detectErrorBoundary;o=U=>({hasErrorBoundary:B(U)})}else o=wj;let i={},a=Ou(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||Mj,u=e.patchRoutesOnNavigation,d=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,g=null,S=null,C=null,h=e.hydrationData!=null,m=ti(a,e.history.location,l),v=null;if(m==null&&!u){let B=mn(404,{pathname:e.history.location.pathname}),{matches:U,route:q}=m0(a);m=U,v={[q.id]:B}}m&&!e.hydrationData&&Gl(m,a,e.history.location.pathname).active&&(m=null);let b;if(m)if(m.some(B=>B.route.lazy))b=!1;else if(!m.some(B=>B.route.loader))b=!0;else if(d.v7_partialHydration){let B=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let q=m.findIndex(de=>U[de.route.id]!==void 0);b=m.slice(0,q+1).every(de=>!ch(de.route,B,U))}else b=m.every(q=>!ch(q.route,B,U))}else b=e.hydrationData!=null;else if(b=!1,m=[],d.v7_partialHydration){let B=Gl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let E,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:b,navigation:Wf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},M=Nt.Pop,P=!1,$,w=!1,R=new Map,A=null,j=!1,O=!1,T=[],I=new Set,N=new Map,D=0,L=-1,z=new Map,V=new Set,H=new Map,se=new Map,X=new Set,Y=new Map,le=new Map,ae;function te(){if(f=e.history.listen(B=>{let{action:U,location:q,delta:de}=B;if(ae){ae(),ae=void 0;return}Ba(le.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=nt({currentLocation:k.location,nextLocation:q,historyAction:U});if(we&&de!=null){let Re=new Promise($e=>{ae=$e});e.history.go(de*-1),En(we,{state:"blocked",location:q,proceed(){En(we,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),Re.then(()=>e.history.go(de))},reset(){let $e=new Map(k.blockers);$e.set(we,hs),ie({blockers:$e})}});return}return Q(U,q)}),n){_j(t,R);let B=()=>Vj(t,R);t.addEventListener("pagehide",B),A=()=>t.removeEventListener("pagehide",B)}return k.initialized||Q(Nt.Pop,k.location,{initialHydration:!0}),E}function Z(){f&&f(),A&&A(),y.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>At(U)),k.blockers.forEach((B,U)=>vt(U))}function re(B){return y.add(B),()=>y.delete(B)}function ie(B,U){U===void 0&&(U={}),k=St({},k,B);let q=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(X.has(Re)?de.push(Re):q.push(Re))}),[...y].forEach(we=>we(k,{deletedFetchers:de,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(q.forEach(we=>k.fetchers.delete(we)),de.forEach(we=>At(we)))}function W(B,U,q){var de,we;let{flushSync:Re}=q===void 0?{}:q,$e=k.actionData!=null&&k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&k.navigation.state==="loading"&&((de=B.state)==null?void 0:de._isRedirect)!==!0,ke;U.actionData?Object.keys(U.actionData).length>0?ke=U.actionData:ke=null:$e?ke=k.actionData:ke=null;let Ee=U.loaderData?p0(k.loaderData,U.loaderData,U.matches||[],U.errors):k.loaderData,Ce=k.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((Ke,qt)=>Ce.set(qt,hs)));let De=P===!0||k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Nt.Pop||(M===Nt.Push?e.history.push(B,B.state):M===Nt.Replace&&e.history.replace(B,B.state));let Ue;if(M===Nt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?Ue={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(Ue={currentLocation:B,nextLocation:k.location})}else if(w){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),Ue={currentLocation:k.location,nextLocation:B}}ie(St({},U,{actionData:ke,loaderData:Ee,historyAction:M,location:B,initialized:!0,navigation:Wf,revalidation:"idle",restoreScrollPosition:yg(B,U.matches||k.matches),preventScrollReset:De,blockers:Ce}),{viewTransitionOpts:Ue,flushSync:Re===!0}),M=Nt.Pop,P=!1,w=!1,j=!1,O=!1,T=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let q=lh(k.location,k.matches,l,d.v7_prependBasename,B,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:de,submission:we,error:Re}=i0(d.v7_normalizeFormMethod,!1,q,U),$e=k.location,ke=kl(k.location,de,U&&U.state);ke=St({},ke,e.history.encodeLocation(ke));let Ee=U&&U.replace!=null?U.replace:void 0,Ce=Nt.Push;Ee===!0?Ce=Nt.Replace:Ee===!1||we!=null&&hr(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Nt.Replace);let De=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,Ue=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){En(Ke,{state:"blocked",location:ke,proceed(){En(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let qt=new Map(k.blockers);qt.set(Ke,hs),ie({blockers:qt})}});return}return await Q(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:De,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:Ue})}function K(){if(ut(),ie({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Q(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Q(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:w===!0})}}async function Q(B,U,q){$&&$.abort(),$=null,M=B,j=(q&&q.startUninterruptedRevalidation)===!0,rC(k.location,k.matches),P=(q&&q.preventScrollReset)===!0,w=(q&&q.enableViewTransition)===!0;let de=s||a,we=q&&q.overrideNavigation,Re=ti(de,U,l),$e=(q&&q.flushSync)===!0,ke=Gl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:dt,notFoundMatches:Ze,route:Et}=hn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[Et.id]:dt}},{flushSync:$e});return}if(k.initialized&&!O&&$j(k.location,U)&&!(q&&q.submission&&hr(q.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Ee=Wi(e.history,U,$.signal,q&&q.submission),Ce;if(q&&q.pendingError)Ce=[ni(Re).route.id,{type:at.error,error:q.pendingError}];else if(q&&q.submission&&hr(q.submission.formMethod)){let dt=await ne(Ee,U,q.submission,Re,ke.active,{replace:q.replace,flushSync:$e});if(dt.shortCircuited)return;if(dt.pendingActionResult){let[Ze,Et]=dt.pendingActionResult;if(Rn(Et)&&Ud(Et.error)&&Et.error.status===404){$=null,W(U,{matches:dt.matches,loaderData:{},errors:{[Ze]:Et.error}});return}}Re=dt.matches||Re,Ce=dt.pendingActionResult,we=Uf(U,q.submission),$e=!1,ke.active=!1,Ee=Wi(e.history,Ee.url,Ee.signal)}let{shortCircuited:De,matches:Ue,loaderData:Ke,errors:qt}=await ue(Ee,U,Re,ke.active,we,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,$e,Ce);De||($=null,W(U,St({matches:Ue||Re},h0(Ce),{loaderData:Ke,errors:qt})))}async function ne(B,U,q,de,we,Re){Re===void 0&&(Re={}),ut();let $e=Bj(U,q);if(ie({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Ql(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let De=ni(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[De,{type:at.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:De,error:Ue,route:Ke}=hn(U.pathname);return{matches:De,pendingActionResult:[Ke.id,{type:at.error,error:Ue}]}}}let ke,Ee=Ts(de,U);if(!Ee.route.action&&!Ee.route.lazy)ke={type:at.error,error:mn(405,{method:B.method,pathname:U.pathname,routeId:Ee.route.id})};else if(ke=(await Pe("action",k,B,[Ee],de,null))[Ee.route.id],B.signal.aborted)return{shortCircuited:!0};if(si(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=u0(ke.response.headers.get("Location"),new URL(B.url),l)===k.location.pathname+k.location.search,await tt(B,ke,!0,{submission:q,replace:Ce}),{shortCircuited:!0}}if(Mo(ke))throw mn(400,{type:"defer-action"});if(Rn(ke)){let Ce=ni(de,Ee.route.id);return(Re&&Re.replace)!==!0&&(M=Nt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Ee.route.id,ke]}}async function ue(B,U,q,de,we,Re,$e,ke,Ee,Ce,De){let Ue=we||Uf(U,Re),Ke=Re||$e||y0(Ue),qt=!j&&(!d.v7_partialHydration||!Ee);if(de){if(qt){let Pt=ee(De);ie(St({navigation:Ue},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Ql(q,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ni(Xe.partialMatches).route.id;return{matches:Xe.partialMatches,loaderData:{},errors:{[Pt]:Xe.error}}}else if(Xe.matches)q=Xe.matches;else{let{error:Pt,notFoundMatches:$i,route:qa}=hn(U.pathname);return{matches:$i,loaderData:{},errors:{[qa.id]:Pt}}}}let dt=s||a,[Ze,Et]=s0(e.history,k,q,Ke,U,d.v7_partialHydration&&Ee===!0,d.v7_skipActionErrorRevalidation,O,T,I,X,H,V,dt,l,De);if(Yr(Xe=>!(q&&q.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),L=++D,Ze.length===0&&Et.length===0){let Xe=go();return W(U,St({matches:q,loaderData:{},errors:De&&Rn(De[1])?{[De[0]]:De[1].error}:null},h0(De),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(qt){let Xe={};if(!de){Xe.navigation=Ue;let Pt=ee(De);Pt!==void 0&&(Xe.actionData=Pt)}Et.length>0&&(Xe.fetchers=fe(Et)),ie(Xe,{flushSync:Ce})}Et.forEach(Xe=>{st(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Oi=()=>Et.forEach(Xe=>st(Xe.key));$&&$.signal.addEventListener("abort",Oi);let{loaderResults:Qa,fetcherResults:Kr}=await _e(k,q,Ze,Et,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Oi),Et.forEach(Xe=>N.delete(Xe.key));let Pr=Ec(Qa);if(Pr)return await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};if(Pr=Ec(Kr),Pr)return V.add(Pr.key),await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Jd,errors:Xa}=f0(k,q,Qa,De,Et,Kr,Y);Y.forEach((Xe,Pt)=>{Xe.subscribe($i=>{($i||Xe.done)&&Y.delete(Pt)})}),d.v7_partialHydration&&Ee&&k.errors&&(Xa=St({},k.errors,Xa));let Yo=go(),Xl=Me(L),ql=Yo||Xl||Et.length>0;return St({matches:q,loaderData:Jd,errors:Xa},ql?{fetchers:new Map(k.fetchers)}:{})}function ee(B){if(B&&!Rn(B[1]))return{[B[0]]:B[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function fe(B){return B.forEach(U=>{let q=k.fetchers.get(U.key),de=ms(void 0,q?q.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ve(B,U,q,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");st(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=lh(k.location,k.matches,l,d.v7_prependBasename,q,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=ti(Re,$e,l),Ee=Gl(ke,Re,$e);if(Ee.active&&Ee.matches&&(ke=Ee.matches),!ke){Oe(B,U,mn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:De,error:Ue}=i0(d.v7_normalizeFormMethod,!0,$e,de);if(Ue){Oe(B,U,Ue,{flushSync:we});return}let Ke=Ts(ke,Ce),qt=(de&&de.preventScrollReset)===!0;if(De&&hr(De.formMethod)){Le(B,U,Ce,Ke,ke,Ee.active,we,qt,De);return}H.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Ee.active,we,qt,De)}async function Le(B,U,q,de,we,Re,$e,ke,Ee){ut(),H.delete(B);function Ce(Lt){if(!Lt.route.action&&!Lt.route.lazy){let Ai=mn(405,{method:Ee.formMethod,pathname:q,routeId:U});return Oe(B,U,Ai,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let De=k.fetchers.get(B);je(B,zj(Ee,De),{flushSync:$e});let Ue=new AbortController,Ke=Wi(e.history,q,Ue.signal,Ee);if(Re){let Lt=await Ql(we,q,Ke.signal);if(Lt.type==="aborted")return;if(Lt.type==="error"){Oe(B,U,Lt.error,{flushSync:$e});return}else if(Lt.matches){if(we=Lt.matches,de=Ts(we,q),Ce(de))return}else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,Ue);let qt=D,Ze=(await Pe("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===Ue&&N.delete(B);return}if(d.v7_fetcherPersist&&X.has(B)){if(si(Ze)||Rn(Ze)){je(B,xo(void 0));return}}else{if(si(Ze))if(N.delete(B),L>qt){je(B,xo(void 0));return}else return V.add(B),je(B,ms(Ee)),tt(Ke,Ze,!1,{fetcherSubmission:Ee,preventScrollReset:ke});if(Rn(Ze)){Oe(B,U,Ze.error);return}}if(Mo(Ze))throw mn(400,{type:"defer-action"});let Et=k.navigation.location||k.location,Oi=Wi(e.history,Et,Ue.signal),Qa=s||a,Kr=k.navigation.state!=="idle"?ti(Qa,k.navigation.location,l):k.matches;He(Kr,"Didn't find any matches after fetcher action");let Pr=++D;z.set(B,Pr);let Jd=ms(Ee,Ze.data);k.fetchers.set(B,Jd);let[Xa,Yo]=s0(e.history,k,Kr,Ee,Et,!1,d.v7_skipActionErrorRevalidation,O,T,I,X,H,V,Qa,l,[de.route.id,Ze]);Yo.filter(Lt=>Lt.key!==B).forEach(Lt=>{let Ai=Lt.key,vg=k.fetchers.get(Ai),aC=ms(void 0,vg?vg.data:void 0);k.fetchers.set(Ai,aC),st(Ai),Lt.controller&&N.set(Ai,Lt.controller)}),ie({fetchers:new Map(k.fetchers)});let Xl=()=>Yo.forEach(Lt=>st(Lt.key));Ue.signal.addEventListener("abort",Xl);let{loaderResults:ql,fetcherResults:Xe}=await _e(k,Kr,Xa,Yo,Oi);if(Ue.signal.aborted)return;Ue.signal.removeEventListener("abort",Xl),z.delete(B),N.delete(B),Yo.forEach(Lt=>N.delete(Lt.key));let Pt=Ec(ql);if(Pt)return tt(Oi,Pt.result,!1,{preventScrollReset:ke});if(Pt=Ec(Xe),Pt)return V.add(Pt.key),tt(Oi,Pt.result,!1,{preventScrollReset:ke});let{loaderData:$i,errors:qa}=f0(k,Kr,ql,void 0,Yo,Xe,Y);if(k.fetchers.has(B)){let Lt=xo(Ze.data);k.fetchers.set(B,Lt)}Me(Pr),k.navigation.state==="loading"&&Pr>L?(He(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Kr,loaderData:$i,errors:qa,fetchers:new Map(k.fetchers)})):(ie({errors:qa,loaderData:p0(k.loaderData,$i,Kr,qa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,q,de,we,Re,$e,ke,Ee){let Ce=k.fetchers.get(B);je(B,ms(Ee,Ce?Ce.data:void 0),{flushSync:$e});let De=new AbortController,Ue=Wi(e.history,q,De.signal);if(Re){let Ze=await Ql(we,q,Ue.signal);if(Ze.type==="aborted")return;if(Ze.type==="error"){Oe(B,U,Ze.error,{flushSync:$e});return}else if(Ze.matches)we=Ze.matches,de=Ts(we,q);else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,De);let Ke=D,dt=(await Pe("loader",k,Ue,[de],we,B))[de.route.id];if(Mo(dt)&&(dt=await rg(dt,Ue.signal,!0)||dt),N.get(B)===De&&N.delete(B),!Ue.signal.aborted){if(X.has(B)){je(B,xo(void 0));return}if(si(dt))if(L>Ke){je(B,xo(void 0));return}else{V.add(B),await tt(Ue,dt,!1,{preventScrollReset:ke});return}if(Rn(dt)){Oe(B,U,dt.error);return}He(!Mo(dt),"Unhandled fetcher deferred data"),je(B,xo(dt.data))}}async function tt(B,U,q,de){let{submission:we,fetcherSubmission:Re,preventScrollReset:$e,replace:ke}=de===void 0?{}:de;U.response.headers.has("X-Remix-Revalidate")&&(O=!0);let Ee=U.response.headers.get("Location");He(Ee,"Expected a Location header on the redirect Response"),Ee=u0(Ee,new URL(B.url),l);let Ce=kl(k.location,Ee,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(ng.test(Ee)){const Et=e.history.createURL(Ee);Ze=Et.origin!==t.location.origin||Ga(Et.pathname,l)==null}if(Ze){ke?t.location.replace(Ee):t.location.assign(Ee);return}}$=null;let De=ke===!0||U.response.headers.has("X-Remix-Replace")?Nt.Replace:Nt.Push,{formMethod:Ue,formAction:Ke,formEncType:qt}=k.navigation;!we&&!Re&&Ue&&Ke&&qt&&(we=y0(k.navigation));let dt=we||Re;if(Sj.has(U.response.status)&&dt&&hr(dt.formMethod))await Q(De,Ce,{submission:St({},dt,{formAction:Ee}),preventScrollReset:$e||P,enableViewTransition:q?w:void 0});else{let Ze=Uf(Ce,we);await Q(De,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||P,enableViewTransition:q?w:void 0})}}async function Pe(B,U,q,de,we,Re){let $e,ke={};try{$e=await Rj(c,B,U,q,de,we,Re,i,o)}catch(Ee){return de.forEach(Ce=>{ke[Ce.route.id]={type:at.error,error:Ee}}),ke}for(let[Ee,Ce]of Object.entries($e))if(Aj(Ce)){let De=Ce.result;ke[Ee]={type:at.redirect,response:Ij(De,q,Ee,we,l,d.v7_relativeSplatPath)}}else ke[Ee]=await Tj(Ce);return ke}async function _e(B,U,q,de,we){let Re=B.matches,$e=Pe("loader",B,we,q,U,null),ke=Promise.all(de.map(async De=>{if(De.matches&&De.match&&De.controller){let Ke=(await Pe("loader",B,Wi(e.history,De.path,De.controller.signal),[De.match],De.matches,De.key))[De.match.route.id];return{[De.key]:Ke}}else return Promise.resolve({[De.key]:{type:at.error,error:mn(404,{pathname:De.path})}})})),Ee=await $e,Ce=(await ke).reduce((De,Ue)=>Object.assign(De,Ue),{});return await Promise.all([Nj(U,Ee,we.signal,Re,B.loaderData),Fj(U,Ce,de)]),{loaderResults:Ee,fetcherResults:Ce}}function ut(){O=!0,T.push(...Yr()),H.forEach((B,U)=>{N.has(U)&&I.add(U),st(U)})}function je(B,U,q){q===void 0&&(q={}),k.fetchers.set(B,U),ie({fetchers:new Map(k.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function Oe(B,U,q,de){de===void 0&&(de={});let we=ni(k.matches,U);At(B),ie({errors:{[we.route.id]:q},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function pt(B){return d.v7_fetcherPersist&&(se.set(B,(se.get(B)||0)+1),X.has(B)&&X.delete(B)),k.fetchers.get(B)||bj}function At(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&z.has(B))&&st(B),H.delete(B),z.delete(B),V.delete(B),X.delete(B),I.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(se.get(B)||0)-1;U<=0?(se.delete(B),X.add(B)):se.set(B,U)}else At(B);ie({fetchers:new Map(k.fetchers)})}function st(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function Hn(B){for(let U of B){let q=pt(U),de=xo(q.data);k.fetchers.set(U,de)}}function go(){let B=[],U=!1;for(let q of V){let de=k.fetchers.get(q);He(de,"Expected fetcher: "+q),de.state==="loading"&&(V.delete(q),B.push(q),U=!0)}return Hn(B),U}function Me(B){let U=[];for(let[q,de]of z)if(de0}function qe(B,U){let q=k.blockers.get(B)||hs;return le.get(B)!==U&&le.set(B,U),q}function vt(B){k.blockers.delete(B),le.delete(B)}function En(B,U){let q=k.blockers.get(B)||hs;He(q.state==="unblocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="proceeding"||q.state==="blocked"&&U.state==="unblocked"||q.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+q.state+" -> "+U.state);let de=new Map(k.blockers);de.set(B,U),ie({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:q,historyAction:de}=B;if(le.size===0)return;le.size>1&&Ba(!1,"A router only supports one blocker at a time");let we=Array.from(le.entries()),[Re,$e]=we[we.length-1],ke=k.blockers.get(Re);if(!(ke&&ke.state==="proceeding")&&$e({currentLocation:U,nextLocation:q,historyAction:de}))return Re}function hn(B){let U=mn(404,{pathname:B}),q=s||a,{matches:de,route:we}=m0(q);return Yr(),{notFoundMatches:de,route:we,error:U}}function Yr(B){let U=[];return Y.forEach((q,de)=>{(!B||B(de))&&(q.cancel(),U.push(de),Y.delete(de))}),U}function Er(B,U,q){if(g=B,C=U,S=q||null,!h&&k.navigation===Wf){h=!0;let de=yg(k.location,k.matches);de!=null&&ie({restoreScrollPosition:de})}return()=>{g=null,C=null,S=null}}function gg(B,U){return S&&S(B,U.map(de=>ZL(de,k.loaderData)))||B.key}function rC(B,U){if(g&&C){let q=gg(B,U);g[q]=C()}}function yg(B,U){if(g){let q=gg(B,U),de=g[q];if(typeof de=="number")return de}return null}function Gl(B,U,q){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Kc(U,q,l,!0)}}else return{active:!0,matches:Kc(U,q,l,!0)||[]};return{active:!1,matches:null}}async function Ql(B,U,q){if(!u)return{type:"success",matches:B};let de=B;for(;;){let we=s==null,Re=s||a,$e=i;try{await u({path:U,matches:de,patch:(Ce,De)=>{q.aborted||c0(Ce,De,Re,$e,o)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:de}}finally{we&&!q.aborted&&(a=[...a])}if(q.aborted)return{type:"aborted"};let ke=ti(Re,U,l);if(ke)return{type:"success",matches:ke};let Ee=Kc(Re,U,l,!0);if(!Ee||de.length===Ee.length&&de.every((Ce,De)=>Ce.route.id===Ee[De].route.id))return{type:"success",matches:null};de=Ee}}function oC(B){i={},s=Ou(B,o,void 0,i)}function iC(B,U){let q=s==null;c0(B,U,s||a,i,o),q&&(a=[...a],ie({}))}return E={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:Er,navigate:F,fetch:ve,revalidate:K,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:pt,deleteFetcher:Ne,dispose:Z,getBlocker:qe,deleteBlocker:vt,patchRoutes:iC,_internalFetchControllers:N,_internalActiveDeferreds:Y,_internalSetRoutes:oC},E}function kj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lh(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=tg(o||".",eg(l,i),Ga(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let d=og(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),y=f.getAll("index");f.delete("index"),y.filter(S=>S).forEach(S=>f.append("index",S));let g=f.toString();u.search=g?"?"+g:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:ro([n,u.pathname])),bi(u)}function i0(e,t,n,r){if(!r||!kj(r))return{path:n};if(r.formMethod&&!jj(r.formMethod))return{path:n,error:mn(405,{method:r.formMethod})};let o=()=>({path:n,error:mn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=o1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,g)=>{let[S,C]=g;return""+y+S+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!hr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=uh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=uh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=d0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=d0(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(hr(u.formMethod))return{path:n,submission:u};let d=Ho(n);return t&&d.search&&og(d.search)&&l.append("index",""),d.search="?"+l,{path:bi(d),submission:u}}function a0(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function s0(e,t,n,r,o,i,a,s,l,c,u,d,f,y,g,S){let C=S?Rn(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=a0(n,Object.keys(t.errors)[0],!0):S&&Rn(S[1])&&(v=a0(n,S[0]));let b=S?S[1].statusCode:void 0,E=a&&b&&b>=400,k=v.filter((P,$)=>{let{route:w}=P;if(w.lazy)return!0;if(w.loader==null)return!1;if(i)return ch(w,t.loaderData,t.errors);if(Ej(t.loaderData,t.matches[$],P)||l.some(j=>j===P.route.id))return!0;let R=t.matches[$],A=P;return l0(P,St({currentUrl:h,currentParams:R.params,nextUrl:m,nextParams:A.params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s||h.pathname+h.search===m.pathname+m.search||h.search!==m.search||n1(R,A)}))}),M=[];return d.forEach((P,$)=>{if(i||!n.some(O=>O.route.id===P.routeId)||u.has($))return;let w=ti(y,P.path,g);if(!w){M.push({key:$,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),A=Ts(w,P.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=l0(A,St({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s})),j&&M.push({key:$,routeId:P.routeId,path:P.path,matches:w,match:A,controller:new AbortController})}),[k,M]}function ch(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function Ej(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function n1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function l0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function c0(e,t,n,r,o){var i;let a;if(e){let c=r[e];He(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>r1(c,u))),l=Ou(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function r1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>r1(n,i))}):!1}async function Pj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];He(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Ba(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!XL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,St({},t(o),{lazy:void 0}))}async function Mj(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function Rj(e,t,n,r,o,i,a,s,l,c){let u=i.map(y=>y.route.lazy?Pj(y.route,l,s):void 0),d=i.map((y,g)=>{let S=u[g],C=o.some(m=>m.route.id===y.route.id);return St({},y,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(C=!0),C?Dj(t,r,y,S,m,c):Promise.resolve({type:at.data,result:void 0}))})}),f=await e({matches:d,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function Dj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((g,S)=>u=S);s=()=>u(),t.signal.addEventListener("abort",s);let f=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(S=>f(S)):f())}}catch(g){return{type:"error",result:g}}})();return Promise.race([y,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw mn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:at.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw mn(404,{pathname:d})}He(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:at.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function Tj(e){let{result:t,type:n}=e;if(i1(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:at.error,error:u}}return n===at.error?{type:at.error,error:new $u(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:at.data,data:c,statusCode:t.status,headers:t.headers}}if(n===at.error){if(g0(t)){var r;if(t.data instanceof Error){var o;return{type:at.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new $u(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:at.error,error:t,statusCode:Ud(t)?t.status:void 0}}if(Lj(t)){var i,a;return{type:at.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(g0(t)){var s,l;return{type:at.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:at.data,data:t}}function Ij(e,t,n,r,o,i){let a=e.headers.get("Location");if(He(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ng.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=lh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function u0(e,t,n){if(ng.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ga(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Wi(e,t,n,r){let o=e.createURL(o1(t)).toString(),i={signal:n};if(r&&hr(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=uh(r.formData):i.body=r.formData}return new Request(o,i)}function uh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function d0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Oj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&Rn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,y=t[f];if(He(!si(y),"Cannot handle redirect results in processLoaderData"),Rn(y)){let g=y.error;u!==void 0&&(g=u,u=void 0),a=a||{};{let S=ni(e,f);a[S.route.id]==null&&(a[S.route.id]=g)}i[f]=void 0,l||(l=!0,s=Ud(y.error)?y.error.status:500),y.headers&&(c[f]=y.headers)}else Mo(y)?(r.set(f,y.deferredData),i[f]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers)):(i[f]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function f0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Oj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,y=i[u];if(He(y,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Rn(y)){let g=ni(e.matches,d==null?void 0:d.route.id);l&&l[g.route.id]||(l=St({},l,{[g.route.id]:y.error})),e.fetchers.delete(u)}else if(si(y))He(!1,"Unhandled fetcher revalidation redirect");else if(Mo(y))He(!1,"Unhandled fetcher deferred data");else{let g=xo(y.data);e.fetchers.set(u,g)}}),{loaderData:s,errors:l}}function p0(e,t,n,r){let o=St({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function h0(e){return e?Rn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ni(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function m0(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new $u(e||500,s,new Error(l),!0)}function Ec(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(si(o))return{key:r,result:o}}}function o1(e){let t=typeof e=="string"?Ho(e):e;return bi(St({},t,{hash:""}))}function $j(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Aj(e){return i1(e.result)&&xj.has(e.result.status)}function Mo(e){return e.type===at.deferred}function Rn(e){return e.type===at.error}function si(e){return(e&&e.type)===at.redirect}function g0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Lj(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function i1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jj(e){return vj.has(e.toLowerCase())}function hr(e){return gj.has(e.toLowerCase())}async function Nj(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!n1(u,c)&&(o&&o[c.route.id])!==void 0;Mo(l)&&d&&await rg(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Fj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Mo(s)&&(He(a,"Expected an AbortController for revalidating fetcher deferred result"),await rg(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function rg(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(o){return{type:at.error,error:o}}return{type:at.data,data:e.deferredData.data}}}function og(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ts(e,t){let n=typeof t=="string"?Ho(t).search:t.search;if(e[e.length-1].route.index&&og(n||""))return e[e.length-1];let r=Jw(e);return r[r.length-1]}function y0(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Uf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bj(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ms(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zj(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function _j(e,t){try{let n=e.sessionStorage.getItem(t1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Vj(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(t1,JSON.stringify(n))}catch(r){Ba(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GL(){return Math.random().toString(36).substr(2,8)}function n0(e,t){return{usr:e.state,key:e.key,idx:t}}function kl(e,t,n,r){return n===void 0&&(n=null),St({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yo(t):t,{state:n,key:t&&t.key||r||GL()})}function wi(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 Yo(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 QL(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Nt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(St({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Nt.Pop;let C=u(),h=C==null?null:C-c;c=C,l&&l({action:s,location:S.location,delta:h})}function f(C,h){s=Nt.Push;let m=kl(S.location,C,h);c=u()+1;let v=n0(m,c),b=S.createHref(m);try{a.pushState(v,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:s,location:S.location,delta:1})}function y(C,h){s=Nt.Replace;let m=kl(S.location,C,h);c=u();let v=n0(m,c),b=S.createHref(m);a.replaceState(v,"",b),i&&l&&l({action:s,location:S.location,delta:0})}function g(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:wi(C);return m=m.replace(/ $/,"%20"),He(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let S={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(t0,d),l=C,()=>{o.removeEventListener(t0,d),l=null}},createHref(C){return t(o,C)},createURL:g,encodeLocation(C){let h=g(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(C){return a.go(C)}};return S}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));const XL=new Set(["lazy","caseSensitive","path","id","index","children"]);function qL(e){return e.index===!0}function Iu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),qL(o)){let l=St({},o,t(o),{id:s});return r[s]=l,l}else{let l=St({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Iu(o.children,t,a,r)),l}})}function ni(e,t,n){return n===void 0&&(n="/"),Yc(e,t,n,!1)}function Yc(e,t,n,r){let o=typeof t=="string"?Yo(t):t,i=Ga(o.pathname||"/",n);if(i==null)return null;let a=qw(e);JL(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ro([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:aj(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Zw(i.path))o(i,a,l)}),t}function Zw(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 a=Zw(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function JL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ej=/^:[\w-]+$/,tj=3,nj=2,rj=1,oj=10,ij=-2,r0=e=>e==="*";function aj(e,t){let n=e.split("/"),r=n.length;return n.some(r0)&&(r+=ij),t&&(r+=nj),n.filter(o=>!r0(o)).reduce((o,i)=>o+(ej.test(i)?tj:i===""?rj:oj),r)}function sj(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 lj(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:y}=u;if(f==="*"){let S=s[d]||"";a=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=s[d];return y&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function cj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ba(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ba(!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 Ga(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 dj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yo(e):e;return{pathname:n?n.startsWith("/")?n:fj(n,t):t,search:hj(r),hash:mj(o)}}function fj(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 _f(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 and the router will parse it for you.'}function Jw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eg(e,t){let n=Jw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Yo(e):(o=St({},e),He(!o.pathname||!o.pathname.includes("?"),_f("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),_f("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),_f("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=dj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ro=e=>e.join("/").replace(/\/\/+/g,"/"),pj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ou{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Wd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],gj=new Set(e1),yj=["get",...e1],vj=new Set(yj),xj=new Set([301,302,303,307,308]),Sj=new Set([307,308]),Vf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),t1="remix-router-transitions";function Cj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;He(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let B=e.detectErrorBoundary;o=U=>({hasErrorBoundary:B(U)})}else o=wj;let i={},a=Iu(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||Mj,u=e.patchRoutesOnNavigation,d=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,g=null,S=null,C=null,h=e.hydrationData!=null,m=ni(a,e.history.location,l),v=null;if(m==null&&!u){let B=mn(404,{pathname:e.history.location.pathname}),{matches:U,route:q}=m0(a);m=U,v={[q.id]:B}}m&&!e.hydrationData&&Kl(m,a,e.history.location.pathname).active&&(m=null);let b;if(m)if(m.some(B=>B.route.lazy))b=!1;else if(!m.some(B=>B.route.loader))b=!0;else if(d.v7_partialHydration){let B=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let q=m.findIndex(de=>U[de.route.id]!==void 0);b=m.slice(0,q+1).every(de=>!lh(de.route,B,U))}else b=m.every(q=>!lh(q.route,B,U))}else b=e.hydrationData!=null;else if(b=!1,m=[],d.v7_partialHydration){let B=Kl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let E,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:b,navigation:Vf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},M=Nt.Pop,P=!1,$,w=!1,R=new Map,A=null,j=!1,O=!1,T=[],I=new Set,N=new Map,D=0,L=-1,z=new Map,V=new Set,H=new Map,se=new Map,X=new Set,Y=new Map,le=new Map,ae;function te(){if(f=e.history.listen(B=>{let{action:U,location:q,delta:de}=B;if(ae){ae(),ae=void 0;return}Ba(le.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=nt({currentLocation:k.location,nextLocation:q,historyAction:U});if(we&&de!=null){let Re=new Promise($e=>{ae=$e});e.history.go(de*-1),En(we,{state:"blocked",location:q,proceed(){En(we,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),Re.then(()=>e.history.go(de))},reset(){let $e=new Map(k.blockers);$e.set(we,hs),ie({blockers:$e})}});return}return Q(U,q)}),n){_j(t,R);let B=()=>Vj(t,R);t.addEventListener("pagehide",B),A=()=>t.removeEventListener("pagehide",B)}return k.initialized||Q(Nt.Pop,k.location,{initialHydration:!0}),E}function Z(){f&&f(),A&&A(),y.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>At(U)),k.blockers.forEach((B,U)=>vt(U))}function re(B){return y.add(B),()=>y.delete(B)}function ie(B,U){U===void 0&&(U={}),k=St({},k,B);let q=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(X.has(Re)?de.push(Re):q.push(Re))}),[...y].forEach(we=>we(k,{deletedFetchers:de,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),d.v7_fetcherPersist&&(q.forEach(we=>k.fetchers.delete(we)),de.forEach(we=>At(we)))}function W(B,U,q){var de,we;let{flushSync:Re}=q===void 0?{}:q,$e=k.actionData!=null&&k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&k.navigation.state==="loading"&&((de=B.state)==null?void 0:de._isRedirect)!==!0,ke;U.actionData?Object.keys(U.actionData).length>0?ke=U.actionData:ke=null:$e?ke=k.actionData:ke=null;let Ee=U.loaderData?p0(k.loaderData,U.loaderData,U.matches||[],U.errors):k.loaderData,Ce=k.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((Ke,qt)=>Ce.set(qt,hs)));let De=P===!0||k.navigation.formMethod!=null&&hr(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Nt.Pop||(M===Nt.Push?e.history.push(B,B.state):M===Nt.Replace&&e.history.replace(B,B.state));let Ue;if(M===Nt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?Ue={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(Ue={currentLocation:B,nextLocation:k.location})}else if(w){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),Ue={currentLocation:k.location,nextLocation:B}}ie(St({},U,{actionData:ke,loaderData:Ee,historyAction:M,location:B,initialized:!0,navigation:Vf,revalidation:"idle",restoreScrollPosition:yg(B,U.matches||k.matches),preventScrollReset:De,blockers:Ce}),{viewTransitionOpts:Ue,flushSync:Re===!0}),M=Nt.Pop,P=!1,w=!1,j=!1,O=!1,T=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let q=sh(k.location,k.matches,l,d.v7_prependBasename,B,d.v7_relativeSplatPath,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:de,submission:we,error:Re}=i0(d.v7_normalizeFormMethod,!1,q,U),$e=k.location,ke=kl(k.location,de,U&&U.state);ke=St({},ke,e.history.encodeLocation(ke));let Ee=U&&U.replace!=null?U.replace:void 0,Ce=Nt.Push;Ee===!0?Ce=Nt.Replace:Ee===!1||we!=null&&hr(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Nt.Replace);let De=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,Ue=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){En(Ke,{state:"blocked",location:ke,proceed(){En(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let qt=new Map(k.blockers);qt.set(Ke,hs),ie({blockers:qt})}});return}return await Q(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:De,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:Ue})}function K(){if(ut(),ie({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Q(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Q(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:w===!0})}}async function Q(B,U,q){$&&$.abort(),$=null,M=B,j=(q&&q.startUninterruptedRevalidation)===!0,rC(k.location,k.matches),P=(q&&q.preventScrollReset)===!0,w=(q&&q.enableViewTransition)===!0;let de=s||a,we=q&&q.overrideNavigation,Re=ni(de,U,l),$e=(q&&q.flushSync)===!0,ke=Kl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:dt,notFoundMatches:Ze,route:Et}=hn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[Et.id]:dt}},{flushSync:$e});return}if(k.initialized&&!O&&$j(k.location,U)&&!(q&&q.submission&&hr(q.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Ee=Wi(e.history,U,$.signal,q&&q.submission),Ce;if(q&&q.pendingError)Ce=[ri(Re).route.id,{type:at.error,error:q.pendingError}];else if(q&&q.submission&&hr(q.submission.formMethod)){let dt=await ne(Ee,U,q.submission,Re,ke.active,{replace:q.replace,flushSync:$e});if(dt.shortCircuited)return;if(dt.pendingActionResult){let[Ze,Et]=dt.pendingActionResult;if(Rn(Et)&&Wd(Et.error)&&Et.error.status===404){$=null,W(U,{matches:dt.matches,loaderData:{},errors:{[Ze]:Et.error}});return}}Re=dt.matches||Re,Ce=dt.pendingActionResult,we=Wf(U,q.submission),$e=!1,ke.active=!1,Ee=Wi(e.history,Ee.url,Ee.signal)}let{shortCircuited:De,matches:Ue,loaderData:Ke,errors:qt}=await ue(Ee,U,Re,ke.active,we,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,$e,Ce);De||($=null,W(U,St({matches:Ue||Re},h0(Ce),{loaderData:Ke,errors:qt})))}async function ne(B,U,q,de,we,Re){Re===void 0&&(Re={}),ut();let $e=Bj(U,q);if(ie({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Gl(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let De=ri(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[De,{type:at.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:De,error:Ue,route:Ke}=hn(U.pathname);return{matches:De,pendingActionResult:[Ke.id,{type:at.error,error:Ue}]}}}let ke,Ee=Ts(de,U);if(!Ee.route.action&&!Ee.route.lazy)ke={type:at.error,error:mn(405,{method:B.method,pathname:U.pathname,routeId:Ee.route.id})};else if(ke=(await Pe("action",k,B,[Ee],de,null))[Ee.route.id],B.signal.aborted)return{shortCircuited:!0};if(li(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=u0(ke.response.headers.get("Location"),new URL(B.url),l)===k.location.pathname+k.location.search,await tt(B,ke,!0,{submission:q,replace:Ce}),{shortCircuited:!0}}if(Ro(ke))throw mn(400,{type:"defer-action"});if(Rn(ke)){let Ce=ri(de,Ee.route.id);return(Re&&Re.replace)!==!0&&(M=Nt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Ee.route.id,ke]}}async function ue(B,U,q,de,we,Re,$e,ke,Ee,Ce,De){let Ue=we||Wf(U,Re),Ke=Re||$e||y0(Ue),qt=!j&&(!d.v7_partialHydration||!Ee);if(de){if(qt){let Pt=ee(De);ie(St({navigation:Ue},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Gl(q,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ri(Xe.partialMatches).route.id;return{matches:Xe.partialMatches,loaderData:{},errors:{[Pt]:Xe.error}}}else if(Xe.matches)q=Xe.matches;else{let{error:Pt,notFoundMatches:$i,route:qa}=hn(U.pathname);return{matches:$i,loaderData:{},errors:{[qa.id]:Pt}}}}let dt=s||a,[Ze,Et]=s0(e.history,k,q,Ke,U,d.v7_partialHydration&&Ee===!0,d.v7_skipActionErrorRevalidation,O,T,I,X,H,V,dt,l,De);if(Yr(Xe=>!(q&&q.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),L=++D,Ze.length===0&&Et.length===0){let Xe=yo();return W(U,St({matches:q,loaderData:{},errors:De&&Rn(De[1])?{[De[0]]:De[1].error}:null},h0(De),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(qt){let Xe={};if(!de){Xe.navigation=Ue;let Pt=ee(De);Pt!==void 0&&(Xe.actionData=Pt)}Et.length>0&&(Xe.fetchers=fe(Et)),ie(Xe,{flushSync:Ce})}Et.forEach(Xe=>{st(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Oi=()=>Et.forEach(Xe=>st(Xe.key));$&&$.signal.addEventListener("abort",Oi);let{loaderResults:Qa,fetcherResults:Kr}=await _e(k,q,Ze,Et,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Oi),Et.forEach(Xe=>N.delete(Xe.key));let Pr=kc(Qa);if(Pr)return await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};if(Pr=kc(Kr),Pr)return V.add(Pr.key),await tt(B,Pr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Zd,errors:Xa}=f0(k,q,Qa,De,Et,Kr,Y);Y.forEach((Xe,Pt)=>{Xe.subscribe($i=>{($i||Xe.done)&&Y.delete(Pt)})}),d.v7_partialHydration&&Ee&&k.errors&&(Xa=St({},k.errors,Xa));let Ko=yo(),Ql=Me(L),Xl=Ko||Ql||Et.length>0;return St({matches:q,loaderData:Zd,errors:Xa},Xl?{fetchers:new Map(k.fetchers)}:{})}function ee(B){if(B&&!Rn(B[1]))return{[B[0]]:B[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function fe(B){return B.forEach(U=>{let q=k.fetchers.get(U.key),de=ms(void 0,q?q.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ve(B,U,q,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");st(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=sh(k.location,k.matches,l,d.v7_prependBasename,q,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=ni(Re,$e,l),Ee=Kl(ke,Re,$e);if(Ee.active&&Ee.matches&&(ke=Ee.matches),!ke){Oe(B,U,mn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:De,error:Ue}=i0(d.v7_normalizeFormMethod,!0,$e,de);if(Ue){Oe(B,U,Ue,{flushSync:we});return}let Ke=Ts(ke,Ce),qt=(de&&de.preventScrollReset)===!0;if(De&&hr(De.formMethod)){Le(B,U,Ce,Ke,ke,Ee.active,we,qt,De);return}H.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Ee.active,we,qt,De)}async function Le(B,U,q,de,we,Re,$e,ke,Ee){ut(),H.delete(B);function Ce(Lt){if(!Lt.route.action&&!Lt.route.lazy){let Ai=mn(405,{method:Ee.formMethod,pathname:q,routeId:U});return Oe(B,U,Ai,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let De=k.fetchers.get(B);je(B,zj(Ee,De),{flushSync:$e});let Ue=new AbortController,Ke=Wi(e.history,q,Ue.signal,Ee);if(Re){let Lt=await Gl(we,q,Ke.signal);if(Lt.type==="aborted")return;if(Lt.type==="error"){Oe(B,U,Lt.error,{flushSync:$e});return}else if(Lt.matches){if(we=Lt.matches,de=Ts(we,q),Ce(de))return}else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,Ue);let qt=D,Ze=(await Pe("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===Ue&&N.delete(B);return}if(d.v7_fetcherPersist&&X.has(B)){if(li(Ze)||Rn(Ze)){je(B,So(void 0));return}}else{if(li(Ze))if(N.delete(B),L>qt){je(B,So(void 0));return}else return V.add(B),je(B,ms(Ee)),tt(Ke,Ze,!1,{fetcherSubmission:Ee,preventScrollReset:ke});if(Rn(Ze)){Oe(B,U,Ze.error);return}}if(Ro(Ze))throw mn(400,{type:"defer-action"});let Et=k.navigation.location||k.location,Oi=Wi(e.history,Et,Ue.signal),Qa=s||a,Kr=k.navigation.state!=="idle"?ni(Qa,k.navigation.location,l):k.matches;He(Kr,"Didn't find any matches after fetcher action");let Pr=++D;z.set(B,Pr);let Zd=ms(Ee,Ze.data);k.fetchers.set(B,Zd);let[Xa,Ko]=s0(e.history,k,Kr,Ee,Et,!1,d.v7_skipActionErrorRevalidation,O,T,I,X,H,V,Qa,l,[de.route.id,Ze]);Ko.filter(Lt=>Lt.key!==B).forEach(Lt=>{let Ai=Lt.key,vg=k.fetchers.get(Ai),aC=ms(void 0,vg?vg.data:void 0);k.fetchers.set(Ai,aC),st(Ai),Lt.controller&&N.set(Ai,Lt.controller)}),ie({fetchers:new Map(k.fetchers)});let Ql=()=>Ko.forEach(Lt=>st(Lt.key));Ue.signal.addEventListener("abort",Ql);let{loaderResults:Xl,fetcherResults:Xe}=await _e(k,Kr,Xa,Ko,Oi);if(Ue.signal.aborted)return;Ue.signal.removeEventListener("abort",Ql),z.delete(B),N.delete(B),Ko.forEach(Lt=>N.delete(Lt.key));let Pt=kc(Xl);if(Pt)return tt(Oi,Pt.result,!1,{preventScrollReset:ke});if(Pt=kc(Xe),Pt)return V.add(Pt.key),tt(Oi,Pt.result,!1,{preventScrollReset:ke});let{loaderData:$i,errors:qa}=f0(k,Kr,Xl,void 0,Ko,Xe,Y);if(k.fetchers.has(B)){let Lt=So(Ze.data);k.fetchers.set(B,Lt)}Me(Pr),k.navigation.state==="loading"&&Pr>L?(He(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Kr,loaderData:$i,errors:qa,fetchers:new Map(k.fetchers)})):(ie({errors:qa,loaderData:p0(k.loaderData,$i,Kr,qa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,q,de,we,Re,$e,ke,Ee){let Ce=k.fetchers.get(B);je(B,ms(Ee,Ce?Ce.data:void 0),{flushSync:$e});let De=new AbortController,Ue=Wi(e.history,q,De.signal);if(Re){let Ze=await Gl(we,q,Ue.signal);if(Ze.type==="aborted")return;if(Ze.type==="error"){Oe(B,U,Ze.error,{flushSync:$e});return}else if(Ze.matches)we=Ze.matches,de=Ts(we,q);else{Oe(B,U,mn(404,{pathname:q}),{flushSync:$e});return}}N.set(B,De);let Ke=D,dt=(await Pe("loader",k,Ue,[de],we,B))[de.route.id];if(Ro(dt)&&(dt=await rg(dt,Ue.signal,!0)||dt),N.get(B)===De&&N.delete(B),!Ue.signal.aborted){if(X.has(B)){je(B,So(void 0));return}if(li(dt))if(L>Ke){je(B,So(void 0));return}else{V.add(B),await tt(Ue,dt,!1,{preventScrollReset:ke});return}if(Rn(dt)){Oe(B,U,dt.error);return}He(!Ro(dt),"Unhandled fetcher deferred data"),je(B,So(dt.data))}}async function tt(B,U,q,de){let{submission:we,fetcherSubmission:Re,preventScrollReset:$e,replace:ke}=de===void 0?{}:de;U.response.headers.has("X-Remix-Revalidate")&&(O=!0);let Ee=U.response.headers.get("Location");He(Ee,"Expected a Location header on the redirect Response"),Ee=u0(Ee,new URL(B.url),l);let Ce=kl(k.location,Ee,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(ng.test(Ee)){const Et=e.history.createURL(Ee);Ze=Et.origin!==t.location.origin||Ga(Et.pathname,l)==null}if(Ze){ke?t.location.replace(Ee):t.location.assign(Ee);return}}$=null;let De=ke===!0||U.response.headers.has("X-Remix-Replace")?Nt.Replace:Nt.Push,{formMethod:Ue,formAction:Ke,formEncType:qt}=k.navigation;!we&&!Re&&Ue&&Ke&&qt&&(we=y0(k.navigation));let dt=we||Re;if(Sj.has(U.response.status)&&dt&&hr(dt.formMethod))await Q(De,Ce,{submission:St({},dt,{formAction:Ee}),preventScrollReset:$e||P,enableViewTransition:q?w:void 0});else{let Ze=Wf(Ce,we);await Q(De,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||P,enableViewTransition:q?w:void 0})}}async function Pe(B,U,q,de,we,Re){let $e,ke={};try{$e=await Rj(c,B,U,q,de,we,Re,i,o)}catch(Ee){return de.forEach(Ce=>{ke[Ce.route.id]={type:at.error,error:Ee}}),ke}for(let[Ee,Ce]of Object.entries($e))if(Aj(Ce)){let De=Ce.result;ke[Ee]={type:at.redirect,response:Ij(De,q,Ee,we,l,d.v7_relativeSplatPath)}}else ke[Ee]=await Tj(Ce);return ke}async function _e(B,U,q,de,we){let Re=B.matches,$e=Pe("loader",B,we,q,U,null),ke=Promise.all(de.map(async De=>{if(De.matches&&De.match&&De.controller){let Ke=(await Pe("loader",B,Wi(e.history,De.path,De.controller.signal),[De.match],De.matches,De.key))[De.match.route.id];return{[De.key]:Ke}}else return Promise.resolve({[De.key]:{type:at.error,error:mn(404,{pathname:De.path})}})})),Ee=await $e,Ce=(await ke).reduce((De,Ue)=>Object.assign(De,Ue),{});return await Promise.all([Nj(U,Ee,we.signal,Re,B.loaderData),Fj(U,Ce,de)]),{loaderResults:Ee,fetcherResults:Ce}}function ut(){O=!0,T.push(...Yr()),H.forEach((B,U)=>{N.has(U)&&I.add(U),st(U)})}function je(B,U,q){q===void 0&&(q={}),k.fetchers.set(B,U),ie({fetchers:new Map(k.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function Oe(B,U,q,de){de===void 0&&(de={});let we=ri(k.matches,U);At(B),ie({errors:{[we.route.id]:q},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function pt(B){return d.v7_fetcherPersist&&(se.set(B,(se.get(B)||0)+1),X.has(B)&&X.delete(B)),k.fetchers.get(B)||bj}function At(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&z.has(B))&&st(B),H.delete(B),z.delete(B),V.delete(B),X.delete(B),I.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(se.get(B)||0)-1;U<=0?(se.delete(B),X.add(B)):se.set(B,U)}else At(B);ie({fetchers:new Map(k.fetchers)})}function st(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function Hn(B){for(let U of B){let q=pt(U),de=So(q.data);k.fetchers.set(U,de)}}function yo(){let B=[],U=!1;for(let q of V){let de=k.fetchers.get(q);He(de,"Expected fetcher: "+q),de.state==="loading"&&(V.delete(q),B.push(q),U=!0)}return Hn(B),U}function Me(B){let U=[];for(let[q,de]of z)if(de0}function qe(B,U){let q=k.blockers.get(B)||hs;return le.get(B)!==U&&le.set(B,U),q}function vt(B){k.blockers.delete(B),le.delete(B)}function En(B,U){let q=k.blockers.get(B)||hs;He(q.state==="unblocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="blocked"||q.state==="blocked"&&U.state==="proceeding"||q.state==="blocked"&&U.state==="unblocked"||q.state==="proceeding"&&U.state==="unblocked","Invalid blocker state transition: "+q.state+" -> "+U.state);let de=new Map(k.blockers);de.set(B,U),ie({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:q,historyAction:de}=B;if(le.size===0)return;le.size>1&&Ba(!1,"A router only supports one blocker at a time");let we=Array.from(le.entries()),[Re,$e]=we[we.length-1],ke=k.blockers.get(Re);if(!(ke&&ke.state==="proceeding")&&$e({currentLocation:U,nextLocation:q,historyAction:de}))return Re}function hn(B){let U=mn(404,{pathname:B}),q=s||a,{matches:de,route:we}=m0(q);return Yr(),{notFoundMatches:de,route:we,error:U}}function Yr(B){let U=[];return Y.forEach((q,de)=>{(!B||B(de))&&(q.cancel(),U.push(de),Y.delete(de))}),U}function Er(B,U,q){if(g=B,C=U,S=q||null,!h&&k.navigation===Vf){h=!0;let de=yg(k.location,k.matches);de!=null&&ie({restoreScrollPosition:de})}return()=>{g=null,C=null,S=null}}function gg(B,U){return S&&S(B,U.map(de=>ZL(de,k.loaderData)))||B.key}function rC(B,U){if(g&&C){let q=gg(B,U);g[q]=C()}}function yg(B,U){if(g){let q=gg(B,U),de=g[q];if(typeof de=="number")return de}return null}function Kl(B,U,q){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Yc(U,q,l,!0)}}else return{active:!0,matches:Yc(U,q,l,!0)||[]};return{active:!1,matches:null}}async function Gl(B,U,q){if(!u)return{type:"success",matches:B};let de=B;for(;;){let we=s==null,Re=s||a,$e=i;try{await u({path:U,matches:de,patch:(Ce,De)=>{q.aborted||c0(Ce,De,Re,$e,o)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:de}}finally{we&&!q.aborted&&(a=[...a])}if(q.aborted)return{type:"aborted"};let ke=ni(Re,U,l);if(ke)return{type:"success",matches:ke};let Ee=Yc(Re,U,l,!0);if(!Ee||de.length===Ee.length&&de.every((Ce,De)=>Ce.route.id===Ee[De].route.id))return{type:"success",matches:null};de=Ee}}function oC(B){i={},s=Iu(B,o,void 0,i)}function iC(B,U){let q=s==null;c0(B,U,s||a,i,o),q&&(a=[...a],ie({}))}return E={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:te,subscribe:re,enableScrollRestoration:Er,navigate:F,fetch:ve,revalidate:K,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:pt,deleteFetcher:Ne,dispose:Z,getBlocker:qe,deleteBlocker:vt,patchRoutes:iC,_internalFetchControllers:N,_internalActiveDeferreds:Y,_internalSetRoutes:oC},E}function kj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sh(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=tg(o||".",eg(l,i),Ga(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let d=og(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let f=new URLSearchParams(u.search),y=f.getAll("index");f.delete("index"),y.filter(S=>S).forEach(S=>f.append("index",S));let g=f.toString();u.search=g?"?"+g:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:ro([n,u.pathname])),wi(u)}function i0(e,t,n,r){if(!r||!kj(r))return{path:n};if(r.formMethod&&!jj(r.formMethod))return{path:n,error:mn(405,{method:r.formMethod})};let o=()=>({path:n,error:mn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=o1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,g)=>{let[S,C]=g;return""+y+S+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!hr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=ch(r.formData),c=r.formData;else if(r.body instanceof FormData)l=ch(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=d0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=d0(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(hr(u.formMethod))return{path:n,submission:u};let d=Yo(n);return t&&d.search&&og(d.search)&&l.append("index",""),d.search="?"+l,{path:wi(d),submission:u}}function a0(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function s0(e,t,n,r,o,i,a,s,l,c,u,d,f,y,g,S){let C=S?Rn(S[1])?S[1].error:S[1].data:void 0,h=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=a0(n,Object.keys(t.errors)[0],!0):S&&Rn(S[1])&&(v=a0(n,S[0]));let b=S?S[1].statusCode:void 0,E=a&&b&&b>=400,k=v.filter((P,$)=>{let{route:w}=P;if(w.lazy)return!0;if(w.loader==null)return!1;if(i)return lh(w,t.loaderData,t.errors);if(Ej(t.loaderData,t.matches[$],P)||l.some(j=>j===P.route.id))return!0;let R=t.matches[$],A=P;return l0(P,St({currentUrl:h,currentParams:R.params,nextUrl:m,nextParams:A.params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s||h.pathname+h.search===m.pathname+m.search||h.search!==m.search||n1(R,A)}))}),M=[];return d.forEach((P,$)=>{if(i||!n.some(O=>O.route.id===P.routeId)||u.has($))return;let w=ni(y,P.path,g);if(!w){M.push({key:$,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),A=Ts(w,P.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=l0(A,St({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:b,defaultShouldRevalidate:E?!1:s})),j&&M.push({key:$,routeId:P.routeId,path:P.path,matches:w,match:A,controller:new AbortController})}),[k,M]}function lh(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function Ej(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function n1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function l0(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function c0(e,t,n,r,o){var i;let a;if(e){let c=r[e];He(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>r1(c,u))),l=Iu(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function r1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>r1(n,i))}):!1}async function Pj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];He(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Ba(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!XL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,St({},t(o),{lazy:void 0}))}async function Mj(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function Rj(e,t,n,r,o,i,a,s,l,c){let u=i.map(y=>y.route.lazy?Pj(y.route,l,s):void 0),d=i.map((y,g)=>{let S=u[g],C=o.some(m=>m.route.id===y.route.id);return St({},y,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(C=!0),C?Dj(t,r,y,S,m,c):Promise.resolve({type:at.data,result:void 0}))})}),f=await e({matches:d,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return f}async function Dj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((g,S)=>u=S);s=()=>u(),t.signal.addEventListener("abort",s);let f=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(S=>f(S)):f())}}catch(g){return{type:"error",result:g}}})();return Promise.race([y,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(f=>{u=f}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw mn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:at.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw mn(404,{pathname:d})}He(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:at.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function Tj(e){let{result:t,type:n}=e;if(i1(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:at.error,error:u}}return n===at.error?{type:at.error,error:new Ou(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:at.data,data:c,statusCode:t.status,headers:t.headers}}if(n===at.error){if(g0(t)){var r;if(t.data instanceof Error){var o;return{type:at.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Ou(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:at.error,error:t,statusCode:Wd(t)?t.status:void 0}}if(Lj(t)){var i,a;return{type:at.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(g0(t)){var s,l;return{type:at.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:at.data,data:t}}function Ij(e,t,n,r,o,i){let a=e.headers.get("Location");if(He(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ng.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=sh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function u0(e,t,n){if(ng.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ga(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Wi(e,t,n,r){let o=e.createURL(o1(t)).toString(),i={signal:n};if(r&&hr(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=ch(r.formData):i.body=r.formData}return new Request(o,i)}function ch(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function d0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Oj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&Rn(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,y=t[f];if(He(!li(y),"Cannot handle redirect results in processLoaderData"),Rn(y)){let g=y.error;u!==void 0&&(g=u,u=void 0),a=a||{};{let S=ri(e,f);a[S.route.id]==null&&(a[S.route.id]=g)}i[f]=void 0,l||(l=!0,s=Wd(y.error)?y.error.status:500),y.headers&&(c[f]=y.headers)}else Ro(y)?(r.set(f,y.deferredData),i[f]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers)):(i[f]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(c[f]=y.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function f0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Oj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,y=i[u];if(He(y,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Rn(y)){let g=ri(e.matches,d==null?void 0:d.route.id);l&&l[g.route.id]||(l=St({},l,{[g.route.id]:y.error})),e.fetchers.delete(u)}else if(li(y))He(!1,"Unhandled fetcher revalidation redirect");else if(Ro(y))He(!1,"Unhandled fetcher deferred data");else{let g=So(y.data);e.fetchers.set(u,g)}}),{loaderData:s,errors:l}}function p0(e,t,n,r){let o=St({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function h0(e){return e?Rn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ri(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function m0(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function mn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Ou(e||500,s,new Error(l),!0)}function kc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(li(o))return{key:r,result:o}}}function o1(e){let t=typeof e=="string"?Yo(e):e;return wi(St({},t,{hash:""}))}function $j(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Aj(e){return i1(e.result)&&xj.has(e.result.status)}function Ro(e){return e.type===at.deferred}function Rn(e){return e.type===at.error}function li(e){return(e&&e.type)===at.redirect}function g0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Lj(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function i1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jj(e){return vj.has(e.toLowerCase())}function hr(e){return gj.has(e.toLowerCase())}async function Nj(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(f==null?void 0:f.route.id)===s);if(!c)continue;let u=r.find(f=>f.route.id===c.route.id),d=u!=null&&!n1(u,c)&&(o&&o[c.route.id])!==void 0;Ro(l)&&d&&await rg(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Fj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&Ro(s)&&(He(a,"Expected an AbortController for revalidating fetcher deferred result"),await rg(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function rg(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(o){return{type:at.error,error:o}}return{type:at.data,data:e.deferredData.data}}}function og(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ts(e,t){let n=typeof t=="string"?Yo(t).search:t.search;if(e[e.length-1].route.index&&og(n||""))return e[e.length-1];let r=Jw(e);return r[r.length-1]}function y0(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Wf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Bj(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ms(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zj(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function So(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function _j(e,t){try{let n=e.sessionStorage.getItem(t1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Vj(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(t1,JSON.stringify(n))}catch(r){Ba(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. @@ -214,7 +214,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=tg(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ro([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const Hj=p.createContext(null);function Yj(e){let t=p.useContext(ho).outlet;return t&&p.createElement(Hj.Provider,{value:e},t)}function Kd(){let{matches:e}=p.useContext(ho),t=e[e.length-1];return t?t.params:{}}function c1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Di),{matches:o}=p.useContext(ho),{pathname:i}=Yd(),a=JSON.stringify(eg(o,r.v7_relativeSplatPath));return p.useMemo(()=>tg(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Kj(e,t,n,r){Ul()||He(!1);let{navigator:o}=p.useContext(Di),{matches:i}=p.useContext(ho),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Yd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let S=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=ti(e,{pathname:f});return Zj(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:ro([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:ro([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r)}function Gj(){let e=nN(),t=Ud(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)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const Qj=p.createElement(Gj,null);class Xj extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(ho.Provider,{value:this.props.routeContext},p.createElement(s1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qj(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Hd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(ho.Provider,{value:t},r)}function Zj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||He(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let y,g=!1,S=null,C=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||Qj,l&&(c<0&&f===0?(oN("route-fallback"),g=!0,C=null):c===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,f+1)),m=()=>{let v;return y?v=S:g?v=C:d.route.Component?v=p.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,p.createElement(qj,{match:d,routeContext:{outlet:u,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(Xj,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var u1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(u1||{}),Lu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lu||{});function Jj(e){let t=p.useContext(Hd);return t||He(!1),t}function eN(e){let t=p.useContext(a1);return t||He(!1),t}function tN(e){let t=p.useContext(ho);return t||He(!1),t}function d1(e){let t=tN(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function nN(){var e;let t=p.useContext(s1),n=eN(Lu.UseRouteError),r=d1(Lu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rN(){let{router:e}=Jj(u1.UseNavigateStable),t=d1(Lu.UseNavigateStable),n=p.useRef(!1);return l1(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Au({fromRouteId:t},i)))},[e,t])}const v0={};function oN(e,t,n){v0[e]||(v0[e]=!0)}function iN(e){return Yj(e.context)}function aN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Nt.Pop,navigator:i,static:a=!1,future:s}=e;Ul()&&He(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:Au({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ho(r));let{pathname:u="/",search:d="",hash:f="",state:y=null,key:g="default"}=r,S=p.useMemo(()=>{let C=Ga(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:y,key:g},navigationType:o}},[l,u,d,f,y,g,o]);return S==null?null:p.createElement(Di.Provider,{value:c},p.createElement(ig.Provider,{children:n,value:S}))}new Promise(()=>{});function sN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=tg(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ro([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const Hj=p.createContext(null);function Yj(e){let t=p.useContext(ho).outlet;return t&&p.createElement(Hj.Provider,{value:e},t)}function Yd(){let{matches:e}=p.useContext(ho),t=e[e.length-1];return t?t.params:{}}function c1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Ti),{matches:o}=p.useContext(ho),{pathname:i}=Hd(),a=JSON.stringify(eg(o,r.v7_relativeSplatPath));return p.useMemo(()=>tg(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Kj(e,t,n,r){Wl()||He(!1);let{navigator:o}=p.useContext(Ti),{matches:i}=p.useContext(ho),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Hd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let S=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=ni(e,{pathname:f});return Zj(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:ro([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:ro([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r)}function Gj(){let e=nN(),t=Wd(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)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const Qj=p.createElement(Gj,null);class Xj extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(ho.Provider,{value:this.props.routeContext},p.createElement(s1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qj(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Ud);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(ho.Provider,{value:t},r)}function Zj(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||He(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let y,g=!1,S=null,C=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||Qj,l&&(c<0&&f===0?(oN("route-fallback"),g=!0,C=null):c===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,f+1)),m=()=>{let v;return y?v=S:g?v=C:d.route.Component?v=p.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,p.createElement(qj,{match:d,routeContext:{outlet:u,matches:h,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(Xj,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var u1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(u1||{}),Au=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Au||{});function Jj(e){let t=p.useContext(Ud);return t||He(!1),t}function eN(e){let t=p.useContext(a1);return t||He(!1),t}function tN(e){let t=p.useContext(ho);return t||He(!1),t}function d1(e){let t=tN(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function nN(){var e;let t=p.useContext(s1),n=eN(Au.UseRouteError),r=d1(Au.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rN(){let{router:e}=Jj(u1.UseNavigateStable),t=d1(Au.UseNavigateStable),n=p.useRef(!1);return l1(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$u({fromRouteId:t},i)))},[e,t])}const v0={};function oN(e,t,n){v0[e]||(v0[e]=!0)}function iN(e){return Yj(e.context)}function aN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Nt.Pop,navigator:i,static:a=!1,future:s}=e;Wl()&&He(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:$u({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Yo(r));let{pathname:u="/",search:d="",hash:f="",state:y=null,key:g="default"}=r,S=p.useMemo(()=>{let C=Ga(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:y,key:g},navigationType:o}},[l,u,d,f,y,g,o]);return S==null?null:p.createElement(Ti.Provider,{value:c},p.createElement(ig.Provider,{children:n,value:S}))}new Promise(()=>{});function sN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. @@ -223,11 +223,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uN(e,t){return e.button===0&&(!t||t==="_self")&&!cN(e)}const dN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fN="6";try{window.__reactRouterVersion=fN}catch{}function pN(e,t){return Cj({basename:t==null?void 0:t.basename,future:El({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:KL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||hN(),routes:e,mapRouteProperties:sN,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function hN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=El({},t,{errors:mN(t.errors)})),t}function mN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new $u(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const gN=p.createContext({isTransitioning:!1}),yN=p.createContext(new Map),vN="startTransition",x0=Gs[vN],xN="flushSync",S0=AE[xN];function SN(e){x0?x0(e):e()}function gs(e){S0?S0(e):e()}class bN{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function wN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[a,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,d]=p.useState(),[f,y]=p.useState(),[g,S]=p.useState(),C=p.useRef(new Map),{v7_startTransition:h}=r||{},m=p.useCallback(P=>{h?SN(P):P()},[h]),v=p.useCallback((P,$)=>{let{deletedFetchers:w,flushSync:R,viewTransitionOpts:A}=$;w.forEach(O=>C.current.delete(O)),P.fetchers.forEach((O,T)=>{O.data!==void 0&&C.current.set(T,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||j){R?gs(()=>i(P)):m(()=>i(P));return}if(R){gs(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let O=n.window.document.startViewTransition(()=>{gs(()=>i(P))});O.finished.finally(()=>{gs(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})})}),gs(()=>y(O));return}f?(u&&u.resolve(),f.skipTransition(),S({state:P,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(P),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,f,u,C,m]);p.useLayoutEffect(()=>n.subscribe(v),[n,v]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new bN)},[l]),p.useEffect(()=>{if(u&&a&&n.window){let P=a,$=u.promise,w=n.window.document.startViewTransition(async()=>{m(()=>i(P)),await $});w.finished.finally(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})}),y(w)}},[m,a,u,n.window]),p.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),p.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let b=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,$,w)=>n.navigate(P,{state:$,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(P,$,w)=>n.navigate(P,{replace:!0,state:$,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),E=n.basename||"/",k=p.useMemo(()=>({router:n,navigator:b,static:!1,basename:E}),[n,b,E]),M=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Hd.Provider,{value:k},p.createElement(a1.Provider,{value:o},p.createElement(yN.Provider,{value:C.current},p.createElement(gN.Provider,{value:l},p.createElement(aN,{basename:E,location:o.location,navigationType:o.historyAction,navigator:b,future:M},o.initialized||n.future.v7_partialHydration?p.createElement(CN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const CN=p.memo(kN);function kN(e){let{routes:t,future:n,state:r}=e;return Kj(t,void 0,r,n)}const EN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kn=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=lN(t,dN),{basename:y}=p.useContext(Di),g,S=!1;if(typeof c=="string"&&PN.test(c)&&(g=c,EN))try{let v=new URL(window.location.href),b=c.startsWith("//")?new URL(v.protocol+c):new URL(c),E=Ga(b.pathname,y);b.origin===v.origin&&E!=null?c=E+b.search+b.hash:S=!0}catch{}let C=Wj(c,{relative:o}),h=MN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||h(v)}return p.createElement("a",El({},f,{href:g||C,onClick:S||i?r:m,ref:n,target:l}))});var b0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b0||(b0={}));var w0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(w0||(w0={}));function MN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=cn(),c=Yd(),u=c1(e,{relative:a});return p.useCallback(d=>{if(uN(d,n)){d.preventDefault();let f=r!==void 0?r:bi(c)===bi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var Hf={exports:{}},C0;function f1(){return C0||(C0=1,function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",y="year",g="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var T=["th","st","nd","rd"],I=O%100;return"["+O+(T[(I-20)%10]||T[I]||T[0])+"]"}},v=function(O,T,I){var N=String(O);return!N||N.length>=T?O:""+Array(T+1-N.length).join(I)+O},b={s:v,z:function(O){var T=-O.utcOffset(),I=Math.abs(T),N=Math.floor(I/60),D=I%60;return(T<=0?"+":"-")+v(N,2,"0")+":"+v(D,2,"0")},m:function O(T,I){if(T.date()1)return O(z[0])}else{var V=T.name;k[V]=T,D=V}return!N&&D&&(E=D),D||!N&&E},w=function(O,T){if(P(O))return O.clone();var I=typeof T=="object"?T:{};return I.date=O,I.args=arguments,new A(I)},R=b;R.l=$,R.i=P,R.w=function(O,T){return w(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var A=function(){function O(I){this.$L=$(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[M]=!0}var T=O.prototype;return T.parse=function(I){this.$d=function(N){var D=N.date,L=N.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var z=D.match(C);if(z){var V=z[2]-1||0,H=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,H)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,H)}}return new Date(D)}(I),this.init()},T.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==S},T.isSame=function(I,N){var D=w(I);return this.startOf(N)<=D&&D<=this.endOf(N)},T.isAfter=function(I,N){return w(I)25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(f,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(p1);var DN=p1.exports;const TN=fo(DN);var h1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(C){return(C=+C)+(C>68?1900:2e3)},u=function(C){return function(h){this[C]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var m=h.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var h=l[C];return h&&(h.indexOf?h:h.s.concat(h.f))},y=function(C,h){var m,v=l.meridiem;if(v){for(var b=1;b<=24;b+=1)if(C.indexOf(v(b,0,h))>-1){m=b>12;break}}else m=C===(h?"pm":"PM");return m},g={A:[s,function(C){this.afternoon=y(C,!1)}],a:[s,function(C){this.afternoon=y(C,!0)}],Q:[o,function(C){this.month=3*(C-1)+1}],S:[o,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(C){var h=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===C&&(this.day=v)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(C){var h=f("months"),m=(f("monthsShort")||h.map(function(v){return v.slice(0,3)})).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(C){var h=f("months").indexOf(C)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function S(C){var h,m;h=C,m=l&&l.formats;for(var v=(C=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,R,A){var j=A&&A.toUpperCase();return R||m[A]||n[A]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,T,I){return T||I.slice(1)})})).match(r),b=v.length,E=0;E-1)return new Date((D==="X"?1e3:1)*N);var V=S(D)(N),H=V.year,se=V.month,X=V.day,Y=V.hours,le=V.minutes,ae=V.seconds,te=V.milliseconds,Z=V.zone,re=V.week,ie=new Date,W=X||(H||se?1:ie.getDate()),F=H||ie.getFullYear(),K=0;H&&!se||(K=se>0?se-1:ie.getMonth());var Q,ne=Y||0,ue=le||0,ee=ae||0,fe=te||0;return Z?new Date(Date.UTC(F,K,W,ne,ue,ee,fe+60*Z.offset*1e3)):L?new Date(Date.UTC(F,K,W,ne,ue,ee,fe)):(Q=new Date(F,K,W,ne,ue,ee,fe),re&&(Q=z(Q).week(re).toDate()),Q)}catch{return new Date("")}}(k,$,M,m),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),A&&k!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var O=$.length,T=1;T<=O;T+=1){P[1]=$[T-1];var I=m.apply(this,P);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}T===O&&(this.$d=new Date(""))}else b.call(this,E)}}})})(h1);var IN=h1.exports;const ON=fo(IN);var m1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,g,S){var C=S&&S.toUpperCase();return g||f[S]||n[S]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(m1);var $N=m1.exports;const AN=fo($N);var g1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,s):!this.isBefore(c,s))&&(f?this.isBefore(u,s):!this.isAfter(u,s))||(d?this.isBefore(c,s):!this.isAfter(c,s))&&(f?this.isAfter(u,s):!this.isBefore(u,s))}}})})(g1);var LN=g1.exports;const jN=fo(LN);var y1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ci,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return i.bind(this)(u)}}})})(y1);var NN=y1.exports;const FN=fo(NN);jt.extend(AN);jt.extend(TN);jt.extend(jN);jt.extend(FN);const BN={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},zN={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Yf=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` + */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uN(e,t){return e.button===0&&(!t||t==="_self")&&!cN(e)}const dN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fN="6";try{window.__reactRouterVersion=fN}catch{}function pN(e,t){return Cj({basename:t==null?void 0:t.basename,future:El({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:KL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||hN(),routes:e,mapRouteProperties:sN,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function hN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=El({},t,{errors:mN(t.errors)})),t}function mN(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Ou(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const gN=p.createContext({isTransitioning:!1}),yN=p.createContext(new Map),vN="startTransition",x0=Gs[vN],xN="flushSync",S0=AE[xN];function SN(e){x0?x0(e):e()}function gs(e){S0?S0(e):e()}class bN{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function wN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=p.useState(n.state),[a,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,d]=p.useState(),[f,y]=p.useState(),[g,S]=p.useState(),C=p.useRef(new Map),{v7_startTransition:h}=r||{},m=p.useCallback(P=>{h?SN(P):P()},[h]),v=p.useCallback((P,$)=>{let{deletedFetchers:w,flushSync:R,viewTransitionOpts:A}=$;w.forEach(O=>C.current.delete(O)),P.fetchers.forEach((O,T)=>{O.data!==void 0&&C.current.set(T,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||j){R?gs(()=>i(P)):m(()=>i(P));return}if(R){gs(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let O=n.window.document.startViewTransition(()=>{gs(()=>i(P))});O.finished.finally(()=>{gs(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})})}),gs(()=>y(O));return}f?(u&&u.resolve(),f.skipTransition(),S({state:P,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(P),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,f,u,C,m]);p.useLayoutEffect(()=>n.subscribe(v),[n,v]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new bN)},[l]),p.useEffect(()=>{if(u&&a&&n.window){let P=a,$=u.promise,w=n.window.document.startViewTransition(async()=>{m(()=>i(P)),await $});w.finished.finally(()=>{d(void 0),y(void 0),s(void 0),c({isTransitioning:!1})}),y(w)}},[m,a,u,n.window]),p.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),p.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let b=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,$,w)=>n.navigate(P,{state:$,preventScrollReset:w==null?void 0:w.preventScrollReset}),replace:(P,$,w)=>n.navigate(P,{replace:!0,state:$,preventScrollReset:w==null?void 0:w.preventScrollReset})}),[n]),E=n.basename||"/",k=p.useMemo(()=>({router:n,navigator:b,static:!1,basename:E}),[n,b,E]),M=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Ud.Provider,{value:k},p.createElement(a1.Provider,{value:o},p.createElement(yN.Provider,{value:C.current},p.createElement(gN.Provider,{value:l},p.createElement(aN,{basename:E,location:o.location,navigationType:o.historyAction,navigator:b,future:M},o.initialized||n.future.v7_partialHydration?p.createElement(CN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const CN=p.memo(kN);function kN(e){let{routes:t,future:n,state:r}=e;return Kj(t,void 0,r,n)}const EN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kn=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=lN(t,dN),{basename:y}=p.useContext(Ti),g,S=!1;if(typeof c=="string"&&PN.test(c)&&(g=c,EN))try{let v=new URL(window.location.href),b=c.startsWith("//")?new URL(v.protocol+c):new URL(c),E=Ga(b.pathname,y);b.origin===v.origin&&E!=null?c=E+b.search+b.hash:S=!0}catch{}let C=Wj(c,{relative:o}),h=MN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||h(v)}return p.createElement("a",El({},f,{href:g||C,onClick:S||i?r:m,ref:n,target:l}))});var b0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b0||(b0={}));var w0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(w0||(w0={}));function MN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=cn(),c=Hd(),u=c1(e,{relative:a});return p.useCallback(d=>{if(uN(d,n)){d.preventDefault();let f=r!==void 0?r:wi(c)===wi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var Uf={exports:{}},C0;function f1(){return C0||(C0=1,function(e,t){(function(n,r){e.exports=r()})(ki,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",y="year",g="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var T=["th","st","nd","rd"],I=O%100;return"["+O+(T[(I-20)%10]||T[I]||T[0])+"]"}},v=function(O,T,I){var N=String(O);return!N||N.length>=T?O:""+Array(T+1-N.length).join(I)+O},b={s:v,z:function(O){var T=-O.utcOffset(),I=Math.abs(T),N=Math.floor(I/60),D=I%60;return(T<=0?"+":"-")+v(N,2,"0")+":"+v(D,2,"0")},m:function O(T,I){if(T.date()1)return O(z[0])}else{var V=T.name;k[V]=T,D=V}return!N&&D&&(E=D),D||!N&&E},w=function(O,T){if(P(O))return O.clone();var I=typeof T=="object"?T:{};return I.date=O,I.args=arguments,new A(I)},R=b;R.l=$,R.i=P,R.w=function(O,T){return w(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var A=function(){function O(I){this.$L=$(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[M]=!0}var T=O.prototype;return T.parse=function(I){this.$d=function(N){var D=N.date,L=N.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var z=D.match(C);if(z){var V=z[2]-1||0,H=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,H)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,H)}}return new Date(D)}(I),this.init()},T.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==S},T.isSame=function(I,N){var D=w(I);return this.startOf(N)<=D&&D<=this.endOf(N)},T.isAfter=function(I,N){return w(I)25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(f,n,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(p1);var DN=p1.exports;const TN=fo(DN);var h1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ki,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(C){return(C=+C)+(C>68?1900:2e3)},u=function(C){return function(h){this[C]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var m=h.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var h=l[C];return h&&(h.indexOf?h:h.s.concat(h.f))},y=function(C,h){var m,v=l.meridiem;if(v){for(var b=1;b<=24;b+=1)if(C.indexOf(v(b,0,h))>-1){m=b>12;break}}else m=C===(h?"pm":"PM");return m},g={A:[s,function(C){this.afternoon=y(C,!1)}],a:[s,function(C){this.afternoon=y(C,!0)}],Q:[o,function(C){this.month=3*(C-1)+1}],S:[o,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(C){var h=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===C&&(this.day=v)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(C){var h=f("months"),m=(f("monthsShort")||h.map(function(v){return v.slice(0,3)})).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(C){var h=f("months").indexOf(C)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function S(C){var h,m;h=C,m=l&&l.formats;for(var v=(C=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,R,A){var j=A&&A.toUpperCase();return R||m[A]||n[A]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,T,I){return T||I.slice(1)})})).match(r),b=v.length,E=0;E-1)return new Date((D==="X"?1e3:1)*N);var V=S(D)(N),H=V.year,se=V.month,X=V.day,Y=V.hours,le=V.minutes,ae=V.seconds,te=V.milliseconds,Z=V.zone,re=V.week,ie=new Date,W=X||(H||se?1:ie.getDate()),F=H||ie.getFullYear(),K=0;H&&!se||(K=se>0?se-1:ie.getMonth());var Q,ne=Y||0,ue=le||0,ee=ae||0,fe=te||0;return Z?new Date(Date.UTC(F,K,W,ne,ue,ee,fe+60*Z.offset*1e3)):L?new Date(Date.UTC(F,K,W,ne,ue,ee,fe)):(Q=new Date(F,K,W,ne,ue,ee,fe),re&&(Q=z(Q).week(re).toDate()),Q)}catch{return new Date("")}}(k,$,M,m),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),A&&k!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var O=$.length,T=1;T<=O;T+=1){P[1]=$[T-1];var I=m.apply(this,P);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}T===O&&(this.$d=new Date(""))}else b.call(this,E)}}})})(h1);var IN=h1.exports;const ON=fo(IN);var m1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ki,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,g,S){var C=S&&S.toUpperCase();return g||f[S]||n[S]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(m1);var $N=m1.exports;const AN=fo($N);var g1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ki,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),d=(l=l||"()")[0]==="(",f=l[1]===")";return(d?this.isAfter(c,s):!this.isBefore(c,s))&&(f?this.isBefore(u,s):!this.isAfter(u,s))||(d?this.isBefore(c,s):!this.isAfter(c,s))&&(f?this.isAfter(u,s):!this.isBefore(u,s))}}})})(g1);var LN=g1.exports;const jN=fo(LN);var y1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ki,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return i.bind(this)(u)}}})})(y1);var NN=y1.exports;const FN=fo(NN);jt.extend(AN);jt.extend(TN);jt.extend(jN);jt.extend(FN);const BN={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},zN={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Hf=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` `),k0=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),_N=(e,t)=>t?(...n)=>e(...n).locale(t):e;class VN{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=BN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof jt.utc<"u",this.hasTimezonePlugin=()=>typeof jt.tz<"u",this.isSame=(r,o,i)=>{const a=this.setTimezone(o,this.getTimezone(r));return r.format(i)===a.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return jt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=jt.tz.guess();return o!=="UTC"?jt.tz(r,o):jt(r)}return jt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Yf);return jt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Yf);if(!this.hasTimezonePlugin())throw new Error(k0);const i=r!==void 0&&!r.endsWith("Z");return jt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=jt.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>jt(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(Yf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(k0)}return jt.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,s,l)=>{const c=l&&l.toUpperCase();return s||o[l]||i(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let a=0,s=o;const l=[];for(;sr.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.dayjs=_N(jt,t),this.locale=t,this.formats=_({},zN,n),jt.extend(ON)}getDayOfWeek(t){return t.day()+1}}const E0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Kf={dedupe:!0},WN=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Wl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,H=Te(V)?T:V,se=D.error,X=p.useRef(H),Y=f?Te(V)?X.current:V:H,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(H)?!1:l:Te(H)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,Kf);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(H)||Si?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(Kf).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(Y),i&&Te(H)&&h){if(!Cl&&Si)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);E0(F)}if(Te(se)){const F=re(Kf);Te(Y)||(F.status="fulfilled",F.value=!0),E0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,Y},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}};ma.defineProperty(Zm,"defaultValue",{value:Vd});const UN=Hw(WN),P0=Cl?e=>{e()}:_t.startTransition,HN=e=>{const[,t]=p.useState({}),n=p.useRef(!1),r=p.useRef(e),o=p.useRef({data:!1,error:!1,isValidating:!1}),i=p.useCallback(a=>{let s=!1;const l=r.current;for(const c in a){const u=c;l[u]!==a[u]&&(l[u]=a[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return no(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},YN=()=>(e,t,n={})=>{const{mutate:r}=Uw(),o=p.useRef(e),i=p.useRef(t),a=p.useRef(n),s=p.useRef(0),[l,c,u]=HN({data:It,error:It,isMutating:!1}),d=l.current,f=p.useCallback(async(g,S)=>{const[C,h]=Wl(o.current);if(!i.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!C)throw new Error("Can’t trigger the mutation: missing key.");const m=jn(jn({populateCache:!1,throwOnError:!0},a.current),S),v=Fa();s.current=v,u({isMutating:!0});try{const b=await r(C,i.current(h,{arg:g}),jn(m,{throwOnError:!0}));return s.current<=v&&(P0(()=>u({data:b,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,b,C,m)),b}catch(b){if(s.current<=v&&(P0(()=>u({error:b,isMutating:!1})),m.onError==null||m.onError.call(m,b,C,m),m.throwOnError))throw b}},[]),y=p.useCallback(()=>{s.current=Fa(),u({data:It,error:It,isMutating:!1})},[]);return no(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:y,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},wr=VL(UN,YN),KN=()=>{const[e,t]=p.useState(localStorage.getItem("token")),{trigger:n}=wr("/auth/token/logout",Jm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),qm("/auth/users/me",null),n()}}},ag=()=>x.jsx("img",{src:LE,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),GN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),QN=G(Mi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),XN=e=>{const[t,n]=p.useState(""),{trigger:r,error:o}=wr("/auth/token/login",Qw),i=cn(),{login:a}=p.useContext(nn);p.useEffect(()=>{o&&n(o.info?o.info.non_field_errors:i("/error"))},[o]);const s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),u=c.get("username"),d=c.get("password"),f=await r({username:u,password:d});await a(f.auth_token),i("/")};return x.jsxs(x.Fragment,{children:[x.jsx(yw,{enableColorScheme:!0}),x.jsx(QN,{direction:"column",justifyContent:"space-between",children:x.jsxs(GN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),x.jsxs(Ot,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&x.jsx("div",{style:{color:"red"},children:t}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Don't have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},Hl=Ht(x.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),qN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),ZN=G(Mi)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),JN=e=>{const[t,n]=p.useState(!1),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState(!1),[d,f]=p.useState(""),[y,g]=p.useState(!1),S=cn(),{trigger:C,error:h}=wr("/auth/users/",Qw),m=(M,P)=>{M(P.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};p.useEffect(()=>{h&&Object.entries(h.info).forEach(([M,P])=>{v[M](P)})},[h]);const b=()=>{const M=document.getElementById("email"),P=document.getElementById("password"),$=document.getElementById("username");let w=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!P.value||P.value.length<8?(a(!0),l("Password must be at least 8 characters long."),w=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),w=!1):(u(!1),f("")),w},E=async M=>{if(M.preventDefault(),c||t||i)return;const P=new FormData(M.currentTarget),$=P.get("username"),w=P.get("email"),R=P.get("password");await C({username:$,email:w,password:R}),g(!0)},k=()=>{g(!1),S("/login")};return x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:y,autoHideDuration:2e3,onClose:k,children:x.jsx(Fl,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),x.jsx(yw,{enableColorScheme:!0}),x.jsx(ZN,{direction:"column",justifyContent:"space-between",children:x.jsxs(qN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),x.jsxs(Ot,{component:"form",onSubmit:E,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"email",children:"Email"}),x.jsx(Cn,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",onClick:b,children:"Sign up"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Already have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>S("/login"),children:"Sign in"})})]})]})]})})]})},M0=()=>{const e=cn(),t=()=>{e("/")};return x.jsxs(Ot,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[x.jsx(Fe,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),x.jsx(Fe,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),x.jsx(it,{variant:"contained",color:"primary",onClick:t,sx:{marginTop:"20px",padding:"10px 20px",fontSize:"16px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)","&:hover":{boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"}},children:"Go to Main Page"})]})},Tr=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Wd(),a=cn();return p.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?x.jsx(_l,{}):x.jsx(e,{})},R0=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Wd(),a=cn();return p.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?x.jsx(_l,{}):x.jsx(e,{})},v1=e=>e/(1e3*60*60*24),Ti=()=>x.jsx(Mi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:x.jsx(_l,{})}),eF=()=>{const e=cn(),t=Nd("(max-width:600px)"),{token:n}=p.useContext(nn),{data:r,isLoading:o,error:i}=Bn("/activities",zn(n)),{data:a,isLoading:s,error:l}=Bn("/titles",zn(n)),c=p.useMemo(()=>!r||!a?[]:r.map(d=>({...d,titles:a.filter(f=>f.activity===d.id).map(f=>({...f,start_date:new Date(f.start_date).toLocaleDateString(),end_date:f.end_date?new Date(f.end_date).toLocaleDateString():"No date",time_spent:f.end_date?v1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?x.jsx(Ti,{}):x.jsx(Mi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>x.jsx(Ot,{sx:{width:"100%",marginBottom:2},children:x.jsxs(br,{elevation:3,sx:{padding:2},children:[x.jsx(Fe,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>x.jsxs(Ot,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[x.jsxs(Fe,{variant:"body1",children:[x.jsx("strong",{children:"Name:"})," ",d.name]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Description:"})," ",d.description]}),x.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Start date:"})," ",d.start_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"End date:"})," ",d.end_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):x.jsx(Ot,{display:"flex",children:x.jsx(qA,{component:br,children:x.jsxs(FA,{sx:{minWidth:650},children:[x.jsx(nL,{children:x.jsxs(Nf,{children:[x.jsx(Pn,{align:"center",children:"Name"}),x.jsx(Pn,{align:"center",children:"Description"}),x.jsx(Pn,{align:"center",children:"Image"}),x.jsx(Pn,{align:"center",children:"Start date"}),x.jsx(Pn,{align:"center",children:"End date"}),x.jsx(Pn,{align:"center",children:"Days Spent"})]})}),x.jsx(WA,{children:c.map(u=>x.jsxs(_t.Fragment,{children:[x.jsx(Nf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:x.jsx(Pn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>x.jsxs(Nf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[x.jsx(Pn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:x.jsx(Fe,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),x.jsx(Pn,{align:"center",children:d.description}),x.jsx(Pn,{align:"center",children:x.jsx("img",{src:d.image,width:"180px"})}),x.jsx(Pn,{align:"center",children:d.start_date}),x.jsx(Pn,{align:"center",children:d.end_date}),x.jsx(Pn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},tF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{trigger:g,error:S}=wr("/activities/",Jm(y)),C=async v=>{v.preventDefault();const E=await g({name:e,description:n});i(E.id),d(!0)},h={name:v=>{s(v)},description:v=>{c(setPasswordErrorMessage,v)}},m=()=>{d(!1),f(`/activities/${o}`)};return p.useEffect(()=>{S&&Object.entries(S.info).forEach(([v,b])=>{h[v](b)})},[S]),x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:u,autoHideDuration:2e3,onClose:m,children:x.jsx(Fl,{onClose:m,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Activity is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),x.jsxs("form",{onSubmit:C,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:v=>t(v.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:v=>r(v.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},nF=()=>x.jsx(jd,{maxWidth:"sm",children:x.jsx(tF,{})}),rF=["localeText"],dh=p.createContext(null),x1=function(t){const{localeText:n}=t,r=Ae(t,rF),{utils:o,localeText:i}=p.useContext(dh)??{utils:void 0,localeText:void 0},a=gt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,y=p.useMemo(()=>_({},f,i,n),[f,i,n]),g=p.useMemo(()=>{if(!l)return o||null;const h=new l({locale:d,formats:c,instance:u});if(!h.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return h},[l,d,c,u,o]),S=p.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),C=p.useMemo(()=>({utils:g,defaultDates:S,localeText:y}),[S,g,y]);return x.jsx(dh.Provider,{value:C,children:s})},oF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:_({},e)}}}}),S1=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},b1={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},iF=b1;oF(b1);const Ii=()=>{const e=p.useContext(dh);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`),_N=(e,t)=>t?(...n)=>e(...n).locale(t):e;class VN{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=BN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof jt.utc<"u",this.hasTimezonePlugin=()=>typeof jt.tz<"u",this.isSame=(r,o,i)=>{const a=this.setTimezone(o,this.getTimezone(r));return r.format(i)===a.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return jt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=jt.tz.guess();return o!=="UTC"?jt.tz(r,o):jt(r)}return jt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Hf);return jt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Hf);if(!this.hasTimezonePlugin())throw new Error(k0);const i=r!==void 0&&!r.endsWith("Z");return jt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=jt.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>jt(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(Hf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(k0)}return jt.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(s,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,s,l)=>{const c=l&&l.toUpperCase();return s||o[l]||i(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>rthis.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let a=0,s=o;const l=[];for(;sr.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.dayjs=_N(jt,t),this.locale=t,this.formats=_({},zN,n),jt.extend(ON)}getDayOfWeek(t){return t.day()+1}}const E0=_t.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Yf={dedupe:!0},WN=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[y,g,S,C]=Nr.get(r),[h,m]=Vl(e),v=p.useRef(!1),b=p.useRef(!1),E=p.useRef(h),k=p.useRef(t),M=p.useRef(n),P=()=>M.current,$=()=>P().isVisible()&&P().isOnline(),[w,R,A,j]=Gm(r,h),O=p.useRef({}).current,T=Te(a)?n.fallback[h]:a,I=(W,F)=>{for(const K in O){const Q=K;if(Q==="data"){if(!o(W[Q],F[Q])&&(!Te(W[Q])||!o(Y,F[Q])))return!1}else if(F[Q]!==W[Q])return!1}return!0},N=p.useMemo(()=>{const W=!h||!t?!1:Te(s)?P().isPaused()||i?!1:Te(l)?!0:l:s,F=fe=>{const ve=jn(fe);return delete ve._k,W?{isValidating:!0,isLoading:!0,...ve}:ve},K=w(),Q=j(),ne=F(K),ue=K===Q?ne:F(Q);let ee=ne;return[()=>{const fe=F(w());return I(fe,ee)?(ee.data=fe.data,ee.isLoading=fe.isLoading,ee.isValidating=fe.isValidating,ee.error=fe.error,ee):(ee=fe,fe)},()=>ue]},[r,h]),D=Lw.useSyncExternalStore(p.useCallback(W=>A(h,(F,K)=>{I(K,F)||W()}),[r,h]),N[0],N[1]),L=!v.current,z=y[h]&&y[h].length>0,V=D.data,H=Te(V)?T:V,se=D.error,X=p.useRef(H),Y=f?Te(V)?X.current:V:H,le=z&&!Te(se)?!1:L&&!Te(s)?s:P().isPaused()?!1:i?Te(H)?!1:l:Te(H)||l,ae=!!(h&&t&&L&&le),te=Te(D.isValidating)?ae:D.isValidating,Z=Te(D.isLoading)?ae:D.isLoading,re=p.useCallback(async W=>{const F=k.current;if(!h||!F||b.current||P().isPaused())return!1;let K,Q,ne=!0;const ue=W||{},ee=!S[h]||!ue.dedupe,fe=()=>Cl?!b.current&&h===E.current&&v.current:h===E.current,ve={isValidating:!1,isLoading:!1},Le=()=>{R(ve)},xe=()=>{const Pe=S[h];Pe&&Pe[1]===Q&&delete S[h]},tt={isValidating:!0};Te(w().data)&&(tt.isLoading=!0);try{if(ee&&(R(tt),n.loadingTimeout&&Te(w().data)&&setTimeout(()=>{ne&&fe()&&P().onLoadingSlow(h,n)},n.loadingTimeout),S[h]=[F(m),Fa()]),[K,Q]=S[h],K=await K,ee&&setTimeout(xe,n.dedupingInterval),!S[h]||S[h][1]!==Q)return ee&&fe()&&P().onDiscarded(h),!1;ve.error=It;const Pe=g[h];if(!Te(Pe)&&(Q<=Pe[0]||Q<=Pe[1]||Pe[1]===0))return Le(),ee&&fe()&&P().onDiscarded(h),!1;const _e=w().data;ve.data=o(_e,K)?_e:K,ee&&fe()&&P().onSuccess(K,h,n)}catch(Pe){xe();const _e=P(),{shouldRetryOnError:ut}=_e;_e.isPaused()||(ve.error=Pe,ee&&fe()&&(_e.onError(Pe,h,_e),(ut===!0||On(ut)&&ut(Pe))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||$())&&_e.onErrorRetry(Pe,h,_e,je=>{const Oe=y[h];Oe&&Oe[0]&&Oe[0](Fr.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return ne=!1,Le(),!0},[h,r]),ie=p.useCallback((...W)=>Qm(r,E.current,...W),[]);if(no(()=>{k.current=t,M.current=n,Te(V)||(X.current=V)}),no(()=>{if(!h)return;const W=re.bind(It,Yf);let F=0;const Q=Yw(h,y,(ne,ue={})=>{if(ne==Fr.FOCUS_EVENT){const ee=Date.now();P().revalidateOnFocus&&ee>F&&$()&&(F=ee+P().focusThrottleInterval,W())}else if(ne==Fr.RECONNECT_EVENT)P().revalidateOnReconnect&&$()&&W();else{if(ne==Fr.MUTATE_EVENT)return re();if(ne==Fr.ERROR_REVALIDATE_EVENT)return re(ue)}});return b.current=!1,E.current=h,v.current=!0,R({_k:m}),le&&(Te(H)||bi?W():jw(W)),()=>{b.current=!0,Q()}},[h]),no(()=>{let W;function F(){const Q=On(c)?c(w().data):c;Q&&W!==-1&&(W=setTimeout(K,Q))}function K(){!w().error&&(u||P().isVisible())&&(d||P().isOnline())?re(Yf).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,h]),p.useDebugValue(Y),i&&Te(H)&&h){if(!Cl&&bi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,b.current=!1;const W=C[h];if(!Te(W)){const F=ie(W);E0(F)}if(Te(se)){const F=re(Yf);Te(Y)||(F.status="fulfilled",F.value=!0),E0(F)}else throw se}return{mutate:ie,get data(){return O.data=!0,Y},get error(){return O.error=!0,se},get isValidating(){return O.isValidating=!0,te},get isLoading(){return O.isLoading=!0,Z}}};ma.defineProperty(Zm,"defaultValue",{value:_d});const UN=Hw(WN),P0=Cl?e=>{e()}:_t.startTransition,HN=e=>{const[,t]=p.useState({}),n=p.useRef(!1),r=p.useRef(e),o=p.useRef({data:!1,error:!1,isValidating:!1}),i=p.useCallback(a=>{let s=!1;const l=r.current;for(const c in a){const u=c;l[u]!==a[u]&&(l[u]=a[u],o.current[u]&&(s=!0))}s&&!n.current&&t({})},[]);return no(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},YN=()=>(e,t,n={})=>{const{mutate:r}=Uw(),o=p.useRef(e),i=p.useRef(t),a=p.useRef(n),s=p.useRef(0),[l,c,u]=HN({data:It,error:It,isMutating:!1}),d=l.current,f=p.useCallback(async(g,S)=>{const[C,h]=Vl(o.current);if(!i.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!C)throw new Error("Can’t trigger the mutation: missing key.");const m=jn(jn({populateCache:!1,throwOnError:!0},a.current),S),v=Fa();s.current=v,u({isMutating:!0});try{const b=await r(C,i.current(h,{arg:g}),jn(m,{throwOnError:!0}));return s.current<=v&&(P0(()=>u({data:b,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,b,C,m)),b}catch(b){if(s.current<=v&&(P0(()=>u({error:b,isMutating:!1})),m.onError==null||m.onError.call(m,b,C,m),m.throwOnError))throw b}},[]),y=p.useCallback(()=>{s.current=Fa(),u({data:It,error:It,isMutating:!1})},[]);return no(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:y,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},wr=VL(UN,YN),KN=()=>{const[e,t]=p.useState(localStorage.getItem("token")),{trigger:n}=wr("/auth/token/logout",Jm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),qm("/auth/users/me",null),n()}}},ag=()=>x.jsx("img",{src:LE,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),GN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),QN=G(Ri)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),XN=e=>{const[t,n]=p.useState(""),{trigger:r,error:o}=wr("/auth/token/login",Qw),i=cn(),{login:a}=p.useContext(nn);p.useEffect(()=>{o&&n(o.info?o.info.non_field_errors:i("/error"))},[o]);const s=async l=>{l.preventDefault();const c=new FormData(l.currentTarget),u=c.get("username"),d=c.get("password"),f=setTimeout(()=>i("/"),3e3),y=await r({username:u,password:d});await a(y.auth_token),clearTimeout(f),i("/")};return x.jsxs(x.Fragment,{children:[x.jsx(yw,{enableColorScheme:!0}),x.jsx(QN,{direction:"column",justifyContent:"space-between",children:x.jsxs(GN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),x.jsxs(Ot,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&x.jsx("div",{style:{color:"red"},children:t}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Don't have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},Ul=Ht(x.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),qN=G(Sl)(({theme:e})=>({display:"flex",flexDirection:"column",alignSelf:"center",width:"100%",padding:e.spacing(4),gap:e.spacing(2),boxShadow:"hsla(220, 30%, 5%, 0.05) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.05) 0px 15px 35px -5px",[e.breakpoints.up("sm")]:{width:"450px"},...e.applyStyles("dark",{boxShadow:"hsla(220, 30%, 5%, 0.5) 0px 5px 15px 0px, hsla(220, 25%, 10%, 0.08) 0px 15px 35px -5px"})})),ZN=G(Ri)(({theme:e})=>({padding:e.spacing(2),[e.breakpoints.up("sm")]:{padding:e.spacing(4)},"&::before":{content:'""',display:"block",position:"absolute",zIndex:-1,inset:0,backgroundImage:"radial-gradient(ellipse at 50% 50%, hsl(210, 100%, 97%), hsl(0, 0%, 100%))",backgroundRepeat:"no-repeat",...e.applyStyles("dark",{backgroundImage:"radial-gradient(at 50% 50%, hsla(210, 100%, 16%, 0.5), hsl(220, 30%, 5%))"})}})),JN=e=>{const[t,n]=p.useState(!1),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState(!1),[d,f]=p.useState(""),[y,g]=p.useState(!1),S=cn(),{trigger:C,error:h}=wr("/auth/users/",Qw),m=(M,P)=>{M(P.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};p.useEffect(()=>{h&&Object.entries(h.info).forEach(([M,P])=>{v[M](P)})},[h]);const b=()=>{const M=document.getElementById("email"),P=document.getElementById("password"),$=document.getElementById("username");let w=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),w=!1):(n(!1),o("")),!P.value||P.value.length<8?(a(!0),l("Password must be at least 8 characters long."),w=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),w=!1):(u(!1),f("")),w},E=async M=>{if(M.preventDefault(),c||t||i)return;const P=new FormData(M.currentTarget),$=P.get("username"),w=P.get("email"),R=P.get("password");await C({username:$,email:w,password:R}),g(!0)},k=()=>{g(!1),S("/login")};return x.jsxs(x.Fragment,{children:[x.jsx(_l,{open:y,autoHideDuration:2e3,onClose:k,children:x.jsx(Fl,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Ul,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),x.jsx(yw,{enableColorScheme:!0}),x.jsx(ZN,{direction:"column",justifyContent:"space-between",children:x.jsxs(qN,{variant:"outlined",children:[x.jsx(Ot,{sx:{display:"flex",justifyContent:"center"},children:x.jsx(ag,{})}),x.jsx(Fe,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),x.jsxs(Ot,{component:"form",onSubmit:E,sx:{display:"flex",flexDirection:"column",gap:2},children:[x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"name",children:"Username"}),x.jsx(Cn,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"email",children:"Email"}),x.jsx(Cn,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),x.jsxs(to,{children:[x.jsx(ha,{htmlFor:"password",children:"Password"}),x.jsx(Cn,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),x.jsx(it,{type:"submit",fullWidth:!0,variant:"contained",onClick:b,children:"Sign up"}),x.jsxs(Fe,{sx:{textAlign:"center"},children:["Already have an account?"," ",x.jsx("span",{children:x.jsx(Um,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>S("/login"),children:"Sign in"})})]})]})]})})]})},M0=()=>{const e=cn(),t=()=>{e("/")};return x.jsxs(Ot,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[x.jsx(Fe,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),x.jsx(Fe,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),x.jsx(it,{variant:"contained",color:"primary",onClick:t,sx:{marginTop:"20px",padding:"10px 20px",fontSize:"16px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)","&:hover":{boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"}},children:"Go to Main Page"})]})},mo=()=>x.jsx(Ri,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:x.jsx(Bm,{})}),Tr=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Vd(),a=cn();return p.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?x.jsx(mo,{}):x.jsx(e,{})},R0=({Component:e,...t})=>{const{token:n}=p.useContext(nn),{user:r,error:o,isLoading:i}=Vd(),a=cn();return p.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?x.jsx(mo,{}):x.jsx(e,{})},v1=e=>e/(1e3*60*60*24),eF=()=>{const e=cn(),t=jd("(max-width:600px)"),{token:n}=p.useContext(nn),{data:r,isLoading:o,error:i}=Bn("/activities",zn(n)),{data:a,isLoading:s,error:l}=Bn("/titles",zn(n)),c=p.useMemo(()=>!r||!a?[]:r.map(d=>({...d,titles:a.filter(f=>f.activity===d.id).map(f=>({...f,start_date:new Date(f.start_date).toLocaleDateString(),end_date:f.end_date?new Date(f.end_date).toLocaleDateString():"No date",time_spent:f.end_date?v1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?x.jsx(mo,{}):x.jsx(Ri,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>x.jsx(Ot,{sx:{width:"100%",marginBottom:2},children:x.jsxs(br,{elevation:3,sx:{padding:2},children:[x.jsx(Fe,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>x.jsxs(Ot,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[x.jsxs(Fe,{variant:"body1",children:[x.jsx("strong",{children:"Name:"})," ",d.name]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Description:"})," ",d.description]}),x.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Start date:"})," ",d.start_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"End date:"})," ",d.end_date]}),x.jsxs(Fe,{variant:"body2",children:[x.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):x.jsx(Ot,{display:"flex",children:x.jsx(qA,{component:br,children:x.jsxs(FA,{sx:{minWidth:650},children:[x.jsx(nL,{children:x.jsxs(jf,{children:[x.jsx(Pn,{align:"center",children:"Name"}),x.jsx(Pn,{align:"center",children:"Description"}),x.jsx(Pn,{align:"center",children:"Image"}),x.jsx(Pn,{align:"center",children:"Start date"}),x.jsx(Pn,{align:"center",children:"End date"}),x.jsx(Pn,{align:"center",children:"Days Spent"})]})}),x.jsx(WA,{children:c.map(u=>x.jsxs(_t.Fragment,{children:[x.jsx(jf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:x.jsx(Pn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>x.jsxs(jf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[x.jsx(Pn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:x.jsx(Fe,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),x.jsx(Pn,{align:"center",children:d.description}),x.jsx(Pn,{align:"center",children:x.jsx("img",{src:d.image,width:"180px"})}),x.jsx(Pn,{align:"center",children:d.start_date}),x.jsx(Pn,{align:"center",children:d.end_date}),x.jsx(Pn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},tF=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{trigger:g,error:S}=wr("/activities/",Jm(y)),C=async v=>{v.preventDefault();const E=await g({name:e,description:n});i(E.id),d(!0)},h={name:v=>{s(v)},description:v=>{c(setPasswordErrorMessage,v)}},m=()=>{d(!1),f(`/activities/${o}`)};return p.useEffect(()=>{S&&Object.entries(S.info).forEach(([v,b])=>{h[v](b)})},[S]),x.jsxs(x.Fragment,{children:[x.jsx(_l,{open:u,autoHideDuration:2e3,onClose:m,children:x.jsx(Fl,{onClose:m,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Ul,{fontSize:"inherit"})},children:"Activity is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),x.jsxs("form",{onSubmit:C,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:v=>t(v.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:v=>r(v.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},nF=()=>x.jsx(Ld,{maxWidth:"sm",children:x.jsx(tF,{})}),rF=["localeText"],uh=p.createContext(null),x1=function(t){const{localeText:n}=t,r=Ae(t,rF),{utils:o,localeText:i}=p.useContext(uh)??{utils:void 0,localeText:void 0},a=gt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,y=p.useMemo(()=>_({},f,i,n),[f,i,n]),g=p.useMemo(()=>{if(!l)return o||null;const h=new l({locale:d,formats:c,instance:u});if(!h.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return h},[l,d,c,u,o]),S=p.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),C=p.useMemo(()=>({utils:g,defaultDates:S,localeText:y}),[S,g,y]);return x.jsx(uh.Provider,{value:C,children:s})},oF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:_({},e)}}}}),S1=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},b1={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},iF=b1;oF(b1);const Ii=()=>{const e=p.useContext(uh);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=p.useMemo(()=>_({},iF,e.localeText),[e.localeText]);return p.useMemo(()=>_({},e,{localeText:t}),[e,t])},yt=()=>Ii().utils,Yl=()=>Ii().defaultDates,Gd=e=>{const t=yt(),n=p.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},mo=()=>Ii().localeText,aF=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sF=Ht(x.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),lF=Ht(x.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),cF=Ht(x.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Ht(x.jsxs(p.Fragment,{children:[x.jsx("path",{d:"M11.99 2C6.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ht(x.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Ht(x.jsxs(p.Fragment,{children:[x.jsx("path",{d:"M11.99 2C6.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const uF=Ht(x.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"}),"Clear");function dF(e){return ge("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],pF=["ownerState"],hF=["ownerState"],mF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),gF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),D0=G(Wr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),yF=e=>{const{classes:t}=e;return ye({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dF,t)},vF=p.forwardRef(function(t,n){const r=lr(),o=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:S,previousLabel:C,labelId:h}=o,m=Ae(o,fF),v=o,b=yF(v),E={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:y,isHidden:g,goTo:S,label:C},M=(s==null?void 0:s.previousIconButton)??D0,P=Qe({elementType:M,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:_({},v,{hidden:k.isHidden}),className:pe(b.button,b.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??D0,w=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:_({},v,{hidden:E.isHidden}),className:pe(b.button,b.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??sF,A=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.leftArrowIcon}),j=Ae(A,pF),O=(s==null?void 0:s.rightArrowIcon)??lF,T=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.rightArrowIcon}),I=Ae(T,hF);return x.jsxs(mF,_({ref:n,className:pe(b.root,a),ownerState:v},m,{children:[x.jsx(M,_({},P,{children:r?x.jsx(O,_({},I)):x.jsx(R,_({},j))})),i?x.jsx(Fe,{variant:"subtitle1",component:"span",id:h,children:i}):x.jsx(gF,{className:b.spacer,ownerState:v}),x.jsx($,_({},w,{children:r?x.jsx(R,_({},j)):x.jsx(O,_({},I))}))]}))}),ys=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xF=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},SF=["hours","minutes","seconds"],bF=e=>SF.includes(e),T0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wF=(e,t)=>(n,r)=>e?t.isAfter(n,r):T0(n,t)>T0(r,t);function w1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=p.useRef(n),c=p.useRef(o),u=p.useRef(o.includes(n)?n:o[0]),[d,f]=co({name:"useViews",state:"view",controlled:r,default:u.current}),y=p.useRef(i?d:null),[g,S]=co({name:"useViews",state:"focusedView",controlled:a,default:y.current});p.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(M=>!o.includes(M)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const C=o.indexOf(d),h=o[C-1]??null,m=o[C+1]??null,v=Se((M,P)=>{S(P?M:$=>M===$?null:$),s==null||s(M,P)}),b=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),E=Se(()=>{m&&b(m)}),k=Se((M,P,$)=>{const w=P==="finish",R=$?o.indexOf($){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function kF(e,{disablePast:t,minDate:n,timezone:r}){const o=yt();return p.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const Pl=36,Qd=2,Xd=320,EF=280,sg=336,PF=G("div")({overflow:"hidden",width:Xd,maxHeight:sg,display:"flex",flexDirection:"column",margin:"0 auto"}),ju=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Ks=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=ju(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},MF=(e,t)=>t==null||!e.isValid(t)?null:t,ar=(e,t,n)=>t==null||!e.isValid(t)?n:t,RF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),lg=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},C1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),DF=["year","month","day"],I0=e=>DF.includes(e),cg=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ys(n,["year"])?o.year:ys(n,["month"])?o.month:ys(n,["day"])?o.dayOfMonth:ys(n,["month","year"])?`${o.month} ${o.year}`:ys(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},TF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},ug=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=yt(),s=p.useRef(n),l=t??s.current??i.emptyValue,c=p.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(g=>c==null?g:i.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=p.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),y=Se((g,...S)=>{const C=u(g);o==null||o(C,...S)});return{value:f,handleValueChange:y,timezone:d}},dg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=co({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return ug({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Ar={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},IF=e=>Math.max(...e.map(t=>Ar[t.type]??1)),vs=(e,t,n)=>{if(t===Ar.year)return e.startOfYear(n);if(t===Ar.month)return e.startOfMonth(n);if(t===Ar.day)return e.startOfDay(n);let r=n;return t{let i=o?o():vs(t,n,C1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=vs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=vs(t,n,e.maxDate));const a=wF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ju(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ju(t,i,e.maxTime))),i},k1=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},$F=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},qd=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},E1=(e,t,n,r)=>{switch(n){case"month":return lg(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return qd(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},O0="s",AF=["0","1","2","3","4","5","6","7","8","9"],LF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),O0)==="0"?AF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),O0))},wi=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},fg=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),$0=(e,t)=>{const n=wi(e,t);return n!==" "&&!Number.isNaN(Number(n))},P1=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=P1(i,o.maxLength)),fg(i,r)},jF=(e,t,n,r,o,i,a,s)=>{const l=$F(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),S=v=>M1(e,v,g,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(wi(n.value,i),10)+l*C;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?m=g.minimum:m=g.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>g.maximum?S(g.minimum+(m-g.maximum-1)%(g.maximum-g.minimum+1)):m{const g=E1(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const h=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[h]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():y()},pg=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(wi(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},A0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),R1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,D1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return R1(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},NF=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),BF=(e,t,n)=>{const o=e.map(i=>{const a=pg(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},zF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=lg(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:R1(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=qd(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return wi(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(wi(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},_F=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=qd(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},L0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},j0=(e,t,n,r,o)=>[...n].sort((i,a)=>L0[i.type]-L0[a.type]).reduce((i,a)=>!o||a.modified?_F(e,a,t,i):i,r),VF=()=>navigator.userAgent.toLowerCase().includes("android"),WF=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},fh=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},UF=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},HF=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},YF=["value","referenceDate"],Hr={emptyValue:null,getTodayValue:C1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,YF);return t!=null&&r.utils.isValid(t)?t:n??OF(r)},cleanValue:MF,areValuesEqual:RF,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},KF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:FF,getV6InputValueFromSections:BF,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};function GF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const QF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Dn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Dn(t.shadowRoot):t:null},XF="@media (pointer: fine)";function qF(e){return ge("MuiPickersDay",e)}const Go=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ZF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],JF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ye({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},qF,l)},T1=({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Go.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Go.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Go.disabled}:not(.${Go.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Go.disabled}&.${Go.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Qd}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Go.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),I1=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},e5=G(Ia,{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(T1),t5=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(({theme:e})=>_({},T1({theme:e}),{opacity:0,pointerEvents:"none"})),xs=()=>{},n5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:y=xs,onBlur:g=xs,onKeyDown:S=xs,onMouseDown:C=xs,onMouseEnter:h=xs,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:b=!1,children:E,today:k=!1}=r,M=Ae(r,ZF),P=_({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:b,today:k}),$=JF(P),w=yt(),R=p.useRef(null),A=Ye(R,n);Ut(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=T=>{C(T),m&&T.preventDefault()},O=T=>{s||f(a),m&&T.currentTarget.focus(),d&&d(T)};return m&&!b?x.jsx(t5,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:P,role:M.role}):x.jsx(e5,_({className:pe($.root,i),ref:A,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:T=>S(T,a),onFocus:T=>y(T,a),onBlur:T=>g(T,a),onMouseEnter:T=>h(T,a),onClick:O,onMouseDown:j},M,{ownerState:P,children:E||w.format(a,"dayOfMonth")}))}),r5=p.memo(n5),Kl=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=ar(r.utils,e.minDate,r.defaultDates.minDate),d=ar(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Kl.valueManager=Hr;const O1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],o5=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],i5=["minDateTime","maxDateTime"],a5=[...O1,...o5,...i5],$1=e=>a5.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function A1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Ii(),s=p.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);p.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Se(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const s5=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},l5=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},c5=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},u5=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=k1(e,a),c=D1(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",y=null;if(u)if(c)y=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);y=l.maxLength,d&&(f=fg(P1(wi(f,o),y),o))}return _({},l,{format:a,maxLength:y,value:f,placeholder:c5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},d5=e=>{var y;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,S)=>S.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=g=>r.find(S=>S.start<=g&&S.end>=g);let f=0;for(;f0;){const m=u.exec(h)[1];h=h.slice(m.length),i.push(u5(_({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const h=n[f];S&&(g==null?void 0:g.start)===f||(g==null?void 0:g.end)===f||(i.length===0?a+=h:i[i.length-1].endSeparator+=h),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},f5=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),N0=e=>{let t=s5(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=l5(_({},e,{expandedFormat:t})),r=d5(_({},e,{expandedFormat:t,escapedParts:n}));return f5(_({},e,{sections:r}))},p5=e=>{const t=yt(),n=mo(),r=Ii(),o=lr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:y,format:g,formatDensity:S="dense",selectedSections:C,onSelectedSectionsChange:h,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:b=!1}}=e,{timezone:E,value:k,handleValueChange:M}=ug({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:y,valueManager:i}),P=p.useMemo(()=>LF(t),[t]),$=p.useMemo(()=>zF(t,P,E),[t,P,E]),w=p.useCallback((Y,le=null)=>a.getSectionsFromValue(t,Y,le,ae=>N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ae,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o})),[a,g,n,P,o,m,t,S,b]),[R,A]=p.useState(()=>{const Y=w(k),le={sections:Y,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ae=IF(Y),te=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ae,timezone:E});return _({},le,{referenceValue:te})}),[j,O]=co({controlled:C,default:null,name:"useField",state:"selectedSections"}),T=Y=>{O(Y),h==null||h(Y)},I=p.useMemo(()=>fh(j,R.sections),[j,R.sections]),N=I==="all"?0:I,D=({value:Y,referenceValue:le,sections:ae})=>{if(A(Z=>_({},Z,{sections:ae,value:Y,referenceValue:le,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,Y))return;const te={validationError:l({adapter:r,value:Y,timezone:E,props:c})};M(Y,te)},L=(Y,le)=>{const ae=[...R.sections];return ae[Y]=_({},ae[Y],{value:le,modified:!0}),ae},z=()=>{D({value:i.emptyValue,referenceValue:R.referenceValue,sections:w(i.emptyValue)})},V=()=>{if(N==null)return;const Y=R.sections[N],le=a.getActiveDateManager(t,R,Y),te=le.getSections(R.sections).filter(W=>W.value!=="").length===(Y.value===""?0:1),Z=L(N,""),re=te?null:t.getInvalidDate(),ie=le.getNewValuesFromNewActiveDate(re);D(_({},ie,{sections:Z}))},H=Y=>{const le=(Z,re)=>{const ie=t.parse(Z,g);if(ie==null||!t.isValid(ie))return null;const W=N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ie,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o});return j0(t,ie,W,re,!1)},ae=a.parseValueStr(Y,R.referenceValue,le),te=a.updateReferenceValue(t,ae,R.referenceValue);D({value:ae,referenceValue:te,sections:w(ae,R.sections)})},se=({activeSection:Y,newSectionValue:le,shouldGoToNextSection:ae})=>{ae&&N_({},K,W,{sections:Z,tempValueStrAndroid:null}))},X=Y=>A(le=>_({},le,{tempValueStrAndroid:Y}));return p.useEffect(()=>{const Y=w(R.value);A(le=>_({},le,{sections:Y}))},[g,t.locale,o]),p.useEffect(()=>{let Y;i.areValuesEqual(t,R.value,k)?Y=i.getTimezone(t,R.value)!==i.getTimezone(t,k):Y=!0,Y&&A(le=>_({},le,{value:k,referenceValue:a.updateReferenceValue(t,k,le.referenceValue),sections:w(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:I,setSelectedSections:T,clearValue:z,clearActiveSection:V,updateSectionValue:se,updateValueFromValueStr:H,setTempAndroidValueStr:X,getSectionsFromValue:w,sectionsValueBoundaries:$,localizedDigits:P,timezone:E}},h5=5e3,Ui=e=>e.saveQuery!=null,m5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=yt(),[s,l]=p.useState(null),c=Se(()=>l(null));p.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&c()},[e,s,c]),p.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),h5);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:S},C,h)=>{const m=g.toLowerCase(),v=e[S];if(s!=null&&(!h||h(s.value))&&s.sectionIndex===S){const E=`${s.value}${m}`,k=C(E,v);if(!Ui(k))return l({sectionIndex:S,value:E,sectionType:v.type}),k}const b=C(m,v);return Ui(b)&&!b.saveQuery?(c(),null):(l({sectionIndex:S,value:m,sectionType:v.type}),Ui(b)?null:b)},d=g=>{const S=(m,v,b)=>{const E=v.filter(k=>k.toLowerCase().startsWith(b));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},C=(m,v,b,E)=>{const k=M=>E1(a,i,v.type,M);if(v.contentType==="letter")return S(v.format,k(v.format),m);if(b&&E!=null&&k1(a,b).contentType==="letter"){const M=k(b),P=S(b,M,m);return Ui(P)?{saveQuery:!1}:_({},P,{sectionValue:E(P.sectionValue,M)})}return{saveQuery:!1}};return u(g,(m,v)=>{switch(v.type){case"month":{const b=E=>A0(a,E,a.formats.month,v.format);return C(m,v,a.formats.month,b)}case"weekDay":{const b=(E,k)=>k.indexOf(E).toString();return C(m,v,a.formats.weekday,b)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=g=>{const S=(h,m)=>{const v=wi(h,r),b=Number(v),E=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(b>E.maximum)return{saveQuery:!1};if(bE.maximum||v.length===E.maximum.toString().length;return{sectionValue:M1(a,b,E,r,m),shouldGoToNextSection:k}};return u(g,(h,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return S(h,m);if(m.type==="month"){const v=D1(a,"digit","month","MM"),b=S(h,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ui(b))return b;const E=A0(a,b.sectionValue,"MM",m.format);return _({},b,{sectionValue:E})}if(m.type==="weekDay"){const v=S(h,m);if(Ui(v))return v;const b=qd(a,m.format)[Number(v.sectionValue)-1];return _({},v,{sectionValue:b})}return{saveQuery:!1}},h=>$0(h,r))};return{applyCharacterEditing:Se(g=>{const S=e[g.sectionIndex],h=$0(g.keyPressed,r)?f(_({},g,{keyPressed:fg(g.keyPressed,r)})):d(g);if(h==null){o(null);return}t({activeSection:S,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})}),resetCharacterQuery:c}},g5=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:y,setSelectedSections:g,parsedSelectedSections:S,state:C,clearActiveSection:h,clearValue:m,updateSectionValue:v,updateValueFromValueStr:b,sectionOrder:E,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,P=p.useRef(null),$=Ye(r,P),w=mo(),R=yt(),A=Wo(),[j,O]=p.useState(!1),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;const F=document.getSelection();if(!F)return;if(S==null){F.rangeCount>0&&P.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&P.current.getRoot().blur();return}if(!P.current.getRoot().contains(Dn(document)))return;const K=new window.Range;let Q;S==="all"?Q=P.current.getRoot():C.sections[S].type==="empty"?Q=P.current.getSectionContainer(S):Q=P.current.getSectionContent(S),K.selectNodeContents(Q),Q.focus(),F.removeAllRanges(),F.addRange(K)},getActiveSectionIndexFromDOM:()=>{const F=Dn(document);return!F||!P.current||!P.current.getRoot().contains(F)?null:P.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!P.current)return;const K=fh(F,C.sections);O(!0),P.current.getSectionContent(K).focus()},setSelectedSections:F=>{if(!P.current)return;const K=fh(F,C.sections);O((K==="all"?0:K)!==null),g(F)},isFieldFocused:()=>{const F=Dn(document);return!!P.current&&P.current.getRoot().contains(F)}}),[S,g,C.sections,j]),I=Se(F=>{if(!P.current)return;const K=C.sections[F];P.current.getSectionContent(F).innerHTML=K.value||K.placeholder,T.syncSelectionToDOM()}),N=Se((F,...K)=>{F.isDefaultPrevented()||!P.current||(O(!0),i==null||i(F,...K),S==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){g(E.startIndex);return}let ne=0,ue=0;for(;ue{if(s==null||s(F),!P.current||S!=="all")return;const Q=F.target.textContent??"";P.current.getRoot().innerHTML=C.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),T.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(y(),m(),g("all")):Q.length>1?b(Q):f({keyPressed:Q,sectionIndex:0})}),L=Se(F=>{if(l==null||l(F),n||S!=="all"){F.preventDefault();return}const K=F.clipboardData.getData("text");F.preventDefault(),y(),b(K)}),z=Se((...F)=>{if(a==null||a(...F),j||!P.current)return;O(!0),P.current.getSectionIndexFromDOMElement(Dn(document))!=null||g(E.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!P.current)return;const K=Dn(document);!P.current.getRoot().contains(K)&&(O(!1),g(null))})}),H=Se(F=>K=>{K.isDefaultPrevented()||g(F)}),se=Se(F=>{F.preventDefault()}),X=Se(F=>()=>{g(F)}),Y=Se(F=>{if(F.preventDefault(),n||t||typeof S!="number")return;const K=C.sections[S],Q=F.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(Q),ue=/^[0-9]+$/.test(Q),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);K.contentType==="letter"&&ne||K.contentType==="digit"&&ue||K.contentType==="digit-with-letter"&&ee?(y(),v({activeSection:K,newSectionValue:Q,shouldGoToNextSection:!0})):!ne&&!ue&&(y(),b(Q))}),le=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ae=Se(F=>{if(!P.current)return;const K=F.target,Q=K.textContent??"",ne=P.current.getSectionIndexFromDOMElement(K),ue=C.sections[ne];if(n||!P.current){I(ne);return}if(Q.length===0){if(ue.value===""){I(ne);return}const ee=F.nativeEvent.inputType;if(ee==="insertParagraph"||ee==="insertLineBreak"){I(ne);return}y(),h();return}f({keyPressed:Q,sectionIndex:ne}),I(ne)});Ut(()=>{if(!(!j||!P.current)){if(S==="all")P.current.getRoot().focus();else if(typeof S=="number"){const F=P.current.getSectionContent(S);F&&F.focus()}}},[S,j]);const te=p.useMemo(()=>C.sections.reduce((F,K)=>(F[K.type]=M[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),F),{}),[M,C.sections]),Z=S==="all",re=p.useMemo(()=>C.sections.map((F,K)=>{const Q=!Z&&!t&&!n;return{container:{"data-sectionindex":K,onClick:H(K)},content:{tabIndex:Z||K>0?-1:0,contentEditable:!Z&&!t&&!n,role:"spinbutton",id:`${A}-${F.type}`,"aria-labelledby":`${A}-${F.type}`,"aria-readonly":n,"aria-valuenow":HF(F,R),"aria-valuemin":te[F.type].minimum,"aria-valuemax":te[F.type].maximum,"aria-valuetext":F.value?UF(F,R):w.empty,"aria-label":w[F.type],"aria-disabled":t,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(p.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:F.value||F.placeholder,onInput:ae,onPaste:Y,onFocus:X(K),onDragOver:le,onMouseUp:se,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,X,Y,le,ae,H,se,t,n,Z,w,R,te,A]),ie=Se(F=>{b(F.target.value)}),W=p.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return p.useEffect(()=>{if(P.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` -`));u&&P.current&&P.current.getSectionContent(E.startIndex).focus()},[]),{interactions:T,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:z,onInput:D,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:re,tabIndex:S===0?-1:0,contentEditable:Z,value:W,onChange:ie,areAllSectionsEmpty:k}}},oa=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),y5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=lr(),n=p.useRef(),r=p.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:y,state:g,fieldValueManager:S,valueManager:C,applyCharacterEditing:h,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:b,clearActiveSection:E,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:P,getSectionsFromValue:$,areAllSectionsEmpty:w,localizedDigits:R}=e,A=p.useRef(null),j=Ye(l,A),O=p.useMemo(()=>y5(g.sections,R,t),[g.sections,R,t]),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;if(f==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==Dn(document))return;const ae=A.current.scrollTop;if(f==="all")A.current.select();else{const te=O[f],Z=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,re=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(Z!==A.current.selectionStart||re!==A.current.selectionEnd)&&A.current===Dn(document)&&A.current.setSelectionRange(Z,re),clearTimeout(r.current),r.current=setTimeout(()=>{A.current&&A.current===Dn(document)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==Z||A.current.selectionEnd!==re)&&T.syncSelectionToDOM()})}A.current.scrollTop=ae},getActiveSectionIndexFromDOM:()=>{const ae=A.current.selectionStart??0,te=A.current.selectionEnd??0;if(ae===0&&te===0)return null;const Z=ae<=O[0].startInInput?1:O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);return Z===-1?O.length-1:Z-1},focusField:(ae=0)=>{var te;(te=A.current)==null||te.focus(),P(ae)},setSelectedSections:ae=>P(ae),isFieldFocused:()=>A.current===Dn(document)}),[A,f,O,P]),I=()=>{const ae=A.current.selectionStart??0;let te;ae<=O[0].startInInput||ae>=O[O.length-1].endInInput?te=1:te=O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);const Z=te===-1?O.length-1:te-1;P(Z)},N=Se((...ae)=>{o==null||o(...ae);const te=A.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==A.current||y==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?P("all"):I())})}),D=Se((ae,...te)=>{ae.isDefaultPrevented()||(i==null||i(ae,...te),I())}),L=Se(ae=>{if(a==null||a(ae),ae.preventDefault(),u||d)return;const te=ae.clipboardData.getData("text");if(typeof f=="number"){const Z=g.sections[f],re=/^[a-zA-Z]+$/.test(te),ie=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(Z.contentType==="letter"&&re||Z.contentType==="digit"&&ie||Z.contentType==="digit-with-letter"&&W){m(),v({activeSection:Z,newSectionValue:te,shouldGoToNextSection:!0});return}if(re||ie)return}m(),b(te)}),z=Se((...ae)=>{s==null||s(...ae),P(null)}),V=Se(ae=>{if(u)return;const te=ae.target.value;if(te===""){m(),k();return}const Z=ae.nativeEvent.data,re=Z&&Z.length>1,ie=re?Z:te,W=oa(ie);if(y==null||re){b(re?Z:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const K=oa(S.getV6InputValueFromSections(O,R,t));let Q=-1,ne=-1;for(let ve=0;veue.end)return;const fe=W.length-K.length+ue.end-oa(ue.endSeparator||"").length;F=W.slice(ue.start+oa(ue.startSeparator||"").length,fe)}if(F.length===0){VF()&&M(ie),m(),E();return}h({keyPressed:F,sectionIndex:y})}),H=p.useMemo(()=>c!==void 0?c:S.getV6InputValueFromSections($(C.emptyValue),R,t),[c,S,$,C.emptyValue,R,t]),se=p.useMemo(()=>g.tempValueStrAndroid??S.getV6InputValueFromSections(g.sections,R,t),[g.sections,S,g.tempValueStrAndroid,R,t]);p.useEffect(()=>(A.current&&A.current===Dn(document)&&P("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const X=p.useMemo(()=>y==null||g.sections[y].contentType==="letter"?"text":"numeric",[y,g.sections]),le=!(A.current&&A.current===Dn(document))&&w;return{interactions:T,returnedValue:{readOnly:u,onBlur:z,onClick:D,onFocus:N,onPaste:L,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:H,inputMode:X,autoComplete:"off",value:le?"":se,onChange:V}}},x5=e=>{const t=yt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:y,validator:g}=e,S=lr(),C=p5(e),{state:h,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:b,clearValue:E,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:P,sectionsValueBoundaries:$,localizedDigits:w,timezone:R}=C,A=m5({sections:h.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:w,setTempAndroidValueStr:P,timezone:R}),{resetCharacterQuery:j}=A,O=y.areValuesEqual(t,h.value,y.emptyValue),T=i?g5:v5,I=p.useMemo(()=>WF(h.sections,S&&!i),[h.sections,S,i]),{returnedValue:N,interactions:D}=T(_({},e,C,A,{areAllSectionsEmpty:O,sectionOrder:I})),L=Se(Y=>{if(l==null||l(Y),!a)switch(!0){case((Y.ctrlKey||Y.metaKey)&&String.fromCharCode(Y.keyCode)==="A"&&!Y.shiftKey&&!Y.altKey):{Y.preventDefault(),b("all");break}case Y.key==="ArrowRight":{if(Y.preventDefault(),v==null)b(I.startIndex);else if(v==="all")b(I.endIndex);else{const le=I.neighbors[v].rightIndex;le!==null&&b(le)}break}case Y.key==="ArrowLeft":{if(Y.preventDefault(),v==null)b(I.endIndex);else if(v==="all")b(I.startIndex);else{const le=I.neighbors[v].leftIndex;le!==null&&b(le)}break}case Y.key==="Delete":{if(Y.preventDefault(),s)break;v==null||v==="all"?E():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Y.key):{if(Y.preventDefault(),s||m==null)break;const le=h.sections[m],ae=f.getActiveDateManager(t,h,le),te=jF(t,R,le,Y.key,$,w,ae.date,{minutesStep:o});M({activeSection:le,newSectionValue:te,shouldGoToNextSection:!1});break}}});Ut(()=>{D.syncSelectionToDOM()});const{hasValidationError:z}=A1({props:n,validator:g,timezone:R,value:h.value,onError:n.onError}),V=p.useMemo(()=>c!==void 0?c:z,[z,c]);p.useEffect(()=>{!V&&m==null&&j()},[h.referenceValue,m,V]),p.useEffect(()=>{h.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[h.sections]),p.useImperativeHandle(r,()=>({getSections:()=>h.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused}));const H=Se((Y,...le)=>{Y.preventDefault(),d==null||d(Y,...le),E(),D.isFieldFocused()?b(I.startIndex):D.focusField(0)}),se={onKeyDown:L,onClear:H,error:V,clearable:!!(u&&!O&&!s&&!a)},X={disabled:a,readOnly:s};return _({},e.forwardedProps,se,X,N)},S5=["clearable","onClear","InputProps","sx","slots","slotProps"],b5=["ownerState"],w5=e=>{const t=mo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,S5),c=(a==null?void 0:a.clearButton)??Wr,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,b5),f=(a==null?void 0:a.clearIcon)??uF,y=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return _({},l,{InputProps:_({},o,{endAdornment:x.jsxs(p.Fragment,{children:[n&&x.jsx(kw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:x.jsx(c,_({},d,{onClick:r,children:x.jsx(f,_({fontSize:"small"},y))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},C5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],k5=(e,t)=>p.useMemo(()=>{const n=_({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return C5.forEach(o),O1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),E5=p.createContext(null);function L1(e){const{contextValue:t,localeText:n,children:r}=e;return x.jsx(E5.Provider,{value:t,children:x.jsx(x1,{localeText:n,children:r})})}const P5=e=>{const t=yt(),n=Yl();return _({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:ar(t,e.minDate,n.minDate),maxDate:ar(t,e.maxDate,n.maxDate)})},M5=e=>{const t=P5(e),{forwardedProps:n,internalProps:r}=k5(t,"date");return x5({forwardedProps:n,internalProps:r,valueManager:Hr,fieldValueManager:KF,validator:Kl,valueType:"date"})};function R5(e){return ge("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function D5(e){return ge("MuiPickersInputBase",e)}const ga=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function T5(e){return ge("MuiPickersSectionList",e)}const Ss=me("MuiPickersSectionList",["root","section","sectionContent"]),I5=["slots","slotProps","elements","sectionListRef"],j1=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),N1=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),F1=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),B1=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),O5=e=>{const{classes:t}=e;return ye({root:["root"],section:["section"],sectionContent:["sectionContent"]},T5,t)};function $5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??N1,a=Qe({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??B1,l=Qe({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??F1,u=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return x.jsxs(i,_({},a,{children:[x.jsx(c,_({},u)),x.jsx(s,_({},l)),x.jsx(c,_({},d))]}))}const A5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,I5),c=O5(r),u=p.useRef(null),d=Ye(n,u),f=S=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return u.current};p.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(S){return f("getSectionContainer").querySelector(`.${Ss.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return f("getSectionContent").querySelector(`.${Ss.section}[data-sectionindex="${S}"] .${Ss.sectionContent}`)},getSectionIndexFromDOMElement(S){const C=f("getSectionIndexFromDOMElement");if(S==null||!C.contains(S))return null;let h=null;return S.classList.contains(Ss.section)?h=S:S.classList.contains(Ss.sectionContent)&&(h=S.parentElement),h==null?null:Number(h.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??j1,g=Qe({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return x.jsx(y,_({},g,{children:g.contentEditable?a.map(({content:S,before:C,after:h})=>`${C.children}${S.children}${h.children}`).join(""):x.jsx(p.Fragment,{children:a.map((S,C)=>x.jsx($5,{slots:o,slotProps:i,element:S,classes:c},C))})}))}),L5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],j5=e=>Math.round(e*1e5)/1e5,Zd=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>_({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${j5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),hg=G(j1,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),N5=G(N1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),F5=G(B1,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),B5=G(F1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),z5=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(_({},gR)),_5=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${ce(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ye(d,D5,o)},mg=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:y,contentEditable:g,tabIndex:S,onInput:C,onPaste:h,onKeyDown:m,name:v,readOnly:b,inputProps:E,inputRef:k,sectionListRef:M}=r,P=Ae(r,L5),$=p.useRef(null),w=Ye(n,$),R=Ye(E==null?void 0:E.ref,k),A=lr(),j=kr();if(!j)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const O=z=>{var V;if(j.disabled){z.stopPropagation();return}(V=j.onFocus)==null||V.call(j,z)};p.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),p.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const T=_({},r,j,{isRtl:A}),I=_5(T),N=(f==null?void 0:f.root)||Zd,D=Qe({elementType:N,externalSlotProps:y==null?void 0:y.root,externalForwardedProps:P,additionalProps:{"aria-invalid":j.error,ref:w},className:I.root,ownerState:T}),L=(f==null?void 0:f.input)||hg;return x.jsxs(N,_({},D,{children:[u,x.jsx(A5,{sectionListRef:M,elements:o,contentEditable:g,tabIndex:S,className:I.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:h,onKeyDown:m,slots:{root:L,section:N5,sectionContent:F5,sectionSeparator:B5},slotProps:{root:{ownerState:T},sectionContent:{className:ga.sectionContent},sectionSeparator:({position:z})=>({className:z==="before"?ga.sectionBefore:ga.sectionAfter})}}),c,d?d(_({},j)):null,x.jsx(z5,_({name:v,className:I.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:j.required,disabled:j.disabled},E,{ref:R}))]}))});function V5(e){return ge("MuiPickersOutlinedInput",e)}const dr=_({},ga,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),W5=["children","className","label","notched","shrink"],U5=G("fieldset",{name:"MuiPickersOutlinedInput",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{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),F0=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),H5=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Y5(e){const{className:t,label:n}=e,r=Ae(e,W5),o=n!=null&&n!=="",i=_({},e,{withLabel:o});return x.jsx(U5,_({"aria-hidden":!0,className:t},r,{ownerState:i,children:x.jsx(H5,{ownerState:i,children:o?x.jsx(F0,{children:n}):x.jsx(F0,{className:"notranslate",children:"​"})})}))}const K5=["label","autoFocus","ownerState","notched"],G5=G(Zd,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${dr.focused} .${dr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${dr.disabled}`]:{[`& .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${dr.error} .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${dr.focused}:not(.${dr.error}) .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Q5=G(hg,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),X5=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},V5,t);return _({},t,r)},z1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,K5),l=kr(),c=_({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=X5(c);return x.jsx(mg,_({slots:{root:G5,input:Q5},renderSuffix:d=>x.jsx(Y5,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?x.jsxs(p.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});z1.muiName="Input";function q5(e){return ge("MuiPickersFilledInput",e)}const Qo=_({},ga,me("MuiPickersFilledInput",["root","underline","input"])),Z5=["label","autoFocus","disableUnderline","ownerState"],J5=G(Zd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wc(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Qo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Qo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${Qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qo.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})`:n}`,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(.${Qo.disabled}, .${Qo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),eB=G(hg,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),tB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},q5,t);return _({},t,o)},_1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Z5),l=kr(),c=_({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=tB(c);return x.jsx(mg,_({slots:{root:J5,input:eB},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});_1.muiName="Input";function nB(e){return ge("MuiPickersFilledInput",e)}const bs=_({},ga,me("MuiPickersInput",["root","input"])),rB=["label","autoFocus","disableUnderline","ownerState"],oB=G(Zd,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${bs.disabled}, .${bs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),iB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},nB,t);return _({},t,o)},V1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,rB),l=kr(),c=_({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=iB(c);return x.jsx(mg,_({slots:{root:oB}},s,{label:o,classes:u,ref:n}))});V1.muiName="Input";const aB=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],sB={standard:V1,filled:_1,outlined:z1},lB=G(to,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ye({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},R5,r)},uB=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:y,inputRef:g,sectionListRef:S,elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onPaste:E,onInput:k,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,focused:R,value:A,onChange:j,fullWidth:O,id:T,name:I,helperText:N,FormHelperTextProps:D,label:L,InputLabelProps:z}=r,V=Ae(r,aB),H=p.useRef(null),se=Ye(n,H),X=Wo(T),Y=N&&X?`${X}-helper-text`:void 0,le=L&&X?`${X}-label`:void 0,ae=_({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),te=cB(ae),Z=sB[u];return x.jsxs(lB,_({className:pe(te.root,a),ref:se,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ae},V,{children:[x.jsx(Fd,_({htmlFor:X,id:le},z,{children:L})),x.jsx(Z,_({elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onInput:k,onPaste:E,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,value:A,onChange:j,id:X,fullWidth:O,inputProps:y,inputRef:g,sectionListRef:S,label:L,name:I,role:"group","aria-labelledby":le},f)),N&&x.jsx(Cw,_({id:Y},D,{children:N}))]}))}),dB=["enableAccessibleFieldDOMStructure"],fB=["InputProps","readOnly"],pB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],hB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,dB);if(t){const{InputProps:d,readOnly:f}=n,y=Ae(n,fB);return _({},y,{InputProps:_({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,pB);return _({},u,{InputProps:_({},s??{},{readOnly:a}),inputProps:_({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},mB=["slots","slotProps","InputProps","inputProps"],W1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,mB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?uB:Cn),d=Qe({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=_({},s,d.inputProps),d.InputProps=_({},a,d.InputProps);const f=M5(d),y=hB(f),g=w5(_({},y,{slots:o,slotProps:i}));return x.jsx(u,_({},g))}),U1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Ii();return p.useCallback(c=>Kl({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},gB=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return _({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),_({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return _({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return _({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},yB=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=yt(),y=p.useRef(gB(!!c,i,f)).current,g=p.useMemo(()=>Hr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Ar.day}),[n,d]),[S,C]=p.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"});p.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(g)})},[g,f]);const h=p.useCallback(k=>{C(_({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=p.useCallback(k=>{const M=k;f.isSameMonth(M,S.currentMonth)||h({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,S.currentMonth)?"left":"right"})},[S.currentMonth,h,f]),v=U1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),b=p.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),E=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:S,changeMonth:m,changeFocusedDay:E,isDateDisabled:v,onMonthSwitchingAnimationEnd:b,handleChangeMonth:h}},vB=e=>ge("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const xB=e=>{const{classes:t}=e;return ye({root:["root"]},vB,t)},SB=G(Nl,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function H1(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=xB(t),s=Cr();return o?n:x.jsx(SB,{className:pe(a.root,r),children:x.jsx(Ka,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const bB=e=>ge("MuiPickersSlideTransition",e),Yn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),wB=["children","className","reduceAnimations","slideDirection","transKey","classes"],CB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ye(r,bB,t)},kB=G(Nl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function EB(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,wB),s=CB(t),l=Cr();if(o)return x.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return x.jsx(kB,{className:pe(s.root,r),childFactory:u=>p.cloneElement(u,{classNames:c}),role:"presentation",children:x.jsx(Dm,_({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const PB=e=>ge("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const MB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],RB=["ownerState"],DB=e=>{const{classes:t}=e;return ye({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},PB,t)},Y1=(Pl+Qd*2)*6,TB=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IB=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),OB=G(Fe,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),$B=G(Fe,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),AB=G(Fe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,padding:0,margin:`0 ${Qd}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),LB=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Y1}),jB=G(EB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Y1}),NB=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),FB=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Qd}px 0`,display:"flex",justifyContent:"center"});function BB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,MB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:y,slotProps:g,timezone:S}=t,C=yt(),h=Gd(S),m=r!==null&&C.isSameDay(n,r),v=o.some(A=>C.isSameDay(A,n)),b=C.isSameDay(n,h),E=(y==null?void 0:y.day)??r5,k=Qe({elementType:E,externalSlotProps:g==null?void 0:g.day,additionalProps:_({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":C.toJsDate(n).valueOf()},l),ownerState:_({},t,{day:n,selected:v})}),M=Ae(k,RB),P=p.useMemo(()=>c||i(n),[c,i,n]),$=p.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),w=p.useMemo(()=>{const A=C.startOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.startOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]),R=p.useMemo(()=>{const A=C.endOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.endOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]);return x.jsx(E,_({},M,{day:n,disabled:P,autoFocus:s&&m,today:b,outsideCurrentMonth:$,isFirstVisibleCell:w,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":b?"date":void 0}))}function zB(e){const t=gt({props:e,name:"MuiDayCalendar"}),n=yt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:y=()=>x.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:S,disablePast:C,disableFuture:h,minDate:m,maxDate:v,shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,dayOfWeekFormatter:M=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:$,gridLabelId:w,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:j,timezone:O}=t,T=Gd(O),I=DB(t),N=lr(),D=U1({shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:h,timezone:O}),L=mo(),[z,V]=co({name:"DayCalendar",state:"hasFocus",controlled:P,default:j??!1}),[H,se]=p.useState(()=>s||T),X=Se(ne=>{d||c(ne)}),Y=ne=>{D(ne)||(r(ne),se(ne),$==null||$(!0),V(!0))},le=Se((ne,ue)=>{switch(ne.key){case"ArrowUp":Y(n.addDays(ue,-7)),ne.preventDefault();break;case"ArrowDown":Y(n.addDays(ue,7)),ne.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ve=Ks({utils:n,date:ee,minDate:N?ee:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):ee,isDateDisabled:D,timezone:O});Y(ve||ee),ne.preventDefault();break}case"ArrowRight":{const ee=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ve=Ks({utils:n,date:ee,minDate:N?n.startOfMonth(fe):ee,maxDate:N?ee:n.endOfMonth(fe),isDateDisabled:D,timezone:O});Y(ve||ee),ne.preventDefault();break}case"Home":Y(n.startOfWeek(ue)),ne.preventDefault();break;case"End":Y(n.endOfWeek(ue)),ne.preventDefault();break;case"PageUp":Y(n.addMonths(ue,1)),ne.preventDefault();break;case"PageDown":Y(n.addMonths(ue,-1)),ne.preventDefault();break}}),ae=Se((ne,ue)=>Y(ue)),te=Se((ne,ue)=>{z&&n.isSameDay(H,ue)&&($==null||$(!1))}),Z=n.getMonth(i),re=n.getYear(i),ie=p.useMemo(()=>a.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,a]),W=`${re}-${Z}`,F=p.useMemo(()=>p.createRef(),[W]),K=p.useMemo(()=>{const ne=n.startOfMonth(i),ue=n.endOfMonth(i);return D(H)||n.isAfterDay(H,ue)||n.isBeforeDay(H,ne)?Ks({utils:n,date:H,minDate:ne,maxDate:ue,disablePast:C,disableFuture:h,isDateDisabled:D,timezone:O}):H},[i,h,C,H,D,n,O]),Q=p.useMemo(()=>{const ne=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;A&&ne.length{ne.lengthx.jsx(OB,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:I.weekDayLabel,children:M(ne)},ue.toString()))]}),l?x.jsx(LB,{className:I.loadingContainer,children:y()}):x.jsx(jB,_({transKey:W,onExited:u,reduceAnimations:f,slideDirection:g,className:pe(o,I.slideTransition)},S,{nodeRef:F,children:x.jsx(NB,{ref:F,role:"rowgroup",className:I.monthContainer,children:Q.map((ne,ue)=>x.jsxs(FB,{role:"row",className:I.weekContainer,"aria-rowindex":ue+1,children:[R&&x.jsx(AB,{className:I.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:L.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((ee,fe)=>x.jsx(BB,{parentProps:t,day:ee,selectedDays:ie,focusableDay:K,onKeyDown:le,onFocus:ae,onBlur:te,onDaySelect:X,isDateDisabled:D,currentMonthNumber:Z,isViewFocused:z,"aria-colindex":fe+1},ee.toString()))]},`week-${ne[0]}`))})}))]})}function _B(e){return ge("MuiPickersMonth",e)}const Pc=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),VB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],WB=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_B,r)},UB=G("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),HB=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Pc.disabled}`]:t.disabled},{[`&.${Pc.selected}`]:t.selected}]})(({theme:e})=>_({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Pc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),YB=p.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,"aria-label":S,slots:C,slotProps:h}=n,m=Ae(n,VB),v=p.useRef(null),b=WB(n);Ut(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const E=(C==null?void 0:C.monthButton)??HB,k=Qe({elementType:E,externalSlotProps:h==null?void 0:h.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":S,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>y(M,l)},ownerState:n,className:b.monthButton});return x.jsx(UB,_({className:pe(b.root,o),ownerState:n},m,{children:x.jsx(E,_({},k))}))});function KB(e){return ge("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const GB=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],QB=e=>{const{classes:t}=e;return ye({root:["root"]},KB,t)};function XB(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t});return _({disableFuture:!1,disablePast:!1},o,{minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const qB=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Xd,boxSizing:"border-box"}),ZB=p.forwardRef(function(t,n){const r=XB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:y,shouldDisableMonth:g,readOnly:S,autoFocus:C=!1,onMonthFocus:h,hasFocus:m,onFocusedViewChange:v,monthsPerRow:b=3,timezone:E,gridLabelId:k,slots:M,slotProps:P}=r,$=Ae(r,GB),{value:w,handleValueChange:R,timezone:A}=dg({name:"MonthCalendar",timezone:E,value:i,defaultValue:a,referenceDate:s,onChange:y,valueManager:Hr}),j=Gd(A),O=lr(),T=yt(),I=p.useMemo(()=>Hr.getInitialReferenceValue({value:w,utils:T,props:r,timezone:A,referenceDate:s,granularity:Ar.month}),[]),N=r,D=QB(N),L=p.useMemo(()=>T.getMonth(j),[T,j]),z=p.useMemo(()=>w!=null?T.getMonth(w):null,[w,T]),[V,H]=p.useState(()=>z||T.getMonth(I)),[se,X]=co({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),Y=Se(W=>{X(W),v&&v(W)}),le=p.useCallback(W=>{const F=T.startOfMonth(u&&T.isAfter(j,f)?j:f),K=T.startOfMonth(c&&T.isBefore(j,d)?j:d),Q=T.startOfMonth(W);return T.isBefore(Q,F)||T.isAfter(Q,K)?!0:g?g(Q):!1},[c,u,d,f,j,g,T]),ae=Se((W,F)=>{if(S)return;const K=T.setMonth(w??I,F);R(K)}),te=Se(W=>{le(T.setMonth(w??I,W))||(H(W),Y(!0),h&&h(W))});p.useEffect(()=>{H(W=>z!==null&&W!==z?z:W)},[z]);const Z=Se((W,F)=>{switch(W.key){case"ArrowUp":te((12+F-3)%12),W.preventDefault();break;case"ArrowDown":te((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+F+(O?-1:1))%12),W.preventDefault();break}}),re=Se((W,F)=>{te(F)}),ie=Se((W,F)=>{V===F&&Y(!1)});return x.jsx(qB,_({ref:n,className:pe(D.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:lg(T,w??I).map(W=>{const F=T.getMonth(W),K=T.format(W,"monthShort"),Q=T.format(W,"month"),ne=F===z,ue=l||le(W);return x.jsx(YB,{selected:ne,value:F,onClick:ae,onKeyDown:Z,autoFocus:se&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:re,onBlur:ie,"aria-current":L===F?"date":void 0,"aria-label":Q,monthsPerRow:b,slots:M,slotProps:P,children:K},K)})}))});function JB(e){return ge("MuiPickersYear",e)}const Mc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),e4=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],t4=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},JB,r)},n4=G("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),r4=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Mc.disabled}`]:t.disabled},{[`&.${Mc.selected}`]:t.selected}]})(({theme:e})=>_({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Mc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Mc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),o4=p.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,slots:S,slotProps:C}=n,h=Ae(n,e4),m=p.useRef(null),v=t4(n);Ut(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const b=(S==null?void 0:S.yearButton)??r4,E=Qe({elementType:b,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>y(k,l)},ownerState:n,className:v.yearButton});return x.jsx(n4,_({className:pe(v.root,o),ownerState:n},h,{children:x.jsx(b,_({},E))}))});function i4(e){return ge("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const a4=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],s4=e=>{const{classes:t}=e;return ye({root:["root"]},i4,t)};function l4(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t});return _({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const c4=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Xd,maxHeight:EF,boxSizing:"border-box",position:"relative"}),u4=p.forwardRef(function(t,n){const r=l4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onChange:g,readOnly:S,shouldDisableYear:C,onYearFocus:h,hasFocus:m,onFocusedViewChange:v,yearsOrder:b="asc",yearsPerRow:E,timezone:k,gridLabelId:M,slots:P,slotProps:$}=r,w=Ae(r,a4),{value:R,handleValueChange:A,timezone:j}=dg({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Hr}),O=Gd(j),T=lr(),I=yt(),N=p.useMemo(()=>Hr.getInitialReferenceValue({value:R,utils:I,props:r,timezone:j,referenceDate:l,granularity:Ar.year}),[]),D=r,L=s4(D),z=p.useMemo(()=>I.getYear(O),[I,O]),V=p.useMemo(()=>R!=null?I.getYear(R):null,[R,I]),[H,se]=p.useState(()=>V||I.getYear(N)),[X,Y]=co({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),le=Se(ee=>{Y(ee),v&&v(ee)}),ae=p.useCallback(ee=>{if(d&&I.isBeforeYear(ee,O)||u&&I.isAfterYear(ee,O)||y&&I.isBeforeYear(ee,y)||f&&I.isAfterYear(ee,f))return!0;if(!C)return!1;const fe=I.startOfYear(ee);return C(fe)},[u,d,f,y,O,C,I]),te=Se((ee,fe)=>{if(S)return;const ve=I.setYear(R??N,fe);A(ve)}),Z=Se(ee=>{ae(I.setYear(R??N,ee))||(se(ee),le(!0),h==null||h(ee))});p.useEffect(()=>{se(ee=>V!==null&&ee!==V?V:ee)},[V]);const re=b!=="desc"?E*1:E*-1,ie=T&&b==="asc"||!T&&b==="desc"?-1:1,W=Se((ee,fe)=>{switch(ee.key){case"ArrowUp":Z(fe-re),ee.preventDefault();break;case"ArrowDown":Z(fe+re),ee.preventDefault();break;case"ArrowLeft":Z(fe-ie),ee.preventDefault();break;case"ArrowRight":Z(fe+ie),ee.preventDefault();break}}),F=Se((ee,fe)=>{Z(fe)}),K=Se((ee,fe)=>{H===fe&&le(!1)}),Q=p.useRef(null),ne=Ye(n,Q);p.useEffect(()=>{if(o||Q.current===null)return;const ee=Q.current.querySelector('[tabindex="0"]');if(!ee)return;const fe=ee.offsetHeight,ve=ee.offsetTop,Le=Q.current.clientHeight,xe=Q.current.scrollTop,tt=ve+fe;fe>Le||ve{const fe=I.getYear(ee),ve=fe===V,Le=c||ae(ee);return x.jsx(o4,{selected:ve,value:fe,onClick:te,onKeyDown:W,autoFocus:X&&fe===H,disabled:Le,tabIndex:fe===H&&!Le?0:-1,onFocus:F,onBlur:K,"aria-current":z===fe?"date":void 0,yearsPerRow:E,slots:P,slotProps:$,children:I.format(ee,"year")},I.format(ee,"year"))})}))}),d4=e=>ge("MuiPickersCalendarHeader",e),f4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),p4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],h4=["ownerState"],m4=e=>{const{classes:t}=e;return ye({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},d4,t)},g4=G("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),y4=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>_({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),v4=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),x4=G(Wr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${f4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),S4=G(aF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),b4=p.forwardRef(function(t,n){const r=mo(),o=yt(),i=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onMonthChange:g,onViewChange:S,view:C,reduceAnimations:h,views:m,labelId:v,className:b,timezone:E,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,p4),P=i,$=m4(i),w=(a==null?void 0:a.switchViewButton)??x4,R=Qe({elementType:w,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:P,className:$.switchViewButton}),A=(a==null?void 0:a.switchViewIcon)??S4,j=Qe({elementType:A,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:P,className:$.switchViewIcon}),O=Ae(j,h4),T=()=>g(o.addMonths(l,1),"left"),I=()=>g(o.addMonths(l,-1),"right"),N=CF(l,{disableFuture:u,maxDate:f,timezone:E}),D=kF(l,{disablePast:d,minDate:y,timezone:E}),L=()=>{if(!(m.length===1||!S||c))if(m.length===2)S(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;S(m[V])}};if(m.length===1&&m[0]==="year")return null;const z=o.formatByString(l,k);return x.jsxs(g4,_({},M,{ownerState:P,className:pe($.root,b),ref:n,children:[x.jsxs(y4,{role:"presentation",onClick:L,ownerState:P,"aria-live":"polite",className:$.labelContainer,children:[x.jsx(H1,{reduceAnimations:h,transKey:z,children:x.jsx(v4,{id:v,ownerState:P,className:$.label,children:z})}),m.length>1&&!c&&x.jsx(w,_({},R,{children:x.jsx(A,_({},O))}))]}),x.jsx(Ka,{in:C==="day",children:x.jsx(vF,{slots:a,slotProps:s,onGoToPrevious:I,isPreviousDisabled:D,previousLabel:r.previousMonth,onGoToNext:T,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),w4="@media (prefers-reduced-motion: reduce)",ya=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),B0=ya&&ya[1]?parseInt(ya[1],10):null,z0=ya&&ya[2]?parseInt(ya[2],10):null,C4=B0&&B0<10||z0&&z0<13||!1,K1=()=>Nd(w4,{defaultMatches:!1})||C4,k4=e=>ge("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const E4=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],P4=e=>{const{classes:t}=e;return ye({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},k4,t)};function M4(e,t){const n=yt(),r=Yl(),o=K1(),i=gt({props:e,name:t});return _({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>x.jsx("span",{children:"..."})),minDate:ar(n,i.minDate,r.minDate),maxDate:ar(n,i.maxDate,r.maxDate)})}const R4=G(PF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:sg}),D4=G(H1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),T4=p.forwardRef(function(t,n){const r=yt(),o=Wo(),i=M4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:y,onYearChange:g,onMonthChange:S,reduceAnimations:C,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,view:b,views:E,openTo:k,className:M,disabled:P,readOnly:$,minDate:w,maxDate:R,disableHighlightToday:A,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,slots:D,slotProps:L,loading:z,renderLoading:V,displayWeekNumber:H,yearsOrder:se,yearsPerRow:X,monthsPerRow:Y,timezone:le}=i,ae=Ae(i,E4),{value:te,handleValueChange:Z,timezone:re}=dg({name:"DateCalendar",timezone:le,value:l,defaultValue:c,referenceDate:u,onChange:y,valueManager:Hr}),{view:ie,setView:W,focusedView:F,setFocusedView:K,goToNextView:Q,setValueAndGoToNextView:ne}=w1({view:b,views:E,openTo:k,onChange:Z,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:ee,changeFocusedDay:fe,changeMonth:ve,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=yB({value:te,referenceDate:u,reduceAnimations:C,onMonthChange:S,minDate:w,maxDate:R,shouldDisableDate:h,disablePast:f,disableFuture:d,timezone:re}),Pe=P&&te||w,_e=P&&te||R,ut=`${o}-grid-label`,je=F!==null,Oe=(D==null?void 0:D.calendarHeader)??b4,pt=Qe({elementType:Oe,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:E,view:ie,currentMonth:ee.currentMonth,onViewChange:W,onMonthChange:(nt,hn)=>Le({newMonth:nt,direction:hn}),minDate:Pe,maxDate:_e,disabled:P,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:re,labelId:ut},ownerState:i}),At=Se(nt=>{const hn=r.startOfMonth(nt),Yr=r.endOfMonth(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),S==null||S(hn)):(Q(),ve(hn)),fe(Er,!0)}),Ne=Se(nt=>{const hn=r.startOfYear(nt),Yr=r.endOfYear(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),g==null||g(Er)):(Q(),ve(hn)),fe(Er,!0)}),st=Se(nt=>Z(nt&&ju(r,nt,te??ue),"finish",ie));p.useEffect(()=>{te!=null&&r.isValid(te)&&ve(te)},[te]);const Hn=i,go=P4(Hn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:w},qe={disableHighlightToday:A,readOnly:$,disabled:P,timezone:re,gridLabelId:ut,slots:D,slotProps:L},vt=p.useRef(ie);p.useEffect(()=>{vt.current!==ie&&(F===vt.current&&K(ie,!0),vt.current=ie)},[F,K,ie]);const En=p.useMemo(()=>[te],[te]);return x.jsxs(R4,_({ref:n,className:pe(go.root,M),ownerState:Hn},ae,{children:[x.jsx(Oe,_({},pt,{slots:D,slotProps:L})),x.jsx(D4,{reduceAnimations:C,className:go.viewTransitionContainer,transKey:ie,ownerState:Hn,children:x.jsxs("div",{children:[ie==="year"&&x.jsx(u4,_({},Me,qe,{value:te,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("year",nt),yearsOrder:se,yearsPerRow:X,referenceDate:ue})),ie==="month"&&x.jsx(ZB,_({},Me,qe,{hasFocus:je,className:M,value:te,onChange:At,shouldDisableMonth:m,onFocusedViewChange:nt=>K("month",nt),monthsPerRow:Y,referenceDate:ue})),ie==="day"&&x.jsx(zB,_({},ee,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:En,onSelectedDaysChange:st,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("day",nt),showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,displayWeekNumber:H,loading:z,renderLoading:V}))]})})]}))});function I4(e){return ge("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const O4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],$4=e=>{const{classes:t}=e;return ye({root:["root"],content:["content"]},I4,t)},A4=G("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),L4=G("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),j4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,O4),u=r,d=$4(u);return s?null:x.jsxs(A4,_({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[x.jsx(Fe,{color:"text.secondary",variant:"overline",id:l,children:a}),x.jsx(L4,{className:d.content,ownerState:u,children:o})]}))});function N4(e){return ge("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const F4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],B4=e=>{const{classes:t}=e;return ye({root:["root"],title:["title"]},N4,t)},z4=G(j4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_4=G(Fe,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),V4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,F4),d=yt(),f=mo(),y=B4(r),g=p.useMemo(()=>{if(!o)return s;const C=cg(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),S=r;return x.jsx(z4,_({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(y.root,c)},u,{children:x.jsx(_4,{variant:"h4",align:i?"left":"center",ownerState:S,className:y.title,children:g})}))});function G1(e,t){const n=yt(),r=Yl(),o=gt({props:e,name:t}),i=p.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:_({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return _({},o,{localeText:i},xF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate),slots:_({toolbar:V4},o.slots)})}function W4(e){return ge("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const U4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],H4=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},W4,t)},Y4=G(sI,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),K4=G(br,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function G4(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Se(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Wt(o.current);if(!o.current||"clientX"in l&&G4(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return p.useEffect(()=>{if(e){const l=Wt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),p.useEffect(()=>{if(e){const l=Wt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const X4=p.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,U4),d=_({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return x.jsx(n,_({},u,f,{onClick:y=>{var g;l(y),(g=f.onClick)==null||g.call(f,y)},onTouchStart:y=>{var g;c(y),(g=f.onTouchStart)==null||g.call(f,y)},ownerState:d,children:i}))});function q4(e){const t=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:y}=t;p.useEffect(()=>{function T(I){l&&I.key==="Escape"&&s()}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[s,l]);const g=p.useRef(null);p.useEffect(()=>{c==="tooltip"||i&&!i()||(l?g.current=Dn(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,i]);const[S,C,h]=Q4(l,a??s),m=p.useRef(null),v=Ye(m,o),b=Ye(v,S),E=t,k=H4(E),M=K1(),P=y??M,$=T=>{T.key==="Escape"&&(T.stopPropagation(),s())},w=(d==null?void 0:d.desktopTransition)??P?Ka:bl,R=(d==null?void 0:d.desktopTrapFocus)??vw,A=(d==null?void 0:d.desktopPaper)??K4,j=(d==null?void 0:d.popper)??Y4,O=Qe({elementType:j,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:$},className:k.root,ownerState:t});return x.jsx(j,_({},O,{children:({TransitionProps:T,placement:I})=>x.jsx(R,_({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:x.jsx(w,_({},T,f==null?void 0:f.desktopTransition,{children:x.jsx(X4,{PaperComponent:A,ownerState:E,popperPlacement:I,ref:b,onPaperClick:C,onPaperTouchStart:h,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const Z4=({open:e,onOpen:t,onClose:n})=>{const r=p.useRef(typeof e=="boolean").current,[o,i]=p.useState(!1);p.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=p.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},J4=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},ez=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},tz=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},nz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=p.useRef(l),{current:y}=p.useRef(s!==void 0),[g,S]=p.useState(u),C=yt(),h=Ii(),{isOpen:m,setIsOpen:v}=Z4(e),{timezone:b,value:E,handleValueChange:k}=ug({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,P]=p.useState(()=>{let Z;return E!==void 0?Z=E:f!==void 0?Z=f:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);g!==u&&(S(u),u&&$&&u!==$&&P(Z=>_({},Z,{draft:t.setTimezone(C,u,Z.draft)})));const{getValidationErrorForNewValue:w}=A1({props:e,validator:o,timezone:b,value:M.draft,onError:e.onError}),R=Se(Z=>{const re={action:Z,dateState:M,hasChanged:ne=>!t.areValuesEqual(C,Z.value,ne),isControlled:y,closeOnSelect:c},ie=J4(re),W=ez(re),F=tz(re);P(ne=>_({},ne,{draft:Z.value,lastPublishedValue:ie?Z.value:ne.lastPublishedValue,lastCommittedValue:W?Z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const Q=()=>(K||(K={validationError:Z.name==="setValueFromField"?Z.context.validationError:w(Z.value)},Z.name==="setValueFromShortcut"&&(K.shortcut=Z.shortcut)),K);ie&&k(Z.value,Q()),W&&i&&i(Z.value,Q()),F&&v(!1)});if(M.lastControlledValue!==s){const Z=t.areValuesEqual(C,M.draft,E);P(re=>_({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const A=Se(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),j=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),T=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),I=Se(()=>{R({value:t.getTodayValue(C,b,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(Z=>{Z.preventDefault(),v(!0)}),D=Se(Z=>{Z==null||Z.preventDefault(),v(!1)}),L=Se((Z,re="partial")=>R({name:"setValueFromView",value:Z,selectionState:re})),z=Se((Z,re,ie)=>R({name:"setValueFromShortcut",value:Z,changeImportance:re,shortcut:ie})),V=Se((Z,re)=>R({name:"setValueFromField",value:Z,context:re})),H={onClear:A,onAccept:j,onDismiss:O,onCancel:T,onSetToday:I,onOpen:N,onClose:D},se={value:M.draft,onChange:V},X=p.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),Y={value:X,onChange:L,onClose:D,open:m},ae=_({},H,{value:X,onChange:L,onSelectShortcut:z,isValid:Z=>{const re=o({adapter:h,value:Z,timezone:b,props:e});return!t.hasError(re)}}),te=p.useMemo(()=>({onOpen:N,onClose:D,open:m}),[m,D,N]);return{open:m,fieldProps:se,viewProps:Y,layoutProps:ae,actions:H,contextValue:te}},rz=["className","sx"],oz=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:y,timezone:g}=e,S=Ae(e,rz),{view:C,setView:h,defaultView:m,focusedView:v,setFocusedView:b,setValueAndGoToNextView:E}=w1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=p.useMemo(()=>u.reduce((O,T)=>{let I;return y[T]!=null?I="UI":I="field",O.viewModeLookup[T]=I,I==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[y,u]),P=p.useMemo(()=>u.reduce((O,T)=>y[T]!=null&&bF(T)?O+1:O,0),[y,u]),$=M[C],w=Se(()=>$==="UI"),[R,A]=p.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&A(C),Ut(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,T;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(T=i==null?void 0:i.current)==null||T.focusField(C)}))},[C]),Ut(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&h(O),b(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:w,layoutProps:{views:u,view:R,onViewChange:h},renderCurrentView:()=>{if(R==null)return null;const O=y[R];if(O==null)return null;const T=_({},S,n,t,{views:u,timezone:g,onChange:E,view:R,onViewChange:h,focusedView:v,onFocusedViewChange:b,showViewSwitcher:P>1,timeViewsCount:P});return o?o(y,R,T):O(T)}}};function _0(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const iz=(e,t)=>{const[n,r]=p.useState(_0);return Ut(()=>{const i=()=>{r(_0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),GF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},az=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=iz(n.views,o),a=lr();return{layoutProps:_({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function sz(e){const{props:t,pickerValueResponse:n}=e;return p.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Q1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=nz({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=oz({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=az({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=sz({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function X1(e){return ge("MuiPickersLayout",e)}const Xo=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),lz=["onAccept","onClear","onCancel","onSetToday","actions"];function cz(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,lz),s=mo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return x.jsx(it,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return x.jsx(it,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return x.jsx(it,{onClick:t,children:s.okButtonLabel},c);case"today":return x.jsx(it,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return x.jsx(Vm,_({},a,{children:l}))}const uz=["items","changeImportance","isLandscape","onChange","isValid"],dz=["getValue"];function fz(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,uz);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,dz);const u=l({isValid:o});return _({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return x.jsx(Ew,_({dense:!0,sx:[{maxHeight:sg,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>x.jsx(z$,{children:x.jsx(pI,_({},s))},s.id??s.label))}))}function pz(e){return e.view!==null}const hz=e=>{const{classes:t,isLandscape:n}=e;return ye({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},X1,t)},mz=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:y,disabled:g,readOnly:S,children:C,slots:h,slotProps:m}=e,v=hz(e),b=(h==null?void 0:h.actionBar)??cz,E=Qe({elementType:b,externalSlotProps:m==null?void 0:m.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:v.actionBar,ownerState:_({},e,{wrapperVariant:t})}),k=x.jsx(b,_({},E)),M=h==null?void 0:h.toolbar,P=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:y,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:S},className:v.toolbar,ownerState:_({},e,{wrapperVariant:t})}),$=pz(P)&&M?x.jsx(M,_({},P)):null,w=C,R=h==null?void 0:h.tabs,A=a&&R?x.jsx(R,_({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(h==null?void 0:h.shortcuts)??fz,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:y,onChange:d,wrapperVariant:t}}),T=a&&j?x.jsx(j,_({},O)):null;return{toolbar:$,content:w,tabs:A,actionBar:k,shortcuts:T}},gz=e=>{const{isLandscape:t,classes:n}=e;return ye({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},X1,n)},yz=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Xo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Xo.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Xo.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Xo.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Xo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Xo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Xo.shortcuts}`]:{gridColumn:3}}}]}),vz=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),q1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=mz(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,y=gz(r);return x.jsxs(yz,{ref:n,sx:c,className:pe(y.root,u),ownerState:r,children:[d?l:o,d?o:l,x.jsx(vz,{className:y.contentWrapper,children:f==="desktop"?x.jsxs(p.Fragment,{children:[i,a]}):x.jsxs(p.Fragment,{children:[a,i]})}),s]})}),xz=["props","getOpenDialogAriaText"],Sz=["ownerState"],bz=["ownerState"],wz=e=>{var Q;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,xz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,autoFocus:v,localeText:b,reduceAnimations:E}=t,k=p.useRef(null),M=p.useRef(null),P=Wo(),$=((Q=i==null?void 0:i.toolbar)==null?void 0:Q.hidden)??!1,{open:w,actions:R,hasUIView:A,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:T,fieldProps:I,contextValue:N,ownerState:D}=Q1(_({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??kw,z=Qe({elementType:L,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(z,Sz),H=o.openPickerButton??Wr,se=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||h,onClick:w?R.onClose:R.onOpen,"aria-label":n(I.value),edge:V.position},ownerState:t}),X=Ae(se,bz),Y=o.openPickerIcon,le=Qe({elementType:Y,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:D}),ae=o.field,te=Qe({elementType:ae,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},I,$&&{id:P},{readOnly:h,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g,autoFocus:v&&!t.open,focused:w?!0:void 0},C?{inputRef:C}:{}),ownerState:t});A&&(te.InputProps=_({},te.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:x.jsx(L,_({},V,{children:x.jsx(H,_({},X,{children:x.jsx(Y,_({},le))}))}))}));const Z=_({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},te.slots),re=o.layout??q1;let ie=P;$&&(S?ie=`${P}-label`:ie=void 0);const W=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:P}),popper:_({"aria-labelledby":ie},i==null?void 0:i.popper)}),F=Ye(M,te.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:N,localeText:b,children:[x.jsx(ae,_({},te,{slots:Z,slotProps:W,unstableFieldRef:F})),x.jsx(q4,_({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:w,slots:o,slotProps:W,shouldRestoreFocus:T,reduceAnimations:E,children:x.jsx(re,_({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},va=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V})=>x.jsx(T4,{view:e,onViewChange:t,views:n.filter(I0),focusedView:r&&I0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V}),Z1=p.forwardRef(function(t,n){var c,u;const r=mo(),o=yt(),i=G1(t,"MuiDesktopDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:_({openPickerIcon:cF,field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Pd((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=wz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Kl});return l()});Z1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Cz=G(_m)({[`& .${Hs.container}`]:{outline:0},[`& .${Hs.paper}`]:{outline:0,minWidth:Xd}}),kz=G(Wm)({"&:first-of-type":{padding:0}});function Ez(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??Cz,s=(o==null?void 0:o.mobileTransition)??Ka;return x.jsx(a,_({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:x.jsx(kz,{children:t})}))}const Pz=["props","getOpenDialogAriaText"],Mz=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,Pz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,localeText:v}=t,b=p.useRef(null),E=Wo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:P,layoutProps:$,renderCurrentView:w,fieldProps:R,contextValue:A}=Q1(_({},r,{props:t,fieldRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},R,k&&{id:E},!(m||h)&&{onClick:P.onOpen,onKeyDown:QF(P.onOpen)},{readOnly:h??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g},C?{inputRef:C}:{}),ownerState:t});O.inputProps=_({},O.inputProps,{"aria-label":n(R.value)});const T=_({textField:o.textField},O.slots),I=o.layout??q1;let N=E;k&&(S?N=`${E}-label`:N=void 0);const D=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:_({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),L=Ye(b,O.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:A,localeText:v,children:[x.jsx(j,_({},O,{slots:T,slotProps:D,unstableFieldRef:L})),x.jsx(Ez,_({},P,{open:M,slots:o,slotProps:D,children:x.jsx(I,_({},$,D==null?void 0:D.layout,{slots:o,slotProps:D,children:w()}))}))]})}},J1=p.forwardRef(function(t,n){var c,u;const r=mo(),o=yt(),i=G1(t,"MuiMobileDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),slots:_({field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Pd((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Mz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Kl});return l()});J1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Rz=["desktopModeMediaQuery"],Nu=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=XF}=r,i=Ae(r,Rz);return Nd(o,{defaultMatches:!0})?x.jsx(Z1,_({ref:n},i)):x.jsx(J1,_({ref:n},i))}),Dz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),[k,M]=p.useState(null),[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{trigger:A,error:j}=wr("/titles/",Jm(R)),{trigger:O,error:T}=wr("/images/",Xw(R)),{data:I,isLoading:N}=Bn("/activities/",zn(R)),D=async H=>{const se=new FormData;se.append("file",H);const X=await O(se);c(X),console.log(X)},L={name:H=>{y(H)},description:H=>{S(setPasswordErrorMessage,H)},start_date:H=>{h(H)},end_date:H=>{v(H)},activity:H=>{E(H)}},z=()=>{$(!1),w(`/titles/${k}`)};p.useEffect(()=>{j&&Object.entries(j.info).forEach(([H,se])=>{L[H](se)})},[j]);const V=async H=>{H.preventDefault();const se={name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a==null?void 0:a.format("YYYY-MM-DD"),activity:u};l&&(se.image=l.id);const X=await A(se);M(X.id),$(!0)};return N?x.jsx(_l,{}):x.jsxs(x.Fragment,{children:[x.jsx(Vl,{open:P,autoHideDuration:2e3,onClose:z,children:x.jsx(Fl,{onClose:z,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Title is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Title"}),x.jsxs("form",{onSubmit:V,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:H=>t(H.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:H=>r(H.target.value),error:!!g,helperText:g}),x.jsx(Nu,{label:"Start Date",value:o,onChange:H=>i(H),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(Nu,{label:"End Date",value:a,onChange:H=>s(H),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Fd,{id:"activity-select-label",children:"Activity"}),x.jsx(Bd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:H=>d(H.target.value),required:!0,children:I.map(H=>x.jsx(Tu,{value:H.id,children:H.name},H.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:H=>D(H.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},src:l.file})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},Tz=()=>x.jsx(jd,{maxWidth:"sm",children:x.jsx(Dz,{})}),eC=Ht(x.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),tC=Ht(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),nC=({title:e,activity:t})=>{const[n,r]=p.useState(!1),{token:o}=p.useContext(nn),{trigger:i}=wr("/titles/",Kw(o)),a=cn(),s=()=>{r(!0)},l=()=>{r(!1)},c=async()=>{console.log(`Deleting title with id: ${e.id}`),await i(e.id),await qm(d=>typeof d=="string"&&d.startsWith("/titles/")),r(!1)},u=()=>{a(`/edit-title/${e.id}`)};return x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:l,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this title?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:l,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:c,color:"error",children:"Delete"})]})]}),x.jsxs(Sl,{sx:{display:"flex",justifyContent:"space-between"},children:[x.jsx(mw,{children:x.jsxs(di,{container:!0,children:[e.image&&x.jsx(di,{size:{xs:12,sm:6},children:x.jsx(Sl,{children:x.jsx(QI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover",objectPosition:"top"},component:"img",image:e.image,alt:e.name})})}),x.jsx(di,{size:{xs:12,sm:6},children:x.jsxs(Ot,{sx:{marginLeft:e.image?2:0},children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Spent:"," ",v1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),t?x.jsx(Um,{component:Kn,to:`/activities/${t.id}`,variant:"body2",children:t.name}):x.jsx(_l,{size:"1rem"})]})})]})}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:d=>{d.stopPropagation(),u(t.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:d=>{d.stopPropagation(),s(t.id)},children:x.jsx(tC,{})})]})]})]})},Iz=()=>{const[e,t]=p.useState(null),n=cn(),{token:r}=p.useContext(nn),o=Kd(),{data:i,isLoading:a,error:s}=Bn(`/titles/${o.id}`,zn(r)),{data:l}=Bn(e?`/activities/${e.activity}`:null,zn(r));return p.useEffect(()=>{i&&t({id:i.id,name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),p.useEffect(()=>{s&&(s.status===404?n("/activities"):n("/error"))},[s]),a||!e?x.jsx(Ti,{}):x.jsx(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:x.jsx(nC,{title:e,activity:l})})},Oz=Ht(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),$z=({onLogin:e,onLogout:t})=>{const[n,r]=p.useState(null),[o,i]=p.useState(!1),{login:a,logout:s}=p.useContext(nn),{user:l}=Wd(),c=cn(),u=Nd(g=>g.breakpoints.down("sm")),d=g=>{r(g.currentTarget)},f=()=>{r(null)},y=()=>{i(!o)};return x.jsxs(HT,{position:"static",color:"info",children:[x.jsxs(aL,{children:[x.jsxs(Ot,{flexGrow:1,display:"flex",alignItems:"center",children:[x.jsx(Ot,{component:Kn,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:x.jsx(ag,{})}),u?x.jsx(Wr,{color:"inherit",onClick:y,sx:{marginLeft:1},children:x.jsx(Oz,{})}):x.jsxs(x.Fragment,{children:[x.jsx(it,{sx:{marginLeft:1},color:"inherit",component:Kn,to:"/history",children:"History"}),x.jsx(it,{color:"inherit",component:Kn,to:"/table",children:"Table"}),x.jsx(it,{color:"inherit",component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{color:"inherit",onClick:d,children:"New"}),x.jsxs(Dw,{anchorEl:n,open:!!n,onClose:f,children:[x.jsx(Tu,{onClick:f,component:Kn,to:"/create-activity",children:"Activity"}),x.jsx(Tu,{onClick:f,component:Kn,to:"/create-title",children:"Title"})]})]})]}),l?x.jsxs(x.Fragment,{children:[x.jsx(Fe,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),x.jsx(it,{color:"inherit",onClick:s,children:"Logout"})]}):x.jsx(it,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&x.jsx(ZO,{anchor:"right",open:o,onClose:y,children:x.jsxs(Ot,{sx:{width:180},role:"presentation",onClick:y,onKeyDown:y,display:"flex",flexDirection:"column",gap:3,children:[x.jsx(it,{component:Kn,to:"/history",children:"History"}),x.jsx(it,{component:Kn,to:"/table",children:"Table"}),x.jsx(it,{component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{component:Kn,to:"/create-activity",children:"New activity"}),x.jsx(it,{component:Kn,to:"/create-title",children:"New title"})]})})]})},Az=()=>x.jsxs(x.Fragment,{children:[x.jsx($z,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),x.jsx(Ot,{marginTop:4,children:x.jsx(iN,{})})]}),Lz=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),o=cn(),{token:i}=p.useContext(nn),a=Kd(),{data:s,isLoading:l,error:c}=Bn(`/activities/${a.id}`,zn(i)),{data:u}=Bn(e?`/titles/?activity=${e.id}`:null,zn(i));return console.log(s),p.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),p.useEffect(()=>{u&&r(u.map(d=>({id:d.id,name:d.name,description:d.description,startDate:d.start_date,endDate:d.end_date,image:d.image})))},[u]),p.useEffect(()=>{c&&o("/error")},[c]),l||!e?x.jsx(Ti,{}):(console.log(n),x.jsxs(Mi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&x.jsx(di,{container:!0,spacing:2,marginTop:2,children:n.map(d=>x.jsx(di,{size:{xs:12,md:6},children:x.jsx(nC,{activity:e,title:d})},d.id))})]}))},jz=(e,t,n)=>{const r=n.map(o=>{console.log("sta",o.startDate,o.endDate);const i=new Date(o.startDate),a=o.endDate&&new Date(o.endDate);console.log("en",i,a);const s={start_date:{day:i.getDate(),month:i.getMonth()+1,year:i.getFullYear()},text:{headline:o.name,text:o.description},group:o.activityName};return a&&(s.end_date={day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}),o.image&&(s.media={url:o.image}),s});return{title:{text:{headline:e,text:t}},events:r}},Nz=()=>{const{token:e}=p.useContext(nn),{data:t,isLoading:n}=Bn("/titles/",zn(e));return p.useLayoutEffect(()=>{if(t){const r=t.map(i=>({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activityName:i.activity_name})),o=jz("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?x.jsx(Ti,{}):x.jsx(x.Fragment,{children:x.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},Fz=()=>{const{token:e}=p.useContext(nn),t=cn(),[n,r]=p.useState(!1),[o,i]=p.useState(null),{data:a,isLoading:s}=Bn("/activities/",zn(e)),{trigger:l}=wr("/activities/",Kw(e)),c=y=>{r(!0),i(y)},u=()=>{r(!1),i(null)},d=async()=>{console.log(`Deleting activity with id: ${o}`),await l(o),r(!1),i(null)},f=y=>{t(`/edit-activity/${y}`)};return s?x.jsx(Ti,{}):x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:u,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this activity?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:u,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:d,color:"error",children:"Delete"})]})]}),x.jsx(di,{container:!0,spacing:2,sx:{padding:2},children:a.map(y=>x.jsx(di,{size:{xs:12,sm:6,md:6},children:x.jsxs(Sl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer",display:"flex",justifyContent:"space-between"},onClick:()=>t(`/activities/${y.id}`),children:[x.jsxs(mw,{children:[x.jsx(Fe,{variant:"h5",component:"div",children:y.name}),x.jsx(Fe,{variant:"body2",color:"text.secondary",children:y.description})]}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:g=>{g.stopPropagation(),f(y.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:g=>{g.stopPropagation(),c(y.id)},children:x.jsx(tC,{})})]})]})},y.id))})]})},Bz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),i=Kd().id,[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{data:g,isLoading:S}=Bn(`/activities/${i}`,zn(y)),{trigger:C,error:h}=wr("/activities/",Gw(y)),m=async E=>{E.preventDefault(),await C({id:i,name:e,description:n}),d(!0)},v={name:E=>{s(E)},description:E=>{c(setPasswordErrorMessage,E)}},b=()=>{d(!1),f(`/activities/${i}`)};return p.useEffect(()=>{h&&Object.entries(h.info).forEach(([E,k])=>{v[E](k)})},[h]),p.useEffect(()=>{g&&(t(g.name),r(g.description))},[g]),S?x.jsx(Ti,{}):x.jsxs(jd,{maxWidth:"sm",children:[x.jsx(Vl,{open:u,autoHideDuration:2e3,onClose:b,children:x.jsx(Fl,{onClose:b,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Activity is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Activity"}),x.jsxs("form",{onSubmit:m,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:E=>t(E.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:E=>r(E.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Edit Activity"})})]})]})},zz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),M=Kd().id,[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{data:A,isLoading:j}=Bn(`/titles/${M}`,zn(R)),{trigger:O,error:T}=wr("/titles/",Gw(R)),{trigger:I,error:N}=wr("/images/",Xw(R)),{data:D,isLoading:L}=Bn("/activities/",zn(R)),z=async X=>{const Y=new FormData;Y.append("file",X);const le=await I(Y);c(le)},V={name:X=>{y(X)},description:X=>{S(setPasswordErrorMessage,X)},start_date:X=>{h(X)},end_date:X=>{v(X)},activity:X=>{E(X)}},H=()=>{$(!1),w(`/titles/${M}`)};p.useEffect(()=>{T&&Object.entries(T.info).forEach(([X,Y])=>{V[X](Y)})},[T]),p.useEffect(()=>{A&&(t(A.name),r(A.description),i(jt(A.start_date)),s(jt(A.end_date)),c(A.image),d(A.activity))},[A]);const se=async X=>{X.preventDefault();const Y={id:M,name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a?a.format("YYYY-MM-DD"):null,activity:u};l&&(Y.image=l.id),await O(Y),$(!0)};return j||L?x.jsx(Ti,{}):x.jsxs(jd,{maxWidth:"sm",children:[x.jsx(Vl,{open:P,autoHideDuration:2e3,onClose:H,children:x.jsx(Fl,{onClose:H,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Hl,{fontSize:"inherit"})},children:"Title is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Title"}),x.jsxs("form",{onSubmit:se,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:X=>t(X.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:X=>r(X.target.value),error:!!g,helperText:g}),x.jsx(Nu,{label:"Start Date",value:o,onChange:X=>i(X),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(Nu,{label:"End Date",value:a,onChange:X=>s(X),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Fd,{id:"activity-select-label",children:"Activity"}),x.jsx(Bd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:X=>d(X.target.value),required:!0,children:D.map(X=>x.jsx(Tu,{value:X.id,children:X.name},X.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:X=>z(X.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},src:l})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Update Title"})]})]})},_z=()=>{const e=KN(),t=pN([{path:"/",element:x.jsx(Az,{}),children:[{path:"/",element:x.jsx(Tr,{Component:YL})},{path:"/register",element:x.jsx(R0,{Component:JN})},{path:"/login",element:x.jsx(R0,{Component:XN})},{path:"/table",element:x.jsx(Tr,{Component:eF})},{path:"/activities",element:x.jsx(Tr,{Component:Fz})},{path:"/titles/:id",element:x.jsx(Tr,{Component:Iz})},{path:"/activities/:id",element:x.jsx(Tr,{Component:Lz})},{path:"/create-activity",element:x.jsx(Tr,{Component:nF})},{path:"/create-title",element:x.jsx(Tr,{Component:Tz})},{path:"/edit-activity/:id",element:x.jsx(Tr,{Component:Bz})},{path:"/edit-title/:id",element:x.jsx(Tr,{Component:zz})},{path:"/history",element:x.jsx(Tr,{Component:Nz})},{path:"/error",element:x.jsx(M0,{})},{path:"*",element:x.jsx(M0,{})}]}],{basename:"/timetrekah-frontend/"});return x.jsx(nn.Provider,{value:e,children:x.jsx(wN,{router:t})})};var Vz={exports:{}};(function(e,t){(function(n,r){e.exports=r(f1())})(Ci,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(l,c,u){var d=i[u];return Array.isArray(d)&&(d=d[c?0:1]),d.replace("%d",l)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(l){return l+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return o.default.locale(s,null,!0),s})})(Vz);const Wz=Rd();tb(document.getElementById("root")).render(x.jsx(p.StrictMode,{children:x.jsx(UL,{value:{fetcher:HL},children:x.jsx(VD,{theme:Wz,children:x.jsx(x1,{dateAdapter:VN,adapterLocale:"de",children:x.jsx(_z,{})})})})})); +`));const t=p.useMemo(()=>_({},iF,e.localeText),[e.localeText]);return p.useMemo(()=>_({},e,{localeText:t}),[e,t])},yt=()=>Ii().utils,Hl=()=>Ii().defaultDates,Kd=e=>{const t=yt(),n=p.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},go=()=>Ii().localeText,aF=Ht(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sF=Ht(x.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),lF=Ht(x.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),cF=Ht(x.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Ht(x.jsxs(p.Fragment,{children:[x.jsx("path",{d:"M11.99 2C6.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ht(x.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Ht(x.jsxs(p.Fragment,{children:[x.jsx("path",{d:"M11.99 2C6.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"}),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const uF=Ht(x.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"}),"Clear");function dF(e){return ge("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],pF=["ownerState"],hF=["ownerState"],mF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),gF=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),D0=G(Wr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),yF=e=>{const{classes:t}=e;return ye({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dF,t)},vF=p.forwardRef(function(t,n){const r=lr(),o=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:S,previousLabel:C,labelId:h}=o,m=Ae(o,fF),v=o,b=yF(v),E={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:y,isHidden:g,goTo:S,label:C},M=(s==null?void 0:s.previousIconButton)??D0,P=Qe({elementType:M,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:_({},v,{hidden:k.isHidden}),className:pe(b.button,b.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??D0,w=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:_({},v,{hidden:E.isHidden}),className:pe(b.button,b.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??sF,A=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.leftArrowIcon}),j=Ae(A,pF),O=(s==null?void 0:s.rightArrowIcon)??lF,T=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:b.rightArrowIcon}),I=Ae(T,hF);return x.jsxs(mF,_({ref:n,className:pe(b.root,a),ownerState:v},m,{children:[x.jsx(M,_({},P,{children:r?x.jsx(O,_({},I)):x.jsx(R,_({},j))})),i?x.jsx(Fe,{variant:"subtitle1",component:"span",id:h,children:i}):x.jsx(gF,{className:b.spacer,ownerState:v}),x.jsx($,_({},w,{children:r?x.jsx(R,_({},j)):x.jsx(O,_({},I))}))]}))}),ys=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xF=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},SF=["hours","minutes","seconds"],bF=e=>SF.includes(e),T0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wF=(e,t)=>(n,r)=>e?t.isAfter(n,r):T0(n,t)>T0(r,t);function w1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=p.useRef(n),c=p.useRef(o),u=p.useRef(o.includes(n)?n:o[0]),[d,f]=co({name:"useViews",state:"view",controlled:r,default:u.current}),y=p.useRef(i?d:null),[g,S]=co({name:"useViews",state:"focusedView",controlled:a,default:y.current});p.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(M=>!o.includes(M)))&&(f(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,f,d,o]);const C=o.indexOf(d),h=o[C-1]??null,m=o[C+1]??null,v=Se((M,P)=>{S(P?M:$=>M===$?null:$),s==null||s(M,P)}),b=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),E=Se(()=>{m&&b(m)}),k=Se((M,P,$)=>{const w=P==="finish",R=$?o.indexOf($){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function kF(e,{disablePast:t,minDate:n,timezone:r}){const o=yt();return p.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}const Pl=36,Gd=2,Qd=320,EF=280,sg=336,PF=G("div")({overflow:"hidden",width:Qd,maxHeight:sg,display:"flex",flexDirection:"column",margin:"0 auto"}),Lu=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Ks=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=Lu(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},MF=(e,t)=>t==null||!e.isValid(t)?null:t,ar=(e,t,n)=>t==null||!e.isValid(t)?n:t,RF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),lg=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},C1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),DF=["year","month","day"],I0=e=>DF.includes(e),cg=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ys(n,["year"])?o.year:ys(n,["month"])?o.month:ys(n,["day"])?o.dayOfMonth:ys(n,["month","year"])?`${o.month} ${o.year}`:ys(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},TF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},ug=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=yt(),s=p.useRef(n),l=t??s.current??i.emptyValue,c=p.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(g=>c==null?g:i.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=p.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),y=Se((g,...S)=>{const C=u(g);o==null||o(C,...S)});return{value:f,handleValueChange:y,timezone:d}},dg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=co({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return ug({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Ar={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},IF=e=>Math.max(...e.map(t=>Ar[t.type]??1)),vs=(e,t,n)=>{if(t===Ar.year)return e.startOfYear(n);if(t===Ar.month)return e.startOfMonth(n);if(t===Ar.day)return e.startOfDay(n);let r=n;return t{let i=o?o():vs(t,n,C1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=vs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=vs(t,n,e.maxDate));const a=wF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Lu(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=vs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Lu(t,i,e.maxTime))),i},k1=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},$F=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Xd=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},E1=(e,t,n,r)=>{switch(n){case"month":return lg(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Xd(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},O0="s",AF=["0","1","2","3","4","5","6","7","8","9"],LF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),O0)==="0"?AF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),O0))},Ci=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},fg=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),$0=(e,t)=>{const n=Ci(e,t);return n!==" "&&!Number.isNaN(Number(n))},P1=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=P1(i,o.maxLength)),fg(i,r)},jF=(e,t,n,r,o,i,a,s)=>{const l=$F(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),S=v=>M1(e,v,g,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(Ci(n.value,i),10)+l*C;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?m=g.minimum:m=g.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>g.maximum?S(g.minimum+(m-g.maximum-1)%(g.maximum-g.minimum+1)):m{const g=E1(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const h=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[h]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():y()},pg=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Ci(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},A0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),R1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,D1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return R1(e,r)?e.formatByString(e.setYear(o,1),r)==="0001":e.formatByString(e.setYear(o,2001),r)==="01";case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},NF=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),BF=(e,t,n)=>{const o=e.map(i=>{const a=pg(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},zF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=lg(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:R1(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=Xd(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return Ci(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Ci(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},_F=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=Xd(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},L0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},j0=(e,t,n,r,o)=>[...n].sort((i,a)=>L0[i.type]-L0[a.type]).reduce((i,a)=>!o||a.modified?_F(e,a,t,i):i,r),VF=()=>navigator.userAgent.toLowerCase().includes("android"),WF=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],d=u===0?null:r[u-1],f=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},dh=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},UF=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},HF=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},YF=["value","referenceDate"],Hr={emptyValue:null,getTodayValue:C1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,YF);return t!=null&&r.utils.isValid(t)?t:n??OF(r)},cleanValue:MF,areValuesEqual:RF,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},KF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:FF,getV6InputValueFromSections:BF,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};function GF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const QF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Dn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Dn(t.shadowRoot):t:null},XF="@media (pointer: fine)";function qF(e){return ge("MuiPickersDay",e)}const Qo=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ZF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],JF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ye({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},qF,l)},T1=({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Qo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Qo.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Qo.disabled}:not(.${Qo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qo.disabled}&.${Qo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Gd}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Qo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),I1=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},e5=G(Ia,{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(T1),t5=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:I1})(({theme:e})=>_({},T1({theme:e}),{opacity:0,pointerEvents:"none"})),xs=()=>{},n5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:y=xs,onBlur:g=xs,onKeyDown:S=xs,onMouseDown:C=xs,onMouseEnter:h=xs,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:b=!1,children:E,today:k=!1}=r,M=Ae(r,ZF),P=_({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:b,today:k}),$=JF(P),w=yt(),R=p.useRef(null),A=Ye(R,n);Ut(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=T=>{C(T),m&&T.preventDefault()},O=T=>{s||f(a),m&&T.currentTarget.focus(),d&&d(T)};return m&&!b?x.jsx(t5,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:P,role:M.role}):x.jsx(e5,_({className:pe($.root,i),ref:A,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:T=>S(T,a),onFocus:T=>y(T,a),onBlur:T=>g(T,a),onMouseEnter:T=>h(T,a),onClick:O,onMouseDown:j},M,{ownerState:P,children:E||w.format(a,"dayOfMonth")}))}),r5=p.memo(n5),Yl=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=ar(r.utils,e.minDate,r.defaultDates.minDate),d=ar(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};Yl.valueManager=Hr;const O1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],o5=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],i5=["minDateTime","maxDateTime"],a5=[...O1,...o5,...i5],$1=e=>a5.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function A1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Ii(),s=p.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);p.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Se(d=>n({adapter:a,value:d,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const s5=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},l5=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},c5=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},u5=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=k1(e,a),c=D1(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let f=d?e.formatByString(t,a):"",y=null;if(u)if(c)y=f===""?e.formatByString(i,a).length:f.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);y=l.maxLength,d&&(f=fg(P1(Ci(f,o),y),o))}return _({},l,{format:a,maxLength:y,value:f,placeholder:c5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},d5=e=>{var y;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,S)=>S.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=g=>r.find(S=>S.start<=g&&S.end>=g);let f=0;for(;f0;){const m=u.exec(h)[1];h=h.slice(m.length),i.push(u5(_({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const h=n[f];S&&(g==null?void 0:g.start)===f||(g==null?void 0:g.end)===f||(i.length===0?a+=h:i[i.length-1].endSeparator+=h),f+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},f5=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),N0=e=>{let t=s5(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=l5(_({},e,{expandedFormat:t})),r=d5(_({},e,{expandedFormat:t,escapedParts:n}));return f5(_({},e,{sections:r}))},p5=e=>{const t=yt(),n=go(),r=Ii(),o=lr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:y,format:g,formatDensity:S="dense",selectedSections:C,onSelectedSectionsChange:h,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:b=!1}}=e,{timezone:E,value:k,handleValueChange:M}=ug({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:y,valueManager:i}),P=p.useMemo(()=>LF(t),[t]),$=p.useMemo(()=>zF(t,P,E),[t,P,E]),w=p.useCallback((Y,le=null)=>a.getSectionsFromValue(t,Y,le,ae=>N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ae,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o})),[a,g,n,P,o,m,t,S,b]),[R,A]=p.useState(()=>{const Y=w(k),le={sections:Y,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ae=IF(Y),te=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ae,timezone:E});return _({},le,{referenceValue:te})}),[j,O]=co({controlled:C,default:null,name:"useField",state:"selectedSections"}),T=Y=>{O(Y),h==null||h(Y)},I=p.useMemo(()=>dh(j,R.sections),[j,R.sections]),N=I==="all"?0:I,D=({value:Y,referenceValue:le,sections:ae})=>{if(A(Z=>_({},Z,{sections:ae,value:Y,referenceValue:le,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,Y))return;const te={validationError:l({adapter:r,value:Y,timezone:E,props:c})};M(Y,te)},L=(Y,le)=>{const ae=[...R.sections];return ae[Y]=_({},ae[Y],{value:le,modified:!0}),ae},z=()=>{D({value:i.emptyValue,referenceValue:R.referenceValue,sections:w(i.emptyValue)})},V=()=>{if(N==null)return;const Y=R.sections[N],le=a.getActiveDateManager(t,R,Y),te=le.getSections(R.sections).filter(W=>W.value!=="").length===(Y.value===""?0:1),Z=L(N,""),re=te?null:t.getInvalidDate(),ie=le.getNewValuesFromNewActiveDate(re);D(_({},ie,{sections:Z}))},H=Y=>{const le=(Z,re)=>{const ie=t.parse(Z,g);if(ie==null||!t.isValid(ie))return null;const W=N0({utils:t,localeText:n,localizedDigits:P,format:g,date:ie,formatDensity:S,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:b,isRtl:o});return j0(t,ie,W,re,!1)},ae=a.parseValueStr(Y,R.referenceValue,le),te=a.updateReferenceValue(t,ae,R.referenceValue);D({value:ae,referenceValue:te,sections:w(ae,R.sections)})},se=({activeSection:Y,newSectionValue:le,shouldGoToNextSection:ae})=>{ae&&N_({},K,W,{sections:Z,tempValueStrAndroid:null}))},X=Y=>A(le=>_({},le,{tempValueStrAndroid:Y}));return p.useEffect(()=>{const Y=w(R.value);A(le=>_({},le,{sections:Y}))},[g,t.locale,o]),p.useEffect(()=>{let Y;i.areValuesEqual(t,R.value,k)?Y=i.getTimezone(t,R.value)!==i.getTimezone(t,k):Y=!0,Y&&A(le=>_({},le,{value:k,referenceValue:a.updateReferenceValue(t,k,le.referenceValue),sections:w(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:I,setSelectedSections:T,clearValue:z,clearActiveSection:V,updateSectionValue:se,updateValueFromValueStr:H,setTempAndroidValueStr:X,getSectionsFromValue:w,sectionsValueBoundaries:$,localizedDigits:P,timezone:E}},h5=5e3,Ui=e=>e.saveQuery!=null,m5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=yt(),[s,l]=p.useState(null),c=Se(()=>l(null));p.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&c()},[e,s,c]),p.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),h5);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:S},C,h)=>{const m=g.toLowerCase(),v=e[S];if(s!=null&&(!h||h(s.value))&&s.sectionIndex===S){const E=`${s.value}${m}`,k=C(E,v);if(!Ui(k))return l({sectionIndex:S,value:E,sectionType:v.type}),k}const b=C(m,v);return Ui(b)&&!b.saveQuery?(c(),null):(l({sectionIndex:S,value:m,sectionType:v.type}),Ui(b)?null:b)},d=g=>{const S=(m,v,b)=>{const E=v.filter(k=>k.toLowerCase().startsWith(b));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},C=(m,v,b,E)=>{const k=M=>E1(a,i,v.type,M);if(v.contentType==="letter")return S(v.format,k(v.format),m);if(b&&E!=null&&k1(a,b).contentType==="letter"){const M=k(b),P=S(b,M,m);return Ui(P)?{saveQuery:!1}:_({},P,{sectionValue:E(P.sectionValue,M)})}return{saveQuery:!1}};return u(g,(m,v)=>{switch(v.type){case"month":{const b=E=>A0(a,E,a.formats.month,v.format);return C(m,v,a.formats.month,b)}case"weekDay":{const b=(E,k)=>k.indexOf(E).toString();return C(m,v,a.formats.weekday,b)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=g=>{const S=(h,m)=>{const v=Ci(h,r),b=Number(v),E=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(b>E.maximum)return{saveQuery:!1};if(bE.maximum||v.length===E.maximum.toString().length;return{sectionValue:M1(a,b,E,r,m),shouldGoToNextSection:k}};return u(g,(h,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return S(h,m);if(m.type==="month"){const v=D1(a,"digit","month","MM"),b=S(h,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ui(b))return b;const E=A0(a,b.sectionValue,"MM",m.format);return _({},b,{sectionValue:E})}if(m.type==="weekDay"){const v=S(h,m);if(Ui(v))return v;const b=Xd(a,m.format)[Number(v.sectionValue)-1];return _({},v,{sectionValue:b})}return{saveQuery:!1}},h=>$0(h,r))};return{applyCharacterEditing:Se(g=>{const S=e[g.sectionIndex],h=$0(g.keyPressed,r)?f(_({},g,{keyPressed:fg(g.keyPressed,r)})):d(g);if(h==null){o(null);return}t({activeSection:S,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})}),resetCharacterQuery:c}},g5=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:f,resetCharacterQuery:y,setSelectedSections:g,parsedSelectedSections:S,state:C,clearActiveSection:h,clearValue:m,updateSectionValue:v,updateValueFromValueStr:b,sectionOrder:E,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,P=p.useRef(null),$=Ye(r,P),w=go(),R=yt(),A=Uo(),[j,O]=p.useState(!1),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;const F=document.getSelection();if(!F)return;if(S==null){F.rangeCount>0&&P.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&P.current.getRoot().blur();return}if(!P.current.getRoot().contains(Dn(document)))return;const K=new window.Range;let Q;S==="all"?Q=P.current.getRoot():C.sections[S].type==="empty"?Q=P.current.getSectionContainer(S):Q=P.current.getSectionContent(S),K.selectNodeContents(Q),Q.focus(),F.removeAllRanges(),F.addRange(K)},getActiveSectionIndexFromDOM:()=>{const F=Dn(document);return!F||!P.current||!P.current.getRoot().contains(F)?null:P.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!P.current)return;const K=dh(F,C.sections);O(!0),P.current.getSectionContent(K).focus()},setSelectedSections:F=>{if(!P.current)return;const K=dh(F,C.sections);O((K==="all"?0:K)!==null),g(F)},isFieldFocused:()=>{const F=Dn(document);return!!P.current&&P.current.getRoot().contains(F)}}),[S,g,C.sections,j]),I=Se(F=>{if(!P.current)return;const K=C.sections[F];P.current.getSectionContent(F).innerHTML=K.value||K.placeholder,T.syncSelectionToDOM()}),N=Se((F,...K)=>{F.isDefaultPrevented()||!P.current||(O(!0),i==null||i(F,...K),S==="all"?setTimeout(()=>{const Q=document.getSelection().getRangeAt(0).startOffset;if(Q===0){g(E.startIndex);return}let ne=0,ue=0;for(;ue{if(s==null||s(F),!P.current||S!=="all")return;const Q=F.target.textContent??"";P.current.getRoot().innerHTML=C.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),T.syncSelectionToDOM(),Q.length===0||Q.charCodeAt(0)===10?(y(),m(),g("all")):Q.length>1?b(Q):f({keyPressed:Q,sectionIndex:0})}),L=Se(F=>{if(l==null||l(F),n||S!=="all"){F.preventDefault();return}const K=F.clipboardData.getData("text");F.preventDefault(),y(),b(K)}),z=Se((...F)=>{if(a==null||a(...F),j||!P.current)return;O(!0),P.current.getSectionIndexFromDOMElement(Dn(document))!=null||g(E.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!P.current)return;const K=Dn(document);!P.current.getRoot().contains(K)&&(O(!1),g(null))})}),H=Se(F=>K=>{K.isDefaultPrevented()||g(F)}),se=Se(F=>{F.preventDefault()}),X=Se(F=>()=>{g(F)}),Y=Se(F=>{if(F.preventDefault(),n||t||typeof S!="number")return;const K=C.sections[S],Q=F.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(Q),ue=/^[0-9]+$/.test(Q),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);K.contentType==="letter"&&ne||K.contentType==="digit"&&ue||K.contentType==="digit-with-letter"&&ee?(y(),v({activeSection:K,newSectionValue:Q,shouldGoToNextSection:!0})):!ne&&!ue&&(y(),b(Q))}),le=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ae=Se(F=>{if(!P.current)return;const K=F.target,Q=K.textContent??"",ne=P.current.getSectionIndexFromDOMElement(K),ue=C.sections[ne];if(n||!P.current){I(ne);return}if(Q.length===0){if(ue.value===""){I(ne);return}const ee=F.nativeEvent.inputType;if(ee==="insertParagraph"||ee==="insertLineBreak"){I(ne);return}y(),h();return}f({keyPressed:Q,sectionIndex:ne}),I(ne)});Ut(()=>{if(!(!j||!P.current)){if(S==="all")P.current.getRoot().focus();else if(typeof S=="number"){const F=P.current.getSectionContent(S);F&&F.focus()}}},[S,j]);const te=p.useMemo(()=>C.sections.reduce((F,K)=>(F[K.type]=M[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),F),{}),[M,C.sections]),Z=S==="all",re=p.useMemo(()=>C.sections.map((F,K)=>{const Q=!Z&&!t&&!n;return{container:{"data-sectionindex":K,onClick:H(K)},content:{tabIndex:Z||K>0?-1:0,contentEditable:!Z&&!t&&!n,role:"spinbutton",id:`${A}-${F.type}`,"aria-labelledby":`${A}-${F.type}`,"aria-readonly":n,"aria-valuenow":HF(F,R),"aria-valuemin":te[F.type].minimum,"aria-valuemax":te[F.type].maximum,"aria-valuetext":F.value?UF(F,R):w.empty,"aria-label":w[F.type],"aria-disabled":t,spellCheck:Q?!1:void 0,autoCapitalize:Q?"off":void 0,autoCorrect:Q?"off":void 0,[parseInt(p.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Q?"next":void 0,children:F.value||F.placeholder,onInput:ae,onPaste:Y,onFocus:X(K),onDragOver:le,onMouseUp:se,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,X,Y,le,ae,H,se,t,n,Z,w,R,te,A]),ie=Se(F=>{b(F.target.value)}),W=p.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return p.useEffect(()=>{if(P.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));u&&P.current&&P.current.getSectionContent(E.startIndex).focus()},[]),{interactions:T,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:z,onInput:D,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:re,tabIndex:S===0?-1:0,contentEditable:Z,value:W,onChange:ie,areAllSectionsEmpty:k}}},oa=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),y5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=lr(),n=p.useRef(),r=p.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:y,state:g,fieldValueManager:S,valueManager:C,applyCharacterEditing:h,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:b,clearActiveSection:E,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:P,getSectionsFromValue:$,areAllSectionsEmpty:w,localizedDigits:R}=e,A=p.useRef(null),j=Ye(l,A),O=p.useMemo(()=>y5(g.sections,R,t),[g.sections,R,t]),T=p.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;if(f==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==Dn(document))return;const ae=A.current.scrollTop;if(f==="all")A.current.select();else{const te=O[f],Z=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,re=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(Z!==A.current.selectionStart||re!==A.current.selectionEnd)&&A.current===Dn(document)&&A.current.setSelectionRange(Z,re),clearTimeout(r.current),r.current=setTimeout(()=>{A.current&&A.current===Dn(document)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==Z||A.current.selectionEnd!==re)&&T.syncSelectionToDOM()})}A.current.scrollTop=ae},getActiveSectionIndexFromDOM:()=>{const ae=A.current.selectionStart??0,te=A.current.selectionEnd??0;if(ae===0&&te===0)return null;const Z=ae<=O[0].startInInput?1:O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);return Z===-1?O.length-1:Z-1},focusField:(ae=0)=>{var te;(te=A.current)==null||te.focus(),P(ae)},setSelectedSections:ae=>P(ae),isFieldFocused:()=>A.current===Dn(document)}),[A,f,O,P]),I=()=>{const ae=A.current.selectionStart??0;let te;ae<=O[0].startInInput||ae>=O[O.length-1].endInInput?te=1:te=O.findIndex(re=>re.startInInput-re.startSeparator.length>ae);const Z=te===-1?O.length-1:te-1;P(Z)},N=Se((...ae)=>{o==null||o(...ae);const te=A.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==A.current||y==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?P("all"):I())})}),D=Se((ae,...te)=>{ae.isDefaultPrevented()||(i==null||i(ae,...te),I())}),L=Se(ae=>{if(a==null||a(ae),ae.preventDefault(),u||d)return;const te=ae.clipboardData.getData("text");if(typeof f=="number"){const Z=g.sections[f],re=/^[a-zA-Z]+$/.test(te),ie=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(Z.contentType==="letter"&&re||Z.contentType==="digit"&&ie||Z.contentType==="digit-with-letter"&&W){m(),v({activeSection:Z,newSectionValue:te,shouldGoToNextSection:!0});return}if(re||ie)return}m(),b(te)}),z=Se((...ae)=>{s==null||s(...ae),P(null)}),V=Se(ae=>{if(u)return;const te=ae.target.value;if(te===""){m(),k();return}const Z=ae.nativeEvent.data,re=Z&&Z.length>1,ie=re?Z:te,W=oa(ie);if(y==null||re){b(re?Z:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const K=oa(S.getV6InputValueFromSections(O,R,t));let Q=-1,ne=-1;for(let ve=0;veue.end)return;const fe=W.length-K.length+ue.end-oa(ue.endSeparator||"").length;F=W.slice(ue.start+oa(ue.startSeparator||"").length,fe)}if(F.length===0){VF()&&M(ie),m(),E();return}h({keyPressed:F,sectionIndex:y})}),H=p.useMemo(()=>c!==void 0?c:S.getV6InputValueFromSections($(C.emptyValue),R,t),[c,S,$,C.emptyValue,R,t]),se=p.useMemo(()=>g.tempValueStrAndroid??S.getV6InputValueFromSections(g.sections,R,t),[g.sections,S,g.tempValueStrAndroid,R,t]);p.useEffect(()=>(A.current&&A.current===Dn(document)&&P("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const X=p.useMemo(()=>y==null||g.sections[y].contentType==="letter"?"text":"numeric",[y,g.sections]),le=!(A.current&&A.current===Dn(document))&&w;return{interactions:T,returnedValue:{readOnly:u,onBlur:z,onClick:D,onFocus:N,onPaste:L,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:H,inputMode:X,autoComplete:"off",value:le?"":se,onChange:V}}},x5=e=>{const t=yt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:f,valueManager:y,validator:g}=e,S=lr(),C=p5(e),{state:h,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:b,clearValue:E,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:P,sectionsValueBoundaries:$,localizedDigits:w,timezone:R}=C,A=m5({sections:h.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:w,setTempAndroidValueStr:P,timezone:R}),{resetCharacterQuery:j}=A,O=y.areValuesEqual(t,h.value,y.emptyValue),T=i?g5:v5,I=p.useMemo(()=>WF(h.sections,S&&!i),[h.sections,S,i]),{returnedValue:N,interactions:D}=T(_({},e,C,A,{areAllSectionsEmpty:O,sectionOrder:I})),L=Se(Y=>{if(l==null||l(Y),!a)switch(!0){case((Y.ctrlKey||Y.metaKey)&&String.fromCharCode(Y.keyCode)==="A"&&!Y.shiftKey&&!Y.altKey):{Y.preventDefault(),b("all");break}case Y.key==="ArrowRight":{if(Y.preventDefault(),v==null)b(I.startIndex);else if(v==="all")b(I.endIndex);else{const le=I.neighbors[v].rightIndex;le!==null&&b(le)}break}case Y.key==="ArrowLeft":{if(Y.preventDefault(),v==null)b(I.endIndex);else if(v==="all")b(I.startIndex);else{const le=I.neighbors[v].leftIndex;le!==null&&b(le)}break}case Y.key==="Delete":{if(Y.preventDefault(),s)break;v==null||v==="all"?E():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Y.key):{if(Y.preventDefault(),s||m==null)break;const le=h.sections[m],ae=f.getActiveDateManager(t,h,le),te=jF(t,R,le,Y.key,$,w,ae.date,{minutesStep:o});M({activeSection:le,newSectionValue:te,shouldGoToNextSection:!1});break}}});Ut(()=>{D.syncSelectionToDOM()});const{hasValidationError:z}=A1({props:n,validator:g,timezone:R,value:h.value,onError:n.onError}),V=p.useMemo(()=>c!==void 0?c:z,[z,c]);p.useEffect(()=>{!V&&m==null&&j()},[h.referenceValue,m,V]),p.useEffect(()=>{h.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[h.sections]),p.useImperativeHandle(r,()=>({getSections:()=>h.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused}));const H=Se((Y,...le)=>{Y.preventDefault(),d==null||d(Y,...le),E(),D.isFieldFocused()?b(I.startIndex):D.focusField(0)}),se={onKeyDown:L,onClear:H,error:V,clearable:!!(u&&!O&&!s&&!a)},X={disabled:a,readOnly:s};return _({},e.forwardedProps,se,X,N)},S5=["clearable","onClear","InputProps","sx","slots","slotProps"],b5=["ownerState"],w5=e=>{const t=go(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,S5),c=(a==null?void 0:a.clearButton)??Wr,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,b5),f=(a==null?void 0:a.clearIcon)??uF,y=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return _({},l,{InputProps:_({},o,{endAdornment:x.jsxs(p.Fragment,{children:[n&&x.jsx(kw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:x.jsx(c,_({},d,{onClick:r,children:x.jsx(f,_({fontSize:"small"},y))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},C5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],k5=(e,t)=>p.useMemo(()=>{const n=_({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return C5.forEach(o),O1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),E5=p.createContext(null);function L1(e){const{contextValue:t,localeText:n,children:r}=e;return x.jsx(E5.Provider,{value:t,children:x.jsx(x1,{localeText:n,children:r})})}const P5=e=>{const t=yt(),n=Hl();return _({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:ar(t,e.minDate,n.minDate),maxDate:ar(t,e.maxDate,n.maxDate)})},M5=e=>{const t=P5(e),{forwardedProps:n,internalProps:r}=k5(t,"date");return x5({forwardedProps:n,internalProps:r,valueManager:Hr,fieldValueManager:KF,validator:Yl,valueType:"date"})};function R5(e){return ge("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function D5(e){return ge("MuiPickersInputBase",e)}const ga=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function T5(e){return ge("MuiPickersSectionList",e)}const Ss=me("MuiPickersSectionList",["root","section","sectionContent"]),I5=["slots","slotProps","elements","sectionListRef"],j1=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),N1=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),F1=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),B1=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),O5=e=>{const{classes:t}=e;return ye({root:["root"],section:["section"],sectionContent:["sectionContent"]},T5,t)};function $5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??N1,a=Qe({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=(t==null?void 0:t.sectionContent)??B1,l=Qe({elementType:s,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??F1,u=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return x.jsxs(i,_({},a,{children:[x.jsx(c,_({},u)),x.jsx(s,_({},l)),x.jsx(c,_({},d))]}))}const A5=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,I5),c=O5(r),u=p.useRef(null),d=Ye(n,u),f=S=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return u.current};p.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(S){return f("getSectionContainer").querySelector(`.${Ss.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return f("getSectionContent").querySelector(`.${Ss.section}[data-sectionindex="${S}"] .${Ss.sectionContent}`)},getSectionIndexFromDOMElement(S){const C=f("getSectionIndexFromDOMElement");if(S==null||!C.contains(S))return null;let h=null;return S.classList.contains(Ss.section)?h=S:S.classList.contains(Ss.sectionContent)&&(h=S.parentElement),h==null?null:Number(h.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??j1,g=Qe({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return x.jsx(y,_({},g,{children:g.contentEditable?a.map(({content:S,before:C,after:h})=>`${C.children}${S.children}${h.children}`).join(""):x.jsx(p.Fragment,{children:a.map((S,C)=>x.jsx($5,{slots:o,slotProps:i,element:S,classes:c},C))})}))}),L5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],j5=e=>Math.round(e*1e5)/1e5,qd=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>_({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${j5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),hg=G(j1,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),N5=G(N1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),F5=G(B1,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),B5=G(F1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),z5=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(_({},gR)),_5=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${ce(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ye(d,D5,o)},mg=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:y,contentEditable:g,tabIndex:S,onInput:C,onPaste:h,onKeyDown:m,name:v,readOnly:b,inputProps:E,inputRef:k,sectionListRef:M}=r,P=Ae(r,L5),$=p.useRef(null),w=Ye(n,$),R=Ye(E==null?void 0:E.ref,k),A=lr(),j=kr();if(!j)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const O=z=>{var V;if(j.disabled){z.stopPropagation();return}(V=j.onFocus)==null||V.call(j,z)};p.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),p.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const T=_({},r,j,{isRtl:A}),I=_5(T),N=(f==null?void 0:f.root)||qd,D=Qe({elementType:N,externalSlotProps:y==null?void 0:y.root,externalForwardedProps:P,additionalProps:{"aria-invalid":j.error,ref:w},className:I.root,ownerState:T}),L=(f==null?void 0:f.input)||hg;return x.jsxs(N,_({},D,{children:[u,x.jsx(A5,{sectionListRef:M,elements:o,contentEditable:g,tabIndex:S,className:I.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:h,onKeyDown:m,slots:{root:L,section:N5,sectionContent:F5,sectionSeparator:B5},slotProps:{root:{ownerState:T},sectionContent:{className:ga.sectionContent},sectionSeparator:({position:z})=>({className:z==="before"?ga.sectionBefore:ga.sectionAfter})}}),c,d?d(_({},j)):null,x.jsx(z5,_({name:v,className:I.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:b,required:j.required,disabled:j.disabled},E,{ref:R}))]}))});function V5(e){return ge("MuiPickersOutlinedInput",e)}const dr=_({},ga,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),W5=["children","className","label","notched","shrink"],U5=G("fieldset",{name:"MuiPickersOutlinedInput",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{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),F0=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),H5=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Y5(e){const{className:t,label:n}=e,r=Ae(e,W5),o=n!=null&&n!=="",i=_({},e,{withLabel:o});return x.jsx(U5,_({"aria-hidden":!0,className:t},r,{ownerState:i,children:x.jsx(H5,{ownerState:i,children:o?x.jsx(F0,{children:n}):x.jsx(F0,{className:"notranslate",children:"​"})})}))}const K5=["label","autoFocus","ownerState","notched"],G5=G(qd,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${dr.focused} .${dr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${dr.disabled}`]:{[`& .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${dr.error} .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${dr.focused}:not(.${dr.error}) .${dr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Q5=G(hg,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),X5=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},V5,t);return _({},t,r)},z1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,K5),l=kr(),c=_({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=X5(c);return x.jsx(mg,_({slots:{root:G5,input:Q5},renderSuffix:d=>x.jsx(Y5,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?x.jsxs(p.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});z1.muiName="Input";function q5(e){return ge("MuiPickersFilledInput",e)}const Xo=_({},ga,me("MuiPickersFilledInput",["root","underline","input"])),Z5=["label","autoFocus","disableUnderline","ownerState"],J5=G(qd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vc(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${Xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xo.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})`:n}`,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(.${Xo.disabled}, .${Xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),eB=G(hg,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),tB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},q5,t);return _({},t,o)},_1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Z5),l=kr(),c=_({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=tB(c);return x.jsx(mg,_({slots:{root:J5,input:eB},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});_1.muiName="Input";function nB(e){return ge("MuiPickersFilledInput",e)}const bs=_({},ga,me("MuiPickersInput",["root","input"])),rB=["label","autoFocus","disableUnderline","ownerState"],oB=G(qd,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${bs.disabled}, .${bs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),iB=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},nB,t);return _({},t,o)},V1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,rB),l=kr(),c=_({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=iB(c);return x.jsx(mg,_({slots:{root:oB}},s,{label:o,classes:u,ref:n}))});V1.muiName="Input";const aB=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],sB={standard:V1,filled:_1,outlined:z1},lB=G(to,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ye({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},R5,r)},uB=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:f,inputProps:y,inputRef:g,sectionListRef:S,elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onPaste:E,onInput:k,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,focused:R,value:A,onChange:j,fullWidth:O,id:T,name:I,helperText:N,FormHelperTextProps:D,label:L,InputLabelProps:z}=r,V=Ae(r,aB),H=p.useRef(null),se=Ye(n,H),X=Uo(T),Y=N&&X?`${X}-helper-text`:void 0,le=L&&X?`${X}-label`:void 0,ae=_({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),te=cB(ae),Z=sB[u];return x.jsxs(lB,_({className:pe(te.root,a),ref:se,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ae},V,{children:[x.jsx(Nd,_({htmlFor:X,id:le},z,{children:L})),x.jsx(Z,_({elements:C,areAllSectionsEmpty:h,onClick:m,onKeyDown:v,onKeyUp:b,onInput:k,onPaste:E,endAdornment:M,startAdornment:P,tabIndex:$,contentEditable:w,value:A,onChange:j,id:X,fullWidth:O,inputProps:y,inputRef:g,sectionListRef:S,label:L,name:I,role:"group","aria-labelledby":le},f)),N&&x.jsx(Cw,_({id:Y},D,{children:N}))]}))}),dB=["enableAccessibleFieldDOMStructure"],fB=["InputProps","readOnly"],pB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],hB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,dB);if(t){const{InputProps:d,readOnly:f}=n,y=Ae(n,fB);return _({},y,{InputProps:_({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,pB);return _({},u,{InputProps:_({},s??{},{readOnly:a}),inputProps:_({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},mB=["slots","slotProps","InputProps","inputProps"],W1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,mB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?uB:Cn),d=Qe({elementType:u,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=_({},s,d.inputProps),d.InputProps=_({},a,d.InputProps);const f=M5(d),y=hB(f),g=w5(_({},y,{slots:o,slotProps:i}));return x.jsx(u,_({},g))}),U1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Ii();return p.useCallback(c=>Yl({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},gB=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return _({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),_({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return _({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return _({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},yB=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,f=yt(),y=p.useRef(gB(!!c,i,f)).current,g=p.useMemo(()=>Hr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Ar.day}),[n,d]),[S,C]=p.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"});p.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(g)})},[g,f]);const h=p.useCallback(k=>{C(_({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=p.useCallback(k=>{const M=k;f.isSameMonth(M,S.currentMonth)||h({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,S.currentMonth)?"left":"right"})},[S.currentMonth,h,f]),v=U1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),b=p.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),E=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:S,changeMonth:m,changeFocusedDay:E,isDateDisabled:v,onMonthSwitchingAnimationEnd:b,handleChangeMonth:h}},vB=e=>ge("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const xB=e=>{const{classes:t}=e;return ye({root:["root"]},vB,t)},SB=G(Nl,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function H1(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=xB(t),s=Cr();return o?n:x.jsx(SB,{className:pe(a.root,r),children:x.jsx(Ka,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const bB=e=>ge("MuiPickersSlideTransition",e),Yn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),wB=["children","className","reduceAnimations","slideDirection","transKey","classes"],CB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ye(r,bB,t)},kB=G(Nl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function EB(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,wB),s=CB(t),l=Cr();if(o)return x.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return x.jsx(kB,{className:pe(s.root,r),childFactory:u=>p.cloneElement(u,{classNames:c}),role:"presentation",children:x.jsx(Rm,_({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const PB=e=>ge("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const MB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],RB=["ownerState"],DB=e=>{const{classes:t}=e;return ye({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},PB,t)},Y1=(Pl+Gd*2)*6,TB=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IB=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),OB=G(Fe,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),$B=G(Fe,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),AB=G(Fe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,padding:0,margin:`0 ${Gd}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),LB=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Y1}),jB=G(EB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Y1}),NB=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),FB=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Gd}px 0`,display:"flex",justifyContent:"center"});function BB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,MB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:y,slotProps:g,timezone:S}=t,C=yt(),h=Kd(S),m=r!==null&&C.isSameDay(n,r),v=o.some(A=>C.isSameDay(A,n)),b=C.isSameDay(n,h),E=(y==null?void 0:y.day)??r5,k=Qe({elementType:E,externalSlotProps:g==null?void 0:g.day,additionalProps:_({disableHighlightToday:u,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:d,"data-timestamp":C.toJsDate(n).valueOf()},l),ownerState:_({},t,{day:n,selected:v})}),M=Ae(k,RB),P=p.useMemo(()=>c||i(n),[c,i,n]),$=p.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),w=p.useMemo(()=>{const A=C.startOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.startOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]),R=p.useMemo(()=>{const A=C.endOfMonth(C.setMonth(n,a));return f?C.isSameDay(n,C.endOfWeek(A)):C.isSameDay(n,A)},[a,n,f,C]);return x.jsx(E,_({},M,{day:n,disabled:P,autoFocus:s&&m,today:b,outsideCurrentMonth:$,isFirstVisibleCell:w,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":b?"date":void 0}))}function zB(e){const t=gt({props:e,name:"MuiDayCalendar"}),n=yt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:y=()=>x.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:S,disablePast:C,disableFuture:h,minDate:m,maxDate:v,shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,dayOfWeekFormatter:M=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:$,gridLabelId:w,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:j,timezone:O}=t,T=Kd(O),I=DB(t),N=lr(),D=U1({shouldDisableDate:b,shouldDisableMonth:E,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:h,timezone:O}),L=go(),[z,V]=co({name:"DayCalendar",state:"hasFocus",controlled:P,default:j??!1}),[H,se]=p.useState(()=>s||T),X=Se(ne=>{d||c(ne)}),Y=ne=>{D(ne)||(r(ne),se(ne),$==null||$(!0),V(!0))},le=Se((ne,ue)=>{switch(ne.key){case"ArrowUp":Y(n.addDays(ue,-7)),ne.preventDefault();break;case"ArrowDown":Y(n.addDays(ue,7)),ne.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ve=Ks({utils:n,date:ee,minDate:N?ee:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):ee,isDateDisabled:D,timezone:O});Y(ve||ee),ne.preventDefault();break}case"ArrowRight":{const ee=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ve=Ks({utils:n,date:ee,minDate:N?n.startOfMonth(fe):ee,maxDate:N?ee:n.endOfMonth(fe),isDateDisabled:D,timezone:O});Y(ve||ee),ne.preventDefault();break}case"Home":Y(n.startOfWeek(ue)),ne.preventDefault();break;case"End":Y(n.endOfWeek(ue)),ne.preventDefault();break;case"PageUp":Y(n.addMonths(ue,1)),ne.preventDefault();break;case"PageDown":Y(n.addMonths(ue,-1)),ne.preventDefault();break}}),ae=Se((ne,ue)=>Y(ue)),te=Se((ne,ue)=>{z&&n.isSameDay(H,ue)&&($==null||$(!1))}),Z=n.getMonth(i),re=n.getYear(i),ie=p.useMemo(()=>a.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,a]),W=`${re}-${Z}`,F=p.useMemo(()=>p.createRef(),[W]),K=p.useMemo(()=>{const ne=n.startOfMonth(i),ue=n.endOfMonth(i);return D(H)||n.isAfterDay(H,ue)||n.isBeforeDay(H,ne)?Ks({utils:n,date:H,minDate:ne,maxDate:ue,disablePast:C,disableFuture:h,isDateDisabled:D,timezone:O}):H},[i,h,C,H,D,n,O]),Q=p.useMemo(()=>{const ne=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;A&&ne.length{ne.lengthx.jsx(OB,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:I.weekDayLabel,children:M(ne)},ue.toString()))]}),l?x.jsx(LB,{className:I.loadingContainer,children:y()}):x.jsx(jB,_({transKey:W,onExited:u,reduceAnimations:f,slideDirection:g,className:pe(o,I.slideTransition)},S,{nodeRef:F,children:x.jsx(NB,{ref:F,role:"rowgroup",className:I.monthContainer,children:Q.map((ne,ue)=>x.jsxs(FB,{role:"row",className:I.weekContainer,"aria-rowindex":ue+1,children:[R&&x.jsx(AB,{className:I.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:L.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((ee,fe)=>x.jsx(BB,{parentProps:t,day:ee,selectedDays:ie,focusableDay:K,onKeyDown:le,onFocus:ae,onBlur:te,onDaySelect:X,isDateDisabled:D,currentMonthNumber:Z,isViewFocused:z,"aria-colindex":fe+1},ee.toString()))]},`week-${ne[0]}`))})}))]})}function _B(e){return ge("MuiPickersMonth",e)}const Ec=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),VB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],WB=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_B,r)},UB=G("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),HB=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ec.disabled}`]:t.disabled},{[`&.${Ec.selected}`]:t.selected}]})(({theme:e})=>_({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ec.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ec.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),YB=p.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,"aria-label":S,slots:C,slotProps:h}=n,m=Ae(n,VB),v=p.useRef(null),b=WB(n);Ut(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const E=(C==null?void 0:C.monthButton)??HB,k=Qe({elementType:E,externalSlotProps:h==null?void 0:h.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":S,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>y(M,l)},ownerState:n,className:b.monthButton});return x.jsx(UB,_({className:pe(b.root,o),ownerState:n},m,{children:x.jsx(E,_({},k))}))});function KB(e){return ge("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const GB=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],QB=e=>{const{classes:t}=e;return ye({root:["root"]},KB,t)};function XB(e,t){const n=yt(),r=Hl(),o=gt({props:e,name:t});return _({disableFuture:!1,disablePast:!1},o,{minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const qB=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Qd,boxSizing:"border-box"}),ZB=p.forwardRef(function(t,n){const r=XB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:y,shouldDisableMonth:g,readOnly:S,autoFocus:C=!1,onMonthFocus:h,hasFocus:m,onFocusedViewChange:v,monthsPerRow:b=3,timezone:E,gridLabelId:k,slots:M,slotProps:P}=r,$=Ae(r,GB),{value:w,handleValueChange:R,timezone:A}=dg({name:"MonthCalendar",timezone:E,value:i,defaultValue:a,referenceDate:s,onChange:y,valueManager:Hr}),j=Kd(A),O=lr(),T=yt(),I=p.useMemo(()=>Hr.getInitialReferenceValue({value:w,utils:T,props:r,timezone:A,referenceDate:s,granularity:Ar.month}),[]),N=r,D=QB(N),L=p.useMemo(()=>T.getMonth(j),[T,j]),z=p.useMemo(()=>w!=null?T.getMonth(w):null,[w,T]),[V,H]=p.useState(()=>z||T.getMonth(I)),[se,X]=co({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),Y=Se(W=>{X(W),v&&v(W)}),le=p.useCallback(W=>{const F=T.startOfMonth(u&&T.isAfter(j,f)?j:f),K=T.startOfMonth(c&&T.isBefore(j,d)?j:d),Q=T.startOfMonth(W);return T.isBefore(Q,F)||T.isAfter(Q,K)?!0:g?g(Q):!1},[c,u,d,f,j,g,T]),ae=Se((W,F)=>{if(S)return;const K=T.setMonth(w??I,F);R(K)}),te=Se(W=>{le(T.setMonth(w??I,W))||(H(W),Y(!0),h&&h(W))});p.useEffect(()=>{H(W=>z!==null&&W!==z?z:W)},[z]);const Z=Se((W,F)=>{switch(W.key){case"ArrowUp":te((12+F-3)%12),W.preventDefault();break;case"ArrowDown":te((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+F+(O?-1:1))%12),W.preventDefault();break}}),re=Se((W,F)=>{te(F)}),ie=Se((W,F)=>{V===F&&Y(!1)});return x.jsx(qB,_({ref:n,className:pe(D.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:lg(T,w??I).map(W=>{const F=T.getMonth(W),K=T.format(W,"monthShort"),Q=T.format(W,"month"),ne=F===z,ue=l||le(W);return x.jsx(YB,{selected:ne,value:F,onClick:ae,onKeyDown:Z,autoFocus:se&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:re,onBlur:ie,"aria-current":L===F?"date":void 0,"aria-label":Q,monthsPerRow:b,slots:M,slotProps:P,children:K},K)})}))});function JB(e){return ge("MuiPickersYear",e)}const Pc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),e4=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],t4=e=>{const{disabled:t,selected:n,classes:r}=e;return ye({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},JB,r)},n4=G("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),r4=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Pc.disabled}`]:t.disabled},{[`&.${Pc.selected}`]:t.selected}]})(({theme:e})=>_({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ze(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Pc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),o4=p.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:f,onBlur:y,"aria-current":g,slots:S,slotProps:C}=n,h=Ae(n,e4),m=p.useRef(null),v=t4(n);Ut(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const b=(S==null?void 0:S.yearButton)??r4,E=Qe({elementType:b,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>y(k,l)},ownerState:n,className:v.yearButton});return x.jsx(n4,_({className:pe(v.root,o),ownerState:n},h,{children:x.jsx(b,_({},E))}))});function i4(e){return ge("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const a4=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],s4=e=>{const{classes:t}=e;return ye({root:["root"]},i4,t)};function l4(e,t){const n=yt(),r=Hl(),o=gt({props:e,name:t});return _({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate)})}const c4=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Qd,maxHeight:EF,boxSizing:"border-box",position:"relative"}),u4=p.forwardRef(function(t,n){const r=l4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onChange:g,readOnly:S,shouldDisableYear:C,onYearFocus:h,hasFocus:m,onFocusedViewChange:v,yearsOrder:b="asc",yearsPerRow:E,timezone:k,gridLabelId:M,slots:P,slotProps:$}=r,w=Ae(r,a4),{value:R,handleValueChange:A,timezone:j}=dg({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Hr}),O=Kd(j),T=lr(),I=yt(),N=p.useMemo(()=>Hr.getInitialReferenceValue({value:R,utils:I,props:r,timezone:j,referenceDate:l,granularity:Ar.year}),[]),D=r,L=s4(D),z=p.useMemo(()=>I.getYear(O),[I,O]),V=p.useMemo(()=>R!=null?I.getYear(R):null,[R,I]),[H,se]=p.useState(()=>V||I.getYear(N)),[X,Y]=co({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),le=Se(ee=>{Y(ee),v&&v(ee)}),ae=p.useCallback(ee=>{if(d&&I.isBeforeYear(ee,O)||u&&I.isAfterYear(ee,O)||y&&I.isBeforeYear(ee,y)||f&&I.isAfterYear(ee,f))return!0;if(!C)return!1;const fe=I.startOfYear(ee);return C(fe)},[u,d,f,y,O,C,I]),te=Se((ee,fe)=>{if(S)return;const ve=I.setYear(R??N,fe);A(ve)}),Z=Se(ee=>{ae(I.setYear(R??N,ee))||(se(ee),le(!0),h==null||h(ee))});p.useEffect(()=>{se(ee=>V!==null&&ee!==V?V:ee)},[V]);const re=b!=="desc"?E*1:E*-1,ie=T&&b==="asc"||!T&&b==="desc"?-1:1,W=Se((ee,fe)=>{switch(ee.key){case"ArrowUp":Z(fe-re),ee.preventDefault();break;case"ArrowDown":Z(fe+re),ee.preventDefault();break;case"ArrowLeft":Z(fe-ie),ee.preventDefault();break;case"ArrowRight":Z(fe+ie),ee.preventDefault();break}}),F=Se((ee,fe)=>{Z(fe)}),K=Se((ee,fe)=>{H===fe&&le(!1)}),Q=p.useRef(null),ne=Ye(n,Q);p.useEffect(()=>{if(o||Q.current===null)return;const ee=Q.current.querySelector('[tabindex="0"]');if(!ee)return;const fe=ee.offsetHeight,ve=ee.offsetTop,Le=Q.current.clientHeight,xe=Q.current.scrollTop,tt=ve+fe;fe>Le||ve{const fe=I.getYear(ee),ve=fe===V,Le=c||ae(ee);return x.jsx(o4,{selected:ve,value:fe,onClick:te,onKeyDown:W,autoFocus:X&&fe===H,disabled:Le,tabIndex:fe===H&&!Le?0:-1,onFocus:F,onBlur:K,"aria-current":z===fe?"date":void 0,yearsPerRow:E,slots:P,slotProps:$,children:I.format(ee,"year")},I.format(ee,"year"))})}))}),d4=e=>ge("MuiPickersCalendarHeader",e),f4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),p4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],h4=["ownerState"],m4=e=>{const{classes:t}=e;return ye({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},d4,t)},g4=G("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),y4=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>_({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),v4=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),x4=G(Wr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${f4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),S4=G(aF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),b4=p.forwardRef(function(t,n){const r=go(),o=yt(),i=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:y,onMonthChange:g,onViewChange:S,view:C,reduceAnimations:h,views:m,labelId:v,className:b,timezone:E,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,p4),P=i,$=m4(i),w=(a==null?void 0:a.switchViewButton)??x4,R=Qe({elementType:w,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:P,className:$.switchViewButton}),A=(a==null?void 0:a.switchViewIcon)??S4,j=Qe({elementType:A,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:P,className:$.switchViewIcon}),O=Ae(j,h4),T=()=>g(o.addMonths(l,1),"left"),I=()=>g(o.addMonths(l,-1),"right"),N=CF(l,{disableFuture:u,maxDate:f,timezone:E}),D=kF(l,{disablePast:d,minDate:y,timezone:E}),L=()=>{if(!(m.length===1||!S||c))if(m.length===2)S(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;S(m[V])}};if(m.length===1&&m[0]==="year")return null;const z=o.formatByString(l,k);return x.jsxs(g4,_({},M,{ownerState:P,className:pe($.root,b),ref:n,children:[x.jsxs(y4,{role:"presentation",onClick:L,ownerState:P,"aria-live":"polite",className:$.labelContainer,children:[x.jsx(H1,{reduceAnimations:h,transKey:z,children:x.jsx(v4,{id:v,ownerState:P,className:$.label,children:z})}),m.length>1&&!c&&x.jsx(w,_({},R,{children:x.jsx(A,_({},O))}))]}),x.jsx(Ka,{in:C==="day",children:x.jsx(vF,{slots:a,slotProps:s,onGoToPrevious:I,isPreviousDisabled:D,previousLabel:r.previousMonth,onGoToNext:T,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),w4="@media (prefers-reduced-motion: reduce)",ya=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),B0=ya&&ya[1]?parseInt(ya[1],10):null,z0=ya&&ya[2]?parseInt(ya[2],10):null,C4=B0&&B0<10||z0&&z0<13||!1,K1=()=>jd(w4,{defaultMatches:!1})||C4,k4=e=>ge("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const E4=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],P4=e=>{const{classes:t}=e;return ye({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},k4,t)};function M4(e,t){const n=yt(),r=Hl(),o=K1(),i=gt({props:e,name:t});return _({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>x.jsx("span",{children:"..."})),minDate:ar(n,i.minDate,r.minDate),maxDate:ar(n,i.maxDate,r.maxDate)})}const R4=G(PF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:sg}),D4=G(H1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),T4=p.forwardRef(function(t,n){const r=yt(),o=Uo(),i=M4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:y,onYearChange:g,onMonthChange:S,reduceAnimations:C,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,view:b,views:E,openTo:k,className:M,disabled:P,readOnly:$,minDate:w,maxDate:R,disableHighlightToday:A,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,slots:D,slotProps:L,loading:z,renderLoading:V,displayWeekNumber:H,yearsOrder:se,yearsPerRow:X,monthsPerRow:Y,timezone:le}=i,ae=Ae(i,E4),{value:te,handleValueChange:Z,timezone:re}=dg({name:"DateCalendar",timezone:le,value:l,defaultValue:c,referenceDate:u,onChange:y,valueManager:Hr}),{view:ie,setView:W,focusedView:F,setFocusedView:K,goToNextView:Q,setValueAndGoToNextView:ne}=w1({view:b,views:E,openTo:k,onChange:Z,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:ee,changeFocusedDay:fe,changeMonth:ve,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=yB({value:te,referenceDate:u,reduceAnimations:C,onMonthChange:S,minDate:w,maxDate:R,shouldDisableDate:h,disablePast:f,disableFuture:d,timezone:re}),Pe=P&&te||w,_e=P&&te||R,ut=`${o}-grid-label`,je=F!==null,Oe=(D==null?void 0:D.calendarHeader)??b4,pt=Qe({elementType:Oe,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:E,view:ie,currentMonth:ee.currentMonth,onViewChange:W,onMonthChange:(nt,hn)=>Le({newMonth:nt,direction:hn}),minDate:Pe,maxDate:_e,disabled:P,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:re,labelId:ut},ownerState:i}),At=Se(nt=>{const hn=r.startOfMonth(nt),Yr=r.endOfMonth(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),S==null||S(hn)):(Q(),ve(hn)),fe(Er,!0)}),Ne=Se(nt=>{const hn=r.startOfYear(nt),Yr=r.endOfYear(nt),Er=xe(nt)?Ks({utils:r,date:nt,minDate:r.isBefore(w,hn)?hn:w,maxDate:r.isAfter(R,Yr)?Yr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:re}):nt;Er?(ne(Er,"finish"),g==null||g(Er)):(Q(),ve(hn)),fe(Er,!0)}),st=Se(nt=>Z(nt&&Lu(r,nt,te??ue),"finish",ie));p.useEffect(()=>{te!=null&&r.isValid(te)&&ve(te)},[te]);const Hn=i,yo=P4(Hn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:w},qe={disableHighlightToday:A,readOnly:$,disabled:P,timezone:re,gridLabelId:ut,slots:D,slotProps:L},vt=p.useRef(ie);p.useEffect(()=>{vt.current!==ie&&(F===vt.current&&K(ie,!0),vt.current=ie)},[F,K,ie]);const En=p.useMemo(()=>[te],[te]);return x.jsxs(R4,_({ref:n,className:pe(yo.root,M),ownerState:Hn},ae,{children:[x.jsx(Oe,_({},pt,{slots:D,slotProps:L})),x.jsx(D4,{reduceAnimations:C,className:yo.viewTransitionContainer,transKey:ie,ownerState:Hn,children:x.jsxs("div",{children:[ie==="year"&&x.jsx(u4,_({},Me,qe,{value:te,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("year",nt),yearsOrder:se,yearsPerRow:X,referenceDate:ue})),ie==="month"&&x.jsx(ZB,_({},Me,qe,{hasFocus:je,className:M,value:te,onChange:At,shouldDisableMonth:m,onFocusedViewChange:nt=>K("month",nt),monthsPerRow:Y,referenceDate:ue})),ie==="day"&&x.jsx(zB,_({},ee,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:En,onSelectedDaysChange:st,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>K("day",nt),showDaysOutsideCurrentMonth:T,fixedWeekNumber:I,dayOfWeekFormatter:N,displayWeekNumber:H,loading:z,renderLoading:V}))]})})]}))});function I4(e){return ge("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const O4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],$4=e=>{const{classes:t}=e;return ye({root:["root"],content:["content"]},I4,t)},A4=G("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),L4=G("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),j4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,O4),u=r,d=$4(u);return s?null:x.jsxs(A4,_({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[x.jsx(Fe,{color:"text.secondary",variant:"overline",id:l,children:a}),x.jsx(L4,{className:d.content,ownerState:u,children:o})]}))});function N4(e){return ge("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const F4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],B4=e=>{const{classes:t}=e;return ye({root:["root"],title:["title"]},N4,t)},z4=G(j4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_4=G(Fe,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),V4=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,F4),d=yt(),f=go(),y=B4(r),g=p.useMemo(()=>{if(!o)return s;const C=cg(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),S=r;return x.jsx(z4,_({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(y.root,c)},u,{children:x.jsx(_4,{variant:"h4",align:i?"left":"center",ownerState:S,className:y.title,children:g})}))});function G1(e,t){const n=yt(),r=Hl(),o=gt({props:e,name:t}),i=p.useMemo(()=>{var a;return((a=o.localeText)==null?void 0:a.toolbarTitle)==null?o.localeText:_({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return _({},o,{localeText:i},xF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ar(n,o.minDate,r.minDate),maxDate:ar(n,o.maxDate,r.maxDate),slots:_({toolbar:V4},o.slots)})}function W4(e){return ge("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const U4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],H4=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},W4,t)},Y4=G(sI,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),K4=G(br,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function G4(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Se(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Wt(o.current);if(!o.current||"clientX"in l&&G4(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(o.current)>-1:d=!u.documentElement.contains(l.target)||o.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return p.useEffect(()=>{if(e){const l=Wt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),p.useEffect(()=>{if(e){const l=Wt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const X4=p.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,U4),d=_({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return x.jsx(n,_({},u,f,{onClick:y=>{var g;l(y),(g=f.onClick)==null||g.call(f,y)},onTouchStart:y=>{var g;c(y),(g=f.onTouchStart)==null||g.call(f,y)},ownerState:d,children:i}))});function q4(e){const t=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:f,reduceAnimations:y}=t;p.useEffect(()=>{function T(I){l&&I.key==="Escape"&&s()}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[s,l]);const g=p.useRef(null);p.useEffect(()=>{c==="tooltip"||i&&!i()||(l?g.current=Dn(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,i]);const[S,C,h]=Q4(l,a??s),m=p.useRef(null),v=Ye(m,o),b=Ye(v,S),E=t,k=H4(E),M=K1(),P=y??M,$=T=>{T.key==="Escape"&&(T.stopPropagation(),s())},w=(d==null?void 0:d.desktopTransition)??P?Ka:bl,R=(d==null?void 0:d.desktopTrapFocus)??vw,A=(d==null?void 0:d.desktopPaper)??K4,j=(d==null?void 0:d.popper)??Y4,O=Qe({elementType:j,externalSlotProps:f==null?void 0:f.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:$},className:k.root,ownerState:t});return x.jsx(j,_({},O,{children:({TransitionProps:T,placement:I})=>x.jsx(R,_({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:x.jsx(w,_({},T,f==null?void 0:f.desktopTransition,{children:x.jsx(X4,{PaperComponent:A,ownerState:E,popperPlacement:I,ref:b,onPaperClick:C,onPaperTouchStart:h,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const Z4=({open:e,onOpen:t,onClose:n})=>{const r=p.useRef(typeof e=="boolean").current,[o,i]=p.useState(!1);p.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=p.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},J4=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},ez=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},tz=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},nz=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:f}=p.useRef(l),{current:y}=p.useRef(s!==void 0),[g,S]=p.useState(u),C=yt(),h=Ii(),{isOpen:m,setIsOpen:v}=Z4(e),{timezone:b,value:E,handleValueChange:k}=ug({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,P]=p.useState(()=>{let Z;return E!==void 0?Z=E:f!==void 0?Z=f:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);g!==u&&(S(u),u&&$&&u!==$&&P(Z=>_({},Z,{draft:t.setTimezone(C,u,Z.draft)})));const{getValidationErrorForNewValue:w}=A1({props:e,validator:o,timezone:b,value:M.draft,onError:e.onError}),R=Se(Z=>{const re={action:Z,dateState:M,hasChanged:ne=>!t.areValuesEqual(C,Z.value,ne),isControlled:y,closeOnSelect:c},ie=J4(re),W=ez(re),F=tz(re);P(ne=>_({},ne,{draft:Z.value,lastPublishedValue:ie?Z.value:ne.lastPublishedValue,lastCommittedValue:W?Z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const Q=()=>(K||(K={validationError:Z.name==="setValueFromField"?Z.context.validationError:w(Z.value)},Z.name==="setValueFromShortcut"&&(K.shortcut=Z.shortcut)),K);ie&&k(Z.value,Q()),W&&i&&i(Z.value,Q()),F&&v(!1)});if(M.lastControlledValue!==s){const Z=t.areValuesEqual(C,M.draft,E);P(re=>_({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const A=Se(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),j=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Se(()=>{R({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),T=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),I=Se(()=>{R({value:t.getTodayValue(C,b,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(Z=>{Z.preventDefault(),v(!0)}),D=Se(Z=>{Z==null||Z.preventDefault(),v(!1)}),L=Se((Z,re="partial")=>R({name:"setValueFromView",value:Z,selectionState:re})),z=Se((Z,re,ie)=>R({name:"setValueFromShortcut",value:Z,changeImportance:re,shortcut:ie})),V=Se((Z,re)=>R({name:"setValueFromField",value:Z,context:re})),H={onClear:A,onAccept:j,onDismiss:O,onCancel:T,onSetToday:I,onOpen:N,onClose:D},se={value:M.draft,onChange:V},X=p.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),Y={value:X,onChange:L,onClose:D,open:m},ae=_({},H,{value:X,onChange:L,onSelectShortcut:z,isValid:Z=>{const re=o({adapter:h,value:Z,timezone:b,props:e});return!t.hasError(re)}}),te=p.useMemo(()=>({onOpen:N,onClose:D,open:m}),[m,D,N]);return{open:m,fieldProps:se,viewProps:Y,layoutProps:ae,actions:H,contextValue:te}},rz=["className","sx"],oz=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:f,viewRenderers:y,timezone:g}=e,S=Ae(e,rz),{view:C,setView:h,defaultView:m,focusedView:v,setFocusedView:b,setValueAndGoToNextView:E}=w1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=p.useMemo(()=>u.reduce((O,T)=>{let I;return y[T]!=null?I="UI":I="field",O.viewModeLookup[T]=I,I==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[y,u]),P=p.useMemo(()=>u.reduce((O,T)=>y[T]!=null&&bF(T)?O+1:O,0),[y,u]),$=M[C],w=Se(()=>$==="UI"),[R,A]=p.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&A(C),Ut(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,T;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(T=i==null?void 0:i.current)==null||T.focusField(C)}))},[C]),Ut(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&h(O),b(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:w,layoutProps:{views:u,view:R,onViewChange:h},renderCurrentView:()=>{if(R==null)return null;const O=y[R];if(O==null)return null;const T=_({},S,n,t,{views:u,timezone:g,onChange:E,view:R,onViewChange:h,focusedView:v,onFocusedViewChange:b,showViewSwitcher:P>1,timeViewsCount:P});return o?o(y,R,T):O(T)}}};function _0(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const iz=(e,t)=>{const[n,r]=p.useState(_0);return Ut(()=>{const i=()=>{r(_0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),GF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},az=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=iz(n.views,o),a=lr();return{layoutProps:_({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function sz(e){const{props:t,pickerValueResponse:n}=e;return p.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Q1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=nz({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=oz({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=az({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=sz({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:f}};function X1(e){return ge("MuiPickersLayout",e)}const qo=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),lz=["onAccept","onClear","onCancel","onSetToday","actions"];function cz(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,lz),s=go();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return x.jsx(it,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return x.jsx(it,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return x.jsx(it,{onClick:t,children:s.okButtonLabel},c);case"today":return x.jsx(it,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return x.jsx(Vm,_({},a,{children:l}))}const uz=["items","changeImportance","isLandscape","onChange","isValid"],dz=["getValue"];function fz(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,uz);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,dz);const u=l({isValid:o});return _({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return x.jsx(Ew,_({dense:!0,sx:[{maxHeight:sg,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>x.jsx(z$,{children:x.jsx(pI,_({},s))},s.id??s.label))}))}function pz(e){return e.view!==null}const hz=e=>{const{classes:t,isLandscape:n}=e;return ye({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},X1,t)},mz=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:f,isLandscape:y,disabled:g,readOnly:S,children:C,slots:h,slotProps:m}=e,v=hz(e),b=(h==null?void 0:h.actionBar)??cz,E=Qe({elementType:b,externalSlotProps:m==null?void 0:m.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:v.actionBar,ownerState:_({},e,{wrapperVariant:t})}),k=x.jsx(b,_({},E)),M=h==null?void 0:h.toolbar,P=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:y,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:S},className:v.toolbar,ownerState:_({},e,{wrapperVariant:t})}),$=pz(P)&&M?x.jsx(M,_({},P)):null,w=C,R=h==null?void 0:h.tabs,A=a&&R?x.jsx(R,_({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(h==null?void 0:h.shortcuts)??fz,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:y,onChange:d,wrapperVariant:t}}),T=a&&j?x.jsx(j,_({},O)):null;return{toolbar:$,content:w,tabs:A,actionBar:k,shortcuts:T}},gz=e=>{const{isLandscape:t,classes:n}=e;return ye({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},X1,n)},yz=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${qo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${qo.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${qo.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${qo.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${qo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${qo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${qo.shortcuts}`]:{gridColumn:3}}}]}),vz=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),q1=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=mz(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,y=gz(r);return x.jsxs(yz,{ref:n,sx:c,className:pe(y.root,u),ownerState:r,children:[d?l:o,d?o:l,x.jsx(vz,{className:y.contentWrapper,children:f==="desktop"?x.jsxs(p.Fragment,{children:[i,a]}):x.jsxs(p.Fragment,{children:[a,i]})}),s]})}),xz=["props","getOpenDialogAriaText"],Sz=["ownerState"],bz=["ownerState"],wz=e=>{var Q;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,xz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,autoFocus:v,localeText:b,reduceAnimations:E}=t,k=p.useRef(null),M=p.useRef(null),P=Uo(),$=((Q=i==null?void 0:i.toolbar)==null?void 0:Q.hidden)??!1,{open:w,actions:R,hasUIView:A,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:T,fieldProps:I,contextValue:N,ownerState:D}=Q1(_({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??kw,z=Qe({elementType:L,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(z,Sz),H=o.openPickerButton??Wr,se=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||h,onClick:w?R.onClose:R.onOpen,"aria-label":n(I.value),edge:V.position},ownerState:t}),X=Ae(se,bz),Y=o.openPickerIcon,le=Qe({elementType:Y,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:D}),ae=o.field,te=Qe({elementType:ae,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},I,$&&{id:P},{readOnly:h,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g,autoFocus:v&&!t.open,focused:w?!0:void 0},C?{inputRef:C}:{}),ownerState:t});A&&(te.InputProps=_({},te.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:x.jsx(L,_({},V,{children:x.jsx(H,_({},X,{children:x.jsx(Y,_({},le))}))}))}));const Z=_({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},te.slots),re=o.layout??q1;let ie=P;$&&(S?ie=`${P}-label`:ie=void 0);const W=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:P}),popper:_({"aria-labelledby":ie},i==null?void 0:i.popper)}),F=Ye(M,te.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:N,localeText:b,children:[x.jsx(ae,_({},te,{slots:Z,slotProps:W,unstableFieldRef:F})),x.jsx(q4,_({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:w,slots:o,slotProps:W,shouldRestoreFocus:T,reduceAnimations:E,children:x.jsx(re,_({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},va=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V})=>x.jsx(T4,{view:e,onViewChange:t,views:n.filter(I0),focusedView:r&&I0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:y,maxDate:g,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:h,reduceAnimations:m,onMonthChange:v,monthsPerRow:b,onYearChange:E,yearsOrder:k,yearsPerRow:M,slots:P,slotProps:$,loading:w,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:T,dayOfWeekFormatter:I,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V}),Z1=p.forwardRef(function(t,n){var c,u;const r=go(),o=yt(),i=G1(t,"MuiDesktopDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:_({openPickerIcon:cF,field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Ed((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=wz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Yl});return l()});Z1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Cz=G(_m)({[`& .${Hs.container}`]:{outline:0},[`& .${Hs.paper}`]:{outline:0,minWidth:Qd}}),kz=G(Wm)({"&:first-of-type":{padding:0}});function Ez(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??Cz,s=(o==null?void 0:o.mobileTransition)??Ka;return x.jsx(a,_({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:s,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:x.jsx(kz,{children:t})}))}const Pz=["props","getOpenDialogAriaText"],Mz=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,Pz);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,name:g,label:S,inputRef:C,readOnly:h,disabled:m,localeText:v}=t,b=p.useRef(null),E=Uo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:P,layoutProps:$,renderCurrentView:w,fieldProps:R,contextValue:A}=Q1(_({},r,{props:t,fieldRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},R,k&&{id:E},!(m||h)&&{onClick:P.onOpen,onKeyDown:QF(P.onOpen)},{readOnly:h??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:y,label:S,name:g},C?{inputRef:C}:{}),ownerState:t});O.inputProps=_({},O.inputProps,{"aria-label":n(R.value)});const T=_({textField:o.textField},O.slots),I=o.layout??q1;let N=E;k&&(S?N=`${E}-label`:N=void 0);const D=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:_({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),L=Ye(b,O.unstableFieldRef);return{renderPicker:()=>x.jsxs(L1,{contextValue:A,localeText:v,children:[x.jsx(j,_({},O,{slots:T,slotProps:D,unstableFieldRef:L})),x.jsx(Ez,_({},P,{open:M,slots:o,slotProps:D,children:x.jsx(I,_({},$,D==null?void 0:D.layout,{slots:o,slotProps:D,children:w()}))}))]})}},J1=p.forwardRef(function(t,n){var c,u;const r=go(),o=yt(),i=G1(t,"MuiMobileDatePicker"),a=_({day:va,month:va,year:va},i.viewRenderers),s=_({},i,{viewRenderers:a,format:cg(o,i,!1),slots:_({field:W1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},Ed((f=i.slotProps)==null?void 0:f.field,d),$1(i),{ref:n})},toolbar:_({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Mz({props:s,valueManager:Hr,valueType:"date",getOpenDialogAriaText:S1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Yl});return l()});J1.propTypes={autoFocus:J.bool,className:J.string,closeOnSelect:J.bool,dayOfWeekFormatter:J.func,defaultValue:J.object,disabled:J.bool,disableFuture:J.bool,disableHighlightToday:J.bool,disableOpenPicker:J.bool,disablePast:J.bool,displayWeekNumber:J.bool,enableAccessibleFieldDOMStructure:J.any,fixedWeekNumber:J.number,format:J.string,formatDensity:J.oneOf(["dense","spacious"]),inputRef:Bb,label:J.node,loading:J.bool,localeText:J.object,maxDate:J.object,minDate:J.object,monthsPerRow:J.oneOf([3,4]),name:J.string,onAccept:J.func,onChange:J.func,onClose:J.func,onError:J.func,onMonthChange:J.func,onOpen:J.func,onSelectedSectionsChange:J.func,onViewChange:J.func,onYearChange:J.func,open:J.bool,openTo:J.oneOf(["day","month","year"]),orientation:J.oneOf(["landscape","portrait"]),readOnly:J.bool,reduceAnimations:J.bool,referenceDate:J.object,renderLoading:J.func,selectedSections:J.oneOfType([J.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),J.number]),shouldDisableDate:J.func,shouldDisableMonth:J.func,shouldDisableYear:J.func,showDaysOutsideCurrentMonth:J.bool,slotProps:J.object,slots:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),timezone:J.string,value:J.object,view:J.oneOf(["day","month","year"]),viewRenderers:J.shape({day:J.func,month:J.func,year:J.func}),views:J.arrayOf(J.oneOf(["day","month","year"]).isRequired),yearsOrder:J.oneOf(["asc","desc"]),yearsPerRow:J.oneOf([3,4])};const Rz=["desktopModeMediaQuery"],ju=p.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=XF}=r,i=Ae(r,Rz);return jd(o,{defaultMatches:!0})?x.jsx(Z1,_({ref:n},i)):x.jsx(J1,_({ref:n},i))}),Dz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),[k,M]=p.useState(null),[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{trigger:A,error:j}=wr("/titles/",Jm(R)),{trigger:O,error:T}=wr("/images/",Xw(R)),{data:I,isLoading:N}=Bn("/activities/",zn(R)),D=async H=>{const se=new FormData;se.append("file",H);const X=await O(se);c(X),console.log(X)},L={name:H=>{y(H)},description:H=>{S(setPasswordErrorMessage,H)},start_date:H=>{h(H)},end_date:H=>{v(H)},activity:H=>{E(H)}},z=()=>{$(!1),w(`/titles/${k}`)};p.useEffect(()=>{j&&Object.entries(j.info).forEach(([H,se])=>{L[H](se)})},[j]);const V=async H=>{H.preventDefault();const se={name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a==null?void 0:a.format("YYYY-MM-DD"),activity:u};l&&(se.image=l.id);const X=await A(se);M(X.id),$(!0)};return N?x.jsx(Bm,{}):x.jsxs(x.Fragment,{children:[x.jsx(_l,{open:P,autoHideDuration:2e3,onClose:z,children:x.jsx(Fl,{onClose:z,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Ul,{fontSize:"inherit"})},children:"Title is successfully created! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Create Title"}),x.jsxs("form",{onSubmit:V,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:H=>t(H.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:H=>r(H.target.value),error:!!g,helperText:g}),x.jsx(ju,{label:"Start Date",value:o,onChange:H=>i(H),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(ju,{label:"End Date",value:a,onChange:H=>s(H),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Nd,{id:"activity-select-label",children:"Activity"}),x.jsx(Fd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:H=>d(H.target.value),required:!0,children:I.map(H=>x.jsx(Du,{value:H.id,children:H.name},H.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:H=>D(H.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},src:l.file})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},Tz=()=>x.jsx(Ld,{maxWidth:"sm",children:x.jsx(Dz,{})}),eC=Ht(x.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),tC=Ht(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),nC=({title:e,activity:t})=>{const[n,r]=p.useState(!1),{token:o}=p.useContext(nn),{trigger:i}=wr("/titles/",Kw(o)),a=cn(),s=()=>{r(!0)},l=()=>{r(!1)},c=async()=>{console.log(`Deleting title with id: ${e.id}`),await i(e.id),await qm(d=>typeof d=="string"&&d.startsWith("/titles/")),r(!1)},u=()=>{a(`/edit-title/${e.id}`)};return x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:l,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this title?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:l,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:c,color:"error",children:"Delete"})]})]}),x.jsxs(Sl,{sx:{display:"flex",justifyContent:"space-between"},children:[x.jsx(mw,{children:x.jsxs(fi,{container:!0,children:[e.image&&x.jsx(fi,{size:{xs:12,sm:6},children:x.jsx(Sl,{children:x.jsx(QI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover",objectPosition:"top"},component:"img",image:e.image,alt:e.name})})}),x.jsx(fi,{size:{xs:12,sm:6},children:x.jsxs(Ot,{sx:{marginLeft:e.image?2:0},children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&x.jsxs(Fe,{variant:"body2",color:"textSecondary",children:["Spent:"," ",v1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),t?x.jsx(Um,{component:Kn,to:`/activities/${t.id}`,variant:"body2",children:t.name}):x.jsx(Bm,{size:"1rem"})]})})]})}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:d=>{d.stopPropagation(),u(t.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:d=>{d.stopPropagation(),s(t.id)},children:x.jsx(tC,{})})]})]})]})},Iz=()=>{const[e,t]=p.useState(null),n=cn(),{token:r}=p.useContext(nn),o=Yd(),{data:i,isLoading:a,error:s}=Bn(`/titles/${o.id}`,zn(r)),{data:l}=Bn(e?`/activities/${e.activity}`:null,zn(r));return p.useEffect(()=>{i&&t({id:i.id,name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),p.useEffect(()=>{s&&(s.status===404?n("/activities"):n("/error"))},[s]),a||!e?x.jsx(mo,{}):x.jsx(Ri,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:x.jsx(nC,{title:e,activity:l})})},Oz=Ht(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),$z=({onLogin:e,onLogout:t})=>{const[n,r]=p.useState(null),[o,i]=p.useState(!1),{login:a,logout:s}=p.useContext(nn),{user:l}=Vd(),c=cn(),u=jd(g=>g.breakpoints.down("sm")),d=g=>{r(g.currentTarget)},f=()=>{r(null)},y=()=>{i(!o)};return x.jsxs(HT,{position:"static",color:"info",children:[x.jsxs(aL,{children:[x.jsxs(Ot,{flexGrow:1,display:"flex",alignItems:"center",children:[x.jsx(Ot,{component:Kn,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:x.jsx(ag,{})}),u?x.jsx(Wr,{color:"inherit",onClick:y,sx:{marginLeft:1},children:x.jsx(Oz,{})}):x.jsxs(x.Fragment,{children:[x.jsx(it,{sx:{marginLeft:1},color:"inherit",component:Kn,to:"/history",children:"History"}),x.jsx(it,{color:"inherit",component:Kn,to:"/table",children:"Table"}),x.jsx(it,{color:"inherit",component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{color:"inherit",onClick:d,children:"New"}),x.jsxs(Dw,{anchorEl:n,open:!!n,onClose:f,children:[x.jsx(Du,{onClick:f,component:Kn,to:"/create-activity",children:"Activity"}),x.jsx(Du,{onClick:f,component:Kn,to:"/create-title",children:"Title"})]})]})]}),l?x.jsxs(x.Fragment,{children:[x.jsx(Fe,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),x.jsx(it,{color:"inherit",onClick:s,children:"Logout"})]}):x.jsx(it,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&x.jsx(ZO,{anchor:"right",open:o,onClose:y,children:x.jsxs(Ot,{sx:{width:180},role:"presentation",onClick:y,onKeyDown:y,display:"flex",flexDirection:"column",gap:3,children:[x.jsx(it,{component:Kn,to:"/history",children:"History"}),x.jsx(it,{component:Kn,to:"/table",children:"Table"}),x.jsx(it,{component:Kn,to:"/activities",children:"Activities"}),x.jsx(it,{component:Kn,to:"/create-activity",children:"New activity"}),x.jsx(it,{component:Kn,to:"/create-title",children:"New title"})]})})]})},Az=()=>x.jsxs(x.Fragment,{children:[x.jsx($z,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),x.jsx(Ot,{marginTop:4,children:x.jsx(iN,{})})]}),Lz=()=>{const[e,t]=p.useState(null),[n,r]=p.useState(null),o=cn(),{token:i}=p.useContext(nn),a=Yd(),{data:s,isLoading:l,error:c}=Bn(`/activities/${a.id}`,zn(i)),{data:u}=Bn(e?`/titles/?activity=${e.id}`:null,zn(i));return console.log(s),p.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),p.useEffect(()=>{u&&r(u.map(d=>({id:d.id,name:d.name,description:d.description,startDate:d.start_date,endDate:d.end_date,image:d.image})))},[u]),p.useEffect(()=>{c&&o("/error")},[c]),l||!e?x.jsx(mo,{}):(console.log(n),x.jsxs(Ri,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[x.jsx(Fe,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),x.jsx(Fe,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&x.jsx(fi,{container:!0,spacing:2,marginTop:2,children:n.map(d=>x.jsx(fi,{size:{xs:12,md:6},children:x.jsx(nC,{activity:e,title:d})},d.id))})]}))},jz=(e,t,n)=>{const r=n.map(o=>{console.log("sta",o.startDate,o.endDate);const i=new Date(o.startDate),a=o.endDate&&new Date(o.endDate);console.log("en",i,a);const s={start_date:{day:i.getDate(),month:i.getMonth()+1,year:i.getFullYear()},text:{headline:o.name,text:o.description},group:o.activityName};return a&&(s.end_date={day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}),o.image&&(s.media={url:o.image}),s});return{title:{text:{headline:e,text:t}},events:r}},Nz=()=>{const{token:e}=p.useContext(nn),{data:t,isLoading:n}=Bn("/titles/",zn(e));return p.useLayoutEffect(()=>{if(t){const r=t.map(i=>({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activityName:i.activity_name})),o=jz("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?x.jsx(mo,{}):x.jsx(x.Fragment,{children:x.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},Fz=()=>{const{token:e}=p.useContext(nn),t=cn(),[n,r]=p.useState(!1),[o,i]=p.useState(null),{data:a,isLoading:s}=Bn("/activities/",zn(e)),{trigger:l}=wr("/activities/",Kw(e)),c=y=>{r(!0),i(y)},u=()=>{r(!1),i(null)},d=async()=>{console.log(`Deleting activity with id: ${o}`),await l(o),r(!1),i(null)},f=y=>{t(`/edit-activity/${y}`)};return s?x.jsx(mo,{}):x.jsxs(x.Fragment,{children:[x.jsxs(_m,{open:n,onClose:u,children:[x.jsx(Sw,{children:"Confirm Delete"}),x.jsx(Wm,{children:x.jsx(Fe,{children:"Are you sure you want to delete this activity?"})}),x.jsxs(Vm,{children:[x.jsx(it,{onClick:u,color:"primary",children:"Cancel"}),x.jsx(it,{onClick:d,color:"error",children:"Delete"})]})]}),x.jsx(fi,{container:!0,spacing:2,sx:{padding:2},children:a.map(y=>x.jsx(fi,{size:{xs:12,sm:6,md:6},children:x.jsxs(Sl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer",display:"flex",justifyContent:"space-between"},onClick:()=>t(`/activities/${y.id}`),children:[x.jsxs(mw,{children:[x.jsx(Fe,{variant:"h5",component:"div",children:y.name}),x.jsx(Fe,{variant:"body2",color:"text.secondary",children:y.description})]}),x.jsxs(Ot,{sx:{padding:1},display:"flex",alignItems:"flex-start",flexDirection:"column",children:[x.jsx(Wr,{onClick:g=>{g.stopPropagation(),f(y.id)},children:x.jsx(eC,{})}),x.jsx(Wr,{onClick:g=>{g.stopPropagation(),c(y.id)},children:x.jsx(tC,{})})]})]})},y.id))})]})},Bz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),i=Yd().id,[a,s]=p.useState(""),[l,c]=p.useState(""),[u,d]=p.useState(!1),f=cn(),{token:y}=p.useContext(nn),{data:g,isLoading:S}=Bn(`/activities/${i}`,zn(y)),{trigger:C,error:h}=wr("/activities/",Gw(y)),m=async E=>{E.preventDefault(),await C({id:i,name:e,description:n}),d(!0)},v={name:E=>{s(E)},description:E=>{c(setPasswordErrorMessage,E)}},b=()=>{d(!1),f(`/activities/${i}`)};return p.useEffect(()=>{h&&Object.entries(h.info).forEach(([E,k])=>{v[E](k)})},[h]),p.useEffect(()=>{g&&(t(g.name),r(g.description))},[g]),S?x.jsx(mo,{}):x.jsxs(Ld,{maxWidth:"sm",children:[x.jsx(_l,{open:u,autoHideDuration:2e3,onClose:b,children:x.jsx(Fl,{onClose:b,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Ul,{fontSize:"inherit"})},children:"Activity is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Activity"}),x.jsxs("form",{onSubmit:m,children:[x.jsx(Cn,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:E=>t(E.target.value),error:!!a,helperText:a,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:E=>r(E.target.value),error:!!l,helperText:l}),x.jsx(Ot,{display:"flex",justifyContent:"flex-end",children:x.jsx(it,{type:"submit",variant:"contained",color:"primary",children:"Edit Activity"})})]})]})},zz=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(null),[a,s]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(""),[f,y]=p.useState(""),[g,S]=p.useState(""),[C,h]=p.useState(""),[m,v]=p.useState(""),[b,E]=p.useState(""),M=Yd().id,[P,$]=p.useState(!1),w=cn(),{token:R}=p.useContext(nn),{data:A,isLoading:j}=Bn(`/titles/${M}`,zn(R)),{trigger:O,error:T}=wr("/titles/",Gw(R)),{trigger:I,error:N}=wr("/images/",Xw(R)),{data:D,isLoading:L}=Bn("/activities/",zn(R)),z=async X=>{const Y=new FormData;Y.append("file",X);const le=await I(Y);c(le)},V={name:X=>{y(X)},description:X=>{S(setPasswordErrorMessage,X)},start_date:X=>{h(X)},end_date:X=>{v(X)},activity:X=>{E(X)}},H=()=>{$(!1),w(`/titles/${M}`)};p.useEffect(()=>{T&&Object.entries(T.info).forEach(([X,Y])=>{V[X](Y)})},[T]),p.useEffect(()=>{A&&(t(A.name),r(A.description),i(jt(A.start_date)),s(jt(A.end_date)),c(A.image),d(A.activity))},[A]);const se=async X=>{X.preventDefault();const Y={id:M,name:e,description:n,start_date:o==null?void 0:o.format("YYYY-MM-DD"),end_date:a?a.format("YYYY-MM-DD"):null,activity:u};l&&(Y.image=l.id),await O(Y),$(!0)};return j||L?x.jsx(mo,{}):x.jsxs(Ld,{maxWidth:"sm",children:[x.jsx(_l,{open:P,autoHideDuration:2e3,onClose:H,children:x.jsx(Fl,{onClose:H,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:x.jsx(Ul,{fontSize:"inherit"})},children:"Title is successfully updated! Redirecting..."})}),x.jsx(Fe,{variant:"h4",gutterBottom:!0,children:"Edit Title"}),x.jsxs("form",{onSubmit:se,children:[x.jsx(Cn,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:X=>t(X.target.value),error:!!f,helperText:f,required:!0}),x.jsx(Cn,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:X=>r(X.target.value),error:!!g,helperText:g}),x.jsx(ju,{label:"Start Date",value:o,onChange:X=>i(X),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsx(ju,{label:"End Date",value:a,onChange:X=>s(X),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m},field:{clearable:!0},actionBar:{actions:["clear","cancel","accept"]}}}),x.jsxs(to,{fullWidth:!0,margin:"normal",error:!!b,children:[x.jsx(Nd,{id:"activity-select-label",children:"Activity"}),x.jsx(Fd,{label:"Activity",labelId:"activity-select-label",value:u,onChange:X=>d(X.target.value),required:!0,children:D.map(X=>x.jsx(Du,{value:X.id,children:X.name},X.id))})]}),x.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:X=>z(X.target.files[0])}),x.jsx("label",{htmlFor:"image-upload",children:x.jsx(it,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&x.jsx(Ot,{display:"flex",justifyContent:"center",margin:"8px",children:x.jsx(Ot,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},src:l})}),x.jsx(it,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Update Title"})]})]})},_z=()=>{const e=KN(),t=pN([{path:"/",element:x.jsx(Az,{}),children:[{path:"/",element:x.jsx(Tr,{Component:YL})},{path:"/register",element:x.jsx(R0,{Component:JN})},{path:"/login",element:x.jsx(R0,{Component:XN})},{path:"/table",element:x.jsx(Tr,{Component:eF})},{path:"/activities",element:x.jsx(Tr,{Component:Fz})},{path:"/titles/:id",element:x.jsx(Tr,{Component:Iz})},{path:"/activities/:id",element:x.jsx(Tr,{Component:Lz})},{path:"/create-activity",element:x.jsx(Tr,{Component:nF})},{path:"/create-title",element:x.jsx(Tr,{Component:Tz})},{path:"/edit-activity/:id",element:x.jsx(Tr,{Component:Bz})},{path:"/edit-title/:id",element:x.jsx(Tr,{Component:zz})},{path:"/history",element:x.jsx(Tr,{Component:Nz})},{path:"/error",element:x.jsx(M0,{})},{path:"*",element:x.jsx(M0,{})}]}],{basename:"/timetrekah-frontend/"});return x.jsx(nn.Provider,{value:e,children:x.jsx(wN,{router:t})})};var Vz={exports:{}};(function(e,t){(function(n,r){e.exports=r(f1())})(ki,function(n){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var o=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(l,c,u){var d=i[u];return Array.isArray(d)&&(d=d[c?0:1]),d.replace("%d",l)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(l){return l+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return o.default.locale(s,null,!0),s})})(Vz);const Wz=Md();tb(document.getElementById("root")).render(x.jsx(p.StrictMode,{children:x.jsx(UL,{value:{fetcher:HL},children:x.jsx(VD,{theme:Wz,children:x.jsx(x1,{dateAdapter:VN,adapterLocale:"de",children:x.jsx(_z,{})})})})})); diff --git a/index.html b/index.html index e33f484..43221ca 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - +