From aa3431ba0486b30f83a1f3a0af966287f1e98317 Mon Sep 17 00:00:00 2001 From: DanyaIzm Date: Wed, 18 Dec 2024 17:25:19 +0000 Subject: [PATCH] deploy: 3924aa3d71b3b1b8f9204c98af8f6d92935836b2 --- .../{index-BKvvCigI.js => index-CojXb403.js} | 52 +++++++++---------- index.html | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) rename assets/{index-BKvvCigI.js => index-CojXb403.js} (95%) diff --git a/assets/index-BKvvCigI.js b/assets/index-CojXb403.js similarity index 95% rename from assets/index-BKvvCigI.js rename to assets/index-CojXb403.js index f61ad23..d0e398f 100644 --- a/assets/index-BKvvCigI.js +++ b/assets/index-CojXb403.js @@ -1,4 +1,4 @@ -var G1=Object.defineProperty;var Q1=(e,t,n)=>t in e?G1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xa=(e,t,n)=>Q1(e,typeof t!="symbol"?t+"":t,n);function $0(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 bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A0={exports:{}},$u={},L0={exports:{}},Ve={};/** +var G1=Object.defineProperty;var Q1=(e,t,n)=>t in e?G1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qa=(e,t,n)=>Q1(e,typeof t!="symbol"?t+"":t,n);function $0(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 bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A0={exports:{}},$u={},L0={exports:{}},Ve={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var G1=Object.defineProperty;var Q1=(e,t,n)=>t in e?G1(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 Pl=Symbol.for("react.element"),X1=Symbol.for("react.portal"),q1=Symbol.for("react.fragment"),Z1=Symbol.for("react.strict_mode"),J1=Symbol.for("react.profiler"),eC=Symbol.for("react.provider"),tC=Symbol.for("react.context"),nC=Symbol.for("react.forward_ref"),rC=Symbol.for("react.suspense"),oC=Symbol.for("react.memo"),iC=Symbol.for("react.lazy"),cg=Symbol.iterator;function aC(e){return e===null||typeof e!="object"?null:(e=cg&&e[cg]||e["@@iterator"],typeof e=="function"?e:null)}var j0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N0=Object.assign,F0={};function Na(e,t,n){this.props=e,this.context=t,this.refs=F0,this.updater=n||j0}Na.prototype.isReactComponent={};Na.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")};Na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B0(){}B0.prototype=Na.prototype;function ih(e,t,n){this.props=e,this.context=t,this.refs=F0,this.updater=n||j0}var ah=ih.prototype=new B0;ah.constructor=ih;N0(ah,Na.prototype);ah.isPureReactComponent=!0;var ug=Array.isArray,_0=Object.prototype.hasOwnProperty,sh={current:null},z0={key:!0,ref:!0,__self:!0,__source:!0};function V0(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)_0.call(t,r)&&!z0.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1t in e?G1(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 vC=h,Ln=yC;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"),Bf=Object.prototype.hasOwnProperty,xC=/^[: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]*$/,fg={},pg={};function SC(e){return Bf.call(pg,e)?!0:Bf.call(fg,e)?!1:xC.test(e)?pg[e]=!0:(fg[e]=!0,!1)}function bC(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 wC(e,t,n,r){if(t===null||typeof t>"u"||bC(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 dn(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 Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new dn(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){Jt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ch=/[\-:]([a-z])/g;function uh(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(ch,uh);Jt[t]=new dn(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(ch,uh);Jt[t]=new dn(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(ch,uh);Jt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function dh(e,t,n,r){var o=Jt.hasOwnProperty(t)?Jt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bf=Object.prototype.hasOwnProperty,xC=/^[: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]*$/,fg={},pg={};function SC(e){return Bf.call(pg,e)?!0:Bf.call(fg,e)?!1:xC.test(e)?pg[e]=!0:(fg[e]=!0,!1)}function bC(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 wC(e,t,n,r){if(t===null||typeof t>"u"||bC(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 dn(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 Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new dn(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){Jt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ch=/[\-:]([a-z])/g;function uh(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(ch,uh);Jt[t]=new dn(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(ch,uh);Jt[t]=new dn(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(ch,uh);Jt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function dh(e,t,n,r){var o=Jt.hasOwnProperty(t)?Jt[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{Kd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ss(e):""}function CC(e){switch(e.tag){case 5:return Ss(e.type);case 16:return Ss("Lazy");case 13:return Ss("Suspense");case 19:return Ss("SuspenseList");case 0:case 2:case 15:return e=Gd(e.type,!1),e;case 11:return e=Gd(e.type.render,!1),e;case 1:return e=Gd(e.type,!0),e;default:return""}}function Wf(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 Wi:return"Fragment";case Vi:return"Portal";case _f:return"Profiler";case fh:return"StrictMode";case zf:return"Suspense";case Vf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X0:return(e.displayName||"Context")+".Consumer";case Q0:return(e._context.displayName||"Context")+".Provider";case ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hh:return t=e.displayName||null,t!==null?t:Wf(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return Wf(e(t))}catch{}}return null}function kC(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 Wf(t);case 8:return t===fh?"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 Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PC(e){var t=Z0(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 ql(e){e._valueTracker||(e._valueTracker=PC(e))}function J0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hc(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 Uf(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ao(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 ex(e,t){t=t.checked,t!=null&&dh(e,"checked",t,!1)}function Hf(e,t){ex(e,t);var n=Ao(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")?Yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yf(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gg(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 Yf(e,t,n){(t!=="number"||Hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bs=Array.isArray;function ta(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ts={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},EC=["Webkit","ms","Moz","O"];Object.keys(Ts).forEach(function(e){EC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ts[t]=Ts[e]})});function ox(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ts.hasOwnProperty(e)&&Ts[e]?(""+t).trim():t+"px"}function ix(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ox(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var MC=Ct({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 Qf(e,t){if(t){if(MC[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 Xf(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 qf=null;function mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zf=null,na=null,ra=null;function xg(e){if(e=Rl(e)){if(typeof Zf!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Fu(t),Zf(e.stateNode,e.type,t))}}function ax(e){na?ra?ra.push(e):ra=[e]:na=e}function sx(){if(na){var e=na,t=ra;if(ra=na=null,xg(e),t)for(e=0;e>>=0,e===0?32:31-(FC(e)/BC|0)|0}var Jl=64,ec=4194304;function ws(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=ws(s):(i&=a,i!==0&&(r=ws(i)))}else a=n&~o,a!==0?r=ws(a):i!==0&&(r=ws(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 El(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function WC(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=Is),Rg=" ",Tg=!1;function Mx(e,t){switch(e){case"keyup":return yk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ui=!1;function xk(e,t){switch(e){case"compositionend":return Rx(t);case"keypress":return t.which!==32?null:(Tg=!0,Rg);case"textInput":return e=t.data,e===Rg&&Tg?null:e;default:return null}}function Sk(e,t){if(Ui)return e==="compositionend"||!Ch&&Mx(e,t)?(e=Px(),Rc=Sh=bo=null,Ui=!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=$g(n)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $x(){for(var e=window,t=Hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hc(e.document)}return t}function kh(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 Tk(e){var t=$x(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ox(n.ownerDocument.documentElement,n)){if(r!==null&&kh(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=Ag(n,i);var a=Ag(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,Hi=null,op=null,$s=null,ip=!1;function Lg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ip||Hi==null||Hi!==Hc(r)||(r=Hi,"selectionStart"in r&&kh(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}),$s&&el($s,r)||($s=r,r=Zc(op,"onSelect"),0Gi||(e.current=dp[Gi],dp[Gi]=null,Gi--)}function dt(e,t){Gi++,dp[Gi]=e.current,e.current=t}var Lo={},sn=Bo(Lo),gn=Bo(!1),di=Lo;function ga(e,t){var n=e.type.contextTypes;if(!n)return Lo;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 yn(e){return e=e.childContextTypes,e!=null}function eu(){ht(gn),ht(sn)}function Vg(e,t,n){if(sn.current!==Lo)throw Error(he(168));dt(sn,t),dt(gn,n)}function Vx(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,kC(e)||"Unknown",o));return Ct({},n,r)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,di=sn.current,dt(sn,e),dt(gn,gn.current),!0}function Wg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Vx(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ht(gn),ht(sn),dt(sn,e)):ht(gn),dt(gn,n)}var Gr=null,Bu=!1,cf=!1;function Wx(e){Gr===null?Gr=[e]:Gr.push(e)}function zk(e){Bu=!0,Wx(e)}function _o(){if(!cf&&Gr!==null){cf=!0;var e=0,t=rt;try{var n=Gr;for(rt=1;e>=a,o-=a,Qr=1<<32-fr(t)+o|n<E?($=M,M=null):$=M.sibling;var b=f(p,M,v[E],S);if(b===null){M===null&&(M=$);break}e&&M&&b.alternate===null&&t(p,M),m=i(b,m,E),k===null?P=b:k.sibling=b,k=b,M=$}if(E===v.length)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;EE?($=M,M=null):$=M.sibling;var R=f(p,M,b.value,S);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(p,M),m=i(R,m,E),k===null?P=R:k.sibling=R,k=R,M=$}if(b.done)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;!b.done;E++,b=v.next())b=d(p,b.value,S),b!==null&&(m=i(b,m,E),k===null?P=b:k.sibling=b,k=b);return St&&Qo(p,E),P}for(M=r(p,M);!b.done;E++,b=v.next())b=g(M,p,E,b.value,S),b!==null&&(e&&b.alternate!==null&&M.delete(b.key===null?E:b.key),m=i(b,m,E),k===null?P=b:k.sibling=b,k=b);return e&&M.forEach(function(A){return t(p,A)}),St&&Qo(p,E),P}function C(p,m,v,S){if(typeof v=="object"&&v!==null&&v.type===Wi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Xl:e:{for(var P=v.key,k=m;k!==null;){if(k.key===P){if(P=v.type,P===Wi){if(k.tag===7){n(p,k.sibling),m=o(k,v.props.children),m.return=p,p=m;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yo&&Yg(P)===k.type){n(p,k.sibling),m=o(k,v.props),m.ref=ns(p,k,v),m.return=p,p=m;break e}n(p,k);break}else t(p,k);k=k.sibling}v.type===Wi?(m=si(v.props.children,p.mode,S,v.key),m.return=p,p=m):(S=jc(v.type,v.key,v.props,null,p.mode,S),S.ref=ns(p,m,v),S.return=p,p=S)}return a(p);case Vi: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(p,m.sibling),m=o(m,v.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=yf(v,p.mode,S),m.return=p,p=m}return a(p);case yo:return k=v._init,C(p,m,k(v._payload),S)}if(bs(v))return y(p,m,v,S);if(qa(v))return x(p,m,v,S);sc(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,v),m.return=p,p=m):(n(p,m),m=gf(v,p.mode,S),m.return=p,p=m),a(p)):n(p,m)}return C}var va=Kx(!0),Gx=Kx(!1),ou=Bo(null),iu=null,qi=null,Rh=null;function Th(){Rh=qi=iu=null}function Dh(e){var t=ou.current;ht(ou),e._currentValue=t}function hp(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 ia(e,t){iu=e,Rh=qi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function qn(e){var t=e._currentValue;if(Rh!==e)if(e={context:e,memoizedValue:t,next:null},qi===null){if(iu===null)throw Error(he(308));qi=e,iu.dependencies={lanes:0,firstContext:e}}else qi=qi.next=e;return t}var ni=null;function Ih(e){ni===null?ni=[e]:ni.push(e)}function Qx(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ih(t)):(n.next=o.next,o.next=n),t.interleaved=n,no(e,r)}function no(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 vo=!1;function Oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xx(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 qr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function To(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,no(e,n)}return o=r.interleaved,o===null?(t.next=t,Ih(r)):(t.next=o.next,o.next=t),r.interleaved=t,no(e,n)}function Dc(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,yh(e,n)}}function Kg(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 au(e,t,n,r){var o=e.updateQueue;vo=!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,g=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(f=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(g,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,f=typeof y=="function"?y.call(g,d,f):y,f==null)break e;d=Ct({},d,f);break e;case 2:vo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else g={eventTime:g,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=d):u=u.next=g,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);hi|=a,e.lanes=a,e.memoizedState=d}}function Gg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=df.transition;df.transition={};try{e(!1),t()}finally{rt=n,df.transition=r}}function pS(){return Zn().memoizedState}function Hk(e,t,n){var r=Io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hS(e))mS(t,n);else if(n=Qx(e,t,n,r),n!==null){var o=cn();pr(n,e,r,o),gS(n,t,r)}}function Yk(e,t,n){var r=Io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hS(e))mS(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,hr(s,a)){var l=t.interleaved;l===null?(o.next=o,Ih(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Qx(e,t,o,r),n!==null&&(o=cn(),pr(n,e,r,o),gS(n,t,r))}}function hS(e){var t=e.alternate;return e===wt||t!==null&&t===wt}function mS(e,t){As=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yh(e,n)}}var cu={readContext:qn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},Kk={readContext:qn,useCallback:function(e,t){return Er().memoizedState=[e,t===void 0?null:t],e},useContext:qn,useEffect:Xg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oc(4194308,4,lS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oc(4,2,e,t)},useMemo:function(e,t){var n=Er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Er();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=Hk.bind(null,wt,e),[r.memoizedState,e]},useRef:function(e){var t=Er();return e={current:e},t.memoizedState=e},useState:Qg,useDebugValue:_h,useDeferredValue:function(e){return Er().memoizedState=e},useTransition:function(){var e=Qg(!1),t=e[0];return e=Uk.bind(null,e[1]),Er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wt,o=Er();if(St){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Yt===null)throw Error(he(349));pi&30||eS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Xg(nS.bind(null,r,i,e),[e]),r.flags|=2048,ll(9,tS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Er(),t=Yt.identifierPrefix;if(St){var n=Xr,r=Qr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=al++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Kd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bs(e):""}function CC(e){switch(e.tag){case 5:return bs(e.type);case 16:return bs("Lazy");case 13:return bs("Suspense");case 19:return bs("SuspenseList");case 0:case 2:case 15:return e=Gd(e.type,!1),e;case 11:return e=Gd(e.type.render,!1),e;case 1:return e=Gd(e.type,!0),e;default:return""}}function Wf(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 Wi:return"Fragment";case Vi:return"Portal";case _f:return"Profiler";case fh:return"StrictMode";case zf:return"Suspense";case Vf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X0:return(e.displayName||"Context")+".Consumer";case Q0:return(e._context.displayName||"Context")+".Provider";case ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hh:return t=e.displayName||null,t!==null?t:Wf(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return Wf(e(t))}catch{}}return null}function kC(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 Wf(t);case 8:return t===fh?"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 Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PC(e){var t=Z0(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 ql(e){e._valueTracker||(e._valueTracker=PC(e))}function J0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hc(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 Uf(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ao(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 ex(e,t){t=t.checked,t!=null&&dh(e,"checked",t,!1)}function Hf(e,t){ex(e,t);var n=Ao(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")?Yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yf(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gg(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 Yf(e,t,n){(t!=="number"||Hc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ws=Array.isArray;function ta(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ds={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},EC=["Webkit","ms","Moz","O"];Object.keys(Ds).forEach(function(e){EC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ds[t]=Ds[e]})});function ox(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ds.hasOwnProperty(e)&&Ds[e]?(""+t).trim():t+"px"}function ix(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ox(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var MC=Ct({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 Qf(e,t){if(t){if(MC[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 Xf(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 qf=null;function mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zf=null,na=null,ra=null;function xg(e){if(e=Tl(e)){if(typeof Zf!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Fu(t),Zf(e.stateNode,e.type,t))}}function ax(e){na?ra?ra.push(e):ra=[e]:na=e}function sx(){if(na){var e=na,t=ra;if(ra=na=null,xg(e),t)for(e=0;e>>=0,e===0?32:31-(FC(e)/BC|0)|0}var Jl=64,ec=4194304;function Cs(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=Cs(s):(i&=a,i!==0&&(r=Cs(i)))}else a=n&~o,a!==0?r=Cs(a):i!==0&&(r=Cs(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 Ml(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function WC(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=Os),Rg=" ",Tg=!1;function Mx(e,t){switch(e){case"keyup":return yk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ui=!1;function xk(e,t){switch(e){case"compositionend":return Rx(t);case"keypress":return t.which!==32?null:(Tg=!0,Rg);case"textInput":return e=t.data,e===Rg&&Tg?null:e;default:return null}}function Sk(e,t){if(Ui)return e==="compositionend"||!Ch&&Mx(e,t)?(e=Px(),Rc=Sh=bo=null,Ui=!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=$g(n)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $x(){for(var e=window,t=Hc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hc(e.document)}return t}function kh(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 Tk(e){var t=$x(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ox(n.ownerDocument.documentElement,n)){if(r!==null&&kh(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=Ag(n,i);var a=Ag(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,Hi=null,op=null,As=null,ip=!1;function Lg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ip||Hi==null||Hi!==Hc(r)||(r=Hi,"selectionStart"in r&&kh(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}),As&&tl(As,r)||(As=r,r=Zc(op,"onSelect"),0Gi||(e.current=dp[Gi],dp[Gi]=null,Gi--)}function dt(e,t){Gi++,dp[Gi]=e.current,e.current=t}var Lo={},sn=Bo(Lo),gn=Bo(!1),di=Lo;function ga(e,t){var n=e.type.contextTypes;if(!n)return Lo;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 yn(e){return e=e.childContextTypes,e!=null}function eu(){ht(gn),ht(sn)}function Vg(e,t,n){if(sn.current!==Lo)throw Error(he(168));dt(sn,t),dt(gn,n)}function Vx(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,kC(e)||"Unknown",o));return Ct({},n,r)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,di=sn.current,dt(sn,e),dt(gn,gn.current),!0}function Wg(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Vx(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ht(gn),ht(sn),dt(sn,e)):ht(gn),dt(gn,n)}var Gr=null,Bu=!1,cf=!1;function Wx(e){Gr===null?Gr=[e]:Gr.push(e)}function zk(e){Bu=!0,Wx(e)}function _o(){if(!cf&&Gr!==null){cf=!0;var e=0,t=rt;try{var n=Gr;for(rt=1;e>=a,o-=a,Qr=1<<32-fr(t)+o|n<E?($=M,M=null):$=M.sibling;var b=f(p,M,v[E],S);if(b===null){M===null&&(M=$);break}e&&M&&b.alternate===null&&t(p,M),m=i(b,m,E),k===null?P=b:k.sibling=b,k=b,M=$}if(E===v.length)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;EE?($=M,M=null):$=M.sibling;var R=f(p,M,b.value,S);if(R===null){M===null&&(M=$);break}e&&M&&R.alternate===null&&t(p,M),m=i(R,m,E),k===null?P=R:k.sibling=R,k=R,M=$}if(b.done)return n(p,M),St&&Qo(p,E),P;if(M===null){for(;!b.done;E++,b=v.next())b=d(p,b.value,S),b!==null&&(m=i(b,m,E),k===null?P=b:k.sibling=b,k=b);return St&&Qo(p,E),P}for(M=r(p,M);!b.done;E++,b=v.next())b=g(M,p,E,b.value,S),b!==null&&(e&&b.alternate!==null&&M.delete(b.key===null?E:b.key),m=i(b,m,E),k===null?P=b:k.sibling=b,k=b);return e&&M.forEach(function(A){return t(p,A)}),St&&Qo(p,E),P}function C(p,m,v,S){if(typeof v=="object"&&v!==null&&v.type===Wi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Xl:e:{for(var P=v.key,k=m;k!==null;){if(k.key===P){if(P=v.type,P===Wi){if(k.tag===7){n(p,k.sibling),m=o(k,v.props.children),m.return=p,p=m;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yo&&Yg(P)===k.type){n(p,k.sibling),m=o(k,v.props),m.ref=rs(p,k,v),m.return=p,p=m;break e}n(p,k);break}else t(p,k);k=k.sibling}v.type===Wi?(m=si(v.props.children,p.mode,S,v.key),m.return=p,p=m):(S=jc(v.type,v.key,v.props,null,p.mode,S),S.ref=rs(p,m,v),S.return=p,p=S)}return a(p);case Vi: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(p,m.sibling),m=o(m,v.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=yf(v,p.mode,S),m.return=p,p=m}return a(p);case yo:return k=v._init,C(p,m,k(v._payload),S)}if(ws(v))return y(p,m,v,S);if(Za(v))return x(p,m,v,S);sc(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=o(m,v),m.return=p,p=m):(n(p,m),m=gf(v,p.mode,S),m.return=p,p=m),a(p)):n(p,m)}return C}var va=Kx(!0),Gx=Kx(!1),ou=Bo(null),iu=null,qi=null,Rh=null;function Th(){Rh=qi=iu=null}function Dh(e){var t=ou.current;ht(ou),e._currentValue=t}function hp(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 ia(e,t){iu=e,Rh=qi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function qn(e){var t=e._currentValue;if(Rh!==e)if(e={context:e,memoizedValue:t,next:null},qi===null){if(iu===null)throw Error(he(308));qi=e,iu.dependencies={lanes:0,firstContext:e}}else qi=qi.next=e;return t}var ni=null;function Ih(e){ni===null?ni=[e]:ni.push(e)}function Qx(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ih(t)):(n.next=o.next,o.next=n),t.interleaved=n,no(e,r)}function no(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 vo=!1;function Oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xx(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 qr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function To(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,no(e,n)}return o=r.interleaved,o===null?(t.next=t,Ih(r)):(t.next=o.next,o.next=t),r.interleaved=t,no(e,n)}function Dc(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,yh(e,n)}}function Kg(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 au(e,t,n,r){var o=e.updateQueue;vo=!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,g=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(f=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(g,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,f=typeof y=="function"?y.call(g,d,f):y,f==null)break e;d=Ct({},d,f);break e;case 2:vo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else g={eventTime:g,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=d):u=u.next=g,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);hi|=a,e.lanes=a,e.memoizedState=d}}function Gg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=df.transition;df.transition={};try{e(!1),t()}finally{rt=n,df.transition=r}}function pS(){return Zn().memoizedState}function Hk(e,t,n){var r=Io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hS(e))mS(t,n);else if(n=Qx(e,t,n,r),n!==null){var o=cn();pr(n,e,r,o),gS(n,t,r)}}function Yk(e,t,n){var r=Io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hS(e))mS(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,hr(s,a)){var l=t.interleaved;l===null?(o.next=o,Ih(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Qx(e,t,o,r),n!==null&&(o=cn(),pr(n,e,r,o),gS(n,t,r))}}function hS(e){var t=e.alternate;return e===wt||t!==null&&t===wt}function mS(e,t){Ls=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yh(e,n)}}var cu={readContext:qn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},Kk={readContext:qn,useCallback:function(e,t){return Er().memoizedState=[e,t===void 0?null:t],e},useContext:qn,useEffect:Xg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oc(4194308,4,lS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oc(4,2,e,t)},useMemo:function(e,t){var n=Er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Er();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=Hk.bind(null,wt,e),[r.memoizedState,e]},useRef:function(e){var t=Er();return e={current:e},t.memoizedState=e},useState:Qg,useDebugValue:_h,useDeferredValue:function(e){return Er().memoizedState=e},useTransition:function(){var e=Qg(!1),t=e[0];return e=Uk.bind(null,e[1]),Er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wt,o=Er();if(St){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Yt===null)throw Error(he(349));pi&30||eS(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Xg(nS.bind(null,r,i,e),[e]),r.flags|=2048,cl(9,tS.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Er(),t=Yt.identifierPrefix;if(St){var n=Xr,r=Qr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=sl++,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[Dr]=t,e[rl]=r,ES(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xf(n,r),n){case"dialog":pt("cancel",e),pt("close",e),o=r;break;case"iframe":case"object":case"embed":pt("load",e),o=r;break;case"video":case"audio":for(o=0;oba&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=su(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!St)return nn(t),null}else 2*Dt()-i.renderingStartTime>ba&&n!==1073741824&&(t.flags|=128,r=!0,rs(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=Dt(),t.sibling=null,n=bt.current,dt(bt,r?n&1|2:n&1),t):(nn(t),null);case 22:case 23:return Yh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pn&1073741824&&(nn(t),t.subtreeFlags&6&&(t.flags|=8192)):nn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function tP(e,t){switch(Eh(t),t.tag){case 1:return yn(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(),ht(gn),ht(sn),Lh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ah(t),null;case 13:if(ht(bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(bt),null;case 4:return xa(),null;case 10:return Dh(t.type._context),null;case 22:case 23:return Yh(),null;case 24:return null;default:return null}}var cc=!1,on=!1,nP=typeof WeakSet=="function"?WeakSet:Set,be=null;function Zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Rt(e,t,r)}else n.current=null}function Cp(e,t,n){try{n()}catch(r){Rt(e,t,r)}}var sy=!1;function rP(e,t){if(ap=Xc,e=$x(),kh(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 g;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),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sp={focusedElem:e,selectionRange:n},Xc=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:lr(t.type,x),C);p.__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(S){Rt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return y=sy,sy=!1,y}function Ls(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&&Cp(t,n,i)}o=o.next}while(o!==r)}}function Vu(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 kp(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 TS(e){var t=e.alternate;t!==null&&(e.alternate=null,TS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[rl],delete t[up],delete t[Bk],delete t[_k])),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 DS(e){return e.tag===5||e.tag===3||e.tag===4}function ly(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DS(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 Pp(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=Jc));else if(r!==4&&(e=e.child,e!==null))for(Pp(e,t,n),e=e.sibling;e!==null;)Pp(e,t,n),e=e.sibling}function Ep(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(Ep(e,t,n),e=e.sibling;e!==null;)Ep(e,t,n),e=e.sibling}var Xt=null,cr=!1;function po(e,t,n){for(n=n.child;n!==null;)IS(e,t,n),n=n.sibling}function IS(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 5:on||Zi(n,t);case 6:var r=Xt,o=cr;Xt=null,po(e,t,n),Xt=r,cr=o,Xt!==null&&(cr?(e=Xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xt.removeChild(n.stateNode));break;case 18:Xt!==null&&(cr?(e=Xt,n=n.stateNode,e.nodeType===8?lf(e.parentNode,n):e.nodeType===1&&lf(e,n),Zs(e)):lf(Xt,n.stateNode));break;case 4:r=Xt,o=cr,Xt=n.stateNode.containerInfo,cr=!0,po(e,t,n),Xt=r,cr=o;break;case 0:case 11:case 14:case 15:if(!on&&(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)&&Cp(n,t,a),o=o.next}while(o!==r)}po(e,t,n);break;case 1:if(!on&&(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Rt(n,t,s)}po(e,t,n);break;case 21:po(e,t,n);break;case 22:n.mode&1?(on=(r=on)||n.memoizedState!==null,po(e,t,n),on=r):po(e,t,n);break;default:po(e,t,n)}}function cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nP),t.forEach(function(r){var o=fP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ir(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Dt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iP(r/1960))-r,10e?16:e,wo===null)var r=!1;else{if(e=wo,wo=null,fu=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;lDt()-Uh?ai(e,0):Wh|=n),vn(e,t)}function BS(e,t){t===0&&(e.mode&1?(t=ec,ec<<=1,!(ec&130023424)&&(ec=4194304)):t=1);var n=cn();e=no(e,t),e!==null&&(El(e,t,n),vn(e,n))}function dP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),BS(e,n)}function fP(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),BS(e,n)}var _S;_S=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,Jk(e,t,n);mn=!!(e.flags&131072)}else mn=!1,St&&t.flags&1048576&&Ux(t,ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$c(e,t),e=t.pendingProps;var o=ga(t,sn.current);ia(t,n),o=Nh(null,t,r,e,o,n);var i=Fh();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,yn(r)?(i=!0,tu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oh(t),o.updater=zu,t.stateNode=o,o._reactInternals=t,gp(t,r,e,n),t=xp(null,t,r,!0,i,n)):(t.tag=0,St&&i&&Ph(t),ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($c(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hP(r),e=lr(r,e),o){case 0:t=vp(null,t,r,e,n);break e;case 1:t=oy(null,t,r,e,n);break e;case 11:t=ny(null,t,r,e,n);break e;case 14:t=ry(null,t,r,lr(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:lr(r,o),vp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),oy(e,t,r,o,n);case 3:e:{if(CS(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xx(e,t),au(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=Sa(Error(he(423)),t),t=iy(e,t,r,n,o);break e}else if(r!==o){o=Sa(Error(he(424)),t),t=iy(e,t,r,n,o);break e}else for(In=Ro(t.stateNode.containerInfo.firstChild),On=t,St=!0,dr=null,n=Gx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ya(),r===o){t=ro(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return qx(t),e===null&&pp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,lp(r,o)?a=null:i!==null&&lp(r,i)&&(t.flags|=32),wS(e,t),ln(e,t,a,n),t.child;case 6:return e===null&&pp(t),null;case 13:return kS(e,t,n);case 4:return $h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=va(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),ny(e,t,r,o,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(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,dt(ou,r._currentValue),r._currentValue=a,i!==null)if(hr(i.value,a)){if(i.children===o.children&&!gn.current){t=ro(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=qr(-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),hp(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),hp(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}ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ia(t,n),o=qn(o),r=r(o),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,o=lr(r,t.pendingProps),o=lr(r.type,o),ry(e,t,r,o,n);case 15:return SS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),$c(e,t),t.tag=1,yn(r)?(e=!0,tu(t)):e=!1,ia(t,n),yS(t,r,o),gp(t,r,o,n),xp(null,t,r,!0,e,n);case 19:return PS(e,t,n);case 22:return bS(e,t,n)}throw Error(he(156,t.tag))};function zS(e,t){return hx(e,t)}function pP(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 Kn(e,t,n,r){return new pP(e,t,n,r)}function Gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hP(e){if(typeof e=="function")return Gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ph)return 11;if(e===hh)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Kn(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 jc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Gh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Wi:return si(n.children,o,i,t);case fh:a=8,o|=8;break;case _f:return e=Kn(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case zf:return e=Kn(13,n,t,o),e.elementType=zf,e.lanes=i,e;case Vf:return e=Kn(19,n,t,o),e.elementType=Vf,e.lanes=i,e;case q0:return Uu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q0:a=10;break e;case X0:a=9;break e;case ph:a=11;break e;case hh:a=14;break e;case yo:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Kn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function si(e,t,n,r){return e=Kn(7,e,r,t),e.lanes=n,e}function Uu(e,t,n,r){return e=Kn(22,e,r,t),e.elementType=q0,e.lanes=n,e.stateNode={isHidden:!1},e}function gf(e,t,n){return e=Kn(6,e,null,t),e.lanes=n,e}function yf(e,t,n){return t=Kn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mP(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=Xd(0),this.expirationTimes=Xd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qh(e,t,n,r,o,i,a,s,l){return e=new mP(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Kn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(i),e}function gP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HS)}catch(e){console.error(e)}}HS(),H0.exports=Nn;var Qu=H0.exports;const ks=so(Qu),bP=$0({__proto__:null,default:ks},[Qu]);var YS,yy=Qu;YS=yy.createRoot,yy.hydrateRoot;const wP="/timetrekah-frontend/logo.png",ul={black:"#000",white:"#fff"},Oi={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"},$i={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"},Ai={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"},Li={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"},ji={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"},is={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"},CP={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 oo(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 Qn="$$material";function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?qt(_a,--bn):0,wa--,jt===10&&(wa=1,qu--),jt}function $n(){return jt=bn2||fl(jt)>3?"":" "}function _P(e,t){for(;--t&&$n()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Dl(e,Nc()+(t<6&&jr()==32&&$n()==32))}function Op(e){for(;$n();)switch(jt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Op(jt);break;case 40:e===41&&Op(e);break;case 92:$n();break}return bn}function zP(e,t){for(;$n()&&e+jt!==57;)if(e+jt===84&&jr()===47)break;return"/*"+Dl(t,bn-1)+"*"+Xu(e===47?e:$n())}function VP(e){for(;!fl(jr());)$n();return Dl(e,bn)}function WP(e){return JS(Bc("",null,null,null,[""],e=ZS(e),0,[0],e))}function Bc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,y=0,x=1,C=1,p=1,m=0,v="",S=o,P=i,k=r,M=v;C;)switch(y=m,m=$n()){case 40:if(y!=108&&qt(M,d-1)==58){Ip(M+=et(Fc(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:M+=Fc(m);break;case 9:case 10:case 13:case 32:M+=BP(y);break;case 92:M+=_P(Nc()-1,7);continue;case 47:switch(jr()){case 42:case 47:fc(UP(zP($n(),Nc()),t,n),l);break;default:M+="/"}break;case 123*x:s[c++]=Mr(M)*p;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:p==-1&&(M=et(M,/\f/g,"")),g>0&&Mr(M)-d&&fc(g>32?xy(M+";",r,n,d-1):xy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(fc(k=vy(M,t,n,c,u,o,s,v,S=[],P=[],d),i),m===123)if(u===0)Bc(M,t,k,k,S,i,d,s,P);else switch(f===99&&qt(M,3)===110?100:f){case 100:case 108:case 109:case 115:Bc(e,k,k,r&&fc(vy(e,k,k,0,0,o,s,v,o,S=[],d),P),o,P,d,s,r?S:P);break;default:Bc(M,k,k,k,[""],P,0,s,P)}}c=u=g=0,x=p=1,v=M="",d=a;break;case 58:d=1+Mr(M),g=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&FP()==125)continue}switch(M+=Xu(m),m*x){case 38:p=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Mr(M)-1)*p,p=1;break;case 64:jr()===45&&(M+=Fc($n())),f=jr(),u=d=Mr(v=M+=VP(Nc())),m++;break;case 45:y===45&&Mr(M)==2&&(x=0)}}return i}function vy(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],g=tm(f),y=0,x=0,C=0;y0?f[p]+" "+m:et(m,/&\f/g,f[p])))&&(l[C++]=v);return Zu(e,t,n,o===0?Jh:s,l,c,u)}function UP(e,t,n){return Zu(e,t,n,GS,Xu(NP()),dl(e,2,-2),0)}function xy(e,t,n,r){return Zu(e,t,n,em,dl(e,0,r),dl(e,r+1,-1),r)}function sa(e,t){for(var n="",r=tm(e),o=0;o6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+mu+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?eb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,Mr(e)-3-(~Ip(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(qt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+rn+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+rn+e+e}return e}var JP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case em:t.return=eb(t.value,t.length);break;case QS:return sa([as(t,{value:et(t.value,"@","@"+Je)})],o);case Jh:if(t.length)return jP(t.props,function(i){switch(LP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sa([as(t,{props:[et(i,/:(read-\w+)/,":"+mu+"$1")]})],o);case"::placeholder":return sa([as(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),as(t,{props:[et(i,/:(plac\w+)/,":"+mu+"$1")]}),as(t,{props:[et(i,/:(plac\w+)/,rn+"input-$1")]})],o)}return""})}},eE=[JP],tE=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(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||eE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),p=1;p<\/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[Dr]=t,e[ol]=r,ES(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xf(n,r),n){case"dialog":pt("cancel",e),pt("close",e),o=r;break;case"iframe":case"object":case"embed":pt("load",e),o=r;break;case"video":case"audio":for(o=0;oba&&(t.flags|=128,r=!0,os(i,!1),t.lanes=4194304)}else{if(!r)if(e=su(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),os(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!St)return nn(t),null}else 2*Dt()-i.renderingStartTime>ba&&n!==1073741824&&(t.flags|=128,r=!0,os(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=Dt(),t.sibling=null,n=bt.current,dt(bt,r?n&1|2:n&1),t):(nn(t),null);case 22:case 23:return Yh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pn&1073741824&&(nn(t),t.subtreeFlags&6&&(t.flags|=8192)):nn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function tP(e,t){switch(Eh(t),t.tag){case 1:return yn(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(),ht(gn),ht(sn),Lh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ah(t),null;case 13:if(ht(bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(bt),null;case 4:return xa(),null;case 10:return Dh(t.type._context),null;case 22:case 23:return Yh(),null;case 24:return null;default:return null}}var cc=!1,on=!1,nP=typeof WeakSet=="function"?WeakSet:Set,be=null;function Zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Rt(e,t,r)}else n.current=null}function Cp(e,t,n){try{n()}catch(r){Rt(e,t,r)}}var sy=!1;function rP(e,t){if(ap=Xc,e=$x(),kh(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 g;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),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sp={focusedElem:e,selectionRange:n},Xc=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:lr(t.type,x),C);p.__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(S){Rt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return y=sy,sy=!1,y}function js(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&&Cp(t,n,i)}o=o.next}while(o!==r)}}function Vu(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 kp(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 TS(e){var t=e.alternate;t!==null&&(e.alternate=null,TS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[ol],delete t[up],delete t[Bk],delete t[_k])),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 DS(e){return e.tag===5||e.tag===3||e.tag===4}function ly(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||DS(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 Pp(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=Jc));else if(r!==4&&(e=e.child,e!==null))for(Pp(e,t,n),e=e.sibling;e!==null;)Pp(e,t,n),e=e.sibling}function Ep(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(Ep(e,t,n),e=e.sibling;e!==null;)Ep(e,t,n),e=e.sibling}var Xt=null,cr=!1;function po(e,t,n){for(n=n.child;n!==null;)IS(e,t,n),n=n.sibling}function IS(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 5:on||Zi(n,t);case 6:var r=Xt,o=cr;Xt=null,po(e,t,n),Xt=r,cr=o,Xt!==null&&(cr?(e=Xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xt.removeChild(n.stateNode));break;case 18:Xt!==null&&(cr?(e=Xt,n=n.stateNode,e.nodeType===8?lf(e.parentNode,n):e.nodeType===1&&lf(e,n),Js(e)):lf(Xt,n.stateNode));break;case 4:r=Xt,o=cr,Xt=n.stateNode.containerInfo,cr=!0,po(e,t,n),Xt=r,cr=o;break;case 0:case 11:case 14:case 15:if(!on&&(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)&&Cp(n,t,a),o=o.next}while(o!==r)}po(e,t,n);break;case 1:if(!on&&(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Rt(n,t,s)}po(e,t,n);break;case 21:po(e,t,n);break;case 22:n.mode&1?(on=(r=on)||n.memoizedState!==null,po(e,t,n),on=r):po(e,t,n);break;default:po(e,t,n)}}function cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nP),t.forEach(function(r){var o=fP.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ir(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Dt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iP(r/1960))-r,10e?16:e,wo===null)var r=!1;else{if(e=wo,wo=null,fu=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;lDt()-Uh?ai(e,0):Wh|=n),vn(e,t)}function BS(e,t){t===0&&(e.mode&1?(t=ec,ec<<=1,!(ec&130023424)&&(ec=4194304)):t=1);var n=cn();e=no(e,t),e!==null&&(Ml(e,t,n),vn(e,n))}function dP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),BS(e,n)}function fP(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),BS(e,n)}var _S;_S=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mn=!1,Jk(e,t,n);mn=!!(e.flags&131072)}else mn=!1,St&&t.flags&1048576&&Ux(t,ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$c(e,t),e=t.pendingProps;var o=ga(t,sn.current);ia(t,n),o=Nh(null,t,r,e,o,n);var i=Fh();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,yn(r)?(i=!0,tu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oh(t),o.updater=zu,t.stateNode=o,o._reactInternals=t,gp(t,r,e,n),t=xp(null,t,r,!0,i,n)):(t.tag=0,St&&i&&Ph(t),ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($c(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hP(r),e=lr(r,e),o){case 0:t=vp(null,t,r,e,n);break e;case 1:t=oy(null,t,r,e,n);break e;case 11:t=ny(null,t,r,e,n);break e;case 14:t=ry(null,t,r,lr(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:lr(r,o),vp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),oy(e,t,r,o,n);case 3:e:{if(CS(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xx(e,t),au(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=Sa(Error(he(423)),t),t=iy(e,t,r,n,o);break e}else if(r!==o){o=Sa(Error(he(424)),t),t=iy(e,t,r,n,o);break e}else for(In=Ro(t.stateNode.containerInfo.firstChild),On=t,St=!0,dr=null,n=Gx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ya(),r===o){t=ro(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return qx(t),e===null&&pp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,lp(r,o)?a=null:i!==null&&lp(r,i)&&(t.flags|=32),wS(e,t),ln(e,t,a,n),t.child;case 6:return e===null&&pp(t),null;case 13:return kS(e,t,n);case 4:return $h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=va(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),ny(e,t,r,o,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(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,dt(ou,r._currentValue),r._currentValue=a,i!==null)if(hr(i.value,a)){if(i.children===o.children&&!gn.current){t=ro(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=qr(-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),hp(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),hp(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}ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ia(t,n),o=qn(o),r=r(o),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,o=lr(r,t.pendingProps),o=lr(r.type,o),ry(e,t,r,o,n);case 15:return SS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lr(r,o),$c(e,t),t.tag=1,yn(r)?(e=!0,tu(t)):e=!1,ia(t,n),yS(t,r,o),gp(t,r,o,n),xp(null,t,r,!0,e,n);case 19:return PS(e,t,n);case 22:return bS(e,t,n)}throw Error(he(156,t.tag))};function zS(e,t){return hx(e,t)}function pP(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 Kn(e,t,n,r){return new pP(e,t,n,r)}function Gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hP(e){if(typeof e=="function")return Gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ph)return 11;if(e===hh)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Kn(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 jc(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Gh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Wi:return si(n.children,o,i,t);case fh:a=8,o|=8;break;case _f:return e=Kn(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case zf:return e=Kn(13,n,t,o),e.elementType=zf,e.lanes=i,e;case Vf:return e=Kn(19,n,t,o),e.elementType=Vf,e.lanes=i,e;case q0:return Uu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q0:a=10;break e;case X0:a=9;break e;case ph:a=11;break e;case hh:a=14;break e;case yo:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Kn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function si(e,t,n,r){return e=Kn(7,e,r,t),e.lanes=n,e}function Uu(e,t,n,r){return e=Kn(22,e,r,t),e.elementType=q0,e.lanes=n,e.stateNode={isHidden:!1},e}function gf(e,t,n){return e=Kn(6,e,null,t),e.lanes=n,e}function yf(e,t,n){return t=Kn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mP(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=Xd(0),this.expirationTimes=Xd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qh(e,t,n,r,o,i,a,s,l){return e=new mP(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Kn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(i),e}function gP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HS)}catch(e){console.error(e)}}HS(),H0.exports=Nn;var Qu=H0.exports;const Ps=so(Qu),bP=$0({__proto__:null,default:Ps},[Qu]);var YS,yy=Qu;YS=yy.createRoot,yy.hydrateRoot;const wP="/timetrekah-frontend/logo.png",dl={black:"#000",white:"#fff"},Oi={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"},$i={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"},Ai={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"},Li={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"},ji={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"},as={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"},CP={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 oo(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 Qn="$$material";function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?qt(_a,--bn):0,wa--,jt===10&&(wa=1,qu--),jt}function $n(){return jt=bn2||pl(jt)>3?"":" "}function _P(e,t){for(;--t&&$n()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Il(e,Nc()+(t<6&&jr()==32&&$n()==32))}function Op(e){for(;$n();)switch(jt){case e:return bn;case 34:case 39:e!==34&&e!==39&&Op(jt);break;case 40:e===41&&Op(e);break;case 92:$n();break}return bn}function zP(e,t){for(;$n()&&e+jt!==57;)if(e+jt===84&&jr()===47)break;return"/*"+Il(t,bn-1)+"*"+Xu(e===47?e:$n())}function VP(e){for(;!pl(jr());)$n();return Il(e,bn)}function WP(e){return JS(Bc("",null,null,null,[""],e=ZS(e),0,[0],e))}function Bc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,y=0,x=1,C=1,p=1,m=0,v="",S=o,P=i,k=r,M=v;C;)switch(y=m,m=$n()){case 40:if(y!=108&&qt(M,d-1)==58){Ip(M+=et(Fc(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:M+=Fc(m);break;case 9:case 10:case 13:case 32:M+=BP(y);break;case 92:M+=_P(Nc()-1,7);continue;case 47:switch(jr()){case 42:case 47:fc(UP(zP($n(),Nc()),t,n),l);break;default:M+="/"}break;case 123*x:s[c++]=Mr(M)*p;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:p==-1&&(M=et(M,/\f/g,"")),g>0&&Mr(M)-d&&fc(g>32?xy(M+";",r,n,d-1):xy(et(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(fc(k=vy(M,t,n,c,u,o,s,v,S=[],P=[],d),i),m===123)if(u===0)Bc(M,t,k,k,S,i,d,s,P);else switch(f===99&&qt(M,3)===110?100:f){case 100:case 108:case 109:case 115:Bc(e,k,k,r&&fc(vy(e,k,k,0,0,o,s,v,o,S=[],d),P),o,P,d,s,r?S:P);break;default:Bc(M,k,k,k,[""],P,0,s,P)}}c=u=g=0,x=p=1,v=M="",d=a;break;case 58:d=1+Mr(M),g=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&FP()==125)continue}switch(M+=Xu(m),m*x){case 38:p=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Mr(M)-1)*p,p=1;break;case 64:jr()===45&&(M+=Fc($n())),f=jr(),u=d=Mr(v=M+=VP(Nc())),m++;break;case 45:y===45&&Mr(M)==2&&(x=0)}}return i}function vy(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],g=tm(f),y=0,x=0,C=0;y0?f[p]+" "+m:et(m,/&\f/g,f[p])))&&(l[C++]=v);return Zu(e,t,n,o===0?Jh:s,l,c,u)}function UP(e,t,n){return Zu(e,t,n,GS,Xu(NP()),fl(e,2,-2),0)}function xy(e,t,n,r){return Zu(e,t,n,em,fl(e,0,r),fl(e,r+1,-1),r)}function sa(e,t){for(var n="",r=tm(e),o=0;o6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+mu+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ip(e,"stretch")?eb(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,Mr(e)-3-(~Ip(e,"!important")&&10))){case 107:return et(e,":",":"+Je)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(qt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+rn+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+rn+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+rn+e+e}return e}var JP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case em:t.return=eb(t.value,t.length);break;case QS:return sa([ss(t,{value:et(t.value,"@","@"+Je)})],o);case Jh:if(t.length)return jP(t.props,function(i){switch(LP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sa([ss(t,{props:[et(i,/:(read-\w+)/,":"+mu+"$1")]})],o);case"::placeholder":return sa([ss(t,{props:[et(i,/:(plac\w+)/,":"+Je+"input-$1")]}),ss(t,{props:[et(i,/:(plac\w+)/,":"+mu+"$1")]}),ss(t,{props:[et(i,/:(plac\w+)/,rn+"input-$1")]})],o)}return""})}},eE=[JP],tE=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(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||eE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),p=1;p=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 pE={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},hE=!1,mE=/[A-Z]|^ms/g,gE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sb=function(t){return t.charCodeAt(1)===45},by=function(t){return t!=null&&typeof t!="boolean"},vf=KS(function(e){return sb(e)?e:e.replace(mE,"-$&").toLowerCase()}),wy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gE,function(r,o,i){return Rr={name:o,styles:i,next:Rr},o})}return pE[t]!==1&&!sb(t)&&typeof n=="number"&&n!==0?n+"px":n},yE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pl(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 Rr={name:o.name,styles:o.styles,next:Rr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=i.styles+";";return s}return vE(e,t,n)}case"function":{if(e!==void 0){var l=Rr,c=n(e);return Rr=l,pl(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function vE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?wE:CE},Ey=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},kE=!1,PE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ib(n,r,o),SE(function(){return ab(n,r,o)}),null},EE=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=Ey(t,n,r),l=s||Py(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,g=1;gt($E(o)?n:o):t;return w.jsx(bE,{styles:r})}/** + */var Gt=typeof Symbol=="function"&&Symbol.for,nm=Gt?Symbol.for("react.element"):60103,rm=Gt?Symbol.for("react.portal"):60106,Ju=Gt?Symbol.for("react.fragment"):60107,ed=Gt?Symbol.for("react.strict_mode"):60108,td=Gt?Symbol.for("react.profiler"):60114,nd=Gt?Symbol.for("react.provider"):60109,rd=Gt?Symbol.for("react.context"):60110,om=Gt?Symbol.for("react.async_mode"):60111,od=Gt?Symbol.for("react.concurrent_mode"):60111,id=Gt?Symbol.for("react.forward_ref"):60112,ad=Gt?Symbol.for("react.suspense"):60113,nE=Gt?Symbol.for("react.suspense_list"):60120,sd=Gt?Symbol.for("react.memo"):60115,ld=Gt?Symbol.for("react.lazy"):60116,rE=Gt?Symbol.for("react.block"):60121,oE=Gt?Symbol.for("react.fundamental"):60117,iE=Gt?Symbol.for("react.responder"):60118,aE=Gt?Symbol.for("react.scope"):60119;function Bn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nm:switch(e=e.type,e){case om:case od:case Ju:case td:case ed:case ad:return e;default:switch(e=e&&e.$$typeof,e){case rd:case id:case ld:case sd:case nd:return e;default:return t}}case rm:return t}}}function nb(e){return Bn(e)===od}ot.AsyncMode=om;ot.ConcurrentMode=od;ot.ContextConsumer=rd;ot.ContextProvider=nd;ot.Element=nm;ot.ForwardRef=id;ot.Fragment=Ju;ot.Lazy=ld;ot.Memo=sd;ot.Portal=rm;ot.Profiler=td;ot.StrictMode=ed;ot.Suspense=ad;ot.isAsyncMode=function(e){return nb(e)||Bn(e)===om};ot.isConcurrentMode=nb;ot.isContextConsumer=function(e){return Bn(e)===rd};ot.isContextProvider=function(e){return Bn(e)===nd};ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nm};ot.isForwardRef=function(e){return Bn(e)===id};ot.isFragment=function(e){return Bn(e)===Ju};ot.isLazy=function(e){return Bn(e)===ld};ot.isMemo=function(e){return Bn(e)===sd};ot.isPortal=function(e){return Bn(e)===rm};ot.isProfiler=function(e){return Bn(e)===td};ot.isStrictMode=function(e){return Bn(e)===ed};ot.isSuspense=function(e){return Bn(e)===ad};ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ju||e===od||e===td||e===ed||e===ad||e===nE||typeof e=="object"&&e!==null&&(e.$$typeof===ld||e.$$typeof===sd||e.$$typeof===nd||e.$$typeof===rd||e.$$typeof===id||e.$$typeof===oE||e.$$typeof===iE||e.$$typeof===aE||e.$$typeof===rE)};ot.typeOf=Bn;tb.exports=ot;var sE=tb.exports,rb=sE,lE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ob={};ob[rb.ForwardRef]=lE;ob[rb.Memo]=cE;var uE=!0;function dE(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ib=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||uE===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ab=function(t,n,r){ib(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 fE(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 pE={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},hE=!1,mE=/[A-Z]|^ms/g,gE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sb=function(t){return t.charCodeAt(1)===45},by=function(t){return t!=null&&typeof t!="boolean"},vf=KS(function(e){return sb(e)?e:e.replace(mE,"-$&").toLowerCase()}),wy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gE,function(r,o,i){return Rr={name:o,styles:i,next:Rr},o})}return pE[t]!==1&&!sb(t)&&typeof n=="number"&&n!==0?n+"px":n},yE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hl(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 Rr={name:o.name,styles:o.styles,next:Rr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=i.styles+";";return s}return vE(e,t,n)}case"function":{if(e!==void 0){var l=Rr,c=n(e);return Rr=l,hl(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function vE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?wE:CE},Ey=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},kE=!1,PE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ib(n,r,o),SE(function(){return ab(n,r,o)}),null},EE=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=Ey(t,n,r),l=s||Py(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,g=1;gt($E(o)?n:o):t;return w.jsx(bE,{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 mb(e,t){return $p(e,t)}function AE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const My=[];function Ry(e){return My[0]=e,cd(My)}function Ir(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 gb(e){if(h.isValidElement(e)||!Ir(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gb(e[n])}),t}function Kt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ir(e)&&Ir(t)&&Object.keys(t).forEach(o=>{h.isValidElement(t[o])?r[o]=t[o]:Ir(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ir(e[o])?r[o]=Kt(e[o],t[o],n):n.clone?r[o]=Ir(t[o])?gb(t[o]):t[o]:r[o]=t[o]}),r}const LE=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 jE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=LE(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,g){const y=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:g)-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 FE(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function BE(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 _E(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 zE={borderRadius:4};function Fs(e,t){return t?Kt(e,t,{clone:!1}):e}const dd={xs:0,sm:600,md:900,lg:1200,xl:1536},Ty={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dd[e]}px)`},VE={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:dd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function mr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ty;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Ty;return Object.keys(t).reduce((a,s)=>{if(FE(i.keys,s)){const l=BE(r.containerQueries?r:VE,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||dd).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 yb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function WE(e,...t){const n=yb(e),r=[n,...t].reduce((o,i)=>Kt(o,i),{});return vb(Object.keys(n),r)}function UE(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 xf({values:e,breakpoints:t,base:n}){const r=n||UE(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 le(e){if(typeof e!="string")throw new Error(oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ca(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 gu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ca(e,n)||r,t&&(o=t(o,r,e)),o}function Ot(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=Ca(l,r)||{};return mr(a,s,d=>{let f=gu(c,o,d);return d===f&&typeof d=="string"&&(f=gu(c,o,`${t}${d==="default"?"":le(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function HE(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const YE={m:"margin",p:"padding"},KE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GE=HE(e=>{if(e.length>2)if(Dy[e])e=Dy[e];else return[e];const[t,n]=e.split(""),r=YE[t],o=KE[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),am=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...am,...sm];function Ol(e,t,n,r){const o=Ca(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 fd(e){return Ol(e,"spacing",8)}function gi(e,t){return typeof t=="string"||t==null?t:e(t)}function QE(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function XE(e,t,n,r){if(!t.includes(n))return null;const o=GE(n),i=QE(o,r),a=e[n];return mr(e,a,i)}function xb(e,t){const n=fd(e.theme);return Object.keys(e).map(r=>XE(e,t,r,n)).reduce(Fs,{})}function Et(e){return xb(e,am)}Et.propTypes={};Et.filterProps=am;function Mt(e){return xb(e,sm)}Mt.propTypes={};Mt.filterProps=sm;function Sb(e=8,t=fd({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 pd(...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]?Fs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Yn(e){return typeof e!="number"?e:`${e}px solid`}function nr(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const qE=nr("border",Yn),ZE=nr("borderTop",Yn),JE=nr("borderRight",Yn),eM=nr("borderBottom",Yn),tM=nr("borderLeft",Yn),nM=nr("borderColor"),rM=nr("borderTopColor"),oM=nr("borderRightColor"),iM=nr("borderBottomColor"),aM=nr("borderLeftColor"),sM=nr("outline",Yn),lM=nr("outlineColor"),hd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ol(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return mr(e,e.borderRadius,n)}return null};hd.propTypes={};hd.filterProps=["borderRadius"];pd(qE,ZE,JE,eM,tM,nM,rM,oM,iM,aM,hd,sM,lM);const md=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return mr(e,e.gap,n)}return null};md.propTypes={};md.filterProps=["gap"];const gd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return mr(e,e.columnGap,n)}return null};gd.propTypes={};gd.filterProps=["columnGap"];const yd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ol(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return mr(e,e.rowGap,n)}return null};yd.propTypes={};yd.filterProps=["rowGap"];const cM=Ot({prop:"gridColumn"}),uM=Ot({prop:"gridRow"}),dM=Ot({prop:"gridAutoFlow"}),fM=Ot({prop:"gridAutoColumns"}),pM=Ot({prop:"gridAutoRows"}),hM=Ot({prop:"gridTemplateColumns"}),mM=Ot({prop:"gridTemplateRows"}),gM=Ot({prop:"gridTemplateAreas"}),yM=Ot({prop:"gridArea"});pd(md,gd,yd,cM,uM,dM,fM,pM,hM,mM,gM,yM);function la(e,t){return t==="grey"?t:e}const vM=Ot({prop:"color",themeKey:"palette",transform:la}),xM=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:la}),SM=Ot({prop:"backgroundColor",themeKey:"palette",transform:la});pd(vM,xM,SM);function Rn(e){return e<=1&&e!==0?`${e*100}%`:e}const bM=Ot({prop:"width",transform:Rn}),lm=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])||dd[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:Rn(n)}};return mr(e,e.maxWidth,t)}return null};lm.filterProps=["maxWidth"];const wM=Ot({prop:"minWidth",transform:Rn}),CM=Ot({prop:"height",transform:Rn}),kM=Ot({prop:"maxHeight",transform:Rn}),PM=Ot({prop:"minHeight",transform:Rn});Ot({prop:"size",cssProperty:"width",transform:Rn});Ot({prop:"size",cssProperty:"height",transform:Rn});const EM=Ot({prop:"boxSizing"});pd(bM,lm,wM,CM,kM,PM,EM);const $l={border:{themeKey:"borders",transform:Yn},borderTop:{themeKey:"borders",transform:Yn},borderRight:{themeKey:"borders",transform:Yn},borderBottom:{themeKey:"borders",transform:Yn},borderLeft:{themeKey:"borders",transform:Yn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hd},color:{themeKey:"palette",transform:la},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:la},backgroundColor:{themeKey:"palette",transform:la},p:{style:Mt},pt:{style:Mt},pr:{style:Mt},pb:{style:Mt},pl:{style:Mt},px:{style:Mt},py:{style:Mt},padding:{style:Mt},paddingTop:{style:Mt},paddingRight:{style:Mt},paddingBottom:{style:Mt},paddingLeft:{style:Mt},paddingX:{style:Mt},paddingY:{style:Mt},paddingInline:{style:Mt},paddingInlineStart:{style:Mt},paddingInlineEnd:{style:Mt},paddingBlock:{style:Mt},paddingBlockStart:{style:Mt},paddingBlockEnd:{style:Mt},m:{style:Et},mt:{style:Et},mr:{style:Et},mb:{style:Et},ml:{style:Et},mx:{style:Et},my:{style:Et},margin:{style:Et},marginTop:{style:Et},marginRight:{style:Et},marginBottom:{style:Et},marginLeft:{style:Et},marginX:{style:Et},marginY:{style:Et},marginInline:{style:Et},marginInlineStart:{style:Et},marginInlineEnd:{style:Et},marginBlock:{style:Et},marginBlockStart:{style:Et},marginBlockEnd:{style:Et},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:md},rowGap:{style:yd},columnGap:{style:gd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rn},maxWidth:{style:lm},minWidth:{transform:Rn},height:{transform:Rn},maxHeight:{transform:Rn},minHeight:{transform:Rn},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 MM(...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 RM(e,t){return typeof e=="function"?e(t):e}function TM(){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=Ca(o,c)||{};return d?d(a):mr(a,r,y=>{let x=gu(f,u,y);return y===x&&typeof y=="string"&&(x=gu(f,u,`${n}${y==="default"?"":le(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??$l;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=yb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const g=RM(l[f],o);if(g!=null)if(typeof g=="object")if(i[f])d=Fs(d,e(f,g,o,i));else{const y=mr({theme:o},g,x=>({[f]:x}));MM(y,g)?d[f]=t({sx:g,theme:o}):d=Fs(d,y)}else d=Fs(d,e(f,g,o,i))}),NE(o,vb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const jo=TM();jo.filterProps=["sx"];function DM(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 za(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=jE(n),l=Sb(o);let c=Kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...zE,...i}},a);return c=_E(c),c.applyStyles=DM,c=t.reduce((u,d)=>Kt(u,d),c),c.unstable_sxConfig={...$l,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return jo({sx:d,theme:this})},c}function IM(e){return Object.keys(e).length===0}function cm(e=null){const t=h.useContext(ud);return!t||IM(t)?e:t}const OM=za();function Al(e=OM){return cm(e)}function $M({styles:e,themeId:t,defaultTheme:n={}}){const r=Al(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(hb,{styles:o})}const AM=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??$l;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function vd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=AM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ir(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const Iy=e=>e,LM=()=>{let e=Iy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Iy}}},bb=LM();function wb(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"})(jo);return h.forwardRef(function(l,c){const u=Al(n),{className:d,component:f="div",...g}=vd(l);return w.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...g})})}const NM={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 ye(e,t,n="Mui"){const r=NM[t];return r?`${n}-${r}`:`${bb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ye(e,o,n)}),r}function Cb(e){const{variants:t,...n}=e,r={variants:t,style:Ry(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ry(o.style))}),r}const FM=za();function _c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function BM(e){return e?(t,n)=>n[e]:null}function _M(e,t,n){e.theme=VM(e.theme)?n:e.theme[t]||e.theme}function zc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>zc(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 kb(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function kb(e,t,n=[]){var o;let r;e:for(let i=0;i{AE(s,P=>P.filter(k=>k!==jo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:g=BM(UM(u)),...y}=l,x=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let p=_c;u==="Root"||u==="root"?p=r:u?p=o:WM(s)&&(p=void 0);const m=mb(s,{shouldForwardProp:p,label:zM(),...y}),v=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(M){return zc(M,P)};if(Ir(P)){const k=Cb(P);return k.variants?function(E){return zc(E,k)}:k.style}return P},S=(...P)=>{const k=[],M=P.map(v),E=[];if(k.push(i),c&&g&&E.push(function(A){var T,N;const O=(N=(T=A.theme.components)==null?void 0:T[c])==null?void 0:N.styleOverrides;if(!O)return null;const I={};for(const D in O)I[D]=zc(A,O[D]);return g(A,I)}),c&&!x&&E.push(function(A){var I,T;const j=A.theme,O=(T=(I=j==null?void 0:j.components)==null?void 0:I[c])==null?void 0:T.variants;return O?kb(A,O):null}),C||E.push(jo),Array.isArray(M[0])){const R=M.shift(),A=new Array(k.length).fill(""),j=new Array(E.length).fill("");let O;O=[...A,...R,...j],O.raw=[...A,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...E],b=m(...$);return s.muiName&&(b.muiName=s.muiName),b};return m.withConfig&&(S.withConfig=m.withConfig),S}}function zM(e,t){return void 0}function VM(e){for(const t in e)return!1;return!0}function WM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function UM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const um=Pb();function hl(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]=hl(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Eb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:hl(t.components[n].defaultProps,r)}function xd({props:e,name:t,defaultTheme:n,themeId:r}){let o=Al(n);return r&&(o=o[r]||o),Eb({theme:o,name:t,props:e})}const Vt=typeof window<"u"?h.useLayoutEffect:h.useEffect;function HM(e,t,n,r,o){const[i,a]=h.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Vt(()=>{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 YM={...Ys},Mb=YM.useSyncExternalStore;function KM(e,t,n,r,o){const i=h.useCallback(()=>t,[t]),a=h.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]=h.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 Mb(l,s,a)}function GM(e={}){const{themeId:t}=e;return function(r,o={}){let i=cm();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}=Eb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(Mb!==void 0?KM:HM)(d,s,l,c,u)}}function QM(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function dm(e,t=0,n=1){return QM(e,t,n)}function XM(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 No(e){if(e.type)return e;if(e.charAt(0)==="#")return No(XM(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(oo(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(oo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const qM=e=>{const t=No(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ps=(e,t)=>{try{return qM(e)}catch{return e}};function Sd(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 Rb(e){e=No(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])),Sd({type:s,values:l})}function Ap(e){e=No(e);let t=e.type==="hsl"||e.type==="hsla"?No(Rb(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 ZM(e,t){const n=Ap(e),r=Ap(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Be(e,t){return e=No(e),t=dm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sd(e)}function pc(e,t,n){try{return Be(e,t)}catch{return e}}function ka(e,t){if(e=No(e),t=dm(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 Sd(e)}function st(e,t,n){try{return ka(e,t)}catch{return e}}function Pa(e,t){if(e=No(e),t=dm(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 Sd(e)}function lt(e,t,n){try{return Pa(e,t)}catch{return e}}function Tb(e,t=.15){return Ap(e)>.5?ka(e,t):Pa(e,t)}function hc(e,t,n){try{return Tb(e,t)}catch{return e}}const Db=q.oneOfType([q.func,q.object]);function Oy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function fm(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 Bs(e,t){var n,r,o;return h.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 zt(e){return e&&e.ownerDocument||document}function gr(e){return zt(e).defaultView||window}function Lp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $y=0;function JM(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{t==null&&($y+=1,n(`mui-${$y}`))},[t]),r}const eR={...Ys},Ay=eR.useId;function zo(e){if(Ay!==void 0){const t=Ay();return e??t}return JM(e)}function io({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,a]=h.useState(t),s=o?e:i,l=h.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=h.useRef(e);return Vt(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function He(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Lp(n,t)})},e)}const Ly={};function Ib(e,t){const n=h.useRef(Ly);return n.current===Ly&&(n.current=e(t)),n}const tR=[];function nR(e){h.useEffect(e,tR)}class pm{constructor(){Xa(this,"currentId",null);Xa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xa(this,"disposeEffect",()=>this.clear)}static create(){return new pm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hm(){const e=Ib(pm.create).current;return nR(e.disposeEffect),e}function yu(e){try{return e.matches(":focus-visible")}catch{}return!1}function Ob(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const rR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ve(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 jy(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 Ab(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},x={...n,...o,...r};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=vu({...o,...r}),s=jy(r),l=jy(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 bd(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?{}:bd(n,r),{props:s,internalRef:l}=Ab({...i,externalSlotProps:a}),c=He(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return $b(t,{...s,ref:c},r)}function ki(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Lb=h.createContext(null);function mm(){return h.useContext(Lb)}const iR=typeof Symbol=="function"&&Symbol.for,aR=iR?Symbol.for("mui.nested"):"__THEME_NESTED__";function sR(e,t){return typeof t=="function"?t(e):{...e,...t}}function lR(e){const{children:t,theme:n}=e,r=mm(),o=h.useMemo(()=>{const i=r===null?{...n}:sR(r,n);return i!=null&&(i[aR]=r!==null),i},[n,r]);return w.jsx(Lb.Provider,{value:o,children:t})}const jb=h.createContext();function cR({value:e,...t}){return w.jsx(jb.Provider,{value:e??!0,...t})}const rr=()=>h.useContext(jb)??!1,Nb=h.createContext(void 0);function uR({value:e,children:t}){return w.jsx(Nb.Provider,{value:e,children:t})}function dR(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?hl(o.defaultProps,r):!o.styleOverrides&&!o.variants?hl(o,r):r}function fR({props:e,name:t}){const n=h.useContext(Nb);return dR({props:e,name:t,theme:{components:n}})}const Ny={};function Fy(e,t,n,r=!1){return h.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 Fb(e){const{children:t,theme:n,themeId:r}=e,o=cm(Ny),i=mm()||Ny,a=Fy(r,o,n),s=Fy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return w.jsx(lR,{theme:s,children:w.jsx(ud.Provider,{value:a,children:w.jsx(cR,{value:l,children:w.jsx(uR,{value:r?a[r].components:a.components,children:t})})})})}const By={theme:void 0};function pR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(By.theme=o.theme,i=Cb(e(By)),t=i,n=o.theme),i}}const gm="mode",ym="color-scheme",hR="data-color-scheme";function mR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=gm,colorSchemeStorageKey:i=ym,attribute:a=hR,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 mb(e,t){return $p(e,t)}function AE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const My=[];function Ry(e){return My[0]=e,cd(My)}function Ir(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 gb(e){if(h.isValidElement(e)||!Ir(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gb(e[n])}),t}function Kt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ir(e)&&Ir(t)&&Object.keys(t).forEach(o=>{h.isValidElement(t[o])?r[o]=t[o]:Ir(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ir(e[o])?r[o]=Kt(e[o],t[o],n):n.clone?r[o]=Ir(t[o])?gb(t[o]):t[o]:r[o]=t[o]}),r}const LE=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 jE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=LE(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,g){const y=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:g)-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 FE(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function BE(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 _E(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 zE={borderRadius:4};function Bs(e,t){return t?Kt(e,t,{clone:!1}):e}const dd={xs:0,sm:600,md:900,lg:1200,xl:1536},Ty={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dd[e]}px)`},VE={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:dd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function mr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ty;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Ty;return Object.keys(t).reduce((a,s)=>{if(FE(i.keys,s)){const l=BE(r.containerQueries?r:VE,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||dd).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 yb(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function WE(e,...t){const n=yb(e),r=[n,...t].reduce((o,i)=>Kt(o,i),{});return vb(Object.keys(n),r)}function UE(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 xf({values:e,breakpoints:t,base:n}){const r=n||UE(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 le(e){if(typeof e!="string")throw new Error(oo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ca(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 gu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ca(e,n)||r,t&&(o=t(o,r,e)),o}function Ot(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=Ca(l,r)||{};return mr(a,s,d=>{let f=gu(c,o,d);return d===f&&typeof d=="string"&&(f=gu(c,o,`${t}${d==="default"?"":le(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function HE(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const YE={m:"margin",p:"padding"},KE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GE=HE(e=>{if(e.length>2)if(Dy[e])e=Dy[e];else return[e];const[t,n]=e.split(""),r=YE[t],o=KE[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),am=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...am,...sm];function $l(e,t,n,r){const o=Ca(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 fd(e){return $l(e,"spacing",8)}function gi(e,t){return typeof t=="string"||t==null?t:e(t)}function QE(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function XE(e,t,n,r){if(!t.includes(n))return null;const o=GE(n),i=QE(o,r),a=e[n];return mr(e,a,i)}function xb(e,t){const n=fd(e.theme);return Object.keys(e).map(r=>XE(e,t,r,n)).reduce(Bs,{})}function Et(e){return xb(e,am)}Et.propTypes={};Et.filterProps=am;function Mt(e){return xb(e,sm)}Mt.propTypes={};Mt.filterProps=sm;function Sb(e=8,t=fd({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 pd(...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]?Bs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Yn(e){return typeof e!="number"?e:`${e}px solid`}function nr(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const qE=nr("border",Yn),ZE=nr("borderTop",Yn),JE=nr("borderRight",Yn),eM=nr("borderBottom",Yn),tM=nr("borderLeft",Yn),nM=nr("borderColor"),rM=nr("borderTopColor"),oM=nr("borderRightColor"),iM=nr("borderBottomColor"),aM=nr("borderLeftColor"),sM=nr("outline",Yn),lM=nr("outlineColor"),hd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$l(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return mr(e,e.borderRadius,n)}return null};hd.propTypes={};hd.filterProps=["borderRadius"];pd(qE,ZE,JE,eM,tM,nM,rM,oM,iM,aM,hd,sM,lM);const md=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$l(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return mr(e,e.gap,n)}return null};md.propTypes={};md.filterProps=["gap"];const gd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$l(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return mr(e,e.columnGap,n)}return null};gd.propTypes={};gd.filterProps=["columnGap"];const yd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$l(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return mr(e,e.rowGap,n)}return null};yd.propTypes={};yd.filterProps=["rowGap"];const cM=Ot({prop:"gridColumn"}),uM=Ot({prop:"gridRow"}),dM=Ot({prop:"gridAutoFlow"}),fM=Ot({prop:"gridAutoColumns"}),pM=Ot({prop:"gridAutoRows"}),hM=Ot({prop:"gridTemplateColumns"}),mM=Ot({prop:"gridTemplateRows"}),gM=Ot({prop:"gridTemplateAreas"}),yM=Ot({prop:"gridArea"});pd(md,gd,yd,cM,uM,dM,fM,pM,hM,mM,gM,yM);function la(e,t){return t==="grey"?t:e}const vM=Ot({prop:"color",themeKey:"palette",transform:la}),xM=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:la}),SM=Ot({prop:"backgroundColor",themeKey:"palette",transform:la});pd(vM,xM,SM);function Rn(e){return e<=1&&e!==0?`${e*100}%`:e}const bM=Ot({prop:"width",transform:Rn}),lm=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])||dd[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:Rn(n)}};return mr(e,e.maxWidth,t)}return null};lm.filterProps=["maxWidth"];const wM=Ot({prop:"minWidth",transform:Rn}),CM=Ot({prop:"height",transform:Rn}),kM=Ot({prop:"maxHeight",transform:Rn}),PM=Ot({prop:"minHeight",transform:Rn});Ot({prop:"size",cssProperty:"width",transform:Rn});Ot({prop:"size",cssProperty:"height",transform:Rn});const EM=Ot({prop:"boxSizing"});pd(bM,lm,wM,CM,kM,PM,EM);const Al={border:{themeKey:"borders",transform:Yn},borderTop:{themeKey:"borders",transform:Yn},borderRight:{themeKey:"borders",transform:Yn},borderBottom:{themeKey:"borders",transform:Yn},borderLeft:{themeKey:"borders",transform:Yn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hd},color:{themeKey:"palette",transform:la},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:la},backgroundColor:{themeKey:"palette",transform:la},p:{style:Mt},pt:{style:Mt},pr:{style:Mt},pb:{style:Mt},pl:{style:Mt},px:{style:Mt},py:{style:Mt},padding:{style:Mt},paddingTop:{style:Mt},paddingRight:{style:Mt},paddingBottom:{style:Mt},paddingLeft:{style:Mt},paddingX:{style:Mt},paddingY:{style:Mt},paddingInline:{style:Mt},paddingInlineStart:{style:Mt},paddingInlineEnd:{style:Mt},paddingBlock:{style:Mt},paddingBlockStart:{style:Mt},paddingBlockEnd:{style:Mt},m:{style:Et},mt:{style:Et},mr:{style:Et},mb:{style:Et},ml:{style:Et},mx:{style:Et},my:{style:Et},margin:{style:Et},marginTop:{style:Et},marginRight:{style:Et},marginBottom:{style:Et},marginLeft:{style:Et},marginX:{style:Et},marginY:{style:Et},marginInline:{style:Et},marginInlineStart:{style:Et},marginInlineEnd:{style:Et},marginBlock:{style:Et},marginBlockStart:{style:Et},marginBlockEnd:{style:Et},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:md},rowGap:{style:yd},columnGap:{style:gd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rn},maxWidth:{style:lm},minWidth:{transform:Rn},height:{transform:Rn},maxHeight:{transform:Rn},minHeight:{transform:Rn},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 MM(...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 RM(e,t){return typeof e=="function"?e(t):e}function TM(){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=Ca(o,c)||{};return d?d(a):mr(a,r,y=>{let x=gu(f,u,y);return y===x&&typeof y=="string"&&(x=gu(f,u,`${n}${y==="default"?"":le(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Al;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=yb(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const g=RM(l[f],o);if(g!=null)if(typeof g=="object")if(i[f])d=Bs(d,e(f,g,o,i));else{const y=mr({theme:o},g,x=>({[f]:x}));MM(y,g)?d[f]=t({sx:g,theme:o}):d=Bs(d,y)}else d=Bs(d,e(f,g,o,i))}),NE(o,vb(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const jo=TM();jo.filterProps=["sx"];function DM(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 za(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=jE(n),l=Sb(o);let c=Kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...zE,...i}},a);return c=_E(c),c.applyStyles=DM,c=t.reduce((u,d)=>Kt(u,d),c),c.unstable_sxConfig={...Al,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return jo({sx:d,theme:this})},c}function IM(e){return Object.keys(e).length===0}function cm(e=null){const t=h.useContext(ud);return!t||IM(t)?e:t}const OM=za();function Ll(e=OM){return cm(e)}function $M({styles:e,themeId:t,defaultTheme:n={}}){const r=Ll(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(hb,{styles:o})}const AM=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Al;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function vd(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=AM(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ir(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const Iy=e=>e,LM=()=>{let e=Iy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Iy}}},bb=LM();function wb(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"})(jo);return h.forwardRef(function(l,c){const u=Ll(n),{className:d,component:f="div",...g}=vd(l);return w.jsx(i,{as:f,ref:c,className:pe(d,o?o(r):r),theme:t&&u[t]||u,...g})})}const NM={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 ye(e,t,n="Mui"){const r=NM[t];return r?`${n}-${r}`:`${bb.generate(e)}-${t}`}function me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ye(e,o,n)}),r}function Cb(e){const{variants:t,...n}=e,r={variants:t,style:Ry(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ry(o.style))}),r}const FM=za();function _c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function BM(e){return e?(t,n)=>n[e]:null}function _M(e,t,n){e.theme=VM(e.theme)?n:e.theme[t]||e.theme}function zc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>zc(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 kb(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function kb(e,t,n=[]){var o;let r;e:for(let i=0;i{AE(s,P=>P.filter(k=>k!==jo));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:g=BM(UM(u)),...y}=l,x=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let p=_c;u==="Root"||u==="root"?p=r:u?p=o:WM(s)&&(p=void 0);const m=mb(s,{shouldForwardProp:p,label:zM(),...y}),v=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(M){return zc(M,P)};if(Ir(P)){const k=Cb(P);return k.variants?function(E){return zc(E,k)}:k.style}return P},S=(...P)=>{const k=[],M=P.map(v),E=[];if(k.push(i),c&&g&&E.push(function(A){var T,N;const O=(N=(T=A.theme.components)==null?void 0:T[c])==null?void 0:N.styleOverrides;if(!O)return null;const I={};for(const D in O)I[D]=zc(A,O[D]);return g(A,I)}),c&&!x&&E.push(function(A){var I,T;const j=A.theme,O=(T=(I=j==null?void 0:j.components)==null?void 0:I[c])==null?void 0:T.variants;return O?kb(A,O):null}),C||E.push(jo),Array.isArray(M[0])){const R=M.shift(),A=new Array(k.length).fill(""),j=new Array(E.length).fill("");let O;O=[...A,...R,...j],O.raw=[...A,...R.raw,...j],k.unshift(O)}const $=[...k,...M,...E],b=m(...$);return s.muiName&&(b.muiName=s.muiName),b};return m.withConfig&&(S.withConfig=m.withConfig),S}}function zM(e,t){return void 0}function VM(e){for(const t in e)return!1;return!0}function WM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function UM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const um=Pb();function ml(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]=ml(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Eb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ml(t.components[n].defaultProps,r)}function xd({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ll(n);return r&&(o=o[r]||o),Eb({theme:o,name:t,props:e})}const Vt=typeof window<"u"?h.useLayoutEffect:h.useEffect;function HM(e,t,n,r,o){const[i,a]=h.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Vt(()=>{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 YM={...Ks},Mb=YM.useSyncExternalStore;function KM(e,t,n,r,o){const i=h.useCallback(()=>t,[t]),a=h.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]=h.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 Mb(l,s,a)}function GM(e={}){const{themeId:t}=e;return function(r,o={}){let i=cm();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}=Eb({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(Mb!==void 0?KM:HM)(d,s,l,c,u)}}function QM(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function dm(e,t=0,n=1){return QM(e,t,n)}function XM(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 No(e){if(e.type)return e;if(e.charAt(0)==="#")return No(XM(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(oo(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(oo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const qM=e=>{const t=No(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Es=(e,t)=>{try{return qM(e)}catch{return e}};function Sd(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 Rb(e){e=No(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])),Sd({type:s,values:l})}function Ap(e){e=No(e);let t=e.type==="hsl"||e.type==="hsla"?No(Rb(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 ZM(e,t){const n=Ap(e),r=Ap(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Be(e,t){return e=No(e),t=dm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sd(e)}function pc(e,t,n){try{return Be(e,t)}catch{return e}}function ka(e,t){if(e=No(e),t=dm(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 Sd(e)}function st(e,t,n){try{return ka(e,t)}catch{return e}}function Pa(e,t){if(e=No(e),t=dm(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 Sd(e)}function lt(e,t,n){try{return Pa(e,t)}catch{return e}}function Tb(e,t=.15){return Ap(e)>.5?ka(e,t):Pa(e,t)}function hc(e,t,n){try{return Tb(e,t)}catch{return e}}const Db=q.oneOfType([q.func,q.object]);function Oy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function fm(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 h.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 zt(e){return e&&e.ownerDocument||document}function gr(e){return zt(e).defaultView||window}function Lp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $y=0;function JM(e){const[t,n]=h.useState(e),r=e||t;return h.useEffect(()=>{t==null&&($y+=1,n(`mui-${$y}`))},[t]),r}const eR={...Ks},Ay=eR.useId;function zo(e){if(Ay!==void 0){const t=Ay();return e??t}return JM(e)}function io({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,a]=h.useState(t),s=o?e:i,l=h.useCallback(c=>{o||a(c)},[]);return[s,l]}function Se(e){const t=h.useRef(e);return Vt(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function He(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Lp(n,t)})},e)}const Ly={};function Ib(e,t){const n=h.useRef(Ly);return n.current===Ly&&(n.current=e(t)),n}const tR=[];function nR(e){h.useEffect(e,tR)}class pm{constructor(){qa(this,"currentId",null);qa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});qa(this,"disposeEffect",()=>this.clear)}static create(){return new pm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hm(){const e=Ib(pm.create).current;return nR(e.disposeEffect),e}function yu(e){try{return e.matches(":focus-visible")}catch{}return!1}function Ob(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const rR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ve(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 jy(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 Ab(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},x={...n,...o,...r};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=vu({...o,...r}),s=jy(r),l=jy(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 bd(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?{}:bd(n,r),{props:s,internalRef:l}=Ab({...i,externalSlotProps:a}),c=He(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return $b(t,{...s,ref:c},r)}function ki(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Lb=h.createContext(null);function mm(){return h.useContext(Lb)}const iR=typeof Symbol=="function"&&Symbol.for,aR=iR?Symbol.for("mui.nested"):"__THEME_NESTED__";function sR(e,t){return typeof t=="function"?t(e):{...e,...t}}function lR(e){const{children:t,theme:n}=e,r=mm(),o=h.useMemo(()=>{const i=r===null?{...n}:sR(r,n);return i!=null&&(i[aR]=r!==null),i},[n,r]);return w.jsx(Lb.Provider,{value:o,children:t})}const jb=h.createContext();function cR({value:e,...t}){return w.jsx(jb.Provider,{value:e??!0,...t})}const rr=()=>h.useContext(jb)??!1,Nb=h.createContext(void 0);function uR({value:e,children:t}){return w.jsx(Nb.Provider,{value:e,children:t})}function dR(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?ml(o.defaultProps,r):!o.styleOverrides&&!o.variants?ml(o,r):r}function fR({props:e,name:t}){const n=h.useContext(Nb);return dR({props:e,name:t,theme:{components:n}})}const Ny={};function Fy(e,t,n,r=!1){return h.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 Fb(e){const{children:t,theme:n,themeId:r}=e,o=cm(Ny),i=mm()||Ny,a=Fy(r,o,n),s=Fy(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return w.jsx(lR,{theme:s,children:w.jsx(ud.Provider,{value:a,children:w.jsx(cR,{value:l,children:w.jsx(uR,{value:r?a[r].components:a.components,children:t})})})})}const By={theme:void 0};function pR(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(By.theme=o.theme,i=Cb(e(By)),t=i,n=o.theme),i}}const gm="mode",ym="color-scheme",hR="data-color-scheme";function mR(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=gm,colorSchemeStorageKey:i=ym,attribute:a=hR,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,g]=d[1].split("=");g||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return w.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 _y(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Bb(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 gR(e){return Bb(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Sf(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 yR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=gm,colorSchemeStorageKey:a=ym,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=h.useState(()=>{const S=Sf(i,t),P=Sf(`${a}-light`,n),k=Sf(`${a}-dark`,r);return{mode:S,systemMode:_y(S),lightColorScheme:P,darkColorScheme:k}}),[g,y]=h.useState(l||!u);h.useEffect(()=>{y(!0)},[]);const x=gR(d),C=h.useCallback(S=>{f(P=>{if(S===P.mode)return P;const k=S??t;try{localStorage.setItem(i,k)}catch{}return{...P,mode:k,systemMode:_y(k)}})},[i,t]),p=h.useCallback(S=>{S?typeof S=="string"?S&&!c.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):f(P=>{const k={...P};return Bb(P,M=>{try{localStorage.setItem(`${a}-${M}`,S)}catch{}M==="light"&&(k.lightColorScheme=S),M==="dark"&&(k.darkColorScheme=S)}),k}):f(P=>{const k={...P},M=S.light===null?n:S.light,E=S.dark===null?r:S.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(E)if(!c.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=E;try{localStorage.setItem(`${a}-dark`,E)}catch{}}return k}):f(P=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...P,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=h.useCallback(S=>{d.mode==="system"&&f(P=>{const k=S!=null&&S.matches?"dark":"light";return P.systemMode===k?P:{...P,systemMode:k}})},[d.mode]),v=h.useRef(m);return v.current=m,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const S=(...k)=>v.current(...k),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(S),S(P),()=>{P.removeListener(S)}},[u]),h.useEffect(()=>{if(s&&u){const S=P=>{const k=P.newValue;typeof P.key=="string"&&P.key.startsWith(a)&&(!k||c.match(k))&&(P.key.endsWith("light")&&p({light:k}),P.key.endsWith("dark")&&p({dark:k})),P.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",S),()=>{s.removeEventListener("storage",S)}}},[p,C,i,a,c,t,s,u]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?x:void 0,setMode:C,setColorScheme:p}}const vR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xR(e){const{themeId:t,theme:n={},modeStorageKey:r=gm,colorSchemeStorageKey:o=ym,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=h.createContext(void 0),u=()=>h.useContext(c)||l,d={},f={};function g(p){var tt,Ee,_e,ct;const{children:m,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:P=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:E=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:R=!1,defaultMode:A="system",noSsr:j}=p,O=h.useRef(!1),I=mm(),T=h.useContext(c),N=!!T&&!b,D=h.useMemo(()=>v||(typeof n=="function"?n():n),[v]),L=D[t],z=L||D,{colorSchemes:V=d,components:J=f,cssVarPrefix:ce}=z,se=Object.keys(V).filter(je=>!!V[je]).join(","),H=h.useMemo(()=>se.split(","),[se]),ae=typeof a=="string"?a:a.light,ie=typeof a=="string"?a:a.dark,ee=V[ae]&&V[ie]?A:((Ee=(tt=V[z.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Ee.mode)||((_e=z.palette)==null?void 0:_e.mode),{mode:X,setMode:ne,systemMode:oe,lightColorScheme:W,darkColorScheme:F,colorScheme:Y,setColorScheme:G}=yR({supportedColorSchemes:H,defaultLightColorScheme:ae,defaultDarkColorScheme:ie,modeStorageKey:S,colorSchemeStorageKey:P,defaultMode:ee,storageWindow:M,noSsr:j});let te=X,ue=Y;N&&(te=T.mode,ue=T.colorScheme);const Z=h.useMemo(()=>{var $t;const je=ue||z.defaultColorScheme,Oe=(($t=z.generateThemeVars)==null?void 0:$t.call(z))||z.vars,ft={...z,components:J,colorSchemes:V,cssVarPrefix:ce,vars:Oe};if(typeof ft.generateSpacing=="function"&&(ft.spacing=ft.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(at=>{Ne[at]&&typeof Ne[at]=="object"?ft[at]={...ft[at],...Ne[at]}:ft[at]=Ne[at]})}return s?s(ft):ft},[z,ue,J,V,ce]),fe=z.colorSchemeSelector;h.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(...H.map(ft=>Oe.substring(1).replace("%s",ft))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const ft=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(ft){const[$t,Ne]=ft[1].split("=");Ne||H.forEach(at=>{$.removeAttribute($t.replace(ue,at))}),$.setAttribute($t,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,H]),h.useEffect(()=>{let je;if(k&&O.current&&E){const Oe=E.createElement("style");Oe.appendChild(E.createTextNode(vR)),E.head.appendChild(Oe),window.getComputedStyle(E.body),je=setTimeout(()=>{E.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,E]),h.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ge=h.useMemo(()=>({allColorSchemes:H,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:te,setColorScheme:G,setMode:ne,systemMode:oe}),[H,ue,F,W,te,G,ne,oe,Z.colorSchemeSelector]);let Le=!0;(R||z.cssVariables===!1||N&&(I==null?void 0:I.cssVarPrefix)===ce)&&(Le=!1);const xe=w.jsxs(h.Fragment,{children:[w.jsx(Fb,{themeId:L?t:void 0,theme:Z,children:m}),Le&&w.jsx(hb,{styles:((ct=Z.generateStyleSheets)==null?void 0:ct.call(Z))||[]})]});return N?xe:w.jsx(c.Provider,{value:ge,children:xe})}const y=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:g,useColorScheme:u,getInitColorSchemeScript:p=>mR({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:x,modeStorageKey:r,...p})}}function SR(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 zy=(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])})},bR=(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)},wR=(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 bf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return bR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=wR(s,l);Object.assign(o,{[u]:d}),zy(i,s,`var(${u})`,c),zy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function CR(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}=bf(l,t);let f=d;const g={},{[s]:y,...x}=i;if(Object.entries(x||{}).forEach(([v,S])=>{const{vars:P,css:k,varsWithDefaults:M}=bf(S,t);f=Kt(f,M),g[v]={css:k,vars:P}}),y){const{css:v,vars:S,varsWithDefaults:P}=bf(y,t);f=Kt(f,P),g[s]={css:v,vars:S}}function C(v,S){var k,M;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),v){if(P==="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":S}};if(P)return e.defaultColorScheme===v?`:root, ${P.replace("%s",String(v))}`:P.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(g).forEach(([,{vars:S}])=>{v=Kt(v,S)}),v},generateStyleSheets:()=>{var E,$;const v=[],S=e.defaultColorScheme||"light";function P(b,R){Object.keys(R).length&&v.push(typeof b=="string"?{[b]:{...R}}:b)}P(n(void 0,{...u}),u);const{[S]:k,...M}=g;if(k){const{css:b}=k,R=($=(E=i[S])==null?void 0:E.palette)==null?void 0:$.mode,A=!r&&R?{colorScheme:R,...b}:{...b};P(n(S,{...A}),A)}return Object.entries(M).forEach(([b,{css:R}])=>{var O,I;const A=(I=(O=i[b])==null?void 0:O.palette)==null?void 0:I.mode,j=!r&&A?{colorScheme:A,...R}:{...R};P(n(b,{...j}),j)}),v}}}function kR(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 PR=za(),ER=um("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${le(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),MR=e=>xd({props:e,name:"MuiContainer",defaultTheme:PR}),RR=(e,t)=>{const n=l=>ye(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${le(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ve(s,n,r)};function TR(e={}){const{createStyledComponent:t=ER,useThemeProps:n=MR,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 h.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:g=!1,maxWidth:y="lg",classes:x,...C}=c,p={...c,component:d,disableGutters:f,fixed:g,maxWidth:y},m=RR(p,r);return w.jsx(o,{as:d,ownerState:p,className:pe(m.root,u),ref:l,...C})})}const DR=(e,t)=>e.filter(n=>t.includes(n)),Va=(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:DR(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 xu(e){return`--Grid-${e}Spacing`}function wd(e){return`--Grid-parent-${e}Spacing`}const Vy="--Grid-columns",ca="--Grid-parent-columns",IR=({theme:e,ownerState:t})=>{const n={};return Va(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(${ca}) - (var(${ca}) - ${o}) * (var(${wd("column")}) / var(${ca})))`}),r(n,i)}),n},OR=({theme:e,ownerState:t})=>{const n={};return Va(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(${ca}) + var(${wd("column")}) * ${o} / var(${ca}))`}),r(n,i)}),n},$R=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Vy]:12};return Va(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Vy]:i,"> *":{[ca]:i}})}),n},AR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(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,{[xu("row")]:i,"> *":{[wd("row")]:i}})}),n},LR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(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,{[xu("column")]:i,"> *":{[wd("column")]:i}})}),n},jR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},NR=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${xu("row")}) var(${xu("column")})`}}),FR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},BR=(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[]},_R=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],zR=za(),VR=um("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function WR(e){return xd({props:e,name:"MuiGrid",defaultTheme:zR})}function UR(e={}){const{createStyledComponent:t=VR,useThemeProps:n=WR,useTheme:r=Al,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:g,wrap:y,size:x}=c,C={root:["root",d&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,..._R(f),...FR(x),...d?BR(g,u.breakpoints.keys[0]):[]]};return ve(C,p=>ye(o,p),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((g,y)=>{g!==null&&d(g)&&u.keys[y]&&(f[u.keys[y]]=g)}):typeof c=="object"?Object.keys(c).forEach(g=>{const y=c[g];y!=null&&d(y)&&(f[g]=y)}):f[u.keys[0]]=c),f}const s=t($R,LR,AR,IR,jR,NR,OR),l=h.forwardRef(function(u,d){const f=r(),g=n(u),y=vd(g),{className:x,children:C,columns:p=12,container:m=!1,component:v="div",direction:S="row",wrap:P="wrap",size:k={},offset:M={},spacing:E=0,rowSpacing:$=E,columnSpacing:b=E,unstable_level:R=0,...A}=y,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),I=u.columns??(R?void 0:p),T=u.spacing??(R?void 0:E),N=u.rowSpacing??u.spacing??(R?void 0:$),D=u.columnSpacing??u.spacing??(R?void 0:b),L={...y,level:R,columns:I,container:m,direction:S,wrap:P,spacing:T,rowSpacing:N,columnSpacing:D,size:j,offset:O},z=i(L,f);return w.jsx(s,{ref:d,as:v,ownerState:L,className:pe(z.root,x),...A,children:h.Children.map(C,V=>{var J;return h.isValidElement(V)&&Bs(V,["Grid"])&&m&&V.props.container?h.cloneElement(V,{unstable_level:((J=V.props)==null?void 0:J.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const HR=za(),YR=um("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function KR(e){return xd({props:e,name:"MuiStack",defaultTheme:HR})}function GR(e,t){const n=h.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],XR=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...mr({theme:t},xf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=fd(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=xf({values:e.direction,base:o}),a=xf({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=Kt(n,mr({theme:t},a,(l,c)=>e.useFlexGap?{gap:gi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${QR(c?i[c]:e.direction)}`]:gi(r,l)}}))}return n=WE(t.breakpoints,n),n};function qR(e={}){const{createStyledComponent:t=YR,useThemeProps:n=KR,componentName:r="MuiStack"}=e,o=()=>ve({root:["root"]},l=>ye(r,l),{}),i=t(XR);return h.forwardRef(function(l,c){const u=n(l),d=vd(u),{component:f="div",direction:g="column",spacing:y=0,divider:x,children:C,className:p,useFlexGap:m=!1,...v}=d,S={direction:g,spacing:y,useFlexGap:m},P=o();return w.jsx(i,{as:f,ownerState:S,ref:c,className:pe(P.root,p),...v,children:x?GR(C,x):C})})}function _b(){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:ul.white,default:ul.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 ZR=_b();function zb(){return{text:{primary:ul.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:ul.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 Wy=zb();function Uy(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=Pa(e.main,o):t==="dark"&&(e.dark=ka(e.main,i)))}function JR(e="light"){return e==="dark"?{main:Ai[200],light:Ai[50],dark:Ai[400]}:{main:Ai[700],light:Ai[400],dark:Ai[800]}}function eT(e="light"){return e==="dark"?{main:$i[200],light:$i[50],dark:$i[400]}:{main:$i[500],light:$i[300],dark:$i[700]}}function tT(e="light"){return e==="dark"?{main:Oi[500],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[400],dark:Oi[800]}}function nT(e="light"){return e==="dark"?{main:Li[400],light:Li[300],dark:Li[700]}:{main:Li[700],light:Li[500],dark:Li[900]}}function rT(e="light"){return e==="dark"?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[800],light:ji[500],dark:ji[900]}}function oT(e="light"){return e==="dark"?{main:is[400],light:is[300],dark:is[700]}:{main:"#ed6c02",light:is[500],dark:is[900]}}function vm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||JR(t),a=e.secondary||eT(t),s=e.error||tT(t),l=e.info||nT(t),c=e.success||rT(t),u=e.warning||oT(t);function d(x){return ZM(x,Wy.text.primary)>=n?Wy.text.primary:ZR.text.primary}const f=({color:x,name:C,mainShade:p=500,lightShade:m=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[p]&&(x.main=x[p]),!x.hasOwnProperty("main"))throw new Error(oo(11,C?` (${C})`:"",p));if(typeof x.main!="string")throw new Error(oo(12,C?` (${C})`:"",JSON.stringify(x.main)));return Uy(x,"light",m,r),Uy(x,"dark",v,r),x.contrastText||(x.contrastText=d(x.main)),x};let g;return t==="light"?g=_b():t==="dark"&&(g=zb()),Kt({common:{...ul},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:CP,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...g},o)}function iT(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 aT(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function sT(e){return Math.round(e*1e5)/1e5}const Hy={textTransform:"uppercase"},Yy='"Roboto", "Helvetica", "Arial", sans-serif';function Vb(e,t){const{fontFamily:n=Yy,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,g=u||(C=>`${C/l*f}rem`),y=(C,p,m,v,S)=>({fontFamily:n,fontWeight:C,fontSize:g(p),lineHeight:m,...n===Yy?{letterSpacing:`${sT(v/p)}em`}:{},...S,...c}),x={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(a,14,1.75,.4,Hy),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Hy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...x},d,{clone:!1})}const lT=.2,cT=.14,uT=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uT})`].join(",")}const dT=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],fT={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)"},pT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ky(e){return`${Math.round(e)}ms`}function hT(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mT(e){const t={...fT,...e.easing},n={...pT,...e.duration};return{getAutoHeightDuration:hT,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:Ky(a)} ${s} ${typeof l=="string"?l:Ky(l)}`).join(",")},...e,easing:t,duration:n}}const gT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yT(e){return Ir(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wb(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 Sf(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 yR(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=gm,colorSchemeStorageKey:a=ym,storageWindow:s=typeof window>"u"?void 0:window,noSsr:l=!1}=e,c=o.join(","),u=o.length>1,[d,f]=h.useState(()=>{const S=Sf(i,t),P=Sf(`${a}-light`,n),k=Sf(`${a}-dark`,r);return{mode:S,systemMode:_y(S),lightColorScheme:P,darkColorScheme:k}}),[g,y]=h.useState(l||!u);h.useEffect(()=>{y(!0)},[]);const x=gR(d),C=h.useCallback(S=>{f(P=>{if(S===P.mode)return P;const k=S??t;try{localStorage.setItem(i,k)}catch{}return{...P,mode:k,systemMode:_y(k)}})},[i,t]),p=h.useCallback(S=>{S?typeof S=="string"?S&&!c.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):f(P=>{const k={...P};return Bb(P,M=>{try{localStorage.setItem(`${a}-${M}`,S)}catch{}M==="light"&&(k.lightColorScheme=S),M==="dark"&&(k.darkColorScheme=S)}),k}):f(P=>{const k={...P},M=S.light===null?n:S.light,E=S.dark===null?r:S.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(E)if(!c.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=E;try{localStorage.setItem(`${a}-dark`,E)}catch{}}return k}):f(P=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...P,lightColorScheme:n,darkColorScheme:r}})},[c,a,n,r]),m=h.useCallback(S=>{d.mode==="system"&&f(P=>{const k=S!=null&&S.matches?"dark":"light";return P.systemMode===k?P:{...P,systemMode:k}})},[d.mode]),v=h.useRef(m);return v.current=m,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const S=(...k)=>v.current(...k),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(S),S(P),()=>{P.removeListener(S)}},[u]),h.useEffect(()=>{if(s&&u){const S=P=>{const k=P.newValue;typeof P.key=="string"&&P.key.startsWith(a)&&(!k||c.match(k))&&(P.key.endsWith("light")&&p({light:k}),P.key.endsWith("dark")&&p({dark:k})),P.key===i&&(!k||["light","dark","system"].includes(k))&&C(k||t)};return s.addEventListener("storage",S),()=>{s.removeEventListener("storage",S)}}},[p,C,i,a,c,t,s,u]),{...d,mode:g?d.mode:void 0,systemMode:g?d.systemMode:void 0,colorScheme:g?x:void 0,setMode:C,setColorScheme:p}}const vR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xR(e){const{themeId:t,theme:n={},modeStorageKey:r=gm,colorSchemeStorageKey:o=ym,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=h.createContext(void 0),u=()=>h.useContext(c)||l,d={},f={};function g(p){var tt,Ee,_e,ct;const{children:m,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:P=o,disableTransitionOnChange:k=i,storageWindow:M=typeof window>"u"?void 0:window,documentNode:E=typeof document>"u"?void 0:document,colorSchemeNode:$=typeof document>"u"?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:R=!1,defaultMode:A="system",noSsr:j}=p,O=h.useRef(!1),I=mm(),T=h.useContext(c),N=!!T&&!b,D=h.useMemo(()=>v||(typeof n=="function"?n():n),[v]),L=D[t],z=L||D,{colorSchemes:V=d,components:J=f,cssVarPrefix:ce}=z,se=Object.keys(V).filter(je=>!!V[je]).join(","),H=h.useMemo(()=>se.split(","),[se]),ae=typeof a=="string"?a:a.light,ie=typeof a=="string"?a:a.dark,ee=V[ae]&&V[ie]?A:((Ee=(tt=V[z.defaultColorScheme])==null?void 0:tt.palette)==null?void 0:Ee.mode)||((_e=z.palette)==null?void 0:_e.mode),{mode:X,setMode:ne,systemMode:oe,lightColorScheme:W,darkColorScheme:F,colorScheme:Y,setColorScheme:G}=yR({supportedColorSchemes:H,defaultLightColorScheme:ae,defaultDarkColorScheme:ie,modeStorageKey:S,colorSchemeStorageKey:P,defaultMode:ee,storageWindow:M,noSsr:j});let te=X,ue=Y;N&&(te=T.mode,ue=T.colorScheme);const Z=h.useMemo(()=>{var $t;const je=ue||z.defaultColorScheme,Oe=(($t=z.generateThemeVars)==null?void 0:$t.call(z))||z.vars,ft={...z,components:J,colorSchemes:V,cssVarPrefix:ce,vars:Oe};if(typeof ft.generateSpacing=="function"&&(ft.spacing=ft.generateSpacing()),je){const Ne=V[je];Ne&&typeof Ne=="object"&&Object.keys(Ne).forEach(at=>{Ne[at]&&typeof Ne[at]=="object"?ft[at]={...ft[at],...Ne[at]}:ft[at]=Ne[at]})}return s?s(ft):ft},[z,ue,J,V,ce]),fe=z.colorSchemeSelector;h.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(...H.map(ft=>Oe.substring(1).replace("%s",ft))),$.classList.add(Oe.substring(1).replace("%s",ue));else{const ft=Oe.replace("%s",ue).match(/\[([^\]]+)\]/);if(ft){const[$t,Ne]=ft[1].split("=");Ne||H.forEach(at=>{$.removeAttribute($t.replace(ue,at))}),$.setAttribute($t,Ne?Ne.replace(/"|'/g,""):"")}else $.setAttribute(Oe,ue)}}},[ue,fe,$,H]),h.useEffect(()=>{let je;if(k&&O.current&&E){const Oe=E.createElement("style");Oe.appendChild(E.createTextNode(vR)),E.head.appendChild(Oe),window.getComputedStyle(E.body),je=setTimeout(()=>{E.head.removeChild(Oe)},1)}return()=>{clearTimeout(je)}},[ue,k,E]),h.useEffect(()=>(O.current=!0,()=>{O.current=!1}),[]);const ge=h.useMemo(()=>({allColorSchemes:H,colorScheme:ue,darkColorScheme:F,lightColorScheme:W,mode:te,setColorScheme:G,setMode:ne,systemMode:oe}),[H,ue,F,W,te,G,ne,oe,Z.colorSchemeSelector]);let Le=!0;(R||z.cssVariables===!1||N&&(I==null?void 0:I.cssVarPrefix)===ce)&&(Le=!1);const xe=w.jsxs(h.Fragment,{children:[w.jsx(Fb,{themeId:L?t:void 0,theme:Z,children:m}),Le&&w.jsx(hb,{styles:((ct=Z.generateStyleSheets)==null?void 0:ct.call(Z))||[]})]});return N?xe:w.jsx(c.Provider,{value:ge,children:xe})}const y=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:g,useColorScheme:u,getInitColorSchemeScript:p=>mR({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:x,modeStorageKey:r,...p})}}function SR(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 zy=(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])})},bR=(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)},wR=(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 bf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return bR(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=wR(s,l);Object.assign(o,{[u]:d}),zy(i,s,`var(${u})`,c),zy(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function CR(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}=bf(l,t);let f=d;const g={},{[s]:y,...x}=i;if(Object.entries(x||{}).forEach(([v,S])=>{const{vars:P,css:k,varsWithDefaults:M}=bf(S,t);f=Kt(f,M),g[v]={css:k,vars:P}}),y){const{css:v,vars:S,varsWithDefaults:P}=bf(y,t);f=Kt(f,P),g[s]={css:v,vars:S}}function C(v,S){var k,M;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),v){if(P==="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":S}};if(P)return e.defaultColorScheme===v?`:root, ${P.replace("%s",String(v))}`:P.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(g).forEach(([,{vars:S}])=>{v=Kt(v,S)}),v},generateStyleSheets:()=>{var E,$;const v=[],S=e.defaultColorScheme||"light";function P(b,R){Object.keys(R).length&&v.push(typeof b=="string"?{[b]:{...R}}:b)}P(n(void 0,{...u}),u);const{[S]:k,...M}=g;if(k){const{css:b}=k,R=($=(E=i[S])==null?void 0:E.palette)==null?void 0:$.mode,A=!r&&R?{colorScheme:R,...b}:{...b};P(n(S,{...A}),A)}return Object.entries(M).forEach(([b,{css:R}])=>{var O,I;const A=(I=(O=i[b])==null?void 0:O.palette)==null?void 0:I.mode,j=!r&&A?{colorScheme:A,...R}:{...R};P(n(b,{...j}),j)}),v}}}function kR(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 PR=za(),ER=um("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${le(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),MR=e=>xd({props:e,name:"MuiContainer",defaultTheme:PR}),RR=(e,t)=>{const n=l=>ye(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${le(String(a))}`,o&&"fixed",i&&"disableGutters"]};return ve(s,n,r)};function TR(e={}){const{createStyledComponent:t=ER,useThemeProps:n=MR,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 h.forwardRef(function(s,l){const c=n(s),{className:u,component:d="div",disableGutters:f=!1,fixed:g=!1,maxWidth:y="lg",classes:x,...C}=c,p={...c,component:d,disableGutters:f,fixed:g,maxWidth:y},m=RR(p,r);return w.jsx(o,{as:d,ownerState:p,className:pe(m.root,u),ref:l,...C})})}const DR=(e,t)=>e.filter(n=>t.includes(n)),Va=(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:DR(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 xu(e){return`--Grid-${e}Spacing`}function wd(e){return`--Grid-parent-${e}Spacing`}const Vy="--Grid-columns",ca="--Grid-parent-columns",IR=({theme:e,ownerState:t})=>{const n={};return Va(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(${ca}) - (var(${ca}) - ${o}) * (var(${wd("column")}) / var(${ca})))`}),r(n,i)}),n},OR=({theme:e,ownerState:t})=>{const n={};return Va(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(${ca}) + var(${wd("column")}) * ${o} / var(${ca}))`}),r(n,i)}),n},$R=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Vy]:12};return Va(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Vy]:i,"> *":{[ca]:i}})}),n},AR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(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,{[xu("row")]:i,"> *":{[wd("row")]:i}})}),n},LR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(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,{[xu("column")]:i,"> *":{[wd("column")]:i}})}),n},jR=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Va(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},NR=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${xu("row")}) var(${xu("column")})`}}),FR=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},BR=(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[]},_R=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],zR=za(),VR=um("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function WR(e){return xd({props:e,name:"MuiGrid",defaultTheme:zR})}function UR(e={}){const{createStyledComponent:t=VR,useThemeProps:n=WR,useTheme:r=Ll,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:d,direction:f,spacing:g,wrap:y,size:x}=c,C={root:["root",d&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,..._R(f),...FR(x),...d?BR(g,u.breakpoints.keys[0]):[]]};return ve(C,p=>ye(o,p),{})};function a(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((g,y)=>{g!==null&&d(g)&&u.keys[y]&&(f[u.keys[y]]=g)}):typeof c=="object"?Object.keys(c).forEach(g=>{const y=c[g];y!=null&&d(y)&&(f[g]=y)}):f[u.keys[0]]=c),f}const s=t($R,LR,AR,IR,jR,NR,OR),l=h.forwardRef(function(u,d){const f=r(),g=n(u),y=vd(g),{className:x,children:C,columns:p=12,container:m=!1,component:v="div",direction:S="row",wrap:P="wrap",size:k={},offset:M={},spacing:E=0,rowSpacing:$=E,columnSpacing:b=E,unstable_level:R=0,...A}=y,j=a(k,f.breakpoints,V=>V!==!1),O=a(M,f.breakpoints),I=u.columns??(R?void 0:p),T=u.spacing??(R?void 0:E),N=u.rowSpacing??u.spacing??(R?void 0:$),D=u.columnSpacing??u.spacing??(R?void 0:b),L={...y,level:R,columns:I,container:m,direction:S,wrap:P,spacing:T,rowSpacing:N,columnSpacing:D,size:j,offset:O},z=i(L,f);return w.jsx(s,{ref:d,as:v,ownerState:L,className:pe(z.root,x),...A,children:h.Children.map(C,V=>{var J;return h.isValidElement(V)&&_s(V,["Grid"])&&m&&V.props.container?h.cloneElement(V,{unstable_level:((J=V.props)==null?void 0:J.unstable_level)??R+1}):V})})});return l.muiName="Grid",l}const HR=za(),YR=um("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function KR(e){return xd({props:e,name:"MuiStack",defaultTheme:HR})}function GR(e,t){const n=h.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],XR=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...mr({theme:t},xf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=fd(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=xf({values:e.direction,base:o}),a=xf({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=Kt(n,mr({theme:t},a,(l,c)=>e.useFlexGap?{gap:gi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${QR(c?i[c]:e.direction)}`]:gi(r,l)}}))}return n=WE(t.breakpoints,n),n};function qR(e={}){const{createStyledComponent:t=YR,useThemeProps:n=KR,componentName:r="MuiStack"}=e,o=()=>ve({root:["root"]},l=>ye(r,l),{}),i=t(XR);return h.forwardRef(function(l,c){const u=n(l),d=vd(u),{component:f="div",direction:g="column",spacing:y=0,divider:x,children:C,className:p,useFlexGap:m=!1,...v}=d,S={direction:g,spacing:y,useFlexGap:m},P=o();return w.jsx(i,{as:f,ownerState:S,ref:c,className:pe(P.root,p),...v,children:x?GR(C,x):C})})}function _b(){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:dl.white,default:dl.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 ZR=_b();function zb(){return{text:{primary:dl.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:dl.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 Wy=zb();function Uy(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=Pa(e.main,o):t==="dark"&&(e.dark=ka(e.main,i)))}function JR(e="light"){return e==="dark"?{main:Ai[200],light:Ai[50],dark:Ai[400]}:{main:Ai[700],light:Ai[400],dark:Ai[800]}}function eT(e="light"){return e==="dark"?{main:$i[200],light:$i[50],dark:$i[400]}:{main:$i[500],light:$i[300],dark:$i[700]}}function tT(e="light"){return e==="dark"?{main:Oi[500],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[400],dark:Oi[800]}}function nT(e="light"){return e==="dark"?{main:Li[400],light:Li[300],dark:Li[700]}:{main:Li[700],light:Li[500],dark:Li[900]}}function rT(e="light"){return e==="dark"?{main:ji[400],light:ji[300],dark:ji[700]}:{main:ji[800],light:ji[500],dark:ji[900]}}function oT(e="light"){return e==="dark"?{main:as[400],light:as[300],dark:as[700]}:{main:"#ed6c02",light:as[500],dark:as[900]}}function vm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||JR(t),a=e.secondary||eT(t),s=e.error||tT(t),l=e.info||nT(t),c=e.success||rT(t),u=e.warning||oT(t);function d(x){return ZM(x,Wy.text.primary)>=n?Wy.text.primary:ZR.text.primary}const f=({color:x,name:C,mainShade:p=500,lightShade:m=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[p]&&(x.main=x[p]),!x.hasOwnProperty("main"))throw new Error(oo(11,C?` (${C})`:"",p));if(typeof x.main!="string")throw new Error(oo(12,C?` (${C})`:"",JSON.stringify(x.main)));return Uy(x,"light",m,r),Uy(x,"dark",v,r),x.contrastText||(x.contrastText=d(x.main)),x};let g;return t==="light"?g=_b():t==="dark"&&(g=zb()),Kt({common:{...dl},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:CP,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...g},o)}function iT(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 aT(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function sT(e){return Math.round(e*1e5)/1e5}const Hy={textTransform:"uppercase"},Yy='"Roboto", "Helvetica", "Arial", sans-serif';function Vb(e,t){const{fontFamily:n=Yy,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,g=u||(C=>`${C/l*f}rem`),y=(C,p,m,v,S)=>({fontFamily:n,fontWeight:C,fontSize:g(p),lineHeight:m,...n===Yy?{letterSpacing:`${sT(v/p)}em`}:{},...S,...c}),x={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(a,14,1.75,.4,Hy),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Hy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...x},d,{clone:!1})}const lT=.2,cT=.14,uT=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uT})`].join(",")}const dT=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],fT={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)"},pT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ky(e){return`${Math.round(e)}ms`}function hT(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mT(e){const t={...fT,...e.easing},n={...pT,...e.duration};return{getAutoHeightDuration:hT,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:Ky(a)} ${s} ${typeof l=="string"?l:Ky(l)}`).join(",")},...e,easing:t,duration:n}}const gT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yT(e){return Ir(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wb(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iKt(g,y),f),f.unstable_sxConfig={...$l,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(y){return jo({sx:y,theme:this})},f.toRuntimeSource=Wb,f}function Np(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 vT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Np(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ub(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hb(e){return e==="dark"?vT:[]}function xT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=vm(t);return{palette:i,opacity:{...Ub(i.mode),...n},overlays:r||Hb(i.mode),...o}}function ST(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 bT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],wT=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 bT(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 CT(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function re(e,t,n){!e[t]&&n&&(e[t]=n)}function Es(e){return typeof e!="string"||!e.startsWith("hsl")?e:Rb(e)}function Hr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ps(Es(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 kT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const kr=e=>{try{return e()}catch{}},PT=(e="mui")=>SR(e);function wf(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=xT({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=jp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Ub(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Hb(o)},a}function ET(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=ST,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=PT(i),{[d]:g,light:y,dark:x,...C}=n,p={...C};let m=g;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(oo(21,d));const v=wf(p,m,c,d);y&&!p.light&&wf(p,y,void 0,"light"),x&&!p.dark&&wf(p,x,void 0,"dark");let S={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:p,font:{...iT(v.typography),...v.font},spacing:kT(c.spacing)};Object.keys(S.colorSchemes).forEach($=>{const b=S.colorSchemes[$].palette,R=A=>{const j=A.split("-"),O=j[1],I=j[2];return f(A,b[O][I])};if(b.mode==="light"&&(re(b.common,"background","#fff"),re(b.common,"onBackground","#000")),b.mode==="dark"&&(re(b.common,"background","#000"),re(b.common,"onBackground","#fff")),CT(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){re(b.Alert,"errorColor",st(b.error.light,.6)),re(b.Alert,"infoColor",st(b.info.light,.6)),re(b.Alert,"successColor",st(b.success.light,.6)),re(b.Alert,"warningColor",st(b.warning.light,.6)),re(b.Alert,"errorFilledBg",R("palette-error-main")),re(b.Alert,"infoFilledBg",R("palette-info-main")),re(b.Alert,"successFilledBg",R("palette-success-main")),re(b.Alert,"warningFilledBg",R("palette-warning-main")),re(b.Alert,"errorFilledColor",kr(()=>b.getContrastText(b.error.main))),re(b.Alert,"infoFilledColor",kr(()=>b.getContrastText(b.info.main))),re(b.Alert,"successFilledColor",kr(()=>b.getContrastText(b.success.main))),re(b.Alert,"warningFilledColor",kr(()=>b.getContrastText(b.warning.main))),re(b.Alert,"errorStandardBg",lt(b.error.light,.9)),re(b.Alert,"infoStandardBg",lt(b.info.light,.9)),re(b.Alert,"successStandardBg",lt(b.success.light,.9)),re(b.Alert,"warningStandardBg",lt(b.warning.light,.9)),re(b.Alert,"errorIconColor",R("palette-error-main")),re(b.Alert,"infoIconColor",R("palette-info-main")),re(b.Alert,"successIconColor",R("palette-success-main")),re(b.Alert,"warningIconColor",R("palette-warning-main")),re(b.AppBar,"defaultBg",R("palette-grey-100")),re(b.Avatar,"defaultBg",R("palette-grey-400")),re(b.Button,"inheritContainedBg",R("palette-grey-300")),re(b.Button,"inheritContainedHoverBg",R("palette-grey-A100")),re(b.Chip,"defaultBorder",R("palette-grey-400")),re(b.Chip,"defaultAvatarColor",R("palette-grey-700")),re(b.Chip,"defaultIconColor",R("palette-grey-700")),re(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),re(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),re(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),re(b.LinearProgress,"primaryBg",lt(b.primary.main,.62)),re(b.LinearProgress,"secondaryBg",lt(b.secondary.main,.62)),re(b.LinearProgress,"errorBg",lt(b.error.main,.62)),re(b.LinearProgress,"infoBg",lt(b.info.main,.62)),re(b.LinearProgress,"successBg",lt(b.success.main,.62)),re(b.LinearProgress,"warningBg",lt(b.warning.main,.62)),re(b.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),re(b.Slider,"primaryTrack",lt(b.primary.main,.62)),re(b.Slider,"secondaryTrack",lt(b.secondary.main,.62)),re(b.Slider,"errorTrack",lt(b.error.main,.62)),re(b.Slider,"infoTrack",lt(b.info.main,.62)),re(b.Slider,"successTrack",lt(b.success.main,.62)),re(b.Slider,"warningTrack",lt(b.warning.main,.62));const A=hc(b.background.default,.8);re(b.SnackbarContent,"bg",A),re(b.SnackbarContent,"color",kr(()=>b.getContrastText(A))),re(b.SpeedDialAction,"fabHoverBg",hc(b.background.paper,.15)),re(b.StepConnector,"border",R("palette-grey-400")),re(b.StepContent,"border",R("palette-grey-400")),re(b.Switch,"defaultColor",R("palette-common-white")),re(b.Switch,"defaultDisabledColor",R("palette-grey-100")),re(b.Switch,"primaryDisabledColor",lt(b.primary.main,.62)),re(b.Switch,"secondaryDisabledColor",lt(b.secondary.main,.62)),re(b.Switch,"errorDisabledColor",lt(b.error.main,.62)),re(b.Switch,"infoDisabledColor",lt(b.info.main,.62)),re(b.Switch,"successDisabledColor",lt(b.success.main,.62)),re(b.Switch,"warningDisabledColor",lt(b.warning.main,.62)),re(b.TableCell,"border",lt(pc(b.divider,1),.88)),re(b.Tooltip,"bg",pc(b.grey[700],.92))}if(b.mode==="dark"){re(b.Alert,"errorColor",lt(b.error.light,.6)),re(b.Alert,"infoColor",lt(b.info.light,.6)),re(b.Alert,"successColor",lt(b.success.light,.6)),re(b.Alert,"warningColor",lt(b.warning.light,.6)),re(b.Alert,"errorFilledBg",R("palette-error-dark")),re(b.Alert,"infoFilledBg",R("palette-info-dark")),re(b.Alert,"successFilledBg",R("palette-success-dark")),re(b.Alert,"warningFilledBg",R("palette-warning-dark")),re(b.Alert,"errorFilledColor",kr(()=>b.getContrastText(b.error.dark))),re(b.Alert,"infoFilledColor",kr(()=>b.getContrastText(b.info.dark))),re(b.Alert,"successFilledColor",kr(()=>b.getContrastText(b.success.dark))),re(b.Alert,"warningFilledColor",kr(()=>b.getContrastText(b.warning.dark))),re(b.Alert,"errorStandardBg",st(b.error.light,.9)),re(b.Alert,"infoStandardBg",st(b.info.light,.9)),re(b.Alert,"successStandardBg",st(b.success.light,.9)),re(b.Alert,"warningStandardBg",st(b.warning.light,.9)),re(b.Alert,"errorIconColor",R("palette-error-main")),re(b.Alert,"infoIconColor",R("palette-info-main")),re(b.Alert,"successIconColor",R("palette-success-main")),re(b.Alert,"warningIconColor",R("palette-warning-main")),re(b.AppBar,"defaultBg",R("palette-grey-900")),re(b.AppBar,"darkBg",R("palette-background-paper")),re(b.AppBar,"darkColor",R("palette-text-primary")),re(b.Avatar,"defaultBg",R("palette-grey-600")),re(b.Button,"inheritContainedBg",R("palette-grey-800")),re(b.Button,"inheritContainedHoverBg",R("palette-grey-700")),re(b.Chip,"defaultBorder",R("palette-grey-700")),re(b.Chip,"defaultAvatarColor",R("palette-grey-300")),re(b.Chip,"defaultIconColor",R("palette-grey-300")),re(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),re(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),re(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),re(b.LinearProgress,"primaryBg",st(b.primary.main,.5)),re(b.LinearProgress,"secondaryBg",st(b.secondary.main,.5)),re(b.LinearProgress,"errorBg",st(b.error.main,.5)),re(b.LinearProgress,"infoBg",st(b.info.main,.5)),re(b.LinearProgress,"successBg",st(b.success.main,.5)),re(b.LinearProgress,"warningBg",st(b.warning.main,.5)),re(b.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),re(b.Slider,"primaryTrack",st(b.primary.main,.5)),re(b.Slider,"secondaryTrack",st(b.secondary.main,.5)),re(b.Slider,"errorTrack",st(b.error.main,.5)),re(b.Slider,"infoTrack",st(b.info.main,.5)),re(b.Slider,"successTrack",st(b.success.main,.5)),re(b.Slider,"warningTrack",st(b.warning.main,.5));const A=hc(b.background.default,.98);re(b.SnackbarContent,"bg",A),re(b.SnackbarContent,"color",kr(()=>b.getContrastText(A))),re(b.SpeedDialAction,"fabHoverBg",hc(b.background.paper,.15)),re(b.StepConnector,"border",R("palette-grey-600")),re(b.StepContent,"border",R("palette-grey-600")),re(b.Switch,"defaultColor",R("palette-grey-300")),re(b.Switch,"defaultDisabledColor",R("palette-grey-600")),re(b.Switch,"primaryDisabledColor",st(b.primary.main,.55)),re(b.Switch,"secondaryDisabledColor",st(b.secondary.main,.55)),re(b.Switch,"errorDisabledColor",st(b.error.main,.55)),re(b.Switch,"infoDisabledColor",st(b.info.main,.55)),re(b.Switch,"successDisabledColor",st(b.success.main,.55)),re(b.Switch,"warningDisabledColor",st(b.warning.main,.55)),re(b.TableCell,"border",st(pc(b.divider,1),.68)),re(b.Tooltip,"bg",pc(b.grey[700],.92))}Hr(b.background,"default"),Hr(b.background,"paper"),Hr(b.common,"background"),Hr(b.common,"onBackground"),Hr(b,"divider"),Object.keys(b).forEach(A=>{const j=b[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&re(b[A],"mainChannel",Ps(Es(j.main))),j.light&&re(b[A],"lightChannel",Ps(Es(j.light))),j.dark&&re(b[A],"darkChannel",Ps(Es(j.dark))),j.contrastText&&re(b[A],"contrastTextChannel",Ps(Es(j.contrastText))),A==="text"&&(Hr(b[A],"primary"),Hr(b[A],"secondary")),A==="action"&&(j.active&&Hr(b[A],"active"),j.selected&&Hr(b[A],"selected")))})}),S=t.reduce(($,b)=>Kt($,b),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:wT(S)},{vars:k,generateThemeVars:M,generateStyleSheets:E}=CR(S,P);return S.vars=k,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([$,b])=>{S[$]=b}),S.generateThemeVars=M,S.generateStyleSheets=E,S.generateSpacing=function(){return Sb(c.spacing,fd(this))},S.getColorSchemeSelector=kR(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...$l,...c==null?void 0:c.unstable_sxConfig},S.unstable_sx=function(b){return jo({sx:b,theme:this})},S.toRuntimeSource=Wb,S}function Gy(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:vm({...n===!0?{}:n.palette,mode:t})})}function Cd(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 jp(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=jp({...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},Gy(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Gy(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),ET({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const kd=Cd();function vr(){const e=Al(kd);return e[Qn]||e}function mt({props:e,name:t}){return xd({props:e,name:t,defaultTheme:kd,themeId:Qn})}function Yb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _n=e=>Yb(e)&&e!=="classes",K=Pb({themeId:Qn,defaultTheme:kd,rootShouldForwardProp:_n});function Qy({theme:e,...t}){const n=Qn in e?e[Qn]:void 0;return w.jsx(Fb,{...t,themeId:n?Qn:void 0,theme:n||e})}const mc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:MT,useColorScheme:L_,getInitColorSchemeScript:j_}=xR({themeId:Qn,theme:()=>Cd({cssVariables:!0}),colorSchemeStorageKey:mc.colorSchemeStorageKey,modeStorageKey:mc.modeStorageKey,defaultColorScheme:{light:mc.defaultLightColorScheme,dark:mc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Vb(e.palette,e.typography)};return t.unstable_sx=function(r){return jo({sx:r,theme:this})},t}}),RT=MT;function TT({theme:e,...t}){return typeof e=="function"?w.jsx(Qy,{theme:e,...t}):"colorSchemes"in(Qn in e?e[Qn]:e)?w.jsx(RT,{theme:e,...t}):w.jsx(Qy,{theme:e,...t})}function DT(e){return w.jsx($M,{...e,defaultTheme:kd,themeId:Qn})}function xm(e){return function(n){return w.jsx(DT,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function IT(){return vd}const Fe=pR;function Ie(e){return fR(e)}function OT(e){return ye("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $T=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return ve(o,OT,r)},AT=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Fe(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,g,y;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:x=>!x.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(([,x])=>x&&x.main).map(([x])=>{var C,p;return{props:{color:x},style:{color:(p=(C=(e.vars??e).palette)==null?void 0:C[x])==null?void 0:p.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:(y=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Su=h.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",...g}=r,y=h.isValidElement(o)&&o.type==="svg",x={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y},C={};u||(C.viewBox=f);const p=$T(x);return w.jsxs(AT,{as:s,className:pe(p.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...g,...y&&o.props,ownerState:x,children:[y?o.props.children:o,d?w.jsx("title",{children:d}):null]})});Su&&(Su.muiName="SvgIcon");function en(e,t){function n(r,o){return w.jsx(Su,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Su.muiName,h.memo(h.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 Fp(e,t){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fp(e,t)}function Sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fp(e,t)}function LT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function jT(e,t){e.classList?e.classList.add(t):LT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xy(e.className,t):e.setAttribute("class",Xy(e.className&&e.className.baseVal||"",t))}const qy={disabled:!1},bu=Bt.createContext(null);var Kb=function(t){return t.scrollTop},Ms="unmounted",qo="exited",Zo="entering",zi="entered",Bp="exiting",or=function(e){Sm(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=qo,i.appearStatus=Zo):l=zi:r.unmountOnExit||r.mountOnEnter?l=Ms:l=qo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ms?{status:qo}: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!==Zo&&a!==zi&&(i=Zo):(a===Zo||a===zi)&&(i=Bp)}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===Zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ks.findDOMNode(this);a&&Kb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qo&&this.setState({status:Ms})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[ks.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||qy.disabled){this.safeSetState({status:zi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zo},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:zi},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:ks.findDOMNode(this);if(!i||qy.disabled){this.safeSetState({status:qo},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:qo},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:ks.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===Ms)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 Bt.createElement(bu.Provider,{value:null},typeof a=="function"?a(o,s):Bt.cloneElement(Bt.Children.only(a),s))},t}(Bt.Component);or.contextType=bu;or.propTypes={};function Ni(){}or.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ni,onEntering:Ni,onEntered:Ni,onExit:Ni,onExiting:Ni,onExited:Ni};or.UNMOUNTED=Ms;or.EXITED=qo;or.ENTERING=Zo;or.ENTERED=zi;or.EXITING=Bp;var FT=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return jT(t,r)})},Cf=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return NT(t,r)})},bm=function(e){Sm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ea(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 HT(e){return ye("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 YT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(i,HT,o)},KT=K("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}`]]}})(Fe(({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)"}}]}))),yr=h.forwardRef(function(t,n){var g;const r=Ie({props:t,name:"MuiPaper"}),o=vr(),{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=YT(d);return w.jsx(KT,{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":(g=o.vars.overlays)==null?void 0:g[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Be("#fff",Np(s))}, ${Be("#fff",Np(s))})`}},...u.style}})});function Tn(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,g=bd(u[e],o),{props:{component:y,...x},internalRef:C}=Ab({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g}),p=He(C,g==null?void 0:g.ref,t.ref),m=e==="root"?y||l:y,v=$b(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...x,...m&&{as:m},ref:p},o);return[f,v]}class wu{constructor(){Xa(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 wu}static use(){const t=Ib(wu.create).current,[n,r]=h.useState(!1);return t.shouldMount=n,t.setShouldMount=r,h.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=QT(),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 GT(){return wu.use()}function QT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function XT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),h.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),w.jsx("span",{className:f,style:g,children:w.jsx("span",{className:y})})}const Wn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_p=550,qT=80,ZT=Il` +export default theme;`}function jp(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(oo(20));const u=vm(i),d=za(e);let f=Kt(d,{mixins:aT(d.breakpoints,r),palette:u,shadows:dT.slice(),typography:Vb(u,s),transitions:mT(a),zIndex:{...gT}});return f=Kt(f,c),f=t.reduce((g,y)=>Kt(g,y),f),f.unstable_sxConfig={...Al,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(y){return jo({sx:y,theme:this})},f.toRuntimeSource=Wb,f}function Np(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 vT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Np(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ub(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hb(e){return e==="dark"?vT:[]}function xT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=vm(t);return{palette:i,opacity:{...Ub(i.mode),...n},overlays:r||Hb(i.mode),...o}}function ST(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 bT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],wT=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 bT(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 CT(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function re(e,t,n){!e[t]&&n&&(e[t]=n)}function Ms(e){return typeof e!="string"||!e.startsWith("hsl")?e:Rb(e)}function Hr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Es(Ms(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 kT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const kr=e=>{try{return e()}catch{}},PT=(e="mui")=>SR(e);function wf(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=xT({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=jp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Ub(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Hb(o)},a}function ET(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=ST,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=PT(i),{[d]:g,light:y,dark:x,...C}=n,p={...C};let m=g;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(oo(21,d));const v=wf(p,m,c,d);y&&!p.light&&wf(p,y,void 0,"light"),x&&!p.dark&&wf(p,x,void 0,"dark");let S={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:p,font:{...iT(v.typography),...v.font},spacing:kT(c.spacing)};Object.keys(S.colorSchemes).forEach($=>{const b=S.colorSchemes[$].palette,R=A=>{const j=A.split("-"),O=j[1],I=j[2];return f(A,b[O][I])};if(b.mode==="light"&&(re(b.common,"background","#fff"),re(b.common,"onBackground","#000")),b.mode==="dark"&&(re(b.common,"background","#000"),re(b.common,"onBackground","#fff")),CT(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){re(b.Alert,"errorColor",st(b.error.light,.6)),re(b.Alert,"infoColor",st(b.info.light,.6)),re(b.Alert,"successColor",st(b.success.light,.6)),re(b.Alert,"warningColor",st(b.warning.light,.6)),re(b.Alert,"errorFilledBg",R("palette-error-main")),re(b.Alert,"infoFilledBg",R("palette-info-main")),re(b.Alert,"successFilledBg",R("palette-success-main")),re(b.Alert,"warningFilledBg",R("palette-warning-main")),re(b.Alert,"errorFilledColor",kr(()=>b.getContrastText(b.error.main))),re(b.Alert,"infoFilledColor",kr(()=>b.getContrastText(b.info.main))),re(b.Alert,"successFilledColor",kr(()=>b.getContrastText(b.success.main))),re(b.Alert,"warningFilledColor",kr(()=>b.getContrastText(b.warning.main))),re(b.Alert,"errorStandardBg",lt(b.error.light,.9)),re(b.Alert,"infoStandardBg",lt(b.info.light,.9)),re(b.Alert,"successStandardBg",lt(b.success.light,.9)),re(b.Alert,"warningStandardBg",lt(b.warning.light,.9)),re(b.Alert,"errorIconColor",R("palette-error-main")),re(b.Alert,"infoIconColor",R("palette-info-main")),re(b.Alert,"successIconColor",R("palette-success-main")),re(b.Alert,"warningIconColor",R("palette-warning-main")),re(b.AppBar,"defaultBg",R("palette-grey-100")),re(b.Avatar,"defaultBg",R("palette-grey-400")),re(b.Button,"inheritContainedBg",R("palette-grey-300")),re(b.Button,"inheritContainedHoverBg",R("palette-grey-A100")),re(b.Chip,"defaultBorder",R("palette-grey-400")),re(b.Chip,"defaultAvatarColor",R("palette-grey-700")),re(b.Chip,"defaultIconColor",R("palette-grey-700")),re(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),re(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),re(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),re(b.LinearProgress,"primaryBg",lt(b.primary.main,.62)),re(b.LinearProgress,"secondaryBg",lt(b.secondary.main,.62)),re(b.LinearProgress,"errorBg",lt(b.error.main,.62)),re(b.LinearProgress,"infoBg",lt(b.info.main,.62)),re(b.LinearProgress,"successBg",lt(b.success.main,.62)),re(b.LinearProgress,"warningBg",lt(b.warning.main,.62)),re(b.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),re(b.Slider,"primaryTrack",lt(b.primary.main,.62)),re(b.Slider,"secondaryTrack",lt(b.secondary.main,.62)),re(b.Slider,"errorTrack",lt(b.error.main,.62)),re(b.Slider,"infoTrack",lt(b.info.main,.62)),re(b.Slider,"successTrack",lt(b.success.main,.62)),re(b.Slider,"warningTrack",lt(b.warning.main,.62));const A=hc(b.background.default,.8);re(b.SnackbarContent,"bg",A),re(b.SnackbarContent,"color",kr(()=>b.getContrastText(A))),re(b.SpeedDialAction,"fabHoverBg",hc(b.background.paper,.15)),re(b.StepConnector,"border",R("palette-grey-400")),re(b.StepContent,"border",R("palette-grey-400")),re(b.Switch,"defaultColor",R("palette-common-white")),re(b.Switch,"defaultDisabledColor",R("palette-grey-100")),re(b.Switch,"primaryDisabledColor",lt(b.primary.main,.62)),re(b.Switch,"secondaryDisabledColor",lt(b.secondary.main,.62)),re(b.Switch,"errorDisabledColor",lt(b.error.main,.62)),re(b.Switch,"infoDisabledColor",lt(b.info.main,.62)),re(b.Switch,"successDisabledColor",lt(b.success.main,.62)),re(b.Switch,"warningDisabledColor",lt(b.warning.main,.62)),re(b.TableCell,"border",lt(pc(b.divider,1),.88)),re(b.Tooltip,"bg",pc(b.grey[700],.92))}if(b.mode==="dark"){re(b.Alert,"errorColor",lt(b.error.light,.6)),re(b.Alert,"infoColor",lt(b.info.light,.6)),re(b.Alert,"successColor",lt(b.success.light,.6)),re(b.Alert,"warningColor",lt(b.warning.light,.6)),re(b.Alert,"errorFilledBg",R("palette-error-dark")),re(b.Alert,"infoFilledBg",R("palette-info-dark")),re(b.Alert,"successFilledBg",R("palette-success-dark")),re(b.Alert,"warningFilledBg",R("palette-warning-dark")),re(b.Alert,"errorFilledColor",kr(()=>b.getContrastText(b.error.dark))),re(b.Alert,"infoFilledColor",kr(()=>b.getContrastText(b.info.dark))),re(b.Alert,"successFilledColor",kr(()=>b.getContrastText(b.success.dark))),re(b.Alert,"warningFilledColor",kr(()=>b.getContrastText(b.warning.dark))),re(b.Alert,"errorStandardBg",st(b.error.light,.9)),re(b.Alert,"infoStandardBg",st(b.info.light,.9)),re(b.Alert,"successStandardBg",st(b.success.light,.9)),re(b.Alert,"warningStandardBg",st(b.warning.light,.9)),re(b.Alert,"errorIconColor",R("palette-error-main")),re(b.Alert,"infoIconColor",R("palette-info-main")),re(b.Alert,"successIconColor",R("palette-success-main")),re(b.Alert,"warningIconColor",R("palette-warning-main")),re(b.AppBar,"defaultBg",R("palette-grey-900")),re(b.AppBar,"darkBg",R("palette-background-paper")),re(b.AppBar,"darkColor",R("palette-text-primary")),re(b.Avatar,"defaultBg",R("palette-grey-600")),re(b.Button,"inheritContainedBg",R("palette-grey-800")),re(b.Button,"inheritContainedHoverBg",R("palette-grey-700")),re(b.Chip,"defaultBorder",R("palette-grey-700")),re(b.Chip,"defaultAvatarColor",R("palette-grey-300")),re(b.Chip,"defaultIconColor",R("palette-grey-300")),re(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),re(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),re(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),re(b.LinearProgress,"primaryBg",st(b.primary.main,.5)),re(b.LinearProgress,"secondaryBg",st(b.secondary.main,.5)),re(b.LinearProgress,"errorBg",st(b.error.main,.5)),re(b.LinearProgress,"infoBg",st(b.info.main,.5)),re(b.LinearProgress,"successBg",st(b.success.main,.5)),re(b.LinearProgress,"warningBg",st(b.warning.main,.5)),re(b.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),re(b.Slider,"primaryTrack",st(b.primary.main,.5)),re(b.Slider,"secondaryTrack",st(b.secondary.main,.5)),re(b.Slider,"errorTrack",st(b.error.main,.5)),re(b.Slider,"infoTrack",st(b.info.main,.5)),re(b.Slider,"successTrack",st(b.success.main,.5)),re(b.Slider,"warningTrack",st(b.warning.main,.5));const A=hc(b.background.default,.98);re(b.SnackbarContent,"bg",A),re(b.SnackbarContent,"color",kr(()=>b.getContrastText(A))),re(b.SpeedDialAction,"fabHoverBg",hc(b.background.paper,.15)),re(b.StepConnector,"border",R("palette-grey-600")),re(b.StepContent,"border",R("palette-grey-600")),re(b.Switch,"defaultColor",R("palette-grey-300")),re(b.Switch,"defaultDisabledColor",R("palette-grey-600")),re(b.Switch,"primaryDisabledColor",st(b.primary.main,.55)),re(b.Switch,"secondaryDisabledColor",st(b.secondary.main,.55)),re(b.Switch,"errorDisabledColor",st(b.error.main,.55)),re(b.Switch,"infoDisabledColor",st(b.info.main,.55)),re(b.Switch,"successDisabledColor",st(b.success.main,.55)),re(b.Switch,"warningDisabledColor",st(b.warning.main,.55)),re(b.TableCell,"border",st(pc(b.divider,1),.68)),re(b.Tooltip,"bg",pc(b.grey[700],.92))}Hr(b.background,"default"),Hr(b.background,"paper"),Hr(b.common,"background"),Hr(b.common,"onBackground"),Hr(b,"divider"),Object.keys(b).forEach(A=>{const j=b[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&re(b[A],"mainChannel",Es(Ms(j.main))),j.light&&re(b[A],"lightChannel",Es(Ms(j.light))),j.dark&&re(b[A],"darkChannel",Es(Ms(j.dark))),j.contrastText&&re(b[A],"contrastTextChannel",Es(Ms(j.contrastText))),A==="text"&&(Hr(b[A],"primary"),Hr(b[A],"secondary")),A==="action"&&(j.active&&Hr(b[A],"active"),j.selected&&Hr(b[A],"selected")))})}),S=t.reduce(($,b)=>Kt($,b),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:wT(S)},{vars:k,generateThemeVars:M,generateStyleSheets:E}=CR(S,P);return S.vars=k,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([$,b])=>{S[$]=b}),S.generateThemeVars=M,S.generateStyleSheets=E,S.generateSpacing=function(){return Sb(c.spacing,fd(this))},S.getColorSchemeSelector=kR(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...Al,...c==null?void 0:c.unstable_sxConfig},S.unstable_sx=function(b){return jo({sx:b,theme:this})},S.toRuntimeSource=Wb,S}function Gy(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:vm({...n===!0?{}:n.palette,mode:t})})}function Cd(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 jp(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=jp({...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},Gy(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Gy(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),ET({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const kd=Cd();function vr(){const e=Ll(kd);return e[Qn]||e}function mt({props:e,name:t}){return xd({props:e,name:t,defaultTheme:kd,themeId:Qn})}function Yb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _n=e=>Yb(e)&&e!=="classes",K=Pb({themeId:Qn,defaultTheme:kd,rootShouldForwardProp:_n});function Qy({theme:e,...t}){const n=Qn in e?e[Qn]:void 0;return w.jsx(Fb,{...t,themeId:n?Qn:void 0,theme:n||e})}const mc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:MT,useColorScheme:L_,getInitColorSchemeScript:j_}=xR({themeId:Qn,theme:()=>Cd({cssVariables:!0}),colorSchemeStorageKey:mc.colorSchemeStorageKey,modeStorageKey:mc.modeStorageKey,defaultColorScheme:{light:mc.defaultLightColorScheme,dark:mc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Vb(e.palette,e.typography)};return t.unstable_sx=function(r){return jo({sx:r,theme:this})},t}}),RT=MT;function TT({theme:e,...t}){return typeof e=="function"?w.jsx(Qy,{theme:e,...t}):"colorSchemes"in(Qn in e?e[Qn]:e)?w.jsx(RT,{theme:e,...t}):w.jsx(Qy,{theme:e,...t})}function DT(e){return w.jsx($M,{...e,defaultTheme:kd,themeId:Qn})}function xm(e){return function(n){return w.jsx(DT,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function IT(){return vd}const Fe=pR;function Ie(e){return fR(e)}function OT(e){return ye("MuiSvgIcon",e)}me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $T=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return ve(o,OT,r)},AT=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Fe(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,g,y;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:x=>!x.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(([,x])=>x&&x.main).map(([x])=>{var C,p;return{props:{color:x},style:{color:(p=(C=(e.vars??e).palette)==null?void 0:C[x])==null?void 0:p.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:(y=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Su=h.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",...g}=r,y=h.isValidElement(o)&&o.type==="svg",x={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y},C={};u||(C.viewBox=f);const p=$T(x);return w.jsxs(AT,{as:s,className:pe(p.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...g,...y&&o.props,ownerState:x,children:[y?o.props.children:o,d?w.jsx("title",{children:d}):null]})});Su&&(Su.muiName="SvgIcon");function en(e,t){function n(r,o){return w.jsx(Su,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Su.muiName,h.memo(h.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 Fp(e,t){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fp(e,t)}function Sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fp(e,t)}function LT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function jT(e,t){e.classList?e.classList.add(t):LT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xy(e.className,t):e.setAttribute("class",Xy(e.className&&e.className.baseVal||"",t))}const qy={disabled:!1},bu=Bt.createContext(null);var Kb=function(t){return t.scrollTop},Rs="unmounted",qo="exited",Zo="entering",zi="entered",Bp="exiting",or=function(e){Sm(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=qo,i.appearStatus=Zo):l=zi:r.unmountOnExit||r.mountOnEnter?l=Rs:l=qo,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Rs?{status:qo}: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!==Zo&&a!==zi&&(i=Zo):(a===Zo||a===zi)&&(i=Bp)}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===Zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ps.findDOMNode(this);a&&Kb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qo&&this.setState({status:Rs})},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||qy.disabled){this.safeSetState({status:zi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Zo},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:zi},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||qy.disabled){this.safeSetState({status:qo},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:qo},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===Rs)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 Bt.createElement(bu.Provider,{value:null},typeof a=="function"?a(o,s):Bt.cloneElement(Bt.Children.only(a),s))},t}(Bt.Component);or.contextType=bu;or.propTypes={};function Ni(){}or.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ni,onEntering:Ni,onEntered:Ni,onExit:Ni,onExiting:Ni,onExited:Ni};or.UNMOUNTED=Rs;or.EXITED=qo;or.ENTERING=Zo;or.ENTERED=zi;or.EXITING=Bp;var FT=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return jT(t,r)})},Cf=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return NT(t,r)})},bm=function(e){Sm(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ea(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 HT(e){return ye("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 YT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(i,HT,o)},KT=K("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}`]]}})(Fe(({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)"}}]}))),yr=h.forwardRef(function(t,n){var g;const r=Ie({props:t,name:"MuiPaper"}),o=vr(),{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=YT(d);return w.jsx(KT,{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":(g=o.vars.overlays)==null?void 0:g[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Be("#fff",Np(s))}, ${Be("#fff",Np(s))})`}},...u.style}})});function Tn(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,g=bd(u[e],o),{props:{component:y,...x},internalRef:C}=Ab({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g}),p=He(C,g==null?void 0:g.ref,t.ref),m=e==="root"?y||l:y,v=$b(f,{...e==="root"&&!l&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...x,...m&&{as:m},ref:p},o);return[f,v]}class wu{constructor(){qa(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 wu}static use(){const t=Ib(wu.create).current,[n,r]=h.useState(!1);return t.shouldMount=n,t.setShouldMount=r,h.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=QT(),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 GT(){return wu.use()}function QT(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function XT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),f=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=pe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),h.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),w.jsx("span",{className:f,style:g,children:w.jsx("span",{className:y})})}const Wn=me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_p=550,qT=80,ZT=Ol` 0% { transform: scale(0); opacity: 0.1; @@ -95,7 +95,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann transform: scale(1); opacity: 0.3; } -`,JT=Il` +`,JT=Ol` 0% { opacity: 1; } @@ -103,7 +103,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 0; } -`,eD=Il` +`,eD=Ol` 0% { transform: scale(1); } @@ -158,8 +158,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann animation-iteration-count: infinite; animation-delay: 200ms; } -`,rD=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),g=hm(),y=h.useRef(null),x=h.useRef(null),C=h.useCallback(S=>{const{pulsate:P,rippleX:k,rippleY:M,rippleSize:E,cb:$}=S;c(b=>[...b,w.jsx(nD,{classes:{ripple:pe(i.ripple,Wn.ripple),rippleVisible:pe(i.rippleVisible,Wn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Wn.ripplePulsate),child:pe(i.child,Wn.child),childLeaving:pe(i.childLeaving,Wn.childLeaving),childPulsate:pe(i.childPulsate,Wn.childPulsate)},timeout:_p,pulsate:P,rippleX:k,rippleY:M,rippleSize:E},u.current)]),u.current+=1,d.current=$},[i]),p=h.useCallback((S={},P={},k=()=>{})=>{const{pulsate:M=!1,center:E=o||P.pulsate,fakeElement:$=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const b=$?null:x.current,R=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,j,O;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:I,clientY:T}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(I-R.left),j=Math.round(T-R.top)}if(E)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const I=Math.max(Math.abs((b?b.clientWidth:0)-A),A)*2+2,T=Math.max(Math.abs((b?b.clientHeight:0)-j),j)*2+2;O=Math.sqrt(I**2+T**2)}S!=null&&S.touches?y.current===null&&(y.current=()=>{C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},g.start(qT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},[o,C,g]),m=h.useCallback(()=>{p({},{pulsate:!0})},[p]),v=h.useCallback((S,P)=>{if(g.clear(),(S==null?void 0:S.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{v(S,P)});return}y.current=null,c(k=>k.length>0?k.slice(1):k),d.current=P},[g]);return h.useImperativeHandle(n,()=>({pulsate:m,start:p,stop:v}),[m,p,v]),w.jsx(tD,{className:pe(Wn.root,i.root,a),ref:x,...s,children:w.jsx(Ll,{component:null,exit:!0,children:l})})});function oD(e){return ye("MuiButtonBase",e)}const iD=me("MuiButtonBase",["root","disabled","focusVisible"]),aD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ve({root:["root",t&&"disabled",n&&"focusVisible"]},oD,o);return n&&r&&(a.root+=` ${r}`),a},sD=K("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"},[`&.${iD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ma=h.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:g,LinkComponent:y="a",onBlur:x,onClick:C,onContextMenu:p,onDragLeave:m,onFocus:v,onFocusVisible:S,onKeyDown:P,onKeyUp:k,onMouseDown:M,onMouseLeave:E,onMouseUp:$,onTouchEnd:b,onTouchMove:R,onTouchStart:A,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:I,type:T,...N}=r,D=h.useRef(null),L=GT(),z=He(L.ref,I),[V,J]=h.useState(!1);c&&V&&J(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),D.current.focus()}}),[]);const ce=L.shouldMount&&!u&&!c;h.useEffect(()=>{V&&f&&!u&&L.pulsate()},[u,f,V,L]);const se=Yr(L,"start",M,d),H=Yr(L,"stop",p,d),ae=Yr(L,"stop",m,d),ie=Yr(L,"stop",$,d),ee=Yr(L,"stop",xe=>{V&&xe.preventDefault(),E&&E(xe)},d),X=Yr(L,"start",A,d),ne=Yr(L,"stop",b,d),oe=Yr(L,"stop",R,d),W=Yr(L,"stop",xe=>{yu(xe.target)||J(!1),x&&x(xe)},!1),F=Se(xe=>{D.current||(D.current=xe.currentTarget),yu(xe.target)&&(J(!0),S&&S(xe)),v&&v(xe)}),Y=()=>{const xe=D.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},G=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&L.stop(xe,()=>{L.start(xe)}),xe.target===xe.currentTarget&&Y()&&xe.key===" "&&xe.preventDefault(),P&&P(xe),xe.target===xe.currentTarget&&Y()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),te=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&L.stop(xe,()=>{L.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&Y()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=y);const Z={};ue==="button"?(Z.type=T===void 0?"button":T,Z.disabled=c):(!N.href&&!N.to&&(Z.role="button"),c&&(Z["aria-disabled"]=c));const fe=He(n,D),ge={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=aD(ge);return w.jsxs(sD,{as:ue,className:pe(Le.root,s),ownerState:ge,onBlur:W,onClick:C,onContextMenu:H,onFocus:F,onKeyDown:G,onKeyUp:te,onMouseDown:se,onMouseLeave:ee,onMouseUp:ie,onDragLeave:ae,onTouchEnd:ne,onTouchMove:oe,onTouchStart:X,ref:fe,tabIndex:c?-1:j,type:T,...Z,...N,children:[a,ce?w.jsx(rD,{ref:z,center:i,...O}):null]})});function Yr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function lD(e){return typeof e.main=="string"}function cD(e,t=[]){if(!lD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ht(e=[]){return([,t])=>t&&cD(t,e)}function uD(e){return ye("MuiAlert",e)}const Zy=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 dD(e){return ye("MuiIconButton",e)}const fD=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pD=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(i)}`]};return ve(a,dD,t)},hD=K(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Fe(({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})`:Be(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}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be((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)}}],[`&.${fD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wa=h.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},g=pD(f);return w.jsx(hD,{className:pe(g.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),mD=en(w.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"),gD=en(w.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),yD=en(w.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"),vD=en(w.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"),xD=en(w.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"),SD=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${le(n||r)}`,`${t}${le(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ve(i,uD,o)},bD=K(yr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?ka:Pa,n=e.palette.mode==="light"?Pa:ka;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ht(["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),[`& .${Zy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["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}`,[`& .${Zy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["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)}}}))]}})),wD=K("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),CD=K("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Jy=K("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ev={success:w.jsx(mD,{fontSize:"inherit"}),warning:w.jsx(gD,{fontSize:"inherit"}),error:w.jsx(yD,{fontSize:"inherit"}),info:w.jsx(vD,{fontSize:"inherit"})},kD=h.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=ev,onClose:g,role:y="alert",severity:x="success",slotProps:C={},slots:p={},variant:m="standard",...v}=r,S={...r,color:l,severity:x,variant:m,colorSeverity:l||x},P=SD(S),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...p},slotProps:{...u,...C}},[M,E]=Tn("closeButton",{elementType:Wa,externalForwardedProps:k,ownerState:S}),[$,b]=Tn("closeIcon",{elementType:xD,externalForwardedProps:k,ownerState:S});return w.jsxs(bD,{role:y,elevation:0,ownerState:S,className:pe(P.root,a),ref:n,...v,children:[d!==!1?w.jsx(wD,{ownerState:S,className:P.icon,children:d||f[x]||ev[x]}):null,w.jsx(CD,{ownerState:S,className:P.message,children:i}),o!=null?w.jsx(Jy,{ownerState:S,className:P.action,children:o}):null,o==null&&g?w.jsx(Jy,{ownerState:S,className:P.action,children:w.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:g,...E,children:w.jsx($,{fontSize:"small",...b})})}):null]})});function PD(e){return ye("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 ED={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MD=IT(),RD=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(s,PD,a)},TD=K("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fe(({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(Ht()).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${le(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}}]}})),tv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ye=h.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!ED[r],a=MD({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:g="body1",variantMapping:y=tv,...x}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:g,variantMapping:y},p=c||(f?"p":y[g]||tv[g])||"span",m=RD(C);return w.jsx(TD,{as:p,ref:n,className:pe(m.root,l),...x,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function DD(e){return ye("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ID=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${le(t)}`,`position${le(n)}`]};return ve(o,DD,r)},nv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,OD=K(yr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],t[`color${le(n.color)}`]]}})(Fe(({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(Ht(["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?nv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?nv(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"})}}]}))),$D=h.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=ID(c);return w.jsx(OD,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var xn="top",Jn="bottom",er="right",Sn="left",km="auto",jl=[xn,Jn,er,Sn],Ra="start",ml="end",AD="clippingParents",Gb="viewport",ss="popper",LD="reference",rv=jl.reduce(function(e,t){return e.concat([t+"-"+Ra,t+"-"+ml])},[]),Qb=[].concat(jl,[km]).reduce(function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+ml])},[]),jD="beforeRead",ND="read",FD="afterRead",BD="beforeMain",_D="main",zD="afterMain",VD="beforeWrite",WD="write",UD="afterWrite",HD=[jD,ND,FD,BD,_D,zD,VD,WD,UD];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yi(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pm(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function YD(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];!Xn(i)||!Br(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 KD(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},{});!Xn(o)||!Br(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const GD={name:"applyStyles",enabled:!0,phase:"write",fn:YD,effect:KD,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var li=Math.max,Cu=Math.min,Ta=Math.round;function zp(){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 Xb(){return!/^((?!chrome|android).)*safari/i.test(zp())}function Da(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xn(e)&&(o=e.offsetWidth>0&&Ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ta(r.height)/e.offsetHeight||1);var a=yi(e)?jn(e):window,s=a.visualViewport,l=!Xb()&&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 Em(e){var t=Da(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 qb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ao(e){return jn(e).getComputedStyle(e)}function QD(e){return["table","td","th"].indexOf(Br(e))>=0}function Vo(e){return((yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pd(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(Pm(e)?e.host:null)||Vo(e)}function ov(e){return!Xn(e)||ao(e).position==="fixed"?null:e.offsetParent}function XD(e){var t=/firefox/i.test(zp()),n=/Trident/i.test(zp());if(n&&Xn(e)){var r=ao(e);if(r.position==="fixed")return null}var o=Pd(e);for(Pm(o)&&(o=o.host);Xn(o)&&["html","body"].indexOf(Br(o))<0;){var i=ao(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 Nl(e){for(var t=jn(e),n=ov(e);n&&QD(n)&&ao(n).position==="static";)n=ov(n);return n&&(Br(n)==="html"||Br(n)==="body"&&ao(n).position==="static")?t:n||XD(e)||t}function Mm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _s(e,t,n){return li(e,Cu(t,n))}function qD(e,t,n){var r=_s(e,t,n);return r>n?n:r}function Zb(){return{top:0,right:0,bottom:0,left:0}}function Jb(e){return Object.assign({},Zb(),e)}function ew(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZD=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jb(typeof t!="number"?t:ew(t,jl))};function JD(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nr(n.placement),l=Mm(s),c=[Sn,er].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=ZD(o.padding,n),f=Em(i),g=l==="y"?xn:Sn,y=l==="y"?Jn:er,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],p=Nl(i),m=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,v=x/2-C/2,S=d[g],P=m-f[u]-d[y],k=m/2-f[u]/2+v,M=_s(S,k,P),E=l;n.modifiersData[r]=(t={},t[E]=M,t.centerOffset=M-k,t)}}function e2(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)||qb(t.elements.popper,o)&&(t.elements.arrow=o))}const t2={name:"arrow",enabled:!0,phase:"main",fn:JD,effect:e2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ia(e){return e.split("-")[1]}var n2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ta(n*o)/o||0,y:Ta(r*o)/o||0}}function iv(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,g=f===void 0?0:f,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:g,y:x}):{x:g,y:x};g=C.x,x=C.y;var p=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=Sn,S=xn,P=window;if(c){var k=Nl(n),M="clientHeight",E="clientWidth";if(k===jn(n)&&(k=Vo(n),ao(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",E="scrollWidth")),k=k,o===xn||(o===Sn||o===er)&&i===ml){S=Jn;var $=d&&k===P&&P.visualViewport?P.visualViewport.height:k[M];x-=$-r.height,x*=l?1:-1}if(o===Sn||(o===xn||o===Jn)&&i===ml){v=er;var b=d&&k===P&&P.visualViewport?P.visualViewport.width:k[E];g-=b-r.width,g*=l?1:-1}}var R=Object.assign({position:s},c&&n2),A=u===!0?r2({x:g,y:x},jn(n)):{x:g,y:x};if(g=A.x,x=A.y,l){var j;return Object.assign({},R,(j={},j[S]=m?"0":"",j[v]=p?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",j))}return Object.assign({},R,(t={},t[S]=m?x+"px":"",t[v]=p?g+"px":"",t.transform="",t))}function o2(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:Nr(t.placement),variation:Ia(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,iv(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,iv(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 i2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o2,data:{}};var gc={passive:!0};function a2(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=jn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,gc)}),s&&l.addEventListener("resize",n.update,gc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,gc)}),s&&l.removeEventListener("resize",n.update,gc)}}const s2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a2,data:{}};var l2={left:"right",right:"left",bottom:"top",top:"bottom"};function Vc(e){return e.replace(/left|right|bottom|top/g,function(t){return l2[t]})}var c2={start:"end",end:"start"};function av(e){return e.replace(/start|end/g,function(t){return c2[t]})}function Rm(e){var t=jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tm(e){return Da(Vo(e)).left+Rm(e).scrollLeft}function u2(e,t){var n=jn(e),r=Vo(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Xb();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Tm(e),y:l}}function d2(e){var t,n=Vo(e),r=Rm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=li(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=li(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Tm(e),l=-r.scrollTop;return ao(o||n).direction==="rtl"&&(s+=li(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Dm(e){var t=ao(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tw(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:Xn(e)&&Dm(e)?e:tw(Pd(e))}function zs(e,t){var n;t===void 0&&(t=[]);var r=tw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=jn(r),a=o?[i].concat(i.visualViewport||[],Dm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(zs(Pd(a)))}function Vp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f2(e,t){var n=Da(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 sv(e,t,n){return t===Gb?Vp(u2(e,n)):yi(t)?f2(t,n):Vp(d2(Vo(e)))}function p2(e){var t=zs(Pd(e)),n=["absolute","fixed"].indexOf(ao(e).position)>=0,r=n&&Xn(e)?Nl(e):e;return yi(r)?t.filter(function(o){return yi(o)&&qb(o,r)&&Br(o)!=="body"}):[]}function h2(e,t,n,r){var o=t==="clippingParents"?p2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=sv(e,c,r);return l.top=li(u.top,l.top),l.right=Cu(u.right,l.right),l.bottom=Cu(u.bottom,l.bottom),l.left=li(u.left,l.left),l},sv(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 nw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Nr(r):null,i=r?Ia(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case xn:l={x:a,y:t.y-n.height};break;case Jn:l={x:a,y:t.y+t.height};break;case er:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Mm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ra:l[c]=l[c]-(t[u]/2-n[u]/2);break;case ml:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function gl(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?AD:s,c=n.rootBoundary,u=c===void 0?Gb:c,d=n.elementContext,f=d===void 0?ss:d,g=n.altBoundary,y=g===void 0?!1:g,x=n.padding,C=x===void 0?0:x,p=Jb(typeof C!="number"?C:ew(C,jl)),m=f===ss?LD:ss,v=e.rects.popper,S=e.elements[y?m:f],P=h2(yi(S)?S:S.contextElement||Vo(e.elements.popper),l,u,a),k=Da(e.elements.reference),M=nw({reference:k,element:v,strategy:"absolute",placement:o}),E=Vp(Object.assign({},v,M)),$=f===ss?E:k,b={top:P.top-$.top+p.top,bottom:$.bottom-P.bottom+p.bottom,left:P.left-$.left+p.left,right:$.right-P.right+p.right},R=e.modifiersData.offset;if(f===ss&&R){var A=R[o];Object.keys(b).forEach(function(j){var O=[er,Jn].indexOf(j)>=0?1:-1,I=[xn,Jn].indexOf(j)>=0?"y":"x";b[j]+=A[I]*O})}return b}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?Qb:l,u=Ia(r),d=u?s?rv:rv.filter(function(y){return Ia(y)===u}):jl,f=d.filter(function(y){return c.indexOf(y)>=0});f.length===0&&(f=d);var g=f.reduce(function(y,x){return y[x]=gl(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Nr(x)],y},{});return Object.keys(g).sort(function(y,x){return g[y]-g[x]})}function g2(e){if(Nr(e)===km)return[];var t=Vc(e);return[av(e),t,av(t)]}function y2(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,g=n.flipVariations,y=g===void 0?!0:g,x=n.allowedAutoPlacements,C=t.options.placement,p=Nr(C),m=p===C,v=l||(m||!y?[Vc(C)]:g2(C)),S=[C].concat(v).reduce(function(se,H){return se.concat(Nr(H)===km?m2(t,{placement:H,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:x}):H)},[]),P=t.rects.reference,k=t.rects.popper,M=new Map,E=!0,$=S[0],b=0;b=0,I=O?"width":"height",T=gl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?er:Sn:j?Jn:xn;P[I]>k[I]&&(N=Vc(N));var D=Vc(N),L=[];if(i&&L.push(T[A]<=0),s&&L.push(T[N]<=0,T[D]<=0),L.every(function(se){return se})){$=R,E=!1;break}M.set(R,L)}if(E)for(var z=y?3:1,V=function(H){var ae=S.find(function(ie){var ee=M.get(ie);if(ee)return ee.slice(0,H).every(function(X){return X})});if(ae)return $=ae,"break"},J=z;J>0;J--){var ce=V(J);if(ce==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const v2={name:"flip",enabled:!0,phase:"main",fn:y2,requiresIfExists:["offset"],data:{_skip:!1}};function lv(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 cv(e){return[xn,er,Jn,Sn].some(function(t){return e[t]>=0})}function x2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=gl(t,{elementContext:"reference"}),s=gl(t,{altBoundary:!0}),l=lv(a,r),c=lv(s,o,i),u=cv(l),d=cv(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 S2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x2};function b2(e,t,n){var r=Nr(e),o=[Sn,xn].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,[Sn,er].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function w2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Qb.reduce(function(u,d){return u[d]=b2(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 C2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w2};function k2(e){var t=e.state,n=e.name;t.modifiersData[n]=nw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const P2={name:"popperOffsets",enabled:!0,phase:"read",fn:k2,data:{}};function E2(e){return e==="x"?"y":"x"}function M2(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,g=f===void 0?!0:f,y=n.tetherOffset,x=y===void 0?0:y,C=gl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Nr(t.placement),m=Ia(t.placement),v=!m,S=Mm(p),P=E2(S),k=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,$=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,b=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=S==="y"?xn:Sn,I=S==="y"?Jn:er,T=S==="y"?"height":"width",N=k[S],D=N+C[O],L=N-C[I],z=g?-E[T]/2:0,V=m===Ra?M[T]:E[T],J=m===Ra?-E[T]:-M[T],ce=t.elements.arrow,se=g&&ce?Em(ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zb(),ae=H[O],ie=H[I],ee=_s(0,M[T],se[T]),X=v?M[T]/2-z-ee-ae-b.mainAxis:V-ee-ae-b.mainAxis,ne=v?-M[T]/2+z+ee+ie+b.mainAxis:J+ee+ie+b.mainAxis,oe=t.elements.arrow&&Nl(t.elements.arrow),W=oe?S==="y"?oe.clientTop||0:oe.clientLeft||0:0,F=(j=R==null?void 0:R[S])!=null?j:0,Y=N+X-F-W,G=N+ne-F,te=_s(g?Cu(D,Y):D,N,g?li(L,G):L);k[S]=te,A[S]=te-N}if(s){var ue,Z=S==="x"?xn:Sn,fe=S==="x"?Jn:er,ge=k[P],Le=P==="y"?"height":"width",xe=ge+C[Z],tt=ge-C[fe],Ee=[xn,Sn].indexOf(p)!==-1,_e=(ue=R==null?void 0:R[P])!=null?ue:0,ct=Ee?xe:ge-M[Le]-E[Le]-_e+b.altAxis,je=Ee?ge+M[Le]+E[Le]-_e-b.altAxis:tt,Oe=g&&Ee?qD(ct,ge,je):_s(g?ct:xe,ge,g?je:tt);k[P]=Oe,A[P]=Oe-ge}t.modifiersData[r]=A}}const R2={name:"preventOverflow",enabled:!0,phase:"main",fn:M2,requiresIfExists:["offset"]};function T2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function D2(e){return e===jn(e)||!Xn(e)?Rm(e):T2(e)}function I2(e){var t=e.getBoundingClientRect(),n=Ta(t.width)/e.offsetWidth||1,r=Ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function O2(e,t,n){n===void 0&&(n=!1);var r=Xn(t),o=Xn(t)&&I2(t),i=Vo(t),a=Da(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Br(t)!=="body"||Dm(i))&&(s=D2(t)),Xn(t)?(l=Da(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Tm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $2(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 A2(e){var t=$2(e);return HD.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function L2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function j2(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 uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(_2(o)||document.body)},[o,i]),Vt(()=>{if(a&&!i)return Lp(n,a),()=>{Lp(n,null)}},[n,a,i]),i){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return r}return a&&Qu.createPortal(r,a)});function z2(e){return ye("MuiPopper",e)}me("MuiPopper",["root"]);function V2(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 Wp(e){return typeof e=="function"?e():e}function W2(e){return e.nodeType!==void 0}const U2=e=>{const{classes:t}=e;return ve({root:["root"]},z2,t)},H2={},Y2=h.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:g={},TransitionProps:y,ownerState:x,...C}=t,p=h.useRef(null),m=He(p,n),v=h.useRef(null),S=He(v,d),P=h.useRef(S);Vt(()=>{P.current=S},[S]),h.useImperativeHandle(d,()=>v.current,[]);const k=V2(c,i),[M,E]=h.useState(k),[$,b]=h.useState(Wp(r));h.useEffect(()=>{v.current&&v.current.forceUpdate()}),h.useEffect(()=>{r&&b(Wp(r))},[r]),Vt(()=>{if(!$||!l)return;const I=D=>{E(D.placement)};let T=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{I(D)}}];s!=null&&(T=T.concat(s)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const N=B2($,p.current,{placement:k,...u,modifiers:T});return P.current(N),()=>{N.destroy(),P.current(null)}},[$,a,s,l,u,k]);const R={placement:M};y!==null&&(R.TransitionProps=y);const A=U2(t),j=g.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return w.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),K2=h.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=H2,popperRef:g,style:y,transition:x=!1,slotProps:C={},slots:p={},...m}=t,[v,S]=h.useState(!0),P=()=>{S(!1)},k=()=>{S(!0)};if(!l&&!u&&(!x||v))return null;let M;if(i)M=i;else if(r){const b=Wp(r);M=b&&W2(b)?zt(b).body:zt(null).body}const E=!u&&l&&(!x||v)?"none":void 0,$=x?{in:u,onEnter:P,onExited:k}:void 0;return w.jsx(rw,{disablePortal:s,container:M,children:w.jsx(Y2,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!v:u,placement:d,popperOptions:f,popperRef:g,slotProps:C,slots:p,...m,style:{position:"fixed",top:0,left:0,display:E,...y},TransitionProps:$,children:o})})}),G2=K(K2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q2=h.forwardRef(function(t,n){const r=rr(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:y,popperOptions:x,popperRef:C,transition:p,slots:m,slotProps:v,...S}=o,P=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:y,popperOptions:x,popperRef:C,transition:p,...S};return w.jsx(G2,{as:a,direction:r?"rtl":"ltr",slots:{root:P},slotProps:v??l,...k,ref:n})}),X2=en(w.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 q2(e){return ye("MuiChip",e)}const ze=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"]),Z2=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${le(r)}`,`color${le(o)}`,s&&"clickable",s&&`clickableColor${le(o)}`,a&&"deletable",a&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return ve(c,q2,t)},J2=K("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[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${le(s)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${le(s)}`]},{[`& .${ze.icon}`]:t[`iconColor${le(o)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${le(s)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(s)}`],t[`color${le(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${le(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Fe(({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",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Be(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)`:Be(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ht(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Be(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ze.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}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ze.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]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ht()).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)`:Be(e.palette[n].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),eI=K("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(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 fv(e){return e.key==="Backspace"||e.key==="Delete"}const tI=h.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:g,onDelete:y,onKeyDown:x,onKeyUp:C,size:p="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,...P}=r,k=h.useRef(null),M=He(k,n),E=L=>{L.stopPropagation(),y&&y(L)},$=L=>{L.currentTarget===L.target&&fv(L)&&L.preventDefault(),x&&x(L)},b=L=>{L.currentTarget===L.target&&y&&fv(L)&&y(L),C&&C(L)},R=a!==!1&&g?!0:a,A=R||y?Ma:l||"div",j={...r,component:A,disabled:u,size:p,color:s,iconColor:h.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:R,variant:m},O=Z2(j),I=A===Ma?{component:l||"div",focusVisibleClassName:O.focusVisible,...y&&{disableRipple:!0}}:{};let T=null;y&&(T=c&&h.isValidElement(c)?h.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:E}):w.jsx(X2,{className:pe(O.deleteIcon),onClick:E}));let N=null;o&&h.isValidElement(o)&&(N=h.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let D=null;return d&&h.isValidElement(d)&&(D=h.cloneElement(d,{className:pe(O.icon,d.props.className)})),w.jsxs(J2,{as:A,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:g,onKeyDown:$,onKeyUp:b,ref:M,tabIndex:S&&u?-1:v,ownerState:j,...I,...P,children:[N||D,w.jsx(eI,{className:pe(O.label),ownerState:j,children:f}),T]})});function yc(e){return parseInt(e,10)||0}const nI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const oI=h.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=h.useRef(s!=null),u=h.useRef(null),d=He(n,u),f=h.useRef(null),g=h.useRef(null),y=h.useCallback(()=>{const p=u.current,v=gr(p).getComputedStyle(p);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=g.current;S.style.width=v.width,S.value=p.value||t.placeholder||"x",S.value.slice(-1)===` -`&&(S.value+=" ");const P=v.boxSizing,k=yc(v.paddingBottom)+yc(v.paddingTop),M=yc(v.borderBottomWidth)+yc(v.borderTopWidth),E=S.scrollHeight;S.value="x";const $=S.scrollHeight;let b=E;i&&(b=Math.max(Number(i)*$,b)),o&&(b=Math.min(Number(o)*$,b)),b=Math.max(b,$);const R=b+(P==="border-box"?k+M:0),A=Math.abs(b-E)<=1;return{outerHeightStyle:R,overflowing:A}},[o,i,t.placeholder]),x=h.useCallback(()=>{const p=y();if(rI(p))return;const m=p.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=p.overflowing?"hidden":""},[y]);Vt(()=>{const p=()=>{x()};let m;const v=fm(p),S=u.current,P=gr(S);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(p),k.observe(S)),()=>{v.clear(),cancelAnimationFrame(m),P.removeEventListener("resize",v),k&&k.disconnect()}},[y,x]),Vt(()=>{x()});const C=p=>{c||x(),r&&r(p)};return w.jsxs(h.Fragment,{children:[w.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...nI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function yl(e){return typeof e=="string"}function Ua({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 Ed=h.createContext(void 0);function xr(){return h.useContext(Ed)}function pv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ku(e,t=!1){return e&&(pv(e.value)&&e.value!==""||t&&pv(e.defaultValue)&&e.defaultValue!=="")}function iI(e){return e.startAdornment}function aI(e){return ye("MuiInputBase",e)}const Oa=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hv;const Md=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rd=(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]},sI=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:g,type:y}=e,x={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${le(f)}`,u&&"multiline",g&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ve(x,aI,t)},Td=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})(Fe(({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",[`&.${Oa.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%"}}]}))),Dd=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rd})(Fe(({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] + .${Oa.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},[`&.${Oa.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"}}]}})),mv=xm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Im=h.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:g,endAdornment:y,error:x,fullWidth:C=!1,id:p,inputComponent:m="input",inputProps:v={},inputRef:S,margin:P,maxRows:k,minRows:M,multiline:E=!1,name:$,onBlur:b,onChange:R,onClick:A,onFocus:j,onKeyDown:O,onKeyUp:I,placeholder:T,readOnly:N,renderSuffix:D,rows:L,size:z,slotProps:V={},slots:J={},startAdornment:ce,type:se="text",value:H,...ae}=r,ie=v.value!=null?v.value:H,{current:ee}=h.useRef(ie!=null),X=h.useRef(),ne=h.useCallback(Ne=>{},[]),oe=He(X,S,v.ref,ne),[W,F]=h.useState(!1),Y=xr(),G=Ua({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=Y?Y.focused:W,h.useEffect(()=>{!Y&&f&&W&&(F(!1),b&&b())},[Y,f,W,b]);const te=Y&&Y.onFilled,ue=Y&&Y.onEmpty,Z=h.useCallback(Ne=>{ku(Ne)?te&&te():ue&&ue()},[te,ue]);Vt(()=>{ee&&Z({value:ie})},[ie,Z,ee]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),Y&&Y.onFocus?Y.onFocus(Ne):F(!0)},ge=Ne=>{b&&b(Ne),v.onBlur&&v.onBlur(Ne),Y&&Y.onBlur?Y.onBlur(Ne):F(!1)},Le=(Ne,...at)=>{if(!ee){const zn=Ne.target||X.current;if(zn==null)throw new Error(oo(1));Z({value:zn.value})}v.onChange&&v.onChange(Ne,...at),R&&R(Ne,...at)};h.useEffect(()=>{Z(X.current)},[]);const xe=Ne=>{X.current&&Ne.currentTarget===Ne.target&&X.current.focus(),A&&A(Ne)};let tt=m,Ee=v;E&&tt==="input"&&(L?Ee={type:void 0,minRows:L,maxRows:L,...Ee}:Ee={type:void 0,maxRows:k,minRows:M,...Ee},tt=oI);const _e=Ne=>{Z(Ne.animationName==="mui-auto-fill-cancel"?X.current:{value:"x"})};h.useEffect(()=>{Y&&Y.setAdornedStart(!!ce)},[Y,ce]);const ct={...r,color:G.color||"primary",disabled:G.disabled,endAdornment:y,error:G.error,focused:G.focused,formControl:Y,fullWidth:C,hiddenLabel:G.hiddenLabel,multiline:E,size:G.size,startAdornment:ce,type:se},je=sI(ct),Oe=J.root||c.Root||Td,ft=V.root||u.root||{},$t=J.input||c.Input||Dd;return Ee={...Ee,...V.input??u.input},w.jsxs(h.Fragment,{children:[!g&&typeof mv=="function"&&(hv||(hv=w.jsx(mv,{}))),w.jsxs(Oe,{...ft,ref:n,onClick:xe,...ae,...!yl(Oe)&&{ownerState:{...ct,...ft.ownerState}},className:pe(je.root,ft.className,s,N&&"MuiInputBase-readOnly"),children:[ce,w.jsx(Ed.Provider,{value:null,children:w.jsx($t,{"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:G.disabled,id:p,onAnimationStart:_e,name:$,placeholder:T,readOnly:N,required:G.required,rows:L,value:ie,onKeyDown:O,onKeyUp:I,type:se,...Ee,...!yl($t)&&{as:tt,ownerState:{...ct,...Ee.ownerState}},ref:oe,className:pe(je.input,Ee.className,N&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Le,onFocus:fe})}),y,D?D({...G,startAdornment:ce}):null]})]})});function lI(e){return ye("MuiInput",e)}const ls={...Oa,...me("MuiInput",["root","underline","input"])};function cI(e){return ye("MuiOutlinedInput",e)}const Pr={...Oa,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function uI(e){return ye("MuiFilledInput",e)}const Ho={...Oa,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},dI=en(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fI={entering:{opacity:1},entered:{opacity:1}},Ha=h.forwardRef(function(t,n){const r=vr(),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:g,onExited:y,onExiting:x,style:C,timeout:p=o,TransitionComponent:m=or,...v}=t,S=h.useRef(null),P=He(S,ki(s),n),k=O=>I=>{if(O){const T=S.current;I===void 0?O(T):O(T,I)}},M=k(f),E=k((O,I)=>{Cm(O);const T=Ea({style:C,timeout:p,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",T),O.style.transition=r.transitions.create("opacity",T),u&&u(O,I)}),$=k(d),b=k(x),R=k(O=>{const I=Ea({style:C,timeout:p,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),g&&g(O)}),A=k(y),j=O=>{i&&i(S.current,O)};return w.jsx(m,{appear:a,in:c,nodeRef:S,onEnter:E,onEntered:$,onEntering:M,onExit:R,onExited:A,onExiting:b,addEndListener:j,timeout:p,...v,children:(O,I)=>h.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...fI[O],...C,...s.props.style},ref:P,...I})})});function pI(e){return ye("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const hI=e=>{const{ownerState:t,...n}=e;return n},mI=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},pI,t)},gI=K("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"}}]}),ow=h.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:g,transitionDuration:y,...x}=r,C={...r,component:a,invisible:s},p=mI(C),m={transition:g,root:c.Root,...f},v={...u,...d},S={slots:m,slotProps:v},[P,k]=Tn("root",{elementType:gI,externalForwardedProps:S,className:pe(p.root,i),ownerState:C}),[M,E]=Tn("transition",{elementType:Ha,externalForwardedProps:S,ownerState:C}),$=hI(E);return w.jsx(M,{in:l,timeout:y,...x,...$,children:w.jsx(P,{"aria-hidden":!0,...k,classes:p,ref:n,children:o})})}),yI=me("MuiBox",["root"]),vI=Cd(),an=jM({themeId:Qn,defaultTheme:vI,defaultClassName:yI.root,generateClassName:bb.generate});function xI(e){return ye("MuiButton",e)}const Fi=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"]),SI=h.createContext({}),bI=h.createContext(void 0),wI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${le(t)}`,`size${le(o)}`,`${i}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`]},l=ve(s,xI,a);return{...a,...l}},iw=[{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}}}],CI=K(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Fe(({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"},[`&.${Fi.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]},[`&.${Fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fi.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)",[`&.${Fi.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(Ht()).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)`:Be(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})`:Be(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})`:Be(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})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(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"},[`&.${Fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),kI=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${le(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...iw]}),PI=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${le(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...iw]}),Tt=h.forwardRef(function(t,n){const r=h.useContext(SI),o=h.useContext(bI),i=hl(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:g=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:p="medium",startIcon:m,type:v,variant:S="text",...P}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:g,fullWidth:C,size:p,type:v,variant:S},M=wI(k),E=m&&w.jsx(kI,{className:M.startIcon,ownerState:k,children:m}),$=y&&w.jsx(PI,{className:M.endIcon,ownerState:k,children:y}),b=o||"";return w.jsxs(CI,{ownerState:k,className:pe(r.className,M.root,u,b),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:pe(M.focusVisible,x),ref:n,type:v,...P,classes:M,children:[E,s,$]})});function EI(e){return ye("MuiCard",e)}me("MuiCard",["root"]);const MI=e=>{const{classes:t}=e;return ve({root:["root"]},EI,t)},RI=K(yr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),vl=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=MI(s);return w.jsx(RI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function TI(e){return ye("MuiCardContent",e)}me("MuiCardContent",["root"]);const DI=e=>{const{classes:t}=e;return ve({root:["root"]},TI,t)},II=K("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),aw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=DI(s);return w.jsx(II,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function OI(e){return ye("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const $I=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ve({root:["root",n&&"media",r&&"img"]},OI,t)},AI=K("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"}}]}),LI=["video","audio","picture","iframe","img"],jI=["picture","img"],NI=h.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=LI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,g={...r,component:a,isMediaComponent:d,isImageComponent:jI.includes(a)},y=$I(g);return w.jsx(AI,{className:pe(y.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:g,src:d?s||l:void 0,...u,children:o})});function FI(e){return ye("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ho=44,Up=Il` +`,rD=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),g=hm(),y=h.useRef(null),x=h.useRef(null),C=h.useCallback(S=>{const{pulsate:P,rippleX:k,rippleY:M,rippleSize:E,cb:$}=S;c(b=>[...b,w.jsx(nD,{classes:{ripple:pe(i.ripple,Wn.ripple),rippleVisible:pe(i.rippleVisible,Wn.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Wn.ripplePulsate),child:pe(i.child,Wn.child),childLeaving:pe(i.childLeaving,Wn.childLeaving),childPulsate:pe(i.childPulsate,Wn.childPulsate)},timeout:_p,pulsate:P,rippleX:k,rippleY:M,rippleSize:E},u.current)]),u.current+=1,d.current=$},[i]),p=h.useCallback((S={},P={},k=()=>{})=>{const{pulsate:M=!1,center:E=o||P.pulsate,fakeElement:$=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const b=$?null:x.current,R=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,j,O;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:I,clientY:T}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(I-R.left),j=Math.round(T-R.top)}if(E)O=Math.sqrt((2*R.width**2+R.height**2)/3),O%2===0&&(O+=1);else{const I=Math.max(Math.abs((b?b.clientWidth:0)-A),A)*2+2,T=Math.max(Math.abs((b?b.clientHeight:0)-j),j)*2+2;O=Math.sqrt(I**2+T**2)}S!=null&&S.touches?y.current===null&&(y.current=()=>{C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},g.start(qT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:M,rippleX:A,rippleY:j,rippleSize:O,cb:k})},[o,C,g]),m=h.useCallback(()=>{p({},{pulsate:!0})},[p]),v=h.useCallback((S,P)=>{if(g.clear(),(S==null?void 0:S.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{v(S,P)});return}y.current=null,c(k=>k.length>0?k.slice(1):k),d.current=P},[g]);return h.useImperativeHandle(n,()=>({pulsate:m,start:p,stop:v}),[m,p,v]),w.jsx(tD,{className:pe(Wn.root,i.root,a),ref:x,...s,children:w.jsx(jl,{component:null,exit:!0,children:l})})});function oD(e){return ye("MuiButtonBase",e)}const iD=me("MuiButtonBase",["root","disabled","focusVisible"]),aD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ve({root:["root",t&&"disabled",n&&"focusVisible"]},oD,o);return n&&r&&(a.root+=` ${r}`),a},sD=K("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"},[`&.${iD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ma=h.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:g,LinkComponent:y="a",onBlur:x,onClick:C,onContextMenu:p,onDragLeave:m,onFocus:v,onFocusVisible:S,onKeyDown:P,onKeyUp:k,onMouseDown:M,onMouseLeave:E,onMouseUp:$,onTouchEnd:b,onTouchMove:R,onTouchStart:A,tabIndex:j=0,TouchRippleProps:O,touchRippleRef:I,type:T,...N}=r,D=h.useRef(null),L=GT(),z=He(L.ref,I),[V,J]=h.useState(!1);c&&V&&J(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),D.current.focus()}}),[]);const ce=L.shouldMount&&!u&&!c;h.useEffect(()=>{V&&f&&!u&&L.pulsate()},[u,f,V,L]);const se=Yr(L,"start",M,d),H=Yr(L,"stop",p,d),ae=Yr(L,"stop",m,d),ie=Yr(L,"stop",$,d),ee=Yr(L,"stop",xe=>{V&&xe.preventDefault(),E&&E(xe)},d),X=Yr(L,"start",A,d),ne=Yr(L,"stop",b,d),oe=Yr(L,"stop",R,d),W=Yr(L,"stop",xe=>{yu(xe.target)||J(!1),x&&x(xe)},!1),F=Se(xe=>{D.current||(D.current=xe.currentTarget),yu(xe.target)&&(J(!0),S&&S(xe)),v&&v(xe)}),Y=()=>{const xe=D.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},G=Se(xe=>{f&&!xe.repeat&&V&&xe.key===" "&&L.stop(xe,()=>{L.start(xe)}),xe.target===xe.currentTarget&&Y()&&xe.key===" "&&xe.preventDefault(),P&&P(xe),xe.target===xe.currentTarget&&Y()&&xe.key==="Enter"&&!c&&(xe.preventDefault(),C&&C(xe))}),te=Se(xe=>{f&&xe.key===" "&&V&&!xe.defaultPrevented&&L.stop(xe,()=>{L.pulsate(xe)}),k&&k(xe),C&&xe.target===xe.currentTarget&&Y()&&xe.key===" "&&!xe.defaultPrevented&&C(xe)});let ue=l;ue==="button"&&(N.href||N.to)&&(ue=y);const Z={};ue==="button"?(Z.type=T===void 0?"button":T,Z.disabled=c):(!N.href&&!N.to&&(Z.role="button"),c&&(Z["aria-disabled"]=c));const fe=He(n,D),ge={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:V},Le=aD(ge);return w.jsxs(sD,{as:ue,className:pe(Le.root,s),ownerState:ge,onBlur:W,onClick:C,onContextMenu:H,onFocus:F,onKeyDown:G,onKeyUp:te,onMouseDown:se,onMouseLeave:ee,onMouseUp:ie,onDragLeave:ae,onTouchEnd:ne,onTouchMove:oe,onTouchStart:X,ref:fe,tabIndex:c?-1:j,type:T,...Z,...N,children:[a,ce?w.jsx(rD,{ref:z,center:i,...O}):null]})});function Yr(e,t,n,r=!1){return Se(o=>(n&&n(o),r||e[t](o),!0))}function lD(e){return typeof e.main=="string"}function cD(e,t=[]){if(!lD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ht(e=[]){return([,t])=>t&&cD(t,e)}function uD(e){return ye("MuiAlert",e)}const Zy=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 dD(e){return ye("MuiIconButton",e)}const fD=me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pD=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(i)}`]};return ve(a,dD,t)},hD=K(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Fe(({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})`:Be(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}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be((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)}}],[`&.${fD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Wa=h.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},g=pD(f);return w.jsx(hD,{className:pe(g.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),mD=en(w.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"),gD=en(w.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),yD=en(w.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"),vD=en(w.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"),xD=en(w.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"),SD=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${le(n||r)}`,`${t}${le(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ve(i,uD,o)},bD=K(yr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?ka:Pa,n=e.palette.mode==="light"?Pa:ka;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ht(["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),[`& .${Zy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["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}`,[`& .${Zy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ht(["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)}}}))]}})),wD=K("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),CD=K("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Jy=K("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ev={success:w.jsx(mD,{fontSize:"inherit"}),warning:w.jsx(gD,{fontSize:"inherit"}),error:w.jsx(yD,{fontSize:"inherit"}),info:w.jsx(vD,{fontSize:"inherit"})},kD=h.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=ev,onClose:g,role:y="alert",severity:x="success",slotProps:C={},slots:p={},variant:m="standard",...v}=r,S={...r,color:l,severity:x,variant:m,colorSeverity:l||x},P=SD(S),k={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...p},slotProps:{...u,...C}},[M,E]=Tn("closeButton",{elementType:Wa,externalForwardedProps:k,ownerState:S}),[$,b]=Tn("closeIcon",{elementType:xD,externalForwardedProps:k,ownerState:S});return w.jsxs(bD,{role:y,elevation:0,ownerState:S,className:pe(P.root,a),ref:n,...v,children:[d!==!1?w.jsx(wD,{ownerState:S,className:P.icon,children:d||f[x]||ev[x]}):null,w.jsx(CD,{ownerState:S,className:P.message,children:i}),o!=null?w.jsx(Jy,{ownerState:S,className:P.action,children:o}):null,o==null&&g?w.jsx(Jy,{ownerState:S,className:P.action,children:w.jsx(M,{size:"small","aria-label":s,title:s,color:"inherit",onClick:g,...E,children:w.jsx($,{fontSize:"small",...b})})}):null]})});function PD(e){return ye("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 ED={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MD=IT(),RD=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(s,PD,a)},TD=K("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fe(({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(Ht()).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${le(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}}]}})),tv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ye=h.forwardRef(function(t,n){const{color:r,...o}=Ie({props:t,name:"MuiTypography"}),i=!ED[r],a=MD({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:g="body1",variantMapping:y=tv,...x}=a,C={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:g,variantMapping:y},p=c||(f?"p":y[g]||tv[g])||"span",m=RD(C);return w.jsx(TD,{as:p,ref:n,className:pe(m.root,l),...x,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function DD(e){return ye("MuiAppBar",e)}me("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ID=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${le(t)}`,`position${le(n)}`]};return ve(o,DD,r)},nv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,OD=K(yr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],t[`color${le(n.color)}`]]}})(Fe(({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(Ht(["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?nv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?nv(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"})}}]}))),$D=h.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=ID(c);return w.jsx(OD,{square:!0,component:"header",ownerState:c,elevation:4,className:pe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});var xn="top",Jn="bottom",er="right",Sn="left",km="auto",Nl=[xn,Jn,er,Sn],Ra="start",gl="end",AD="clippingParents",Gb="viewport",ls="popper",LD="reference",rv=Nl.reduce(function(e,t){return e.concat([t+"-"+Ra,t+"-"+gl])},[]),Qb=[].concat(Nl,[km]).reduce(function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+gl])},[]),jD="beforeRead",ND="read",FD="afterRead",BD="beforeMain",_D="main",zD="afterMain",VD="beforeWrite",WD="write",UD="afterWrite",HD=[jD,ND,FD,BD,_D,zD,VD,WD,UD];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yi(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pm(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function YD(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];!Xn(i)||!Br(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 KD(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},{});!Xn(o)||!Br(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const GD={name:"applyStyles",enabled:!0,phase:"write",fn:YD,effect:KD,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var li=Math.max,Cu=Math.min,Ta=Math.round;function zp(){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 Xb(){return!/^((?!chrome|android).)*safari/i.test(zp())}function Da(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Xn(e)&&(o=e.offsetWidth>0&&Ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ta(r.height)/e.offsetHeight||1);var a=yi(e)?jn(e):window,s=a.visualViewport,l=!Xb()&&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 Em(e){var t=Da(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 qb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ao(e){return jn(e).getComputedStyle(e)}function QD(e){return["table","td","th"].indexOf(Br(e))>=0}function Vo(e){return((yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pd(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(Pm(e)?e.host:null)||Vo(e)}function ov(e){return!Xn(e)||ao(e).position==="fixed"?null:e.offsetParent}function XD(e){var t=/firefox/i.test(zp()),n=/Trident/i.test(zp());if(n&&Xn(e)){var r=ao(e);if(r.position==="fixed")return null}var o=Pd(e);for(Pm(o)&&(o=o.host);Xn(o)&&["html","body"].indexOf(Br(o))<0;){var i=ao(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 Fl(e){for(var t=jn(e),n=ov(e);n&&QD(n)&&ao(n).position==="static";)n=ov(n);return n&&(Br(n)==="html"||Br(n)==="body"&&ao(n).position==="static")?t:n||XD(e)||t}function Mm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zs(e,t,n){return li(e,Cu(t,n))}function qD(e,t,n){var r=zs(e,t,n);return r>n?n:r}function Zb(){return{top:0,right:0,bottom:0,left:0}}function Jb(e){return Object.assign({},Zb(),e)}function ew(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZD=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jb(typeof t!="number"?t:ew(t,Nl))};function JD(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nr(n.placement),l=Mm(s),c=[Sn,er].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=ZD(o.padding,n),f=Em(i),g=l==="y"?xn:Sn,y=l==="y"?Jn:er,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],p=Fl(i),m=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,v=x/2-C/2,S=d[g],P=m-f[u]-d[y],k=m/2-f[u]/2+v,M=zs(S,k,P),E=l;n.modifiersData[r]=(t={},t[E]=M,t.centerOffset=M-k,t)}}function e2(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)||qb(t.elements.popper,o)&&(t.elements.arrow=o))}const t2={name:"arrow",enabled:!0,phase:"main",fn:JD,effect:e2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ia(e){return e.split("-")[1]}var n2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ta(n*o)/o||0,y:Ta(r*o)/o||0}}function iv(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,g=f===void 0?0:f,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:g,y:x}):{x:g,y:x};g=C.x,x=C.y;var p=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=Sn,S=xn,P=window;if(c){var k=Fl(n),M="clientHeight",E="clientWidth";if(k===jn(n)&&(k=Vo(n),ao(k).position!=="static"&&s==="absolute"&&(M="scrollHeight",E="scrollWidth")),k=k,o===xn||(o===Sn||o===er)&&i===gl){S=Jn;var $=d&&k===P&&P.visualViewport?P.visualViewport.height:k[M];x-=$-r.height,x*=l?1:-1}if(o===Sn||(o===xn||o===Jn)&&i===gl){v=er;var b=d&&k===P&&P.visualViewport?P.visualViewport.width:k[E];g-=b-r.width,g*=l?1:-1}}var R=Object.assign({position:s},c&&n2),A=u===!0?r2({x:g,y:x},jn(n)):{x:g,y:x};if(g=A.x,x=A.y,l){var j;return Object.assign({},R,(j={},j[S]=m?"0":"",j[v]=p?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",j))}return Object.assign({},R,(t={},t[S]=m?x+"px":"",t[v]=p?g+"px":"",t.transform="",t))}function o2(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:Nr(t.placement),variation:Ia(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,iv(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,iv(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 i2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o2,data:{}};var gc={passive:!0};function a2(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=jn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,gc)}),s&&l.addEventListener("resize",n.update,gc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,gc)}),s&&l.removeEventListener("resize",n.update,gc)}}const s2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a2,data:{}};var l2={left:"right",right:"left",bottom:"top",top:"bottom"};function Vc(e){return e.replace(/left|right|bottom|top/g,function(t){return l2[t]})}var c2={start:"end",end:"start"};function av(e){return e.replace(/start|end/g,function(t){return c2[t]})}function Rm(e){var t=jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tm(e){return Da(Vo(e)).left+Rm(e).scrollLeft}function u2(e,t){var n=jn(e),r=Vo(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Xb();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Tm(e),y:l}}function d2(e){var t,n=Vo(e),r=Rm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=li(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=li(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Tm(e),l=-r.scrollTop;return ao(o||n).direction==="rtl"&&(s+=li(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Dm(e){var t=ao(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tw(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:Xn(e)&&Dm(e)?e:tw(Pd(e))}function Vs(e,t){var n;t===void 0&&(t=[]);var r=tw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=jn(r),a=o?[i].concat(i.visualViewport||[],Dm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Vs(Pd(a)))}function Vp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f2(e,t){var n=Da(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 sv(e,t,n){return t===Gb?Vp(u2(e,n)):yi(t)?f2(t,n):Vp(d2(Vo(e)))}function p2(e){var t=Vs(Pd(e)),n=["absolute","fixed"].indexOf(ao(e).position)>=0,r=n&&Xn(e)?Fl(e):e;return yi(r)?t.filter(function(o){return yi(o)&&qb(o,r)&&Br(o)!=="body"}):[]}function h2(e,t,n,r){var o=t==="clippingParents"?p2(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=sv(e,c,r);return l.top=li(u.top,l.top),l.right=Cu(u.right,l.right),l.bottom=Cu(u.bottom,l.bottom),l.left=li(u.left,l.left),l},sv(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 nw(e){var t=e.reference,n=e.element,r=e.placement,o=r?Nr(r):null,i=r?Ia(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case xn:l={x:a,y:t.y-n.height};break;case Jn:l={x:a,y:t.y+t.height};break;case er:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Mm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ra:l[c]=l[c]-(t[u]/2-n[u]/2);break;case gl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function yl(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?AD:s,c=n.rootBoundary,u=c===void 0?Gb:c,d=n.elementContext,f=d===void 0?ls:d,g=n.altBoundary,y=g===void 0?!1:g,x=n.padding,C=x===void 0?0:x,p=Jb(typeof C!="number"?C:ew(C,Nl)),m=f===ls?LD:ls,v=e.rects.popper,S=e.elements[y?m:f],P=h2(yi(S)?S:S.contextElement||Vo(e.elements.popper),l,u,a),k=Da(e.elements.reference),M=nw({reference:k,element:v,strategy:"absolute",placement:o}),E=Vp(Object.assign({},v,M)),$=f===ls?E:k,b={top:P.top-$.top+p.top,bottom:$.bottom-P.bottom+p.bottom,left:P.left-$.left+p.left,right:$.right-P.right+p.right},R=e.modifiersData.offset;if(f===ls&&R){var A=R[o];Object.keys(b).forEach(function(j){var O=[er,Jn].indexOf(j)>=0?1:-1,I=[xn,Jn].indexOf(j)>=0?"y":"x";b[j]+=A[I]*O})}return b}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?Qb:l,u=Ia(r),d=u?s?rv:rv.filter(function(y){return Ia(y)===u}):Nl,f=d.filter(function(y){return c.indexOf(y)>=0});f.length===0&&(f=d);var g=f.reduce(function(y,x){return y[x]=yl(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Nr(x)],y},{});return Object.keys(g).sort(function(y,x){return g[y]-g[x]})}function g2(e){if(Nr(e)===km)return[];var t=Vc(e);return[av(e),t,av(t)]}function y2(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,g=n.flipVariations,y=g===void 0?!0:g,x=n.allowedAutoPlacements,C=t.options.placement,p=Nr(C),m=p===C,v=l||(m||!y?[Vc(C)]:g2(C)),S=[C].concat(v).reduce(function(se,H){return se.concat(Nr(H)===km?m2(t,{placement:H,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:x}):H)},[]),P=t.rects.reference,k=t.rects.popper,M=new Map,E=!0,$=S[0],b=0;b=0,I=O?"width":"height",T=yl(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=O?j?er:Sn:j?Jn:xn;P[I]>k[I]&&(N=Vc(N));var D=Vc(N),L=[];if(i&&L.push(T[A]<=0),s&&L.push(T[N]<=0,T[D]<=0),L.every(function(se){return se})){$=R,E=!1;break}M.set(R,L)}if(E)for(var z=y?3:1,V=function(H){var ae=S.find(function(ie){var ee=M.get(ie);if(ee)return ee.slice(0,H).every(function(X){return X})});if(ae)return $=ae,"break"},J=z;J>0;J--){var ce=V(J);if(ce==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const v2={name:"flip",enabled:!0,phase:"main",fn:y2,requiresIfExists:["offset"],data:{_skip:!1}};function lv(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 cv(e){return[xn,er,Jn,Sn].some(function(t){return e[t]>=0})}function x2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=yl(t,{elementContext:"reference"}),s=yl(t,{altBoundary:!0}),l=lv(a,r),c=lv(s,o,i),u=cv(l),d=cv(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 S2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x2};function b2(e,t,n){var r=Nr(e),o=[Sn,xn].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,[Sn,er].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function w2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Qb.reduce(function(u,d){return u[d]=b2(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 C2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w2};function k2(e){var t=e.state,n=e.name;t.modifiersData[n]=nw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const P2={name:"popperOffsets",enabled:!0,phase:"read",fn:k2,data:{}};function E2(e){return e==="x"?"y":"x"}function M2(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,g=f===void 0?!0:f,y=n.tetherOffset,x=y===void 0?0:y,C=yl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Nr(t.placement),m=Ia(t.placement),v=!m,S=Mm(p),P=E2(S),k=t.modifiersData.popperOffsets,M=t.rects.reference,E=t.rects.popper,$=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,b=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=S==="y"?xn:Sn,I=S==="y"?Jn:er,T=S==="y"?"height":"width",N=k[S],D=N+C[O],L=N-C[I],z=g?-E[T]/2:0,V=m===Ra?M[T]:E[T],J=m===Ra?-E[T]:-M[T],ce=t.elements.arrow,se=g&&ce?Em(ce):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zb(),ae=H[O],ie=H[I],ee=zs(0,M[T],se[T]),X=v?M[T]/2-z-ee-ae-b.mainAxis:V-ee-ae-b.mainAxis,ne=v?-M[T]/2+z+ee+ie+b.mainAxis:J+ee+ie+b.mainAxis,oe=t.elements.arrow&&Fl(t.elements.arrow),W=oe?S==="y"?oe.clientTop||0:oe.clientLeft||0:0,F=(j=R==null?void 0:R[S])!=null?j:0,Y=N+X-F-W,G=N+ne-F,te=zs(g?Cu(D,Y):D,N,g?li(L,G):L);k[S]=te,A[S]=te-N}if(s){var ue,Z=S==="x"?xn:Sn,fe=S==="x"?Jn:er,ge=k[P],Le=P==="y"?"height":"width",xe=ge+C[Z],tt=ge-C[fe],Ee=[xn,Sn].indexOf(p)!==-1,_e=(ue=R==null?void 0:R[P])!=null?ue:0,ct=Ee?xe:ge-M[Le]-E[Le]-_e+b.altAxis,je=Ee?ge+M[Le]+E[Le]-_e-b.altAxis:tt,Oe=g&&Ee?qD(ct,ge,je):zs(g?ct:xe,ge,g?je:tt);k[P]=Oe,A[P]=Oe-ge}t.modifiersData[r]=A}}const R2={name:"preventOverflow",enabled:!0,phase:"main",fn:M2,requiresIfExists:["offset"]};function T2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function D2(e){return e===jn(e)||!Xn(e)?Rm(e):T2(e)}function I2(e){var t=e.getBoundingClientRect(),n=Ta(t.width)/e.offsetWidth||1,r=Ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function O2(e,t,n){n===void 0&&(n=!1);var r=Xn(t),o=Xn(t)&&I2(t),i=Vo(t),a=Da(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Br(t)!=="body"||Dm(i))&&(s=D2(t)),Xn(t)?(l=Da(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Tm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $2(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 A2(e){var t=$2(e);return HD.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function L2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function j2(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 uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(_2(o)||document.body)},[o,i]),Vt(()=>{if(a&&!i)return Lp(n,a),()=>{Lp(n,null)}},[n,a,i]),i){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return r}return a&&Qu.createPortal(r,a)});function z2(e){return ye("MuiPopper",e)}me("MuiPopper",["root"]);function V2(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 Wp(e){return typeof e=="function"?e():e}function W2(e){return e.nodeType!==void 0}const U2=e=>{const{classes:t}=e;return ve({root:["root"]},z2,t)},H2={},Y2=h.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:g={},TransitionProps:y,ownerState:x,...C}=t,p=h.useRef(null),m=He(p,n),v=h.useRef(null),S=He(v,d),P=h.useRef(S);Vt(()=>{P.current=S},[S]),h.useImperativeHandle(d,()=>v.current,[]);const k=V2(c,i),[M,E]=h.useState(k),[$,b]=h.useState(Wp(r));h.useEffect(()=>{v.current&&v.current.forceUpdate()}),h.useEffect(()=>{r&&b(Wp(r))},[r]),Vt(()=>{if(!$||!l)return;const I=D=>{E(D.placement)};let T=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{I(D)}}];s!=null&&(T=T.concat(s)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const N=B2($,p.current,{placement:k,...u,modifiers:T});return P.current(N),()=>{N.destroy(),P.current(null)}},[$,a,s,l,u,k]);const R={placement:M};y!==null&&(R.TransitionProps=y);const A=U2(t),j=g.root??"div",O=Qe({elementType:j,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return w.jsx(j,{...O,children:typeof o=="function"?o(R):o})}),K2=h.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=H2,popperRef:g,style:y,transition:x=!1,slotProps:C={},slots:p={},...m}=t,[v,S]=h.useState(!0),P=()=>{S(!1)},k=()=>{S(!0)};if(!l&&!u&&(!x||v))return null;let M;if(i)M=i;else if(r){const b=Wp(r);M=b&&W2(b)?zt(b).body:zt(null).body}const E=!u&&l&&(!x||v)?"none":void 0,$=x?{in:u,onEnter:P,onExited:k}:void 0;return w.jsx(rw,{disablePortal:s,container:M,children:w.jsx(Y2,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!v:u,placement:d,popperOptions:f,popperRef:g,slotProps:C,slots:p,...m,style:{position:"fixed",top:0,left:0,display:E,...y},TransitionProps:$,children:o})})}),G2=K(K2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q2=h.forwardRef(function(t,n){const r=rr(),o=Ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:y,popperOptions:x,popperRef:C,transition:p,slots:m,slotProps:v,...S}=o,P=(m==null?void 0:m.root)??(s==null?void 0:s.Root),k={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:g,placement:y,popperOptions:x,popperRef:C,transition:p,...S};return w.jsx(G2,{as:a,direction:r?"rtl":"ltr",slots:{root:P},slotProps:v??l,...k,ref:n})}),X2=en(w.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 q2(e){return ye("MuiChip",e)}const ze=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"]),Z2=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${le(r)}`,`color${le(o)}`,s&&"clickable",s&&`clickableColor${le(o)}`,a&&"deletable",a&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return ve(c,q2,t)},J2=K("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[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${le(s)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${le(s)}`]},{[`& .${ze.icon}`]:t[`iconColor${le(o)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${le(s)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(s)}`],t[`color${le(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${le(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Fe(({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",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Be(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)`:Be(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ht(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Be(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ze.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}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ht(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ze.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]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ht()).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)`:Be(e.palette[n].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),eI=K("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(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 fv(e){return e.key==="Backspace"||e.key==="Delete"}const tI=h.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:g,onDelete:y,onKeyDown:x,onKeyUp:C,size:p="medium",variant:m="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,...P}=r,k=h.useRef(null),M=He(k,n),E=L=>{L.stopPropagation(),y&&y(L)},$=L=>{L.currentTarget===L.target&&fv(L)&&L.preventDefault(),x&&x(L)},b=L=>{L.currentTarget===L.target&&y&&fv(L)&&y(L),C&&C(L)},R=a!==!1&&g?!0:a,A=R||y?Ma:l||"div",j={...r,component:A,disabled:u,size:p,color:s,iconColor:h.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:R,variant:m},O=Z2(j),I=A===Ma?{component:l||"div",focusVisibleClassName:O.focusVisible,...y&&{disableRipple:!0}}:{};let T=null;y&&(T=c&&h.isValidElement(c)?h.cloneElement(c,{className:pe(c.props.className,O.deleteIcon),onClick:E}):w.jsx(X2,{className:pe(O.deleteIcon),onClick:E}));let N=null;o&&h.isValidElement(o)&&(N=h.cloneElement(o,{className:pe(O.avatar,o.props.className)}));let D=null;return d&&h.isValidElement(d)&&(D=h.cloneElement(d,{className:pe(O.icon,d.props.className)})),w.jsxs(J2,{as:A,className:pe(O.root,i),disabled:R&&u?!0:void 0,onClick:g,onKeyDown:$,onKeyUp:b,ref:M,tabIndex:S&&u?-1:v,ownerState:j,...I,...P,children:[N||D,w.jsx(eI,{className:pe(O.label),ownerState:j,children:f}),T]})});function yc(e){return parseInt(e,10)||0}const nI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const oI=h.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=h.useRef(s!=null),u=h.useRef(null),d=He(n,u),f=h.useRef(null),g=h.useRef(null),y=h.useCallback(()=>{const p=u.current,v=gr(p).getComputedStyle(p);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=g.current;S.style.width=v.width,S.value=p.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const P=v.boxSizing,k=yc(v.paddingBottom)+yc(v.paddingTop),M=yc(v.borderBottomWidth)+yc(v.borderTopWidth),E=S.scrollHeight;S.value="x";const $=S.scrollHeight;let b=E;i&&(b=Math.max(Number(i)*$,b)),o&&(b=Math.min(Number(o)*$,b)),b=Math.max(b,$);const R=b+(P==="border-box"?k+M:0),A=Math.abs(b-E)<=1;return{outerHeightStyle:R,overflowing:A}},[o,i,t.placeholder]),x=h.useCallback(()=>{const p=y();if(rI(p))return;const m=p.outerHeightStyle,v=u.current;f.current!==m&&(f.current=m,v.style.height=`${m}px`),v.style.overflow=p.overflowing?"hidden":""},[y]);Vt(()=>{const p=()=>{x()};let m;const v=fm(p),S=u.current,P=gr(S);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(p),k.observe(S)),()=>{v.clear(),cancelAnimationFrame(m),P.removeEventListener("resize",v),k&&k.disconnect()}},[y,x]),Vt(()=>{x()});const C=p=>{c||x(),r&&r(p)};return w.jsxs(h.Fragment,{children:[w.jsx("textarea",{value:s,onChange:C,ref:d,rows:i,style:a,...l}),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...nI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function vl(e){return typeof e=="string"}function Ua({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 Ed=h.createContext(void 0);function xr(){return h.useContext(Ed)}function pv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ku(e,t=!1){return e&&(pv(e.value)&&e.value!==""||t&&pv(e.defaultValue)&&e.defaultValue!=="")}function iI(e){return e.startAdornment}function aI(e){return ye("MuiInputBase",e)}const Oa=me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hv;const Md=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rd=(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]},sI=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:g,type:y}=e,x={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${le(f)}`,u&&"multiline",g&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ve(x,aI,t)},Td=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})(Fe(({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",[`&.${Oa.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%"}}]}))),Dd=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rd})(Fe(({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] + .${Oa.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},[`&.${Oa.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"}}]}})),mv=xm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Im=h.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:g,endAdornment:y,error:x,fullWidth:C=!1,id:p,inputComponent:m="input",inputProps:v={},inputRef:S,margin:P,maxRows:k,minRows:M,multiline:E=!1,name:$,onBlur:b,onChange:R,onClick:A,onFocus:j,onKeyDown:O,onKeyUp:I,placeholder:T,readOnly:N,renderSuffix:D,rows:L,size:z,slotProps:V={},slots:J={},startAdornment:ce,type:se="text",value:H,...ae}=r,ie=v.value!=null?v.value:H,{current:ee}=h.useRef(ie!=null),X=h.useRef(),ne=h.useCallback(Ne=>{},[]),oe=He(X,S,v.ref,ne),[W,F]=h.useState(!1),Y=xr(),G=Ua({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=Y?Y.focused:W,h.useEffect(()=>{!Y&&f&&W&&(F(!1),b&&b())},[Y,f,W,b]);const te=Y&&Y.onFilled,ue=Y&&Y.onEmpty,Z=h.useCallback(Ne=>{ku(Ne)?te&&te():ue&&ue()},[te,ue]);Vt(()=>{ee&&Z({value:ie})},[ie,Z,ee]);const fe=Ne=>{j&&j(Ne),v.onFocus&&v.onFocus(Ne),Y&&Y.onFocus?Y.onFocus(Ne):F(!0)},ge=Ne=>{b&&b(Ne),v.onBlur&&v.onBlur(Ne),Y&&Y.onBlur?Y.onBlur(Ne):F(!1)},Le=(Ne,...at)=>{if(!ee){const zn=Ne.target||X.current;if(zn==null)throw new Error(oo(1));Z({value:zn.value})}v.onChange&&v.onChange(Ne,...at),R&&R(Ne,...at)};h.useEffect(()=>{Z(X.current)},[]);const xe=Ne=>{X.current&&Ne.currentTarget===Ne.target&&X.current.focus(),A&&A(Ne)};let tt=m,Ee=v;E&&tt==="input"&&(L?Ee={type:void 0,minRows:L,maxRows:L,...Ee}:Ee={type:void 0,maxRows:k,minRows:M,...Ee},tt=oI);const _e=Ne=>{Z(Ne.animationName==="mui-auto-fill-cancel"?X.current:{value:"x"})};h.useEffect(()=>{Y&&Y.setAdornedStart(!!ce)},[Y,ce]);const ct={...r,color:G.color||"primary",disabled:G.disabled,endAdornment:y,error:G.error,focused:G.focused,formControl:Y,fullWidth:C,hiddenLabel:G.hiddenLabel,multiline:E,size:G.size,startAdornment:ce,type:se},je=sI(ct),Oe=J.root||c.Root||Td,ft=V.root||u.root||{},$t=J.input||c.Input||Dd;return Ee={...Ee,...V.input??u.input},w.jsxs(h.Fragment,{children:[!g&&typeof mv=="function"&&(hv||(hv=w.jsx(mv,{}))),w.jsxs(Oe,{...ft,ref:n,onClick:xe,...ae,...!vl(Oe)&&{ownerState:{...ct,...ft.ownerState}},className:pe(je.root,ft.className,s,N&&"MuiInputBase-readOnly"),children:[ce,w.jsx(Ed.Provider,{value:null,children:w.jsx($t,{"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:G.disabled,id:p,onAnimationStart:_e,name:$,placeholder:T,readOnly:N,required:G.required,rows:L,value:ie,onKeyDown:O,onKeyUp:I,type:se,...Ee,...!vl($t)&&{as:tt,ownerState:{...ct,...Ee.ownerState}},ref:oe,className:pe(je.input,Ee.className,N&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Le,onFocus:fe})}),y,D?D({...G,startAdornment:ce}):null]})]})});function lI(e){return ye("MuiInput",e)}const cs={...Oa,...me("MuiInput",["root","underline","input"])};function cI(e){return ye("MuiOutlinedInput",e)}const Pr={...Oa,...me("MuiOutlinedInput",["root","notchedOutline","input"])};function uI(e){return ye("MuiFilledInput",e)}const Ho={...Oa,...me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},dI=en(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fI={entering:{opacity:1},entered:{opacity:1}},Ha=h.forwardRef(function(t,n){const r=vr(),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:g,onExited:y,onExiting:x,style:C,timeout:p=o,TransitionComponent:m=or,...v}=t,S=h.useRef(null),P=He(S,ki(s),n),k=O=>I=>{if(O){const T=S.current;I===void 0?O(T):O(T,I)}},M=k(f),E=k((O,I)=>{Cm(O);const T=Ea({style:C,timeout:p,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",T),O.style.transition=r.transitions.create("opacity",T),u&&u(O,I)}),$=k(d),b=k(x),R=k(O=>{const I=Ea({style:C,timeout:p,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),g&&g(O)}),A=k(y),j=O=>{i&&i(S.current,O)};return w.jsx(m,{appear:a,in:c,nodeRef:S,onEnter:E,onEntered:$,onEntering:M,onExit:R,onExited:A,onExiting:b,addEndListener:j,timeout:p,...v,children:(O,I)=>h.cloneElement(s,{style:{opacity:0,visibility:O==="exited"&&!c?"hidden":void 0,...fI[O],...C,...s.props.style},ref:P,...I})})});function pI(e){return ye("MuiBackdrop",e)}me("MuiBackdrop",["root","invisible"]);const hI=e=>{const{ownerState:t,...n}=e;return n},mI=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},pI,t)},gI=K("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"}}]}),ow=h.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:g,transitionDuration:y,...x}=r,C={...r,component:a,invisible:s},p=mI(C),m={transition:g,root:c.Root,...f},v={...u,...d},S={slots:m,slotProps:v},[P,k]=Tn("root",{elementType:gI,externalForwardedProps:S,className:pe(p.root,i),ownerState:C}),[M,E]=Tn("transition",{elementType:Ha,externalForwardedProps:S,ownerState:C}),$=hI(E);return w.jsx(M,{in:l,timeout:y,...x,...$,children:w.jsx(P,{"aria-hidden":!0,...k,classes:p,ref:n,children:o})})}),yI=me("MuiBox",["root"]),vI=Cd(),an=jM({themeId:Qn,defaultTheme:vI,defaultClassName:yI.root,generateClassName:bb.generate});function xI(e){return ye("MuiButton",e)}const Fi=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"]),SI=h.createContext({}),bI=h.createContext(void 0),wI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${le(t)}`,`size${le(o)}`,`${i}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`]},l=ve(s,xI,a);return{...a,...l}},iw=[{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}}}],CI=K(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Fe(({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"},[`&.${Fi.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]},[`&.${Fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fi.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)",[`&.${Fi.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(Ht()).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)`:Be(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})`:Be(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})`:Be(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})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(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"},[`&.${Fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),kI=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${le(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...iw]}),PI=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${le(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...iw]}),Tt=h.forwardRef(function(t,n){const r=h.useContext(SI),o=h.useContext(bI),i=ml(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:g=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:p="medium",startIcon:m,type:v,variant:S="text",...P}=a,k={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:g,fullWidth:C,size:p,type:v,variant:S},M=wI(k),E=m&&w.jsx(kI,{className:M.startIcon,ownerState:k,children:m}),$=y&&w.jsx(PI,{className:M.endIcon,ownerState:k,children:y}),b=o||"";return w.jsxs(CI,{ownerState:k,className:pe(r.className,M.root,u,b),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:pe(M.focusVisible,x),ref:n,type:v,...P,classes:M,children:[E,s,$]})});function EI(e){return ye("MuiCard",e)}me("MuiCard",["root"]);const MI=e=>{const{classes:t}=e;return ve({root:["root"]},EI,t)},RI=K(yr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),xl=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=MI(s);return w.jsx(RI,{className:pe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function TI(e){return ye("MuiCardContent",e)}me("MuiCardContent",["root"]);const DI=e=>{const{classes:t}=e;return ve({root:["root"]},TI,t)},II=K("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),aw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=DI(s);return w.jsx(II,{as:i,className:pe(l.root,o),ownerState:s,ref:n,...a})});function OI(e){return ye("MuiCardMedia",e)}me("MuiCardMedia",["root","media","img"]);const $I=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ve({root:["root",n&&"media",r&&"img"]},OI,t)},AI=K("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"}}]}),LI=["video","audio","picture","iframe","img"],jI=["picture","img"],NI=h.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=LI.includes(a),f=!d&&s?{backgroundImage:`url("${s}")`,...c}:c,g={...r,component:a,isMediaComponent:d,isImageComponent:jI.includes(a)},y=$I(g);return w.jsx(AI,{className:pe(y.root,i),as:a,role:!d&&s?"img":void 0,ref:n,style:f,ownerState:g,src:d?s||l:void 0,...u,children:o})});function FI(e){return ye("MuiCircularProgress",e)}me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ho=44,Up=Ol` 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); } -`,Hp=Il` +`,Hp=Ol` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -186,7 +186,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann animation: ${Up} 1.4s linear infinite; `:null,_I=typeof Hp!="string"?im` animation: ${Hp} 1.4s ease-in-out infinite; - `:null,zI=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return ve(i,FI,t)},VI=K("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:BI||{animation:`${Up} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),WI=K("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),UI=K("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({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:_I||{animation:`${Hp} 1.4s ease-in-out infinite`}}]}))),Fl=h.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,g={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},y=zI(g),x={},C={},p={};if(d==="determinate"){const m=2*Math.PI*((ho-c)/2);x.strokeDasharray=m.toFixed(3),p["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return w.jsx(VI,{className:pe(y.root,o),style:{width:s,height:s,...C,...l},ownerState:g,ref:n,role:"progressbar",...p,...f,children:w.jsx(WI,{className:y.svg,ownerState:g,viewBox:`${ho/2} ${ho/2} ${ho} ${ho}`,children:w.jsx(UI,{className:y.circle,style:x,ownerState:g,cx:ho,cy:ho,r:(ho-c)/2,fill:"none",strokeWidth:c})})})});function gv(e){return e.substring(2).toLowerCase()}function HI(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=He(ki(t),s),d=Se(y=>{const x=c.current;c.current=!1;const C=zt(s.current);if(!l.current||!s.current||"clientX"in y&&HI(y,C))return;if(a.current){a.current=!1;return}let p;y.composedPath?p=y.composedPath().includes(s.current):p=!C.documentElement.contains(y.target)||s.current.contains(y.target),!p&&(n||!x)&&o(y)}),f=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},g={ref:u};return i!==!1&&(g[i]=f(i)),h.useEffect(()=>{if(i!==!1){const y=gv(i),x=zt(s.current),C=()=>{a.current=!0};return x.addEventListener(y,d),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,d),x.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(g[r]=f(r)),h.useEffect(()=>{if(r!==!1){const y=gv(r),x=zt(s.current);return x.addEventListener(y,d),()=>{x.removeEventListener(y,d)}}},[d,r]),h.cloneElement(t,g)}const sw=TR({createStyledComponent:K("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${le(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),Yp=typeof xm({})=="function",KI=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),GI=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}}),lw=(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:KI(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...GI(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},Wc="mui-ecs",QI=e=>{const t=lw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Wc})`]={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(.${Wc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Wc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},XI=xm(Yp?({theme:e,enableColorScheme:t})=>lw(e,t):({theme:e})=>QI(e));function cw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return w.jsxs(h.Fragment,{children:[Yp&&w.jsx(XI,{enableColorScheme:r}),!Yp&&!r&&w.jsx("span",{className:Wc,style:{display:"none"}}),n]})}function qI(e){const t=zt(e);return t.body===e?gr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yv(e){return parseInt(gr(e).getComputedStyle(e).paddingRight,10)||0}function ZI(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 vv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!ZI(a);s&&l&&Vs(a,o)})}function kf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function JI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(qI(r)){const a=Ob(gr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yv(r)+a}px`;const s=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${yv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=zt(r).body;else{const a=r.parentElement,s=gr(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 eO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tO{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&&Vs(t.modalRef,!1);const o=eO(n);vv(n,t.mount,t.modalRef,o,!0);const i=kf(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=kf(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=JI(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=kf(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&&Vs(t.modalRef,n),vv(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&&Vs(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rO(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 oO(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 iO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||oO(e))}function aO(e){const t=[],n=[];return Array.from(e.querySelectorAll(nO)).forEach((r,o)=>{const i=rO(r);i===-1||!iO(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 sO(){return!0}function uw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=aO,isEnabled:a=sO,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),g=h.useRef(!1),y=h.useRef(null),x=He(ki(t),y),C=h.useRef(null);h.useEffect(()=>{!s||!y.current||(g.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!y.current)return;const v=zt(y.current);return y.current.contains(v.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),h.useEffect(()=>{if(!s||!y.current)return;const v=zt(y.current),S=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===y.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{var $,b;const M=y.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(!g.current)return;let E=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(E=i(y.current)),E.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((b=C.current)==null?void 0:b.key)==="Tab"),A=E[0],j=E[E.length-1];typeof A!="string"&&typeof j!="string"&&(R?j.focus():A.focus())}else M.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",S,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",S,!0)}},[n,r,o,a,s,i]);const p=v=>{d.current===null&&(d.current=v.relatedTarget),g.current=!0,f.current=v.target;const S=t.props.onFocus;S&&S(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),g.current=!0};return w.jsxs(h.Fragment,{children:[w.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:x,onFocus:p}),w.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function lO(e){return typeof e=="function"?e():e}function cO(e){return e?e.props.hasOwnProperty("in"):!1}const xv=()=>{},vc=new tO;function uO(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=h.useRef({}),f=h.useRef(null),g=h.useRef(null),y=He(g,u),[x,C]=h.useState(!c),p=cO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>zt(f.current),S=()=>(d.current.modalRef=g.current,d.current.mount=f.current,d.current),P=()=>{vc.mount(S(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Se(()=>{const I=lO(t)||v().body;vc.add(S(),I),g.current&&P()}),M=()=>vc.isTopModal(S()),E=Se(I=>{f.current=I,I&&(c&&M()?P():g.current&&Vs(g.current,m))}),$=h.useCallback(()=>{vc.remove(S(),m)},[m]);h.useEffect(()=>()=>{$()},[$]),h.useEffect(()=>{c?k():(!p||!o)&&$()},[c,$,p,o,k]);const b=I=>T=>{var N;(N=I.onKeyDown)==null||N.call(I,T),!(T.key!=="Escape"||T.which===229||!M())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},R=I=>T=>{var N;(N=I.onClick)==null||N.call(I,T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(I={})=>{const T=vu(e);delete T.onTransitionEnter,delete T.onTransitionExited;const N={...T,...I};return{role:"presentation",...N,onKeyDown:b(N),ref:y}},getBackdropProps:(I={})=>{const T=I;return{"aria-hidden":!0,...T,onClick:R(T),open:c}},getTransitionProps:()=>{const I=()=>{C(!1),i&&i()},T=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Oy(I,(s==null?void 0:s.props.onEnter)??xv),onExited:Oy(T,(s==null?void 0:s.props.onExited)??xv)}},rootRef:y,portalRef:E,isTopModal:M,exited:x,hasTransition:p}}function dO(e){return ye("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const fO=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dO,r)},pO=K("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fe(({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"}}]}))),hO=K(ow,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Om=h.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=hO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:p=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:k,onClose:M,onTransitionEnter:E,onTransitionExited:$,open:b,slotProps:R={},slots:A={},theme:j,...O}=r,I={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:p,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:S,keepMounted:P},{getRootProps:T,getBackdropProps:N,getTransitionProps:D,portalRef:L,isTopModal:z,exited:V,hasTransition:J}=uO({...I,rootRef:n}),ce={...I,exited:V},se=fO(ce),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),J){const{onEnter:W,onExited:F}=D();H.onEnter=W,H.onExited=F}const ae={...O,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...g,...R}},[ie,ee]=Tn("root",{elementType:pO,externalForwardedProps:ae,getSlotProps:T,additionalProps:{ref:n,as:d},ownerState:ce,className:pe(s,se==null?void 0:se.root,!ce.open&&ce.exited&&(se==null?void 0:se.hidden))}),[X,ne]=Tn("backdrop",{elementType:o,externalForwardedProps:ae,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,se==null?void 0:se.backdrop),ownerState:ce}),oe=He(i==null?void 0:i.ref,ne.ref);return!P&&!b&&(!J||V)?null:w.jsx(rw,{ref:L,container:u,disablePortal:p,children:w.jsxs(ie,{...ee,children:[!S&&o?w.jsx(X,{...ne,ref:oe}):null,w.jsx(uw,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:m,isEnabled:z,open:b,children:h.cloneElement(c,H)})]})})});function mO(e){return ye("MuiDialog",e)}const Ws=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gO=h.createContext({}),yO=K(ow,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),vO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ve(a,mO,t)},xO=K(Om,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),SO=K("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),bO=K(yr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fe(({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)`,[`&.${Ws.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}`,[`&.${Ws.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,[`&.${Ws.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=vr(),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:g=!1,fullScreen:y=!1,fullWidth:x=!1,maxWidth:C="sm",onBackdropClick:p,onClick:m,onClose:v,open:S,PaperComponent:P=yr,PaperProps:k={},scroll:M="paper",TransitionComponent:E=Ha,transitionDuration:$=i,TransitionProps:b,...R}=r,A={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:x,maxWidth:C,scroll:M},j=vO(A),O=h.useRef(),I=L=>{O.current=L.target===L.currentTarget},T=L=>{m&&m(L),O.current&&(O.current=null,p&&p(L),v&&v(L,"backdropClick"))},N=zo(s),D=h.useMemo(()=>({titleId:N}),[N]);return w.jsx(xO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:yO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:g,onClose:v,open:S,ref:n,onClick:T,ownerState:A,...R,children:w.jsx(E,{appear:!0,in:S,timeout:$,role:"presentation",...b,children:w.jsx(SO,{className:pe(j.container),onMouseDown:I,ownerState:A,children:w.jsx(bO,{as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:A,children:w.jsx(gO.Provider,{value:D,children:d})})})})})});function CO(e){return ye("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const kO=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},CO,t)},PO=K("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}}}]}),EO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=kO(s);return w.jsx(PO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function MO(e){return ye("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);const RO=me("MuiDialogTitle",["root"]),TO=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},MO,t)},DO=K("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fe(({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:{[`.${RO.root} + &`]:{paddingTop:0}}}]}))),IO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=TO(s);return w.jsx(DO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),Sv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function OO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=gr(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 $O(e){return typeof e=="function"?e():e}function xc(e,t,n){const r=$O(n),o=OO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const AO=h.forwardRef(function(t,n){const r=vr(),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:g,onEntered:y,onEntering:x,onExit:C,onExited:p,onExiting:m,style:v,timeout:S=i,TransitionComponent:P=or,...k}=t,M=h.useRef(null),E=He(ki(l),M,n),$=D=>L=>{D&&(L===void 0?D(M.current):D(M.current,L))},b=$((D,L)=>{xc(u,D,c),Cm(D),g&&g(D,L)}),R=$((D,L)=>{const z=Ea({timeout:S,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",x&&x(D,L)}),A=$(y),j=$(m),O=$(D=>{const L=Ea({timeout:S,style:v,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",L),D.style.transition=r.transitions.create("transform",L),xc(u,D,c),C&&C(D)}),I=$(D=>{D.style.webkitTransition="",D.style.transition="",p&&p(D)}),T=D=>{a&&a(M.current,D)},N=h.useCallback(()=>{M.current&&xc(u,M.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const D=fm(()=>{M.current&&xc(u,M.current,c)}),L=gr(M.current);return L.addEventListener("resize",D),()=>{D.clear(),L.removeEventListener("resize",D)}},[u,f,c]),h.useEffect(()=>{f||N()},[f,N]),w.jsx(P,{nodeRef:M,onEnter:b,onEntered:A,onEntering:R,onExit:O,onExited:I,onExiting:j,addEndListener:T,appear:s,in:f,timeout:S,...k,children:(D,L)=>h.cloneElement(l,{ref:E,style:{visibility:D==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...L})})});function LO(e){return ye("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},jO=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${le(n)}`,r!=="temporary"&&`paperAnchorDocked${le(n)}`]};return ve(o,LO,t)},NO=K(Om,{name:"MuiDrawer",slot:"Root",overridesResolver:dw})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),bv=K("div",{shouldForwardProp:_n,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:dw})({flex:"0 0 auto"}),FO=K(yr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${le(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${le(n.anchor)}`]]}})(Fe(({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}`}}]}))),fw={left:"right",right:"left",top:"down",bottom:"up"};function BO(e){return["left","right"].includes(e)}function _O({direction:e},t){return e==="rtl"&&BO(t)?fw[t]:t}const zO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=vr(),i=rr(),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:g,...y}={},onClose:x,open:C=!1,PaperProps:p={},SlideProps:m,TransitionComponent:v=AO,transitionDuration:S=a,variant:P="temporary",...k}=r,M=h.useRef(!1);h.useEffect(()=>{M.current=!0},[]);const E=_O({direction:i?"rtl":"ltr"},s),b={...r,anchor:s,elevation:d,open:C,variant:P,...k},R=jO(b),A=w.jsx(FO,{elevation:P==="temporary"?d:0,square:!0,...p,className:pe(R.paper,p.className),ownerState:b,children:c});if(P==="permanent")return w.jsx(bv,{className:pe(R.root,R.docked,u),ownerState:b,ref:n,...k,children:A});const j=w.jsx(v,{in:C,direction:fw[E],timeout:S,appear:M.current,...m,children:A});return P==="persistent"?w.jsx(bv,{className:pe(R.root,R.docked,u),ownerState:b,ref:n,...k,children:j}):w.jsx(NO,{BackdropProps:{...l,...g,transitionDuration:S},className:pe(R.root,R.modal,u),open:C,ownerState:b,onClose:x,hideBackdrop:f,ref:n,...k,...y,children:j})}),VO=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${le(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ve(l,uI,t);return{...t,...c}},WO=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({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}},[`&.${Ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ho.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"},[`&.${Ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ho.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(.${Ho.disabled}, .${Ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).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}}]}})),UO=K(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rd})(Fe(({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}}]}))),Pu=h.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:g="text",...y}=r,x={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:g},C=VO(r),p={root:{ownerState:x},input:{ownerState:x}},m=d??a?Kt(p,d??a):p,v=f.root??i.Root??WO,S=f.input??i.Input??UO;return w.jsx(Im,{slots:{root:v,input:S},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:g,...y,classes:C})});Pu&&(Pu.muiName="Input");function HO(e){return ye("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return ve(o,HO,t)},KO=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(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%"}}]}),$o=h.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:g="none",required:y=!1,size:x="medium",variant:C="outlined",...p}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:g,required:y,size:x,variant:C},v=YO(m),[S,P]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{if(!Bs(O,["Input","Select"]))return;const I=Bs(O,["Select"])?O.props.input:O;I&&iI(I.props)&&(j=!0)}),j}),[k,M]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{Bs(O,["Input","Select"])&&(ku(O.props,!0)||ku(O.props.inputProps,!0))&&(j=!0)}),j}),[E,$]=h.useState(!1);l&&E&&$(!1);const b=u!==void 0&&!l?u:E;let R;h.useRef(!1);const A=h.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:a,disabled:l,error:c,filled:k,focused:b,fullWidth:d,hiddenLabel:f,size:x,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:y,variant:C}),[S,a,l,c,k,b,d,f,R,y,x,C]);return w.jsx(Ed.Provider,{value:A,children:w.jsx(KO,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...p,children:o})})});function GO(e){return ye("MuiFormHelperText",e)}const wv=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Cv;const QO=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${le(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ve(c,GO,t)},XO=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wv.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}}]}))),pw=h.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:g,...y}=r,x=xr(),C=Ua({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),p={...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 p.ownerState;const m=QO(p);return w.jsx(XO,{as:a,className:pe(m.root,i),ref:n,...y,ownerState:p,children:o===" "?Cv||(Cv=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function qO(e){return ye("MuiFormLabel",e)}const Us=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ZO=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${le(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ve(l,qO,t)},JO=K("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Fe(({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(Ht()).map(([t])=>({props:{color:t},style:{[`&.${Us.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Us.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Us.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),e$=K("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Fe(({theme:e})=>({[`&.${Us.error}`]:{color:(e.vars||e).palette.error.main}}))),ua=h.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,...g}=r,y=xr(),x=Ua({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},p=ZO(C);return w.jsxs(JO,{as:s,ownerState:C,className:pe(p.root,i),ref:n,...g,children:[o,x.required&&w.jsxs(e$,{ownerState:C,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]})}),ci=UR({createStyledComponent:K("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:vr});function Kp(e){return`scale(${e}, ${e**2})`}const t$={entering:{opacity:1,transform:Kp(1)},entered:{opacity:1,transform:"none"}},Pf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xl=h.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:g,style:y,timeout:x="auto",TransitionComponent:C=or,...p}=t,m=hm(),v=h.useRef(),S=vr(),P=h.useRef(null),k=He(P,ki(i),n),M=I=>T=>{if(I){const N=P.current;T===void 0?I(N):I(N,T)}},E=M(u),$=M((I,T)=>{Cm(I);const{duration:N,delay:D,easing:L}=Ea({style:y,timeout:x,easing:a},{mode:"enter"});let z;x==="auto"?(z=S.transitions.getAutoHeightDuration(I.clientHeight),v.current=z):z=N,I.style.transition=[S.transitions.create("opacity",{duration:z,delay:D}),S.transitions.create("transform",{duration:Pf?z:z*.666,delay:D,easing:L})].join(","),l&&l(I,T)}),b=M(c),R=M(g),A=M(I=>{const{duration:T,delay:N,easing:D}=Ea({style:y,timeout:x,easing:a},{mode:"exit"});let L;x==="auto"?(L=S.transitions.getAutoHeightDuration(I.clientHeight),v.current=L):L=T,I.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:Pf?L:L*.666,delay:Pf?N:N||L*.333,easing:D})].join(","),I.style.opacity=0,I.style.transform=Kp(.75),d&&d(I)}),j=M(f),O=I=>{x==="auto"&&m.start(v.current||0,I),r&&r(P.current,I)};return w.jsx(C,{appear:o,in:s,nodeRef:P,onEnter:$,onEntered:b,onEntering:E,onExit:A,onExited:j,onExiting:R,addEndListener:O,timeout:x==="auto"?null:x,...p,children:(I,T)=>h.cloneElement(i,{style:{opacity:0,transform:Kp(.75),visibility:I==="exited"&&!s?"hidden":void 0,...t$[I],...y,...i.props.style},ref:k,...T})})});xl&&(xl.muiSupportAuto=!0);const Id=GM({themeId:Qn}),n$=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},lI,t);return{...t,...o}},r$=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({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"},[`&.${ls.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ls.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(.${ls.disabled}, .${ls.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ls.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),o$=K(Dd,{name:"MuiInput",slot:"Input",overridesResolver:Rd})({}),Eu=h.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",...g}=r,y=n$(r),C={root:{ownerState:{disableUnderline:o}}},p=u??a?Kt(u??a,C):C,m=d.root??i.Root??r$,v=d.input??i.Input??o$;return w.jsx(Im,{slots:{root:m,input:v},slotProps:p,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...g,classes:y})});Eu&&(Eu.muiName="Input");function i$(e){return ye("MuiInputAdornment",e)}const kv=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pv;const a$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,a,r&&"hiddenLabel",i&&`size${le(i)}`]};return ve(s,i$,t)},l$=K("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:a$})(Fe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kv.positionStart}&:not(.${kv.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),hw=h.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=xr()||{};let g=u;u&&f.variant,f&&!g&&(g=f.variant);const y={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:g},x=s$(y);return w.jsx(Ed.Provider,{value:null,children:w.jsx(l$,{as:a,ownerState:y,className:pe(x.root,i),ref:n,...d,children:typeof o=="string"&&!l?w.jsx(Ye,{color:"textSecondary",children:o}):w.jsxs(h.Fragment,{children:[c==="start"?Pv||(Pv=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function c$(e){return ye("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const u$=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${le(r)}`,a],asterisk:[s&&"asterisk"]},c=ve(l,c$,t);return{...t,...c}},d$=K(ua,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Us.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]]}})(Fe(({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)"}}]}))),$m=h.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=xr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ua({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},y=u$(g);return w.jsx(d$,{"data-shrink":d,ref:n,className:pe(y.root,l),...c,ownerState:g,classes:y})});function f$(e){return ye("MuiLink",e)}const p$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),h$=({theme:e,ownerState:t})=>{const n=t.color,r=Ca(e,`palette.${n}`,!1)||t.color,o=Ca(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Be(r,.4)},Ev={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${le(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ve(i,f$,t)},g$=K(Ye,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${le(n.underline)}`],n.component==="button"&&t.button]}})(Fe(({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(Ht()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Be(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Be(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Be(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"},[`&.${p$.focusVisible}`]:{outline:"auto"}}}]}))),Am=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=vr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:g,...y}=r,[x,C]=h.useState(!1),p=P=>{yu(P.target)||C(!1),l&&l(P)},m=P=>{yu(P.target)&&C(!0),c&&c(P)},v={...r,color:a,component:s,focusVisible:x,underline:d,variant:f},S=m$(v);return w.jsx(g$,{color:a,className:pe(S.root,i),classes:u,component:s,onBlur:p,onFocus:m,ref:n,ownerState:v,variant:f,...y,sx:[...Ev[a]===void 0?[{color:a}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...d==="always"&&a!=="inherit"&&!Ev[a]&&{"--Link-underlineColor":h$({theme:o,ownerState:v})}}})}),ui=h.createContext({});function y$(e){return ye("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const v$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},y$,t)},x$=K("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}}]}),mw=h.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=h.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},g=v$(f);return w.jsx(ui.Provider,{value:d,children:w.jsxs(x$,{as:a,className:pe(g.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function S$(e){return ye("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const b$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w$(e){return ye("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const C$=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},w$,n)},k$=K("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}}]}),gw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=h.useContext(ui),s={...r,disableGutters:a.disableGutters},l=C$(s);return w.jsx(k$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});gw.muiName="ListItemSecondaryAction";const P$=(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]},E$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},S$,n)},M$=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:P$})(Fe(({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:{[`& > .${b$.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}}]}))),R$=K("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),T$=h.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:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:C=!1,secondaryAction:p,slotProps:m={},slots:v={},...S}=r,P=h.useContext(ui),k=h.useMemo(()=>({dense:g||P.dense||!1,alignItems:o,disableGutters:y}),[o,P.dense,g,y]),M=h.useRef(null),E=h.Children.toArray(i),$=E.length&&Bs(E[E.length-1],["ListItemSecondaryAction"]),b={...r,alignItems:o,dense:k.dense,disableGutters:y,disablePadding:x,divider:C,hasSecondaryAction:$},R=E$(b),A=He(M,n),j=v.root||l.Root||M$,O=m.root||c.root||{},I={className:pe(R.root,O.className,a),...S};let T=s||"li";return $?(T=!I.component&&!s?"div":T,u==="li"&&(T==="li"?T="div":I.component==="li"&&(I.component="div")),w.jsx(ui.Provider,{value:k,children:w.jsxs(R$,{as:u,className:pe(R.container,d),ref:A,ownerState:b,...f,children:[w.jsx(j,{...O,...!yl(j)&&{as:T,ownerState:{...b,...O.ownerState}},...I,children:E}),E.pop()]})})):w.jsx(ui.Provider,{value:k,children:w.jsxs(j,{...O,as:T,ref:A,...!yl(j)&&{ownerState:{...b,...O.ownerState}},...I,children:[E,p&&w.jsx(gw,{children:p})]})})}),Mv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Rv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function yw(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 cs(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")||!yw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const D$=h.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,g=h.useRef(null),y=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vt(()=>{o&&g.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:S})=>{const P=!g.current.style.width;if(v.clientHeight{const S=g.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=zt(S).activeElement;if(P==="ArrowDown")v.preventDefault(),cs(S,M,c,l,Ef);else if(P==="ArrowUp")v.preventDefault(),cs(S,M,c,l,Tv);else if(P==="Home")v.preventDefault(),cs(S,null,c,l,Ef);else if(P==="End")v.preventDefault(),cs(S,null,c,l,Tv);else if(P.length===1){const E=y.current,$=P.toLowerCase(),b=performance.now();E.keys.length>0&&(b-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=b,E.keys.push($);const R=M&&!E.repeating&&yw(M,E);E.previousKeyMatched&&(R||cs(S,M,!1,l,Ef,E))?v.preventDefault():E.previousKeyMatched=!1}u&&u(v)},C=He(g,n);let p=-1;h.Children.forEach(a,(v,S)=>{if(!h.isValidElement(v)){p===S&&(p+=1,p>=a.length&&(p=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||p===-1)&&(p=S),p===S&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(p+=1,p>=a.length&&(p=-1))});const m=h.Children.map(a,(v,S)=>{if(S===p){const P={};return i&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),h.cloneElement(v,P)}return v});return w.jsx(mw,{role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1,...f,children:m})});function I$(e){return ye("MuiPopover",e)}me("MuiPopover",["root","paper"]);function Dv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Iv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ov(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mf(e){return typeof e=="function"?e():e}const O$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},I$,t)},$$=K(Om,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vw=K(yr,{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}),A$=h.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:g=16,open:y,PaperProps:x={},slots:C={},slotProps:p={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=xl,transitionDuration:S="auto",TransitionProps:{onEntering:P,...k}={},disableScrollLock:M=!1,...E}=r,$=(p==null?void 0:p.paper)??x,b=h.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:g,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:S,TransitionProps:k},A=O$(R),j=h.useCallback(()=>{if(l==="anchorPosition")return s;const ne=Mf(i),W=(ne&&ne.nodeType===1?ne:zt(b.current).body).getBoundingClientRect();return{top:W.top+Dv(W,a.vertical),left:W.left+Iv(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=h.useCallback(ne=>({vertical:Dv(ne,m.vertical),horizontal:Iv(ne,m.horizontal)}),[m.horizontal,m.vertical]),I=h.useCallback(ne=>{const oe={width:ne.offsetWidth,height:ne.offsetHeight},W=O(oe);if(l==="none")return{top:null,left:null,transformOrigin:Ov(W)};const F=j();let Y=F.top-W.vertical,G=F.left-W.horizontal;const te=Y+oe.height,ue=G+oe.width,Z=gr(Mf(i)),fe=Z.innerHeight-g,ge=Z.innerWidth-g;if(g!==null&&Yfe){const Le=te-fe;Y-=Le,W.vertical+=Le}if(g!==null&&Gge){const Le=ue-ge;G-=Le,W.horizontal+=Le}return{top:`${Math.round(Y)}px`,left:`${Math.round(G)}px`,transformOrigin:Ov(W)}},[i,l,j,O,g]),[T,N]=h.useState(y),D=h.useCallback(()=>{const ne=b.current;if(!ne)return;const oe=I(ne);oe.top!==null&&ne.style.setProperty("top",oe.top),oe.left!==null&&(ne.style.left=oe.left),ne.style.transformOrigin=oe.transformOrigin,N(!0)},[I]);h.useEffect(()=>(M&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,M,D]);const L=(ne,oe)=>{P&&P(ne,oe),D()},z=()=>{N(!1)};h.useEffect(()=>{y&&D()}),h.useImperativeHandle(o,()=>y?{updatePosition:()=>{D()}}:null,[y,D]),h.useEffect(()=>{if(!y)return;const ne=fm(()=>{D()}),oe=gr(i);return oe.addEventListener("resize",ne),()=>{ne.clear(),oe.removeEventListener("resize",ne)}},[i,y,D]);let V=S;S==="auto"&&!v.muiSupportAuto&&(V=void 0);const J=d||(i?zt(Mf(i)).body:void 0),ce={slots:C,slotProps:{...p,paper:$}},[se,H]=Tn("paper",{elementType:vw,externalForwardedProps:ce,additionalProps:{elevation:f,className:pe(A.paper,$==null?void 0:$.className),style:T?$.style:{...$.style,opacity:0}},ownerState:R}),[ae,{slotProps:ie,...ee}]=Tn("root",{elementType:$$,externalForwardedProps:ce,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:J,open:y},ownerState:R,className:pe(A.root,u)}),X=He(b,H.ref);return w.jsx(ae,{...ee,...!yl(ae)&&{slotProps:ie,disableScrollLock:M},...E,ref:n,children:w.jsx(v,{appear:!0,in:y,onEntering:L,onExited:z,timeout:V,...k,children:w.jsx(se,{...H,ref:X,children:c})})})});function L$(e){return ye("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const j$={vertical:"top",horizontal:"right"},N$={vertical:"top",horizontal:"left"},F$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},L$,t)},B$=K(A$,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_$=K(vw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),z$=K(D$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xw=h.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:g="auto",TransitionProps:{onEntering:y,...x}={},variant:C="selectedMenu",slots:p={},slotProps:m={},...v}=r,S=rr(),P={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:y,PaperProps:d,transitionDuration:g,TransitionProps:x,variant:C},k=F$(P),M=o&&!s&&u,E=h.useRef(null),$=(T,N)=>{E.current&&E.current.adjustStyleForScrollbar(T,{direction:S?"rtl":"ltr"}),y&&y(T,N)},b=T=>{T.key==="Tab"&&(T.preventDefault(),c&&c(T,"tabKeyDown"))};let R=-1;h.Children.map(i,(T,N)=>{h.isValidElement(T)&&(T.props.disabled||(C==="selectedMenu"&&T.props.selected||R===-1)&&(R=N))});const A=p.paper??_$,j=m.paper??d,O=Qe({elementType:p.root,externalSlotProps:m.root,ownerState:P,className:[k.root,a]}),I=Qe({elementType:A,externalSlotProps:j,ownerState:P,className:k.paper});return w.jsx(B$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?j$:N$,slots:{paper:A,root:p.root},slotProps:{root:O,paper:I},open:u,ref:n,transitionDuration:g,TransitionProps:{onEntering:$,...x},ownerState:P,...v,classes:f,children:w.jsx(z$,{onKeyDown:b,actions:E,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function V$(e){return ye("MuiMenuItem",e)}const us=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),W$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},U$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ve({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},V$,a);return{...a,...l}},H$=K(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:W$})(Fe(({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"}},[`&.${us.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${us.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${us.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(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})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${us.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Sv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Sv.inset}`]:{marginLeft:52},[`& .${Rv.root}`]:{marginTop:0,marginBottom:0},[`& .${Rv.inset}`]:{paddingLeft:36},[`& .${Mv.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,[`& .${Mv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gp=h.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,...g}=r,y=h.useContext(ui),x=h.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=h.useRef(null);Vt(()=>{o&&C.current&&C.current.focus()},[o]);const p={...r,dense:x.dense,divider:s,disableGutters:l},m=U$(r),v=He(C,n);let S;return r.disabled||(S=d!==void 0?d:-1),w.jsx(ui.Provider,{value:x,children:w.jsx(H$,{ref:v,role:u,tabIndex:S,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...g,ownerState:p,classes:m})})});function Y$(e){return ye("MuiNativeSelect",e)}const Lm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),K$=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${le(n)}`,i&&"iconOpen",r&&"disabled"]};return ve(s,Y$,t)},Sw=K("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lm.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}}}]})),G$=K(Sw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_n,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Lm.multiple}`]:t.multiple}]}})({}),bw=K("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Lm.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}}]})),Q$=K(bw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),X$=h.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=K$(u);return w.jsxs(h.Fragment,{children:[w.jsx(G$,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:w.jsx(Q$,{as:a,ownerState:u,className:d.icon})]})});var $v;const q$=K("fieldset",{shouldForwardProp:_n})({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%"}),Z$=K("legend",{shouldForwardProp:_n})(Fe(({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 J$(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 w.jsx(q$,{"aria-hidden":!0,className:r,ownerState:l,...a,children:w.jsx(Z$,{ownerState:l,children:s?w.jsx("span",{children:o}):$v||($v=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const eA=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cI,t);return{...t,...r}},tA=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})(Fe(({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 .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ht()).map(([n])=>({props:{color:n},style:{[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Pr.error} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pr.disabled} .${Pr.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"}}]}})),nA=K(J$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Fe(({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}})),rA=K(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rd})(Fe(({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}}]}))),Mu=h.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",...g}=o,y=eA(o),x=xr(),C=Ua({props:o,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),p={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??tA,v=d.input??i.Input??rA;return w.jsx(Im,{slots:{root:m,input:v},renderSuffix:S=>w.jsx(nA,{ownerState:p,className:y.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=w.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...g,classes:{...y,notchedOutline:null}})});Mu&&(Mu.muiName="Input");function oA(e){return ye("MuiSelect",e)}const ds=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Av;const iA=K(Sw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ds.select}`]:t.select},{[`&.${ds.select}`]:t[n.variant]},{[`&.${ds.error}`]:t.error},{[`&.${ds.multiple}`]:t.multiple}]}})({[`&.${ds.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),aA=K(bw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),sA=K("input",{shouldForwardProp:e=>Yb(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 Lv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lA(e){return e==null||typeof e=="string"&&!e.trim()}const cA=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${le(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(s,oA,t)},uA=h.forwardRef(function(t,n){var fo;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:g=!1,IconComponent:y,inputRef:x,labelId:C,MenuProps:p={},multiple:m,name:v,onBlur:S,onChange:P,onClose:k,onFocus:M,onOpen:E,open:$,readOnly:b,renderValue:R,required:A,SelectDisplayProps:j={},tabIndex:O,type:I,value:T,variant:N="standard",...D}=t,[L,z]=io({controlled:T,default:u,name:"Select"}),[V,J]=io({controlled:$,default:c,name:"Select"}),ce=h.useRef(null),se=h.useRef(null),[H,ae]=h.useState(null),{current:ie}=h.useRef($!=null),[ee,X]=h.useState(),ne=He(n,x),oe=h.useCallback(Me=>{se.current=Me,Me&&ae(Me)},[]),W=H==null?void 0:H.parentNode;h.useImperativeHandle(ne,()=>({focus:()=>{se.current.focus()},node:ce.current,value:L}),[L]),h.useEffect(()=>{c&&V&&H&&!ie&&(X(a?null:W.clientWidth),se.current.focus())},[H,a]),h.useEffect(()=>{i&&se.current.focus()},[i]),h.useEffect(()=>{if(!C)return;const Me=zt(se.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&se.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?E&&E(qe):k&&k(qe),ie||(X(a?null:W.clientWidth),J(Me))},Y=Me=>{Me.button===0&&(Me.preventDefault(),se.current.focus(),F(!0,Me))},G=Me=>{F(!1,Me)},te=h.Children.toArray(s),ue=Me=>{const qe=te.find(yt=>yt.props.value===Me.target.value);qe!==void 0&&(z(qe.props.value),P&&P(Me,qe))},Z=Me=>qe=>{let yt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){yt=Array.isArray(L)?L.slice():[];const Cn=L.indexOf(Me.props.value);Cn===-1?yt.push(Me.props.value):yt.splice(Cn,1)}else yt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),L!==yt&&(z(yt),P)){const Cn=qe.nativeEvent||qe,nt=new Cn.constructor(Cn.type,Cn);Object.defineProperty(nt,"target",{writable:!0,value:{value:yt,name:v}}),P(nt,Me)}m||F(!1,qe)}},fe=Me=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ge=H!==null&&V,Le=Me=>{!ge&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:L,name:v}}),S(Me))};delete D["aria-invalid"];let xe,tt;const Ee=[];let _e=!1;(ku({value:L})||f)&&(R?xe=R(L):_e=!0);const ct=te.map(Me=>{if(!h.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(L))throw new Error(oo(2));qe=L.some(yt=>Lv(yt,Me.props.value)),qe&&_e&&Ee.push(Me.props.children)}else qe=Lv(L,Me.props.value),qe&&_e&&(tt=Me.props.children);return h.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:Z(Me),onKeyUp:yt=>{yt.key===" "&&yt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(yt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Ee.length===0?xe=null:xe=Ee.reduce((Me,qe,yt)=>(Me.push(qe),yt{const{classes:t}=e;return t},jm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_n(e)&&e!=="variant",slot:"Root"},fA=K(Eu,jm)(""),pA=K(Mu,jm)(""),hA=K(Pu,jm)(""),Nm=h.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=dI,id:d,input:f,inputProps:g,label:y,labelId:x,MenuProps:C,multiple:p=!1,native:m=!1,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:M,variant:E="outlined",...$}=r,b=m?X$:uA,R=xr(),A=Ua({props:r,muiFormControl:R,states:["variant","error"]}),j=A.variant||E,O={...r,variant:j,classes:a},I=dA(O),{root:T,...N}=I,D=f||{standard:w.jsx(fA,{ownerState:O}),outlined:w.jsx(pA,{label:y,ownerState:O}),filled:w.jsx(hA,{ownerState:O})}[j],L=He(n,ki(D));return w.jsx(h.Fragment,{children:h.cloneElement(D,{inputComponent:b,inputProps:{children:i,error:A.error,IconComponent:u,variant:j,type:void 0,multiple:p,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:{id:d,...M}},...g,classes:g?Kt(N,g.classes):N,...f?f.props.inputProps:{}},...(p&&m||c)&&j==="outlined"?{notched:!0}:{},ref:L,className:pe(D.props.className,s,I.root),...!f&&{variant:j},...$})})});Nm.muiName="Select";function mA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=hm();h.useEffect(()=>{if(!o)return;function p(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[o,r]);const s=Se((p,m)=>{r==null||r(p,m)}),l=Se(p=>{!r||p==null||a.start(p,()=>{s(null,"timeout")})});h.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=p=>{r==null||r(p,"clickaway")},u=a.clear,d=h.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=p=>m=>{const v=p.onBlur;v==null||v(m),d()},g=p=>m=>{const v=p.onFocus;v==null||v(m),u()},y=p=>m=>{const v=p.onMouseEnter;v==null||v(m),u()},x=p=>m=>{const v=p.onMouseLeave;v==null||v(m),d()};return h.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:(p={})=>{const m={...vu(e),...vu(p)};return{role:"presentation",...p,...m,onBlur:f(m),onFocus:g(m),onMouseEnter:y(m),onMouseLeave:x(m)}},onClickAway:c}}function gA(e){return ye("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const yA=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},gA,t)},vA=K(yr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Tb(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}}})),xA=K("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),SA=K("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bA=h.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=yA(c);return w.jsxs(vA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[w.jsx(xA,{className:u.message,ownerState:c,children:a}),o?w.jsx(SA,{className:u.action,ownerState:c,children:o}):null]})});function wA(e){return ye("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const CA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`]};return ve(r,wA,t)},jv=K("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}`]]}})(Fe(({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%)"}}}]}))),kA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=vr(),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:g,disableWindowBlurListener:y=!1,message:x,onBlur:C,onClose:p,onFocus:m,onMouseEnter:v,onMouseLeave:S,open:P,resumeHideDuration:k,TransitionComponent:M=xl,transitionDuration:E=i,TransitionProps:{onEnter:$,onExited:b,...R}={},...A}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:M,transitionDuration:E},O=CA(j),{getRootProps:I,onClickAway:T}=mA({...j}),[N,D]=h.useState(!0),L=Qe({elementType:jv,getSlotProps:I,externalForwardedProps:A,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),z=J=>{D(!0),b&&b(J)},V=(J,ce)=>{D(!1),$&&$(J,ce)};return!P&&N?null:w.jsx(YI,{onClickAway:T,...f,children:w.jsx(jv,{...L,children:w.jsx(M,{appear:!0,in:P,timeout:E,direction:s==="top"?"down":"up",onEnter:V,onExited:z,...R,children:u||w.jsx(bA,{message:x,action:a,...g})})})})}),Pi=qR({createStyledComponent:K("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),ww=h.createContext();function PA(e){return ye("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const EA=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},PA,t)},MA=K("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fe(({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"}}]}))),Nv="table",RA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=Nv,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=EA(u),f=h.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return w.jsx(ww.Provider,{value:f,children:w.jsx(MA,{as:i,role:i===Nv?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),Od=h.createContext();function TA(e){return ye("MuiTableBody",e)}me("MuiTableBody",["root"]);const DA=e=>{const{classes:t}=e;return ve({root:["root"]},TA,t)},IA=K("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),OA={variant:"body"},Fv="tbody",$A=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=Fv,...a}=r,s={...r,component:i},l=DA(s);return w.jsx(Od.Provider,{value:OA,children:w.jsx(IA,{className:pe(l.root,o),as:i,ref:n,role:i===Fv?null:"rowgroup",ownerState:s,...a})})});function AA(e){return ye("MuiTableCell",e)}const LA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${le(r)}`,o!=="normal"&&`padding${le(o)}`,`size${le(i)}`]};return ve(s,AA,t)},NA=K("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${le(n.size)}`],n.padding!=="normal"&&t[`padding${le(n.padding)}`],n.align!=="inherit"&&t[`align${le(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + `:null,zI=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return ve(i,FI,t)},VI=K("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:BI||{animation:`${Up} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),WI=K("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),UI=K("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({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:_I||{animation:`${Hp} 1.4s ease-in-out infinite`}}]}))),Bl=h.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,g={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:d},y=zI(g),x={},C={},p={};if(d==="determinate"){const m=2*Math.PI*((ho-c)/2);x.strokeDasharray=m.toFixed(3),p["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return w.jsx(VI,{className:pe(y.root,o),style:{width:s,height:s,...C,...l},ownerState:g,ref:n,role:"progressbar",...p,...f,children:w.jsx(WI,{className:y.svg,ownerState:g,viewBox:`${ho/2} ${ho/2} ${ho} ${ho}`,children:w.jsx(UI,{className:y.circle,style:x,ownerState:g,cx:ho,cy:ho,r:(ho-c)/2,fill:"none",strokeWidth:c})})})});function gv(e){return e.substring(2).toLowerCase()}function HI(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=He(ki(t),s),d=Se(y=>{const x=c.current;c.current=!1;const C=zt(s.current);if(!l.current||!s.current||"clientX"in y&&HI(y,C))return;if(a.current){a.current=!1;return}let p;y.composedPath?p=y.composedPath().includes(s.current):p=!C.documentElement.contains(y.target)||s.current.contains(y.target),!p&&(n||!x)&&o(y)}),f=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},g={ref:u};return i!==!1&&(g[i]=f(i)),h.useEffect(()=>{if(i!==!1){const y=gv(i),x=zt(s.current),C=()=>{a.current=!0};return x.addEventListener(y,d),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,d),x.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(g[r]=f(r)),h.useEffect(()=>{if(r!==!1){const y=gv(r),x=zt(s.current);return x.addEventListener(y,d),()=>{x.removeEventListener(y,d)}}},[d,r]),h.cloneElement(t,g)}const sw=TR({createStyledComponent:K("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${le(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})}),Yp=typeof xm({})=="function",KI=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),GI=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}}),lw=(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:KI(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...GI(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},Wc="mui-ecs",QI=e=>{const t=lw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Wc})`]={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(.${Wc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Wc}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},XI=xm(Yp?({theme:e,enableColorScheme:t})=>lw(e,t):({theme:e})=>QI(e));function cw(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return w.jsxs(h.Fragment,{children:[Yp&&w.jsx(XI,{enableColorScheme:r}),!Yp&&!r&&w.jsx("span",{className:Wc,style:{display:"none"}}),n]})}function qI(e){const t=zt(e);return t.body===e?gr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ws(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yv(e){return parseInt(gr(e).getComputedStyle(e).paddingRight,10)||0}function ZI(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 vv(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!ZI(a);s&&l&&Ws(a,o)})}function kf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function JI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(qI(r)){const a=Ob(gr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yv(r)+a}px`;const s=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${yv(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=zt(r).body;else{const a=r.parentElement,s=gr(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 eO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tO{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&&Ws(t.modalRef,!1);const o=eO(n);vv(n,t.mount,t.modalRef,o,!0);const i=kf(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=kf(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=JI(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=kf(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&&Ws(t.modalRef,n),vv(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&&Ws(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rO(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 oO(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 iO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||oO(e))}function aO(e){const t=[],n=[];return Array.from(e.querySelectorAll(nO)).forEach((r,o)=>{const i=rO(r);i===-1||!iO(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 sO(){return!0}function uw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=aO,isEnabled:a=sO,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),g=h.useRef(!1),y=h.useRef(null),x=He(ki(t),y),C=h.useRef(null);h.useEffect(()=>{!s||!y.current||(g.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!y.current)return;const v=zt(y.current);return y.current.contains(v.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),h.useEffect(()=>{if(!s||!y.current)return;const v=zt(y.current),S=M=>{C.current=M,!(r||!a()||M.key!=="Tab")&&v.activeElement===y.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{var $,b;const M=y.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(!g.current)return;let E=[];if((v.activeElement===c.current||v.activeElement===u.current)&&(E=i(y.current)),E.length>0){const R=!!(($=C.current)!=null&&$.shiftKey&&((b=C.current)==null?void 0:b.key)==="Tab"),A=E[0],j=E[E.length-1];typeof A!="string"&&typeof j!="string"&&(R?j.focus():A.focus())}else M.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",S,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",S,!0)}},[n,r,o,a,s,i]);const p=v=>{d.current===null&&(d.current=v.relatedTarget),g.current=!0,f.current=v.target;const S=t.props.onFocus;S&&S(v)},m=v=>{d.current===null&&(d.current=v.relatedTarget),g.current=!0};return w.jsxs(h.Fragment,{children:[w.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:x,onFocus:p}),w.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function lO(e){return typeof e=="function"?e():e}function cO(e){return e?e.props.hasOwnProperty("in"):!1}const xv=()=>{},vc=new tO;function uO(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=h.useRef({}),f=h.useRef(null),g=h.useRef(null),y=He(g,u),[x,C]=h.useState(!c),p=cO(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const v=()=>zt(f.current),S=()=>(d.current.modalRef=g.current,d.current.mount=f.current,d.current),P=()=>{vc.mount(S(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Se(()=>{const I=lO(t)||v().body;vc.add(S(),I),g.current&&P()}),M=()=>vc.isTopModal(S()),E=Se(I=>{f.current=I,I&&(c&&M()?P():g.current&&Ws(g.current,m))}),$=h.useCallback(()=>{vc.remove(S(),m)},[m]);h.useEffect(()=>()=>{$()},[$]),h.useEffect(()=>{c?k():(!p||!o)&&$()},[c,$,p,o,k]);const b=I=>T=>{var N;(N=I.onKeyDown)==null||N.call(I,T),!(T.key!=="Escape"||T.which===229||!M())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},R=I=>T=>{var N;(N=I.onClick)==null||N.call(I,T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(I={})=>{const T=vu(e);delete T.onTransitionEnter,delete T.onTransitionExited;const N={...T,...I};return{role:"presentation",...N,onKeyDown:b(N),ref:y}},getBackdropProps:(I={})=>{const T=I;return{"aria-hidden":!0,...T,onClick:R(T),open:c}},getTransitionProps:()=>{const I=()=>{C(!1),i&&i()},T=()=>{C(!0),a&&a(),o&&$()};return{onEnter:Oy(I,(s==null?void 0:s.props.onEnter)??xv),onExited:Oy(T,(s==null?void 0:s.props.onExited)??xv)}},rootRef:y,portalRef:E,isTopModal:M,exited:x,hasTransition:p}}function dO(e){return ye("MuiModal",e)}me("MuiModal",["root","hidden","backdrop"]);const fO=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dO,r)},pO=K("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fe(({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"}}]}))),hO=K(ow,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Om=h.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:o=hO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:p=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:k,onClose:M,onTransitionEnter:E,onTransitionExited:$,open:b,slotProps:R={},slots:A={},theme:j,...O}=r,I={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:p,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:S,keepMounted:P},{getRootProps:T,getBackdropProps:N,getTransitionProps:D,portalRef:L,isTopModal:z,exited:V,hasTransition:J}=uO({...I,rootRef:n}),ce={...I,exited:V},se=fO(ce),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),J){const{onEnter:W,onExited:F}=D();H.onEnter=W,H.onExited=F}const ae={...O,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...g,...R}},[ie,ee]=Tn("root",{elementType:pO,externalForwardedProps:ae,getSlotProps:T,additionalProps:{ref:n,as:d},ownerState:ce,className:pe(s,se==null?void 0:se.root,!ce.open&&ce.exited&&(se==null?void 0:se.hidden))}),[X,ne]=Tn("backdrop",{elementType:o,externalForwardedProps:ae,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,se==null?void 0:se.backdrop),ownerState:ce}),oe=He(i==null?void 0:i.ref,ne.ref);return!P&&!b&&(!J||V)?null:w.jsx(rw,{ref:L,container:u,disablePortal:p,children:w.jsxs(ie,{...ee,children:[!S&&o?w.jsx(X,{...ne,ref:oe}):null,w.jsx(uw,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:m,isEnabled:z,open:b,children:h.cloneElement(c,H)})]})})});function mO(e){return ye("MuiDialog",e)}const Us=me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gO=h.createContext({}),yO=K(ow,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),vO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ve(a,mO,t)},xO=K(Om,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),SO=K("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),bO=K(yr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fe(({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)`,[`&.${Us.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}`,[`&.${Us.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,[`&.${Us.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialog"}),o=vr(),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:g=!1,fullScreen:y=!1,fullWidth:x=!1,maxWidth:C="sm",onBackdropClick:p,onClick:m,onClose:v,open:S,PaperComponent:P=yr,PaperProps:k={},scroll:M="paper",TransitionComponent:E=Ha,transitionDuration:$=i,TransitionProps:b,...R}=r,A={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:x,maxWidth:C,scroll:M},j=vO(A),O=h.useRef(),I=L=>{O.current=L.target===L.currentTarget},T=L=>{m&&m(L),O.current&&(O.current=null,p&&p(L),v&&v(L,"backdropClick"))},N=zo(s),D=h.useMemo(()=>({titleId:N}),[N]);return w.jsx(xO,{className:pe(j.root,f),closeAfterTransition:!0,components:{Backdrop:yO},componentsProps:{backdrop:{transitionDuration:$,as:c,...u}},disableEscapeKeyDown:g,onClose:v,open:S,ref:n,onClick:T,ownerState:A,...R,children:w.jsx(E,{appear:!0,in:S,timeout:$,role:"presentation",...b,children:w.jsx(SO,{className:pe(j.container),onMouseDown:I,ownerState:A,children:w.jsx(bO,{as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N,"aria-modal":l,...k,className:pe(j.paper,k.className),ownerState:A,children:w.jsx(gO.Provider,{value:D,children:d})})})})})});function CO(e){return ye("MuiDialogActions",e)}me("MuiDialogActions",["root","spacing"]);const kO=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},CO,t)},PO=K("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}}}]}),EO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=kO(s);return w.jsx(PO,{className:pe(l.root,o),ownerState:s,ref:n,...a})});function MO(e){return ye("MuiDialogContent",e)}me("MuiDialogContent",["root","dividers"]);const RO=me("MuiDialogTitle",["root"]),TO=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},MO,t)},DO=K("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fe(({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:{[`.${RO.root} + &`]:{paddingTop:0}}}]}))),IO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=TO(s);return w.jsx(DO,{className:pe(l.root,o),ownerState:s,ref:n,...a})}),Sv=me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function OO(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=gr(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 $O(e){return typeof e=="function"?e():e}function xc(e,t,n){const r=$O(n),o=OO(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const AO=h.forwardRef(function(t,n){const r=vr(),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:g,onEntered:y,onEntering:x,onExit:C,onExited:p,onExiting:m,style:v,timeout:S=i,TransitionComponent:P=or,...k}=t,M=h.useRef(null),E=He(ki(l),M,n),$=D=>L=>{D&&(L===void 0?D(M.current):D(M.current,L))},b=$((D,L)=>{xc(u,D,c),Cm(D),g&&g(D,L)}),R=$((D,L)=>{const z=Ea({timeout:S,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",x&&x(D,L)}),A=$(y),j=$(m),O=$(D=>{const L=Ea({timeout:S,style:v,easing:d},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",L),D.style.transition=r.transitions.create("transform",L),xc(u,D,c),C&&C(D)}),I=$(D=>{D.style.webkitTransition="",D.style.transition="",p&&p(D)}),T=D=>{a&&a(M.current,D)},N=h.useCallback(()=>{M.current&&xc(u,M.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const D=fm(()=>{M.current&&xc(u,M.current,c)}),L=gr(M.current);return L.addEventListener("resize",D),()=>{D.clear(),L.removeEventListener("resize",D)}},[u,f,c]),h.useEffect(()=>{f||N()},[f,N]),w.jsx(P,{nodeRef:M,onEnter:b,onEntered:A,onEntering:R,onExit:O,onExited:I,onExiting:j,addEndListener:T,appear:s,in:f,timeout:S,...k,children:(D,L)=>h.cloneElement(l,{ref:E,style:{visibility:D==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...L})})});function LO(e){return ye("MuiDrawer",e)}me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dw=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},jO=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${le(n)}`,r!=="temporary"&&`paperAnchorDocked${le(n)}`]};return ve(o,LO,t)},NO=K(Om,{name:"MuiDrawer",slot:"Root",overridesResolver:dw})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),bv=K("div",{shouldForwardProp:_n,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:dw})({flex:"0 0 auto"}),FO=K(yr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${le(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${le(n.anchor)}`]]}})(Fe(({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}`}}]}))),fw={left:"right",right:"left",top:"down",bottom:"up"};function BO(e){return["left","right"].includes(e)}function _O({direction:e},t){return e==="rtl"&&BO(t)?fw[t]:t}const zO=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDrawer"}),o=vr(),i=rr(),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:g,...y}={},onClose:x,open:C=!1,PaperProps:p={},SlideProps:m,TransitionComponent:v=AO,transitionDuration:S=a,variant:P="temporary",...k}=r,M=h.useRef(!1);h.useEffect(()=>{M.current=!0},[]);const E=_O({direction:i?"rtl":"ltr"},s),b={...r,anchor:s,elevation:d,open:C,variant:P,...k},R=jO(b),A=w.jsx(FO,{elevation:P==="temporary"?d:0,square:!0,...p,className:pe(R.paper,p.className),ownerState:b,children:c});if(P==="permanent")return w.jsx(bv,{className:pe(R.root,R.docked,u),ownerState:b,ref:n,...k,children:A});const j=w.jsx(v,{in:C,direction:fw[E],timeout:S,appear:M.current,...m,children:A});return P==="persistent"?w.jsx(bv,{className:pe(R.root,R.docked,u),ownerState:b,ref:n,...k,children:j}):w.jsx(NO,{BackdropProps:{...l,...g,transitionDuration:S},className:pe(R.root,R.modal,u),open:C,ownerState:b,onClose:x,hideBackdrop:f,ref:n,...k,...y,children:j})}),VO=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${le(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=ve(l,uI,t);return{...t,...c}},WO=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({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}},[`&.${Ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ho.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"},[`&.${Ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ho.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(.${Ho.disabled}, .${Ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).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}}]}})),UO=K(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rd})(Fe(({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}}]}))),Pu=h.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:g="text",...y}=r,x={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:g},C=VO(r),p={root:{ownerState:x},input:{ownerState:x}},m=d??a?Kt(p,d??a):p,v=f.root??i.Root??WO,S=f.input??i.Input??UO;return w.jsx(Im,{slots:{root:v,input:S},slotProps:m,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:g,...y,classes:C})});Pu&&(Pu.muiName="Input");function HO(e){return ye("MuiFormControl",e)}me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return ve(o,HO,t)},KO=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(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%"}}]}),$o=h.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:g="none",required:y=!1,size:x="medium",variant:C="outlined",...p}=r,m={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:g,required:y,size:x,variant:C},v=YO(m),[S,P]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{if(!_s(O,["Input","Select"]))return;const I=_s(O,["Select"])?O.props.input:O;I&&iI(I.props)&&(j=!0)}),j}),[k,M]=h.useState(()=>{let j=!1;return o&&h.Children.forEach(o,O=>{_s(O,["Input","Select"])&&(ku(O.props,!0)||ku(O.props.inputProps,!0))&&(j=!0)}),j}),[E,$]=h.useState(!1);l&&E&&$(!1);const b=u!==void 0&&!l?u:E;let R;h.useRef(!1);const A=h.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:a,disabled:l,error:c,filled:k,focused:b,fullWidth:d,hiddenLabel:f,size:x,onBlur:()=>{$(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{$(!0)},registerEffect:R,required:y,variant:C}),[S,a,l,c,k,b,d,f,R,y,x,C]);return w.jsx(Ed.Provider,{value:A,children:w.jsx(KO,{as:s,ownerState:m,className:pe(v.root,i),ref:n,...p,children:o})})});function GO(e){return ye("MuiFormHelperText",e)}const wv=me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Cv;const QO=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${le(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return ve(c,GO,t)},XO=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wv.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}}]}))),pw=h.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:g,...y}=r,x=xr(),C=Ua({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),p={...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 p.ownerState;const m=QO(p);return w.jsx(XO,{as:a,className:pe(m.root,i),ref:n,...y,ownerState:p,children:o===" "?Cv||(Cv=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function qO(e){return ye("MuiFormLabel",e)}const Hs=me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ZO=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${le(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return ve(l,qO,t)},JO=K("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Fe(({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(Ht()).map(([t])=>({props:{color:t},style:{[`&.${Hs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),e$=K("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Fe(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}))),ua=h.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,...g}=r,y=xr(),x=Ua({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},p=ZO(C);return w.jsxs(JO,{as:s,ownerState:C,className:pe(p.root,i),ref:n,...g,children:[o,x.required&&w.jsxs(e$,{ownerState:C,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]})}),ci=UR({createStyledComponent:K("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:vr});function Kp(e){return`scale(${e}, ${e**2})`}const t$={entering:{opacity:1,transform:Kp(1)},entered:{opacity:1,transform:"none"}},Pf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Sl=h.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:g,style:y,timeout:x="auto",TransitionComponent:C=or,...p}=t,m=hm(),v=h.useRef(),S=vr(),P=h.useRef(null),k=He(P,ki(i),n),M=I=>T=>{if(I){const N=P.current;T===void 0?I(N):I(N,T)}},E=M(u),$=M((I,T)=>{Cm(I);const{duration:N,delay:D,easing:L}=Ea({style:y,timeout:x,easing:a},{mode:"enter"});let z;x==="auto"?(z=S.transitions.getAutoHeightDuration(I.clientHeight),v.current=z):z=N,I.style.transition=[S.transitions.create("opacity",{duration:z,delay:D}),S.transitions.create("transform",{duration:Pf?z:z*.666,delay:D,easing:L})].join(","),l&&l(I,T)}),b=M(c),R=M(g),A=M(I=>{const{duration:T,delay:N,easing:D}=Ea({style:y,timeout:x,easing:a},{mode:"exit"});let L;x==="auto"?(L=S.transitions.getAutoHeightDuration(I.clientHeight),v.current=L):L=T,I.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:Pf?L:L*.666,delay:Pf?N:N||L*.333,easing:D})].join(","),I.style.opacity=0,I.style.transform=Kp(.75),d&&d(I)}),j=M(f),O=I=>{x==="auto"&&m.start(v.current||0,I),r&&r(P.current,I)};return w.jsx(C,{appear:o,in:s,nodeRef:P,onEnter:$,onEntered:b,onEntering:E,onExit:A,onExited:j,onExiting:R,addEndListener:O,timeout:x==="auto"?null:x,...p,children:(I,T)=>h.cloneElement(i,{style:{opacity:0,transform:Kp(.75),visibility:I==="exited"&&!s?"hidden":void 0,...t$[I],...y,...i.props.style},ref:k,...T})})});Sl&&(Sl.muiSupportAuto=!0);const Id=GM({themeId:Qn}),n$=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},lI,t);return{...t,...o}},r$=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Md(e,t),!n.disableUnderline&&t.underline]}})(Fe(({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"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.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(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ht()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),o$=K(Dd,{name:"MuiInput",slot:"Input",overridesResolver:Rd})({}),Eu=h.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",...g}=r,y=n$(r),C={root:{ownerState:{disableUnderline:o}}},p=u??a?Kt(u??a,C):C,m=d.root??i.Root??r$,v=d.input??i.Input??o$;return w.jsx(Im,{slots:{root:m,input:v},slotProps:p,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...g,classes:y})});Eu&&(Eu.muiName="Input");function i$(e){return ye("MuiInputAdornment",e)}const kv=me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pv;const a$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,a,r&&"hiddenLabel",i&&`size${le(i)}`]};return ve(s,i$,t)},l$=K("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:a$})(Fe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kv.positionStart}&:not(.${kv.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),hw=h.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=xr()||{};let g=u;u&&f.variant,f&&!g&&(g=f.variant);const y={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:g},x=s$(y);return w.jsx(Ed.Provider,{value:null,children:w.jsx(l$,{as:a,ownerState:y,className:pe(x.root,i),ref:n,...d,children:typeof o=="string"&&!l?w.jsx(Ye,{color:"textSecondary",children:o}):w.jsxs(h.Fragment,{children:[c==="start"?Pv||(Pv=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function c$(e){return ye("MuiInputLabel",e)}me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const u$=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${le(r)}`,a],asterisk:[s&&"asterisk"]},c=ve(l,c$,t);return{...t,...c}},d$=K(ua,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hs.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]]}})(Fe(({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)"}}]}))),$m=h.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=xr();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=Ua({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},y=u$(g);return w.jsx(d$,{"data-shrink":d,ref:n,className:pe(y.root,l),...c,ownerState:g,classes:y})});function f$(e){return ye("MuiLink",e)}const p$=me("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),h$=({theme:e,ownerState:t})=>{const n=t.color,r=Ca(e,`palette.${n}`,!1)||t.color,o=Ca(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Be(r,.4)},Ev={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m$=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${le(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ve(i,f$,t)},g$=K(Ye,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${le(n.underline)}`],n.component==="button"&&t.button]}})(Fe(({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(Ht()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Be(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Be(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Be(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"},[`&.${p$.focusVisible}`]:{outline:"auto"}}}]}))),Am=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLink"}),o=vr(),{className:i,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:g,...y}=r,[x,C]=h.useState(!1),p=P=>{yu(P.target)||C(!1),l&&l(P)},m=P=>{yu(P.target)&&C(!0),c&&c(P)},v={...r,color:a,component:s,focusVisible:x,underline:d,variant:f},S=m$(v);return w.jsx(g$,{color:a,className:pe(S.root,i),classes:u,component:s,onBlur:p,onFocus:m,ref:n,ownerState:v,variant:f,...y,sx:[...Ev[a]===void 0?[{color:a}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...d==="always"&&a!=="inherit"&&!Ev[a]&&{"--Link-underlineColor":h$({theme:o,ownerState:v})}}})}),ui=h.createContext({});function y$(e){return ye("MuiList",e)}me("MuiList",["root","padding","dense","subheader"]);const v$=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},y$,t)},x$=K("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}}]}),mw=h.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=h.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},g=v$(f);return w.jsx(ui.Provider,{value:d,children:w.jsxs(x$,{as:a,className:pe(g.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function S$(e){return ye("MuiListItem",e)}me("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const b$=me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w$(e){return ye("MuiListItemSecondaryAction",e)}me("MuiListItemSecondaryAction",["root","disableGutters"]);const C$=e=>{const{disableGutters:t,classes:n}=e;return ve({root:["root",t&&"disableGutters"]},w$,n)},k$=K("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}}]}),gw=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=h.useContext(ui),s={...r,disableGutters:a.disableGutters},l=C$(s);return w.jsx(k$,{className:pe(l.root,o),ownerState:s,ref:n,...i})});gw.muiName="ListItemSecondaryAction";const P$=(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]},E$=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return ve({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},S$,n)},M$=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:P$})(Fe(({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:{[`& > .${b$.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}}]}))),R$=K("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),T$=h.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:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:C=!1,secondaryAction:p,slotProps:m={},slots:v={},...S}=r,P=h.useContext(ui),k=h.useMemo(()=>({dense:g||P.dense||!1,alignItems:o,disableGutters:y}),[o,P.dense,g,y]),M=h.useRef(null),E=h.Children.toArray(i),$=E.length&&_s(E[E.length-1],["ListItemSecondaryAction"]),b={...r,alignItems:o,dense:k.dense,disableGutters:y,disablePadding:x,divider:C,hasSecondaryAction:$},R=E$(b),A=He(M,n),j=v.root||l.Root||M$,O=m.root||c.root||{},I={className:pe(R.root,O.className,a),...S};let T=s||"li";return $?(T=!I.component&&!s?"div":T,u==="li"&&(T==="li"?T="div":I.component==="li"&&(I.component="div")),w.jsx(ui.Provider,{value:k,children:w.jsxs(R$,{as:u,className:pe(R.container,d),ref:A,ownerState:b,...f,children:[w.jsx(j,{...O,...!vl(j)&&{as:T,ownerState:{...b,...O.ownerState}},...I,children:E}),E.pop()]})})):w.jsx(ui.Provider,{value:k,children:w.jsxs(j,{...O,as:T,ref:A,...!vl(j)&&{ownerState:{...b,...O.ownerState}},...I,children:[E,p&&w.jsx(gw,{children:p})]})})}),Mv=me("MuiListItemIcon",["root","alignItemsFlexStart"]),Rv=me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function yw(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 us(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")||!yw(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const D$=h.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,g=h.useRef(null),y=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vt(()=>{o&&g.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:S})=>{const P=!g.current.style.width;if(v.clientHeight{const S=g.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const M=zt(S).activeElement;if(P==="ArrowDown")v.preventDefault(),us(S,M,c,l,Ef);else if(P==="ArrowUp")v.preventDefault(),us(S,M,c,l,Tv);else if(P==="Home")v.preventDefault(),us(S,null,c,l,Ef);else if(P==="End")v.preventDefault(),us(S,null,c,l,Tv);else if(P.length===1){const E=y.current,$=P.toLowerCase(),b=performance.now();E.keys.length>0&&(b-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=b,E.keys.push($);const R=M&&!E.repeating&&yw(M,E);E.previousKeyMatched&&(R||us(S,M,!1,l,Ef,E))?v.preventDefault():E.previousKeyMatched=!1}u&&u(v)},C=He(g,n);let p=-1;h.Children.forEach(a,(v,S)=>{if(!h.isValidElement(v)){p===S&&(p+=1,p>=a.length&&(p=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||p===-1)&&(p=S),p===S&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(p+=1,p>=a.length&&(p=-1))});const m=h.Children.map(a,(v,S)=>{if(S===p){const P={};return i&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),h.cloneElement(v,P)}return v});return w.jsx(mw,{role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1,...f,children:m})});function I$(e){return ye("MuiPopover",e)}me("MuiPopover",["root","paper"]);function Dv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Iv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ov(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mf(e){return typeof e=="function"?e():e}const O$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},I$,t)},$$=K(Om,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vw=K(yr,{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}),A$=h.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:g=16,open:y,PaperProps:x={},slots:C={},slotProps:p={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=Sl,transitionDuration:S="auto",TransitionProps:{onEntering:P,...k}={},disableScrollLock:M=!1,...E}=r,$=(p==null?void 0:p.paper)??x,b=h.useRef(),R={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:g,externalPaperSlotProps:$,transformOrigin:m,TransitionComponent:v,transitionDuration:S,TransitionProps:k},A=O$(R),j=h.useCallback(()=>{if(l==="anchorPosition")return s;const ne=Mf(i),W=(ne&&ne.nodeType===1?ne:zt(b.current).body).getBoundingClientRect();return{top:W.top+Dv(W,a.vertical),left:W.left+Iv(W,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=h.useCallback(ne=>({vertical:Dv(ne,m.vertical),horizontal:Iv(ne,m.horizontal)}),[m.horizontal,m.vertical]),I=h.useCallback(ne=>{const oe={width:ne.offsetWidth,height:ne.offsetHeight},W=O(oe);if(l==="none")return{top:null,left:null,transformOrigin:Ov(W)};const F=j();let Y=F.top-W.vertical,G=F.left-W.horizontal;const te=Y+oe.height,ue=G+oe.width,Z=gr(Mf(i)),fe=Z.innerHeight-g,ge=Z.innerWidth-g;if(g!==null&&Yfe){const Le=te-fe;Y-=Le,W.vertical+=Le}if(g!==null&&Gge){const Le=ue-ge;G-=Le,W.horizontal+=Le}return{top:`${Math.round(Y)}px`,left:`${Math.round(G)}px`,transformOrigin:Ov(W)}},[i,l,j,O,g]),[T,N]=h.useState(y),D=h.useCallback(()=>{const ne=b.current;if(!ne)return;const oe=I(ne);oe.top!==null&&ne.style.setProperty("top",oe.top),oe.left!==null&&(ne.style.left=oe.left),ne.style.transformOrigin=oe.transformOrigin,N(!0)},[I]);h.useEffect(()=>(M&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,M,D]);const L=(ne,oe)=>{P&&P(ne,oe),D()},z=()=>{N(!1)};h.useEffect(()=>{y&&D()}),h.useImperativeHandle(o,()=>y?{updatePosition:()=>{D()}}:null,[y,D]),h.useEffect(()=>{if(!y)return;const ne=fm(()=>{D()}),oe=gr(i);return oe.addEventListener("resize",ne),()=>{ne.clear(),oe.removeEventListener("resize",ne)}},[i,y,D]);let V=S;S==="auto"&&!v.muiSupportAuto&&(V=void 0);const J=d||(i?zt(Mf(i)).body:void 0),ce={slots:C,slotProps:{...p,paper:$}},[se,H]=Tn("paper",{elementType:vw,externalForwardedProps:ce,additionalProps:{elevation:f,className:pe(A.paper,$==null?void 0:$.className),style:T?$.style:{...$.style,opacity:0}},ownerState:R}),[ae,{slotProps:ie,...ee}]=Tn("root",{elementType:$$,externalForwardedProps:ce,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:J,open:y},ownerState:R,className:pe(A.root,u)}),X=He(b,H.ref);return w.jsx(ae,{...ee,...!vl(ae)&&{slotProps:ie,disableScrollLock:M},...E,ref:n,children:w.jsx(v,{appear:!0,in:y,onEntering:L,onExited:z,timeout:V,...k,children:w.jsx(se,{...H,ref:X,children:c})})})});function L$(e){return ye("MuiMenu",e)}me("MuiMenu",["root","paper","list"]);const j$={vertical:"top",horizontal:"right"},N$={vertical:"top",horizontal:"left"},F$=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},L$,t)},B$=K(A$,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_$=K(vw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),z$=K(D$,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xw=h.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:g="auto",TransitionProps:{onEntering:y,...x}={},variant:C="selectedMenu",slots:p={},slotProps:m={},...v}=r,S=rr(),P={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:y,PaperProps:d,transitionDuration:g,TransitionProps:x,variant:C},k=F$(P),M=o&&!s&&u,E=h.useRef(null),$=(T,N)=>{E.current&&E.current.adjustStyleForScrollbar(T,{direction:S?"rtl":"ltr"}),y&&y(T,N)},b=T=>{T.key==="Tab"&&(T.preventDefault(),c&&c(T,"tabKeyDown"))};let R=-1;h.Children.map(i,(T,N)=>{h.isValidElement(T)&&(T.props.disabled||(C==="selectedMenu"&&T.props.selected||R===-1)&&(R=N))});const A=p.paper??_$,j=m.paper??d,O=Qe({elementType:p.root,externalSlotProps:m.root,ownerState:P,className:[k.root,a]}),I=Qe({elementType:A,externalSlotProps:j,ownerState:P,className:k.paper});return w.jsx(B$,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?j$:N$,slots:{paper:A,root:p.root},slotProps:{root:O,paper:I},open:u,ref:n,transitionDuration:g,TransitionProps:{onEntering:$,...x},ownerState:P,...v,classes:f,children:w.jsx(z$,{onKeyDown:b,actions:E,autoFocus:o&&(R===-1||s),autoFocusItem:M,variant:C,...l,className:pe(k.list,l.className),children:i})})});function V$(e){return ye("MuiMenuItem",e)}const ds=me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),W$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},U$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=ve({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},V$,a);return{...a,...l}},H$=K(Ma,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:W$})(Fe(({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"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(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})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Sv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Sv.inset}`]:{marginLeft:52},[`& .${Rv.root}`]:{marginTop:0,marginBottom:0},[`& .${Rv.inset}`]:{paddingLeft:36},[`& .${Mv.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,[`& .${Mv.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gp=h.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,...g}=r,y=h.useContext(ui),x=h.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=h.useRef(null);Vt(()=>{o&&C.current&&C.current.focus()},[o]);const p={...r,dense:x.dense,divider:s,disableGutters:l},m=U$(r),v=He(C,n);let S;return r.disabled||(S=d!==void 0?d:-1),w.jsx(ui.Provider,{value:x,children:w.jsx(H$,{ref:v,role:u,tabIndex:S,component:i,focusVisibleClassName:pe(m.focusVisible,c),className:pe(m.root,f),...g,ownerState:p,classes:m})})});function Y$(e){return ye("MuiNativeSelect",e)}const Lm=me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),K$=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${le(n)}`,i&&"iconOpen",r&&"disabled"]};return ve(s,Y$,t)},Sw=K("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Lm.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}}}]})),G$=K(Sw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_n,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Lm.multiple}`]:t.multiple}]}})({}),bw=K("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Lm.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}}]})),Q$=K(bw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),X$=h.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=K$(u);return w.jsxs(h.Fragment,{children:[w.jsx(G$,{ownerState:u,className:pe(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:w.jsx(Q$,{as:a,ownerState:u,className:d.icon})]})});var $v;const q$=K("fieldset",{shouldForwardProp:_n})({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%"}),Z$=K("legend",{shouldForwardProp:_n})(Fe(({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 J$(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 w.jsx(q$,{"aria-hidden":!0,className:r,ownerState:l,...a,children:w.jsx(Z$,{ownerState:l,children:s?w.jsx("span",{children:o}):$v||($v=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const eA=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cI,t);return{...t,...r}},tA=K(Td,{shouldForwardProp:e=>_n(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})(Fe(({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 .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ht()).map(([n])=>({props:{color:n},style:{[`&.${Pr.focused} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Pr.error} .${Pr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pr.disabled} .${Pr.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"}}]}})),nA=K(J$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Fe(({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}})),rA=K(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rd})(Fe(({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}}]}))),Mu=h.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",...g}=o,y=eA(o),x=xr(),C=Ua({props:o,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),p={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},m=d.root??i.Root??tA,v=d.input??i.Input??rA;return w.jsx(Im,{slots:{root:m,input:v},renderSuffix:S=>w.jsx(nA,{ownerState:p,className:y.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=w.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...g,classes:{...y,notchedOutline:null}})});Mu&&(Mu.muiName="Input");function oA(e){return ye("MuiSelect",e)}const fs=me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Av;const iA=K(Sw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})({[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),aA=K(bw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),sA=K("input",{shouldForwardProp:e=>Yb(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 Lv(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lA(e){return e==null||typeof e=="string"&&!e.trim()}const cA=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${le(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(s,oA,t)},uA=h.forwardRef(function(t,n){var fo;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:g=!1,IconComponent:y,inputRef:x,labelId:C,MenuProps:p={},multiple:m,name:v,onBlur:S,onChange:P,onClose:k,onFocus:M,onOpen:E,open:$,readOnly:b,renderValue:R,required:A,SelectDisplayProps:j={},tabIndex:O,type:I,value:T,variant:N="standard",...D}=t,[L,z]=io({controlled:T,default:u,name:"Select"}),[V,J]=io({controlled:$,default:c,name:"Select"}),ce=h.useRef(null),se=h.useRef(null),[H,ae]=h.useState(null),{current:ie}=h.useRef($!=null),[ee,X]=h.useState(),ne=He(n,x),oe=h.useCallback(Me=>{se.current=Me,Me&&ae(Me)},[]),W=H==null?void 0:H.parentNode;h.useImperativeHandle(ne,()=>({focus:()=>{se.current.focus()},node:ce.current,value:L}),[L]),h.useEffect(()=>{c&&V&&H&&!ie&&(X(a?null:W.clientWidth),se.current.focus())},[H,a]),h.useEffect(()=>{i&&se.current.focus()},[i]),h.useEffect(()=>{if(!C)return;const Me=zt(se.current).getElementById(C);if(Me){const qe=()=>{getSelection().isCollapsed&&se.current.focus()};return Me.addEventListener("click",qe),()=>{Me.removeEventListener("click",qe)}}},[C]);const F=(Me,qe)=>{Me?E&&E(qe):k&&k(qe),ie||(X(a?null:W.clientWidth),J(Me))},Y=Me=>{Me.button===0&&(Me.preventDefault(),se.current.focus(),F(!0,Me))},G=Me=>{F(!1,Me)},te=h.Children.toArray(s),ue=Me=>{const qe=te.find(yt=>yt.props.value===Me.target.value);qe!==void 0&&(z(qe.props.value),P&&P(Me,qe))},Z=Me=>qe=>{let yt;if(qe.currentTarget.hasAttribute("tabindex")){if(m){yt=Array.isArray(L)?L.slice():[];const Cn=L.indexOf(Me.props.value);Cn===-1?yt.push(Me.props.value):yt.splice(Cn,1)}else yt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(qe),L!==yt&&(z(yt),P)){const Cn=qe.nativeEvent||qe,nt=new Cn.constructor(Cn.type,Cn);Object.defineProperty(nt,"target",{writable:!0,value:{value:yt,name:v}}),P(nt,Me)}m||F(!1,qe)}},fe=Me=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),F(!0,Me))},ge=H!==null&&V,Le=Me=>{!ge&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:L,name:v}}),S(Me))};delete D["aria-invalid"];let xe,tt;const Ee=[];let _e=!1;(ku({value:L})||f)&&(R?xe=R(L):_e=!0);const ct=te.map(Me=>{if(!h.isValidElement(Me))return null;let qe;if(m){if(!Array.isArray(L))throw new Error(oo(2));qe=L.some(yt=>Lv(yt,Me.props.value)),qe&&_e&&Ee.push(Me.props.children)}else qe=Lv(L,Me.props.value),qe&&_e&&(tt=Me.props.children);return h.cloneElement(Me,{"aria-selected":qe?"true":"false",onClick:Z(Me),onKeyUp:yt=>{yt.key===" "&&yt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(yt)},role:"option",selected:qe,value:void 0,"data-value":Me.props.value})});_e&&(m?Ee.length===0?xe=null:xe=Ee.reduce((Me,qe,yt)=>(Me.push(qe),yt{const{classes:t}=e;return t},jm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_n(e)&&e!=="variant",slot:"Root"},fA=K(Eu,jm)(""),pA=K(Mu,jm)(""),hA=K(Pu,jm)(""),Nm=h.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=dI,id:d,input:f,inputProps:g,label:y,labelId:x,MenuProps:C,multiple:p=!1,native:m=!1,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:M,variant:E="outlined",...$}=r,b=m?X$:uA,R=xr(),A=Ua({props:r,muiFormControl:R,states:["variant","error"]}),j=A.variant||E,O={...r,variant:j,classes:a},I=dA(O),{root:T,...N}=I,D=f||{standard:w.jsx(fA,{ownerState:O}),outlined:w.jsx(pA,{label:y,ownerState:O}),filled:w.jsx(hA,{ownerState:O})}[j],L=He(n,ki(D));return w.jsx(h.Fragment,{children:h.cloneElement(D,{inputComponent:b,inputProps:{children:i,error:A.error,IconComponent:u,variant:j,type:void 0,multiple:p,...m?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:v,onOpen:S,open:P,renderValue:k,SelectDisplayProps:{id:d,...M}},...g,classes:g?Kt(N,g.classes):N,...f?f.props.inputProps:{}},...(p&&m||c)&&j==="outlined"?{notched:!0}:{},ref:L,className:pe(D.props.className,s,I.root),...!f&&{variant:j},...$})})});Nm.muiName="Select";function mA(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=hm();h.useEffect(()=>{if(!o)return;function p(m){m.defaultPrevented||m.key==="Escape"&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[o,r]);const s=Se((p,m)=>{r==null||r(p,m)}),l=Se(p=>{!r||p==null||a.start(p,()=>{s(null,"timeout")})});h.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=p=>{r==null||r(p,"clickaway")},u=a.clear,d=h.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),f=p=>m=>{const v=p.onBlur;v==null||v(m),d()},g=p=>m=>{const v=p.onFocus;v==null||v(m),u()},y=p=>m=>{const v=p.onMouseEnter;v==null||v(m),u()},x=p=>m=>{const v=p.onMouseLeave;v==null||v(m),d()};return h.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:(p={})=>{const m={...vu(e),...vu(p)};return{role:"presentation",...p,...m,onBlur:f(m),onFocus:g(m),onMouseEnter:y(m),onMouseLeave:x(m)}},onClickAway:c}}function gA(e){return ye("MuiSnackbarContent",e)}me("MuiSnackbarContent",["root","message","action"]);const yA=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},gA,t)},vA=K(yr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Tb(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}}})),xA=K("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),SA=K("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bA=h.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=yA(c);return w.jsxs(vA,{role:s,square:!0,elevation:6,className:pe(u.root,i),ownerState:c,ref:n,...l,children:[w.jsx(xA,{className:u.message,ownerState:c,children:a}),o?w.jsx(SA,{className:u.action,ownerState:c,children:o}):null]})});function wA(e){return ye("MuiSnackbar",e)}me("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const CA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`]};return ve(r,wA,t)},jv=K("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}`]]}})(Fe(({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%)"}}}]}))),kA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),o=vr(),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:g,disableWindowBlurListener:y=!1,message:x,onBlur:C,onClose:p,onFocus:m,onMouseEnter:v,onMouseLeave:S,open:P,resumeHideDuration:k,TransitionComponent:M=Sl,transitionDuration:E=i,TransitionProps:{onEnter:$,onExited:b,...R}={},...A}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:M,transitionDuration:E},O=CA(j),{getRootProps:I,onClickAway:T}=mA({...j}),[N,D]=h.useState(!0),L=Qe({elementType:jv,getSlotProps:I,externalForwardedProps:A,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),z=J=>{D(!0),b&&b(J)},V=(J,ce)=>{D(!1),$&&$(J,ce)};return!P&&N?null:w.jsx(YI,{onClickAway:T,...f,children:w.jsx(jv,{...L,children:w.jsx(M,{appear:!0,in:P,timeout:E,direction:s==="top"?"down":"up",onEnter:V,onExited:z,...R,children:u||w.jsx(bA,{message:x,action:a,...g})})})})}),Pi=qR({createStyledComponent:K("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})}),ww=h.createContext();function PA(e){return ye("MuiTable",e)}me("MuiTable",["root","stickyHeader"]);const EA=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},PA,t)},MA=K("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fe(({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"}}]}))),Nv="table",RA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTable"}),{className:o,component:i=Nv,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=EA(u),f=h.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return w.jsx(ww.Provider,{value:f,children:w.jsx(MA,{as:i,role:i===Nv?null:"table",ref:n,className:pe(d.root,o),ownerState:u,...c})})}),Od=h.createContext();function TA(e){return ye("MuiTableBody",e)}me("MuiTableBody",["root"]);const DA=e=>{const{classes:t}=e;return ve({root:["root"]},TA,t)},IA=K("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),OA={variant:"body"},Fv="tbody",$A=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableBody"}),{className:o,component:i=Fv,...a}=r,s={...r,component:i},l=DA(s);return w.jsx(Od.Provider,{value:OA,children:w.jsx(IA,{className:pe(l.root,o),as:i,ref:n,role:i===Fv?null:"rowgroup",ownerState:s,...a})})});function AA(e){return ye("MuiTableCell",e)}const LA=me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${le(r)}`,o!=="normal"&&`padding${le(o)}`,`size${le(i)}`]};return ve(s,AA,t)},NA=K("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${le(n.size)}`],n.padding!=="normal"&&t[`padding${le(n.padding)}`],n.align!=="inherit"&&t[`align${le(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fe(({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"?Pa(Be(e.palette.divider,1),.88):ka(Be(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",[`&.${LA.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}}]}))),kn=h.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,g=h.useContext(ww),y=h.useContext(Od),x=y&&y.variant==="head";let C;a?C=a:C=x?"th":"td";let p=l;C==="td"?p=void 0:!p&&x&&(p="col");const m=d||y&&y.variant,v={...r,align:o,component:C,padding:s||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&g&&g.stickyHeader,variant:m},S=jA(v);let P=null;return u&&(P=u==="asc"?"ascending":"descending"),w.jsx(NA,{as:C,ref:n,className:pe(S.root,i),"aria-sort":P,scope:p,ownerState:v,...f})});function FA(e){return ye("MuiTableContainer",e)}me("MuiTableContainer",["root"]);const BA=e=>{const{classes:t}=e;return ve({root:["root"]},FA,t)},_A=K("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=BA(s);return w.jsx(_A,{ref:n,as:i,className:pe(l.root,o),ownerState:s,...a})});function VA(e){return ye("MuiTableHead",e)}me("MuiTableHead",["root"]);const WA=e=>{const{classes:t}=e;return ve({root:["root"]},VA,t)},UA=K("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),HA={variant:"head"},Bv="thead",YA=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableHead"}),{className:o,component:i=Bv,...a}=r,s={...r,component:i},l=WA(s);return w.jsx(Od.Provider,{value:HA,children:w.jsx(UA,{as:i,className:pe(l.root,o),ref:n,role:i===Bv?null:"rowgroup",ownerState:s,...a})})});function KA(e){return ye("MuiToolbar",e)}me("MuiToolbar",["root","gutters","regular","dense"]);const GA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ve({root:["root",!n&&"gutters",r]},KA,t)},QA=K("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fe(({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}]}))),XA=h.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=GA(c);return w.jsx(QA,{as:i,className:pe(u.root,o),ref:n,ownerState:c,...l})});function qA(e){return ye("MuiTableRow",e)}const _v=me("MuiTableRow",["root","selected","hover","head","footer"]),ZA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ve({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},qA,t)},JA=K("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${_v.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_v.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(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}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),zv="tr",Rf=h.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTableRow"}),{className:o,component:i=zv,hover:a=!1,selected:s=!1,...l}=r,c=h.useContext(Od),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=ZA(u);return w.jsx(JA,{as:i,ref:n,className:pe(d.root,o),role:i===zv?null:"row",ownerState:u,...l})});function eL(e){return ye("MuiTextField",e)}me("MuiTextField",["root"]);const tL={standard:Eu,filled:Pu,outlined:Mu},nL=e=>{const{classes:t}=e;return ve({root:["root"]},eL,t)},rL=K($o,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fr=h.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:g=!1,helperText:y,id:x,InputLabelProps:C,inputProps:p,InputProps:m,inputRef:v,label:S,maxRows:P,minRows:k,multiline:M=!1,name:E,onBlur:$,onChange:b,onFocus:R,placeholder:A,required:j=!1,rows:O,select:I=!1,SelectProps:T,slots:N={},slotProps:D={},type:L,value:z,variant:V="outlined",...J}=r,ce={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:g,multiline:M,required:j,select:I,variant:V},se=nL(ce),H=zo(x),ae=y&&H?`${H}-helper-text`:void 0,ie=S&&H?`${H}-label`:void 0,ee=tL[V],X={slots:N,slotProps:{input:m,inputLabel:C,htmlInput:p,formHelperText:f,select:T,...D}},ne={},oe=X.slotProps.inputLabel;V==="outlined"&&(oe&&typeof oe.shrink<"u"&&(ne.notched=oe.shrink),ne.label=S),I&&((!T||!T.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const[W,F]=Tn("input",{elementType:ee,externalForwardedProps:X,additionalProps:ne,ownerState:ce}),[Y,G]=Tn("inputLabel",{elementType:$m,externalForwardedProps:X,ownerState:ce}),[te,ue]=Tn("htmlInput",{elementType:"input",externalForwardedProps:X,ownerState:ce}),[Z,fe]=Tn("formHelperText",{elementType:pw,externalForwardedProps:X,ownerState:ce}),[ge,Le]=Tn("select",{elementType:Nm,externalForwardedProps:X,ownerState:ce}),xe=w.jsx(W,{"aria-describedby":ae,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:g,multiline:M,name:E,rows:O,maxRows:P,minRows:k,type:L,value:z,id:H,inputRef:v,onBlur:$,onChange:b,onFocus:R,placeholder:A,inputProps:ue,slots:{input:N.htmlInput?te:void 0},...F});return w.jsxs(rL,{className:pe(se.root,s),disabled:u,error:d,fullWidth:g,ref:n,required:j,color:l,variant:V,ownerState:ce,...J,children:[S!=null&&S!==""&&w.jsx(Y,{htmlFor:H,id:ie,...G,children:S}),I?w.jsx(ge,{"aria-describedby":ae,id:H,labelId:ie,value:z,input:xe,...Le,children:a}):xe,y&&w.jsx(Z,{id:ae,...fe,children:y})]})}),wn=h.createContext();var Cw={exports:{}},kw={};/** * @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 $a=h;function oL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iL=typeof Object.is=="function"?Object.is:oL,aL=$a.useState,sL=$a.useEffect,lL=$a.useLayoutEffect,cL=$a.useDebugValue;function uL(e,t){var n=t(),r=aL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return lL(function(){o.value=n,o.getSnapshot=t,Tf(o)&&i({inst:o})},[e,n,t]),sL(function(){return Tf(o)&&i({inst:o}),e(function(){Tf(o)&&i({inst:o})})},[e]),cL(n),n}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iL(e,n)}catch{return!0}}function dL(e,t){return t()}var fL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dL:uL;kw.useSyncExternalStore=$a.useSyncExternalStore!==void 0?$a.useSyncExternalStore:fL;Cw.exports=kw;var Pw=Cw.exports;const Co=()=>{},It=Co(),da=Object,De=e=>e===It,Dn=e=>typeof e=="function",An=(e,t)=>({...e,...t}),pL=e=>Dn(e.then),Sc=new WeakMap;let hL=0;const Sl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(da(e)===e&&!r&&n!=RegExp){if(o=Sc.get(e),o)return o;if(o=++hL+"~",Sc.set(e,o),n==Array){for(o="@",i=0;i$d&&typeof window.requestAnimationFrame!=Fm,Bm=(e,t)=>{const n=Or.get(e);return[()=>!De(t)&&e.get(t)||Df,r=>{if(!De(t)){const o=e.get(t);t in bc||(bc[t]=o),n[5](t,An(o,r),o||Df)}},n[6],()=>!De(t)&&t in bc?bc[t]:!De(t)&&e.get(t)||Df]};let Xp=!0;const gL=()=>Xp,[qp,Zp]=$d&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Co,Co],yL=()=>{const e=Qp&&document.visibilityState;return De(e)||e!=="hidden"},vL=e=>(Qp&&document.addEventListener("visibilitychange",e),qp("focus",e),()=>{Qp&&document.removeEventListener("visibilitychange",e),Zp("focus",e)}),xL=e=>{const t=()=>{Xp=!0,e()},n=()=>{Xp=!1};return qp("online",t),qp("offline",n),()=>{Zp("online",t),Zp("offline",n)}},SL={isOnline:gL,isVisible:yL},bL={initFocus:vL,initReconnect:xL},bl=!Bt.useId,vi=!$d||"Deno"in window,Ew=e=>mL()?window.requestAnimationFrame(e):setTimeout(e,1),Zr=vi?h.useEffect:h.useLayoutEffect,If=typeof navigator<"u"&&navigator.connection,Vv=!vi&&If&&(["slow-2g","2g"].includes(If.effectiveType)||If.saveData),Bl=e=>{if(Dn(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Sl(e):"",[e,t]};let wL=0;const Aa=()=>++wL,Mw=0,Rw=1,Tw=2,CL=3;var $r={__proto__:null,ERROR_REVALIDATE_EVENT:CL,FOCUS_EVENT:Mw,MUTATE_EVENT:Tw,RECONNECT_EVENT:Rw};async function _m(...e){const[t,n,r,o]=e,i=An({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(Dn(n)){const f=n,g=[],y=t.keys();for(const x of y)!/^\$(inf|sub)\$/.test(x)&&f(t.get(x)._k)&&g.push(x);return Promise.all(g.map(d))}return d(n);async function d(f){const[g]=Bl(f);if(!g)return;const[y,x]=Bm(t,g),[C,p,m,v]=Or.get(t),S=()=>{const j=C[g];return(Dn(i.revalidate)?i.revalidate(y().data,f):i.revalidate!==!1)&&(delete m[g],delete v[g],j&&j[0])?j[0](Tw).then(()=>y().data):y().data};if(e.length<3)return S();let P=r,k;const M=Aa();p[g]=[M,0];const E=!De(l),$=y(),b=$.data,R=$._c,A=De(R)?b:R;if(E&&(l=Dn(l)?l(A,b):l,x({data:l,_c:A})),Dn(P))try{P=P(A)}catch(j){k=j}if(P&&pL(P))if(P=await P.catch(j=>{k=j}),M!==p[g][0]){if(k)throw k;return P}else k&&E&&c(k)&&(a=!0,x({data:A,_c:It}));if(a&&!k)if(Dn(a)){const j=a(P,A);x({data:j,error:It,_c:It})}else x({data:P,error:It,_c:It});if(p[g][1]=Aa(),Promise.resolve(S()).then(()=>{x({_c:It})}),k){if(u)throw k;return}return P}}const Wv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Dw=(e,t)=>{if(!Or.has(e)){const n=An(bL,t),r={},o=_m.bind(It,e);let i=Co;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 g=a[u];if(g)for(const y of g)y(d,f)},c=()=>{if(!Or.has(e)&&(Or.set(e,[r,{},{},{},o,l,s]),!vi)){const u=n.initFocus(setTimeout.bind(It,Wv.bind(It,r,Mw))),d=n.initReconnect(setTimeout.bind(It,Wv.bind(It,r,Rw)));i=()=>{u&&u(),d&&d(),Or.delete(e)}}};return c(),[e,o,c,i]}return[e,Or.get(e)[4]]},kL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!De(i)&&a>i||setTimeout(r,s,o)},PL=(e,t)=>Sl(e)==Sl(t),[zm,Iw]=Dw(new Map),Ad=An({onLoadingSlow:Co,onSuccess:Co,onError:Co,onErrorRetry:kL,onDiscarded:Co,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vv?5e3:3e3,compare:PL,isPaused:()=>!1,cache:zm,mutate:Iw,fallback:{}},SL),Ow=(e,t)=>{const n=An(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=An(o,a))}return n},Jp=h.createContext({}),Vm=e=>{const{value:t}=e,n=h.useContext(Jp),r=Dn(t),o=h.useMemo(()=>r?t(n):t,[r,n,t]),i=h.useMemo(()=>r?o:Ow(n,o),[r,n,o]),a=o&&o.provider,s=h.useRef(It);a&&!s.current&&(s.current=Dw(a(i.cache||zm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),Zr(()=>{if(l)return l[2]&&l[2](),l[3]},[]),h.createElement(Jp.Provider,An(e,{value:i}))},EL="$inf$",$w=$d&&window.__SWR_DEVTOOLS_USE__,ML=$w?window.__SWR_DEVTOOLS_USE__:[],RL=()=>{$w&&(window.__SWR_DEVTOOLS_REACT__=Bt)},Aw=e=>Dn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Lw=()=>An(Ad,h.useContext(Jp)),DL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Bl(t),[,,,s]=Or.get(zm);if(a.startsWith(EL))return n(...i);const l=s[a];return De(l)?n(...i):(delete s[a],l)}),r),IL=ML.concat(DL),jw=e=>function(...n){const r=Lw(),[o,i,a]=Aw(n),s=Ow(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(IL);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},Nw=(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())}},OL=(e,t)=>(...n)=>{const[r,o,i]=Aw(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};RL();const Uv=Bt.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)}),Of={dedupe:!0},$L=(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,[g,y,x,C]=Or.get(r),[p,m]=Bl(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[b,R,A,j]=Bm(r,p),O=h.useRef({}).current,I=De(a)?n.fallback[p]:a,T=(W,F)=>{for(const Y in O){const G=Y;if(G==="data"){if(!o(W[G],F[G])&&(!De(W[G])||!o(H,F[G])))return!1}else if(F[G]!==W[G])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},Y=b(),G=j(),te=F(Y),ue=Y===G?te:F(G);let Z=te;return[()=>{const fe=F(b());return T(fe,Z)?(Z.data=fe.data,Z.isLoading=fe.isLoading,Z.isValidating=fe.isValidating,Z.error=fe.error,Z):(Z=fe,fe)},()=>ue]},[r,p]),D=Pw.useSyncExternalStore(h.useCallback(W=>A(p,(F,Y)=>{T(Y,F)||W()}),[r,p]),N[0],N[1]),L=!v.current,z=g[p]&&g[p].length>0,V=D.data,J=De(V)?I:V,ce=D.error,se=h.useRef(J),H=f?De(V)?se.current:V:J,ae=z&&!De(ce)?!1:L&&!De(s)?s:E().isPaused()?!1:i?De(J)?!1:l:De(J)||l,ie=!!(p&&t&&L&&ae),ee=De(D.isValidating)?ie:D.isValidating,X=De(D.isLoading)?ie:D.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let Y,G,te=!0;const ue=W||{},Z=!x[p]||!ue.dedupe,fe=()=>bl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===G&&delete x[p]},tt={isValidating:!0};De(b().data)&&(tt.isLoading=!0);try{if(Z&&(R(tt),n.loadingTimeout&&De(b().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[Y,G]=x[p],Y=await Y,Z&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==G)return Z&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=y[p];if(!De(Ee)&&(G<=Ee[0]||G<=Ee[1]||Ee[1]===0))return Le(),Z&&fe()&&E().onDiscarded(p),!1;const _e=b().data;ge.data=o(_e,Y)?_e:Y,Z&&fe()&&E().onSuccess(Y,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,Z&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=g[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>_m(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Of);let F=0;const G=Nw(p,g,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const Z=Date.now();E().revalidateOnFocus&&Z>F&&$()&&(F=Z+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),ae&&(De(J)||vi?W():Ew(W)),()=>{S.current=!0,G()}},[p]),Zr(()=>{let W;function F(){const G=Dn(c)?c(b().data):c;G&&W!==-1&&(W=setTimeout(Y,G))}function Y(){!b().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Of).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(H),i&&De(J)&&p){if(!bl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);Uv(F)}if(De(ce)){const F=ne(Of);De(H)||(F.status="fulfilled",F.value=!0),Uv(F)}else throw ce}return{mutate:oe,get data(){return O.data=!0,H},get error(){return O.error=!0,ce},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,X}}},AL=da.defineProperty(Vm,"defaultValue",{value:Ad}),_r=jw($L),_l="",LL=async e=>{const t=await fetch(_l+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()},zr=e=>async t=>{const n=await fetch(_l+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()},Fw=async(e,{arg:t})=>{const n=await fetch(_l+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()},Wm=e=>async(t,{arg:n})=>{const r=await fetch(_l+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()},jL=e=>async(t,{arg:n})=>{const r=await fetch(_l+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()};Bt.use;da.defineProperty(Vm,"defaultValue",{value:Ad});const Ld=()=>{const{token:e}=h.useContext(wn),{data:t,error:n,isLoading:r,mutate:o}=_r(e?"/auth/users/me":null,zr(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function NL(){h.useState(0);const{user:e}=Ld();return h.useContext(wn),w.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:w.jsxs(Ye,{variant:"h1",children:["Welcome, ",e.username]})})}/** + */var $a=h;function oL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iL=typeof Object.is=="function"?Object.is:oL,aL=$a.useState,sL=$a.useEffect,lL=$a.useLayoutEffect,cL=$a.useDebugValue;function uL(e,t){var n=t(),r=aL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return lL(function(){o.value=n,o.getSnapshot=t,Tf(o)&&i({inst:o})},[e,n,t]),sL(function(){return Tf(o)&&i({inst:o}),e(function(){Tf(o)&&i({inst:o})})},[e]),cL(n),n}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iL(e,n)}catch{return!0}}function dL(e,t){return t()}var fL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dL:uL;kw.useSyncExternalStore=$a.useSyncExternalStore!==void 0?$a.useSyncExternalStore:fL;Cw.exports=kw;var Pw=Cw.exports;const Co=()=>{},It=Co(),da=Object,De=e=>e===It,Dn=e=>typeof e=="function",An=(e,t)=>({...e,...t}),pL=e=>Dn(e.then),Sc=new WeakMap;let hL=0;const bl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(da(e)===e&&!r&&n!=RegExp){if(o=Sc.get(e),o)return o;if(o=++hL+"~",Sc.set(e,o),n==Array){for(o="@",i=0;i$d&&typeof window.requestAnimationFrame!=Fm,Bm=(e,t)=>{const n=Or.get(e);return[()=>!De(t)&&e.get(t)||Df,r=>{if(!De(t)){const o=e.get(t);t in bc||(bc[t]=o),n[5](t,An(o,r),o||Df)}},n[6],()=>!De(t)&&t in bc?bc[t]:!De(t)&&e.get(t)||Df]};let Xp=!0;const gL=()=>Xp,[qp,Zp]=$d&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Co,Co],yL=()=>{const e=Qp&&document.visibilityState;return De(e)||e!=="hidden"},vL=e=>(Qp&&document.addEventListener("visibilitychange",e),qp("focus",e),()=>{Qp&&document.removeEventListener("visibilitychange",e),Zp("focus",e)}),xL=e=>{const t=()=>{Xp=!0,e()},n=()=>{Xp=!1};return qp("online",t),qp("offline",n),()=>{Zp("online",t),Zp("offline",n)}},SL={isOnline:gL,isVisible:yL},bL={initFocus:vL,initReconnect:xL},wl=!Bt.useId,vi=!$d||"Deno"in window,Ew=e=>mL()?window.requestAnimationFrame(e):setTimeout(e,1),Zr=vi?h.useEffect:h.useLayoutEffect,If=typeof navigator<"u"&&navigator.connection,Vv=!vi&&If&&(["slow-2g","2g"].includes(If.effectiveType)||If.saveData),_l=e=>{if(Dn(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?bl(e):"",[e,t]};let wL=0;const Aa=()=>++wL,Mw=0,Rw=1,Tw=2,CL=3;var $r={__proto__:null,ERROR_REVALIDATE_EVENT:CL,FOCUS_EVENT:Mw,MUTATE_EVENT:Tw,RECONNECT_EVENT:Rw};async function _m(...e){const[t,n,r,o]=e,i=An({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(Dn(n)){const f=n,g=[],y=t.keys();for(const x of y)!/^\$(inf|sub)\$/.test(x)&&f(t.get(x)._k)&&g.push(x);return Promise.all(g.map(d))}return d(n);async function d(f){const[g]=_l(f);if(!g)return;const[y,x]=Bm(t,g),[C,p,m,v]=Or.get(t),S=()=>{const j=C[g];return(Dn(i.revalidate)?i.revalidate(y().data,f):i.revalidate!==!1)&&(delete m[g],delete v[g],j&&j[0])?j[0](Tw).then(()=>y().data):y().data};if(e.length<3)return S();let P=r,k;const M=Aa();p[g]=[M,0];const E=!De(l),$=y(),b=$.data,R=$._c,A=De(R)?b:R;if(E&&(l=Dn(l)?l(A,b):l,x({data:l,_c:A})),Dn(P))try{P=P(A)}catch(j){k=j}if(P&&pL(P))if(P=await P.catch(j=>{k=j}),M!==p[g][0]){if(k)throw k;return P}else k&&E&&c(k)&&(a=!0,x({data:A,_c:It}));if(a&&!k)if(Dn(a)){const j=a(P,A);x({data:j,error:It,_c:It})}else x({data:P,error:It,_c:It});if(p[g][1]=Aa(),Promise.resolve(S()).then(()=>{x({_c:It})}),k){if(u)throw k;return}return P}}const Wv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Dw=(e,t)=>{if(!Or.has(e)){const n=An(bL,t),r={},o=_m.bind(It,e);let i=Co;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 g=a[u];if(g)for(const y of g)y(d,f)},c=()=>{if(!Or.has(e)&&(Or.set(e,[r,{},{},{},o,l,s]),!vi)){const u=n.initFocus(setTimeout.bind(It,Wv.bind(It,r,Mw))),d=n.initReconnect(setTimeout.bind(It,Wv.bind(It,r,Rw)));i=()=>{u&&u(),d&&d(),Or.delete(e)}}};return c(),[e,o,c,i]}return[e,Or.get(e)[4]]},kL=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!De(i)&&a>i||setTimeout(r,s,o)},PL=(e,t)=>bl(e)==bl(t),[zm,Iw]=Dw(new Map),Ad=An({onLoadingSlow:Co,onSuccess:Co,onError:Co,onErrorRetry:kL,onDiscarded:Co,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vv?5e3:3e3,compare:PL,isPaused:()=>!1,cache:zm,mutate:Iw,fallback:{}},SL),Ow=(e,t)=>{const n=An(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=An(o,a))}return n},Jp=h.createContext({}),Vm=e=>{const{value:t}=e,n=h.useContext(Jp),r=Dn(t),o=h.useMemo(()=>r?t(n):t,[r,n,t]),i=h.useMemo(()=>r?o:Ow(n,o),[r,n,o]),a=o&&o.provider,s=h.useRef(It);a&&!s.current&&(s.current=Dw(a(i.cache||zm),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),Zr(()=>{if(l)return l[2]&&l[2](),l[3]},[]),h.createElement(Jp.Provider,An(e,{value:i}))},EL="$inf$",$w=$d&&window.__SWR_DEVTOOLS_USE__,ML=$w?window.__SWR_DEVTOOLS_USE__:[],RL=()=>{$w&&(window.__SWR_DEVTOOLS_REACT__=Bt)},Aw=e=>Dn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Lw=()=>An(Ad,h.useContext(Jp)),DL=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=_l(t),[,,,s]=Or.get(zm);if(a.startsWith(EL))return n(...i);const l=s[a];return De(l)?n(...i):(delete s[a],l)}),r),IL=ML.concat(DL),jw=e=>function(...n){const r=Lw(),[o,i,a]=Aw(n),s=Ow(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(IL);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},Nw=(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())}},OL=(e,t)=>(...n)=>{const[r,o,i]=Aw(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};RL();const Uv=Bt.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)}),Of={dedupe:!0},$L=(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,[g,y,x,C]=Or.get(r),[p,m]=_l(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[b,R,A,j]=Bm(r,p),O=h.useRef({}).current,I=De(a)?n.fallback[p]:a,T=(W,F)=>{for(const Y in O){const G=Y;if(G==="data"){if(!o(W[G],F[G])&&(!De(W[G])||!o(H,F[G])))return!1}else if(F[G]!==W[G])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},Y=b(),G=j(),te=F(Y),ue=Y===G?te:F(G);let Z=te;return[()=>{const fe=F(b());return T(fe,Z)?(Z.data=fe.data,Z.isLoading=fe.isLoading,Z.isValidating=fe.isValidating,Z.error=fe.error,Z):(Z=fe,fe)},()=>ue]},[r,p]),D=Pw.useSyncExternalStore(h.useCallback(W=>A(p,(F,Y)=>{T(Y,F)||W()}),[r,p]),N[0],N[1]),L=!v.current,z=g[p]&&g[p].length>0,V=D.data,J=De(V)?I:V,ce=D.error,se=h.useRef(J),H=f?De(V)?se.current:V:J,ae=z&&!De(ce)?!1:L&&!De(s)?s:E().isPaused()?!1:i?De(J)?!1:l:De(J)||l,ie=!!(p&&t&&L&&ae),ee=De(D.isValidating)?ie:D.isValidating,X=De(D.isLoading)?ie:D.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let Y,G,te=!0;const ue=W||{},Z=!x[p]||!ue.dedupe,fe=()=>wl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===G&&delete x[p]},tt={isValidating:!0};De(b().data)&&(tt.isLoading=!0);try{if(Z&&(R(tt),n.loadingTimeout&&De(b().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[Y,G]=x[p],Y=await Y,Z&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==G)return Z&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=y[p];if(!De(Ee)&&(G<=Ee[0]||G<=Ee[1]||Ee[1]===0))return Le(),Z&&fe()&&E().onDiscarded(p),!1;const _e=b().data;ge.data=o(_e,Y)?_e:Y,Z&&fe()&&E().onSuccess(Y,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,Z&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=g[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>_m(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Of);let F=0;const G=Nw(p,g,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const Z=Date.now();E().revalidateOnFocus&&Z>F&&$()&&(F=Z+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),ae&&(De(J)||vi?W():Ew(W)),()=>{S.current=!0,G()}},[p]),Zr(()=>{let W;function F(){const G=Dn(c)?c(b().data):c;G&&W!==-1&&(W=setTimeout(Y,G))}function Y(){!b().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Of).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(H),i&&De(J)&&p){if(!wl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);Uv(F)}if(De(ce)){const F=ne(Of);De(H)||(F.status="fulfilled",F.value=!0),Uv(F)}else throw ce}return{mutate:oe,get data(){return O.data=!0,H},get error(){return O.error=!0,ce},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,X}}},AL=da.defineProperty(Vm,"defaultValue",{value:Ad}),_r=jw($L),Ya="";console.log(Ya);const LL=async e=>{const t=await fetch(Ya+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()},zr=e=>async t=>{const n=await fetch(Ya+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()},Fw=async(e,{arg:t})=>{const n=await fetch(Ya+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()},Wm=e=>async(t,{arg:n})=>{const r=await fetch(Ya+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()},jL=e=>async(t,{arg:n})=>{const r=await fetch(Ya+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()};Bt.use;da.defineProperty(Vm,"defaultValue",{value:Ad});const Ld=()=>{const{token:e}=h.useContext(wn),{data:t,error:n,isLoading:r,mutate:o}=_r(e?"/auth/users/me":null,zr(e),{shouldRetryOnError:!1,revalidateOnFocus:!1});return{user:t,error:n,isLoading:r}};function NL(){h.useState(0);const{user:e}=Ld();return h.useContext(wn),w.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",paddingX:4,paddingTop:12,children:w.jsxs(Ye,{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 xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function La(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BL(){return Math.random().toString(36).substr(2,8)}function Yv(e,t){return{usr:e.state,key:e.key,idx:t}}function wl(e,t,n,r){return n===void 0&&(n=null),xt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wo(t):t,{state:n,key:t&&t.key||r||BL()})}function xi(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 Wo(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 _L(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Lt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(xt({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Lt.Pop;let C=u(),p=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:p})}function f(C,p){s=Lt.Push;let m=wl(x.location,C,p);c=u()+1;let v=Yv(m,c),S=x.createHref(m);try{a.pushState(v,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:x.location,delta:1})}function g(C,p){s=Lt.Replace;let m=wl(x.location,C,p);c=u();let v=Yv(m,c),S=x.createHref(m);a.replaceState(v,"",S),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:xi(C);return m=m.replace(/ $/,"%20"),Ue(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let x={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(Hv,d),l=C,()=>{o.removeEventListener(Hv,d),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let p=y(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:g,go(C){return a.go(C)}};return x}var it;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(it||(it={}));const zL=new Set(["lazy","caseSensitive","path","id","index","children"]);function VL(e){return e.index===!0}function Ru(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(Ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ue(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),VL(o)){let l=xt({},o,t(o),{id:s});return r[s]=l,l}else{let l=xt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Ru(o.children,t,a,r)),l}})}function Jo(e,t,n){return n===void 0&&(n="/"),Uc(e,t,n,!1)}function Uc(e,t,n,r){let o=typeof t=="string"?Wo(t):t,i=Ya(o.pathname||"/",n);if(i==null)return null;let a=Bw(e);UL(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("/")&&(Ue(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=Jr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Bw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:qL(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 _w(i.path))o(i,a,l)}),t}function _w(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=_w(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 UL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const HL=/^:[\w-]+$/,YL=3,KL=2,GL=1,QL=10,XL=-2,Kv=e=>e==="*";function qL(e,t){let n=e.split("/"),r=n.length;return n.some(Kv)&&(r+=XL),t&&(r+=KL),n.filter(o=>!Kv(o)).reduce((o,i)=>o+(HL.test(i)?YL:i===""?GL:QL),r)}function ZL(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 JL(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:g}=u;if(f==="*"){let x=s[d]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[d];return g&&!y?c[f]=void 0:c[f]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function ej(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),La(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 tj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return La(!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 Ya(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 nj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Wo(e):e;return{pathname:n?n.startsWith("/")?n:rj(n,t):t,search:ij(r),hash:aj(o)}}function rj(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 zw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Um(e,t){let n=zw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Hm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Wo(e):(o=xt({},e),Ue(!o.pathname||!o.pathname.includes("?"),$f("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),$f("#","pathname","hash",o)),Ue(!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=nj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),oj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ij=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Tu{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 jd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vw=["post","put","patch","delete"],sj=new Set(Vw),lj=["get",...Vw],cj=new Set(lj),uj=new Set([301,302,303,307,308]),dj=new Set([307,308]),Af={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ym=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ww="remix-router-transitions";function hj(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;Ue(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=pj;let i={},a=Ru(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||vj,u=e.patchRoutesOnNavigation,d=xt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,g=new Set,y=null,x=null,C=null,p=e.hydrationData!=null,m=Jo(a,e.history.location,l),v=null;if(m==null&&!u){let B=pn(404,{pathname:e.history.location.pathname}),{matches:U,route:Q}=i0(a);m=U,v={[Q.id]:B}}m&&!e.hydrationData&&Hl(m,a,e.history.location.pathname).active&&(m=null);let S;if(m)if(m.some(B=>B.route.lazy))S=!1;else if(!m.some(B=>B.route.loader))S=!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);S=m.slice(0,Q+1).every(de=>!th(de.route,B,U))}else S=m.every(Q=>!th(Q.route,B,U))}else S=e.hydrationData!=null;else if(S=!1,m=[],d.v7_partialHydration){let B=Hl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let P,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:S,navigation:Af,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=Lt.Pop,E=!1,$,b=!1,R=new Map,A=null,j=!1,O=!1,I=[],T=new Set,N=new Map,D=0,L=-1,z=new Map,V=new Set,J=new Map,ce=new Map,se=new Set,H=new Map,ae=new Map,ie;function ee(){if(f=e.history.listen(B=>{let{action:U,location:Q,delta:de}=B;if(ie){ie(),ie=void 0;return}La(ae.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=>{ie=$e});e.history.go(de*-1),Cn(we,{state:"blocked",location:Q,proceed(){Cn(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,fs),oe({blockers:$e})}});return}return G(U,Q)}),n){Oj(t,R);let B=()=>$j(t,R);t.addEventListener("pagehide",B),A=()=>t.removeEventListener("pagehide",B)}return k.initialized||G(Lt.Pop,k.location,{initialHydration:!0}),P}function X(){f&&f(),A&&A(),g.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>$t(U)),k.blockers.forEach((B,U)=>yt(U))}function ne(B){return g.add(B),()=>g.delete(B)}function oe(B,U){U===void 0&&(U={}),k=xt({},k,B);let Q=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(se.has(Re)?de.push(Re):Q.push(Re))}),[...g].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=>$t(we)))}function W(B,U,Q){var de,we;let{flushSync:Re}=Q===void 0?{}:Q,$e=k.actionData!=null&&k.navigation.formMethod!=null&&ur(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 Pe=U.loaderData?r0(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,fs)));let Te=E===!0||k.navigation.formMethod!=null&&ur(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Lt.Pop||(M===Lt.Push?e.history.push(B,B.state):M===Lt.Replace&&e.history.replace(B,B.state));let We;if(M===Lt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?We={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(We={currentLocation:B,nextLocation:k.location})}else if(b){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),We={currentLocation:k.location,nextLocation:B}}oe(xt({},U,{actionData:ke,loaderData:Pe,historyAction:M,location:B,initialized:!0,navigation:Af,revalidation:"idle",restoreScrollPosition:sg(B,U.matches||k.matches),preventScrollReset:Te,blockers:Ce}),{viewTransitionOpts:We,flushSync:Re===!0}),M=Lt.Pop,E=!1,b=!1,j=!1,O=!1,I=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let Q=eh(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}=Qv(d.v7_normalizeFormMethod,!1,Q,U),$e=k.location,ke=wl(k.location,de,U&&U.state);ke=xt({},ke,e.history.encodeLocation(ke));let Pe=U&&U.replace!=null?U.replace:void 0,Ce=Lt.Push;Pe===!0?Ce=Lt.Replace:Pe===!1||we!=null&&ur(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Lt.Replace);let Te=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,We=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){Cn(Ke,{state:"blocked",location:ke,proceed(){Cn(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let Qt=new Map(k.blockers);Qt.set(Ke,fs),oe({blockers:Qt})}});return}return await G(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:Te,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:We})}function Y(){if(ct(),oe({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){G(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}G(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:b===!0})}}async function G(B,U,Q){$&&$.abort(),$=null,M=B,j=(Q&&Q.startUninterruptedRevalidation)===!0,U1(k.location,k.matches),E=(Q&&Q.preventScrollReset)===!0,b=(Q&&Q.enableViewTransition)===!0;let de=s||a,we=Q&&Q.overrideNavigation,Re=Jo(de,U,l),$e=(Q&&Q.flushSync)===!0,ke=Hl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:ut,notFoundMatches:Ze,route:kt}=fn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[kt.id]:ut}},{flushSync:$e});return}if(k.initialized&&!O&&kj(k.location,U)&&!(Q&&Q.submission&&ur(Q.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Pe=Bi(e.history,U,$.signal,Q&&Q.submission),Ce;if(Q&&Q.pendingError)Ce=[ei(Re).route.id,{type:it.error,error:Q.pendingError}];else if(Q&&Q.submission&&ur(Q.submission.formMethod)){let ut=await te(Pe,U,Q.submission,Re,ke.active,{replace:Q.replace,flushSync:$e});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[Ze,kt]=ut.pendingActionResult;if(En(kt)&&jd(kt.error)&&kt.error.status===404){$=null,W(U,{matches:ut.matches,loaderData:{},errors:{[Ze]:kt.error}});return}}Re=ut.matches||Re,Ce=ut.pendingActionResult,we=Lf(U,Q.submission),$e=!1,ke.active=!1,Pe=Bi(e.history,Pe.url,Pe.signal)}let{shortCircuited:Te,matches:We,loaderData:Ke,errors:Qt}=await ue(Pe,U,Re,ke.active,we,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,$e,Ce);Te||($=null,W(U,xt({matches:We||Re},o0(Ce),{loaderData:Ke,errors:Qt})))}async function te(B,U,Q,de,we,Re){Re===void 0&&(Re={}),ct();let $e=Dj(U,Q);if(oe({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Yl(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let Te=ei(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[Te,{type:it.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:Te,error:We,route:Ke}=fn(U.pathname);return{matches:Te,pendingActionResult:[Ke.id,{type:it.error,error:We}]}}}let ke,Pe=Rs(de,U);if(!Pe.route.action&&!Pe.route.lazy)ke={type:it.error,error:pn(405,{method:B.method,pathname:U.pathname,routeId:Pe.route.id})};else if(ke=(await Ee("action",k,B,[Pe],de,null))[Pe.route.id],B.signal.aborted)return{shortCircuited:!0};if(ii(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=e0(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(ko(ke))throw pn(400,{type:"defer-action"});if(En(ke)){let Ce=ei(de,Pe.route.id);return(Re&&Re.replace)!==!0&&(M=Lt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Pe.route.id,ke]}}async function ue(B,U,Q,de,we,Re,$e,ke,Pe,Ce,Te){let We=we||Lf(U,Re),Ke=Re||$e||s0(We),Qt=!j&&(!d.v7_partialHydration||!Pe);if(de){if(Qt){let Pt=Z(Te);oe(xt({navigation:We},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Yl(Q,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ei(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:Ti,route:Qa}=fn(U.pathname);return{matches:Ti,loaderData:{},errors:{[Qa.id]:Pt}}}}let ut=s||a,[Ze,kt]=qv(e.history,k,Q,Ke,U,d.v7_partialHydration&&Pe===!0,d.v7_skipActionErrorRevalidation,O,I,T,se,J,V,ut,l,Te);if(Wr(Xe=>!(Q&&Q.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),L=++D,Ze.length===0&&kt.length===0){let Xe=fo();return W(U,xt({matches:Q,loaderData:{},errors:Te&&En(Te[1])?{[Te[0]]:Te[1].error}:null},o0(Te),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(Qt){let Xe={};if(!de){Xe.navigation=We;let Pt=Z(Te);Pt!==void 0&&(Xe.actionData=Pt)}kt.length>0&&(Xe.fetchers=fe(kt)),oe(Xe,{flushSync:Ce})}kt.forEach(Xe=>{at(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Ri=()=>kt.forEach(Xe=>at(Xe.key));$&&$.signal.addEventListener("abort",Ri);let{loaderResults:Ka,fetcherResults:Ur}=await _e(k,Q,Ze,kt,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ri),kt.forEach(Xe=>N.delete(Xe.key));let wr=wc(Ka);if(wr)return await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};if(wr=wc(Ur),wr)return V.add(wr.key),await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Ud,errors:Ga}=n0(k,Q,Ka,Te,kt,Ur,H);H.forEach((Xe,Pt)=>{Xe.subscribe(Ti=>{(Ti||Xe.done)&&H.delete(Pt)})}),d.v7_partialHydration&&Pe&&k.errors&&(Ga=xt({},k.errors,Ga));let Uo=fo(),Kl=Me(L),Gl=Uo||Kl||kt.length>0;return xt({matches:Q,loaderData:Ud,errors:Ga},Gl?{fetchers:new Map(k.fetchers)}:{})}function Z(B){if(B&&!En(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=ps(void 0,Q?Q.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ge(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.");at(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=eh(k.location,k.matches,l,d.v7_prependBasename,Q,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=Jo(Re,$e,l),Pe=Hl(ke,Re,$e);if(Pe.active&&Pe.matches&&(ke=Pe.matches),!ke){Oe(B,U,pn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:Te,error:We}=Qv(d.v7_normalizeFormMethod,!0,$e,de);if(We){Oe(B,U,We,{flushSync:we});return}let Ke=Rs(ke,Ce),Qt=(de&&de.preventScrollReset)===!0;if(Te&&ur(Te.formMethod)){Le(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te);return}J.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te)}async function Le(B,U,Q,de,we,Re,$e,ke,Pe){ct(),J.delete(B);function Ce(At){if(!At.route.action&&!At.route.lazy){let Di=pn(405,{method:Pe.formMethod,pathname:Q,routeId:U});return Oe(B,U,Di,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let Te=k.fetchers.get(B);je(B,Ij(Pe,Te),{flushSync:$e});let We=new AbortController,Ke=Bi(e.history,Q,We.signal,Pe);if(Re){let At=await Yl(we,Q,Ke.signal);if(At.type==="aborted")return;if(At.type==="error"){Oe(B,U,At.error,{flushSync:$e});return}else if(At.matches){if(we=At.matches,de=Rs(we,Q),Ce(de))return}else{Oe(B,U,pn(404,{pathname:Q}),{flushSync:$e});return}}N.set(B,We);let Qt=D,Ze=(await Ee("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===We&&N.delete(B);return}if(d.v7_fetcherPersist&&se.has(B)){if(ii(Ze)||En(Ze)){je(B,go(void 0));return}}else{if(ii(Ze))if(N.delete(B),L>Qt){je(B,go(void 0));return}else return V.add(B),je(B,ps(Pe)),tt(Ke,Ze,!1,{fetcherSubmission:Pe,preventScrollReset:ke});if(En(Ze)){Oe(B,U,Ze.error);return}}if(ko(Ze))throw pn(400,{type:"defer-action"});let kt=k.navigation.location||k.location,Ri=Bi(e.history,kt,We.signal),Ka=s||a,Ur=k.navigation.state!=="idle"?Jo(Ka,k.navigation.location,l):k.matches;Ue(Ur,"Didn't find any matches after fetcher action");let wr=++D;z.set(B,wr);let Ud=ps(Pe,Ze.data);k.fetchers.set(B,Ud);let[Ga,Uo]=qv(e.history,k,Ur,Pe,kt,!1,d.v7_skipActionErrorRevalidation,O,I,T,se,J,V,Ka,l,[de.route.id,Ze]);Uo.filter(At=>At.key!==B).forEach(At=>{let Di=At.key,lg=k.fetchers.get(Di),K1=ps(void 0,lg?lg.data:void 0);k.fetchers.set(Di,K1),at(Di),At.controller&&N.set(Di,At.controller)}),oe({fetchers:new Map(k.fetchers)});let Kl=()=>Uo.forEach(At=>at(At.key));We.signal.addEventListener("abort",Kl);let{loaderResults:Gl,fetcherResults:Xe}=await _e(k,Ur,Ga,Uo,Ri);if(We.signal.aborted)return;We.signal.removeEventListener("abort",Kl),z.delete(B),N.delete(B),Uo.forEach(At=>N.delete(At.key));let Pt=wc(Gl);if(Pt)return tt(Ri,Pt.result,!1,{preventScrollReset:ke});if(Pt=wc(Xe),Pt)return V.add(Pt.key),tt(Ri,Pt.result,!1,{preventScrollReset:ke});let{loaderData:Ti,errors:Qa}=n0(k,Ur,Gl,void 0,Uo,Xe,H);if(k.fetchers.has(B)){let At=go(Ze.data);k.fetchers.set(B,At)}Me(wr),k.navigation.state==="loading"&&wr>L?(Ue(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Ur,loaderData:Ti,errors:Qa,fetchers:new Map(k.fetchers)})):(oe({errors:Qa,loaderData:r0(k.loaderData,Ti,Ur,Qa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,Q,de,we,Re,$e,ke,Pe){let Ce=k.fetchers.get(B);je(B,ps(Pe,Ce?Ce.data:void 0),{flushSync:$e});let Te=new AbortController,We=Bi(e.history,Q,Te.signal);if(Re){let Ze=await Yl(we,Q,We.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=Rs(we,Q);else{Oe(B,U,pn(404,{pathname:Q}),{flushSync:$e});return}}N.set(B,Te);let Ke=D,ut=(await Ee("loader",k,We,[de],we,B))[de.route.id];if(ko(ut)&&(ut=await Km(ut,We.signal,!0)||ut),N.get(B)===Te&&N.delete(B),!We.signal.aborted){if(se.has(B)){je(B,go(void 0));return}if(ii(ut))if(L>Ke){je(B,go(void 0));return}else{V.add(B),await tt(We,ut,!1,{preventScrollReset:ke});return}if(En(ut)){Oe(B,U,ut.error);return}Ue(!ko(ut),"Unhandled fetcher deferred data"),je(B,go(ut.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 Pe=U.response.headers.get("Location");Ue(Pe,"Expected a Location header on the redirect Response"),Pe=e0(Pe,new URL(B.url),l);let Ce=wl(k.location,Pe,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(Ym.test(Pe)){const kt=e.history.createURL(Pe);Ze=kt.origin!==t.location.origin||Ya(kt.pathname,l)==null}if(Ze){ke?t.location.replace(Pe):t.location.assign(Pe);return}}$=null;let Te=ke===!0||U.response.headers.has("X-Remix-Replace")?Lt.Replace:Lt.Push,{formMethod:We,formAction:Ke,formEncType:Qt}=k.navigation;!we&&!Re&&We&&Ke&&Qt&&(we=s0(k.navigation));let ut=we||Re;if(dj.has(U.response.status)&&ut&&ur(ut.formMethod))await G(Te,Ce,{submission:xt({},ut,{formAction:Pe}),preventScrollReset:$e||E,enableViewTransition:Q?b:void 0});else{let Ze=Lf(Ce,we);await G(Te,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||E,enableViewTransition:Q?b:void 0})}}async function Ee(B,U,Q,de,we,Re){let $e,ke={};try{$e=await xj(c,B,U,Q,de,we,Re,i,o)}catch(Pe){return de.forEach(Ce=>{ke[Ce.route.id]={type:it.error,error:Pe}}),ke}for(let[Pe,Ce]of Object.entries($e))if(Pj(Ce)){let Te=Ce.result;ke[Pe]={type:it.redirect,response:wj(Te,Q,Pe,we,l,d.v7_relativeSplatPath)}}else ke[Pe]=await bj(Ce);return ke}async function _e(B,U,Q,de,we){let Re=B.matches,$e=Ee("loader",B,we,Q,U,null),ke=Promise.all(de.map(async Te=>{if(Te.matches&&Te.match&&Te.controller){let Ke=(await Ee("loader",B,Bi(e.history,Te.path,Te.controller.signal),[Te.match],Te.matches,Te.key))[Te.match.route.id];return{[Te.key]:Ke}}else return Promise.resolve({[Te.key]:{type:it.error,error:pn(404,{pathname:Te.path})}})})),Pe=await $e,Ce=(await ke).reduce((Te,We)=>Object.assign(Te,We),{});return await Promise.all([Rj(U,Pe,we.signal,Re,B.loaderData),Tj(U,Ce,de)]),{loaderResults:Pe,fetcherResults:Ce}}function ct(){O=!0,I.push(...Wr()),J.forEach((B,U)=>{N.has(U)&&T.add(U),at(U)})}function je(B,U,Q){Q===void 0&&(Q={}),k.fetchers.set(B,U),oe({fetchers:new Map(k.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Oe(B,U,Q,de){de===void 0&&(de={});let we=ei(k.matches,U);$t(B),oe({errors:{[we.route.id]:Q},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function ft(B){return d.v7_fetcherPersist&&(ce.set(B,(ce.get(B)||0)+1),se.has(B)&&se.delete(B)),k.fetchers.get(B)||fj}function $t(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&z.has(B))&&at(B),J.delete(B),z.delete(B),V.delete(B),se.delete(B),T.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(ce.get(B)||0)-1;U<=0?(ce.delete(B),se.add(B)):ce.set(B,U)}else $t(B);oe({fetchers:new Map(k.fetchers)})}function at(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function zn(B){for(let U of B){let Q=ft(U),de=go(Q.data);k.fetchers.set(U,de)}}function fo(){let B=[],U=!1;for(let Q of V){let de=k.fetchers.get(Q);Ue(de,"Expected fetcher: "+Q),de.state==="loading"&&(V.delete(Q),B.push(Q),U=!0)}return zn(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)||fs;return ae.get(B)!==U&&ae.set(B,U),Q}function yt(B){k.blockers.delete(B),ae.delete(B)}function Cn(B,U){let Q=k.blockers.get(B)||fs;Ue(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),oe({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:Q,historyAction:de}=B;if(ae.size===0)return;ae.size>1&&La(!1,"A router only supports one blocker at a time");let we=Array.from(ae.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 fn(B){let U=pn(404,{pathname:B}),Q=s||a,{matches:de,route:we}=i0(Q);return Wr(),{notFoundMatches:de,route:we,error:U}}function Wr(B){let U=[];return H.forEach((Q,de)=>{(!B||B(de))&&(Q.cancel(),U.push(de),H.delete(de))}),U}function br(B,U,Q){if(y=B,C=U,x=Q||null,!p&&k.navigation===Af){p=!0;let de=sg(k.location,k.matches);de!=null&&oe({restoreScrollPosition:de})}return()=>{y=null,C=null,x=null}}function ag(B,U){return x&&x(B,U.map(de=>WL(de,k.loaderData)))||B.key}function U1(B,U){if(y&&C){let Q=ag(B,U);y[Q]=C()}}function sg(B,U){if(y){let Q=ag(B,U),de=y[Q];if(typeof de=="number")return de}return null}function Hl(B,U,Q){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Uc(U,Q,l,!0)}}else return{active:!0,matches:Uc(U,Q,l,!0)||[]};return{active:!1,matches:null}}async function Yl(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,Te)=>{Q.aborted||Jv(Ce,Te,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=Jo(Re,U,l);if(ke)return{type:"success",matches:ke};let Pe=Uc(Re,U,l,!0);if(!Pe||de.length===Pe.length&&de.every((Ce,Te)=>Ce.route.id===Pe[Te].route.id))return{type:"success",matches:null};de=Pe}}function H1(B){i={},s=Ru(B,o,void 0,i)}function Y1(B,U){let Q=s==null;Jv(B,U,s||a,i,o),Q&&(a=[...a],oe({}))}return P={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:ee,subscribe:ne,enableScrollRestoration:br,navigate:F,fetch:ge,revalidate:Y,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:ft,deleteFetcher:Ne,dispose:X,getBlocker:qe,deleteBlocker:yt,patchRoutes:Y1,_internalFetchControllers:N,_internalActiveDeferreds:H,_internalSetRoutes:H1},P}function mj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eh(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=Hm(o||".",Um(l,i),Ya(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=Gm(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),g=f.getAll("index");f.delete("index"),g.filter(x=>x).forEach(x=>f.append("index",x));let y=f.toString();u.search=y?"?"+y:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Jr([n,u.pathname])),xi(u)}function Qv(e,t,n,r){if(!r||!mj(r))return{path:n};if(r.formMethod&&!Mj(r.formMethod))return{path:n,error:pn(405,{method:r.formMethod})};let o=()=>({path:n,error:pn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=Yw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ur(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((g,y)=>{let[x,C]=y;return""+g+x+"="+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(!ur(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()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=nh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=nh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=t0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=t0(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(ur(u.formMethod))return{path:n,submission:u};let d=Wo(n);return t&&d.search&&Gm(d.search)&&l.append("index",""),d.search="?"+l,{path:xi(d),submission:u}}function Xv(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 qv(e,t,n,r,o,i,a,s,l,c,u,d,f,g,y,x){let C=x?En(x[1])?x[1].error:x[1].data:void 0,p=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=Xv(n,Object.keys(t.errors)[0],!0):x&&En(x[1])&&(v=Xv(n,x[0]));let S=x?x[1].statusCode:void 0,P=a&&S&&S>=400,k=v.filter((E,$)=>{let{route:b}=E;if(b.lazy)return!0;if(b.loader==null)return!1;if(i)return th(b,t.loaderData,t.errors);if(gj(t.loaderData,t.matches[$],E)||l.some(j=>j===E.route.id))return!0;let R=t.matches[$],A=E;return Zv(E,xt({currentUrl:p,currentParams:R.params,nextUrl:m,nextParams:A.params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s||p.pathname+p.search===m.pathname+m.search||p.search!==m.search||Uw(R,A)}))}),M=[];return d.forEach((E,$)=>{if(i||!n.some(O=>O.route.id===E.routeId)||u.has($))return;let b=Jo(g,E.path,y);if(!b){M.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),A=Rs(b,E.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=Zv(A,xt({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s})),j&&M.push({key:$,routeId:E.routeId,path:E.path,matches:b,match:A,controller:new AbortController})}),[k,M]}function th(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 gj(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Uw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Jv(e,t,n,r,o){var i;let a;if(e){let c=r[e];Ue(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=>Hw(c,u))),l=Ru(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function Hw(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=>Hw(n,i))}):!1}async function yj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ue(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";La(!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&&!zL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,xt({},t(o),{lazy:void 0}))}async function vj(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 xj(e,t,n,r,o,i,a,s,l,c){let u=i.map(g=>g.route.lazy?yj(g.route,l,s):void 0),d=i.map((g,y)=>{let x=u[y],C=o.some(m=>m.route.id===g.route.id);return xt({},g,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(C=!0),C?Sj(t,r,g,x,m,c):Promise.resolve({type:it.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 Sj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((y,x)=>u=x);s=()=>u(),t.signal.addEventListener("abort",s);let f=y=>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},...y!==void 0?[y]:[]),g=(async()=>{try{return{type:"data",result:await(o?o(x=>f(x)):f())}}catch(y){return{type:"error",result:y}}})();return Promise.race([g,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 pn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:it.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw pn(404,{pathname:d})}Ue(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:it.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function bj(e){let{result:t,type:n}=e;if(Kw(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:it.error,error:u}}return n===it.error?{type:it.error,error:new Tu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:it.data,data:c,statusCode:t.status,headers:t.headers}}if(n===it.error){if(a0(t)){var r;if(t.data instanceof Error){var o;return{type:it.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Tu(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:it.error,error:t,statusCode:jd(t)?t.status:void 0}}if(Ej(t)){var i,a;return{type:it.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(a0(t)){var s,l;return{type:it.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:it.data,data:t}}function wj(e,t,n,r,o,i){let a=e.headers.get("Location");if(Ue(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ym.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=eh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function e0(e,t,n){if(Ym.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ya(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Bi(e,t,n,r){let o=e.createURL(Yw(t)).toString(),i={signal:n};if(r&&ur(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=nh(r.formData):i.body=r.formData}return new Request(o,i)}function nh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function t0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Cj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&En(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,g=t[f];if(Ue(!ii(g),"Cannot handle redirect results in processLoaderData"),En(g)){let y=g.error;u!==void 0&&(y=u,u=void 0),a=a||{};{let x=ei(e,f);a[x.route.id]==null&&(a[x.route.id]=y)}i[f]=void 0,l||(l=!0,s=jd(g.error)?g.error.status:500),g.headers&&(c[f]=g.headers)}else ko(g)?(r.set(f,g.deferredData),i[f]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(c[f]=g.headers)):(i[f]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(c[f]=g.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function n0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Cj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,g=i[u];if(Ue(g,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(En(g)){let y=ei(e.matches,d==null?void 0:d.route.id);l&&l[y.route.id]||(l=xt({},l,{[y.route.id]:g.error})),e.fetchers.delete(u)}else if(ii(g))Ue(!1,"Unhandled fetcher revalidation redirect");else if(ko(g))Ue(!1,"Unhandled fetcher deferred data");else{let y=go(g.data);e.fetchers.set(u,y)}}),{loaderData:s,errors:l}}function r0(e,t,n,r){let o=xt({},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 o0(e){return e?En(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ei(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 i0(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 pn(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 Tu(e||500,s,new Error(l),!0)}function wc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(ii(o))return{key:r,result:o}}}function Yw(e){let t=typeof e=="string"?Wo(e):e;return xi(xt({},t,{hash:""}))}function kj(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Pj(e){return Kw(e.result)&&uj.has(e.result.status)}function ko(e){return e.type===it.deferred}function En(e){return e.type===it.error}function ii(e){return(e&&e.type)===it.redirect}function a0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ej(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 Kw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Mj(e){return cj.has(e.toLowerCase())}function ur(e){return sj.has(e.toLowerCase())}async function Rj(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&&!Uw(u,c)&&(o&&o[c.route.id])!==void 0;ko(l)&&d&&await Km(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Tj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&ko(s)&&(Ue(a,"Expected an AbortController for revalidating fetcher deferred result"),await Km(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Km(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:it.data,data:e.deferredData.unwrappedData}}catch(o){return{type:it.error,error:o}}return{type:it.data,data:e.deferredData.data}}}function Gm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rs(e,t){let n=typeof t=="string"?Wo(t).search:t.search;if(e[e.length-1].route.index&&Gm(n||""))return e[e.length-1];let r=zw(e);return r[r.length-1]}function s0(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 Lf(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 Dj(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 ps(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 Ij(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 go(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 Oj(e,t){try{let n=e.sessionStorage.getItem(Ww);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 $j(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Ww,JSON.stringify(n))}catch(r){La(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function La(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BL(){return Math.random().toString(36).substr(2,8)}function Yv(e,t){return{usr:e.state,key:e.key,idx:t}}function Cl(e,t,n,r){return n===void 0&&(n=null),xt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wo(t):t,{state:n,key:t&&t.key||r||BL()})}function xi(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 Wo(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 _L(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Lt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(xt({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Lt.Pop;let C=u(),p=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:p})}function f(C,p){s=Lt.Push;let m=Cl(x.location,C,p);c=u()+1;let v=Yv(m,c),S=x.createHref(m);try{a.pushState(v,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(S)}i&&l&&l({action:s,location:x.location,delta:1})}function g(C,p){s=Lt.Replace;let m=Cl(x.location,C,p);c=u();let v=Yv(m,c),S=x.createHref(m);a.replaceState(v,"",S),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let p=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:xi(C);return m=m.replace(/ $/,"%20"),Ue(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let x={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(Hv,d),l=C,()=>{o.removeEventListener(Hv,d),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let p=y(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:g,go(C){return a.go(C)}};return x}var it;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(it||(it={}));const zL=new Set(["lazy","caseSensitive","path","id","index","children"]);function VL(e){return e.index===!0}function Ru(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(Ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ue(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),VL(o)){let l=xt({},o,t(o),{id:s});return r[s]=l,l}else{let l=xt({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=Ru(o.children,t,a,r)),l}})}function Jo(e,t,n){return n===void 0&&(n="/"),Uc(e,t,n,!1)}function Uc(e,t,n,r){let o=typeof t=="string"?Wo(t):t,i=Ka(o.pathname||"/",n);if(i==null)return null;let a=Bw(e);UL(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("/")&&(Ue(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=Jr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Bw(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:qL(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 _w(i.path))o(i,a,l)}),t}function _w(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=_w(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 UL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const HL=/^:[\w-]+$/,YL=3,KL=2,GL=1,QL=10,XL=-2,Kv=e=>e==="*";function qL(e,t){let n=e.split("/"),r=n.length;return n.some(Kv)&&(r+=XL),t&&(r+=KL),n.filter(o=>!Kv(o)).reduce((o,i)=>o+(HL.test(i)?YL:i===""?GL:QL),r)}function ZL(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 JL(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:g}=u;if(f==="*"){let x=s[d]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[d];return g&&!y?c[f]=void 0:c[f]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function ej(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),La(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 tj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return La(!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 Ka(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 nj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Wo(e):e;return{pathname:n?n.startsWith("/")?n:rj(n,t):t,search:ij(r),hash:aj(o)}}function rj(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 zw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Um(e,t){let n=zw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Hm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Wo(e):(o=xt({},e),Ue(!o.pathname||!o.pathname.includes("?"),$f("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),$f("#","pathname","hash",o)),Ue(!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=nj(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),oj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ij=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Tu{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 jd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vw=["post","put","patch","delete"],sj=new Set(Vw),lj=["get",...Vw],cj=new Set(lj),uj=new Set([301,302,303,307,308]),dj=new Set([307,308]),Af={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ps={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ym=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pj=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ww="remix-router-transitions";function hj(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;Ue(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=pj;let i={},a=Ru(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||vj,u=e.patchRoutesOnNavigation,d=xt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,g=new Set,y=null,x=null,C=null,p=e.hydrationData!=null,m=Jo(a,e.history.location,l),v=null;if(m==null&&!u){let B=pn(404,{pathname:e.history.location.pathname}),{matches:U,route:Q}=i0(a);m=U,v={[Q.id]:B}}m&&!e.hydrationData&&Hl(m,a,e.history.location.pathname).active&&(m=null);let S;if(m)if(m.some(B=>B.route.lazy))S=!1;else if(!m.some(B=>B.route.loader))S=!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);S=m.slice(0,Q+1).every(de=>!th(de.route,B,U))}else S=m.every(Q=>!th(Q.route,B,U))}else S=e.hydrationData!=null;else if(S=!1,m=[],d.v7_partialHydration){let B=Hl(null,a,e.history.location.pathname);B.active&&B.matches&&(m=B.matches)}let P,k={historyAction:e.history.action,location:e.history.location,matches:m,initialized:S,navigation:Af,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=Lt.Pop,E=!1,$,b=!1,R=new Map,A=null,j=!1,O=!1,I=[],T=new Set,N=new Map,D=0,L=-1,z=new Map,V=new Set,J=new Map,ce=new Map,se=new Set,H=new Map,ae=new Map,ie;function ee(){if(f=e.history.listen(B=>{let{action:U,location:Q,delta:de}=B;if(ie){ie(),ie=void 0;return}La(ae.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=>{ie=$e});e.history.go(de*-1),Cn(we,{state:"blocked",location:Q,proceed(){Cn(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,ps),oe({blockers:$e})}});return}return G(U,Q)}),n){Oj(t,R);let B=()=>$j(t,R);t.addEventListener("pagehide",B),A=()=>t.removeEventListener("pagehide",B)}return k.initialized||G(Lt.Pop,k.location,{initialHydration:!0}),P}function X(){f&&f(),A&&A(),g.clear(),$&&$.abort(),k.fetchers.forEach((B,U)=>$t(U)),k.blockers.forEach((B,U)=>yt(U))}function ne(B){return g.add(B),()=>g.delete(B)}function oe(B,U){U===void 0&&(U={}),k=xt({},k,B);let Q=[],de=[];d.v7_fetcherPersist&&k.fetchers.forEach((we,Re)=>{we.state==="idle"&&(se.has(Re)?de.push(Re):Q.push(Re))}),[...g].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=>$t(we)))}function W(B,U,Q){var de,we;let{flushSync:Re}=Q===void 0?{}:Q,$e=k.actionData!=null&&k.navigation.formMethod!=null&&ur(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 Pe=U.loaderData?r0(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,ps)));let Te=E===!0||k.navigation.formMethod!=null&&ur(k.navigation.formMethod)&&((we=B.state)==null?void 0:we._isRedirect)!==!0;s&&(a=s,s=void 0),j||M===Lt.Pop||(M===Lt.Push?e.history.push(B,B.state):M===Lt.Replace&&e.history.replace(B,B.state));let We;if(M===Lt.Pop){let Ke=R.get(k.location.pathname);Ke&&Ke.has(B.pathname)?We={currentLocation:k.location,nextLocation:B}:R.has(B.pathname)&&(We={currentLocation:B,nextLocation:k.location})}else if(b){let Ke=R.get(k.location.pathname);Ke?Ke.add(B.pathname):(Ke=new Set([B.pathname]),R.set(k.location.pathname,Ke)),We={currentLocation:k.location,nextLocation:B}}oe(xt({},U,{actionData:ke,loaderData:Pe,historyAction:M,location:B,initialized:!0,navigation:Af,revalidation:"idle",restoreScrollPosition:sg(B,U.matches||k.matches),preventScrollReset:Te,blockers:Ce}),{viewTransitionOpts:We,flushSync:Re===!0}),M=Lt.Pop,E=!1,b=!1,j=!1,O=!1,I=[]}async function F(B,U){if(typeof B=="number"){e.history.go(B);return}let Q=eh(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}=Qv(d.v7_normalizeFormMethod,!1,Q,U),$e=k.location,ke=Cl(k.location,de,U&&U.state);ke=xt({},ke,e.history.encodeLocation(ke));let Pe=U&&U.replace!=null?U.replace:void 0,Ce=Lt.Push;Pe===!0?Ce=Lt.Replace:Pe===!1||we!=null&&ur(we.formMethod)&&we.formAction===k.location.pathname+k.location.search&&(Ce=Lt.Replace);let Te=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,We=(U&&U.flushSync)===!0,Ke=nt({currentLocation:$e,nextLocation:ke,historyAction:Ce});if(Ke){Cn(Ke,{state:"blocked",location:ke,proceed(){Cn(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),F(B,U)},reset(){let Qt=new Map(k.blockers);Qt.set(Ke,ps),oe({blockers:Qt})}});return}return await G(Ce,ke,{submission:we,pendingError:Re,preventScrollReset:Te,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:We})}function Y(){if(ct(),oe({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){G(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}G(M||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:b===!0})}}async function G(B,U,Q){$&&$.abort(),$=null,M=B,j=(Q&&Q.startUninterruptedRevalidation)===!0,U1(k.location,k.matches),E=(Q&&Q.preventScrollReset)===!0,b=(Q&&Q.enableViewTransition)===!0;let de=s||a,we=Q&&Q.overrideNavigation,Re=Jo(de,U,l),$e=(Q&&Q.flushSync)===!0,ke=Hl(Re,de,U.pathname);if(ke.active&&ke.matches&&(Re=ke.matches),!Re){let{error:ut,notFoundMatches:Ze,route:kt}=fn(U.pathname);W(U,{matches:Ze,loaderData:{},errors:{[kt.id]:ut}},{flushSync:$e});return}if(k.initialized&&!O&&kj(k.location,U)&&!(Q&&Q.submission&&ur(Q.submission.formMethod))){W(U,{matches:Re},{flushSync:$e});return}$=new AbortController;let Pe=Bi(e.history,U,$.signal,Q&&Q.submission),Ce;if(Q&&Q.pendingError)Ce=[ei(Re).route.id,{type:it.error,error:Q.pendingError}];else if(Q&&Q.submission&&ur(Q.submission.formMethod)){let ut=await te(Pe,U,Q.submission,Re,ke.active,{replace:Q.replace,flushSync:$e});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[Ze,kt]=ut.pendingActionResult;if(En(kt)&&jd(kt.error)&&kt.error.status===404){$=null,W(U,{matches:ut.matches,loaderData:{},errors:{[Ze]:kt.error}});return}}Re=ut.matches||Re,Ce=ut.pendingActionResult,we=Lf(U,Q.submission),$e=!1,ke.active=!1,Pe=Bi(e.history,Pe.url,Pe.signal)}let{shortCircuited:Te,matches:We,loaderData:Ke,errors:Qt}=await ue(Pe,U,Re,ke.active,we,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,$e,Ce);Te||($=null,W(U,xt({matches:We||Re},o0(Ce),{loaderData:Ke,errors:Qt})))}async function te(B,U,Q,de,we,Re){Re===void 0&&(Re={}),ct();let $e=Dj(U,Q);if(oe({navigation:$e},{flushSync:Re.flushSync===!0}),we){let Ce=await Yl(de,U.pathname,B.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){let Te=ei(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,pendingActionResult:[Te,{type:it.error,error:Ce.error}]}}else if(Ce.matches)de=Ce.matches;else{let{notFoundMatches:Te,error:We,route:Ke}=fn(U.pathname);return{matches:Te,pendingActionResult:[Ke.id,{type:it.error,error:We}]}}}let ke,Pe=Ts(de,U);if(!Pe.route.action&&!Pe.route.lazy)ke={type:it.error,error:pn(405,{method:B.method,pathname:U.pathname,routeId:Pe.route.id})};else if(ke=(await Ee("action",k,B,[Pe],de,null))[Pe.route.id],B.signal.aborted)return{shortCircuited:!0};if(ii(ke)){let Ce;return Re&&Re.replace!=null?Ce=Re.replace:Ce=e0(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(ko(ke))throw pn(400,{type:"defer-action"});if(En(ke)){let Ce=ei(de,Pe.route.id);return(Re&&Re.replace)!==!0&&(M=Lt.Push),{matches:de,pendingActionResult:[Ce.route.id,ke]}}return{matches:de,pendingActionResult:[Pe.route.id,ke]}}async function ue(B,U,Q,de,we,Re,$e,ke,Pe,Ce,Te){let We=we||Lf(U,Re),Ke=Re||$e||s0(We),Qt=!j&&(!d.v7_partialHydration||!Pe);if(de){if(Qt){let Pt=Z(Te);oe(xt({navigation:We},Pt!==void 0?{actionData:Pt}:{}),{flushSync:Ce})}let Xe=await Yl(Q,U.pathname,B.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Pt=ei(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:Ti,route:Xa}=fn(U.pathname);return{matches:Ti,loaderData:{},errors:{[Xa.id]:Pt}}}}let ut=s||a,[Ze,kt]=qv(e.history,k,Q,Ke,U,d.v7_partialHydration&&Pe===!0,d.v7_skipActionErrorRevalidation,O,I,T,se,J,V,ut,l,Te);if(Wr(Xe=>!(Q&&Q.some(Pt=>Pt.route.id===Xe))||Ze&&Ze.some(Pt=>Pt.route.id===Xe)),L=++D,Ze.length===0&&kt.length===0){let Xe=fo();return W(U,xt({matches:Q,loaderData:{},errors:Te&&En(Te[1])?{[Te[0]]:Te[1].error}:null},o0(Te),Xe?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Ce}),{shortCircuited:!0}}if(Qt){let Xe={};if(!de){Xe.navigation=We;let Pt=Z(Te);Pt!==void 0&&(Xe.actionData=Pt)}kt.length>0&&(Xe.fetchers=fe(kt)),oe(Xe,{flushSync:Ce})}kt.forEach(Xe=>{at(Xe.key),Xe.controller&&N.set(Xe.key,Xe.controller)});let Ri=()=>kt.forEach(Xe=>at(Xe.key));$&&$.signal.addEventListener("abort",Ri);let{loaderResults:Ga,fetcherResults:Ur}=await _e(k,Q,Ze,kt,B);if(B.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ri),kt.forEach(Xe=>N.delete(Xe.key));let wr=wc(Ga);if(wr)return await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};if(wr=wc(Ur),wr)return V.add(wr.key),await tt(B,wr.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Ud,errors:Qa}=n0(k,Q,Ga,Te,kt,Ur,H);H.forEach((Xe,Pt)=>{Xe.subscribe(Ti=>{(Ti||Xe.done)&&H.delete(Pt)})}),d.v7_partialHydration&&Pe&&k.errors&&(Qa=xt({},k.errors,Qa));let Uo=fo(),Kl=Me(L),Gl=Uo||Kl||kt.length>0;return xt({matches:Q,loaderData:Ud,errors:Qa},Gl?{fetchers:new Map(k.fetchers)}:{})}function Z(B){if(B&&!En(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=hs(void 0,Q?Q.data:void 0);k.fetchers.set(U.key,de)}),new Map(k.fetchers)}function ge(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.");at(B);let we=(de&&de.flushSync)===!0,Re=s||a,$e=eh(k.location,k.matches,l,d.v7_prependBasename,Q,d.v7_relativeSplatPath,U,de==null?void 0:de.relative),ke=Jo(Re,$e,l),Pe=Hl(ke,Re,$e);if(Pe.active&&Pe.matches&&(ke=Pe.matches),!ke){Oe(B,U,pn(404,{pathname:$e}),{flushSync:we});return}let{path:Ce,submission:Te,error:We}=Qv(d.v7_normalizeFormMethod,!0,$e,de);if(We){Oe(B,U,We,{flushSync:we});return}let Ke=Ts(ke,Ce),Qt=(de&&de.preventScrollReset)===!0;if(Te&&ur(Te.formMethod)){Le(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te);return}J.set(B,{routeId:U,path:Ce}),xe(B,U,Ce,Ke,ke,Pe.active,we,Qt,Te)}async function Le(B,U,Q,de,we,Re,$e,ke,Pe){ct(),J.delete(B);function Ce(At){if(!At.route.action&&!At.route.lazy){let Di=pn(405,{method:Pe.formMethod,pathname:Q,routeId:U});return Oe(B,U,Di,{flushSync:$e}),!0}return!1}if(!Re&&Ce(de))return;let Te=k.fetchers.get(B);je(B,Ij(Pe,Te),{flushSync:$e});let We=new AbortController,Ke=Bi(e.history,Q,We.signal,Pe);if(Re){let At=await Yl(we,Q,Ke.signal);if(At.type==="aborted")return;if(At.type==="error"){Oe(B,U,At.error,{flushSync:$e});return}else if(At.matches){if(we=At.matches,de=Ts(we,Q),Ce(de))return}else{Oe(B,U,pn(404,{pathname:Q}),{flushSync:$e});return}}N.set(B,We);let Qt=D,Ze=(await Ee("action",k,Ke,[de],we,B))[de.route.id];if(Ke.signal.aborted){N.get(B)===We&&N.delete(B);return}if(d.v7_fetcherPersist&&se.has(B)){if(ii(Ze)||En(Ze)){je(B,go(void 0));return}}else{if(ii(Ze))if(N.delete(B),L>Qt){je(B,go(void 0));return}else return V.add(B),je(B,hs(Pe)),tt(Ke,Ze,!1,{fetcherSubmission:Pe,preventScrollReset:ke});if(En(Ze)){Oe(B,U,Ze.error);return}}if(ko(Ze))throw pn(400,{type:"defer-action"});let kt=k.navigation.location||k.location,Ri=Bi(e.history,kt,We.signal),Ga=s||a,Ur=k.navigation.state!=="idle"?Jo(Ga,k.navigation.location,l):k.matches;Ue(Ur,"Didn't find any matches after fetcher action");let wr=++D;z.set(B,wr);let Ud=hs(Pe,Ze.data);k.fetchers.set(B,Ud);let[Qa,Uo]=qv(e.history,k,Ur,Pe,kt,!1,d.v7_skipActionErrorRevalidation,O,I,T,se,J,V,Ga,l,[de.route.id,Ze]);Uo.filter(At=>At.key!==B).forEach(At=>{let Di=At.key,lg=k.fetchers.get(Di),K1=hs(void 0,lg?lg.data:void 0);k.fetchers.set(Di,K1),at(Di),At.controller&&N.set(Di,At.controller)}),oe({fetchers:new Map(k.fetchers)});let Kl=()=>Uo.forEach(At=>at(At.key));We.signal.addEventListener("abort",Kl);let{loaderResults:Gl,fetcherResults:Xe}=await _e(k,Ur,Qa,Uo,Ri);if(We.signal.aborted)return;We.signal.removeEventListener("abort",Kl),z.delete(B),N.delete(B),Uo.forEach(At=>N.delete(At.key));let Pt=wc(Gl);if(Pt)return tt(Ri,Pt.result,!1,{preventScrollReset:ke});if(Pt=wc(Xe),Pt)return V.add(Pt.key),tt(Ri,Pt.result,!1,{preventScrollReset:ke});let{loaderData:Ti,errors:Xa}=n0(k,Ur,Gl,void 0,Uo,Xe,H);if(k.fetchers.has(B)){let At=go(Ze.data);k.fetchers.set(B,At)}Me(wr),k.navigation.state==="loading"&&wr>L?(Ue(M,"Expected pending action"),$&&$.abort(),W(k.navigation.location,{matches:Ur,loaderData:Ti,errors:Xa,fetchers:new Map(k.fetchers)})):(oe({errors:Xa,loaderData:r0(k.loaderData,Ti,Ur,Xa),fetchers:new Map(k.fetchers)}),O=!1)}async function xe(B,U,Q,de,we,Re,$e,ke,Pe){let Ce=k.fetchers.get(B);je(B,hs(Pe,Ce?Ce.data:void 0),{flushSync:$e});let Te=new AbortController,We=Bi(e.history,Q,Te.signal);if(Re){let Ze=await Yl(we,Q,We.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,pn(404,{pathname:Q}),{flushSync:$e});return}}N.set(B,Te);let Ke=D,ut=(await Ee("loader",k,We,[de],we,B))[de.route.id];if(ko(ut)&&(ut=await Km(ut,We.signal,!0)||ut),N.get(B)===Te&&N.delete(B),!We.signal.aborted){if(se.has(B)){je(B,go(void 0));return}if(ii(ut))if(L>Ke){je(B,go(void 0));return}else{V.add(B),await tt(We,ut,!1,{preventScrollReset:ke});return}if(En(ut)){Oe(B,U,ut.error);return}Ue(!ko(ut),"Unhandled fetcher deferred data"),je(B,go(ut.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 Pe=U.response.headers.get("Location");Ue(Pe,"Expected a Location header on the redirect Response"),Pe=e0(Pe,new URL(B.url),l);let Ce=Cl(k.location,Pe,{_isRedirect:!0});if(n){let Ze=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(Ym.test(Pe)){const kt=e.history.createURL(Pe);Ze=kt.origin!==t.location.origin||Ka(kt.pathname,l)==null}if(Ze){ke?t.location.replace(Pe):t.location.assign(Pe);return}}$=null;let Te=ke===!0||U.response.headers.has("X-Remix-Replace")?Lt.Replace:Lt.Push,{formMethod:We,formAction:Ke,formEncType:Qt}=k.navigation;!we&&!Re&&We&&Ke&&Qt&&(we=s0(k.navigation));let ut=we||Re;if(dj.has(U.response.status)&&ut&&ur(ut.formMethod))await G(Te,Ce,{submission:xt({},ut,{formAction:Pe}),preventScrollReset:$e||E,enableViewTransition:Q?b:void 0});else{let Ze=Lf(Ce,we);await G(Te,Ce,{overrideNavigation:Ze,fetcherSubmission:Re,preventScrollReset:$e||E,enableViewTransition:Q?b:void 0})}}async function Ee(B,U,Q,de,we,Re){let $e,ke={};try{$e=await xj(c,B,U,Q,de,we,Re,i,o)}catch(Pe){return de.forEach(Ce=>{ke[Ce.route.id]={type:it.error,error:Pe}}),ke}for(let[Pe,Ce]of Object.entries($e))if(Pj(Ce)){let Te=Ce.result;ke[Pe]={type:it.redirect,response:wj(Te,Q,Pe,we,l,d.v7_relativeSplatPath)}}else ke[Pe]=await bj(Ce);return ke}async function _e(B,U,Q,de,we){let Re=B.matches,$e=Ee("loader",B,we,Q,U,null),ke=Promise.all(de.map(async Te=>{if(Te.matches&&Te.match&&Te.controller){let Ke=(await Ee("loader",B,Bi(e.history,Te.path,Te.controller.signal),[Te.match],Te.matches,Te.key))[Te.match.route.id];return{[Te.key]:Ke}}else return Promise.resolve({[Te.key]:{type:it.error,error:pn(404,{pathname:Te.path})}})})),Pe=await $e,Ce=(await ke).reduce((Te,We)=>Object.assign(Te,We),{});return await Promise.all([Rj(U,Pe,we.signal,Re,B.loaderData),Tj(U,Ce,de)]),{loaderResults:Pe,fetcherResults:Ce}}function ct(){O=!0,I.push(...Wr()),J.forEach((B,U)=>{N.has(U)&&T.add(U),at(U)})}function je(B,U,Q){Q===void 0&&(Q={}),k.fetchers.set(B,U),oe({fetchers:new Map(k.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Oe(B,U,Q,de){de===void 0&&(de={});let we=ei(k.matches,U);$t(B),oe({errors:{[we.route.id]:Q},fetchers:new Map(k.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function ft(B){return d.v7_fetcherPersist&&(ce.set(B,(ce.get(B)||0)+1),se.has(B)&&se.delete(B)),k.fetchers.get(B)||fj}function $t(B){let U=k.fetchers.get(B);N.has(B)&&!(U&&U.state==="loading"&&z.has(B))&&at(B),J.delete(B),z.delete(B),V.delete(B),se.delete(B),T.delete(B),k.fetchers.delete(B)}function Ne(B){if(d.v7_fetcherPersist){let U=(ce.get(B)||0)-1;U<=0?(ce.delete(B),se.add(B)):ce.set(B,U)}else $t(B);oe({fetchers:new Map(k.fetchers)})}function at(B){let U=N.get(B);U&&(U.abort(),N.delete(B))}function zn(B){for(let U of B){let Q=ft(U),de=go(Q.data);k.fetchers.set(U,de)}}function fo(){let B=[],U=!1;for(let Q of V){let de=k.fetchers.get(Q);Ue(de,"Expected fetcher: "+Q),de.state==="loading"&&(V.delete(Q),B.push(Q),U=!0)}return zn(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)||ps;return ae.get(B)!==U&&ae.set(B,U),Q}function yt(B){k.blockers.delete(B),ae.delete(B)}function Cn(B,U){let Q=k.blockers.get(B)||ps;Ue(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),oe({blockers:de})}function nt(B){let{currentLocation:U,nextLocation:Q,historyAction:de}=B;if(ae.size===0)return;ae.size>1&&La(!1,"A router only supports one blocker at a time");let we=Array.from(ae.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 fn(B){let U=pn(404,{pathname:B}),Q=s||a,{matches:de,route:we}=i0(Q);return Wr(),{notFoundMatches:de,route:we,error:U}}function Wr(B){let U=[];return H.forEach((Q,de)=>{(!B||B(de))&&(Q.cancel(),U.push(de),H.delete(de))}),U}function br(B,U,Q){if(y=B,C=U,x=Q||null,!p&&k.navigation===Af){p=!0;let de=sg(k.location,k.matches);de!=null&&oe({restoreScrollPosition:de})}return()=>{y=null,C=null,x=null}}function ag(B,U){return x&&x(B,U.map(de=>WL(de,k.loaderData)))||B.key}function U1(B,U){if(y&&C){let Q=ag(B,U);y[Q]=C()}}function sg(B,U){if(y){let Q=ag(B,U),de=y[Q];if(typeof de=="number")return de}return null}function Hl(B,U,Q){if(u)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Uc(U,Q,l,!0)}}else return{active:!0,matches:Uc(U,Q,l,!0)||[]};return{active:!1,matches:null}}async function Yl(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,Te)=>{Q.aborted||Jv(Ce,Te,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=Jo(Re,U,l);if(ke)return{type:"success",matches:ke};let Pe=Uc(Re,U,l,!0);if(!Pe||de.length===Pe.length&&de.every((Ce,Te)=>Ce.route.id===Pe[Te].route.id))return{type:"success",matches:null};de=Pe}}function H1(B){i={},s=Ru(B,o,void 0,i)}function Y1(B,U){let Q=s==null;Jv(B,U,s||a,i,o),Q&&(a=[...a],oe({}))}return P={get basename(){return l},get future(){return d},get state(){return k},get routes(){return a},get window(){return t},initialize:ee,subscribe:ne,enableScrollRestoration:br,navigate:F,fetch:ge,revalidate:Y,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:ft,deleteFetcher:Ne,dispose:X,getBlocker:qe,deleteBlocker:yt,patchRoutes:Y1,_internalFetchControllers:N,_internalActiveDeferreds:H,_internalSetRoutes:H1},P}function mj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function eh(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=Hm(o||".",Um(l,i),Ka(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=Gm(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),g=f.getAll("index");f.delete("index"),g.filter(x=>x).forEach(x=>f.append("index",x));let y=f.toString();u.search=y?"?"+y:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Jr([n,u.pathname])),xi(u)}function Qv(e,t,n,r){if(!r||!mj(r))return{path:n};if(r.formMethod&&!Mj(r.formMethod))return{path:n,error:pn(405,{method:r.formMethod})};let o=()=>({path:n,error:pn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=Yw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ur(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((g,y)=>{let[x,C]=y;return""+g+x+"="+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(!ur(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()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=nh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=nh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=t0(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=t0(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(ur(u.formMethod))return{path:n,submission:u};let d=Wo(n);return t&&d.search&&Gm(d.search)&&l.append("index",""),d.search="?"+l,{path:xi(d),submission:u}}function Xv(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 qv(e,t,n,r,o,i,a,s,l,c,u,d,f,g,y,x){let C=x?En(x[1])?x[1].error:x[1].data:void 0,p=e.createURL(t.location),m=e.createURL(o),v=n;i&&t.errors?v=Xv(n,Object.keys(t.errors)[0],!0):x&&En(x[1])&&(v=Xv(n,x[0]));let S=x?x[1].statusCode:void 0,P=a&&S&&S>=400,k=v.filter((E,$)=>{let{route:b}=E;if(b.lazy)return!0;if(b.loader==null)return!1;if(i)return th(b,t.loaderData,t.errors);if(gj(t.loaderData,t.matches[$],E)||l.some(j=>j===E.route.id))return!0;let R=t.matches[$],A=E;return Zv(E,xt({currentUrl:p,currentParams:R.params,nextUrl:m,nextParams:A.params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s||p.pathname+p.search===m.pathname+m.search||p.search!==m.search||Uw(R,A)}))}),M=[];return d.forEach((E,$)=>{if(i||!n.some(O=>O.route.id===E.routeId)||u.has($))return;let b=Jo(g,E.path,y);if(!b){M.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),A=Ts(b,E.path),j=!1;f.has($)?j=!1:c.has($)?(c.delete($),j=!0):R&&R.state!=="idle"&&R.data===void 0?j=s:j=Zv(A,xt({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:S,defaultShouldRevalidate:P?!1:s})),j&&M.push({key:$,routeId:E.routeId,path:E.path,matches:b,match:A,controller:new AbortController})}),[k,M]}function th(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 gj(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Uw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Zv(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Jv(e,t,n,r,o){var i;let a;if(e){let c=r[e];Ue(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=>Hw(c,u))),l=Ru(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function Hw(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=>Hw(n,i))}):!1}async function yj(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ue(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";La(!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&&!zL.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,xt({},t(o),{lazy:void 0}))}async function vj(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 xj(e,t,n,r,o,i,a,s,l,c){let u=i.map(g=>g.route.lazy?yj(g.route,l,s):void 0),d=i.map((g,y)=>{let x=u[y],C=o.some(m=>m.route.id===g.route.id);return xt({},g,{shouldLoad:C,resolve:async m=>(m&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(C=!0),C?Sj(t,r,g,x,m,c):Promise.resolve({type:it.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 Sj(e,t,n,r,o,i){let a,s,l=c=>{let u,d=new Promise((y,x)=>u=x);s=()=>u(),t.signal.addEventListener("abort",s);let f=y=>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},...y!==void 0?[y]:[]),g=(async()=>{try{return{type:"data",result:await(o?o(x=>f(x)):f())}}catch(y){return{type:"error",result:y}}})();return Promise.race([g,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 pn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:it.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw pn(404,{pathname:d})}Ue(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:it.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function bj(e){let{result:t,type:n}=e;if(Kw(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:it.error,error:u}}return n===it.error?{type:it.error,error:new Tu(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:it.data,data:c,statusCode:t.status,headers:t.headers}}if(n===it.error){if(a0(t)){var r;if(t.data instanceof Error){var o;return{type:it.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new Tu(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:it.error,error:t,statusCode:jd(t)?t.status:void 0}}if(Ej(t)){var i,a;return{type:it.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(a0(t)){var s,l;return{type:it.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:it.data,data:t}}function wj(e,t,n,r,o,i){let a=e.headers.get("Location");if(Ue(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ym.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=eh(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function e0(e,t,n){if(Ym.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ka(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Bi(e,t,n,r){let o=e.createURL(Yw(t)).toString(),i={signal:n};if(r&&ur(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=nh(r.formData):i.body=r.formData}return new Request(o,i)}function nh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function t0(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Cj(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&En(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,g=t[f];if(Ue(!ii(g),"Cannot handle redirect results in processLoaderData"),En(g)){let y=g.error;u!==void 0&&(y=u,u=void 0),a=a||{};{let x=ei(e,f);a[x.route.id]==null&&(a[x.route.id]=y)}i[f]=void 0,l||(l=!0,s=jd(g.error)?g.error.status:500),g.headers&&(c[f]=g.headers)}else ko(g)?(r.set(f,g.deferredData),i[f]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(c[f]=g.headers)):(i[f]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(s=g.statusCode),g.headers&&(c[f]=g.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function n0(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Cj(t,n,r,a);return o.forEach(c=>{let{key:u,match:d,controller:f}=c,g=i[u];if(Ue(g,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(En(g)){let y=ei(e.matches,d==null?void 0:d.route.id);l&&l[y.route.id]||(l=xt({},l,{[y.route.id]:g.error})),e.fetchers.delete(u)}else if(ii(g))Ue(!1,"Unhandled fetcher revalidation redirect");else if(ko(g))Ue(!1,"Unhandled fetcher deferred data");else{let y=go(g.data);e.fetchers.set(u,y)}}),{loaderData:s,errors:l}}function r0(e,t,n,r){let o=xt({},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 o0(e){return e?En(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ei(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 i0(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 pn(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 Tu(e||500,s,new Error(l),!0)}function wc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(ii(o))return{key:r,result:o}}}function Yw(e){let t=typeof e=="string"?Wo(e):e;return xi(xt({},t,{hash:""}))}function kj(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Pj(e){return Kw(e.result)&&uj.has(e.result.status)}function ko(e){return e.type===it.deferred}function En(e){return e.type===it.error}function ii(e){return(e&&e.type)===it.redirect}function a0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ej(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 Kw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Mj(e){return cj.has(e.toLowerCase())}function ur(e){return sj.has(e.toLowerCase())}async function Rj(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&&!Uw(u,c)&&(o&&o[c.route.id])!==void 0;ko(l)&&d&&await Km(l,n,!1).then(f=>{f&&(t[s]=f)})}}async function Tj(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&ko(s)&&(Ue(a,"Expected an AbortController for revalidating fetcher deferred result"),await Km(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function Km(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:it.data,data:e.deferredData.unwrappedData}}catch(o){return{type:it.error,error:o}}return{type:it.data,data:e.deferredData.data}}}function Gm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ts(e,t){let n=typeof t=="string"?Wo(t).search:t.search;if(e[e.length-1].route.index&&Gm(n||""))return e[e.length-1];let r=zw(e);return r[r.length-1]}function s0(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 Lf(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 Dj(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 hs(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 Ij(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 go(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 Oj(e,t){try{let n=e.sessionStorage.getItem(Ww);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 $j(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Ww,JSON.stringify(n))}catch(r){La(!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 Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=Hm(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Jr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const jj=h.createContext(null);function Nj(e){let t=h.useContext(co).outlet;return t&&h.createElement(jj.Provider,{value:e},t)}function qw(){let{matches:e}=h.useContext(co),t=e[e.length-1];return t?t.params:{}}function Zw(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Ei),{matches:o}=h.useContext(co),{pathname:i}=Fd(),a=JSON.stringify(Um(o,r.v7_relativeSplatPath));return h.useMemo(()=>Hm(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Fj(e,t,n,r){zl()||Ue(!1);let{navigator:o}=h.useContext(Ei),{matches:i}=h.useContext(co),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Fd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=Jo(e,{pathname:f});return Wj(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r)}function Bj(){let e=Kj(),t=jd(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const _j=h.createElement(Bj,null);class zj extends h.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?h.createElement(co.Provider,{value:this.props.routeContext},h.createElement(Qw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vj(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Nd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(co.Provider,{value:t},r)}function Wj(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||Ue(!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 g,y=!1,x=null,C=null;n&&(g=s&&d.route.id?s[d.route.id]:void 0,x=d.route.errorElement||_j,l&&(c<0&&f===0?(Qj("route-fallback"),y=!0,C=null):c===f&&(y=!0,C=d.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,f+1)),m=()=>{let v;return g?v=x:y?v=C:d.route.Component?v=h.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,h.createElement(Vj,{match:d,routeContext:{outlet:u,matches:p,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(zj,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var Jw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jw||{}),Iu=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}(Iu||{});function Uj(e){let t=h.useContext(Nd);return t||Ue(!1),t}function Hj(e){let t=h.useContext(Gw);return t||Ue(!1),t}function Yj(e){let t=h.useContext(co);return t||Ue(!1),t}function e1(e){let t=Yj(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function Kj(){var e;let t=h.useContext(Qw),n=Hj(Iu.UseRouteError),r=e1(Iu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Gj(){let{router:e}=Uj(Jw.UseNavigateStable),t=e1(Iu.UseNavigateStable),n=h.useRef(!1);return Xw(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Du({fromRouteId:t},i)))},[e,t])}const l0={};function Qj(e,t,n){l0[e]||(l0[e]=!0)}function Xj(e){return Nj(e.context)}function qj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Lt.Pop,navigator:i,static:a=!1,future:s}=e;zl()&&Ue(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:a,future:Du({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Wo(r));let{pathname:u="/",search:d="",hash:f="",state:g=null,key:y="default"}=r,x=h.useMemo(()=>{let C=Ya(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:g,key:y},navigationType:o}},[l,u,d,f,g,y,o]);return x==null?null:h.createElement(Ei.Provider,{value:c},h.createElement(Qm.Provider,{children:n,value:x}))}new Promise(()=>{});function Zj(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),h.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=Hm(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Jr([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}const jj=h.createContext(null);function Nj(e){let t=h.useContext(co).outlet;return t&&h.createElement(jj.Provider,{value:e},t)}function qw(){let{matches:e}=h.useContext(co),t=e[e.length-1];return t?t.params:{}}function Zw(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Ei),{matches:o}=h.useContext(co),{pathname:i}=Fd(),a=JSON.stringify(Um(o,r.v7_relativeSplatPath));return h.useMemo(()=>Hm(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Fj(e,t,n,r){zl()||Ue(!1);let{navigator:o}=h.useContext(Ei),{matches:i}=h.useContext(co),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Fd(),u;u=c;let d=u.pathname||"/",f=d;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=Jo(e,{pathname:f});return Wj(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r)}function Bj(){let e=Kj(),t=jd(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const _j=h.createElement(Bj,null);class zj extends h.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?h.createElement(co.Provider,{value:this.props.routeContext},h.createElement(Qw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vj(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Nd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(co.Provider,{value:t},r)}function Wj(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||Ue(!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 g,y=!1,x=null,C=null;n&&(g=s&&d.route.id?s[d.route.id]:void 0,x=d.route.errorElement||_j,l&&(c<0&&f===0?(Qj("route-fallback"),y=!0,C=null):c===f&&(y=!0,C=d.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,f+1)),m=()=>{let v;return g?v=x:y?v=C:d.route.Component?v=h.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,h.createElement(Vj,{match:d,routeContext:{outlet:u,matches:p,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(zj,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var Jw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jw||{}),Iu=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}(Iu||{});function Uj(e){let t=h.useContext(Nd);return t||Ue(!1),t}function Hj(e){let t=h.useContext(Gw);return t||Ue(!1),t}function Yj(e){let t=h.useContext(co);return t||Ue(!1),t}function e1(e){let t=Yj(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function Kj(){var e;let t=h.useContext(Qw),n=Hj(Iu.UseRouteError),r=e1(Iu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Gj(){let{router:e}=Uj(Jw.UseNavigateStable),t=e1(Iu.UseNavigateStable),n=h.useRef(!1);return Xw(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Du({fromRouteId:t},i)))},[e,t])}const l0={};function Qj(e,t,n){l0[e]||(l0[e]=!0)}function Xj(e){return Nj(e.context)}function qj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Lt.Pop,navigator:i,static:a=!1,future:s}=e;zl()&&Ue(!1);let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:i,static:a,future:Du({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Wo(r));let{pathname:u="/",search:d="",hash:f="",state:g=null,key:y="default"}=r,x=h.useMemo(()=>{let C=Ka(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:g,key:y},navigationType:o}},[l,u,d,f,g,y,o]);return x==null?null:h.createElement(Ei.Provider,{value:c},h.createElement(Qm.Provider,{children:n,value:x}))}new Promise(()=>{});function Zj(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.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 Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function eN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tN(e,t){return e.button===0&&(!t||t==="_self")&&!eN(e)}const nN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rN="6";try{window.__reactRouterVersion=rN}catch{}function oN(e,t){return hj({basename:t==null?void 0:t.basename,future:Cl({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:FL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||iN(),routes:e,mapRouteProperties:Zj,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function iN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Cl({},t,{errors:aN(t.errors)})),t}function aN(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 Tu(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 sN=h.createContext({isTransitioning:!1}),lN=h.createContext(new Map),cN="startTransition",c0=Ys[cN],uN="flushSync",u0=bP[uN];function dN(e){c0?c0(e):e()}function hs(e){u0?u0(e):e()}class fN{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 pN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,s]=h.useState(),[l,c]=h.useState({isTransitioning:!1}),[u,d]=h.useState(),[f,g]=h.useState(),[y,x]=h.useState(),C=h.useRef(new Map),{v7_startTransition:p}=r||{},m=h.useCallback(E=>{p?dN(E):E()},[p]),v=h.useCallback((E,$)=>{let{deletedFetchers:b,flushSync:R,viewTransitionOpts:A}=$;b.forEach(O=>C.current.delete(O)),E.fetchers.forEach((O,I)=>{O.data!==void 0&&C.current.set(I,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||j){R?hs(()=>i(E)):m(()=>i(E));return}if(R){hs(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let O=n.window.document.startViewTransition(()=>{hs(()=>i(E))});O.finished.finally(()=>{hs(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})})}),hs(()=>g(O));return}f?(u&&u.resolve(),f.skipTransition(),x({state:E,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,f,u,C,m]);h.useLayoutEffect(()=>n.subscribe(v),[n,v]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new fN)},[l]),h.useEffect(()=>{if(u&&a&&n.window){let E=a,$=u.promise,b=n.window.document.startViewTransition(async()=>{m(()=>i(E)),await $});b.finished.finally(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})}),g(b)}},[m,a,u,n.window]),h.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),h.useEffect(()=>{!l.isTransitioning&&y&&(s(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),x(void 0))},[l.isTransitioning,y]),h.useEffect(()=>{},[]);let S=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,b)=>n.navigate(E,{state:$,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(E,$,b)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),P=n.basename||"/",k=h.useMemo(()=>({router:n,navigator:S,static:!1,basename:P}),[n,S,P]),M=h.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return h.createElement(h.Fragment,null,h.createElement(Nd.Provider,{value:k},h.createElement(Gw.Provider,{value:o},h.createElement(lN.Provider,{value:C.current},h.createElement(sN.Provider,{value:l},h.createElement(qj,{basename:P,location:o.location,navigationType:o.historyAction,navigator:S,future:M},o.initialized||n.future.v7_partialHydration?h.createElement(hN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const hN=h.memo(mN);function mN(e){let{routes:t,future:n,state:r}=e;return Fj(t,void 0,r,n)}const gN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ar=h.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=Jj(t,nN),{basename:g}=h.useContext(Ei),y,x=!1;if(typeof c=="string"&&yN.test(c)&&(y=c,gN))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),P=Ya(S.pathname,g);S.origin===v.origin&&P!=null?c=P+S.search+S.hash:x=!0}catch{}let C=Aj(c,{relative:o}),p=vN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||p(v)}return h.createElement("a",Cl({},f,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))});var d0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d0||(d0={}));var f0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f0||(f0={}));function vN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Sr(),c=Fd(),u=Zw(e,{relative:a});return h.useCallback(d=>{if(tN(d,n)){d.preventDefault();let f=r!==void 0?r:xi(c)===xi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var jf={exports:{}},p0;function t1(){return p0||(p0=1,function(e,t){(function(n,r){e.exports=r()})(bi,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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 I=["th","st","nd","rd"],T=O%100;return"["+O+(I[(T-20)%10]||I[T]||I[0])+"]"}},v=function(O,I,T){var N=String(O);return!N||N.length>=I?O:""+Array(I+1-N.length).join(T)+O},S={s:v,z:function(O){var I=-O.utcOffset(),T=Math.abs(I),N=Math.floor(T/60),D=T%60;return(I<=0?"+":"-")+v(N,2,"0")+":"+v(D,2,"0")},m:function O(I,T){if(I.date()1)return O(z[0])}else{var V=I.name;k[V]=I,D=V}return!N&&D&&(P=D),D||!N&&P},b=function(O,I){if(E(O))return O.clone();var T=typeof I=="object"?I:{};return T.date=O,T.args=arguments,new A(T)},R=S;R.l=$,R.i=E,R.w=function(O,I){return b(O,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var A=function(){function O(T){this.$L=$(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var I=O.prototype;return I.parse=function(T){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,J=(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,J)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,J)}}return new Date(D)}(T),this.init()},I.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},I.$utils=function(){return R},I.isValid=function(){return this.$d.toString()!==x},I.isSame=function(T,N){var D=b(T);return this.startOf(N)<=D&&D<=this.endOf(N)},I.isAfter=function(T,N){return b(T)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"),g=this.diff(f,n,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(n1);var SN=n1.exports;const bN=so(SN);var r1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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(p){this[C]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var m=p.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var p=l[C];return p&&(p.indexOf?p:p.s.concat(p.f))},g=function(C,p){var m,v=l.meridiem;if(v){for(var S=1;S<=24;S+=1)if(C.indexOf(v(S,0,p))>-1){m=S>12;break}}else m=C===(p?"pm":"PM");return m},y={A:[s,function(C){this.afternoon=g(C,!1)}],a:[s,function(C){this.afternoon=g(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 p=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],p)for(var v=1;v<=31;v+=1)p(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 p=f("months"),m=(f("monthsShort")||p.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 p=f("months").indexOf(C)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function x(C){var p,m;p=C,m=l&&l.formats;for(var v=(C=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,R,A){var j=A&&A.toUpperCase();return R||m[A]||n[A]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,I,T){return I||T.slice(1)})})).match(r),S=v.length,P=0;P-1)return new Date((D==="X"?1e3:1)*N);var V=x(D)(N),J=V.year,ce=V.month,se=V.day,H=V.hours,ae=V.minutes,ie=V.seconds,ee=V.milliseconds,X=V.zone,ne=V.week,oe=new Date,W=se||(J||ce?1:oe.getDate()),F=J||oe.getFullYear(),Y=0;J&&!ce||(Y=ce>0?ce-1:oe.getMonth());var G,te=H||0,ue=ae||0,Z=ie||0,fe=ee||0;return X?new Date(Date.UTC(F,Y,W,te,ue,Z,fe+60*X.offset*1e3)):L?new Date(Date.UTC(F,Y,W,te,ue,Z,fe)):(G=new Date(F,Y,W,te,ue,Z,fe),ne&&(G=z(G).week(ne).toDate()),G)}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,I=1;I<=O;I+=1){E[1]=$[I-1];var T=m.apply(this,E);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}I===O&&(this.$d=new Date(""))}else S.call(this,P)}}})})(r1);var wN=r1.exports;const CN=so(wN);var o1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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(g,y,x){var C=x&&x.toUpperCase();return y||f[x]||n[x]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(o1);var kN=o1.exports;const PN=so(kN);var i1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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))}}})})(i1);var EN=i1.exports;const MN=so(EN);var a1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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)}}})})(a1);var RN=a1.exports;const TN=so(RN);Wt.extend(PN);Wt.extend(bN);Wt.extend(MN);Wt.extend(TN);const DN={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"},IN={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"},Nf=["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 kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function eN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tN(e,t){return e.button===0&&(!t||t==="_self")&&!eN(e)}const nN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rN="6";try{window.__reactRouterVersion=rN}catch{}function oN(e,t){return hj({basename:t==null?void 0:t.basename,future:kl({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:FL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||iN(),routes:e,mapRouteProperties:Zj,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function iN(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kl({},t,{errors:aN(t.errors)})),t}function aN(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 Tu(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 sN=h.createContext({isTransitioning:!1}),lN=h.createContext(new Map),cN="startTransition",c0=Ks[cN],uN="flushSync",u0=bP[uN];function dN(e){c0?c0(e):e()}function ms(e){u0?u0(e):e()}class fN{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 pN(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,s]=h.useState(),[l,c]=h.useState({isTransitioning:!1}),[u,d]=h.useState(),[f,g]=h.useState(),[y,x]=h.useState(),C=h.useRef(new Map),{v7_startTransition:p}=r||{},m=h.useCallback(E=>{p?dN(E):E()},[p]),v=h.useCallback((E,$)=>{let{deletedFetchers:b,flushSync:R,viewTransitionOpts:A}=$;b.forEach(O=>C.current.delete(O)),E.fetchers.forEach((O,I)=>{O.data!==void 0&&C.current.set(I,O.data)});let j=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||j){R?ms(()=>i(E)):m(()=>i(E));return}if(R){ms(()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let O=n.window.document.startViewTransition(()=>{ms(()=>i(E))});O.finished.finally(()=>{ms(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})})}),ms(()=>g(O));return}f?(u&&u.resolve(),f.skipTransition(),x({state:E,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(E),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,f,u,C,m]);h.useLayoutEffect(()=>n.subscribe(v),[n,v]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new fN)},[l]),h.useEffect(()=>{if(u&&a&&n.window){let E=a,$=u.promise,b=n.window.document.startViewTransition(async()=>{m(()=>i(E)),await $});b.finished.finally(()=>{d(void 0),g(void 0),s(void 0),c({isTransitioning:!1})}),g(b)}},[m,a,u,n.window]),h.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,f,o.location,a]),h.useEffect(()=>{!l.isTransitioning&&y&&(s(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),x(void 0))},[l.isTransitioning,y]),h.useEffect(()=>{},[]);let S=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,b)=>n.navigate(E,{state:$,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(E,$,b)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),P=n.basename||"/",k=h.useMemo(()=>({router:n,navigator:S,static:!1,basename:P}),[n,S,P]),M=h.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return h.createElement(h.Fragment,null,h.createElement(Nd.Provider,{value:k},h.createElement(Gw.Provider,{value:o},h.createElement(lN.Provider,{value:C.current},h.createElement(sN.Provider,{value:l},h.createElement(qj,{basename:P,location:o.location,navigationType:o.historyAction,navigator:S,future:M},o.initialized||n.future.v7_partialHydration?h.createElement(hN,{routes:n.routes,future:n.future,state:o}):t))))),null)}const hN=h.memo(mN);function mN(e){let{routes:t,future:n,state:r}=e;return Fj(t,void 0,r,n)}const gN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ar=h.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=Jj(t,nN),{basename:g}=h.useContext(Ei),y,x=!1;if(typeof c=="string"&&yN.test(c)&&(y=c,gN))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),P=Ka(S.pathname,g);S.origin===v.origin&&P!=null?c=P+S.search+S.hash:x=!0}catch{}let C=Aj(c,{relative:o}),p=vN(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||p(v)}return h.createElement("a",kl({},f,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))});var d0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d0||(d0={}));var f0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f0||(f0={}));function vN(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Sr(),c=Fd(),u=Zw(e,{relative:a});return h.useCallback(d=>{if(tN(d,n)){d.preventDefault();let f=r!==void 0?r:xi(c)===xi(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var jf={exports:{}},p0;function t1(){return p0||(p0=1,function(e,t){(function(n,r){e.exports=r()})(bi,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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 I=["th","st","nd","rd"],T=O%100;return"["+O+(I[(T-20)%10]||I[T]||I[0])+"]"}},v=function(O,I,T){var N=String(O);return!N||N.length>=I?O:""+Array(I+1-N.length).join(T)+O},S={s:v,z:function(O){var I=-O.utcOffset(),T=Math.abs(I),N=Math.floor(T/60),D=T%60;return(I<=0?"+":"-")+v(N,2,"0")+":"+v(D,2,"0")},m:function O(I,T){if(I.date()1)return O(z[0])}else{var V=I.name;k[V]=I,D=V}return!N&&D&&(P=D),D||!N&&P},b=function(O,I){if(E(O))return O.clone();var T=typeof I=="object"?I:{};return T.date=O,T.args=arguments,new A(T)},R=S;R.l=$,R.i=E,R.w=function(O,I){return b(O,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var A=function(){function O(T){this.$L=$(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var I=O.prototype;return I.parse=function(T){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,J=(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,J)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,J)}}return new Date(D)}(T),this.init()},I.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},I.$utils=function(){return R},I.isValid=function(){return this.$d.toString()!==x},I.isSame=function(T,N){var D=b(T);return this.startOf(N)<=D&&D<=this.endOf(N)},I.isAfter=function(T,N){return b(T)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"),g=this.diff(f,n,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(n1);var SN=n1.exports;const bN=so(SN);var r1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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(p){this[C]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var m=p.match(/([+-]|\d\d)/g),v=60*m[1]+(+m[2]||0);return v===0?0:m[0]==="+"?-v:v}(C)}],f=function(C){var p=l[C];return p&&(p.indexOf?p:p.s.concat(p.f))},g=function(C,p){var m,v=l.meridiem;if(v){for(var S=1;S<=24;S+=1)if(C.indexOf(v(S,0,p))>-1){m=S>12;break}}else m=C===(p?"pm":"PM");return m},y={A:[s,function(C){this.afternoon=g(C,!1)}],a:[s,function(C){this.afternoon=g(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 p=l.ordinal,m=C.match(/\d+/);if(this.day=m[0],p)for(var v=1;v<=31;v+=1)p(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 p=f("months"),m=(f("monthsShort")||p.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 p=f("months").indexOf(C)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(C){this.year=c(C)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function x(C){var p,m;p=C,m=l&&l.formats;for(var v=(C=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,R,A){var j=A&&A.toUpperCase();return R||m[A]||n[A]||m[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,I,T){return I||T.slice(1)})})).match(r),S=v.length,P=0;P-1)return new Date((D==="X"?1e3:1)*N);var V=x(D)(N),J=V.year,ce=V.month,se=V.day,H=V.hours,ae=V.minutes,ie=V.seconds,ee=V.milliseconds,X=V.zone,ne=V.week,oe=new Date,W=se||(J||ce?1:oe.getDate()),F=J||oe.getFullYear(),Y=0;J&&!ce||(Y=ce>0?ce-1:oe.getMonth());var G,te=H||0,ue=ae||0,Z=ie||0,fe=ee||0;return X?new Date(Date.UTC(F,Y,W,te,ue,Z,fe+60*X.offset*1e3)):L?new Date(Date.UTC(F,Y,W,te,ue,Z,fe)):(G=new Date(F,Y,W,te,ue,Z,fe),ne&&(G=z(G).week(ne).toDate()),G)}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,I=1;I<=O;I+=1){E[1]=$[I-1];var T=m.apply(this,E);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}I===O&&(this.$d=new Date(""))}else S.call(this,P)}}})})(r1);var wN=r1.exports;const CN=so(wN);var o1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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(g,y,x){var C=x&&x.toUpperCase();return y||f[x]||n[x]||f[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(o1);var kN=o1.exports;const PN=so(kN);var i1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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))}}})})(i1);var EN=i1.exports;const MN=so(EN);var a1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(bi,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)}}})})(a1);var RN=a1.exports;const TN=so(RN);Wt.extend(PN);Wt.extend(bN);Wt.extend(MN);Wt.extend(TN);const DN={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"},IN={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"},Nf=["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(` `),h0=["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(` -`),ON=(e,t)=>t?(...n)=>e(...n).locale(t):e;class $N{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=DN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Wt.utc<"u",this.hasTimezonePlugin=()=>typeof Wt.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 Wt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Wt.tz.guess();return o!=="UTC"?Wt.tz(r,o):Wt(r)}return Wt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Nf);return Wt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Nf);if(!this.hasTimezonePlugin())throw new Error(h0);const i=r!==void 0&&!r.endsWith("Z");return Wt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=Wt.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=()=>Wt(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(Nf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(h0)}return Wt.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=ON(Wt,t),this.locale=t,this.formats=_({},IN,n),Wt.extend(CN)}getDayOfWeek(t){return t.day()+1}}const m0=Bt.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)}),Ff={dedupe:!0},AN=(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,[g,y,x,C]=Or.get(r),[p,m]=Bl(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[b,R,A,j]=Bm(r,p),O=h.useRef({}).current,I=De(a)?n.fallback[p]:a,T=(W,F)=>{for(const Y in O){const G=Y;if(G==="data"){if(!o(W[G],F[G])&&(!De(W[G])||!o(H,F[G])))return!1}else if(F[G]!==W[G])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},Y=b(),G=j(),te=F(Y),ue=Y===G?te:F(G);let Z=te;return[()=>{const fe=F(b());return T(fe,Z)?(Z.data=fe.data,Z.isLoading=fe.isLoading,Z.isValidating=fe.isValidating,Z.error=fe.error,Z):(Z=fe,fe)},()=>ue]},[r,p]),D=Pw.useSyncExternalStore(h.useCallback(W=>A(p,(F,Y)=>{T(Y,F)||W()}),[r,p]),N[0],N[1]),L=!v.current,z=g[p]&&g[p].length>0,V=D.data,J=De(V)?I:V,ce=D.error,se=h.useRef(J),H=f?De(V)?se.current:V:J,ae=z&&!De(ce)?!1:L&&!De(s)?s:E().isPaused()?!1:i?De(J)?!1:l:De(J)||l,ie=!!(p&&t&&L&&ae),ee=De(D.isValidating)?ie:D.isValidating,X=De(D.isLoading)?ie:D.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let Y,G,te=!0;const ue=W||{},Z=!x[p]||!ue.dedupe,fe=()=>bl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===G&&delete x[p]},tt={isValidating:!0};De(b().data)&&(tt.isLoading=!0);try{if(Z&&(R(tt),n.loadingTimeout&&De(b().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[Y,G]=x[p],Y=await Y,Z&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==G)return Z&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=y[p];if(!De(Ee)&&(G<=Ee[0]||G<=Ee[1]||Ee[1]===0))return Le(),Z&&fe()&&E().onDiscarded(p),!1;const _e=b().data;ge.data=o(_e,Y)?_e:Y,Z&&fe()&&E().onSuccess(Y,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,Z&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=g[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>_m(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Ff);let F=0;const G=Nw(p,g,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const Z=Date.now();E().revalidateOnFocus&&Z>F&&$()&&(F=Z+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),ae&&(De(J)||vi?W():Ew(W)),()=>{S.current=!0,G()}},[p]),Zr(()=>{let W;function F(){const G=Dn(c)?c(b().data):c;G&&W!==-1&&(W=setTimeout(Y,G))}function Y(){!b().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Ff).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(H),i&&De(J)&&p){if(!bl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);m0(F)}if(De(ce)){const F=ne(Ff);De(H)||(F.status="fulfilled",F.value=!0),m0(F)}else throw ce}return{mutate:oe,get data(){return O.data=!0,H},get error(){return O.error=!0,ce},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,X}}};da.defineProperty(Vm,"defaultValue",{value:Ad});const LN=jw(AN),g0=bl?e=>{e()}:Bt.startTransition,jN=e=>{const[,t]=h.useState({}),n=h.useRef(!1),r=h.useRef(e),o=h.useRef({data:!1,error:!1,isValidating:!1}),i=h.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 Zr(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},NN=()=>(e,t,n={})=>{const{mutate:r}=Lw(),o=h.useRef(e),i=h.useRef(t),a=h.useRef(n),s=h.useRef(0),[l,c,u]=jN({data:It,error:It,isMutating:!1}),d=l.current,f=h.useCallback(async(y,x)=>{const[C,p]=Bl(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=An(An({populateCache:!1,throwOnError:!0},a.current),x),v=Aa();s.current=v,u({isMutating:!0});try{const S=await r(C,i.current(p,{arg:y}),An(m,{throwOnError:!0}));return s.current<=v&&(g0(()=>u({data:S,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,S,C,m)),S}catch(S){if(s.current<=v&&(g0(()=>u({error:S,isMutating:!1})),m.onError==null||m.onError.call(m,S,C,m),m.throwOnError))throw S}},[]),g=h.useCallback(()=>{s.current=Aa(),u({data:It,error:It,isMutating:!1})},[]);return Zr(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:g,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},ja=OL(LN,NN),FN=()=>{const[e,t]=h.useState(localStorage.getItem("token")),{trigger:n}=ja("/auth/token/logout",Wm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),Iw("/auth/users/me",null),n()}}},Xm=()=>w.jsx("img",{src:wP,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),BN=K(vl)(({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"})})),_N=K(Pi)(({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%))"})}})),zN=e=>{const[t,n]=h.useState(""),{trigger:r,error:o}=ja("/auth/token/login",Fw),i=Sr(),{login:a}=h.useContext(wn);h.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)};return w.jsxs(w.Fragment,{children:[w.jsx(cw,{enableColorScheme:!0}),w.jsx(_N,{direction:"column",justifyContent:"space-between",children:w.jsxs(BN,{variant:"outlined",children:[w.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:w.jsx(Xm,{})}),w.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),w.jsxs(an,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"name",children:"Username"}),w.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"password",children:"Password"}),w.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&w.jsx("div",{style:{color:"red"},children:t}),w.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),w.jsxs(Ye,{sx:{textAlign:"center"},children:["Don't have an account?"," ",w.jsx("span",{children:w.jsx(Am,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},VN=en(w.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"),WN=K(vl)(({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"})})),UN=K(Pi)(({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%))"})}})),HN=e=>{const[t,n]=h.useState(!1),[r,o]=h.useState(""),[i,a]=h.useState(!1),[s,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(""),[g,y]=h.useState(!1),x=Sr(),{trigger:C,error:p}=ja("/auth/users/",Fw),m=(M,E)=>{M(E.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};h.useEffect(()=>{p&&Object.entries(p.info).forEach(([M,E])=>{v[M](E)})},[p]);const S=()=>{const M=document.getElementById("email"),E=document.getElementById("password"),$=document.getElementById("username");let b=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),b=!1):(n(!1),o("")),!E.value||E.value.length<8?(a(!0),l("Password must be at least 8 characters long."),b=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),b=!1):(u(!1),f("")),b},P=async M=>{if(M.preventDefault(),c||t||i)return;const E=new FormData(M.currentTarget),$=E.get("username"),b=E.get("email"),R=E.get("password");await C({username:$,email:b,password:R}),y(!0)},k=()=>{y(!1),x("/login")};return w.jsxs(w.Fragment,{children:[w.jsx(kA,{open:g,autoHideDuration:2e3,message:"Note archived",onClose:k,children:w.jsx(kD,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:w.jsx(VN,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),w.jsx(cw,{enableColorScheme:!0}),w.jsx(UN,{direction:"column",justifyContent:"space-between",children:w.jsxs(WN,{variant:"outlined",children:[w.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:w.jsx(Xm,{})}),w.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),w.jsxs(an,{component:"form",onSubmit:P,sx:{display:"flex",flexDirection:"column",gap:2},children:[w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"name",children:"Username"}),w.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"email",children:"Email"}),w.jsx(Fr,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"password",children:"Password"}),w.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),w.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",onClick:S,children:"Sign up"}),w.jsxs(Ye,{sx:{textAlign:"center"},children:["Already have an account?"," ",w.jsx("span",{children:w.jsx(Am,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>x("/login"),children:"Sign in"})})]})]})]})})]})},y0=()=>{const e=Sr(),t=()=>{e("/")};return w.jsxs(an,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[w.jsx(Ye,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),w.jsx(Ye,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),w.jsx(Tt,{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=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=Sr();return h.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?w.jsx(Fl,{}):w.jsx(e,{})},v0=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=Sr();return h.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?w.jsx(Fl,{}):w.jsx(e,{})},s1=e=>e/(1e3*60*60*24),Vl=()=>w.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:w.jsx(Fl,{})}),YN=()=>{const e=Sr(),t=Id("(max-width:600px)"),{token:n}=h.useContext(wn),{data:r,isLoading:o,error:i}=_r("/activities",zr(n)),{data:a,isLoading:s,error:l}=_r("/titles",zr(n)),c=h.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?s1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?w.jsx(Vl,{}):w.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>w.jsx(an,{sx:{width:"100%",marginBottom:2},children:w.jsxs(yr,{elevation:3,sx:{padding:2},children:[w.jsx(Ye,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>w.jsxs(an,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[w.jsxs(Ye,{variant:"body1",children:[w.jsx("strong",{children:"Name:"})," ",d.name]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Description:"})," ",d.description]}),w.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Start date:"})," ",d.start_date]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"End date:"})," ",d.end_date]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):w.jsx(an,{display:"flex",children:w.jsx(zA,{component:yr,children:w.jsxs(RA,{sx:{minWidth:650},children:[w.jsx(YA,{children:w.jsxs(Rf,{children:[w.jsx(kn,{align:"center",children:"Name"}),w.jsx(kn,{align:"center",children:"Description"}),w.jsx(kn,{align:"center",children:"Image"}),w.jsx(kn,{align:"center",children:"Start date"}),w.jsx(kn,{align:"center",children:"End date"}),w.jsx(kn,{align:"center",children:"Days Spent"})]})}),w.jsx($A,{children:c.map(u=>w.jsxs(Bt.Fragment,{children:[w.jsx(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:w.jsx(kn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>w.jsxs(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[w.jsx(kn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:w.jsx(Ye,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),w.jsx(kn,{align:"center",children:d.description}),w.jsx(kn,{align:"center",children:w.jsx("img",{src:d.image,width:"180px"})}),w.jsx(kn,{align:"center",children:d.start_date}),w.jsx(kn,{align:"center",children:d.end_date}),w.jsx(kn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},KN=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(""),[a,s]=h.useState(""),{token:l}=h.useContext(wn),{trigger:c,error:u}=ja("/activities/",Wm(l)),d=async g=>{g.preventDefault(),await c({name:e,description:n})},f={name:g=>{i(g)},description:g=>{s(setPasswordErrorMessage,g)}};return h.useEffect(()=>{u&&Object.entries(u.info).forEach(([g,y])=>{f[g](y)})},[u]),w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),w.jsxs("form",{onSubmit:d,children:[w.jsx(Fr,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:g=>t(g.target.value),error:!!o,helperText:o,required:!0}),w.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:g=>r(g.target.value),error:!!a,helperText:a}),w.jsx(an,{display:"flex",justifyContent:"flex-end",children:w.jsx(Tt,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},GN=()=>w.jsx(sw,{maxWidth:"sm",children:w.jsx(KN,{})}),QN=["localeText"],rh=h.createContext(null),l1=function(t){const{localeText:n}=t,r=Ae(t,QN),{utils:o,localeText:i}=h.useContext(rh)??{utils:void 0,localeText:void 0},a=mt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,g=h.useMemo(()=>_({},f,i,n),[f,i,n]),y=h.useMemo(()=>{if(!l)return o||null;const p=new l({locale:d,formats:c,instance:u});if(!p.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(` +`),ON=(e,t)=>t?(...n)=>e(...n).locale(t):e;class $N{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=DN,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Wt.utc<"u",this.hasTimezonePlugin=()=>typeof Wt.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 Wt.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Wt.tz.guess();return o!=="UTC"?Wt.tz(r,o):Wt(r)}return Wt(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Nf);return Wt.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(Nf);if(!this.hasTimezonePlugin())throw new Error(h0);const i=r!==void 0&&!r.endsWith("Z");return Wt(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=Wt.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=()=>Wt(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(Nf);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(h0)}return Wt.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=ON(Wt,t),this.locale=t,this.formats=_({},IN,n),Wt.extend(CN)}getDayOfWeek(t){return t.day()+1}}const m0=Bt.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)}),Ff={dedupe:!0},AN=(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,[g,y,x,C]=Or.get(r),[p,m]=_l(e),v=h.useRef(!1),S=h.useRef(!1),P=h.useRef(p),k=h.useRef(t),M=h.useRef(n),E=()=>M.current,$=()=>E().isVisible()&&E().isOnline(),[b,R,A,j]=Bm(r,p),O=h.useRef({}).current,I=De(a)?n.fallback[p]:a,T=(W,F)=>{for(const Y in O){const G=Y;if(G==="data"){if(!o(W[G],F[G])&&(!De(W[G])||!o(H,F[G])))return!1}else if(F[G]!==W[G])return!1}return!0},N=h.useMemo(()=>{const W=!p||!t?!1:De(s)?E().isPaused()||i?!1:De(l)?!0:l:s,F=fe=>{const ge=An(fe);return delete ge._k,W?{isValidating:!0,isLoading:!0,...ge}:ge},Y=b(),G=j(),te=F(Y),ue=Y===G?te:F(G);let Z=te;return[()=>{const fe=F(b());return T(fe,Z)?(Z.data=fe.data,Z.isLoading=fe.isLoading,Z.isValidating=fe.isValidating,Z.error=fe.error,Z):(Z=fe,fe)},()=>ue]},[r,p]),D=Pw.useSyncExternalStore(h.useCallback(W=>A(p,(F,Y)=>{T(Y,F)||W()}),[r,p]),N[0],N[1]),L=!v.current,z=g[p]&&g[p].length>0,V=D.data,J=De(V)?I:V,ce=D.error,se=h.useRef(J),H=f?De(V)?se.current:V:J,ae=z&&!De(ce)?!1:L&&!De(s)?s:E().isPaused()?!1:i?De(J)?!1:l:De(J)||l,ie=!!(p&&t&&L&&ae),ee=De(D.isValidating)?ie:D.isValidating,X=De(D.isLoading)?ie:D.isLoading,ne=h.useCallback(async W=>{const F=k.current;if(!p||!F||S.current||E().isPaused())return!1;let Y,G,te=!0;const ue=W||{},Z=!x[p]||!ue.dedupe,fe=()=>wl?!S.current&&p===P.current&&v.current:p===P.current,ge={isValidating:!1,isLoading:!1},Le=()=>{R(ge)},xe=()=>{const Ee=x[p];Ee&&Ee[1]===G&&delete x[p]},tt={isValidating:!0};De(b().data)&&(tt.isLoading=!0);try{if(Z&&(R(tt),n.loadingTimeout&&De(b().data)&&setTimeout(()=>{te&&fe()&&E().onLoadingSlow(p,n)},n.loadingTimeout),x[p]=[F(m),Aa()]),[Y,G]=x[p],Y=await Y,Z&&setTimeout(xe,n.dedupingInterval),!x[p]||x[p][1]!==G)return Z&&fe()&&E().onDiscarded(p),!1;ge.error=It;const Ee=y[p];if(!De(Ee)&&(G<=Ee[0]||G<=Ee[1]||Ee[1]===0))return Le(),Z&&fe()&&E().onDiscarded(p),!1;const _e=b().data;ge.data=o(_e,Y)?_e:Y,Z&&fe()&&E().onSuccess(Y,p,n)}catch(Ee){xe();const _e=E(),{shouldRetryOnError:ct}=_e;_e.isPaused()||(ge.error=Ee,Z&&fe()&&(_e.onError(Ee,p,_e),(ct===!0||Dn(ct)&&ct(Ee))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||$())&&_e.onErrorRetry(Ee,p,_e,je=>{const Oe=g[p];Oe&&Oe[0]&&Oe[0]($r.ERROR_REVALIDATE_EVENT,je)},{retryCount:(ue.retryCount||0)+1,dedupe:!0})))}return te=!1,Le(),!0},[p,r]),oe=h.useCallback((...W)=>_m(r,P.current,...W),[]);if(Zr(()=>{k.current=t,M.current=n,De(V)||(se.current=V)}),Zr(()=>{if(!p)return;const W=ne.bind(It,Ff);let F=0;const G=Nw(p,g,(te,ue={})=>{if(te==$r.FOCUS_EVENT){const Z=Date.now();E().revalidateOnFocus&&Z>F&&$()&&(F=Z+E().focusThrottleInterval,W())}else if(te==$r.RECONNECT_EVENT)E().revalidateOnReconnect&&$()&&W();else{if(te==$r.MUTATE_EVENT)return ne();if(te==$r.ERROR_REVALIDATE_EVENT)return ne(ue)}});return S.current=!1,P.current=p,v.current=!0,R({_k:m}),ae&&(De(J)||vi?W():Ew(W)),()=>{S.current=!0,G()}},[p]),Zr(()=>{let W;function F(){const G=Dn(c)?c(b().data):c;G&&W!==-1&&(W=setTimeout(Y,G))}function Y(){!b().error&&(u||E().isVisible())&&(d||E().isOnline())?ne(Ff).then(F):F()}return F(),()=>{W&&(clearTimeout(W),W=-1)}},[c,u,d,p]),h.useDebugValue(H),i&&De(J)&&p){if(!wl&&vi)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,M.current=n,S.current=!1;const W=C[p];if(!De(W)){const F=oe(W);m0(F)}if(De(ce)){const F=ne(Ff);De(H)||(F.status="fulfilled",F.value=!0),m0(F)}else throw ce}return{mutate:oe,get data(){return O.data=!0,H},get error(){return O.error=!0,ce},get isValidating(){return O.isValidating=!0,ee},get isLoading(){return O.isLoading=!0,X}}};da.defineProperty(Vm,"defaultValue",{value:Ad});const LN=jw(AN),g0=wl?e=>{e()}:Bt.startTransition,jN=e=>{const[,t]=h.useState({}),n=h.useRef(!1),r=h.useRef(e),o=h.useRef({data:!1,error:!1,isValidating:!1}),i=h.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 Zr(()=>(n.current=!1,()=>{n.current=!0})),[r,o.current,i]},NN=()=>(e,t,n={})=>{const{mutate:r}=Lw(),o=h.useRef(e),i=h.useRef(t),a=h.useRef(n),s=h.useRef(0),[l,c,u]=jN({data:It,error:It,isMutating:!1}),d=l.current,f=h.useCallback(async(y,x)=>{const[C,p]=_l(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=An(An({populateCache:!1,throwOnError:!0},a.current),x),v=Aa();s.current=v,u({isMutating:!0});try{const S=await r(C,i.current(p,{arg:y}),An(m,{throwOnError:!0}));return s.current<=v&&(g0(()=>u({data:S,isMutating:!1,error:void 0})),m.onSuccess==null||m.onSuccess.call(m,S,C,m)),S}catch(S){if(s.current<=v&&(g0(()=>u({error:S,isMutating:!1})),m.onError==null||m.onError.call(m,S,C,m),m.throwOnError))throw S}},[]),g=h.useCallback(()=>{s.current=Aa(),u({data:It,error:It,isMutating:!1})},[]);return Zr(()=>{o.current=e,i.current=t,a.current=n}),{trigger:f,reset:g,get data(){return c.data=!0,d.data},get error(){return c.error=!0,d.error},get isMutating(){return c.isMutating=!0,d.isMutating}}},ja=OL(LN,NN),FN=()=>{const[e,t]=h.useState(localStorage.getItem("token")),{trigger:n}=ja("/auth/token/logout",Wm(e));return{token:e,login:i=>{t(i),localStorage.setItem("token",i)},logout:()=>{localStorage.removeItem("token"),t(null),Iw("/auth/users/me",null),n()}}},Xm=()=>w.jsx("img",{src:wP,alt:"logo",className:"logo",style:{width:"100%",height:"100%"}}),BN=K(xl)(({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"})})),_N=K(Pi)(({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%))"})}})),zN=e=>{const[t,n]=h.useState(""),{trigger:r,error:o}=ja("/auth/token/login",Fw),i=Sr(),{login:a}=h.useContext(wn);h.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)};return w.jsxs(w.Fragment,{children:[w.jsx(cw,{enableColorScheme:!0}),w.jsx(_N,{direction:"column",justifyContent:"space-between",children:w.jsxs(BN,{variant:"outlined",children:[w.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:w.jsx(Xm,{})}),w.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign in"}),w.jsxs(an,{component:"form",onSubmit:s,sx:{display:"flex",flexDirection:"column",gap:2},children:[w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"name",children:"Username"}),w.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"password",children:"Password"}),w.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined"})]}),t&&w.jsx("div",{style:{color:"red"},children:t}),w.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",children:"Sign in"}),w.jsxs(Ye,{sx:{textAlign:"center"},children:["Don't have an account?"," ",w.jsx("span",{children:w.jsx(Am,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>i("/register"),children:"Sign up"})})]})]})]})})]})},VN=en(w.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"),WN=K(xl)(({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"})})),UN=K(Pi)(({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%))"})}})),HN=e=>{const[t,n]=h.useState(!1),[r,o]=h.useState(""),[i,a]=h.useState(!1),[s,l]=h.useState(""),[c,u]=h.useState(!1),[d,f]=h.useState(""),[g,y]=h.useState(!1),x=Sr(),{trigger:C,error:p}=ja("/auth/users/",Fw),m=(M,E)=>{M(E.join(", "))},v={username:M=>{m(f,M),u(!0)},password:M=>{m(l,M),a(!0)},email:M=>{m(o,M),n(!0)}};h.useEffect(()=>{p&&Object.entries(p.info).forEach(([M,E])=>{v[M](E)})},[p]);const S=()=>{const M=document.getElementById("email"),E=document.getElementById("password"),$=document.getElementById("username");let b=!0;return!M.value||!/\S+@\S+\.\S+/.test(M.value)?(n(!0),o("Please enter a valid email address."),b=!1):(n(!1),o("")),!E.value||E.value.length<8?(a(!0),l("Password must be at least 8 characters long."),b=!1):(a(!1),l("")),!$.value||$.value.length<1?(u(!0),f("Username is required."),b=!1):(u(!1),f("")),b},P=async M=>{if(M.preventDefault(),c||t||i)return;const E=new FormData(M.currentTarget),$=E.get("username"),b=E.get("email"),R=E.get("password");await C({username:$,email:b,password:R}),y(!0)},k=()=>{y(!1),x("/login")};return w.jsxs(w.Fragment,{children:[w.jsx(kA,{open:g,autoHideDuration:2e3,message:"Note archived",onClose:k,children:w.jsx(kD,{onClose:k,severity:"success",sx:{backgroundColor:"#4caf50",color:"white"},iconMapping:{success:w.jsx(VN,{fontSize:"inherit"})},children:"Nice account you got here! Redirecting now..."})}),w.jsx(cw,{enableColorScheme:!0}),w.jsx(UN,{direction:"column",justifyContent:"space-between",children:w.jsxs(WN,{variant:"outlined",children:[w.jsx(an,{sx:{display:"flex",justifyContent:"center"},children:w.jsx(Xm,{})}),w.jsx(Ye,{component:"h1",variant:"h4",sx:{width:"100%",fontSize:"clamp(2rem, 10vw, 2.15rem)"},children:"Sign up"}),w.jsxs(an,{component:"form",onSubmit:P,sx:{display:"flex",flexDirection:"column",gap:2},children:[w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"name",children:"Username"}),w.jsx(Fr,{autoComplete:"username",name:"username",required:!0,fullWidth:!0,id:"username",placeholder:"Jon Snow",error:c,helperText:d,color:c?"error":"primary"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"email",children:"Email"}),w.jsx(Fr,{required:!0,fullWidth:!0,id:"email",placeholder:"your@email.com",name:"email",autoComplete:"email",variant:"outlined",error:t,helperText:r,color:i?"error":"primary"})]}),w.jsxs($o,{children:[w.jsx(ua,{htmlFor:"password",children:"Password"}),w.jsx(Fr,{required:!0,fullWidth:!0,name:"password",placeholder:"••••••",type:"password",id:"password",autoComplete:"new-password",variant:"outlined",error:i,helperText:s,color:i?"error":"primary"})]}),w.jsx(Tt,{type:"submit",fullWidth:!0,variant:"contained",onClick:S,children:"Sign up"}),w.jsxs(Ye,{sx:{textAlign:"center"},children:["Already have an account?"," ",w.jsx("span",{children:w.jsx(Am,{variant:"body2",sx:{alignSelf:"center",cursor:"pointer"},onClick:()=>x("/login"),children:"Sign in"})})]})]})]})})]})},y0=()=>{const e=Sr(),t=()=>{e("/")};return w.jsxs(an,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"60vh",textAlign:"center",padding:"20px",borderRadius:"8px",margin:"0 20px"},children:[w.jsx(Ye,{variant:"h3",gutterBottom:!0,sx:{fontWeight:"bold",color:"#DC143C"},children:"Oops! An Error Occurred"}),w.jsx(Ye,{variant:"h6",gutterBottom:!0,sx:{color:"#555"},children:"Maybe it was you or maybe something is wrong"}),w.jsx(Tt,{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=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=Sr();return h.useEffect(()=>{!i&&!r&&a("/login")},[n,r,i]),i||!r?w.jsx(Bl,{}):w.jsx(e,{})},v0=({Component:e,...t})=>{const{token:n}=h.useContext(wn),{user:r,error:o,isLoading:i}=Ld(),a=Sr();return h.useEffect(()=>{!i&&r&&a("/")},[n,r,i]),i?w.jsx(Bl,{}):w.jsx(e,{})},s1=e=>e/(1e3*60*60*24),Vl=()=>w.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",height:"100vh",children:w.jsx(Bl,{})}),YN=()=>{const e=Sr(),t=Id("(max-width:600px)"),{token:n}=h.useContext(wn),{data:r,isLoading:o,error:i}=_r("/activities",zr(n)),{data:a,isLoading:s,error:l}=_r("/titles",zr(n)),c=h.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?s1(new Date(f.end_date)-new Date(f.start_date)):"Not finished"}))})),[a,r]);return o||s?w.jsx(Vl,{}):w.jsx(Pi,{direction:"column",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center",children:t?c.map(u=>w.jsx(an,{sx:{width:"100%",marginBottom:2},children:w.jsxs(yr,{elevation:3,sx:{padding:2},children:[w.jsx(Ye,{variant:"h6",color:"primary",children:u.name}),u.titles.map(d=>w.jsxs(an,{sx:{marginBottom:1,padding:1,border:"1px solid #ccc"},children:[w.jsxs(Ye,{variant:"body1",children:[w.jsx("strong",{children:"Name:"})," ",d.name]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Description:"})," ",d.description]}),w.jsx("img",{src:d.image,width:"100%",style:{maxHeight:"300px",objectFit:"cover"}}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Start date:"})," ",d.start_date]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"End date:"})," ",d.end_date]}),w.jsxs(Ye,{variant:"body2",children:[w.jsx("strong",{children:"Days Spent:"})," ",d.time_spent]})]},d.id))]})},u.id)):w.jsx(an,{display:"flex",children:w.jsx(zA,{component:yr,children:w.jsxs(RA,{sx:{minWidth:650},children:[w.jsx(YA,{children:w.jsxs(Rf,{children:[w.jsx(kn,{align:"center",children:"Name"}),w.jsx(kn,{align:"center",children:"Description"}),w.jsx(kn,{align:"center",children:"Image"}),w.jsx(kn,{align:"center",children:"Start date"}),w.jsx(kn,{align:"center",children:"End date"}),w.jsx(kn,{align:"center",children:"Days Spent"})]})}),w.jsx($A,{children:c.map(u=>w.jsxs(Bt.Fragment,{children:[w.jsx(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},style:{backgroundColor:"black"},onClick:()=>e(`/activities/${u.id}`),children:w.jsx(kn,{colSpan:7,align:"center",style:{fontWeight:"bold",color:"white"},children:u.name})},u.id),u.titles.map(d=>w.jsxs(Rf,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[w.jsx(kn,{align:"center",onClick:()=>e(`/titles/${d.id}`),children:w.jsx(Ye,{variant:"body2",style:{fontWeight:"bold",cursor:"pointer"},children:d.name})}),w.jsx(kn,{align:"center",children:d.description}),w.jsx(kn,{align:"center",children:w.jsx("img",{src:d.image,width:"180px"})}),w.jsx(kn,{align:"center",children:d.start_date}),w.jsx(kn,{align:"center",children:d.end_date}),w.jsx(kn,{align:"center",children:d.time_spent})]},d.id))]},u.id))})]})})})})},KN=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(""),[a,s]=h.useState(""),{token:l}=h.useContext(wn),{trigger:c,error:u}=ja("/activities/",Wm(l)),d=async g=>{g.preventDefault(),await c({name:e,description:n})},f={name:g=>{i(g)},description:g=>{s(setPasswordErrorMessage,g)}};return h.useEffect(()=>{u&&Object.entries(u.info).forEach(([g,y])=>{f[g](y)})},[u]),w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Activity"}),w.jsxs("form",{onSubmit:d,children:[w.jsx(Fr,{label:"Activity Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:g=>t(g.target.value),error:!!o,helperText:o,required:!0}),w.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:g=>r(g.target.value),error:!!a,helperText:a}),w.jsx(an,{display:"flex",justifyContent:"flex-end",children:w.jsx(Tt,{type:"submit",variant:"contained",color:"primary",children:"Create Activity"})})]})]})},GN=()=>w.jsx(sw,{maxWidth:"sm",children:w.jsx(KN,{})}),QN=["localeText"],rh=h.createContext(null),l1=function(t){const{localeText:n}=t,r=Ae(t,QN),{utils:o,localeText:i}=h.useContext(rh)??{utils:void 0,localeText:void 0},a=mt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:f}=a,g=h.useMemo(()=>_({},f,i,n),[f,i,n]),y=h.useMemo(()=>{if(!l)return o||null;const p=new l({locale:d,formats:c,instance:u});if(!p.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 p},[l,d,c,u,o]),x=h.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),C=h.useMemo(()=>({utils:y,defaultDates:x,localeText:g}),[x,y,g]);return w.jsx(rh.Provider,{value:C,children:s})},XN=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:_({},e)}}}}),c1=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)}},u1={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"},qN=u1;XN(u1);const Mi=()=>{const e=h.useContext(rh);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=h.useMemo(()=>_({},qN,e.localeText),[e.localeText]);return h.useMemo(()=>_({},e,{localeText:t}),[e,t])},gt=()=>Mi().utils,Wl=()=>Mi().defaultDates,Bd=e=>{const t=gt(),n=h.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},uo=()=>Mi().localeText,ZN=en(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),JN=en(w.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),eF=en(w.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),tF=en(w.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");en(w.jsxs(h.Fragment,{children:[w.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"}),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");en(w.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");en(w.jsxs(h.Fragment,{children:[w.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"}),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const nF=en(w.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 rF(e){return ye("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const oF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],iF=["ownerState"],aF=["ownerState"],sF=K("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),lF=K("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),x0=K(Wa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),cF=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},rF,t)},uF=h.forwardRef(function(t,n){const r=rr(),o=mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:g,isPreviousHidden:y,onGoToPrevious:x,previousLabel:C,labelId:p}=o,m=Ae(o,oF),v=o,S=cF(v),P={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:g,isHidden:y,goTo:x,label:C},M=(s==null?void 0:s.previousIconButton)??x0,E=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(S.button,S.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??x0,b=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:_({},v,{hidden:P.isHidden}),className:pe(S.button,S.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??JN,A=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.leftArrowIcon}),j=Ae(A,iF),O=(s==null?void 0:s.rightArrowIcon)??eF,I=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.rightArrowIcon}),T=Ae(I,aF);return w.jsxs(sF,_({ref:n,className:pe(S.root,a),ownerState:v},m,{children:[w.jsx(M,_({},E,{children:r?w.jsx(O,_({},T)):w.jsx(R,_({},j))})),i?w.jsx(Ye,{variant:"subtitle1",component:"span",id:p,children:i}):w.jsx(lF,{className:S.spacer,ownerState:v}),w.jsx($,_({},b,{children:r?w.jsx(R,_({},j)):w.jsx(O,_({},T))}))]}))}),ms=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),dF=({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}},fF=["hours","minutes","seconds"],pF=e=>fF.includes(e),S0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hF=(e,t)=>(n,r)=>e?t.isAfter(n,r):S0(n,t)>S0(r,t);function d1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=h.useRef(n),c=h.useRef(o),u=h.useRef(o.includes(n)?n:o[0]),[d,f]=io({name:"useViews",state:"view",controlled:r,default:u.current}),g=h.useRef(i?d:null),[y,x]=io({name:"useViews",state:"focusedView",controlled:a,default:g.current});h.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),p=o[C-1]??null,m=o[C+1]??null,v=Se((M,E)=>{x(E?M:$=>M===$?null:$),s==null||s(M,E)}),S=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),P=Se(()=>{m&&S(m)}),k=Se((M,E,$)=>{const b=E==="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 gF(e,{disablePast:t,minDate:n,timezone:r}){const o=gt();return h.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 kl=36,_d=2,zd=320,yF=280,qm=336,vF=K("div")({overflow:"hidden",width:zd,maxHeight:qm,display:"flex",flexDirection:"column",margin:"0 auto"}),Ou=(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},Hs=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=Ou(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},xF=(e,t)=>t==null||!e.isValid(t)?null:t,tr=(e,t,n)=>t==null||!e.isValid(t)?n:t,SF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Zm=(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},f1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),bF=["year","month","day"],b0=e=>bF.includes(e),Jm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ms(n,["year"])?o.year:ms(n,["month"])?o.month:ms(n,["day"])?o.dayOfMonth:ms(n,["month","year"])?`${o.month} ${o.year}`:ms(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},wF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},eg=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=gt(),s=h.useRef(n),l=t??s.current??i.emptyValue,c=h.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(y=>c==null?y:i.setTimezone(a,c,y));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=h.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),g=Se((y,...x)=>{const C=u(y);o==null||o(C,...x)});return{value:f,handleValueChange:g,timezone:d}},tg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=io({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return eg({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Tr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},CF=e=>Math.max(...e.map(t=>Tr[t.type]??1)),gs=(e,t,n)=>{if(t===Tr.year)return e.startOfYear(n);if(t===Tr.month)return e.startOfMonth(n);if(t===Tr.day)return e.startOfDay(n);let r=n;return t{let i=o?o():gs(t,n,f1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=gs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=gs(t,n,e.maxDate));const a=hF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=gs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ou(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=gs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ou(t,i,e.maxTime))),i},p1=(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}},PF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vd=(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))},h1=(e,t,n,r)=>{switch(n){case"month":return Zm(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Vd(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[]}},w0="s",EF=["0","1","2","3","4","5","6","7","8","9"],MF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),w0)==="0"?EF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),w0))},Si=(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("")},ng=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),C0=(e,t)=>{const n=Si(e,t);return n!==" "&&!Number.isNaN(Number(n))},m1=(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=m1(i,o.maxLength)),ng(i,r)},RF=(e,t,n,r,o,i,a,s)=>{const l=PF(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const y=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),x=v=>g1(e,v,y,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(Si(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=y.minimum:m=y.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>y.maximum?x(y.minimum+(m-y.maximum-1)%(y.maximum-y.minimum+1)):m{const y=h1(e,t,n.type,n.format);if(y.length===0)return n.value;if(d)return l>0||c?y[0]:y[y.length-1];const p=((y.indexOf(n.value)+l)%y.length+y.length)%y.length;return y[p]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():g()},rg=(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(Si(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},k0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),y1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,v1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return y1(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")}},TF=(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(""),IF=(e,t,n)=>{const o=e.map(i=>{const a=rg(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},OF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=Zm(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:y1(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=Vd(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 Si(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Si(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=Vd(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}},P0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},E0=(e,t,n,r,o)=>[...n].sort((i,a)=>P0[i.type]-P0[a.type]).reduce((i,a)=>!o||a.modified?$F(e,a,t,i):i,r),AF=()=>navigator.userAgent.toLowerCase().includes("android"),LF=(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]}},oh=(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},jF=(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}},NF=(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}},FF=["value","referenceDate"],Vr={emptyValue:null,getTodayValue:f1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,FF);return t!=null&&r.utils.isValid(t)?t:n??kF(r)},cleanValue:xF,areValuesEqual:SF,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)},BF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:DF,getV6InputValueFromSections:IF,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 _F(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const zF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Mn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Mn(t.shadowRoot):t:null},VF="@media (pointer: fine)";function WF(e){return ye("MuiPickersDay",e)}const Yo=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),UF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],HF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ve({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},WF,l)},x1=({theme:e})=>_({},e.typography.caption,{width:kl,height:kl,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})`:Be(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Yo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Yo.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}},[`&.${Yo.disabled}:not(.${Yo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yo.disabled}&.${Yo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${_d}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Yo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),S1=(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]},YF=K(Ma,{name:"MuiPickersDay",slot:"Root",overridesResolver:S1})(x1),KF=K("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:S1})(({theme:e})=>_({},x1({theme:e}),{opacity:0,pointerEvents:"none"})),ys=()=>{},GF=h.forwardRef(function(t,n){const r=mt({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:g=ys,onBlur:y=ys,onKeyDown:x=ys,onMouseDown:C=ys,onMouseEnter:p=ys,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:S=!1,children:P,today:k=!1}=r,M=Ae(r,UF),E=_({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:S,today:k}),$=HF(E),b=gt(),R=h.useRef(null),A=He(R,n);Vt(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=I=>{C(I),m&&I.preventDefault()},O=I=>{s||f(a),m&&I.currentTarget.focus(),d&&d(I)};return m&&!S?w.jsx(KF,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:E,role:M.role}):w.jsx(YF,_({className:pe($.root,i),ref:A,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:I=>x(I,a),onFocus:I=>g(I,a),onBlur:I=>y(I,a),onMouseEnter:I=>p(I,a),onClick:O,onMouseDown:j},M,{ownerState:E,children:P||b.format(a,"dayOfMonth")}))}),QF=h.memo(GF),Ul=({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=tr(r.utils,e.minDate,r.defaultDates.minDate),d=tr(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}};Ul.valueManager=Vr;const b1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qF=["minDateTime","maxDateTime"],ZF=[...b1,...XF,...qF],w1=e=>ZF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function C1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Mi(),s=h.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);h.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 JF=({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},e5=({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},t5=(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}},n5=({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=p1(e,a),c=v1(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):"",g=null;if(u)if(c)g=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`);g=l.maxLength,d&&(f=ng(m1(Si(f,o),g),o))}return _({},l,{format:a,maxLength:g,value:f,placeholder:t5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},r5=e=>{var g;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((y,x)=>x.length-y.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=y=>r.find(x=>x.start<=y&&x.end>=y);let f=0;for(;f0;){const m=u.exec(p)[1];p=p.slice(m.length),i.push(n5(_({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const p=n[f];x&&(y==null?void 0:y.start)===f||(y==null?void 0:y.end)===f||(i.length===0?a+=p:i[i.length-1].endSeparator+=p),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},o5=({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}),M0=e=>{let t=JF(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=e5(_({},e,{expandedFormat:t})),r=r5(_({},e,{expandedFormat:t,escapedParts:n}));return o5(_({},e,{sections:r}))},i5=e=>{const t=gt(),n=uo(),r=Mi(),o=rr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:g,format:y,formatDensity:x="dense",selectedSections:C,onSelectedSectionsChange:p,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:P,value:k,handleValueChange:M}=eg({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:g,valueManager:i}),E=h.useMemo(()=>MF(t),[t]),$=h.useMemo(()=>OF(t,E,P),[t,E,P]),b=h.useCallback((H,ae=null)=>a.getSectionsFromValue(t,H,ae,ie=>M0({utils:t,localeText:n,localizedDigits:E,format:y,date:ie,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,y,n,E,o,m,t,x,S]),[R,A]=h.useState(()=>{const H=b(k),ae={sections:H,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ie=CF(H),ee=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ie,timezone:P});return _({},ae,{referenceValue:ee})}),[j,O]=io({controlled:C,default:null,name:"useField",state:"selectedSections"}),I=H=>{O(H),p==null||p(H)},T=h.useMemo(()=>oh(j,R.sections),[j,R.sections]),N=T==="all"?0:T,D=({value:H,referenceValue:ae,sections:ie})=>{if(A(X=>_({},X,{sections:ie,value:H,referenceValue:ae,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,H))return;const ee={validationError:l({adapter:r,value:H,timezone:P,props:c})};M(H,ee)},L=(H,ae)=>{const ie=[...R.sections];return ie[H]=_({},ie[H],{value:ae,modified:!0}),ie},z=()=>{D({value:i.emptyValue,referenceValue:R.referenceValue,sections:b(i.emptyValue)})},V=()=>{if(N==null)return;const H=R.sections[N],ae=a.getActiveDateManager(t,R,H),ee=ae.getSections(R.sections).filter(W=>W.value!=="").length===(H.value===""?0:1),X=L(N,""),ne=ee?null:t.getInvalidDate(),oe=ae.getNewValuesFromNewActiveDate(ne);D(_({},oe,{sections:X}))},J=H=>{const ae=(X,ne)=>{const oe=t.parse(X,y);if(oe==null||!t.isValid(oe))return null;const W=M0({utils:t,localeText:n,localizedDigits:E,format:y,date:oe,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o});return E0(t,oe,W,ne,!1)},ie=a.parseValueStr(H,R.referenceValue,ae),ee=a.updateReferenceValue(t,ie,R.referenceValue);D({value:ie,referenceValue:ee,sections:b(ie,R.sections)})},ce=({activeSection:H,newSectionValue:ae,shouldGoToNextSection:ie})=>{ie&&N_({},Y,W,{sections:X,tempValueStrAndroid:null}))},se=H=>A(ae=>_({},ae,{tempValueStrAndroid:H}));return h.useEffect(()=>{const H=b(R.value);A(ae=>_({},ae,{sections:H}))},[y,t.locale,o]),h.useEffect(()=>{let H;i.areValuesEqual(t,R.value,k)?H=i.getTimezone(t,R.value)!==i.getTimezone(t,k):H=!0,H&&A(ae=>_({},ae,{value:k,referenceValue:a.updateReferenceValue(t,k,ae.referenceValue),sections:b(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:T,setSelectedSections:I,clearValue:z,clearActiveSection:V,updateSectionValue:ce,updateValueFromValueStr:J,setTempAndroidValueStr:se,getSectionsFromValue:b,sectionsValueBoundaries:$,localizedDigits:E,timezone:P}},a5=5e3,_i=e=>e.saveQuery!=null,s5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=gt(),[s,l]=h.useState(null),c=Se(()=>l(null));h.useEffect(()=>{var y;s!=null&&((y=e[s.sectionIndex])==null?void 0:y.type)!==s.sectionType&&c()},[e,s,c]),h.useEffect(()=>{if(s!=null){const y=setTimeout(()=>c(),a5);return()=>{clearTimeout(y)}}return()=>{}},[s,c]);const u=({keyPressed:y,sectionIndex:x},C,p)=>{const m=y.toLowerCase(),v=e[x];if(s!=null&&(!p||p(s.value))&&s.sectionIndex===x){const P=`${s.value}${m}`,k=C(P,v);if(!_i(k))return l({sectionIndex:x,value:P,sectionType:v.type}),k}const S=C(m,v);return _i(S)&&!S.saveQuery?(c(),null):(l({sectionIndex:x,value:m,sectionType:v.type}),_i(S)?null:S)},d=y=>{const x=(m,v,S)=>{const P=v.filter(k=>k.toLowerCase().startsWith(S));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},C=(m,v,S,P)=>{const k=M=>h1(a,i,v.type,M);if(v.contentType==="letter")return x(v.format,k(v.format),m);if(S&&P!=null&&p1(a,S).contentType==="letter"){const M=k(S),E=x(S,M,m);return _i(E)?{saveQuery:!1}:_({},E,{sectionValue:P(E.sectionValue,M)})}return{saveQuery:!1}};return u(y,(m,v)=>{switch(v.type){case"month":{const S=P=>k0(a,P,a.formats.month,v.format);return C(m,v,a.formats.month,S)}case"weekDay":{const S=(P,k)=>k.indexOf(P).toString();return C(m,v,a.formats.weekday,S)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=y=>{const x=(p,m)=>{const v=Si(p,r),S=Number(v),P=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(S>P.maximum)return{saveQuery:!1};if(SP.maximum||v.length===P.maximum.toString().length;return{sectionValue:g1(a,S,P,r,m),shouldGoToNextSection:k}};return u(y,(p,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return x(p,m);if(m.type==="month"){const v=v1(a,"digit","month","MM"),S=x(p,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(_i(S))return S;const P=k0(a,S.sectionValue,"MM",m.format);return _({},S,{sectionValue:P})}if(m.type==="weekDay"){const v=x(p,m);if(_i(v))return v;const S=Vd(a,m.format)[Number(v.sectionValue)-1];return _({},v,{sectionValue:S})}return{saveQuery:!1}},p=>C0(p,r))};return{applyCharacterEditing:Se(y=>{const x=e[y.sectionIndex],p=C0(y.keyPressed,r)?f(_({},y,{keyPressed:ng(y.keyPressed,r)})):d(y);if(p==null){o(null);return}t({activeSection:x,newSectionValue:p.sectionValue,shouldGoToNextSection:p.shouldGoToNextSection})}),resetCharacterQuery:c}},l5=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:g,setSelectedSections:y,parsedSelectedSections:x,state:C,clearActiveSection:p,clearValue:m,updateSectionValue:v,updateValueFromValueStr:S,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,E=h.useRef(null),$=He(r,E),b=uo(),R=gt(),A=zo(),[j,O]=h.useState(!1),I=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!E.current)return;const F=document.getSelection();if(!F)return;if(x==null){F.rangeCount>0&&E.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&E.current.getRoot().blur();return}if(!E.current.getRoot().contains(Mn(document)))return;const Y=new window.Range;let G;x==="all"?G=E.current.getRoot():C.sections[x].type==="empty"?G=E.current.getSectionContainer(x):G=E.current.getSectionContent(x),Y.selectNodeContents(G),G.focus(),F.removeAllRanges(),F.addRange(Y)},getActiveSectionIndexFromDOM:()=>{const F=Mn(document);return!F||!E.current||!E.current.getRoot().contains(F)?null:E.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!E.current)return;const Y=oh(F,C.sections);O(!0),E.current.getSectionContent(Y).focus()},setSelectedSections:F=>{if(!E.current)return;const Y=oh(F,C.sections);O((Y==="all"?0:Y)!==null),y(F)},isFieldFocused:()=>{const F=Mn(document);return!!E.current&&E.current.getRoot().contains(F)}}),[x,y,C.sections,j]),T=Se(F=>{if(!E.current)return;const Y=C.sections[F];E.current.getSectionContent(F).innerHTML=Y.value||Y.placeholder,I.syncSelectionToDOM()}),N=Se((F,...Y)=>{F.isDefaultPrevented()||!E.current||(O(!0),i==null||i(F,...Y),x==="all"?setTimeout(()=>{const G=document.getSelection().getRangeAt(0).startOffset;if(G===0){y(P.startIndex);return}let te=0,ue=0;for(;ue{if(s==null||s(F),!E.current||x!=="all")return;const G=F.target.textContent??"";E.current.getRoot().innerHTML=C.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),I.syncSelectionToDOM(),G.length===0||G.charCodeAt(0)===10?(g(),m(),y("all")):G.length>1?S(G):f({keyPressed:G,sectionIndex:0})}),L=Se(F=>{if(l==null||l(F),n||x!=="all"){F.preventDefault();return}const Y=F.clipboardData.getData("text");F.preventDefault(),g(),S(Y)}),z=Se((...F)=>{if(a==null||a(...F),j||!E.current)return;O(!0),E.current.getSectionIndexFromDOMElement(Mn(document))!=null||y(P.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!E.current)return;const Y=Mn(document);!E.current.getRoot().contains(Y)&&(O(!1),y(null))})}),J=Se(F=>Y=>{Y.isDefaultPrevented()||y(F)}),ce=Se(F=>{F.preventDefault()}),se=Se(F=>()=>{y(F)}),H=Se(F=>{if(F.preventDefault(),n||t||typeof x!="number")return;const Y=C.sections[x],G=F.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(G),ue=/^[0-9]+$/.test(G),Z=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(G);Y.contentType==="letter"&&te||Y.contentType==="digit"&&ue||Y.contentType==="digit-with-letter"&&Z?(g(),v({activeSection:Y,newSectionValue:G,shouldGoToNextSection:!0})):!te&&!ue&&(g(),S(G))}),ae=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ie=Se(F=>{if(!E.current)return;const Y=F.target,G=Y.textContent??"",te=E.current.getSectionIndexFromDOMElement(Y),ue=C.sections[te];if(n||!E.current){T(te);return}if(G.length===0){if(ue.value===""){T(te);return}const Z=F.nativeEvent.inputType;if(Z==="insertParagraph"||Z==="insertLineBreak"){T(te);return}g(),p();return}f({keyPressed:G,sectionIndex:te}),T(te)});Vt(()=>{if(!(!j||!E.current)){if(x==="all")E.current.getRoot().focus();else if(typeof x=="number"){const F=E.current.getSectionContent(x);F&&F.focus()}}},[x,j]);const ee=h.useMemo(()=>C.sections.reduce((F,Y)=>(F[Y.type]=M[Y.type]({currentDate:null,contentType:Y.contentType,format:Y.format}),F),{}),[M,C.sections]),X=x==="all",ne=h.useMemo(()=>C.sections.map((F,Y)=>{const G=!X&&!t&&!n;return{container:{"data-sectionindex":Y,onClick:J(Y)},content:{tabIndex:X||Y>0?-1:0,contentEditable:!X&&!t&&!n,role:"spinbutton",id:`${A}-${F.type}`,"aria-labelledby":`${A}-${F.type}`,"aria-readonly":n,"aria-valuenow":NF(F,R),"aria-valuemin":ee[F.type].minimum,"aria-valuemax":ee[F.type].maximum,"aria-valuetext":F.value?jF(F,R):b.empty,"aria-label":b[F.type],"aria-disabled":t,spellCheck:G?!1:void 0,autoCapitalize:G?"off":void 0,autoCorrect:G?"off":void 0,[parseInt(h.version,10)>=17?"enterKeyHint":"enterkeyhint"]:G?"next":void 0,children:F.value||F.placeholder,onInput:ie,onPaste:H,onFocus:se(Y),onDragOver:ae,onMouseUp:ce,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,se,H,ae,ie,J,ce,t,n,X,b,R,ee,A]),oe=Se(F=>{S(F.target.value)}),W=h.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return h.useEffect(()=>{if(E.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&&E.current&&E.current.getSectionContent(P.startIndex).focus()},[]),{interactions:I,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:z,onInput:D,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:ne,tabIndex:x===0?-1:0,contentEditable:X,value:W,onChange:oe,areAllSectionsEmpty:k}}},ea=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),c5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=rr(),n=h.useRef(),r=h.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:g,state:y,fieldValueManager:x,valueManager:C,applyCharacterEditing:p,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:S,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:E,getSectionsFromValue:$,areAllSectionsEmpty:b,localizedDigits:R}=e,A=h.useRef(null),j=He(l,A),O=h.useMemo(()=>c5(y.sections,R,t),[y.sections,R,t]),I=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;if(f==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==Mn(document))return;const ie=A.current.scrollTop;if(f==="all")A.current.select();else{const ee=O[f],X=ee.type==="empty"?ee.startInInput-ee.startSeparator.length:ee.startInInput,ne=ee.type==="empty"?ee.endInInput+ee.endSeparator.length:ee.endInInput;(X!==A.current.selectionStart||ne!==A.current.selectionEnd)&&A.current===Mn(document)&&A.current.setSelectionRange(X,ne),clearTimeout(r.current),r.current=setTimeout(()=>{A.current&&A.current===Mn(document)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==X||A.current.selectionEnd!==ne)&&I.syncSelectionToDOM()})}A.current.scrollTop=ie},getActiveSectionIndexFromDOM:()=>{const ie=A.current.selectionStart??0,ee=A.current.selectionEnd??0;if(ie===0&&ee===0)return null;const X=ie<=O[0].startInInput?1:O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);return X===-1?O.length-1:X-1},focusField:(ie=0)=>{var ee;(ee=A.current)==null||ee.focus(),E(ie)},setSelectedSections:ie=>E(ie),isFieldFocused:()=>A.current===Mn(document)}),[A,f,O,E]),T=()=>{const ie=A.current.selectionStart??0;let ee;ie<=O[0].startInInput||ie>=O[O.length-1].endInInput?ee=1:ee=O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);const X=ee===-1?O.length-1:ee-1;E(X)},N=Se((...ie)=>{o==null||o(...ie);const ee=A.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ee||ee!==A.current||g==null&&(ee.value.length&&Number(ee.selectionEnd)-Number(ee.selectionStart)===ee.value.length?E("all"):T())})}),D=Se((ie,...ee)=>{ie.isDefaultPrevented()||(i==null||i(ie,...ee),T())}),L=Se(ie=>{if(a==null||a(ie),ie.preventDefault(),u||d)return;const ee=ie.clipboardData.getData("text");if(typeof f=="number"){const X=y.sections[f],ne=/^[a-zA-Z]+$/.test(ee),oe=/^[0-9]+$/.test(ee),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ee);if(X.contentType==="letter"&&ne||X.contentType==="digit"&&oe||X.contentType==="digit-with-letter"&&W){m(),v({activeSection:X,newSectionValue:ee,shouldGoToNextSection:!0});return}if(ne||oe)return}m(),S(ee)}),z=Se((...ie)=>{s==null||s(...ie),E(null)}),V=Se(ie=>{if(u)return;const ee=ie.target.value;if(ee===""){m(),k();return}const X=ie.nativeEvent.data,ne=X&&X.length>1,oe=ne?X:ee,W=ea(oe);if(g==null||ne){S(ne?X:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const Y=ea(x.getV6InputValueFromSections(O,R,t));let G=-1,te=-1;for(let ge=0;geue.end)return;const fe=W.length-Y.length+ue.end-ea(ue.endSeparator||"").length;F=W.slice(ue.start+ea(ue.startSeparator||"").length,fe)}if(F.length===0){AF()&&M(oe),m(),P();return}p({keyPressed:F,sectionIndex:g})}),J=h.useMemo(()=>c!==void 0?c:x.getV6InputValueFromSections($(C.emptyValue),R,t),[c,x,$,C.emptyValue,R,t]),ce=h.useMemo(()=>y.tempValueStrAndroid??x.getV6InputValueFromSections(y.sections,R,t),[y.sections,x,y.tempValueStrAndroid,R,t]);h.useEffect(()=>(A.current&&A.current===Mn(document)&&E("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const se=h.useMemo(()=>g==null||y.sections[g].contentType==="letter"?"text":"numeric",[g,y.sections]),ae=!(A.current&&A.current===Mn(document))&&b;return{interactions:I,returnedValue:{readOnly:u,onBlur:z,onClick:D,onFocus:N,onPaste:L,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:se,autoComplete:"off",value:ae?"":ce,onChange:V}}},d5=e=>{const t=gt(),{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:g,validator:y}=e,x=rr(),C=i5(e),{state:p,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:S,clearValue:P,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:E,sectionsValueBoundaries:$,localizedDigits:b,timezone:R}=C,A=s5({sections:p.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:b,setTempAndroidValueStr:E,timezone:R}),{resetCharacterQuery:j}=A,O=g.areValuesEqual(t,p.value,g.emptyValue),I=i?l5:u5,T=h.useMemo(()=>LF(p.sections,x&&!i),[p.sections,x,i]),{returnedValue:N,interactions:D}=I(_({},e,C,A,{areAllSectionsEmpty:O,sectionOrder:T})),L=Se(H=>{if(l==null||l(H),!a)switch(!0){case((H.ctrlKey||H.metaKey)&&String.fromCharCode(H.keyCode)==="A"&&!H.shiftKey&&!H.altKey):{H.preventDefault(),S("all");break}case H.key==="ArrowRight":{if(H.preventDefault(),v==null)S(T.startIndex);else if(v==="all")S(T.endIndex);else{const ae=T.neighbors[v].rightIndex;ae!==null&&S(ae)}break}case H.key==="ArrowLeft":{if(H.preventDefault(),v==null)S(T.endIndex);else if(v==="all")S(T.startIndex);else{const ae=T.neighbors[v].leftIndex;ae!==null&&S(ae)}break}case H.key==="Delete":{if(H.preventDefault(),s)break;v==null||v==="all"?P():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(H.key):{if(H.preventDefault(),s||m==null)break;const ae=p.sections[m],ie=f.getActiveDateManager(t,p,ae),ee=RF(t,R,ae,H.key,$,b,ie.date,{minutesStep:o});M({activeSection:ae,newSectionValue:ee,shouldGoToNextSection:!1});break}}});Vt(()=>{D.syncSelectionToDOM()});const{hasValidationError:z}=C1({props:n,validator:y,timezone:R,value:p.value,onError:n.onError}),V=h.useMemo(()=>c!==void 0?c:z,[z,c]);h.useEffect(()=>{!V&&m==null&&j()},[p.referenceValue,m,V]),h.useEffect(()=>{p.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[p.sections]),h.useImperativeHandle(r,()=>({getSections:()=>p.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused}));const J=Se((H,...ae)=>{H.preventDefault(),d==null||d(H,...ae),P(),D.isFieldFocused()?S(T.startIndex):D.focusField(0)}),ce={onKeyDown:L,onClear:J,error:V,clearable:!!(u&&!O&&!s&&!a)},se={disabled:a,readOnly:s};return _({},e.forwardedProps,ce,se,N)},f5=["clearable","onClear","InputProps","sx","slots","slotProps"],p5=["ownerState"],h5=e=>{const t=uo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,f5),c=(a==null?void 0:a.clearButton)??Wa,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,p5),f=(a==null?void 0:a.clearIcon)??nF,g=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return _({},l,{InputProps:_({},o,{endAdornment:w.jsxs(h.Fragment,{children:[n&&w.jsx(hw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:w.jsx(c,_({},d,{onClick:r,children:w.jsx(f,_({fontSize:"small"},g))}))}),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]]})},m5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],g5=(e,t)=>h.useMemo(()=>{const n=_({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return m5.forEach(o),b1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),y5=h.createContext(null);function k1(e){const{contextValue:t,localeText:n,children:r}=e;return w.jsx(y5.Provider,{value:t,children:w.jsx(l1,{localeText:n,children:r})})}const v5=e=>{const t=gt(),n=Wl();return _({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:tr(t,e.minDate,n.minDate),maxDate:tr(t,e.maxDate,n.maxDate)})},x5=e=>{const t=v5(e),{forwardedProps:n,internalProps:r}=g5(t,"date");return d5({forwardedProps:n,internalProps:r,valueManager:Vr,fieldValueManager:BF,validator:Ul,valueType:"date"})};function S5(e){return ye("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function b5(e){return ye("MuiPickersInputBase",e)}const fa=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function w5(e){return ye("MuiPickersSectionList",e)}const vs=me("MuiPickersSectionList",["root","section","sectionContent"]),C5=["slots","slotProps","elements","sectionListRef"],P1=K("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),E1=K("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),M1=K("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),R1=K("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),k5=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},w5,t)};function P5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??E1,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)??R1,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)??M1,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 w.jsxs(i,_({},a,{children:[w.jsx(c,_({},u)),w.jsx(s,_({},l)),w.jsx(c,_({},d))]}))}const E5=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,C5),c=k5(r),u=h.useRef(null),d=He(n,u),f=x=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`);return u.current};h.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(x){return f("getSectionContainer").querySelector(`.${vs.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return f("getSectionContent").querySelector(`.${vs.section}[data-sectionindex="${x}"] .${vs.sectionContent}`)},getSectionIndexFromDOMElement(x){const C=f("getSectionIndexFromDOMElement");if(x==null||!C.contains(x))return null;let p=null;return x.classList.contains(vs.section)?p=x:x.classList.contains(vs.sectionContent)&&(p=x.parentElement),p==null?null:Number(p.dataset.sectionindex)}}));const g=(o==null?void 0:o.root)??P1,y=Qe({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return w.jsx(g,_({},y,{children:y.contentEditable?a.map(({content:x,before:C,after:p})=>`${C.children}${x.children}${p.children}`).join(""):w.jsx(h.Fragment,{children:a.map((x,C)=>w.jsx(P5,{slots:o,slotProps:i,element:x,classes:c},C))})}))}),M5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],R5=e=>Math.round(e*1e5)/1e5,Wd=K("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:`${R5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),og=K(P1,{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}}]})),T5=K(E1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),D5=K(R1,{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"})),I5=K(M1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),O5=K("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(_({},rR)),$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${le(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,b5,o)},ig=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:g,contentEditable:y,tabIndex:x,onInput:C,onPaste:p,onKeyDown:m,name:v,readOnly:S,inputProps:P,inputRef:k,sectionListRef:M}=r,E=Ae(r,M5),$=h.useRef(null),b=He(n,$),R=He(P==null?void 0:P.ref,k),A=rr(),j=xr();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)};h.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),h.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const I=_({},r,j,{isRtl:A}),T=$5(I),N=(f==null?void 0:f.root)||Wd,D=Qe({elementType:N,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:E,additionalProps:{"aria-invalid":j.error,ref:b},className:T.root,ownerState:I}),L=(f==null?void 0:f.input)||og;return w.jsxs(N,_({},D,{children:[u,w.jsx(E5,{sectionListRef:M,elements:o,contentEditable:y,tabIndex:x,className:T.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:p,onKeyDown:m,slots:{root:L,section:T5,sectionContent:D5,sectionSeparator:I5},slotProps:{root:{ownerState:I},sectionContent:{className:fa.sectionContent},sectionSeparator:({position:z})=>({className:z==="before"?fa.sectionBefore:fa.sectionAfter})}}),c,d?d(_({},j)):null,w.jsx(O5,_({name:v,className:T.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:j.required,disabled:j.disabled},P,{ref:R}))]}))});function A5(e){return ye("MuiPickersOutlinedInput",e)}const sr=_({},fa,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),L5=["children","className","label","notched","shrink"],j5=K("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}}),R0=K("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),N5=K("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 F5(e){const{className:t,label:n}=e,r=Ae(e,L5),o=n!=null&&n!=="",i=_({},e,{withLabel:o});return w.jsx(j5,_({"aria-hidden":!0,className:t},r,{ownerState:i,children:w.jsx(N5,{ownerState:i,children:o?w.jsx(R0,{children:n}):w.jsx(R0,{className:"notranslate",children:"​"})})}))}const B5=["label","autoFocus","ownerState","notched"],_5=K(Wd,{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 .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sr.focused} .${sr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${sr.disabled}`]:{[`& .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${sr.error} .${sr.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:{[`&.${sr.focused}:not(.${sr.error}) .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),z5=K(og,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),V5=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},A5,t);return _({},t,r)},T1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,B5),l=xr(),c=_({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=V5(c);return w.jsx(ig,_({slots:{root:_5,input:z5},renderSuffix:d=>w.jsx(F5,{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)?w.jsxs(h.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});T1.muiName="Input";function W5(e){return ye("MuiPickersFilledInput",e)}const Ko=_({},fa,me("MuiPickersFilledInput",["root","underline","input"])),U5=["label","autoFocus","disableUnderline","ownerState"],H5=K(Wd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_c(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}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ko.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"},[`&.${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"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),Y5=K(og,{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}}]}),K5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},W5,t);return _({},t,o)},D1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,U5),l=xr(),c=_({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=K5(c);return w.jsx(ig,_({slots:{root:H5,input:Y5},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});D1.muiName="Input";function G5(e){return ye("MuiPickersFilledInput",e)}const xs=_({},fa,me("MuiPickersInput",["root","input"])),Q5=["label","autoFocus","disableUnderline","ownerState"],X5=K(Wd,{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"},[`&.${xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xs.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(.${xs.disabled}, .${xs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${xs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),q5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},G5,t);return _({},t,o)},I1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Q5),l=xr(),c=_({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=q5(c);return w.jsx(ig,_({slots:{root:X5}},s,{label:o,classes:u,ref:n}))});I1.muiName="Input";const Z5=["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"],J5={standard:I1,filled:D1,outlined:T1},eB=K($o,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},S5,r)},nB=h.forwardRef(function(t,n){const r=mt({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:g,inputRef:y,sectionListRef:x,elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onPaste:P,onInput:k,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:b,focused:R,value:A,onChange:j,fullWidth:O,id:I,name:T,helperText:N,FormHelperTextProps:D,label:L,InputLabelProps:z}=r,V=Ae(r,Z5),J=h.useRef(null),ce=He(n,J),se=zo(I),H=N&&se?`${se}-helper-text`:void 0,ae=L&&se?`${se}-label`:void 0,ie=_({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),ee=tB(ie),X=J5[u];return w.jsxs(eB,_({className:pe(ee.root,a),ref:ce,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ie},V,{children:[w.jsx($m,_({htmlFor:se,id:ae},z,{children:L})),w.jsx(X,_({elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onInput:k,onPaste:P,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:b,value:A,onChange:j,id:se,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:x,label:L,name:T,role:"group","aria-labelledby":ae},f)),N&&w.jsx(pw,_({id:H},D,{children:N}))]}))}),rB=["enableAccessibleFieldDOMStructure"],oB=["InputProps","readOnly"],iB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],aB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,rB);if(t){const{InputProps:d,readOnly:f}=n,g=Ae(n,oB);return _({},g,{InputProps:_({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,iB);return _({},u,{InputProps:_({},s??{},{readOnly:a}),inputProps:_({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},sB=["slots","slotProps","InputProps","inputProps"],O1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,sB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?nB:Fr),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=x5(d),g=aB(f),y=h5(_({},g,{slots:o,slotProps:i}));return w.jsx(u,_({},y))}),$1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Mi();return h.useCallback(c=>Ul({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])},lB=(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")}},cB=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=gt(),g=h.useRef(lB(!!c,i,f)).current,y=h.useMemo(()=>Vr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Tr.day}),[n,d]),[x,C]=h.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:f.startOfMonth(y),slideDirection:"left"});h.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(y)})},[y,f]);const p=h.useCallback(k=>{C(_({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=h.useCallback(k=>{const M=k;f.isSameMonth(M,x.currentMonth)||p({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,x.currentMonth)?"left":"right"})},[x.currentMonth,p,f]),v=$1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),S=h.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),P=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:y,calendarState:x,changeMonth:m,changeFocusedDay:P,isDateDisabled:v,onMonthSwitchingAnimationEnd:S,handleChangeMonth:p}},uB=e=>ye("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const dB=e=>{const{classes:t}=e;return ve({root:["root"]},uB,t)},fB=K(Ll,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function A1(e){const t=mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=dB(t),s=vr();return o?n:w.jsx(fB,{className:pe(a.root,r),children:w.jsx(Ha,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const pB=e=>ye("MuiPickersSlideTransition",e),Vn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),hB=["children","className","reduceAnimations","slideDirection","transKey","classes"],mB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,pB,t)},gB=K(Ll,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Vn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Vn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Vn.slideEnterActive}`]:t.slideEnterActive},{[`.${Vn.slideExit}`]:t.slideExit},{[`.${Vn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Vn["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},[`& .${Vn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Vn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Vn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Vn.slideExit}`]:{transform:"translate(0%)"},[`& .${Vn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Vn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function yB(e){const t=mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,hB),s=mB(t),l=vr();if(o)return w.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return w.jsx(gB,{className:pe(s.root,r),childFactory:u=>h.cloneElement(u,{classNames:c}),role:"presentation",children:w.jsx(bm,_({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const vB=e=>ye("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const xB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],SB=["ownerState"],bB=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},vB,t)},L1=(kl+_d*2)*6,wB=K("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CB=K("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),kB=K(Ye,{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})),PB=K(Ye,{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})),EB=K(Ye,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>_({},e.typography.caption,{width:kl,height:kl,padding:0,margin:`0 ${_d}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),MB=K("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:L1}),RB=K(yB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:L1}),TB=K("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),DB=K("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${_d}px 0`,display:"flex",justifyContent:"center"});function IB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,xB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:g,slotProps:y,timezone:x}=t,C=gt(),p=Bd(x),m=r!==null&&C.isSameDay(n,r),v=o.some(A=>C.isSameDay(A,n)),S=C.isSameDay(n,p),P=(g==null?void 0:g.day)??QF,k=Qe({elementType:P,externalSlotProps:y==null?void 0:y.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,SB),E=h.useMemo(()=>c||i(n),[c,i,n]),$=h.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),b=h.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=h.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 w.jsx(P,_({},M,{day:n,disabled:E,autoFocus:s&&m,today:S,outsideCurrentMonth:$,isFirstVisibleCell:b,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":S?"date":void 0}))}function OB(e){const t=mt({props:e,name:"MuiDayCalendar"}),n=gt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:g=()=>w.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:x,disablePast:C,disableFuture:p,minDate:m,maxDate:v,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:M=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:$,gridLabelId:b,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:j,timezone:O}=t,I=Bd(O),T=bB(t),N=rr(),D=$1({shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:p,timezone:O}),L=uo(),[z,V]=io({name:"DayCalendar",state:"hasFocus",controlled:E,default:j??!1}),[J,ce]=h.useState(()=>s||I),se=Se(te=>{d||c(te)}),H=te=>{D(te)||(r(te),ce(te),$==null||$(!0),V(!0))},ae=Se((te,ue)=>{switch(te.key){case"ArrowUp":H(n.addDays(ue,-7)),te.preventDefault();break;case"ArrowDown":H(n.addDays(ue,7)),te.preventDefault();break;case"ArrowLeft":{const Z=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ge=Hs({utils:n,date:Z,minDate:N?Z:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):Z,isDateDisabled:D,timezone:O});H(ge||Z),te.preventDefault();break}case"ArrowRight":{const Z=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ge=Hs({utils:n,date:Z,minDate:N?n.startOfMonth(fe):Z,maxDate:N?Z:n.endOfMonth(fe),isDateDisabled:D,timezone:O});H(ge||Z),te.preventDefault();break}case"Home":H(n.startOfWeek(ue)),te.preventDefault();break;case"End":H(n.endOfWeek(ue)),te.preventDefault();break;case"PageUp":H(n.addMonths(ue,1)),te.preventDefault();break;case"PageDown":H(n.addMonths(ue,-1)),te.preventDefault();break}}),ie=Se((te,ue)=>H(ue)),ee=Se((te,ue)=>{z&&n.isSameDay(J,ue)&&($==null||$(!1))}),X=n.getMonth(i),ne=n.getYear(i),oe=h.useMemo(()=>a.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,a]),W=`${ne}-${X}`,F=h.useMemo(()=>h.createRef(),[W]),Y=h.useMemo(()=>{const te=n.startOfMonth(i),ue=n.endOfMonth(i);return D(J)||n.isAfterDay(J,ue)||n.isBeforeDay(J,te)?Hs({utils:n,date:J,minDate:te,maxDate:ue,disablePast:C,disableFuture:p,isDateDisabled:D,timezone:O}):J},[i,p,C,J,D,n,O]),G=h.useMemo(()=>{const te=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;A&&te.length{te.lengthw.jsx(kB,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:T.weekDayLabel,children:M(te)},ue.toString()))]}),l?w.jsx(MB,{className:T.loadingContainer,children:g()}):w.jsx(RB,_({transKey:W,onExited:u,reduceAnimations:f,slideDirection:y,className:pe(o,T.slideTransition)},x,{nodeRef:F,children:w.jsx(TB,{ref:F,role:"rowgroup",className:T.monthContainer,children:G.map((te,ue)=>w.jsxs(DB,{role:"row",className:T.weekContainer,"aria-rowindex":ue+1,children:[R&&w.jsx(EB,{className:T.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:L.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((Z,fe)=>w.jsx(IB,{parentProps:t,day:Z,selectedDays:oe,focusableDay:Y,onKeyDown:ae,onFocus:ie,onBlur:ee,onDaySelect:se,isDateDisabled:D,currentMonthNumber:X,isViewFocused:z,"aria-colindex":fe+1},Z.toString()))]},`week-${te[0]}`))})}))]})}function $B(e){return ye("MuiPickersMonth",e)}const Cc=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),AB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],LB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},$B,r)},jB=K("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%"}}]}),NB=K("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cc.disabled}`]:t.disabled},{[`&.${Cc.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})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FB=h.memo(function(t){const n=mt({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:g,"aria-current":y,"aria-label":x,slots:C,slotProps:p}=n,m=Ae(n,AB),v=h.useRef(null),S=LB(n);Vt(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const P=(C==null?void 0:C.monthButton)??NB,k=Qe({elementType:P,externalSlotProps:p==null?void 0:p.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":y,"aria-checked":s,"aria-label":x,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>g(M,l)},ownerState:n,className:S.monthButton});return w.jsx(jB,_({className:pe(S.root,o),ownerState:n},m,{children:w.jsx(P,_({},k))}))});function BB(e){return ye("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const _B=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],zB=e=>{const{classes:t}=e;return ve({root:["root"]},BB,t)};function VB(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return _({disableFuture:!1,disablePast:!1},o,{minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate)})}const WB=K("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zd,boxSizing:"border-box"}),UB=h.forwardRef(function(t,n){const r=VB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:g,shouldDisableMonth:y,readOnly:x,autoFocus:C=!1,onMonthFocus:p,hasFocus:m,onFocusedViewChange:v,monthsPerRow:S=3,timezone:P,gridLabelId:k,slots:M,slotProps:E}=r,$=Ae(r,_B),{value:b,handleValueChange:R,timezone:A}=tg({name:"MonthCalendar",timezone:P,value:i,defaultValue:a,referenceDate:s,onChange:g,valueManager:Vr}),j=Bd(A),O=rr(),I=gt(),T=h.useMemo(()=>Vr.getInitialReferenceValue({value:b,utils:I,props:r,timezone:A,referenceDate:s,granularity:Tr.month}),[]),N=r,D=zB(N),L=h.useMemo(()=>I.getMonth(j),[I,j]),z=h.useMemo(()=>b!=null?I.getMonth(b):null,[b,I]),[V,J]=h.useState(()=>z||I.getMonth(T)),[ce,se]=io({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),H=Se(W=>{se(W),v&&v(W)}),ae=h.useCallback(W=>{const F=I.startOfMonth(u&&I.isAfter(j,f)?j:f),Y=I.startOfMonth(c&&I.isBefore(j,d)?j:d),G=I.startOfMonth(W);return I.isBefore(G,F)||I.isAfter(G,Y)?!0:y?y(G):!1},[c,u,d,f,j,y,I]),ie=Se((W,F)=>{if(x)return;const Y=I.setMonth(b??T,F);R(Y)}),ee=Se(W=>{ae(I.setMonth(b??T,W))||(J(W),H(!0),p&&p(W))});h.useEffect(()=>{J(W=>z!==null&&W!==z?z:W)},[z]);const X=Se((W,F)=>{switch(W.key){case"ArrowUp":ee((12+F-3)%12),W.preventDefault();break;case"ArrowDown":ee((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":ee((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":ee((12+F+(O?-1:1))%12),W.preventDefault();break}}),ne=Se((W,F)=>{ee(F)}),oe=Se((W,F)=>{V===F&&H(!1)});return w.jsx(WB,_({ref:n,className:pe(D.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:Zm(I,b??T).map(W=>{const F=I.getMonth(W),Y=I.format(W,"monthShort"),G=I.format(W,"month"),te=F===z,ue=l||ae(W);return w.jsx(FB,{selected:te,value:F,onClick:ie,onKeyDown:X,autoFocus:ce&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:ne,onBlur:oe,"aria-current":L===F?"date":void 0,"aria-label":G,monthsPerRow:S,slots:M,slotProps:E,children:Y},Y)})}))});function HB(e){return ye("MuiPickersYear",e)}const kc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),YB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],KB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},HB,r)},GB=K("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%"}}]}),QB=K("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${kc.disabled}`]:t.disabled},{[`&.${kc.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})`:Be(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),XB=h.memo(function(t){const n=mt({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:g,"aria-current":y,slots:x,slotProps:C}=n,p=Ae(n,YB),m=h.useRef(null),v=KB(n);Vt(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const S=(x==null?void 0:x.yearButton)??QB,P=Qe({elementType:S,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":y,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>g(k,l)},ownerState:n,className:v.yearButton});return w.jsx(GB,_({className:pe(v.root,o),ownerState:n},p,{children:w.jsx(S,_({},P))}))});function qB(e){return ye("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const ZB=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],JB=e=>{const{classes:t}=e;return ve({root:["root"]},qB,t)};function e4(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return _({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate)})}const t4=K("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zd,maxHeight:yF,boxSizing:"border-box",position:"relative"}),n4=h.forwardRef(function(t,n){const r=e4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onChange:y,readOnly:x,shouldDisableYear:C,onYearFocus:p,hasFocus:m,onFocusedViewChange:v,yearsOrder:S="asc",yearsPerRow:P,timezone:k,gridLabelId:M,slots:E,slotProps:$}=r,b=Ae(r,ZB),{value:R,handleValueChange:A,timezone:j}=tg({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:y,valueManager:Vr}),O=Bd(j),I=rr(),T=gt(),N=h.useMemo(()=>Vr.getInitialReferenceValue({value:R,utils:T,props:r,timezone:j,referenceDate:l,granularity:Tr.year}),[]),D=r,L=JB(D),z=h.useMemo(()=>T.getYear(O),[T,O]),V=h.useMemo(()=>R!=null?T.getYear(R):null,[R,T]),[J,ce]=h.useState(()=>V||T.getYear(N)),[se,H]=io({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),ae=Se(Z=>{H(Z),v&&v(Z)}),ie=h.useCallback(Z=>{if(d&&T.isBeforeYear(Z,O)||u&&T.isAfterYear(Z,O)||g&&T.isBeforeYear(Z,g)||f&&T.isAfterYear(Z,f))return!0;if(!C)return!1;const fe=T.startOfYear(Z);return C(fe)},[u,d,f,g,O,C,T]),ee=Se((Z,fe)=>{if(x)return;const ge=T.setYear(R??N,fe);A(ge)}),X=Se(Z=>{ie(T.setYear(R??N,Z))||(ce(Z),ae(!0),p==null||p(Z))});h.useEffect(()=>{ce(Z=>V!==null&&Z!==V?V:Z)},[V]);const ne=S!=="desc"?P*1:P*-1,oe=I&&S==="asc"||!I&&S==="desc"?-1:1,W=Se((Z,fe)=>{switch(Z.key){case"ArrowUp":X(fe-ne),Z.preventDefault();break;case"ArrowDown":X(fe+ne),Z.preventDefault();break;case"ArrowLeft":X(fe-oe),Z.preventDefault();break;case"ArrowRight":X(fe+oe),Z.preventDefault();break}}),F=Se((Z,fe)=>{X(fe)}),Y=Se((Z,fe)=>{J===fe&&ae(!1)}),G=h.useRef(null),te=He(n,G);h.useEffect(()=>{if(o||G.current===null)return;const Z=G.current.querySelector('[tabindex="0"]');if(!Z)return;const fe=Z.offsetHeight,ge=Z.offsetTop,Le=G.current.clientHeight,xe=G.current.scrollTop,tt=ge+fe;fe>Le||ge{const fe=T.getYear(Z),ge=fe===V,Le=c||ie(Z);return w.jsx(XB,{selected:ge,value:fe,onClick:ee,onKeyDown:W,autoFocus:se&&fe===J,disabled:Le,tabIndex:fe===J&&!Le?0:-1,onFocus:F,onBlur:Y,"aria-current":z===fe?"date":void 0,yearsPerRow:P,slots:E,slotProps:$,children:T.format(Z,"year")},T.format(Z,"year"))})}))}),r4=e=>ye("MuiPickersCalendarHeader",e),o4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),i4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],a4=["ownerState"],s4=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},r4,t)},l4=K("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}),c4=K("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})),u4=K("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),d4=K(Wa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${o4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),f4=K(ZN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),p4=h.forwardRef(function(t,n){const r=uo(),o=gt(),i=mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onMonthChange:y,onViewChange:x,view:C,reduceAnimations:p,views:m,labelId:v,className:S,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,i4),E=i,$=s4(i),b=(a==null?void 0:a.switchViewButton)??d4,R=Qe({elementType:b,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:E,className:$.switchViewButton}),A=(a==null?void 0:a.switchViewIcon)??f4,j=Qe({elementType:A,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:E,className:$.switchViewIcon}),O=Ae(j,a4),I=()=>y(o.addMonths(l,1),"left"),T=()=>y(o.addMonths(l,-1),"right"),N=mF(l,{disableFuture:u,maxDate:f,timezone:P}),D=gF(l,{disablePast:d,minDate:g,timezone:P}),L=()=>{if(!(m.length===1||!x||c))if(m.length===2)x(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;x(m[V])}};if(m.length===1&&m[0]==="year")return null;const z=o.formatByString(l,k);return w.jsxs(l4,_({},M,{ownerState:E,className:pe($.root,S),ref:n,children:[w.jsxs(c4,{role:"presentation",onClick:L,ownerState:E,"aria-live":"polite",className:$.labelContainer,children:[w.jsx(A1,{reduceAnimations:p,transKey:z,children:w.jsx(u4,{id:v,ownerState:E,className:$.label,children:z})}),m.length>1&&!c&&w.jsx(b,_({},R,{children:w.jsx(A,_({},O))}))]}),w.jsx(Ha,{in:C==="day",children:w.jsx(uF,{slots:a,slotProps:s,onGoToPrevious:T,isPreviousDisabled:D,previousLabel:r.previousMonth,onGoToNext:I,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),h4="@media (prefers-reduced-motion: reduce)",pa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),T0=pa&&pa[1]?parseInt(pa[1],10):null,D0=pa&&pa[2]?parseInt(pa[2],10):null,m4=T0&&T0<10||D0&&D0<13||!1,j1=()=>Id(h4,{defaultMatches:!1})||m4,g4=e=>ye("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const y4=["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"],v4=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},g4,t)};function x4(e,t){const n=gt(),r=Wl(),o=j1(),i=mt({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??(()=>w.jsx("span",{children:"..."})),minDate:tr(n,i.minDate,r.minDate),maxDate:tr(n,i.maxDate,r.maxDate)})}const S4=K(vF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:qm}),b4=K(A1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),w4=h.forwardRef(function(t,n){const r=gt(),o=zo(),i=x4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:g,onYearChange:y,onMonthChange:x,reduceAnimations:C,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,view:S,views:P,openTo:k,className:M,disabled:E,readOnly:$,minDate:b,maxDate:R,disableHighlightToday:A,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:I,fixedWeekNumber:T,dayOfWeekFormatter:N,slots:D,slotProps:L,loading:z,renderLoading:V,displayWeekNumber:J,yearsOrder:ce,yearsPerRow:se,monthsPerRow:H,timezone:ae}=i,ie=Ae(i,y4),{value:ee,handleValueChange:X,timezone:ne}=tg({name:"DateCalendar",timezone:ae,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Vr}),{view:oe,setView:W,focusedView:F,setFocusedView:Y,goToNextView:G,setValueAndGoToNextView:te}=d1({view:S,views:P,openTo:k,onChange:X,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:Z,changeFocusedDay:fe,changeMonth:ge,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=cB({value:ee,referenceDate:u,reduceAnimations:C,onMonthChange:x,minDate:b,maxDate:R,shouldDisableDate:p,disablePast:f,disableFuture:d,timezone:ne}),Ee=E&&ee||b,_e=E&&ee||R,ct=`${o}-grid-label`,je=F!==null,Oe=(D==null?void 0:D.calendarHeader)??p4,ft=Qe({elementType:Oe,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:P,view:oe,currentMonth:Z.currentMonth,onViewChange:W,onMonthChange:(nt,fn)=>Le({newMonth:nt,direction:fn}),minDate:Ee,maxDate:_e,disabled:E,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:ne,labelId:ct},ownerState:i}),$t=Se(nt=>{const fn=r.startOfMonth(nt),Wr=r.endOfMonth(nt),br=xe(nt)?Hs({utils:r,date:nt,minDate:r.isBefore(b,fn)?fn:b,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),x==null||x(fn)):(G(),ge(fn)),fe(br,!0)}),Ne=Se(nt=>{const fn=r.startOfYear(nt),Wr=r.endOfYear(nt),br=xe(nt)?Hs({utils:r,date:nt,minDate:r.isBefore(b,fn)?fn:b,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),y==null||y(br)):(G(),ge(fn)),fe(br,!0)}),at=Se(nt=>X(nt&&Ou(r,nt,ee??ue),"finish",oe));h.useEffect(()=>{ee!=null&&r.isValid(ee)&&ge(ee)},[ee]);const zn=i,fo=v4(zn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:b},qe={disableHighlightToday:A,readOnly:$,disabled:E,timezone:ne,gridLabelId:ct,slots:D,slotProps:L},yt=h.useRef(oe);h.useEffect(()=>{yt.current!==oe&&(F===yt.current&&Y(oe,!0),yt.current=oe)},[F,Y,oe]);const Cn=h.useMemo(()=>[ee],[ee]);return w.jsxs(S4,_({ref:n,className:pe(fo.root,M),ownerState:zn},ie,{children:[w.jsx(Oe,_({},ft,{slots:D,slotProps:L})),w.jsx(b4,{reduceAnimations:C,className:fo.viewTransitionContainer,transKey:oe,ownerState:zn,children:w.jsxs("div",{children:[oe==="year"&&w.jsx(n4,_({},Me,qe,{value:ee,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>Y("year",nt),yearsOrder:ce,yearsPerRow:se,referenceDate:ue})),oe==="month"&&w.jsx(UB,_({},Me,qe,{hasFocus:je,className:M,value:ee,onChange:$t,shouldDisableMonth:m,onFocusedViewChange:nt=>Y("month",nt),monthsPerRow:H,referenceDate:ue})),oe==="day"&&w.jsx(OB,_({},Z,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:Cn,onSelectedDaysChange:at,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>Y("day",nt),showDaysOutsideCurrentMonth:I,fixedWeekNumber:T,dayOfWeekFormatter:N,displayWeekNumber:J,loading:z,renderLoading:V}))]})})]}))});function C4(e){return ye("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const k4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],P4=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},C4,t)},E4=K("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"}}]})),M4=K("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"}}]}),R4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,k4),u=r,d=P4(u);return s?null:w.jsxs(E4,_({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[w.jsx(Ye,{color:"text.secondary",variant:"overline",id:l,children:a}),w.jsx(M4,{className:d.content,ownerState:u,children:o})]}))});function T4(e){return ye("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const D4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],I4=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},T4,t)},O4=K(R4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$4=K(Ye,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),A4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,D4),d=gt(),f=uo(),g=I4(r),y=h.useMemo(()=>{if(!o)return s;const C=Jm(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),x=r;return w.jsx(O4,_({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(g.root,c)},u,{children:w.jsx($4,{variant:"h4",align:i?"left":"center",ownerState:x,className:g.title,children:y})}))});function N1(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t}),i=h.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},dF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate),slots:_({toolbar:A4},o.slots)})}function L4(e){return ye("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const j4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],N4=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},L4,t)},F4=K(Q2,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),B4=K(yr,{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 _4(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=zt(o.current);if(!o.current||"clientX"in l&&_4(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 h.useEffect(()=>{if(e){const l=zt(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]),h.useEffect(()=>{if(e){const l=zt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const V4=h.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,j4),d=_({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return w.jsx(n,_({},u,f,{onClick:g=>{var y;l(g),(y=f.onClick)==null||y.call(f,g)},onTouchStart:g=>{var y;c(g),(y=f.onTouchStart)==null||y.call(f,g)},ownerState:d,children:i}))});function W4(e){const t=mt({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:g}=t;h.useEffect(()=>{function I(T){l&&T.key==="Escape"&&s()}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[s,l]);const y=h.useRef(null);h.useEffect(()=>{c==="tooltip"||i&&!i()||(l?y.current=Mn(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[l,c,i]);const[x,C,p]=z4(l,a??s),m=h.useRef(null),v=He(m,o),S=He(v,x),P=t,k=N4(P),M=j1(),E=g??M,$=I=>{I.key==="Escape"&&(I.stopPropagation(),s())},b=(d==null?void 0:d.desktopTransition)??E?Ha:xl,R=(d==null?void 0:d.desktopTrapFocus)??uw,A=(d==null?void 0:d.desktopPaper)??B4,j=(d==null?void 0:d.popper)??F4,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 w.jsx(j,_({},O,{children:({TransitionProps:I,placement:T})=>w.jsx(R,_({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:w.jsx(b,_({},I,f==null?void 0:f.desktopTransition,{children:w.jsx(V4,{PaperComponent:A,ownerState:P,popperPlacement:T,ref:S,onPaperClick:C,onPaperTouchStart:p,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const U4=({open:e,onOpen:t,onClose:n})=>{const r=h.useRef(typeof e=="boolean").current,[o,i]=h.useState(!1);h.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=h.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},H4=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},Y4=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},K4=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},G4=({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}=h.useRef(l),{current:g}=h.useRef(s!==void 0),[y,x]=h.useState(u),C=gt(),p=Mi(),{isOpen:m,setIsOpen:v}=U4(e),{timezone:S,value:P,handleValueChange:k}=eg({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,E]=h.useState(()=>{let X;return P!==void 0?X=P:f!==void 0?X=f:X=t.emptyValue,{draft:X,lastPublishedValue:X,lastCommittedValue:X,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);y!==u&&(x(u),u&&$&&u!==$&&E(X=>_({},X,{draft:t.setTimezone(C,u,X.draft)})));const{getValidationErrorForNewValue:b}=C1({props:e,validator:o,timezone:S,value:M.draft,onError:e.onError}),R=Se(X=>{const ne={action:X,dateState:M,hasChanged:te=>!t.areValuesEqual(C,X.value,te),isControlled:g,closeOnSelect:c},oe=H4(ne),W=Y4(ne),F=K4(ne);E(te=>_({},te,{draft:X.value,lastPublishedValue:oe?X.value:te.lastPublishedValue,lastCommittedValue:W?X.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const G=()=>(Y||(Y={validationError:X.name==="setValueFromField"?X.context.validationError:b(X.value)},X.name==="setValueFromShortcut"&&(Y.shortcut=X.shortcut)),Y);oe&&k(X.value,G()),W&&i&&i(X.value,G()),F&&v(!1)});if(M.lastControlledValue!==s){const X=t.areValuesEqual(C,M.draft,P);E(ne=>_({},ne,{lastControlledValue:s},X?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,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"})}),I=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=Se(()=>{R({value:t.getTodayValue(C,S,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(X=>{X.preventDefault(),v(!0)}),D=Se(X=>{X==null||X.preventDefault(),v(!1)}),L=Se((X,ne="partial")=>R({name:"setValueFromView",value:X,selectionState:ne})),z=Se((X,ne,oe)=>R({name:"setValueFromShortcut",value:X,changeImportance:ne,shortcut:oe})),V=Se((X,ne)=>R({name:"setValueFromField",value:X,context:ne})),J={onClear:A,onAccept:j,onDismiss:O,onCancel:I,onSetToday:T,onOpen:N,onClose:D},ce={value:M.draft,onChange:V},se=h.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),H={value:se,onChange:L,onClose:D,open:m},ie=_({},J,{value:se,onChange:L,onSelectShortcut:z,isValid:X=>{const ne=o({adapter:p,value:X,timezone:S,props:e});return!t.hasError(ne)}}),ee=h.useMemo(()=>({onOpen:N,onClose:D,open:m}),[m,D,N]);return{open:m,fieldProps:ce,viewProps:H,layoutProps:ie,actions:J,contextValue:ee}},Q4=["className","sx"],X4=({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:g,timezone:y}=e,x=Ae(e,Q4),{view:C,setView:p,defaultView:m,focusedView:v,setFocusedView:S,setValueAndGoToNextView:P}=d1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=h.useMemo(()=>u.reduce((O,I)=>{let T;return g[I]!=null?T="UI":T="field",O.viewModeLookup[I]=T,T==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[g,u]),E=h.useMemo(()=>u.reduce((O,I)=>g[I]!=null&&pF(I)?O+1:O,0),[g,u]),$=M[C],b=Se(()=>$==="UI"),[R,A]=h.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&A(C),Vt(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,I;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(I=i==null?void 0:i.current)==null||I.focusField(C)}))},[C]),Vt(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&p(O),S(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:b,layoutProps:{views:u,view:R,onViewChange:p},renderCurrentView:()=>{if(R==null)return null;const O=g[R];if(O==null)return null;const I=_({},x,n,t,{views:u,timezone:y,onChange:P,view:R,onViewChange:p,focusedView:v,onFocusedViewChange:S,showViewSwitcher:E>1,timeViewsCount:E});return o?o(g,R,I):O(I)}}};function I0(){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 q4=(e,t)=>{const[n,r]=h.useState(I0);return Vt(()=>{const i=()=>{r(I0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),_F(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Z4=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=q4(n.views,o),a=rr();return{layoutProps:_({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function J4(e){const{props:t,pickerValueResponse:n}=e;return h.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 F1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=G4({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=X4({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=Z4({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=J4({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 B1(e){return ye("MuiPickersLayout",e)}const Go=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),e_=["onAccept","onClear","onCancel","onSetToday","actions"];function t_(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,e_),s=uo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return w.jsx(Tt,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return w.jsx(Tt,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return w.jsx(Tt,{onClick:t,children:s.okButtonLabel},c);case"today":return w.jsx(Tt,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return w.jsx(EO,_({},a,{children:l}))}const n_=["items","changeImportance","isLandscape","onChange","isValid"],r_=["getValue"];function o_(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,n_);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,r_);const u=l({isValid:o});return _({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return w.jsx(mw,_({dense:!0,sx:[{maxHeight:qm,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>w.jsx(T$,{children:w.jsx(tI,_({},s))},s.id??s.label))}))}function i_(e){return e.view!==null}const a_=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},B1,t)},s_=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:g,disabled:y,readOnly:x,children:C,slots:p,slotProps:m}=e,v=a_(e),S=(p==null?void 0:p.actionBar)??t_,P=Qe({elementType:S,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=w.jsx(S,_({},P)),M=p==null?void 0:p.toolbar,E=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:g,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:y,readOnly:x},className:v.toolbar,ownerState:_({},e,{wrapperVariant:t})}),$=i_(E)&&M?w.jsx(M,_({},E)):null,b=C,R=p==null?void 0:p.tabs,A=a&&R?w.jsx(R,_({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(p==null?void 0:p.shortcuts)??o_,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:g,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:g,onChange:d,wrapperVariant:t}}),I=a&&j?w.jsx(j,_({},O)):null;return{toolbar:$,content:b,tabs:A,actionBar:k,shortcuts:I}},l_=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},B1,n)},c_=K("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Go.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Go.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Go.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Go.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Go.shortcuts}`]:{gridColumn:3}}}]}),u_=K("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),_1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=s_(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,g=l_(r);return w.jsxs(c_,{ref:n,sx:c,className:pe(g.root,u),ownerState:r,children:[d?l:o,d?o:l,w.jsx(u_,{className:g.contentWrapper,children:f==="desktop"?w.jsxs(h.Fragment,{children:[i,a]}):w.jsxs(h.Fragment,{children:[a,i]})}),s]})}),d_=["props","getOpenDialogAriaText"],f_=["ownerState"],p_=["ownerState"],h_=e=>{var G;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,d_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:y,label:x,inputRef:C,readOnly:p,disabled:m,autoFocus:v,localeText:S,reduceAnimations:P}=t,k=h.useRef(null),M=h.useRef(null),E=zo(),$=((G=i==null?void 0:i.toolbar)==null?void 0:G.hidden)??!1,{open:b,actions:R,hasUIView:A,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:I,fieldProps:T,contextValue:N,ownerState:D}=F1(_({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??hw,z=Qe({elementType:L,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(z,f_),J=o.openPickerButton??Wa,ce=Qe({elementType:J,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||p,onClick:b?R.onClose:R.onOpen,"aria-label":n(T.value),edge:V.position},ownerState:t}),se=Ae(ce,p_),H=o.openPickerIcon,ae=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:D}),ie=o.field,ee=Qe({elementType:ie,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},T,$&&{id:E},{readOnly:p,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:x,name:y,autoFocus:v&&!t.open,focused:b?!0:void 0},C?{inputRef:C}:{}),ownerState:t});A&&(ee.InputProps=_({},ee.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:w.jsx(L,_({},V,{children:w.jsx(J,_({},se,{children:w.jsx(H,_({},ae))}))}))}));const X=_({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ee.slots),ne=o.layout??_1;let oe=E;$&&(x?oe=`${E}-label`:oe=void 0);const W=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:E}),popper:_({"aria-labelledby":oe},i==null?void 0:i.popper)}),F=He(M,ee.unstableFieldRef);return{renderPicker:()=>w.jsxs(k1,{contextValue:N,localeText:S,children:[w.jsx(ie,_({},ee,{slots:X,slotProps:W,unstableFieldRef:F})),w.jsx(W4,_({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:b,slots:o,slotProps:W,shouldRestoreFocus:I,reduceAnimations:P,children:w.jsx(ne,_({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},ha=({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:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:b,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V})=>w.jsx(w4,{view:e,onViewChange:t,views:n.filter(b0),focusedView:r&&b0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:b,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V}),z1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=N1(t,"MuiDesktopDatePicker"),a=_({day:ha,month:ha,year:ha},i.viewRenderers),s=_({},i,{viewRenderers:a,format:Jm(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:_({openPickerIcon:tF,field:O1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},bd((f=i.slotProps)==null?void 0:f.field,d),w1(i),{ref:n})},toolbar:_({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=h_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:c1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});z1.propTypes={autoFocus:q.bool,className:q.string,closeOnSelect:q.bool,dayOfWeekFormatter:q.func,defaultValue:q.object,disabled:q.bool,disableFuture:q.bool,disableHighlightToday:q.bool,disableOpenPicker:q.bool,disablePast:q.bool,displayWeekNumber:q.bool,enableAccessibleFieldDOMStructure:q.any,fixedWeekNumber:q.number,format:q.string,formatDensity:q.oneOf(["dense","spacious"]),inputRef:Db,label:q.node,loading:q.bool,localeText:q.object,maxDate:q.object,minDate:q.object,monthsPerRow:q.oneOf([3,4]),name:q.string,onAccept:q.func,onChange:q.func,onClose:q.func,onError:q.func,onMonthChange:q.func,onOpen:q.func,onSelectedSectionsChange:q.func,onViewChange:q.func,onYearChange:q.func,open:q.bool,openTo:q.oneOf(["day","month","year"]),orientation:q.oneOf(["landscape","portrait"]),readOnly:q.bool,reduceAnimations:q.bool,referenceDate:q.object,renderLoading:q.func,selectedSections:q.oneOfType([q.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),q.number]),shouldDisableDate:q.func,shouldDisableMonth:q.func,shouldDisableYear:q.func,showDaysOutsideCurrentMonth:q.bool,slotProps:q.object,slots:q.object,sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),timezone:q.string,value:q.object,view:q.oneOf(["day","month","year"]),viewRenderers:q.shape({day:q.func,month:q.func,year:q.func}),views:q.arrayOf(q.oneOf(["day","month","year"]).isRequired),yearsOrder:q.oneOf(["asc","desc"]),yearsPerRow:q.oneOf([3,4])};const m_=K(wO)({[`& .${Ws.container}`]:{outline:0},[`& .${Ws.paper}`]:{outline:0,minWidth:zd}}),g_=K(IO)({"&:first-of-type":{padding:0}});function y_(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??m_,s=(o==null?void 0:o.mobileTransition)??Ha;return w.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:w.jsx(g_,{children:t})}))}const v_=["props","getOpenDialogAriaText"],x_=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,v_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:y,label:x,inputRef:C,readOnly:p,disabled:m,localeText:v}=t,S=h.useRef(null),P=zo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:E,layoutProps:$,renderCurrentView:b,fieldProps:R,contextValue:A}=F1(_({},r,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},R,k&&{id:P},!(m||p)&&{onClick:E.onOpen,onKeyDown:zF(E.onOpen)},{readOnly:p??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:x,name:y},C?{inputRef:C}:{}),ownerState:t});O.inputProps=_({},O.inputProps,{"aria-label":n(R.value)});const I=_({textField:o.textField},O.slots),T=o.layout??_1;let N=P;k&&(x?N=`${P}-label`:N=void 0);const D=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:P}),mobilePaper:_({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),L=He(S,O.unstableFieldRef);return{renderPicker:()=>w.jsxs(k1,{contextValue:A,localeText:v,children:[w.jsx(j,_({},O,{slots:I,slotProps:D,unstableFieldRef:L})),w.jsx(y_,_({},E,{open:M,slots:o,slotProps:D,children:w.jsx(T,_({},$,D==null?void 0:D.layout,{slots:o,slotProps:D,children:b()}))}))]})}},V1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=N1(t,"MuiMobileDatePicker"),a=_({day:ha,month:ha,year:ha},i.viewRenderers),s=_({},i,{viewRenderers:a,format:Jm(o,i,!1),slots:_({field:O1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},bd((f=i.slotProps)==null?void 0:f.field,d),w1(i),{ref:n})},toolbar:_({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=x_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:c1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});V1.propTypes={autoFocus:q.bool,className:q.string,closeOnSelect:q.bool,dayOfWeekFormatter:q.func,defaultValue:q.object,disabled:q.bool,disableFuture:q.bool,disableHighlightToday:q.bool,disableOpenPicker:q.bool,disablePast:q.bool,displayWeekNumber:q.bool,enableAccessibleFieldDOMStructure:q.any,fixedWeekNumber:q.number,format:q.string,formatDensity:q.oneOf(["dense","spacious"]),inputRef:Db,label:q.node,loading:q.bool,localeText:q.object,maxDate:q.object,minDate:q.object,monthsPerRow:q.oneOf([3,4]),name:q.string,onAccept:q.func,onChange:q.func,onClose:q.func,onError:q.func,onMonthChange:q.func,onOpen:q.func,onSelectedSectionsChange:q.func,onViewChange:q.func,onYearChange:q.func,open:q.bool,openTo:q.oneOf(["day","month","year"]),orientation:q.oneOf(["landscape","portrait"]),readOnly:q.bool,reduceAnimations:q.bool,referenceDate:q.object,renderLoading:q.func,selectedSections:q.oneOfType([q.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),q.number]),shouldDisableDate:q.func,shouldDisableMonth:q.func,shouldDisableYear:q.func,showDaysOutsideCurrentMonth:q.bool,slotProps:q.object,slots:q.object,sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),timezone:q.string,value:q.object,view:q.oneOf(["day","month","year"]),viewRenderers:q.shape({day:q.func,month:q.func,year:q.func}),views:q.arrayOf(q.oneOf(["day","month","year"]).isRequired),yearsOrder:q.oneOf(["asc","desc"]),yearsPerRow:q.oneOf([3,4])};const S_=["desktopModeMediaQuery"],O0=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=VF}=r,i=Ae(r,S_);return Id(o,{defaultMatches:!0})?w.jsx(z1,_({ref:n},i)):w.jsx(V1,_({ref:n},i))}),b_=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(null),[a,s]=h.useState(null),[l,c]=h.useState(null),[u,d]=h.useState(""),[f,g]=h.useState(""),[y,x]=h.useState(""),[C,p]=h.useState(""),[m,v]=h.useState(""),[S,P]=h.useState(""),{token:k}=h.useContext(wn),{trigger:M,error:E}=ja("/titles/",Wm(k)),{trigger:$,error:b}=ja("/images/",jL(k)),{data:R,isLoading:A}=_r("/activities/",zr(k)),j=async T=>{const N=new FormData;N.append("file",T);const D=await $(N);c(D),console.log(D)},O={name:T=>{g(T)},description:T=>{x(setPasswordErrorMessage,T)},start_date:T=>{p(T)},end_date:T=>{v(T)},activity:T=>{P(T)}};h.useEffect(()=>{E&&(console.log(E.info),Object.entries(E.info).forEach(([T,N])=>{O[T](N)}))},[E]);const I=async T=>{T.preventDefault();const N={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&&(N.image=l.id),console.log(N),await M(N)};return A?w.jsx(Fl,{}):w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Title"}),w.jsxs("form",{onSubmit:I,children:[w.jsx(Fr,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:T=>t(T.target.value),error:!!f,helperText:f}),w.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:T=>r(T.target.value),error:!!y,helperText:y}),w.jsx(O0,{label:"Start Date",value:o,onChange:T=>i(T),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C}}}),w.jsx(O0,{label:"End Date",value:a,onChange:T=>s(T),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m}}}),w.jsxs($o,{fullWidth:!0,margin:"normal",error:!!S,children:[w.jsx($m,{id:"activity-select-label",children:"Activity"}),w.jsx(Nm,{label:"Activity",labelId:"activity-select-label",value:u,onChange:T=>d(T.target.value),required:!0,children:R.map(T=>w.jsx(Gp,{value:T.id,children:T.name},T.id))})]}),w.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:T=>j(T.target.files[0])}),w.jsx("label",{htmlFor:"image-upload",children:w.jsx(Tt,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&w.jsx(an,{display:"flex",justifyContent:"center",margin:"8px",children:w.jsx(an,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},alt:"The house from the offer.",src:l.file})}),w.jsx(Tt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},w_=()=>w.jsx(sw,{maxWidth:"sm",children:w.jsx(b_,{})}),W1=({title:e,activity:t})=>w.jsx(vl,{children:w.jsx(aw,{children:w.jsxs(ci,{container:!0,children:[e.image&&w.jsx(ci,{size:{xs:12,sm:6},children:w.jsx(vl,{children:w.jsx(NI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover"},component:"img",image:e.image,alt:e.name})})}),w.jsx(ci,{size:{xs:12,sm:6},children:w.jsxs(an,{sx:{marginLeft:e.image?2:0},children:[w.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),w.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Spent:"," ",s1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),w.jsx(Am,{href:`/activities/${e.activity}`,variant:"body2",children:t?t.name:w.jsx(Fl,{size:"1rem"})})]})})]})})}),C_=()=>{const[e,t]=h.useState(null),n=Sr(),{token:r}=h.useContext(wn),o=qw(),{data:i,isLoading:a,error:s}=_r(`/titles/${o.id}`,zr(r)),{data:l}=_r(e?`/activities/${e.activity}`:null,zr(r));return h.useEffect(()=>{i&&t({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),h.useEffect(()=>{s&&n("/error")},[s]),a||!e?w.jsx(Vl,{}):w.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:w.jsx(W1,{title:e,activity:l})})},k_=en(w.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),P_=({onLogin:e,onLogout:t})=>{const[n,r]=h.useState(null),[o,i]=h.useState(!1),{login:a,logout:s}=h.useContext(wn),{user:l}=Ld(),c=Sr(),u=Id(y=>y.breakpoints.down("sm")),d=y=>{r(y.currentTarget)},f=()=>{r(null)},g=()=>{i(!o)};return w.jsxs($D,{position:"static",color:"info",children:[w.jsxs(XA,{children:[w.jsxs(an,{flexGrow:1,display:"flex",alignItems:"center",children:[w.jsx(an,{component:ar,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:w.jsx(Xm,{})}),u?w.jsx(Wa,{color:"inherit",onClick:g,sx:{marginLeft:1},children:w.jsx(k_,{})}):w.jsxs(w.Fragment,{children:[w.jsx(Tt,{sx:{marginLeft:1},color:"inherit",component:ar,to:"/history",children:"History"}),w.jsx(Tt,{color:"inherit",component:ar,to:"/table",children:"Table"}),w.jsx(Tt,{color:"inherit",component:ar,to:"/activities",children:"Activities"}),w.jsx(Tt,{color:"inherit",onClick:d,children:"New"}),w.jsxs(xw,{anchorEl:n,open:!!n,onClose:f,children:[w.jsx(Gp,{onClick:f,component:ar,to:"/create-activity",children:"Activity"}),w.jsx(Gp,{onClick:f,component:ar,to:"/create-title",children:"Title"})]})]})]}),l?w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),w.jsx(Tt,{color:"inherit",onClick:s,children:"Logout"})]}):w.jsx(Tt,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&w.jsx(zO,{anchor:"right",open:o,onClose:g,children:w.jsxs(an,{sx:{width:180},role:"presentation",onClick:g,onKeyDown:g,display:"flex",flexDirection:"column",gap:3,children:[w.jsx(Tt,{component:ar,to:"/history",children:"History"}),w.jsx(Tt,{component:ar,to:"/table",children:"Table"}),w.jsx(Tt,{component:ar,to:"/activities",children:"Activities"}),w.jsx(Tt,{component:ar,to:"/create-activity",children:"New activity"}),w.jsx(Tt,{component:ar,to:"/create-title",children:"New title"})]})})]})},E_=()=>w.jsxs(w.Fragment,{children:[w.jsx(P_,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),w.jsx(an,{marginTop:4,children:w.jsx(Xj,{})})]}),M_=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),o=Sr(),{token:i}=h.useContext(wn),a=qw(),{data:s,isLoading:l,error:c}=_r(`/activities/${a.id}`,zr(i)),{data:u}=_r(e?`/titles?activity=${e.id}`:null,zr(i));return console.log(s),h.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),h.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]),h.useEffect(()=>{c&&o("/error")},[c]),l||!e?w.jsx(Vl,{}):(console.log(n),w.jsxs(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[w.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),w.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&w.jsx(ci,{container:!0,spacing:2,marginTop:2,children:n.map(d=>w.jsx(ci,{size:{xs:12,md:6},children:w.jsx(W1,{activity:e,title:d})},d.id))})]}))},R_=(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}},T_=()=>{const{token:e}=h.useContext(wn),{data:t,isLoading:n}=_r("/titles/",zr(e));return h.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=R_("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?w.jsx(Vl,{}):w.jsx(w.Fragment,{children:w.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},D_=()=>{const{token:e}=h.useContext(wn),t=Sr(),{data:n,isLoading:r}=_r("/activities/",zr(e));return r?w.jsx(Vl,{}):w.jsx(ci,{container:!0,spacing:2,sx:{padding:2},children:n.map(o=>w.jsx(ci,{size:{xs:12,sm:6,md:6},children:w.jsx(vl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer"},onClick:()=>t(`/activities/${o.id}`),children:w.jsxs(aw,{children:[w.jsx(Ye,{variant:"h5",component:"div",children:o.name}),w.jsx(Ye,{variant:"body2",color:"text.secondary",children:o.description})]})})},o.id))})},I_=()=>{const e=FN(),t=oN([{path:"/",element:w.jsx(E_,{}),children:[{path:"/",element:w.jsx(mo,{Component:NL})},{path:"/register",element:w.jsx(v0,{Component:HN})},{path:"/login",element:w.jsx(v0,{Component:zN})},{path:"/table",element:w.jsx(mo,{Component:YN})},{path:"/activities",element:w.jsx(mo,{Component:D_})},{path:"/titles/:id",element:w.jsx(mo,{Component:C_})},{path:"/activities/:id",element:w.jsx(mo,{Component:M_})},{path:"/create-activity",element:w.jsx(mo,{Component:GN})},{path:"/create-title",element:w.jsx(mo,{Component:w_})},{path:"/history",element:w.jsx(mo,{Component:T_})},{path:"/error",element:w.jsx(y0,{})},{path:"*",element:w.jsx(y0,{})}]}],{basename:"/timetrekah-frontend/"});return w.jsx(wn.Provider,{value:e,children:w.jsx(pN,{router:t})})};var O_={exports:{}};(function(e,t){(function(n,r){e.exports=r(t1())})(bi,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})})(O_);const $_=Cd();YS(document.getElementById("root")).render(w.jsx(h.StrictMode,{children:w.jsx(AL,{value:{fetcher:LL},children:w.jsx(TT,{theme:$_,children:w.jsx(l1,{dateAdapter:$N,adapterLocale:"de",children:w.jsx(I_,{})})})})})); +`));const t=h.useMemo(()=>_({},qN,e.localeText),[e.localeText]);return h.useMemo(()=>_({},e,{localeText:t}),[e,t])},gt=()=>Mi().utils,Wl=()=>Mi().defaultDates,Bd=e=>{const t=gt(),n=h.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},uo=()=>Mi().localeText,ZN=en(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),JN=en(w.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),eF=en(w.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),tF=en(w.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");en(w.jsxs(h.Fragment,{children:[w.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"}),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");en(w.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");en(w.jsxs(h.Fragment,{children:[w.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"}),w.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const nF=en(w.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 rF(e){return ye("MuiPickersArrowSwitcher",e)}me("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const oF=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],iF=["ownerState"],aF=["ownerState"],sF=K("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),lF=K("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),x0=K(Wa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),cF=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},rF,t)},uF=h.forwardRef(function(t,n){const r=rr(),o=mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:f,isPreviousDisabled:g,isPreviousHidden:y,onGoToPrevious:x,previousLabel:C,labelId:p}=o,m=Ae(o,oF),v=o,S=cF(v),P={isDisabled:c,isHidden:u,goTo:d,label:f},k={isDisabled:g,isHidden:y,goTo:x,label:C},M=(s==null?void 0:s.previousIconButton)??x0,E=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(S.button,S.previousIconButton)}),$=(s==null?void 0:s.nextIconButton)??x0,b=Qe({elementType:$,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:_({},v,{hidden:P.isHidden}),className:pe(S.button,S.nextIconButton)}),R=(s==null?void 0:s.leftArrowIcon)??JN,A=Qe({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.leftArrowIcon}),j=Ae(A,iF),O=(s==null?void 0:s.rightArrowIcon)??eF,I=Qe({elementType:O,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:v,className:S.rightArrowIcon}),T=Ae(I,aF);return w.jsxs(sF,_({ref:n,className:pe(S.root,a),ownerState:v},m,{children:[w.jsx(M,_({},E,{children:r?w.jsx(O,_({},T)):w.jsx(R,_({},j))})),i?w.jsx(Ye,{variant:"subtitle1",component:"span",id:p,children:i}):w.jsx(lF,{className:S.spacer,ownerState:v}),w.jsx($,_({},b,{children:r?w.jsx(R,_({},j)):w.jsx(O,_({},T))}))]}))}),gs=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),dF=({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}},fF=["hours","minutes","seconds"],pF=e=>fF.includes(e),S0=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),hF=(e,t)=>(n,r)=>e?t.isAfter(n,r):S0(n,t)>S0(r,t);function d1({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){const l=h.useRef(n),c=h.useRef(o),u=h.useRef(o.includes(n)?n:o[0]),[d,f]=io({name:"useViews",state:"view",controlled:r,default:u.current}),g=h.useRef(i?d:null),[y,x]=io({name:"useViews",state:"focusedView",controlled:a,default:g.current});h.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),p=o[C-1]??null,m=o[C+1]??null,v=Se((M,E)=>{x(E?M:$=>M===$?null:$),s==null||s(M,E)}),S=Se(M=>{v(M,!0),M!==d&&(f(M),t&&t(M))}),P=Se(()=>{m&&S(m)}),k=Se((M,E,$)=>{const b=E==="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 gF(e,{disablePast:t,minDate:n,timezone:r}){const o=gt();return h.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,_d=2,zd=320,yF=280,qm=336,vF=K("div")({overflow:"hidden",width:zd,maxHeight:qm,display:"flex",flexDirection:"column",margin:"0 auto"}),Ou=(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},Ys=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=Ou(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},xF=(e,t)=>t==null||!e.isValid(t)?null:t,tr=(e,t,n)=>t==null||!e.isValid(t)?n:t,SF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Zm=(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},f1=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),bF=["year","month","day"],b0=e=>bF.includes(e),Jm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return gs(n,["year"])?o.year:gs(n,["month"])?o.month:gs(n,["day"])?o.dayOfMonth:gs(n,["month","year"])?`${o.month} ${o.year}`:gs(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},wF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},eg=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=gt(),s=h.useRef(n),l=t??s.current??i.emptyValue,c=h.useMemo(()=>i.getTimezone(a,l),[a,i,l]),u=Se(y=>c==null?y:i.setTimezone(a,c,y));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const f=h.useMemo(()=>i.setTimezone(a,d,l),[i,a,d,l]),g=Se((y,...x)=>{const C=u(y);o==null||o(C,...x)});return{value:f,handleValueChange:g,timezone:d}},tg=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[s,l]=io({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=Se((u,...d)=>{l(u),i==null||i(u,...d)});return eg({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:a})},Tr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},CF=e=>Math.max(...e.map(t=>Tr[t.type]??1)),ys=(e,t,n)=>{if(t===Tr.year)return e.startOfYear(n);if(t===Tr.month)return e.startOfMonth(n);if(t===Tr.day)return e.startOfDay(n);let r=n;return t{let i=o?o():ys(t,n,f1(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ys(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ys(t,n,e.maxDate));const a=hF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=ys(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ou(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=ys(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ou(t,i,e.maxTime))),i},p1=(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}},PF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vd=(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))},h1=(e,t,n,r)=>{switch(n){case"month":return Zm(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Vd(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[]}},w0="s",EF=["0","1","2","3","4","5","6","7","8","9"],MF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),w0)==="0"?EF:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),w0))},Si=(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("")},ng=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),C0=(e,t)=>{const n=Si(e,t);return n!==" "&&!Number.isNaN(Number(n))},m1=(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=m1(i,o.maxLength)),ng(i,r)},RF=(e,t,n,r,o,i,a,s)=>{const l=PF(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,f=()=>{const y=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),x=v=>g1(e,v,y,i,n),C=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let m=parseInt(Si(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=y.minimum:m=y.maximum}return m%C!==0&&((l<0||c)&&(m+=C-(C+m)%C),(l>0||u)&&(m-=m%C)),m>y.maximum?x(y.minimum+(m-y.maximum-1)%(y.maximum-y.minimum+1)):m{const y=h1(e,t,n.type,n.format);if(y.length===0)return n.value;if(d)return l>0||c?y[0]:y[y.length-1];const p=((y.indexOf(n.value)+l)%y.length+y.length)%y.length;return y[p]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():g()},rg=(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(Si(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},k0=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),y1=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,v1=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return y1(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")}},TF=(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(""),IF=(e,t,n)=>{const o=e.map(i=>{const a=rg(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},OF=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=Zm(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:y1(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=Vd(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 Si(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Si(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=Vd(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}},P0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},E0=(e,t,n,r,o)=>[...n].sort((i,a)=>P0[i.type]-P0[a.type]).reduce((i,a)=>!o||a.modified?$F(e,a,t,i):i,r),AF=()=>navigator.userAgent.toLowerCase().includes("android"),LF=(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]}},oh=(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},jF=(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}},NF=(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}},FF=["value","referenceDate"],Vr={emptyValue:null,getTodayValue:f1,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ae(e,FF);return t!=null&&r.utils.isValid(t)?t:n??kF(r)},cleanValue:xF,areValuesEqual:SF,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)},BF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:DF,getV6InputValueFromSections:IF,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 _F(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const zF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Mn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Mn(t.shadowRoot):t:null},VF="@media (pointer: fine)";function WF(e){return ye("MuiPickersDay",e)}const Yo=me("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),UF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],HF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return ve({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},WF,l)},x1=({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})`:Be(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Yo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Yo.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}},[`&.${Yo.disabled}:not(.${Yo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yo.disabled}&.${Yo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${_d}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Yo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),S1=(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]},YF=K(Ma,{name:"MuiPickersDay",slot:"Root",overridesResolver:S1})(x1),KF=K("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:S1})(({theme:e})=>_({},x1({theme:e}),{opacity:0,pointerEvents:"none"})),vs=()=>{},GF=h.forwardRef(function(t,n){const r=mt({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:g=vs,onBlur:y=vs,onKeyDown:x=vs,onMouseDown:C=vs,onMouseEnter:p=vs,outsideCurrentMonth:m,selected:v=!1,showDaysOutsideCurrentMonth:S=!1,children:P,today:k=!1}=r,M=Ae(r,UF),E=_({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:v,showDaysOutsideCurrentMonth:S,today:k}),$=HF(E),b=gt(),R=h.useRef(null),A=He(R,n);Vt(()=>{o&&!s&&!u&&!m&&R.current.focus()},[o,s,u,m]);const j=I=>{C(I),m&&I.preventDefault()},O=I=>{s||f(a),m&&I.currentTarget.focus(),d&&d(I)};return m&&!S?w.jsx(KF,{className:pe($.root,$.hiddenDaySpacingFiller,i),ownerState:E,role:M.role}):w.jsx(YF,_({className:pe($.root,i),ref:A,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:I=>x(I,a),onFocus:I=>g(I,a),onBlur:I=>y(I,a),onMouseEnter:I=>p(I,a),onClick:O,onMouseDown:j},M,{ownerState:E,children:P||b.format(a,"dayOfMonth")}))}),QF=h.memo(GF),Ul=({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=tr(r.utils,e.minDate,r.defaultDates.minDate),d=tr(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}};Ul.valueManager=Vr;const b1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],XF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qF=["minDateTime","maxDateTime"],ZF=[...b1,...XF,...qF],w1=e=>ZF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function C1(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Mi(),s=h.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);h.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 JF=({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},e5=({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},t5=(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}},n5=({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=p1(e,a),c=v1(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):"",g=null;if(u)if(c)g=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`);g=l.maxLength,d&&(f=ng(m1(Si(f,o),g),o))}return _({},l,{format:a,maxLength:g,value:f,placeholder:t5(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},r5=e=>{var g;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((y,x)=>x.length-y.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=y=>r.find(x=>x.start<=y&&x.end>=y);let f=0;for(;f0;){const m=u.exec(p)[1];p=p.slice(m.length),i.push(n5(_({},e,{now:o,token:m,startSeparator:a}))),a=""}f+=C.length}else{const p=n[f];x&&(y==null?void 0:y.start)===f||(y==null?void 0:y.end)===f||(i.length===0?a+=p:i[i.length-1].endSeparator+=p),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},o5=({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}),M0=e=>{let t=JF(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=e5(_({},e,{expandedFormat:t})),r=r5(_({},e,{expandedFormat:t,escapedParts:n}));return o5(_({},e,{sections:r}))},i5=e=>{const t=gt(),n=uo(),r=Mi(),o=rr(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:f,onChange:g,format:y,formatDensity:x="dense",selectedSections:C,onSelectedSectionsChange:p,shouldRespectLeadingZeros:m=!1,timezone:v,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:P,value:k,handleValueChange:M}=eg({timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:g,valueManager:i}),E=h.useMemo(()=>MF(t),[t]),$=h.useMemo(()=>OF(t,E,P),[t,E,P]),b=h.useCallback((H,ae=null)=>a.getSectionsFromValue(t,H,ae,ie=>M0({utils:t,localeText:n,localizedDigits:E,format:y,date:ie,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,y,n,E,o,m,t,x,S]),[R,A]=h.useState(()=>{const H=b(k),ae={sections:H,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ie=CF(H),ee=i.getInitialReferenceValue({referenceDate:f,value:k,utils:t,props:c,granularity:ie,timezone:P});return _({},ae,{referenceValue:ee})}),[j,O]=io({controlled:C,default:null,name:"useField",state:"selectedSections"}),I=H=>{O(H),p==null||p(H)},T=h.useMemo(()=>oh(j,R.sections),[j,R.sections]),N=T==="all"?0:T,D=({value:H,referenceValue:ae,sections:ie})=>{if(A(X=>_({},X,{sections:ie,value:H,referenceValue:ae,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,H))return;const ee={validationError:l({adapter:r,value:H,timezone:P,props:c})};M(H,ee)},L=(H,ae)=>{const ie=[...R.sections];return ie[H]=_({},ie[H],{value:ae,modified:!0}),ie},z=()=>{D({value:i.emptyValue,referenceValue:R.referenceValue,sections:b(i.emptyValue)})},V=()=>{if(N==null)return;const H=R.sections[N],ae=a.getActiveDateManager(t,R,H),ee=ae.getSections(R.sections).filter(W=>W.value!=="").length===(H.value===""?0:1),X=L(N,""),ne=ee?null:t.getInvalidDate(),oe=ae.getNewValuesFromNewActiveDate(ne);D(_({},oe,{sections:X}))},J=H=>{const ae=(X,ne)=>{const oe=t.parse(X,y);if(oe==null||!t.isValid(oe))return null;const W=M0({utils:t,localeText:n,localizedDigits:E,format:y,date:oe,formatDensity:x,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:S,isRtl:o});return E0(t,oe,W,ne,!1)},ie=a.parseValueStr(H,R.referenceValue,ae),ee=a.updateReferenceValue(t,ie,R.referenceValue);D({value:ie,referenceValue:ee,sections:b(ie,R.sections)})},ce=({activeSection:H,newSectionValue:ae,shouldGoToNextSection:ie})=>{ie&&N_({},Y,W,{sections:X,tempValueStrAndroid:null}))},se=H=>A(ae=>_({},ae,{tempValueStrAndroid:H}));return h.useEffect(()=>{const H=b(R.value);A(ae=>_({},ae,{sections:H}))},[y,t.locale,o]),h.useEffect(()=>{let H;i.areValuesEqual(t,R.value,k)?H=i.getTimezone(t,R.value)!==i.getTimezone(t,k):H=!0,H&&A(ae=>_({},ae,{value:k,referenceValue:a.updateReferenceValue(t,k,ae.referenceValue),sections:b(k)}))},[k]),{state:R,activeSectionIndex:N,parsedSelectedSections:T,setSelectedSections:I,clearValue:z,clearActiveSection:V,updateSectionValue:ce,updateValueFromValueStr:J,setTempAndroidValueStr:se,getSectionsFromValue:b,sectionsValueBoundaries:$,localizedDigits:E,timezone:P}},a5=5e3,_i=e=>e.saveQuery!=null,s5=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=gt(),[s,l]=h.useState(null),c=Se(()=>l(null));h.useEffect(()=>{var y;s!=null&&((y=e[s.sectionIndex])==null?void 0:y.type)!==s.sectionType&&c()},[e,s,c]),h.useEffect(()=>{if(s!=null){const y=setTimeout(()=>c(),a5);return()=>{clearTimeout(y)}}return()=>{}},[s,c]);const u=({keyPressed:y,sectionIndex:x},C,p)=>{const m=y.toLowerCase(),v=e[x];if(s!=null&&(!p||p(s.value))&&s.sectionIndex===x){const P=`${s.value}${m}`,k=C(P,v);if(!_i(k))return l({sectionIndex:x,value:P,sectionType:v.type}),k}const S=C(m,v);return _i(S)&&!S.saveQuery?(c(),null):(l({sectionIndex:x,value:m,sectionType:v.type}),_i(S)?null:S)},d=y=>{const x=(m,v,S)=>{const P=v.filter(k=>k.toLowerCase().startsWith(S));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},C=(m,v,S,P)=>{const k=M=>h1(a,i,v.type,M);if(v.contentType==="letter")return x(v.format,k(v.format),m);if(S&&P!=null&&p1(a,S).contentType==="letter"){const M=k(S),E=x(S,M,m);return _i(E)?{saveQuery:!1}:_({},E,{sectionValue:P(E.sectionValue,M)})}return{saveQuery:!1}};return u(y,(m,v)=>{switch(v.type){case"month":{const S=P=>k0(a,P,a.formats.month,v.format);return C(m,v,a.formats.month,S)}case"weekDay":{const S=(P,k)=>k.indexOf(P).toString();return C(m,v,a.formats.weekday,S)}case"meridiem":return C(m,v);default:return{saveQuery:!1}}})},f=y=>{const x=(p,m)=>{const v=Si(p,r),S=Number(v),P=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(S>P.maximum)return{saveQuery:!1};if(SP.maximum||v.length===P.maximum.toString().length;return{sectionValue:g1(a,S,P,r,m),shouldGoToNextSection:k}};return u(y,(p,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return x(p,m);if(m.type==="month"){const v=v1(a,"digit","month","MM"),S=x(p,{type:m.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(_i(S))return S;const P=k0(a,S.sectionValue,"MM",m.format);return _({},S,{sectionValue:P})}if(m.type==="weekDay"){const v=x(p,m);if(_i(v))return v;const S=Vd(a,m.format)[Number(v.sectionValue)-1];return _({},v,{sectionValue:S})}return{saveQuery:!1}},p=>C0(p,r))};return{applyCharacterEditing:Se(y=>{const x=e[y.sectionIndex],p=C0(y.keyPressed,r)?f(_({},y,{keyPressed:ng(y.keyPressed,r)})):d(y);if(p==null){o(null);return}t({activeSection:x,newSectionValue:p.sectionValue,shouldGoToNextSection:p.shouldGoToNextSection})}),resetCharacterQuery:c}},l5=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:g,setSelectedSections:y,parsedSelectedSections:x,state:C,clearActiveSection:p,clearValue:m,updateSectionValue:v,updateValueFromValueStr:S,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:M}=e,E=h.useRef(null),$=He(r,E),b=uo(),R=gt(),A=zo(),[j,O]=h.useState(!1),I=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!E.current)return;const F=document.getSelection();if(!F)return;if(x==null){F.rangeCount>0&&E.current.getRoot().contains(F.getRangeAt(0).startContainer)&&F.removeAllRanges(),j&&E.current.getRoot().blur();return}if(!E.current.getRoot().contains(Mn(document)))return;const Y=new window.Range;let G;x==="all"?G=E.current.getRoot():C.sections[x].type==="empty"?G=E.current.getSectionContainer(x):G=E.current.getSectionContent(x),Y.selectNodeContents(G),G.focus(),F.removeAllRanges(),F.addRange(Y)},getActiveSectionIndexFromDOM:()=>{const F=Mn(document);return!F||!E.current||!E.current.getRoot().contains(F)?null:E.current.getSectionIndexFromDOMElement(F)},focusField:(F=0)=>{if(!E.current)return;const Y=oh(F,C.sections);O(!0),E.current.getSectionContent(Y).focus()},setSelectedSections:F=>{if(!E.current)return;const Y=oh(F,C.sections);O((Y==="all"?0:Y)!==null),y(F)},isFieldFocused:()=>{const F=Mn(document);return!!E.current&&E.current.getRoot().contains(F)}}),[x,y,C.sections,j]),T=Se(F=>{if(!E.current)return;const Y=C.sections[F];E.current.getSectionContent(F).innerHTML=Y.value||Y.placeholder,I.syncSelectionToDOM()}),N=Se((F,...Y)=>{F.isDefaultPrevented()||!E.current||(O(!0),i==null||i(F,...Y),x==="all"?setTimeout(()=>{const G=document.getSelection().getRangeAt(0).startOffset;if(G===0){y(P.startIndex);return}let te=0,ue=0;for(;ue{if(s==null||s(F),!E.current||x!=="all")return;const G=F.target.textContent??"";E.current.getRoot().innerHTML=C.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),I.syncSelectionToDOM(),G.length===0||G.charCodeAt(0)===10?(g(),m(),y("all")):G.length>1?S(G):f({keyPressed:G,sectionIndex:0})}),L=Se(F=>{if(l==null||l(F),n||x!=="all"){F.preventDefault();return}const Y=F.clipboardData.getData("text");F.preventDefault(),g(),S(Y)}),z=Se((...F)=>{if(a==null||a(...F),j||!E.current)return;O(!0),E.current.getSectionIndexFromDOMElement(Mn(document))!=null||y(P.startIndex)}),V=Se((...F)=>{o==null||o(...F),setTimeout(()=>{if(!E.current)return;const Y=Mn(document);!E.current.getRoot().contains(Y)&&(O(!1),y(null))})}),J=Se(F=>Y=>{Y.isDefaultPrevented()||y(F)}),ce=Se(F=>{F.preventDefault()}),se=Se(F=>()=>{y(F)}),H=Se(F=>{if(F.preventDefault(),n||t||typeof x!="number")return;const Y=C.sections[x],G=F.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(G),ue=/^[0-9]+$/.test(G),Z=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(G);Y.contentType==="letter"&&te||Y.contentType==="digit"&&ue||Y.contentType==="digit-with-letter"&&Z?(g(),v({activeSection:Y,newSectionValue:G,shouldGoToNextSection:!0})):!te&&!ue&&(g(),S(G))}),ae=Se(F=>{F.preventDefault(),F.dataTransfer.dropEffect="none"}),ie=Se(F=>{if(!E.current)return;const Y=F.target,G=Y.textContent??"",te=E.current.getSectionIndexFromDOMElement(Y),ue=C.sections[te];if(n||!E.current){T(te);return}if(G.length===0){if(ue.value===""){T(te);return}const Z=F.nativeEvent.inputType;if(Z==="insertParagraph"||Z==="insertLineBreak"){T(te);return}g(),p();return}f({keyPressed:G,sectionIndex:te}),T(te)});Vt(()=>{if(!(!j||!E.current)){if(x==="all")E.current.getRoot().focus();else if(typeof x=="number"){const F=E.current.getSectionContent(x);F&&F.focus()}}},[x,j]);const ee=h.useMemo(()=>C.sections.reduce((F,Y)=>(F[Y.type]=M[Y.type]({currentDate:null,contentType:Y.contentType,format:Y.format}),F),{}),[M,C.sections]),X=x==="all",ne=h.useMemo(()=>C.sections.map((F,Y)=>{const G=!X&&!t&&!n;return{container:{"data-sectionindex":Y,onClick:J(Y)},content:{tabIndex:X||Y>0?-1:0,contentEditable:!X&&!t&&!n,role:"spinbutton",id:`${A}-${F.type}`,"aria-labelledby":`${A}-${F.type}`,"aria-readonly":n,"aria-valuenow":NF(F,R),"aria-valuemin":ee[F.type].minimum,"aria-valuemax":ee[F.type].maximum,"aria-valuetext":F.value?jF(F,R):b.empty,"aria-label":b[F.type],"aria-disabled":t,spellCheck:G?!1:void 0,autoCapitalize:G?"off":void 0,autoCorrect:G?"off":void 0,[parseInt(h.version,10)>=17?"enterKeyHint":"enterkeyhint"]:G?"next":void 0,children:F.value||F.placeholder,onInput:ie,onPaste:H,onFocus:se(Y),onDragOver:ae,onMouseUp:ce,inputMode:F.contentType==="letter"?"text":"numeric"},before:{children:F.startSeparator},after:{children:F.endSeparator}}}),[C.sections,se,H,ae,ie,J,ce,t,n,X,b,R,ee,A]),oe=Se(F=>{S(F.target.value)}),W=h.useMemo(()=>k?"":d.getV7HiddenInputValueFromSections(C.sections),[k,C.sections,d]);return h.useEffect(()=>{if(E.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&&E.current&&E.current.getSectionContent(P.startIndex).focus()},[]),{interactions:I,returnedValue:{autoFocus:u,readOnly:n,focused:c??j,sectionListRef:$,onBlur:V,onClick:N,onFocus:z,onInput:D,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:ne,tabIndex:x===0?-1:0,contentEditable:X,value:W,onChange:oe,areAllSectionsEmpty:k}}},ea=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),c5=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=rr(),n=h.useRef(),r=h.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:f,activeSectionIndex:g,state:y,fieldValueManager:x,valueManager:C,applyCharacterEditing:p,resetCharacterQuery:m,updateSectionValue:v,updateValueFromValueStr:S,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:M,setSelectedSections:E,getSectionsFromValue:$,areAllSectionsEmpty:b,localizedDigits:R}=e,A=h.useRef(null),j=He(l,A),O=h.useMemo(()=>c5(y.sections,R,t),[y.sections,R,t]),I=h.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;if(f==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}if(A.current!==Mn(document))return;const ie=A.current.scrollTop;if(f==="all")A.current.select();else{const ee=O[f],X=ee.type==="empty"?ee.startInInput-ee.startSeparator.length:ee.startInInput,ne=ee.type==="empty"?ee.endInInput+ee.endSeparator.length:ee.endInInput;(X!==A.current.selectionStart||ne!==A.current.selectionEnd)&&A.current===Mn(document)&&A.current.setSelectionRange(X,ne),clearTimeout(r.current),r.current=setTimeout(()=>{A.current&&A.current===Mn(document)&&A.current.selectionStart===A.current.selectionEnd&&(A.current.selectionStart!==X||A.current.selectionEnd!==ne)&&I.syncSelectionToDOM()})}A.current.scrollTop=ie},getActiveSectionIndexFromDOM:()=>{const ie=A.current.selectionStart??0,ee=A.current.selectionEnd??0;if(ie===0&&ee===0)return null;const X=ie<=O[0].startInInput?1:O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);return X===-1?O.length-1:X-1},focusField:(ie=0)=>{var ee;(ee=A.current)==null||ee.focus(),E(ie)},setSelectedSections:ie=>E(ie),isFieldFocused:()=>A.current===Mn(document)}),[A,f,O,E]),T=()=>{const ie=A.current.selectionStart??0;let ee;ie<=O[0].startInInput||ie>=O[O.length-1].endInInput?ee=1:ee=O.findIndex(ne=>ne.startInInput-ne.startSeparator.length>ie);const X=ee===-1?O.length-1:ee-1;E(X)},N=Se((...ie)=>{o==null||o(...ie);const ee=A.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ee||ee!==A.current||g==null&&(ee.value.length&&Number(ee.selectionEnd)-Number(ee.selectionStart)===ee.value.length?E("all"):T())})}),D=Se((ie,...ee)=>{ie.isDefaultPrevented()||(i==null||i(ie,...ee),T())}),L=Se(ie=>{if(a==null||a(ie),ie.preventDefault(),u||d)return;const ee=ie.clipboardData.getData("text");if(typeof f=="number"){const X=y.sections[f],ne=/^[a-zA-Z]+$/.test(ee),oe=/^[0-9]+$/.test(ee),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ee);if(X.contentType==="letter"&&ne||X.contentType==="digit"&&oe||X.contentType==="digit-with-letter"&&W){m(),v({activeSection:X,newSectionValue:ee,shouldGoToNextSection:!0});return}if(ne||oe)return}m(),S(ee)}),z=Se((...ie)=>{s==null||s(...ie),E(null)}),V=Se(ie=>{if(u)return;const ee=ie.target.value;if(ee===""){m(),k();return}const X=ie.nativeEvent.data,ne=X&&X.length>1,oe=ne?X:ee,W=ea(oe);if(g==null||ne){S(ne?X:W);return}let F;if(f==="all"&&W.length===1)F=W;else{const Y=ea(x.getV6InputValueFromSections(O,R,t));let G=-1,te=-1;for(let ge=0;geue.end)return;const fe=W.length-Y.length+ue.end-ea(ue.endSeparator||"").length;F=W.slice(ue.start+ea(ue.startSeparator||"").length,fe)}if(F.length===0){AF()&&M(oe),m(),P();return}p({keyPressed:F,sectionIndex:g})}),J=h.useMemo(()=>c!==void 0?c:x.getV6InputValueFromSections($(C.emptyValue),R,t),[c,x,$,C.emptyValue,R,t]),ce=h.useMemo(()=>y.tempValueStrAndroid??x.getV6InputValueFromSections(y.sections,R,t),[y.sections,x,y.tempValueStrAndroid,R,t]);h.useEffect(()=>(A.current&&A.current===Mn(document)&&E("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const se=h.useMemo(()=>g==null||y.sections[g].contentType==="letter"?"text":"numeric",[g,y.sections]),ae=!(A.current&&A.current===Mn(document))&&b;return{interactions:I,returnedValue:{readOnly:u,onBlur:z,onClick:D,onFocus:N,onPaste:L,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:se,autoComplete:"off",value:ae?"":ce,onChange:V}}},d5=e=>{const t=gt(),{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:g,validator:y}=e,x=rr(),C=i5(e),{state:p,activeSectionIndex:m,parsedSelectedSections:v,setSelectedSections:S,clearValue:P,clearActiveSection:k,updateSectionValue:M,setTempAndroidValueStr:E,sectionsValueBoundaries:$,localizedDigits:b,timezone:R}=C,A=s5({sections:p.sections,updateSectionValue:M,sectionsValueBoundaries:$,localizedDigits:b,setTempAndroidValueStr:E,timezone:R}),{resetCharacterQuery:j}=A,O=g.areValuesEqual(t,p.value,g.emptyValue),I=i?l5:u5,T=h.useMemo(()=>LF(p.sections,x&&!i),[p.sections,x,i]),{returnedValue:N,interactions:D}=I(_({},e,C,A,{areAllSectionsEmpty:O,sectionOrder:T})),L=Se(H=>{if(l==null||l(H),!a)switch(!0){case((H.ctrlKey||H.metaKey)&&String.fromCharCode(H.keyCode)==="A"&&!H.shiftKey&&!H.altKey):{H.preventDefault(),S("all");break}case H.key==="ArrowRight":{if(H.preventDefault(),v==null)S(T.startIndex);else if(v==="all")S(T.endIndex);else{const ae=T.neighbors[v].rightIndex;ae!==null&&S(ae)}break}case H.key==="ArrowLeft":{if(H.preventDefault(),v==null)S(T.endIndex);else if(v==="all")S(T.startIndex);else{const ae=T.neighbors[v].leftIndex;ae!==null&&S(ae)}break}case H.key==="Delete":{if(H.preventDefault(),s)break;v==null||v==="all"?P():k(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(H.key):{if(H.preventDefault(),s||m==null)break;const ae=p.sections[m],ie=f.getActiveDateManager(t,p,ae),ee=RF(t,R,ae,H.key,$,b,ie.date,{minutesStep:o});M({activeSection:ae,newSectionValue:ee,shouldGoToNextSection:!1});break}}});Vt(()=>{D.syncSelectionToDOM()});const{hasValidationError:z}=C1({props:n,validator:y,timezone:R,value:p.value,onError:n.onError}),V=h.useMemo(()=>c!==void 0?c:z,[z,c]);h.useEffect(()=>{!V&&m==null&&j()},[p.referenceValue,m,V]),h.useEffect(()=>{p.tempValueStrAndroid!=null&&m!=null&&(j(),k())},[p.sections]),h.useImperativeHandle(r,()=>({getSections:()=>p.sections,getActiveSectionIndex:D.getActiveSectionIndexFromDOM,setSelectedSections:D.setSelectedSections,focusField:D.focusField,isFieldFocused:D.isFieldFocused}));const J=Se((H,...ae)=>{H.preventDefault(),d==null||d(H,...ae),P(),D.isFieldFocused()?S(T.startIndex):D.focusField(0)}),ce={onKeyDown:L,onClear:J,error:V,clearable:!!(u&&!O&&!s&&!a)},se={disabled:a,readOnly:s};return _({},e.forwardedProps,ce,se,N)},f5=["clearable","onClear","InputProps","sx","slots","slotProps"],p5=["ownerState"],h5=e=>{const t=uo(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=Ae(e,f5),c=(a==null?void 0:a.clearButton)??Wa,u=Qe({elementType:c,externalSlotProps:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Ae(u,p5),f=(a==null?void 0:a.clearIcon)??nF,g=Qe({elementType:f,externalSlotProps:s==null?void 0:s.clearIcon,ownerState:{}});return _({},l,{InputProps:_({},o,{endAdornment:w.jsxs(h.Fragment,{children:[n&&w.jsx(hw,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:w.jsx(c,_({},d,{onClick:r,children:w.jsx(f,_({fontSize:"small"},g))}))}),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]]})},m5=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],g5=(e,t)=>h.useMemo(()=>{const n=_({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return m5.forEach(o),b1.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),y5=h.createContext(null);function k1(e){const{contextValue:t,localeText:n,children:r}=e;return w.jsx(y5.Provider,{value:t,children:w.jsx(l1,{localeText:n,children:r})})}const v5=e=>{const t=gt(),n=Wl();return _({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:tr(t,e.minDate,n.minDate),maxDate:tr(t,e.maxDate,n.maxDate)})},x5=e=>{const t=v5(e),{forwardedProps:n,internalProps:r}=g5(t,"date");return d5({forwardedProps:n,internalProps:r,valueManager:Vr,fieldValueManager:BF,validator:Ul,valueType:"date"})};function S5(e){return ye("MuiPickersTextField",e)}me("MuiPickersTextField",["root","focused","disabled","error","required"]);function b5(e){return ye("MuiPickersInputBase",e)}const fa=me("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function w5(e){return ye("MuiPickersSectionList",e)}const xs=me("MuiPickersSectionList",["root","section","sectionContent"]),C5=["slots","slotProps","elements","sectionListRef"],P1=K("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),E1=K("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),M1=K("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),R1=K("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),k5=e=>{const{classes:t}=e;return ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},w5,t)};function P5(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=(t==null?void 0:t.section)??E1,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)??R1,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)??M1,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 w.jsxs(i,_({},a,{children:[w.jsx(c,_({},u)),w.jsx(s,_({},l)),w.jsx(c,_({},d))]}))}const E5=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s}=r,l=Ae(r,C5),c=k5(r),u=h.useRef(null),d=He(n,u),f=x=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`);return u.current};h.useImperativeHandle(s,()=>({getRoot(){return f("getRoot")},getSectionContainer(x){return f("getSectionContainer").querySelector(`.${xs.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return f("getSectionContent").querySelector(`.${xs.section}[data-sectionindex="${x}"] .${xs.sectionContent}`)},getSectionIndexFromDOMElement(x){const C=f("getSectionIndexFromDOMElement");if(x==null||!C.contains(x))return null;let p=null;return x.classList.contains(xs.section)?p=x:x.classList.contains(xs.sectionContent)&&(p=x.parentElement),p==null?null:Number(p.dataset.sectionindex)}}));const g=(o==null?void 0:o.root)??P1,y=Qe({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return w.jsx(g,_({},y,{children:y.contentEditable?a.map(({content:x,before:C,after:p})=>`${C.children}${x.children}${p.children}`).join(""):w.jsx(h.Fragment,{children:a.map((x,C)=>w.jsx(P5,{slots:o,slotProps:i,element:x,classes:c},C))})}))}),M5=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],R5=e=>Math.round(e*1e5)/1e5,Wd=K("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:`${R5(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),og=K(P1,{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}}]})),T5=K(E1,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),D5=K(R1,{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"})),I5=K(M1,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),O5=K("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(_({},rR)),$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${le(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ve(d,b5,o)},ig=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:f,slotProps:g,contentEditable:y,tabIndex:x,onInput:C,onPaste:p,onKeyDown:m,name:v,readOnly:S,inputProps:P,inputRef:k,sectionListRef:M}=r,E=Ae(r,M5),$=h.useRef(null),b=He(n,$),R=He(P==null?void 0:P.ref,k),A=rr(),j=xr();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)};h.useEffect(()=>{j&&j.setAdornedStart(!!u)},[j,u]),h.useEffect(()=>{j&&(i?j.onEmpty():j.onFilled())},[j,i]);const I=_({},r,j,{isRtl:A}),T=$5(I),N=(f==null?void 0:f.root)||Wd,D=Qe({elementType:N,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:E,additionalProps:{"aria-invalid":j.error,ref:b},className:T.root,ownerState:I}),L=(f==null?void 0:f.input)||og;return w.jsxs(N,_({},D,{children:[u,w.jsx(E5,{sectionListRef:M,elements:o,contentEditable:y,tabIndex:x,className:T.sectionsContainer,onFocus:O,onBlur:j.onBlur,onInput:C,onPaste:p,onKeyDown:m,slots:{root:L,section:T5,sectionContent:D5,sectionSeparator:I5},slotProps:{root:{ownerState:I},sectionContent:{className:fa.sectionContent},sectionSeparator:({position:z})=>({className:z==="before"?fa.sectionBefore:fa.sectionAfter})}}),c,d?d(_({},j)):null,w.jsx(O5,_({name:v,className:T.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:j.required,disabled:j.disabled},P,{ref:R}))]}))});function A5(e){return ye("MuiPickersOutlinedInput",e)}const sr=_({},fa,me("MuiPickersOutlinedInput",["root","notchedOutline","input"])),L5=["children","className","label","notched","shrink"],j5=K("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}}),R0=K("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),N5=K("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 F5(e){const{className:t,label:n}=e,r=Ae(e,L5),o=n!=null&&n!=="",i=_({},e,{withLabel:o});return w.jsx(j5,_({"aria-hidden":!0,className:t},r,{ownerState:i,children:w.jsx(N5,{ownerState:i,children:o?w.jsx(R0,{children:n}):w.jsx(R0,{className:"notranslate",children:"​"})})}))}const B5=["label","autoFocus","ownerState","notched"],_5=K(Wd,{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 .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sr.focused} .${sr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${sr.disabled}`]:{[`& .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${sr.error} .${sr.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:{[`&.${sr.focused}:not(.${sr.error}) .${sr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),z5=K(og,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),V5=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},A5,t);return _({},t,r)},T1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,s=Ae(r,B5),l=xr(),c=_({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),u=V5(c);return w.jsx(ig,_({slots:{root:_5,input:z5},renderSuffix:d=>w.jsx(F5,{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)?w.jsxs(h.Fragment,{children:[o," ","*"]}):o,ownerState:c})},s,{label:o,classes:u,ref:n}))});T1.muiName="Input";function W5(e){return ye("MuiPickersFilledInput",e)}const Ko=_({},fa,me("MuiPickersFilledInput",["root","underline","input"])),U5=["label","autoFocus","disableUnderline","ownerState"],H5=K(Wd,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_c(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}},[`&.${Ko.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ko.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"},[`&.${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"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),Y5=K(og,{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}}]}),K5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},W5,t);return _({},t,o)},D1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,U5),l=xr(),c=_({},r,a,l,{color:(l==null?void 0:l.color)||"primary"}),u=K5(c);return w.jsx(ig,_({slots:{root:H5,input:Y5},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});D1.muiName="Input";function G5(e){return ye("MuiPickersFilledInput",e)}const Ss=_({},fa,me("MuiPickersInput",["root","input"])),Q5=["label","autoFocus","disableUnderline","ownerState"],X5=K(Wd,{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"},[`&.${Ss.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ss.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(.${Ss.disabled}, .${Ss.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ss.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),q5=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},G5,t);return _({},t,o)},I1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,s=Ae(r,Q5),l=xr(),c=_({},r,a,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),u=q5(c);return w.jsx(ig,_({slots:{root:X5}},s,{label:o,classes:u,ref:n}))});I1.muiName="Input";const Z5=["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"],J5={standard:I1,filled:D1,outlined:T1},eB=K($o,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tB=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ve({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},S5,r)},nB=h.forwardRef(function(t,n){const r=mt({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:g,inputRef:y,sectionListRef:x,elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onPaste:P,onInput:k,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:b,focused:R,value:A,onChange:j,fullWidth:O,id:I,name:T,helperText:N,FormHelperTextProps:D,label:L,InputLabelProps:z}=r,V=Ae(r,Z5),J=h.useRef(null),ce=He(n,J),se=zo(I),H=N&&se?`${se}-helper-text`:void 0,ae=L&&se?`${se}-label`:void 0,ie=_({},r,{color:s,disabled:l,error:c,focused:R,required:d,variant:u}),ee=tB(ie),X=J5[u];return w.jsxs(eB,_({className:pe(ee.root,a),ref:ce,focused:R,onFocus:o,onBlur:i,disabled:l,variant:u,error:c,color:s,fullWidth:O,required:d,ownerState:ie},V,{children:[w.jsx($m,_({htmlFor:se,id:ae},z,{children:L})),w.jsx(X,_({elements:C,areAllSectionsEmpty:p,onClick:m,onKeyDown:v,onKeyUp:S,onInput:k,onPaste:P,endAdornment:M,startAdornment:E,tabIndex:$,contentEditable:b,value:A,onChange:j,id:se,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:x,label:L,name:T,role:"group","aria-labelledby":ae},f)),N&&w.jsx(pw,_({id:H},D,{children:N}))]}))}),rB=["enableAccessibleFieldDOMStructure"],oB=["InputProps","readOnly"],iB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],aB=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ae(e,rB);if(t){const{InputProps:d,readOnly:f}=n,g=Ae(n,oB);return _({},g,{InputProps:_({},d??{},{readOnly:f})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Ae(n,iB);return _({},u,{InputProps:_({},s??{},{readOnly:a}),inputProps:_({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},sB=["slots","slotProps","InputProps","inputProps"],O1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:s}=r,l=Ae(r,sB),c=r,u=(o==null?void 0:o.textField)??(t.enableAccessibleFieldDOMStructure?nB:Fr),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=x5(d),g=aB(f),y=h5(_({},g,{slots:o,slotProps:i}));return w.jsx(u,_({},y))}),$1=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Mi();return h.useCallback(c=>Ul({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])},lB=(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")}},cB=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=gt(),g=h.useRef(lB(!!c,i,f)).current,y=h.useMemo(()=>Vr.getInitialReferenceValue({value:t,utils:f,timezone:d,props:e,referenceDate:n,granularity:Tr.day}),[n,d]),[x,C]=h.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:f.startOfMonth(y),slideDirection:"left"});h.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:f.getTimezone(y)})},[y,f]);const p=h.useCallback(k=>{C(_({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),m=h.useCallback(k=>{const M=k;f.isSameMonth(M,x.currentMonth)||p({newMonth:f.startOfMonth(M),direction:f.isAfterDay(M,x.currentMonth)?"left":"right"})},[x.currentMonth,p,f]),v=$1({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:o,timezone:d}),S=h.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]),P=Se((k,M)=>{v(k)||C({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:M})});return{referenceDate:y,calendarState:x,changeMonth:m,changeFocusedDay:P,isDateDisabled:v,onMonthSwitchingAnimationEnd:S,handleChangeMonth:p}},uB=e=>ye("MuiPickersFadeTransitionGroup",e);me("MuiPickersFadeTransitionGroup",["root"]);const dB=e=>{const{classes:t}=e;return ve({root:["root"]},uB,t)},fB=K(jl,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function A1(e){const t=mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=dB(t),s=vr();return o?n:w.jsx(fB,{className:pe(a.root,r),children:w.jsx(Ha,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}const pB=e=>ye("MuiPickersSlideTransition",e),Vn=me("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),hB=["children","className","reduceAnimations","slideDirection","transKey","classes"],mB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ve(r,pB,t)},gB=K(jl,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Vn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Vn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Vn.slideEnterActive}`]:t.slideEnterActive},{[`.${Vn.slideExit}`]:t.slideExit},{[`.${Vn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Vn["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},[`& .${Vn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Vn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Vn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Vn.slideExit}`]:{transform:"translate(0%)"},[`& .${Vn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Vn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function yB(e){const t=mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Ae(t,hB),s=mB(t),l=vr();if(o)return w.jsx("div",{className:pe(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return w.jsx(gB,{className:pe(s.root,r),childFactory:u=>h.cloneElement(u,{classNames:c}),role:"presentation",children:w.jsx(bm,_({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),i)})}const vB=e=>ye("MuiDayCalendar",e);me("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const xB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],SB=["ownerState"],bB=e=>{const{classes:t}=e;return ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},vB,t)},L1=(Pl+_d*2)*6,wB=K("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CB=K("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),kB=K(Ye,{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})),PB=K(Ye,{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})),EB=K(Ye,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>_({},e.typography.caption,{width:Pl,height:Pl,padding:0,margin:`0 ${_d}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),MB=K("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:L1}),RB=K(yB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:L1}),TB=K("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),DB=K("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${_d}px 0`,display:"flex",justifyContent:"center"});function IB(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=Ae(e,xB);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:f,slots:g,slotProps:y,timezone:x}=t,C=gt(),p=Bd(x),m=r!==null&&C.isSameDay(n,r),v=o.some(A=>C.isSameDay(A,n)),S=C.isSameDay(n,p),P=(g==null?void 0:g.day)??QF,k=Qe({elementType:P,externalSlotProps:y==null?void 0:y.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,SB),E=h.useMemo(()=>c||i(n),[c,i,n]),$=h.useMemo(()=>C.getMonth(n)!==a,[C,n,a]),b=h.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=h.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 w.jsx(P,_({},M,{day:n,disabled:E,autoFocus:s&&m,today:S,outsideCurrentMonth:$,isFirstVisibleCell:b,isLastVisibleCell:R,selected:v,tabIndex:m?0:-1,"aria-selected":v,"aria-current":S?"date":void 0}))}function OB(e){const t=mt({props:e,name:"MuiDayCalendar"}),n=gt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:f,renderLoading:g=()=>w.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:x,disablePast:C,disableFuture:p,minDate:m,maxDate:v,shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:M=te=>n.format(te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:$,gridLabelId:b,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:j,timezone:O}=t,I=Bd(O),T=bB(t),N=rr(),D=$1({shouldDisableDate:S,shouldDisableMonth:P,shouldDisableYear:k,minDate:m,maxDate:v,disablePast:C,disableFuture:p,timezone:O}),L=uo(),[z,V]=io({name:"DayCalendar",state:"hasFocus",controlled:E,default:j??!1}),[J,ce]=h.useState(()=>s||I),se=Se(te=>{d||c(te)}),H=te=>{D(te)||(r(te),ce(te),$==null||$(!0),V(!0))},ae=Se((te,ue)=>{switch(te.key){case"ArrowUp":H(n.addDays(ue,-7)),te.preventDefault();break;case"ArrowDown":H(n.addDays(ue,7)),te.preventDefault();break;case"ArrowLeft":{const Z=n.addDays(ue,N?1:-1),fe=n.addMonths(ue,N?1:-1),ge=Ys({utils:n,date:Z,minDate:N?Z:n.startOfMonth(fe),maxDate:N?n.endOfMonth(fe):Z,isDateDisabled:D,timezone:O});H(ge||Z),te.preventDefault();break}case"ArrowRight":{const Z=n.addDays(ue,N?-1:1),fe=n.addMonths(ue,N?-1:1),ge=Ys({utils:n,date:Z,minDate:N?n.startOfMonth(fe):Z,maxDate:N?Z:n.endOfMonth(fe),isDateDisabled:D,timezone:O});H(ge||Z),te.preventDefault();break}case"Home":H(n.startOfWeek(ue)),te.preventDefault();break;case"End":H(n.endOfWeek(ue)),te.preventDefault();break;case"PageUp":H(n.addMonths(ue,1)),te.preventDefault();break;case"PageDown":H(n.addMonths(ue,-1)),te.preventDefault();break}}),ie=Se((te,ue)=>H(ue)),ee=Se((te,ue)=>{z&&n.isSameDay(J,ue)&&($==null||$(!1))}),X=n.getMonth(i),ne=n.getYear(i),oe=h.useMemo(()=>a.filter(te=>!!te).map(te=>n.startOfDay(te)),[n,a]),W=`${ne}-${X}`,F=h.useMemo(()=>h.createRef(),[W]),Y=h.useMemo(()=>{const te=n.startOfMonth(i),ue=n.endOfMonth(i);return D(J)||n.isAfterDay(J,ue)||n.isBeforeDay(J,te)?Ys({utils:n,date:J,minDate:te,maxDate:ue,disablePast:C,disableFuture:p,isDateDisabled:D,timezone:O}):J},[i,p,C,J,D,n,O]),G=h.useMemo(()=>{const te=n.getWeekArray(i);let ue=n.addMonths(i,1);for(;A&&te.length{te.lengthw.jsx(kB,{variant:"caption",role:"columnheader","aria-label":n.format(te,"weekday"),className:T.weekDayLabel,children:M(te)},ue.toString()))]}),l?w.jsx(MB,{className:T.loadingContainer,children:g()}):w.jsx(RB,_({transKey:W,onExited:u,reduceAnimations:f,slideDirection:y,className:pe(o,T.slideTransition)},x,{nodeRef:F,children:w.jsx(TB,{ref:F,role:"rowgroup",className:T.monthContainer,children:G.map((te,ue)=>w.jsxs(DB,{role:"row",className:T.weekContainer,"aria-rowindex":ue+1,children:[R&&w.jsx(EB,{className:T.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(te[0])),children:L.calendarWeekNumberText(n.getWeekNumber(te[0]))}),te.map((Z,fe)=>w.jsx(IB,{parentProps:t,day:Z,selectedDays:oe,focusableDay:Y,onKeyDown:ae,onFocus:ie,onBlur:ee,onDaySelect:se,isDateDisabled:D,currentMonthNumber:X,isViewFocused:z,"aria-colindex":fe+1},Z.toString()))]},`week-${te[0]}`))})}))]})}function $B(e){return ye("MuiPickersMonth",e)}const Cc=me("MuiPickersMonth",["root","monthButton","disabled","selected"]),AB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],LB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},$B,r)},jB=K("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%"}}]}),NB=K("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cc.disabled}`]:t.disabled},{[`&.${Cc.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})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FB=h.memo(function(t){const n=mt({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:g,"aria-current":y,"aria-label":x,slots:C,slotProps:p}=n,m=Ae(n,AB),v=h.useRef(null),S=LB(n);Vt(()=>{var M;r&&((M=v.current)==null||M.focus())},[r]);const P=(C==null?void 0:C.monthButton)??NB,k=Qe({elementType:P,externalSlotProps:p==null?void 0:p.monthButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:v,type:"button",role:"radio","aria-current":y,"aria-checked":s,"aria-label":x,onClick:M=>u(M,l),onKeyDown:M=>d(M,l),onFocus:M=>f(M,l),onBlur:M=>g(M,l)},ownerState:n,className:S.monthButton});return w.jsx(jB,_({className:pe(S.root,o),ownerState:n},m,{children:w.jsx(P,_({},k))}))});function BB(e){return ye("MuiMonthCalendar",e)}me("MuiMonthCalendar",["root"]);const _B=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],zB=e=>{const{classes:t}=e;return ve({root:["root"]},BB,t)};function VB(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return _({disableFuture:!1,disablePast:!1},o,{minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate)})}const WB=K("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zd,boxSizing:"border-box"}),UB=h.forwardRef(function(t,n){const r=VB(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:f,onChange:g,shouldDisableMonth:y,readOnly:x,autoFocus:C=!1,onMonthFocus:p,hasFocus:m,onFocusedViewChange:v,monthsPerRow:S=3,timezone:P,gridLabelId:k,slots:M,slotProps:E}=r,$=Ae(r,_B),{value:b,handleValueChange:R,timezone:A}=tg({name:"MonthCalendar",timezone:P,value:i,defaultValue:a,referenceDate:s,onChange:g,valueManager:Vr}),j=Bd(A),O=rr(),I=gt(),T=h.useMemo(()=>Vr.getInitialReferenceValue({value:b,utils:I,props:r,timezone:A,referenceDate:s,granularity:Tr.month}),[]),N=r,D=zB(N),L=h.useMemo(()=>I.getMonth(j),[I,j]),z=h.useMemo(()=>b!=null?I.getMonth(b):null,[b,I]),[V,J]=h.useState(()=>z||I.getMonth(T)),[ce,se]=io({name:"MonthCalendar",state:"hasFocus",controlled:m,default:C??!1}),H=Se(W=>{se(W),v&&v(W)}),ae=h.useCallback(W=>{const F=I.startOfMonth(u&&I.isAfter(j,f)?j:f),Y=I.startOfMonth(c&&I.isBefore(j,d)?j:d),G=I.startOfMonth(W);return I.isBefore(G,F)||I.isAfter(G,Y)?!0:y?y(G):!1},[c,u,d,f,j,y,I]),ie=Se((W,F)=>{if(x)return;const Y=I.setMonth(b??T,F);R(Y)}),ee=Se(W=>{ae(I.setMonth(b??T,W))||(J(W),H(!0),p&&p(W))});h.useEffect(()=>{J(W=>z!==null&&W!==z?z:W)},[z]);const X=Se((W,F)=>{switch(W.key){case"ArrowUp":ee((12+F-3)%12),W.preventDefault();break;case"ArrowDown":ee((12+F+3)%12),W.preventDefault();break;case"ArrowLeft":ee((12+F+(O?1:-1))%12),W.preventDefault();break;case"ArrowRight":ee((12+F+(O?-1:1))%12),W.preventDefault();break}}),ne=Se((W,F)=>{ee(F)}),oe=Se((W,F)=>{V===F&&H(!1)});return w.jsx(WB,_({ref:n,className:pe(D.root,o),ownerState:N,role:"radiogroup","aria-labelledby":k},$,{children:Zm(I,b??T).map(W=>{const F=I.getMonth(W),Y=I.format(W,"monthShort"),G=I.format(W,"month"),te=F===z,ue=l||ae(W);return w.jsx(FB,{selected:te,value:F,onClick:ie,onKeyDown:X,autoFocus:ce&&F===V,disabled:ue,tabIndex:F===V&&!ue?0:-1,onFocus:ne,onBlur:oe,"aria-current":L===F?"date":void 0,"aria-label":G,monthsPerRow:S,slots:M,slotProps:E,children:Y},Y)})}))});function HB(e){return ye("MuiPickersYear",e)}const kc=me("MuiPickersYear",["root","yearButton","selected","disabled"]),YB=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],KB=e=>{const{disabled:t,selected:n,classes:r}=e;return ve({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},HB,r)},GB=K("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%"}}]}),QB=K("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${kc.disabled}`]:t.disabled},{[`&.${kc.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})`:Be(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),XB=h.memo(function(t){const n=mt({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:g,"aria-current":y,slots:x,slotProps:C}=n,p=Ae(n,YB),m=h.useRef(null),v=KB(n);Vt(()=>{var k;r&&((k=m.current)==null||k.focus())},[r]);const S=(x==null?void 0:x.yearButton)??QB,P=Qe({elementType:S,externalSlotProps:C==null?void 0:C.yearButton,additionalProps:{children:i,disabled:a,tabIndex:c,ref:m,type:"button",role:"radio","aria-current":y,"aria-checked":s,onClick:k=>u(k,l),onKeyDown:k=>d(k,l),onFocus:k=>f(k,l),onBlur:k=>g(k,l)},ownerState:n,className:v.yearButton});return w.jsx(GB,_({className:pe(v.root,o),ownerState:n},p,{children:w.jsx(S,_({},P))}))});function qB(e){return ye("MuiYearCalendar",e)}me("MuiYearCalendar",["root"]);const ZB=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],JB=e=>{const{classes:t}=e;return ve({root:["root"]},qB,t)};function e4(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t});return _({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate)})}const t4=K("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zd,maxHeight:yF,boxSizing:"border-box",position:"relative"}),n4=h.forwardRef(function(t,n){const r=e4(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onChange:y,readOnly:x,shouldDisableYear:C,onYearFocus:p,hasFocus:m,onFocusedViewChange:v,yearsOrder:S="asc",yearsPerRow:P,timezone:k,gridLabelId:M,slots:E,slotProps:$}=r,b=Ae(r,ZB),{value:R,handleValueChange:A,timezone:j}=tg({name:"YearCalendar",timezone:k,value:a,defaultValue:s,referenceDate:l,onChange:y,valueManager:Vr}),O=Bd(j),I=rr(),T=gt(),N=h.useMemo(()=>Vr.getInitialReferenceValue({value:R,utils:T,props:r,timezone:j,referenceDate:l,granularity:Tr.year}),[]),D=r,L=JB(D),z=h.useMemo(()=>T.getYear(O),[T,O]),V=h.useMemo(()=>R!=null?T.getYear(R):null,[R,T]),[J,ce]=h.useState(()=>V||T.getYear(N)),[se,H]=io({name:"YearCalendar",state:"hasFocus",controlled:m,default:o??!1}),ae=Se(Z=>{H(Z),v&&v(Z)}),ie=h.useCallback(Z=>{if(d&&T.isBeforeYear(Z,O)||u&&T.isAfterYear(Z,O)||g&&T.isBeforeYear(Z,g)||f&&T.isAfterYear(Z,f))return!0;if(!C)return!1;const fe=T.startOfYear(Z);return C(fe)},[u,d,f,g,O,C,T]),ee=Se((Z,fe)=>{if(x)return;const ge=T.setYear(R??N,fe);A(ge)}),X=Se(Z=>{ie(T.setYear(R??N,Z))||(ce(Z),ae(!0),p==null||p(Z))});h.useEffect(()=>{ce(Z=>V!==null&&Z!==V?V:Z)},[V]);const ne=S!=="desc"?P*1:P*-1,oe=I&&S==="asc"||!I&&S==="desc"?-1:1,W=Se((Z,fe)=>{switch(Z.key){case"ArrowUp":X(fe-ne),Z.preventDefault();break;case"ArrowDown":X(fe+ne),Z.preventDefault();break;case"ArrowLeft":X(fe-oe),Z.preventDefault();break;case"ArrowRight":X(fe+oe),Z.preventDefault();break}}),F=Se((Z,fe)=>{X(fe)}),Y=Se((Z,fe)=>{J===fe&&ae(!1)}),G=h.useRef(null),te=He(n,G);h.useEffect(()=>{if(o||G.current===null)return;const Z=G.current.querySelector('[tabindex="0"]');if(!Z)return;const fe=Z.offsetHeight,ge=Z.offsetTop,Le=G.current.clientHeight,xe=G.current.scrollTop,tt=ge+fe;fe>Le||ge{const fe=T.getYear(Z),ge=fe===V,Le=c||ie(Z);return w.jsx(XB,{selected:ge,value:fe,onClick:ee,onKeyDown:W,autoFocus:se&&fe===J,disabled:Le,tabIndex:fe===J&&!Le?0:-1,onFocus:F,onBlur:Y,"aria-current":z===fe?"date":void 0,yearsPerRow:P,slots:E,slotProps:$,children:T.format(Z,"year")},T.format(Z,"year"))})}))}),r4=e=>ye("MuiPickersCalendarHeader",e),o4=me("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),i4=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],a4=["ownerState"],s4=e=>{const{classes:t}=e;return ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},r4,t)},l4=K("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}),c4=K("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})),u4=K("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),d4=K(Wa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${o4.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),f4=K(ZN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),p4=h.forwardRef(function(t,n){const r=uo(),o=gt(),i=mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:g,onMonthChange:y,onViewChange:x,view:C,reduceAnimations:p,views:m,labelId:v,className:S,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=i,M=Ae(i,i4),E=i,$=s4(i),b=(a==null?void 0:a.switchViewButton)??d4,R=Qe({elementType:b,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(C)},ownerState:E,className:$.switchViewButton}),A=(a==null?void 0:a.switchViewIcon)??f4,j=Qe({elementType:A,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:E,className:$.switchViewIcon}),O=Ae(j,a4),I=()=>y(o.addMonths(l,1),"left"),T=()=>y(o.addMonths(l,-1),"right"),N=mF(l,{disableFuture:u,maxDate:f,timezone:P}),D=gF(l,{disablePast:d,minDate:g,timezone:P}),L=()=>{if(!(m.length===1||!x||c))if(m.length===2)x(m.find(V=>V!==C)||m[0]);else{const V=m.indexOf(C)!==0?0:1;x(m[V])}};if(m.length===1&&m[0]==="year")return null;const z=o.formatByString(l,k);return w.jsxs(l4,_({},M,{ownerState:E,className:pe($.root,S),ref:n,children:[w.jsxs(c4,{role:"presentation",onClick:L,ownerState:E,"aria-live":"polite",className:$.labelContainer,children:[w.jsx(A1,{reduceAnimations:p,transKey:z,children:w.jsx(u4,{id:v,ownerState:E,className:$.label,children:z})}),m.length>1&&!c&&w.jsx(b,_({},R,{children:w.jsx(A,_({},O))}))]}),w.jsx(Ha,{in:C==="day",children:w.jsx(uF,{slots:a,slotProps:s,onGoToPrevious:T,isPreviousDisabled:D,previousLabel:r.previousMonth,onGoToNext:I,isNextDisabled:N,nextLabel:r.nextMonth})})]}))}),h4="@media (prefers-reduced-motion: reduce)",pa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),T0=pa&&pa[1]?parseInt(pa[1],10):null,D0=pa&&pa[2]?parseInt(pa[2],10):null,m4=T0&&T0<10||D0&&D0<13||!1,j1=()=>Id(h4,{defaultMatches:!1})||m4,g4=e=>ye("MuiDateCalendar",e);me("MuiDateCalendar",["root","viewTransitionContainer"]);const y4=["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"],v4=e=>{const{classes:t}=e;return ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},g4,t)};function x4(e,t){const n=gt(),r=Wl(),o=j1(),i=mt({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??(()=>w.jsx("span",{children:"..."})),minDate:tr(n,i.minDate,r.minDate),maxDate:tr(n,i.maxDate,r.maxDate)})}const S4=K(vF,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:qm}),b4=K(A1,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),w4=h.forwardRef(function(t,n){const r=gt(),o=zo(),i=x4(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:f,onChange:g,onYearChange:y,onMonthChange:x,reduceAnimations:C,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,view:S,views:P,openTo:k,className:M,disabled:E,readOnly:$,minDate:b,maxDate:R,disableHighlightToday:A,focusedView:j,onFocusedViewChange:O,showDaysOutsideCurrentMonth:I,fixedWeekNumber:T,dayOfWeekFormatter:N,slots:D,slotProps:L,loading:z,renderLoading:V,displayWeekNumber:J,yearsOrder:ce,yearsPerRow:se,monthsPerRow:H,timezone:ae}=i,ie=Ae(i,y4),{value:ee,handleValueChange:X,timezone:ne}=tg({name:"DateCalendar",timezone:ae,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:Vr}),{view:oe,setView:W,focusedView:F,setFocusedView:Y,goToNextView:G,setValueAndGoToNextView:te}=d1({view:S,views:P,openTo:k,onChange:X,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:O}),{referenceDate:ue,calendarState:Z,changeFocusedDay:fe,changeMonth:ge,handleChangeMonth:Le,isDateDisabled:xe,onMonthSwitchingAnimationEnd:tt}=cB({value:ee,referenceDate:u,reduceAnimations:C,onMonthChange:x,minDate:b,maxDate:R,shouldDisableDate:p,disablePast:f,disableFuture:d,timezone:ne}),Ee=E&&ee||b,_e=E&&ee||R,ct=`${o}-grid-label`,je=F!==null,Oe=(D==null?void 0:D.calendarHeader)??p4,ft=Qe({elementType:Oe,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:P,view:oe,currentMonth:Z.currentMonth,onViewChange:W,onMonthChange:(nt,fn)=>Le({newMonth:nt,direction:fn}),minDate:Ee,maxDate:_e,disabled:E,disablePast:f,disableFuture:d,reduceAnimations:C,timezone:ne,labelId:ct},ownerState:i}),$t=Se(nt=>{const fn=r.startOfMonth(nt),Wr=r.endOfMonth(nt),br=xe(nt)?Ys({utils:r,date:nt,minDate:r.isBefore(b,fn)?fn:b,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),x==null||x(fn)):(G(),ge(fn)),fe(br,!0)}),Ne=Se(nt=>{const fn=r.startOfYear(nt),Wr=r.endOfYear(nt),br=xe(nt)?Ys({utils:r,date:nt,minDate:r.isBefore(b,fn)?fn:b,maxDate:r.isAfter(R,Wr)?Wr:R,disablePast:f,disableFuture:d,isDateDisabled:xe,timezone:ne}):nt;br?(te(br,"finish"),y==null||y(br)):(G(),ge(fn)),fe(br,!0)}),at=Se(nt=>X(nt&&Ou(r,nt,ee??ue),"finish",oe));h.useEffect(()=>{ee!=null&&r.isValid(ee)&&ge(ee)},[ee]);const zn=i,fo=v4(zn),Me={disablePast:f,disableFuture:d,maxDate:R,minDate:b},qe={disableHighlightToday:A,readOnly:$,disabled:E,timezone:ne,gridLabelId:ct,slots:D,slotProps:L},yt=h.useRef(oe);h.useEffect(()=>{yt.current!==oe&&(F===yt.current&&Y(oe,!0),yt.current=oe)},[F,Y,oe]);const Cn=h.useMemo(()=>[ee],[ee]);return w.jsxs(S4,_({ref:n,className:pe(fo.root,M),ownerState:zn},ie,{children:[w.jsx(Oe,_({},ft,{slots:D,slotProps:L})),w.jsx(b4,{reduceAnimations:C,className:fo.viewTransitionContainer,transKey:oe,ownerState:zn,children:w.jsxs("div",{children:[oe==="year"&&w.jsx(n4,_({},Me,qe,{value:ee,onChange:Ne,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>Y("year",nt),yearsOrder:ce,yearsPerRow:se,referenceDate:ue})),oe==="month"&&w.jsx(UB,_({},Me,qe,{hasFocus:je,className:M,value:ee,onChange:$t,shouldDisableMonth:m,onFocusedViewChange:nt=>Y("month",nt),monthsPerRow:H,referenceDate:ue})),oe==="day"&&w.jsx(OB,_({},Z,Me,qe,{onMonthSwitchingAnimationEnd:tt,onFocusedDayChange:fe,reduceAnimations:C,selectedDays:Cn,onSelectedDaysChange:at,shouldDisableDate:p,shouldDisableMonth:m,shouldDisableYear:v,hasFocus:je,onFocusedViewChange:nt=>Y("day",nt),showDaysOutsideCurrentMonth:I,fixedWeekNumber:T,dayOfWeekFormatter:N,displayWeekNumber:J,loading:z,renderLoading:V}))]})})]}))});function C4(e){return ye("MuiPickersToolbar",e)}me("MuiPickersToolbar",["root","content"]);const k4=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],P4=e=>{const{classes:t}=e;return ve({root:["root"],content:["content"]},C4,t)},E4=K("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"}}]})),M4=K("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"}}]}),R4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:s,titleId:l}=r,c=Ae(r,k4),u=r,d=P4(u);return s?null:w.jsxs(E4,_({ref:n,className:pe(d.root,i),ownerState:u},c,{children:[w.jsx(Ye,{color:"text.secondary",variant:"overline",id:l,children:a}),w.jsx(M4,{className:d.content,ownerState:u,children:o})]}))});function T4(e){return ye("MuiDatePickerToolbar",e)}me("MuiDatePickerToolbar",["root","title"]);const D4=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],I4=e=>{const{classes:t}=e;return ve({root:["root"],title:["title"]},T4,t)},O4=K(R4,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$4=K(Ye,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),A4=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Ae(r,D4),d=gt(),f=uo(),g=I4(r),y=h.useMemo(()=>{if(!o)return s;const C=Jm(d,{format:a,views:l},!0);return d.formatByString(o,C)},[o,a,s,d,l]),x=r;return w.jsx(O4,_({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:pe(g.root,c)},u,{children:w.jsx($4,{variant:"h4",align:i?"left":"center",ownerState:x,className:g.title,children:y})}))});function N1(e,t){const n=gt(),r=Wl(),o=mt({props:e,name:t}),i=h.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},dF({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:tr(n,o.minDate,r.minDate),maxDate:tr(n,o.maxDate,r.maxDate),slots:_({toolbar:A4},o.slots)})}function L4(e){return ye("MuiPickersPopper",e)}me("MuiPickersPopper",["root","paper"]);const j4=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],N4=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},L4,t)},F4=K(Q2,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),B4=K(yr,{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 _4(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=zt(o.current);if(!o.current||"clientX"in l&&_4(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 h.useEffect(()=>{if(e){const l=zt(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]),h.useEffect(()=>{if(e){const l=zt(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const V4=h.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ae(e,j4),d=_({},o,{placement:r}),f=Qe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return w.jsx(n,_({},u,f,{onClick:g=>{var y;l(g),(y=f.onClick)==null||y.call(f,g)},onTouchStart:g=>{var y;c(g),(y=f.onTouchStart)==null||y.call(f,g)},ownerState:d,children:i}))});function W4(e){const t=mt({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:g}=t;h.useEffect(()=>{function I(T){l&&T.key==="Escape"&&s()}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[s,l]);const y=h.useRef(null);h.useEffect(()=>{c==="tooltip"||i&&!i()||(l?y.current=Mn(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[l,c,i]);const[x,C,p]=z4(l,a??s),m=h.useRef(null),v=He(m,o),S=He(v,x),P=t,k=N4(P),M=j1(),E=g??M,$=I=>{I.key==="Escape"&&(I.stopPropagation(),s())},b=(d==null?void 0:d.desktopTransition)??E?Ha:Sl,R=(d==null?void 0:d.desktopTrapFocus)??uw,A=(d==null?void 0:d.desktopPaper)??B4,j=(d==null?void 0:d.popper)??F4,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 w.jsx(j,_({},O,{children:({TransitionProps:I,placement:T})=>w.jsx(R,_({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},f==null?void 0:f.desktopTrapFocus,{children:w.jsx(b,_({},I,f==null?void 0:f.desktopTransition,{children:w.jsx(V4,{PaperComponent:A,ownerState:P,popperPlacement:T,ref:S,onPaperClick:C,onPaperTouchStart:p,paperClasses:k.paper,paperSlotProps:f==null?void 0:f.desktopPaper,children:r})}))}))}))}const U4=({open:e,onOpen:t,onClose:n})=>{const r=h.useRef(typeof e=="boolean").current,[o,i]=h.useState(!1);h.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=h.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},H4=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},Y4=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},K4=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},G4=({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}=h.useRef(l),{current:g}=h.useRef(s!==void 0),[y,x]=h.useState(u),C=gt(),p=Mi(),{isOpen:m,setIsOpen:v}=U4(e),{timezone:S,value:P,handleValueChange:k}=eg({timezone:u,value:s,defaultValue:f,referenceDate:d,onChange:a,valueManager:t}),[M,E]=h.useState(()=>{let X;return P!==void 0?X=P:f!==void 0?X=f:X=t.emptyValue,{draft:X,lastPublishedValue:X,lastCommittedValue:X,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(C,M.draft);y!==u&&(x(u),u&&$&&u!==$&&E(X=>_({},X,{draft:t.setTimezone(C,u,X.draft)})));const{getValidationErrorForNewValue:b}=C1({props:e,validator:o,timezone:S,value:M.draft,onError:e.onError}),R=Se(X=>{const ne={action:X,dateState:M,hasChanged:te=>!t.areValuesEqual(C,X.value,te),isControlled:g,closeOnSelect:c},oe=H4(ne),W=Y4(ne),F=K4(ne);E(te=>_({},te,{draft:X.value,lastPublishedValue:oe?X.value:te.lastPublishedValue,lastCommittedValue:W?X.value:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const G=()=>(Y||(Y={validationError:X.name==="setValueFromField"?X.context.validationError:b(X.value)},X.name==="setValueFromShortcut"&&(Y.shortcut=X.shortcut)),Y);oe&&k(X.value,G()),W&&i&&i(X.value,G()),F&&v(!1)});if(M.lastControlledValue!==s){const X=t.areValuesEqual(C,M.draft,P);E(ne=>_({},ne,{lastControlledValue:s},X?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,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"})}),I=Se(()=>{R({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=Se(()=>{R({value:t.getTodayValue(C,S,n),name:"setValueFromAction",pickerAction:"today"})}),N=Se(X=>{X.preventDefault(),v(!0)}),D=Se(X=>{X==null||X.preventDefault(),v(!1)}),L=Se((X,ne="partial")=>R({name:"setValueFromView",value:X,selectionState:ne})),z=Se((X,ne,oe)=>R({name:"setValueFromShortcut",value:X,changeImportance:ne,shortcut:oe})),V=Se((X,ne)=>R({name:"setValueFromField",value:X,context:ne})),J={onClear:A,onAccept:j,onDismiss:O,onCancel:I,onSetToday:T,onOpen:N,onClose:D},ce={value:M.draft,onChange:V},se=h.useMemo(()=>t.cleanValue(C,M.draft),[C,t,M.draft]),H={value:se,onChange:L,onClose:D,open:m},ie=_({},J,{value:se,onChange:L,onSelectShortcut:z,isValid:X=>{const ne=o({adapter:p,value:X,timezone:S,props:e});return!t.hasError(ne)}}),ee=h.useMemo(()=>({onOpen:N,onClose:D,open:m}),[m,D,N]);return{open:m,fieldProps:ce,viewProps:H,layoutProps:ie,actions:J,contextValue:ee}},Q4=["className","sx"],X4=({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:g,timezone:y}=e,x=Ae(e,Q4),{view:C,setView:p,defaultView:m,focusedView:v,setFocusedView:S,setValueAndGoToNextView:P}=d1({view:c,views:u,openTo:d,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:k,viewModeLookup:M}=h.useMemo(()=>u.reduce((O,I)=>{let T;return g[I]!=null?T="UI":T="field",O.viewModeLookup[I]=T,T==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[g,u]),E=h.useMemo(()=>u.reduce((O,I)=>g[I]!=null&&pF(I)?O+1:O,0),[g,u]),$=M[C],b=Se(()=>$==="UI"),[R,A]=h.useState($==="UI"?C:null);return R!==C&&M[C]==="UI"&&A(C),Vt(()=>{$==="field"&&s&&(l(),setTimeout(()=>{var O,I;(O=i==null?void 0:i.current)==null||O.setSelectedSections(C),(I=i==null?void 0:i.current)==null||I.focusField(C)}))},[C]),Vt(()=>{if(!s)return;let O=C;$==="field"&&R!=null&&(O=R),O!==m&&M[O]==="UI"&&M[m]==="UI"&&(O=m),O!==C&&p(O),S(O,!0)},[s]),{hasUIView:k,shouldRestoreFocus:b,layoutProps:{views:u,view:R,onViewChange:p},renderCurrentView:()=>{if(R==null)return null;const O=g[R];if(O==null)return null;const I=_({},x,n,t,{views:u,timezone:y,onChange:P,view:R,onViewChange:p,focusedView:v,onFocusedViewChange:S,showViewSwitcher:E>1,timeViewsCount:E});return o?o(g,R,I):O(I)}}};function I0(){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 q4=(e,t)=>{const[n,r]=h.useState(I0);return Vt(()=>{const i=()=>{r(I0())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),_F(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Z4=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=q4(n.views,o),a=rr();return{layoutProps:_({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function J4(e){const{props:t,pickerValueResponse:n}=e;return h.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 F1=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=G4({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=X4({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=Z4({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),f=J4({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 B1(e){return ye("MuiPickersLayout",e)}const Go=me("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),e_=["onAccept","onClear","onCancel","onSetToday","actions"];function t_(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=Ae(e,e_),s=uo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return w.jsx(Tt,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return w.jsx(Tt,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return w.jsx(Tt,{onClick:t,children:s.okButtonLabel},c);case"today":return w.jsx(Tt,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return w.jsx(EO,_({},a,{children:l}))}const n_=["items","changeImportance","isLandscape","onChange","isValid"],r_=["getValue"];function o_(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=Ae(e,n_);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Ae(s,r_);const u=l({isValid:o});return _({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return w.jsx(mw,_({dense:!0,sx:[{maxHeight:qm,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(s=>w.jsx(T$,{children:w.jsx(tI,_({},s))},s.id??s.label))}))}function i_(e){return e.view!==null}const a_=e=>{const{classes:t,isLandscape:n}=e;return ve({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},B1,t)},s_=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:g,disabled:y,readOnly:x,children:C,slots:p,slotProps:m}=e,v=a_(e),S=(p==null?void 0:p.actionBar)??t_,P=Qe({elementType:S,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=w.jsx(S,_({},P)),M=p==null?void 0:p.toolbar,E=Qe({elementType:M,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:g,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:y,readOnly:x},className:v.toolbar,ownerState:_({},e,{wrapperVariant:t})}),$=i_(E)&&M?w.jsx(M,_({},E)):null,b=C,R=p==null?void 0:p.tabs,A=a&&R?w.jsx(R,_({view:a,onViewChange:l,className:v.tabs},m==null?void 0:m.tabs)):null,j=(p==null?void 0:p.shortcuts)??o_,O=Qe({elementType:j,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:f,isLandscape:g,onChange:d},className:v.shortcuts,ownerState:{isValid:f,isLandscape:g,onChange:d,wrapperVariant:t}}),I=a&&j?w.jsx(j,_({},O)):null;return{toolbar:$,content:b,tabs:A,actionBar:k,shortcuts:I}},l_=e=>{const{isLandscape:t,classes:n}=e;return ve({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},B1,n)},c_=K("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Go.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Go.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Go.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Go.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Go.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Go.shortcuts}`]:{gridColumn:3}}}]}),u_=K("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),_1=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l}=s_(r),{sx:c,className:u,isLandscape:d,wrapperVariant:f}=r,g=l_(r);return w.jsxs(c_,{ref:n,sx:c,className:pe(g.root,u),ownerState:r,children:[d?l:o,d?o:l,w.jsx(u_,{className:g.contentWrapper,children:f==="desktop"?w.jsxs(h.Fragment,{children:[i,a]}):w.jsxs(h.Fragment,{children:[a,i]})}),s]})}),d_=["props","getOpenDialogAriaText"],f_=["ownerState"],p_=["ownerState"],h_=e=>{var G;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,d_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:y,label:x,inputRef:C,readOnly:p,disabled:m,autoFocus:v,localeText:S,reduceAnimations:P}=t,k=h.useRef(null),M=h.useRef(null),E=zo(),$=((G=i==null?void 0:i.toolbar)==null?void 0:G.hidden)??!1,{open:b,actions:R,hasUIView:A,layoutProps:j,renderCurrentView:O,shouldRestoreFocus:I,fieldProps:T,contextValue:N,ownerState:D}=F1(_({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??hw,z=Qe({elementType:L,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=Ae(z,f_),J=o.openPickerButton??Wa,ce=Qe({elementType:J,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:m||p,onClick:b?R.onClose:R.onOpen,"aria-label":n(T.value),edge:V.position},ownerState:t}),se=Ae(ce,p_),H=o.openPickerIcon,ae=Qe({elementType:H,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:D}),ie=o.field,ee=Qe({elementType:ie,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},T,$&&{id:E},{readOnly:p,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:x,name:y,autoFocus:v&&!t.open,focused:b?!0:void 0},C?{inputRef:C}:{}),ownerState:t});A&&(ee.InputProps=_({},ee.InputProps,{ref:k},!t.disableOpenPicker&&{[`${V.position}Adornment`]:w.jsx(L,_({},V,{children:w.jsx(J,_({},se,{children:w.jsx(H,_({},ae))}))}))}));const X=_({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ee.slots),ne=o.layout??_1;let oe=E;$&&(x?oe=`${E}-label`:oe=void 0);const W=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:E}),popper:_({"aria-labelledby":oe},i==null?void 0:i.popper)}),F=He(M,ee.unstableFieldRef);return{renderPicker:()=>w.jsxs(k1,{contextValue:N,localeText:S,children:[w.jsx(ie,_({},ee,{slots:X,slotProps:W,unstableFieldRef:F})),w.jsx(W4,_({role:"dialog",placement:"bottom-start",anchorEl:k.current},R,{open:b,slots:o,slotProps:W,shouldRestoreFocus:I,reduceAnimations:P,children:w.jsx(ne,_({},j,W==null?void 0:W.layout,{slots:o,slotProps:W,children:O()}))}))]})}},ha=({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:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:b,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V})=>w.jsx(w4,{view:e,onViewChange:t,views:n.filter(b0),focusedView:r&&b0(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:f,minDate:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:p,reduceAnimations:m,onMonthChange:v,monthsPerRow:S,onYearChange:P,yearsOrder:k,yearsPerRow:M,slots:E,slotProps:$,loading:b,renderLoading:R,disableHighlightToday:A,readOnly:j,disabled:O,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:N,autoFocus:D,fixedWeekNumber:L,displayWeekNumber:z,timezone:V}),z1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=N1(t,"MuiDesktopDatePicker"),a=_({day:ha,month:ha,year:ha},i.viewRenderers),s=_({},i,{viewRenderers:a,format:Jm(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:_({openPickerIcon:tF,field:O1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},bd((f=i.slotProps)==null?void 0:f.field,d),w1(i),{ref:n})},toolbar:_({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=h_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:c1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});z1.propTypes={autoFocus:q.bool,className:q.string,closeOnSelect:q.bool,dayOfWeekFormatter:q.func,defaultValue:q.object,disabled:q.bool,disableFuture:q.bool,disableHighlightToday:q.bool,disableOpenPicker:q.bool,disablePast:q.bool,displayWeekNumber:q.bool,enableAccessibleFieldDOMStructure:q.any,fixedWeekNumber:q.number,format:q.string,formatDensity:q.oneOf(["dense","spacious"]),inputRef:Db,label:q.node,loading:q.bool,localeText:q.object,maxDate:q.object,minDate:q.object,monthsPerRow:q.oneOf([3,4]),name:q.string,onAccept:q.func,onChange:q.func,onClose:q.func,onError:q.func,onMonthChange:q.func,onOpen:q.func,onSelectedSectionsChange:q.func,onViewChange:q.func,onYearChange:q.func,open:q.bool,openTo:q.oneOf(["day","month","year"]),orientation:q.oneOf(["landscape","portrait"]),readOnly:q.bool,reduceAnimations:q.bool,referenceDate:q.object,renderLoading:q.func,selectedSections:q.oneOfType([q.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),q.number]),shouldDisableDate:q.func,shouldDisableMonth:q.func,shouldDisableYear:q.func,showDaysOutsideCurrentMonth:q.bool,slotProps:q.object,slots:q.object,sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),timezone:q.string,value:q.object,view:q.oneOf(["day","month","year"]),viewRenderers:q.shape({day:q.func,month:q.func,year:q.func}),views:q.arrayOf(q.oneOf(["day","month","year"]).isRequired),yearsOrder:q.oneOf(["asc","desc"]),yearsPerRow:q.oneOf([3,4])};const m_=K(wO)({[`& .${Us.container}`]:{outline:0},[`& .${Us.paper}`]:{outline:0,minWidth:zd}}),g_=K(IO)({"&:first-of-type":{padding:0}});function y_(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=(o==null?void 0:o.dialog)??m_,s=(o==null?void 0:o.mobileTransition)??Ha;return w.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:w.jsx(g_,{children:t})}))}const v_=["props","getOpenDialogAriaText"],x_=e=>{var V;let{props:t,getOpenDialogAriaText:n}=e,r=Ae(e,v_);const{slots:o,slotProps:i,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,name:y,label:x,inputRef:C,readOnly:p,disabled:m,localeText:v}=t,S=h.useRef(null),P=zo(),k=((V=i==null?void 0:i.toolbar)==null?void 0:V.hidden)??!1,{open:M,actions:E,layoutProps:$,renderCurrentView:b,fieldProps:R,contextValue:A}=F1(_({},r,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,O=Qe({elementType:j,externalSlotProps:i==null?void 0:i.field,additionalProps:_({},R,k&&{id:P},!(m||p)&&{onClick:E.onOpen,onKeyDown:zF(E.onOpen)},{readOnly:p??!0,disabled:m,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:f,timezone:g,label:x,name:y},C?{inputRef:C}:{}),ownerState:t});O.inputProps=_({},O.inputProps,{"aria-label":n(R.value)});const I=_({textField:o.textField},O.slots),T=o.layout??_1;let N=P;k&&(x?N=`${P}-label`:N=void 0);const D=_({},i,{toolbar:_({},i==null?void 0:i.toolbar,{titleId:P}),mobilePaper:_({"aria-labelledby":N},i==null?void 0:i.mobilePaper)}),L=He(S,O.unstableFieldRef);return{renderPicker:()=>w.jsxs(k1,{contextValue:A,localeText:v,children:[w.jsx(j,_({},O,{slots:I,slotProps:D,unstableFieldRef:L})),w.jsx(y_,_({},E,{open:M,slots:o,slotProps:D,children:w.jsx(T,_({},$,D==null?void 0:D.layout,{slots:o,slotProps:D,children:b()}))}))]})}},V1=h.forwardRef(function(t,n){var c,u;const r=uo(),o=gt(),i=N1(t,"MuiMobileDatePicker"),a=_({day:ha,month:ha,year:ha},i.viewRenderers),s=_({},i,{viewRenderers:a,format:Jm(o,i,!1),slots:_({field:O1},i.slots),slotProps:_({},i.slotProps,{field:d=>{var f;return _({},bd((f=i.slotProps)==null?void 0:f.field,d),w1(i),{ref:n})},toolbar:_({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=x_({props:s,valueManager:Vr,valueType:"date",getOpenDialogAriaText:c1({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(u=s.localeText)==null?void 0:u.openDatePickerDialogue}),validator:Ul});return l()});V1.propTypes={autoFocus:q.bool,className:q.string,closeOnSelect:q.bool,dayOfWeekFormatter:q.func,defaultValue:q.object,disabled:q.bool,disableFuture:q.bool,disableHighlightToday:q.bool,disableOpenPicker:q.bool,disablePast:q.bool,displayWeekNumber:q.bool,enableAccessibleFieldDOMStructure:q.any,fixedWeekNumber:q.number,format:q.string,formatDensity:q.oneOf(["dense","spacious"]),inputRef:Db,label:q.node,loading:q.bool,localeText:q.object,maxDate:q.object,minDate:q.object,monthsPerRow:q.oneOf([3,4]),name:q.string,onAccept:q.func,onChange:q.func,onClose:q.func,onError:q.func,onMonthChange:q.func,onOpen:q.func,onSelectedSectionsChange:q.func,onViewChange:q.func,onYearChange:q.func,open:q.bool,openTo:q.oneOf(["day","month","year"]),orientation:q.oneOf(["landscape","portrait"]),readOnly:q.bool,reduceAnimations:q.bool,referenceDate:q.object,renderLoading:q.func,selectedSections:q.oneOfType([q.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),q.number]),shouldDisableDate:q.func,shouldDisableMonth:q.func,shouldDisableYear:q.func,showDaysOutsideCurrentMonth:q.bool,slotProps:q.object,slots:q.object,sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),timezone:q.string,value:q.object,view:q.oneOf(["day","month","year"]),viewRenderers:q.shape({day:q.func,month:q.func,year:q.func}),views:q.arrayOf(q.oneOf(["day","month","year"]).isRequired),yearsOrder:q.oneOf(["asc","desc"]),yearsPerRow:q.oneOf([3,4])};const S_=["desktopModeMediaQuery"],O0=h.forwardRef(function(t,n){const r=mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=VF}=r,i=Ae(r,S_);return Id(o,{defaultMatches:!0})?w.jsx(z1,_({ref:n},i)):w.jsx(V1,_({ref:n},i))}),b_=()=>{const[e,t]=h.useState(""),[n,r]=h.useState(""),[o,i]=h.useState(null),[a,s]=h.useState(null),[l,c]=h.useState(null),[u,d]=h.useState(""),[f,g]=h.useState(""),[y,x]=h.useState(""),[C,p]=h.useState(""),[m,v]=h.useState(""),[S,P]=h.useState(""),{token:k}=h.useContext(wn),{trigger:M,error:E}=ja("/titles/",Wm(k)),{trigger:$,error:b}=ja("/images/",jL(k)),{data:R,isLoading:A}=_r("/activities/",zr(k)),j=async T=>{const N=new FormData;N.append("file",T);const D=await $(N);c(D),console.log(D)},O={name:T=>{g(T)},description:T=>{x(setPasswordErrorMessage,T)},start_date:T=>{p(T)},end_date:T=>{v(T)},activity:T=>{P(T)}};h.useEffect(()=>{E&&(console.log(E.info),Object.entries(E.info).forEach(([T,N])=>{O[T](N)}))},[E]);const I=async T=>{T.preventDefault();const N={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&&(N.image=l.id),console.log(N),await M(N)};return A?w.jsx(Bl,{}):w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"h4",gutterBottom:!0,children:"Create Title"}),w.jsxs("form",{onSubmit:I,children:[w.jsx(Fr,{label:"Title Name",variant:"outlined",fullWidth:!0,margin:"normal",value:e,onChange:T=>t(T.target.value),error:!!f,helperText:f}),w.jsx(Fr,{label:"Description",variant:"outlined",fullWidth:!0,margin:"normal",multiline:!0,rows:4,value:n,onChange:T=>r(T.target.value),error:!!y,helperText:y}),w.jsx(O0,{label:"Start Date",value:o,onChange:T=>i(T),slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!C,helperText:C}}}),w.jsx(O0,{label:"End Date",value:a,onChange:T=>s(T),error:!!m,helperText:m,slotProps:{textField:{margin:"normal",fullWidth:!0,variant:"outlined",error:!!m,helperText:m}}}),w.jsxs($o,{fullWidth:!0,margin:"normal",error:!!S,children:[w.jsx($m,{id:"activity-select-label",children:"Activity"}),w.jsx(Nm,{label:"Activity",labelId:"activity-select-label",value:u,onChange:T=>d(T.target.value),required:!0,children:R.map(T=>w.jsx(Gp,{value:T.id,children:T.name},T.id))})]}),w.jsx("input",{accept:"image/*",style:{display:"none"},id:"image-upload",type:"file",onChange:T=>j(T.target.files[0])}),w.jsx("label",{htmlFor:"image-upload",children:w.jsx(Tt,{variant:"outlined",component:"span",fullWidth:!0,sx:{marginY:"16px"},children:"Upload Image"})}),l&&w.jsx(an,{display:"flex",justifyContent:"center",margin:"8px",children:w.jsx(an,{component:"img",sx:{height:233,width:350,maxWidth:{xs:350,md:250}},alt:"The house from the offer.",src:l.file})}),w.jsx(Tt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"Create Title"})]})]})},w_=()=>w.jsx(sw,{maxWidth:"sm",children:w.jsx(b_,{})}),W1=({title:e,activity:t})=>w.jsx(xl,{children:w.jsx(aw,{children:w.jsxs(ci,{container:!0,children:[e.image&&w.jsx(ci,{size:{xs:12,sm:6},children:w.jsx(xl,{children:w.jsx(NI,{sx:{height:{xs:"300px",lg:"400px"},objectFit:"cover"},component:"img",image:e.image,alt:e.name})})}),w.jsx(ci,{size:{xs:12,sm:6},children:w.jsxs(an,{sx:{marginLeft:e.image?2:0},children:[w.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),w.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Start Date: ",new Date(e.startDate).toLocaleDateString()]}),w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["End Date:"," ",e.endDate?new Date(e.endDate).toLocaleDateString():"Not finished yet"]}),e.endDate&&w.jsxs(Ye,{variant:"body2",color:"textSecondary",children:["Spent:"," ",s1(new Date(e.endDate)-new Date(e.startDate))," ","days"]}),w.jsx(Am,{href:`/activities/${e.activity}`,variant:"body2",children:t?t.name:w.jsx(Bl,{size:"1rem"})})]})})]})})}),C_=()=>{const[e,t]=h.useState(null),n=Sr(),{token:r}=h.useContext(wn),o=qw(),{data:i,isLoading:a,error:s}=_r(`/titles/${o.id}`,zr(r)),{data:l}=_r(e?`/activities/${e.activity}`:null,zr(r));return h.useEffect(()=>{i&&t({name:i.name,description:i.description,startDate:i.start_date,endDate:i.end_date,image:i.image,activity:i.activity})},[i]),h.useEffect(()=>{s&&n("/error")},[s]),a||!e?w.jsx(Vl,{}):w.jsx(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:w.jsx(W1,{title:e,activity:l})})},k_=en(w.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),P_=({onLogin:e,onLogout:t})=>{const[n,r]=h.useState(null),[o,i]=h.useState(!1),{login:a,logout:s}=h.useContext(wn),{user:l}=Ld(),c=Sr(),u=Id(y=>y.breakpoints.down("sm")),d=y=>{r(y.currentTarget)},f=()=>{r(null)},g=()=>{i(!o)};return w.jsxs($D,{position:"static",color:"info",children:[w.jsxs(XA,{children:[w.jsxs(an,{flexGrow:1,display:"flex",alignItems:"center",children:[w.jsx(an,{component:ar,to:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",borderRadius:"50%",overflow:"hidden",width:"50px",height:"50px"},children:w.jsx(Xm,{})}),u?w.jsx(Wa,{color:"inherit",onClick:g,sx:{marginLeft:1},children:w.jsx(k_,{})}):w.jsxs(w.Fragment,{children:[w.jsx(Tt,{sx:{marginLeft:1},color:"inherit",component:ar,to:"/history",children:"History"}),w.jsx(Tt,{color:"inherit",component:ar,to:"/table",children:"Table"}),w.jsx(Tt,{color:"inherit",component:ar,to:"/activities",children:"Activities"}),w.jsx(Tt,{color:"inherit",onClick:d,children:"New"}),w.jsxs(xw,{anchorEl:n,open:!!n,onClose:f,children:[w.jsx(Gp,{onClick:f,component:ar,to:"/create-activity",children:"Activity"}),w.jsx(Gp,{onClick:f,component:ar,to:"/create-title",children:"Title"})]})]})]}),l?w.jsxs(w.Fragment,{children:[w.jsx(Ye,{variant:"body1",sx:{marginLeft:"auto",marginRight:"16px",color:"white"},children:l.username}),w.jsx(Tt,{color:"inherit",onClick:s,children:"Logout"})]}):w.jsx(Tt,{color:"inherit",onClick:()=>c("/login"),children:"Login"})]}),u&&w.jsx(zO,{anchor:"right",open:o,onClose:g,children:w.jsxs(an,{sx:{width:180},role:"presentation",onClick:g,onKeyDown:g,display:"flex",flexDirection:"column",gap:3,children:[w.jsx(Tt,{component:ar,to:"/history",children:"History"}),w.jsx(Tt,{component:ar,to:"/table",children:"Table"}),w.jsx(Tt,{component:ar,to:"/activities",children:"Activities"}),w.jsx(Tt,{component:ar,to:"/create-activity",children:"New activity"}),w.jsx(Tt,{component:ar,to:"/create-title",children:"New title"})]})})]})},E_=()=>w.jsxs(w.Fragment,{children:[w.jsx(P_,{isLoggedIn:!0,onLogin:()=>{console.log("login")},onLogout:()=>console.log("logout")}),w.jsx(an,{marginTop:4,children:w.jsx(Xj,{})})]}),M_=()=>{const[e,t]=h.useState(null),[n,r]=h.useState(null),o=Sr(),{token:i}=h.useContext(wn),a=qw(),{data:s,isLoading:l,error:c}=_r(`/activities/${a.id}`,zr(i)),{data:u}=_r(e?`/titles?activity=${e.id}`:null,zr(i));return console.log(s),h.useEffect(()=>{s&&t({id:s.id,name:s.name,description:s.description})},[s]),h.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]),h.useEffect(()=>{c&&o("/error")},[c]),l||!e?w.jsx(Vl,{}):(console.log(n),w.jsxs(Pi,{justifyContent:"center",justifyItems:"center",alignContent:"center",paddingX:4,children:[w.jsx(Ye,{variant:"h4",component:"h1",gutterBottom:!0,children:e.name}),w.jsx(Ye,{variant:"body1",component:"p",sx:{marginBottom:"16px"},children:e.description}),n&&w.jsx(ci,{container:!0,spacing:2,marginTop:2,children:n.map(d=>w.jsx(ci,{size:{xs:12,md:6},children:w.jsx(W1,{activity:e,title:d})},d.id))})]}))},R_=(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}},T_=()=>{const{token:e}=h.useContext(wn),{data:t,isLoading:n}=_r("/titles/",zr(e));return h.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=R_("Aboba","kakulya",r);console.log(o),new TL.Timeline("timeline-embed",o)}},[t]),n?w.jsx(Vl,{}):w.jsx(w.Fragment,{children:w.jsx("div",{id:"timeline-embed",style:{width:"100%",height:"600px"}})})},D_=()=>{const{token:e}=h.useContext(wn),t=Sr(),{data:n,isLoading:r}=_r("/activities/",zr(e));return r?w.jsx(Vl,{}):w.jsx(ci,{container:!0,spacing:2,sx:{padding:2},children:n.map(o=>w.jsx(ci,{size:{xs:12,sm:6,md:6},children:w.jsx(xl,{sx:{minHeight:{xs:"100px",sm:"180px"},cursor:"pointer"},onClick:()=>t(`/activities/${o.id}`),children:w.jsxs(aw,{children:[w.jsx(Ye,{variant:"h5",component:"div",children:o.name}),w.jsx(Ye,{variant:"body2",color:"text.secondary",children:o.description})]})})},o.id))})},I_=()=>{const e=FN(),t=oN([{path:"/",element:w.jsx(E_,{}),children:[{path:"/",element:w.jsx(mo,{Component:NL})},{path:"/register",element:w.jsx(v0,{Component:HN})},{path:"/login",element:w.jsx(v0,{Component:zN})},{path:"/table",element:w.jsx(mo,{Component:YN})},{path:"/activities",element:w.jsx(mo,{Component:D_})},{path:"/titles/:id",element:w.jsx(mo,{Component:C_})},{path:"/activities/:id",element:w.jsx(mo,{Component:M_})},{path:"/create-activity",element:w.jsx(mo,{Component:GN})},{path:"/create-title",element:w.jsx(mo,{Component:w_})},{path:"/history",element:w.jsx(mo,{Component:T_})},{path:"/error",element:w.jsx(y0,{})},{path:"*",element:w.jsx(y0,{})}]}],{basename:"/timetrekah-frontend/"});return w.jsx(wn.Provider,{value:e,children:w.jsx(pN,{router:t})})};var O_={exports:{}};(function(e,t){(function(n,r){e.exports=r(t1())})(bi,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})})(O_);const $_=Cd();YS(document.getElementById("root")).render(w.jsx(h.StrictMode,{children:w.jsx(AL,{value:{fetcher:LL},children:w.jsx(TT,{theme:$_,children:w.jsx(l1,{dateAdapter:$N,adapterLocale:"de",children:w.jsx(I_,{})})})})})); diff --git a/index.html b/index.html index 01b6142..bd68f6f 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ /> - +