diff --git a/assets/index-47ad38bd.js b/assets/index-47ad38bd.js new file mode 100644 index 0000000..1295a54 --- /dev/null +++ b/assets/index-47ad38bd.js @@ -0,0 +1,355 @@ +function tH(e,t){for(var r=0;rn[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"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var qL={exports:{}},Zy={},GL={exports:{}},Je={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kp=Symbol.for("react.element"),rH=Symbol.for("react.portal"),nH=Symbol.for("react.fragment"),oH=Symbol.for("react.strict_mode"),aH=Symbol.for("react.profiler"),iH=Symbol.for("react.provider"),sH=Symbol.for("react.context"),lH=Symbol.for("react.forward_ref"),uH=Symbol.for("react.suspense"),cH=Symbol.for("react.memo"),fH=Symbol.for("react.lazy"),vk=Symbol.iterator;function dH(e){return e===null||typeof e!="object"?null:(e=vk&&e[vk]||e["@@iterator"],typeof e=="function"?e:null)}var KL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YL=Object.assign,XL={};function _c(e,t,r){this.props=e,this.context=t,this.refs=XL,this.updater=r||KL}_c.prototype.isReactComponent={};_c.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")};_c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QL(){}QL.prototype=_c.prototype;function XC(e,t,r){this.props=e,this.context=t,this.refs=XL,this.updater=r||KL}var QC=XC.prototype=new QL;QC.constructor=XC;YL(QC,_c.prototype);QC.isPureReactComponent=!0;var mk=Array.isArray,JL=Object.prototype.hasOwnProperty,JC={current:null},ZL={key:!0,ref:!0,__self:!0,__source:!0};function eF(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)JL.call(t,n)&&!ZL.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,X=j[W];if(0>>1;Wo(ie,B))deo(ee,ie)?(j[W]=ee,j[de]=B,W=de):(j[W]=ie,j[K]=B,W=K);else if(deo(ee,B))j[W]=ee,j[de]=B,W=de;else break e}}return L}function o(j,L){var B=j.sortIndex-L.sortIndex;return B!==0?B:j.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,p=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(j){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=j)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function w(j){if(p=!1,v(j),!g)if(r(l)!==null)g=!0,N(S);else{var L=r(u);L!==null&&F(w,L.startTime-j)}}function S(j,L){g=!1,p&&(p=!1,b(C),C=-1),h=!0;var B=d;try{for(v(L),f=r(l);f!==null&&(!(f.expirationTime>L)||j&&!k());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var X=W(f.expirationTime<=L);L=e.unstable_now(),typeof X=="function"?f.callback=X:f===r(l)&&n(l),v(L)}else n(l);f=r(l)}if(f!==null)var J=!0;else{var K=r(u);K!==null&&F(w,K.startTime-L),J=!1}return J}finally{f=null,d=B,h=!1}}var O=!1,P=null,C=-1,T=5,A=-1;function k(){return!(e.unstable_now()-Aj||125W?(j.sortIndex=B,t(u,j),r(l)===null&&j===r(u)&&(p?(b(C),C=-1):p=!0,F(w,B-W))):(j.sortIndex=X,t(l,j),g||h||(g=!0,N(S))),j},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(j){var L=d;return function(){var B=d;d=L;try{return j.apply(this,arguments)}finally{d=B}}}})(oF);nF.exports=oF;var OH=nF.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aF=m,Nn=OH;function ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zw=Object.prototype.hasOwnProperty,PH=/^[: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]*$/,yk={},bk={};function CH(e){return zw.call(bk,e)?!0:zw.call(yk,e)?!1:PH.test(e)?bk[e]=!0:(yk[e]=!0,!1)}function _H(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $H(e,t,r,n){if(t===null||typeof t>"u"||_H(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 tn(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ir[e]=new tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ir[t]=new tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ir[e]=new tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ir[e]=new tn(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){Ir[e]=new tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ir[e]=new tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ir[e]=new tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ir[e]=new tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ir[e]=new tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var e_=/[\-:]([a-z])/g;function t_(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(e_,t_);Ir[t]=new tn(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(e_,t_);Ir[t]=new tn(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(e_,t_);Ir[t]=new tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ir[e]=new tn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ir.xlinkHref=new tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ir[e]=new tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function r_(e,t,r,n){var o=Ir.hasOwnProperty(t)?Ir[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{w1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Hf(e):""}function EH(e){switch(e.tag){case 5:return Hf(e.type);case 16:return Hf("Lazy");case 13:return Hf("Suspense");case 19:return Hf("SuspenseList");case 0:case 2:case 15:return e=S1(e.type,!1),e;case 11:return e=S1(e.type.render,!1),e;case 1:return e=S1(e.type,!0),e;default:return""}}function Hw(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 tu:return"Fragment";case eu:return"Portal";case Vw:return"Profiler";case n_:return"StrictMode";case Uw:return"Suspense";case Ww:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lF:return(e.displayName||"Context")+".Consumer";case sF:return(e._context.displayName||"Context")+".Provider";case o_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case a_:return t=e.displayName||null,t!==null?t:Hw(e.type)||"Memo";case vi:t=e._payload,e=e._init;try{return Hw(e(t))}catch{}}return null}function TH(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 Hw(t);case 8:return t===n_?"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 Ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kH(e){var t=cF(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jh(e){e._valueTracker||(e._valueTracker=kH(e))}function fF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=cF(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Cm(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 qw(e,t){var r=t.checked;return Ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function wk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ki(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dF(e,t){t=t.checked,t!=null&&r_(e,"checked",t,!1)}function Gw(e,t){dF(e,t);var r=Ki(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Kw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Kw(e,t.type,Ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Kw(e,t,r){(t!=="number"||Cm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qf=Array.isArray;function xu(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nd={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},AH=["Webkit","ms","Moz","O"];Object.keys(nd).forEach(function(e){AH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nd[t]=nd[e]})});function mF(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||nd.hasOwnProperty(e)&&nd[e]?(""+t).trim():t+"px"}function gF(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=mF(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var RH=Ht({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 Qw(e,t){if(t){if(RH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}function Jw(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 Zw=null;function i_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eS=null,wu=null,Su=null;function Ck(e){if(e=Qp(e)){if(typeof eS!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=ob(t),eS(e.stateNode,e.type,t))}}function yF(e){wu?Su?Su.push(e):Su=[e]:wu=e}function bF(){if(wu){var e=wu,t=Su;if(Su=wu=null,Ck(e),t)for(e=0;e>>=0,e===0?32:31-(UH(e)/WH|0)|0}var ev=64,tv=4194304;function Gf(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 Tm(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Gf(s):(a&=i,a!==0&&(n=Gf(a)))}else i=r&~o,i!==0?n=Gf(i):a!==0&&(n=Gf(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yp(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ao(t),e[t]=r}function KH(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=ad),Ik=String.fromCharCode(32),Dk=!1;function FF(e,t){switch(e){case"keyup":return S7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ru=!1;function P7(e,t){switch(e){case"compositionend":return BF(t);case"keypress":return t.which!==32?null:(Dk=!0,Ik);case"textInput":return e=t.data,e===Ik&&Dk?null:e;default:return null}}function C7(e,t){if(ru)return e==="compositionend"||!h_&&FF(e,t)?(e=NF(),Wv=f_=Oi=null,ru=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fk(r)}}function WF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function HF(){for(var e=window,t=Cm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Cm(e.document)}return t}function v_(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 I7(e){var t=HF(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&WF(r.ownerDocument.documentElement,r)){if(n!==null&&v_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=Bk(r,a);var i=Bk(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,nu=null,iS=null,sd=null,sS=!1;function zk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;sS||nu==null||nu!==Cm(n)||(n=nu,"selectionStart"in n&&v_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sd&&Kd(sd,n)||(sd=n,n=Rm(iS,"onSelect"),0iu||(e.current=pS[iu],pS[iu]=null,iu--)}function Tt(e,t){iu++,pS[iu]=e.current,e.current=t}var Yi={},Hr=es(Yi),dn=es(!1),nl=Yi;function Gu(e,t){var r=e.type.contextTypes;if(!r)return Yi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pn(e){return e=e.childContextTypes,e!=null}function Im(){Dt(dn),Dt(Hr)}function Kk(e,t,r){if(Hr.current!==Yi)throw Error(ye(168));Tt(Hr,t),Tt(dn,r)}function eB(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ye(108,TH(e)||"Unknown",o));return Ht({},r,n)}function Dm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yi,nl=Hr.current,Tt(Hr,e),Tt(dn,dn.current),!0}function Yk(e,t,r){var n=e.stateNode;if(!n)throw Error(ye(169));r?(e=eB(e,t,nl),n.__reactInternalMemoizedMergedChildContext=e,Dt(dn),Dt(Hr),Tt(Hr,e)):Dt(dn),Tt(dn,r)}var Ea=null,ab=!1,j1=!1;function tB(e){Ea===null?Ea=[e]:Ea.push(e)}function q7(e){ab=!0,tB(e)}function ts(){if(!j1&&Ea!==null){j1=!0;var e=0,t=mt;try{var r=Ea;for(mt=1;e>=i,o-=i,Aa=1<<32-Ao(t)+o|r<C?(T=P,P=null):T=P.sibling;var A=d(b,P,v[C],w);if(A===null){P===null&&(P=T);break}e&&P&&A.alternate===null&&t(b,P),y=a(A,y,C),O===null?S=A:O.sibling=A,O=A,P=T}if(C===v.length)return r(b,P),Lt&&Os(b,C),S;if(P===null){for(;CC?(T=P,P=null):T=P.sibling;var k=d(b,P,A.value,w);if(k===null){P===null&&(P=T);break}e&&P&&k.alternate===null&&t(b,P),y=a(k,y,C),O===null?S=k:O.sibling=k,O=k,P=T}if(A.done)return r(b,P),Lt&&Os(b,C),S;if(P===null){for(;!A.done;C++,A=v.next())A=f(b,A.value,w),A!==null&&(y=a(A,y,C),O===null?S=A:O.sibling=A,O=A);return Lt&&Os(b,C),S}for(P=n(b,P);!A.done;C++,A=v.next())A=h(P,b,C,A.value,w),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?C:A.key),y=a(A,y,C),O===null?S=A:O.sibling=A,O=A);return e&&P.forEach(function(I){return t(b,I)}),Lt&&Os(b,C),S}function x(b,y,v,w){if(typeof v=="object"&&v!==null&&v.type===tu&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Qh:e:{for(var S=v.key,O=y;O!==null;){if(O.key===S){if(S=v.type,S===tu){if(O.tag===7){r(b,O.sibling),y=o(O,v.props.children),y.return=b,b=y;break e}}else if(O.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===vi&&rA(S)===O.type){r(b,O.sibling),y=o(O,v.props),y.ref=yf(b,O,v),y.return=b,b=y;break e}r(b,O);break}else t(b,O);O=O.sibling}v.type===tu?(y=Ys(v.props.children,b.mode,w,v.key),y.return=b,b=y):(w=Jv(v.type,v.key,v.props,null,b.mode,w),w.ref=yf(b,y,v),w.return=b,b=w)}return i(b);case eu:e:{for(O=v.key;y!==null;){if(y.key===O)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){r(b,y.sibling),y=o(y,v.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else t(b,y);y=y.sibling}y=W1(v,b.mode,w),y.return=b,b=y}return i(b);case vi:return O=v._init,x(b,y,O(v._payload),w)}if(qf(v))return g(b,y,v,w);if(pf(v))return p(b,y,v,w);lv(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(r(b,y.sibling),y=o(y,v),y.return=b,b=y):(r(b,y),y=U1(v,b.mode,w),y.return=b,b=y),i(b)):r(b,y)}return x}var Yu=uB(!0),cB=uB(!1),Jp={},ia=es(Jp),Jd=es(Jp),Zd=es(Jp);function Ns(e){if(e===Jp)throw Error(ye(174));return e}function P_(e,t){switch(Tt(Zd,t),Tt(Jd,e),Tt(ia,Jp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xw(t,e)}Dt(ia),Tt(ia,t)}function Xu(){Dt(ia),Dt(Jd),Dt(Zd)}function fB(e){Ns(Zd.current);var t=Ns(ia.current),r=Xw(t,e.type);t!==r&&(Tt(Jd,e),Tt(ia,r))}function C_(e){Jd.current===e&&(Dt(ia),Dt(Jd))}var Vt=es(0);function zm(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var N1=[];function __(){for(var e=0;er?r:4,e(!0);var n=L1.transition;L1.transition={};try{e(!1),t()}finally{mt=r,L1.transition=n}}function $B(){return ao().memoizedState}function X7(e,t,r){var n=Ni(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},EB(e))TB(t,r);else if(r=aB(e,t,r,n),r!==null){var o=Zr();Ro(r,e,n,o),kB(r,t,n)}}function Q7(e,t,r){var n=Ni(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(EB(e))TB(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Io(s,i)){var l=t.interleaved;l===null?(o.next=o,S_(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=aB(e,t,o,n),r!==null&&(o=Zr(),Ro(r,e,n,o),kB(r,t,n))}}function EB(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function TB(e,t){ld=Vm=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function kB(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,l_(e,r)}}var Um={readContext:oo,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useInsertionEffect:jr,useLayoutEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useMutableSource:jr,useSyncExternalStore:jr,useId:jr,unstable_isNewReconciler:!1},J7={readContext:oo,useCallback:function(e,t){return Uo().memoizedState=[e,t===void 0?null:t],e},useContext:oo,useEffect:oA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Kv(4194308,4,SB.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Kv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kv(4,2,e,t)},useMemo:function(e,t){var r=Uo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Uo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=X7.bind(null,Ut,e),[n.memoizedState,e]},useRef:function(e){var t=Uo();return e={current:e},t.memoizedState=e},useState:nA,useDebugValue:A_,useDeferredValue:function(e){return Uo().memoizedState=e},useTransition:function(){var e=nA(!1),t=e[0];return e=Y7.bind(null,e[1]),Uo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ut,o=Uo();if(Lt){if(r===void 0)throw Error(ye(407));r=r()}else{if(r=t(),xr===null)throw Error(ye(349));al&30||hB(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,oA(mB.bind(null,n,a,e),[e]),n.flags|=2048,rp(9,vB.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Uo(),t=xr.identifierPrefix;if(Lt){var r=Ra,n=Aa;r=(n&~(1<<32-Ao(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ep++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Qo]=t,e[Qd]=n,FB(e,t,!1,!1),t.stateNode=e;e:{switch(i=Jw(r,n),r){case"dialog":Rt("cancel",e),Rt("close",e),o=n;break;case"iframe":case"object":case"embed":Rt("load",e),o=n;break;case"video":case"audio":for(o=0;oJu&&(t.flags|=128,n=!0,bf(a,!1),t.lanes=4194304)}else{if(!n)if(e=zm(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Lt)return Nr(t),null}else 2*er()-a.renderingStartTime>Ju&&r!==1073741824&&(t.flags|=128,n=!0,bf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=er(),t.sibling=null,r=Vt.current,Tt(Vt,n?r&1|2:r&1),t):(Nr(t),null);case 22:case 23:return N_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Tn&1073741824&&(Nr(t),t.subtreeFlags&6&&(t.flags|=8192)):Nr(t),null;case 24:return null;case 25:return null}throw Error(ye(156,t.tag))}function iq(e,t){switch(g_(t),t.tag){case 1:return pn(t.type)&&Im(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xu(),Dt(dn),Dt(Hr),__(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return C_(t),null;case 13:if(Dt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ye(340));Ku()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(Vt),null;case 4:return Xu(),null;case 10:return w_(t.type._context),null;case 22:case 23:return N_(),null;case 24:return null;default:return null}}var cv=!1,zr=!1,sq=typeof WeakSet=="function"?WeakSet:Set,Re=null;function cu(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Yt(e,t,n)}else r.current=null}function CS(e,t,r){try{r()}catch(n){Yt(e,t,n)}}var pA=!1;function lq(e,t){if(lS=km,e=HF(),v_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(s=i+o),f!==a||n!==0&&f.nodeType!==3||(l=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===o&&(s=i),d===a&&++c===n&&(l=i),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(uS={focusedElem:e,selectionRange:r},km=!1,Re=t;Re!==null;)if(t=Re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Re=e;else for(;Re!==null;){t=Re;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,x=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?p:wo(t.type,p),x);b.__reactInternalSnapshotBeforeUpdate=y}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(ye(163))}}catch(w){Yt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Re=e;break}Re=t.return}return g=pA,pA=!1,g}function ud(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&CS(t,r,a)}o=o.next}while(o!==n)}}function lb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function _S(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function VB(e){var t=e.alternate;t!==null&&(e.alternate=null,VB(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qo],delete t[Qd],delete t[dS],delete t[W7],delete t[H7])),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 UB(e){return e.tag===5||e.tag===3||e.tag===4}function hA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UB(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 $S(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Mm));else if(n!==4&&(e=e.child,e!==null))for($S(e,t,r),e=e.sibling;e!==null;)$S(e,t,r),e=e.sibling}function ES(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ES(e,t,r),e=e.sibling;e!==null;)ES(e,t,r),e=e.sibling}var Tr=null,Oo=!1;function ui(e,t,r){for(r=r.child;r!==null;)WB(e,t,r),r=r.sibling}function WB(e,t,r){if(aa&&typeof aa.onCommitFiberUnmount=="function")try{aa.onCommitFiberUnmount(eb,r)}catch{}switch(r.tag){case 5:zr||cu(r,t);case 6:var n=Tr,o=Oo;Tr=null,ui(e,t,r),Tr=n,Oo=o,Tr!==null&&(Oo?(e=Tr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Tr.removeChild(r.stateNode));break;case 18:Tr!==null&&(Oo?(e=Tr,r=r.stateNode,e.nodeType===8?D1(e.parentNode,r):e.nodeType===1&&D1(e,r),qd(e)):D1(Tr,r.stateNode));break;case 4:n=Tr,o=Oo,Tr=r.stateNode.containerInfo,Oo=!0,ui(e,t,r),Tr=n,Oo=o;break;case 0:case 11:case 14:case 15:if(!zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&CS(r,t,i),o=o.next}while(o!==n)}ui(e,t,r);break;case 1:if(!zr&&(cu(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Yt(r,t,s)}ui(e,t,r);break;case 21:ui(e,t,r);break;case 22:r.mode&1?(zr=(n=zr)||r.memoizedState!==null,ui(e,t,r),zr=n):ui(e,t,r);break;default:ui(e,t,r)}}function vA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new sq),t.forEach(function(n){var o=gq.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function bo(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=er()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*cq(n/1960))-n,10e?16:e,Pi===null)var n=!1;else{if(e=Pi,Pi=null,qm=0,tt&6)throw Error(ye(331));var o=tt;for(tt|=4,Re=e.current;Re!==null;){var a=Re,i=a.child;if(Re.flags&16){var s=a.deletions;if(s!==null){for(var l=0;ler()-D_?Ks(e,0):I_|=r),hn(e,t)}function JB(e,t){t===0&&(e.mode&1?(t=tv,tv<<=1,!(tv&130023424)&&(tv=4194304)):t=1);var r=Zr();e=Ua(e,t),e!==null&&(Yp(e,t,r),hn(e,r))}function mq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),JB(e,r)}function gq(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ye(314))}n!==null&&n.delete(t),JB(e,r)}var ZB;ZB=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||dn.current)cn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return cn=!1,oq(e,t,r);cn=!!(e.flags&131072)}else cn=!1,Lt&&t.flags&1048576&&rB(t,Nm,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yv(e,t),e=t.pendingProps;var o=Gu(t,Hr.current);Pu(t,r),o=E_(null,t,n,e,o,r);var a=T_();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,pn(n)?(a=!0,Dm(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,O_(t),o.updater=ib,t.stateNode=o,o._reactInternals=t,yS(t,n,e,r),t=wS(null,t,n,!0,a,r)):(t.tag=0,Lt&&a&&m_(t),Gr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yv(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=bq(n),e=wo(n,e),o){case 0:t=xS(null,t,n,e,r);break e;case 1:t=cA(null,t,n,e,r);break e;case 11:t=lA(null,t,n,e,r);break e;case 14:t=uA(null,t,n,wo(n.type,e),r);break e}throw Error(ye(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:wo(n,o),xS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:wo(n,o),cA(e,t,n,o,r);case 3:e:{if(jB(t),e===null)throw Error(ye(387));n=t.pendingProps,a=t.memoizedState,o=a.element,iB(e,t),Bm(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Qu(Error(ye(423)),t),t=fA(e,t,n,r,o);break e}else if(n!==o){o=Qu(Error(ye(424)),t),t=fA(e,t,n,r,o);break e}else for(Mn=Ii(t.stateNode.containerInfo.firstChild),In=t,Lt=!0,Co=null,r=cB(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ku(),n===o){t=Wa(e,t,r);break e}Gr(e,t,n,r)}t=t.child}return t;case 5:return fB(t),e===null&&vS(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,cS(n,o)?i=null:a!==null&&cS(n,a)&&(t.flags|=32),DB(e,t),Gr(e,t,i,r),t.child;case 6:return e===null&&vS(t),null;case 13:return NB(e,t,r);case 4:return P_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Yu(t,null,n,r):Gr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:wo(n,o),lA(e,t,n,o,r);case 7:return Gr(e,t,t.pendingProps,r),t.child;case 8:return Gr(e,t,t.pendingProps.children,r),t.child;case 12:return Gr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Tt(Lm,n._currentValue),n._currentValue=i,a!==null)if(Io(a.value,i)){if(a.children===o.children&&!dn.current){t=Wa(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Na(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),mS(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ye(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),mS(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Gr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Pu(t,r),o=oo(o),n=n(o),t.flags|=1,Gr(e,t,n,r),t.child;case 14:return n=t.type,o=wo(n,t.pendingProps),o=wo(n.type,o),uA(e,t,n,o,r);case 15:return MB(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:wo(n,o),Yv(e,t),t.tag=1,pn(n)?(e=!0,Dm(t)):e=!1,Pu(t,r),lB(t,n,o),yS(t,n,o,r),wS(null,t,n,!0,e,r);case 19:return LB(e,t,r);case 22:return IB(e,t,r)}throw Error(ye(156,t.tag))};function e3(e,t){return _F(e,t)}function yq(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(e,t,r,n){return new yq(e,t,r,n)}function F_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bq(e){if(typeof e=="function")return F_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===o_)return 11;if(e===a_)return 14}return 2}function Li(e,t){var r=e.alternate;return r===null?(r=Zn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Jv(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")F_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case tu:return Ys(r.children,o,a,t);case n_:i=8,o|=8;break;case Vw:return e=Zn(12,r,t,o|2),e.elementType=Vw,e.lanes=a,e;case Uw:return e=Zn(13,r,t,o),e.elementType=Uw,e.lanes=a,e;case Ww:return e=Zn(19,r,t,o),e.elementType=Ww,e.lanes=a,e;case uF:return cb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sF:i=10;break e;case lF:i=9;break e;case o_:i=11;break e;case a_:i=14;break e;case vi:i=16,n=null;break e}throw Error(ye(130,e==null?e:typeof e,""))}return t=Zn(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Ys(e,t,r,n){return e=Zn(7,e,n,t),e.lanes=r,e}function cb(e,t,r,n){return e=Zn(22,e,n,t),e.elementType=uF,e.lanes=r,e.stateNode={isHidden:!1},e}function U1(e,t,r){return e=Zn(6,e,null,t),e.lanes=r,e}function W1(e,t,r){return t=Zn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xq(e,t,r,n,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=P1(0),this.expirationTimes=P1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function B_(e,t,r,n,o,a,i,s,l){return e=new xq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Zn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},O_(a),e}function wq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o3)}catch(e){console.error(e)}}o3(),rF.exports=Fn;var Tc=rF.exports;const Yf=ze(Tc);var OA=Tc;Bw.createRoot=OA.createRoot,Bw.hydrateRoot=OA.hydrateRoot;var _q={id:""},$q={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(_q)}},a3=m.createContext($q);a3.displayName="AuthContext";const i3=a3;var vb={loginUrl:"/login",afterLoginUrl:"/"},Eq=function(){return m.useContext(i3)};const Za=Eq;function MS(e,t){return MS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},MS(e,t)}function pa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,MS(e,t)}var kc=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var o=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function kr(){}function Tq(e,t){return typeof e=="function"?e(t):e}function IS(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xm(e){return Array.isArray(e)?e:[e]}function s3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zv(e,t,r){return Zp(e)?typeof t=="function"?E({},r,{queryKey:e,queryFn:t}):E({},t,{queryKey:e}):e}function kq(e,t,r){return Zp(e)?typeof t=="function"?E({},r,{mutationKey:e,mutationFn:t}):E({},t,{mutationKey:e}):typeof e=="function"?E({},t,{mutationFn:e}):E({},e)}function gi(e,t,r){return Zp(e)?[E({},t,{queryKey:e}),r]:[e||{},t]}function Aq(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function PA(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,l=e.stale;if(Zp(s)){if(n){if(t.queryHash!==W_(s,t.options))return!1}else if(!Qm(t.queryKey,s))return!1}var u=Aq(r,a);if(u==="none")return!1;if(u!=="all"){var c=t.isActive();if(u==="active"&&!c||u==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function CA(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(Zp(a)){if(!t.options.mutationKey)return!1;if(r){if(Ls(t.options.mutationKey)!==Ls(a))return!1}else if(!Qm(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function W_(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||Ls;return r(e)}function Ls(e){var t=Xm(e);return Rq(t)}function Rq(e){return JSON.stringify(e,function(t,r){return DS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function Qm(e,t){return l3(Xm(e),Xm(t))}function l3(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!l3(e[r],t[r])}):!1}function Jm(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||DS(e)&&DS(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,l=0;l"u")return!0;var r=t.prototype;return!(!_A(r)||!r.hasOwnProperty("isPrototypeOf"))}function _A(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zp(e){return typeof e=="string"||Array.isArray(e)}function Iq(e){return new Promise(function(t){setTimeout(t,e)})}function $A(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function u3(){if(typeof AbortController=="function")return new AbortController}var Dq=function(e){pa(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Ym&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(kc),dd=new Dq,jq=function(e){pa(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Ym&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(kc),em=new jq;function Nq(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Zm(e){return typeof(e==null?void 0:e.cancel)=="function"}var c3=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function tm(e){return e instanceof c3}var f3=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(d){return o==null?void 0:o(d)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,h){i=d,s=h});var l=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},u=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},c=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function d(){if(!r.isResolved){var h;try{h=t.fn()}catch(g){h=Promise.reject(g)}o=function(p){if(!r.isResolved&&(u(new c3(p)),r.abort==null||r.abort(),Zm(h)))try{h.cancel()}catch{}},r.isTransportCancelable=Zm(h),Promise.resolve(h).then(l).catch(function(g){var p,x;if(!r.isResolved){var b=(p=t.retry)!=null?p:3,y=(x=t.retryDelay)!=null?x:Nq,v=typeof y=="function"?y(r.failureCount,g):y,w=b===!0||typeof b=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(l){return PA(s,l)})},r.findAll=function(o,a){var i=gi(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(l){return PA(s,l)}):this.queries},r.notify=function(o){var a=this;Et.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Et.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Et.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(kc),Vq=function(){function e(r){this.options=E({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||p3(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(kr).catch(kr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),eg().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new f3({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=Uq(this.state,n),Et.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function p3(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Uq(e,t){switch(t.type){case"failed":return E({},e,{failureCount:e.failureCount+1});case"pause":return E({},e,{isPaused:!0});case"continue":return E({},e,{isPaused:!1});case"loading":return E({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return E({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return E({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return E({},e,t.state);default:return e}}var Wq=function(e){pa(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new Vq({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Et.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return CA(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return CA(o,a)})},r.notify=function(o){var a=this;Et.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Et.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(kr)})},Promise.resolve())})},t}(kc);function Hq(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,l=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,u=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,c=u==null?void 0:u.pageParam,f=(u==null?void 0:u.direction)==="forward",d=(u==null?void 0:u.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],g=((s=t.state.data)==null?void 0:s.pageParams)||[],p=u3(),x=p==null?void 0:p.signal,b=g,y=!1,v=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(M,R,N,F){return b=F?[R].concat(b):[].concat(b,[R]),F?[N].concat(M):[].concat(M,[N])},S=function(M,R,N,F){if(y)return Promise.reject("Cancelled");if(typeof N>"u"&&!R&&M.length)return Promise.resolve(M);var j={queryKey:t.queryKey,signal:x,pageParam:N,meta:t.meta},L=v(j),B=Promise.resolve(L).then(function(X){return w(M,N,X,F)});if(Zm(L)){var W=B;W.cancel=L.cancel}return B},O;if(!h.length)O=S([]);else if(f){var P=typeof c<"u",C=P?c:EA(t.options,h);O=S(h,P,C)}else if(d){var T=typeof c<"u",A=T?c:qq(t.options,h);O=S(h,T,A,!0)}else(function(){b=[];var D=typeof t.options.getNextPageParam>"u",M=l&&h[0]?l(h[0],0,h):!0;O=M?S([],D,g[0]):Promise.resolve(w([],g[0],h[0]));for(var R=function(j){O=O.then(function(L){var B=l&&h[j]?l(h[j],j,h):!0;if(B){var W=D?g[j]:EA(t.options,L);return S(L,D,W)}return Promise.resolve(w(L,g[j],h[j]))})},N=1;N"u"&&(c.revert=!0);var f=Et.batch(function(){return i.queryCache.findAll(l).map(function(d){return d.cancel(c)})});return Promise.all(f).then(kr).catch(kr)},t.invalidateQueries=function(n,o,a){var i,s,l,u=this,c=gi(n,o,a),f=c[0],d=c[1],h=E({},f,{active:(i=(s=f.refetchActive)!=null?s:f.active)!=null?i:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return Et.batch(function(){return u.queryCache.findAll(f).forEach(function(g){g.invalidate()}),u.refetchQueries(h,d)})},t.refetchQueries=function(n,o,a){var i=this,s=gi(n,o,a),l=s[0],u=s[1],c=Et.batch(function(){return i.queryCache.findAll(l).map(function(d){return d.fetch(void 0,E({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(c).then(kr);return u!=null&&u.throwOnError||(f=f.catch(kr)),f},t.fetchQuery=function(n,o,a){var i=Zv(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(kr).catch(kr)},t.fetchInfiniteQuery=function(n,o,a){var i=Zv(n,o,a);return i.behavior=Hq(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(kr).catch(kr)},t.cancelMutations=function(){var n=this,o=Et.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(kr).catch(kr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return Ls(n)===Ls(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return Qm(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return Ls(n)===Ls(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return Qm(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=E({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=W_(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:E({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),Gq=function(e){pa(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),TA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return jS(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return jS(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&kA(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==i.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},l=function(c){i.trackedProps.includes(c)||i.trackedProps.push(c)};return Object.keys(o).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),o[u]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var l=a.subscribe(function(u){u.isFetching||(l(),u.isError&&(o!=null&&o.throwOnError)?s(u.error):i(u))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(E({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(kr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Ym||this.currentResult.isStale||!IS(this.options.staleTime))){var a=s3(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(Ym||this.options.enabled===!1||!IS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||dd.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,f=o!==i,d=f?o.state:this.currentQueryInitialState,h=f?this.currentResult:this.previousQueryResult,g=o.state,p=g.dataUpdatedAt,x=g.error,b=g.errorUpdatedAt,y=g.isFetching,v=g.status,w=!1,S=!1,O;if(a.optimisticResults){var P=this.hasListeners(),C=!P&&TA(o,a),T=P&&kA(o,i,a,s);(C||T)&&(y=!0,p||(v="loading"))}if(a.keepPreviousData&&!g.dataUpdateCount&&(h!=null&&h.isSuccess)&&v!=="error")O=h.data,p=h.dataUpdatedAt,v=h.status,w=!0;else if(a.select&&typeof g.data<"u")if(l&&g.data===(u==null?void 0:u.data)&&a.select===this.selectFn)O=this.selectResult;else try{this.selectFn=a.select,O=a.select(g.data),a.structuralSharing!==!1&&(O=Jm(l==null?void 0:l.data,O)),this.selectResult=O,this.selectError=null}catch(I){eg().error(I),this.selectError=I}else O=g.data;if(typeof a.placeholderData<"u"&&typeof O>"u"&&(v==="loading"||v==="idle")){var A;if(l!=null&&l.isPlaceholderData&&a.placeholderData===(c==null?void 0:c.placeholderData))A=l.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=Jm(l==null?void 0:l.data,A)),this.selectError=null}catch(I){eg().error(I),this.selectError=I}typeof A<"u"&&(v="success",O=A,S=!0)}this.selectError&&(x=this.selectError,O=this.selectResult,b=Date.now(),v="error");var k={status:v,isLoading:v==="loading",isSuccess:v==="success",isError:v==="error",isIdle:v==="idle",data:O,dataUpdatedAt:p,error:x,errorUpdatedAt:b,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&v!=="loading",isLoadingError:v==="error"&&g.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:w,isRefetchError:v==="error"&&g.dataUpdatedAt!==0,isStale:H_(o,a),refetch:this.refetch,remove:this.remove};return k},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(c){var f=c,d=o[f]!==a[f],h=u==null?void 0:u.some(function(p){return p===c}),g=l==null?void 0:l.some(function(p){return p===c});return d&&!g&&(!u||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Mq(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(E({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!tm(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Et.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(kc);function Kq(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function TA(e,t){return Kq(e,t)||e.state.dataUpdatedAt>0&&jS(e,t,t.refetchOnMount)}function jS(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&H_(e,t)}return!1}function kA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&H_(e,r)}function H_(e,t){return e.isStaleByTime(t.staleTime)}var Yq=function(e){pa(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,E({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:p3(),a=E({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Et.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(kc),Xq=Yf.unstable_batchedUpdates;Et.setBatchNotifyFunction(Xq);var Qq=console;Fq(Qq);var AA=z.createContext(void 0),v3=z.createContext(!1);function m3(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=AA),window.ReactQueryClientContext):AA}var ei=function(){var t=z.useContext(m3(z.useContext(v3)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jq=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;z.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=m3(o);return z.createElement(v3.Provider,{value:o},z.createElement(i.Provider,{value:r},a))};function Zq(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var eG=z.createContext(Zq()),tG=function(){return z.useContext(eG)};function g3(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function rG(e,t,r){var n=z.useRef(!1),o=z.useState(0),a=o[1],i=kq(e,t,r),s=ei(),l=z.useRef();l.current?l.current.setOptions(i):l.current=new Yq(s,i);var u=l.current.getCurrentResult();z.useEffect(function(){n.current=!0;var f=l.current.subscribe(Et.batchCalls(function(){n.current&&a(function(d){return d+1})}));return function(){n.current=!1,f()}},[]);var c=z.useCallback(function(f,d){l.current.mutate(f,d).catch(kr)},[]);if(u.error&&g3(void 0,l.current.options.useErrorBoundary,[u.error]))throw u.error;return E({},u,{mutate:c,mutateAsync:u.mutate})}function nG(e,t){var r=z.useRef(!1),n=z.useState(0),o=n[1],a=ei(),i=tG(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Et.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Et.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Et.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var l=z.useState(function(){return new t(a,s)}),u=l[0],c=u.getOptimisticResult(s);if(z.useEffect(function(){r.current=!0,i.clearReset();var f=u.subscribe(Et.batchCalls(function(){r.current&&o(function(d){return d+1})}));return u.updateResult(),function(){r.current=!1,f()}},[i,u]),z.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading)throw u.fetchOptimistic(s).then(function(f){var d=f.data;s.onSuccess==null||s.onSuccess(d),s.onSettled==null||s.onSettled(d,null)}).catch(function(f){i.clearReset(),s.onError==null||s.onError(f),s.onSettled==null||s.onSettled(void 0,f)});if(c.isError&&!i.isReset()&&!c.isFetching&&g3(s.suspense,s.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,s)),c}function rs(e,t,r){var n=Zv(e,t,r);return nG(n,Gq)}/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function q_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function RA(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function eh(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var MA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(MA||(MA={}));function oG(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?eh(t):t,o=G_(n.pathname||"/",r);if(o==null)return null;let a=y3(e);aG(a);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(tr(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Fi([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(tr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),y3(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:dG(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of b3(a.path))o(a,i,l)}),t}function b3(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=b3(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function aG(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:pG(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const iG=/^:\w+$/,sG=3,lG=2,uG=1,cG=10,fG=-2,IA=e=>e==="*";function dG(e,t){let r=e.split("/"),n=r.length;return r.some(IA)&&(n+=fG),t&&(n+=lG),r.filter(o=>!IA(o)).reduce((o,a)=>o+(iG.test(a)?sG:a===""?uG:cG),n)}function pG(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function hG(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{if(c==="*"){let d=s[f]||"";i=a.slice(0,a.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=gG(s[f]||"",c),u},{}),pathname:a,pathnameBase:i,pattern:e}}function vG(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),q_(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function mG(e){try{return decodeURI(e)}catch(t){return q_(!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 gG(e,t){try{return decodeURIComponent(e)}catch(r){return q_(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function G_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function yG(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?eh(e):e;return{pathname:r?r.startsWith("/")?r:bG(r,t):t,search:wG(n),hash:SG(o)}}function bG(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function H1(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function K_(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Y_(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=eh(e):(o=NS({},e),tr(!o.pathname||!o.pathname.includes("?"),H1("?","pathname","search",o)),tr(!o.pathname||!o.pathname.includes("#"),H1("#","pathname","hash",o)),tr(!o.search||!o.search.includes("#"),H1("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let f=t.length-1;if(i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=yG(o,s),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Fi=e=>e.join("/").replace(/\/\/+/g,"/"),xG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const w3=["post","put","patch","delete"];new Set(w3);const PG=["get",...w3];new Set(PG);/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var t=1;tx3(e,t),[t,e])}function O3(e){m.useContext(xl).static||m.useLayoutEffect(e)}function No(){let{isDataRoute:e}=m.useContext(ha);return e?VG():EG()}function EG(){ns()||tr(!1);let e=m.useContext(X_),{basename:t,navigator:r}=m.useContext(xl),{matches:n}=m.useContext(ha),{pathname:o}=rn(),a=JSON.stringify(K_(n).map(l=>l.pathnameBase)),i=m.useRef(!1);return O3(()=>{i.current=!0}),m.useCallback(function(l,u){if(u===void 0&&(u={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let c=Y_(l,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Fi([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,o,e])}const TG=m.createContext(null);function kG(e){let t=m.useContext(ha).outlet;return t&&m.createElement(TG.Provider,{value:e},t)}function P3(){let{matches:e}=m.useContext(ha),t=e[e.length-1];return t?t.params:{}}function C3(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=m.useContext(ha),{pathname:o}=rn(),a=JSON.stringify(K_(n).map(i=>i.pathnameBase));return m.useMemo(()=>Y_(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function AG(e,t){return RG(e,t)}function RG(e,t,r){ns()||tr(!1);let{navigator:n}=m.useContext(xl),{matches:o}=m.useContext(ha),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=rn(),u;if(t){var c;let p=typeof t=="string"?eh(t):t;s==="/"||(c=p.pathname)!=null&&c.startsWith(s)||tr(!1),u=p}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=oG(e,{pathname:d}),g=NG(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},i,p.params),pathname:Fi([s,n.encodeLocation?n.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:Fi([s,n.encodeLocation?n.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,r);return t&&g?m.createElement(mb.Provider,{value:{location:rg({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:tg.Pop}},g):g}function MG(){let e=zG(),t=OG(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),r?m.createElement("pre",{style:o},r):null,a)}const IG=m.createElement(MG,null);class DG extends m.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?m.createElement(ha.Provider,{value:this.props.routeContext},m.createElement(S3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jG(e){let{routeContext:t,match:r,children:n}=e,o=m.useContext(X_);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),m.createElement(ha.Provider,{value:t},n)}function NG(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=a.findIndex(l=>l.route.id&&(i==null?void 0:i[l.route.id]));s>=0||tr(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,u)=>{let c=l.route.id?i==null?void 0:i[l.route.id]:null,f=null;r&&(f=l.route.errorElement||IG);let d=t.concat(a.slice(0,u+1)),h=()=>{let g;return c?g=f:l.route.Component?g=m.createElement(l.route.Component,null):l.route.element?g=l.route.element:g=s,m.createElement(jG,{match:l,routeContext:{outlet:s,matches:d,isDataRoute:r!=null},children:g})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?m.createElement(DG,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var _3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_3||{}),ng=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}(ng||{});function LG(e){let t=m.useContext(X_);return t||tr(!1),t}function FG(e){let t=m.useContext(CG);return t||tr(!1),t}function BG(e){let t=m.useContext(ha);return t||tr(!1),t}function $3(e){let t=BG(),r=t.matches[t.matches.length-1];return r.route.id||tr(!1),r.route.id}function zG(){var e;let t=m.useContext(S3),r=FG(ng.UseRouteError),n=$3(ng.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function VG(){let{router:e}=LG(_3.UseNavigateStable),t=$3(ng.UseNavigateStable),r=m.useRef(!1);return O3(()=>{r.current=!0}),m.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,rg({fromRouteId:t},a)))},[e,t])}function UG(e){let{to:t,replace:r,state:n,relative:o}=e;ns()||tr(!1);let{matches:a}=m.useContext(ha),{pathname:i}=rn(),s=No(),l=Y_(t,K_(a).map(c=>c.pathnameBase),i,o==="path"),u=JSON.stringify(l);return m.useEffect(()=>s(JSON.parse(u),{replace:r,state:n,relative:o}),[s,u,o,r,n]),null}function WG(e){return kG(e.context)}function Qr(e){tr(!1)}function HG(e){let{basename:t="/",children:r=null,location:n,navigationType:o=tg.Pop,navigator:a,static:i=!1}=e;ns()&&tr(!1);let s=t.replace(/^\/*/,"/"),l=m.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=eh(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=n,g=m.useMemo(()=>{let p=G_(u,s);return p==null?null:{location:{pathname:p,search:c,hash:f,state:d,key:h},navigationType:o}},[s,u,c,f,d,h,o]);return g==null?null:m.createElement(xl.Provider,{value:l},m.createElement(mb.Provider,{children:r,value:g}))}function _u(e){let{children:t,location:r}=e;return AG(LS(t),r)}new Promise(()=>{});function LS(e,t){t===void 0&&(t=[]);let r=[];return m.Children.forEach(e,(n,o)=>{if(!m.isValidElement(n))return;let a=[...t,o];if(n.type===m.Fragment){r.push.apply(r,LS(n.props.children,a));return}n.type!==Qr&&tr(!1),!n.props.index||!n.props.children||tr(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=LS(n.props.children,a)),r.push(i)}),r}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function GG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KG(e,t){return e.button===0&&(!t||t==="_self")&&!GG(e)}const YG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],XG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ll=m.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:u,preventScrollReset:c}=t,f=qG(t,YG),{basename:d}=m.useContext(xl),h,g=!1;if(typeof u=="string"&&QG.test(u)&&(h=u,XG))try{let y=new URL(window.location.href),v=u.startsWith("//")?new URL(y.protocol+u):new URL(u),w=G_(v.pathname,d);v.origin===y.origin&&w!=null?u=w+v.search+v.hash:g=!0}catch{}let p=_G(u,{relative:o}),x=JG(u,{replace:i,state:s,target:l,preventScrollReset:c,relative:o});function b(y){n&&n(y),y.defaultPrevented||x(y)}return m.createElement("a",FS({},f,{href:h||p,onClick:g||a?n:b,ref:r,target:l}))});var DA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(DA||(DA={}));var jA;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jA||(jA={}));function JG(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,s=No(),l=rn(),u=C3(e,{relative:i});return m.useCallback(c=>{if(KG(c,r)){c.preventDefault();let f=n!==void 0?n:RA(l)===RA(u);s(e,{replace:f,state:o,preventScrollReset:a,relative:i})}},[l,s,u,n,o,r,e,a,i])}var ZG="RaStore",eK=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},BS=eK(),tK=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(ZG).concat(t),n=r.length,o={},a=function(s,l){Object.keys(o).forEach(function(u){o[u]&&o[u].key===s&&o[u].callback(l)})},i=function(s){var l;if(((l=s.key)===null||l===void 0?void 0:l.substring(0,n))===r){var u=s.key.substring(n+1),c=s.newValue?NA(s.newValue):void 0;Object.keys(o).forEach(function(f){o[f]&&o[f].key===u&&(c===null?o[f].callback(void 0):o[f].callback(c??void 0))})}};return{setup:function(){if(BS){var s=wa().getItem("".concat(r,".version"));if(s&&s!==e){var l=wa();Object.keys(l).forEach(function(u){u.startsWith(r)&&l.removeItem(u)})}wa().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){BS&&window.removeEventListener("storage",i)},getItem:function(s,l){var u=wa().getItem("".concat(r,".").concat(s));return u==null?l:NA(u)},setItem:function(s,l){l===void 0?wa().removeItem("".concat(r,".").concat(s)):wa().setItem("".concat(r,".").concat(s),JSON.stringify(l)),a(s,l)},removeItem:function(s){wa().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var l=wa();Object.keys(l).forEach(function(u){if(u.startsWith("".concat(r,".").concat(s))){l.removeItem(u);var c=u.substring(n+1);a(c,void 0)}})},reset:function(){var s=wa();Object.keys(s).forEach(function(l){if(l.startsWith(r)){s.removeItem(l);var u=l.substring(n+1);a(u,void 0)}})},subscribe:function(s,l){var u=Math.random().toString();return o[u]={key:s,callback:l},function(){delete o[u]}}}},NA=function(e){try{return JSON.parse(e)}catch{return e}},rK=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),nK=new rK,wa=function(){return BS?window.localStorage:nK},oK=typeof Rn=="object"&&Rn&&Rn.Object===Object&&Rn,E3=oK,aK=E3,iK=typeof self=="object"&&self&&self.Object===Object&&self,sK=aK||iK||Function("return this")(),Lo=sK,lK=Lo,uK=lK.Symbol,Ac=uK,LA=Ac,T3=Object.prototype,cK=T3.hasOwnProperty,fK=T3.toString,wf=LA?LA.toStringTag:void 0;function dK(e){var t=cK.call(e,wf),r=e[wf];try{e[wf]=void 0;var n=!0}catch{}var o=fK.call(e);return n&&(t?e[wf]=r:delete e[wf]),o}var pK=dK,hK=Object.prototype,vK=hK.toString;function mK(e){return vK.call(e)}var gK=mK,FA=Ac,yK=pK,bK=gK,xK="[object Null]",wK="[object Undefined]",BA=FA?FA.toStringTag:void 0;function SK(e){return e==null?e===void 0?wK:xK:BA&&BA in Object(e)?yK(e):bK(e)}var ti=SK;function OK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var On=OK;const Rc=ze(On);var PK=ti,CK=On,_K="[object AsyncFunction]",$K="[object Function]",EK="[object GeneratorFunction]",TK="[object Proxy]";function kK(e){if(!CK(e))return!1;var t=PK(e);return t==$K||t==EK||t==_K||t==TK}var gb=kK;const Ve=ze(gb);var AK=Lo,RK=AK["__core-js_shared__"],MK=RK,q1=MK,zA=function(){var e=/[^.]+$/.exec(q1&&q1.keys&&q1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function IK(e){return!!zA&&zA in e}var DK=IK,jK=Function.prototype,NK=jK.toString;function LK(e){if(e!=null){try{return NK.call(e)}catch{}try{return e+""}catch{}}return""}var k3=LK,FK=gb,BK=DK,zK=On,VK=k3,UK=/[\\^$.*+?()[\]{}|]/g,WK=/^\[object .+?Constructor\]$/,HK=Function.prototype,qK=Object.prototype,GK=HK.toString,KK=qK.hasOwnProperty,YK=RegExp("^"+GK.call(KK).replace(UK,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function XK(e){if(!zK(e)||BK(e))return!1;var t=FK(e)?YK:WK;return t.test(VK(e))}var QK=XK;function JK(e,t){return e==null?void 0:e[t]}var ZK=JK,eY=QK,tY=ZK;function rY(e,t){var r=tY(e,t);return eY(r)?r:void 0}var wl=rY,nY=wl,oY=function(){try{var e=nY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),A3=oY,VA=A3;function aY(e,t,r){t=="__proto__"&&VA?VA(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var yb=aY;function iY(e,t){return e===t||e!==e&&t!==t}var Mc=iY,sY=yb,lY=Mc,uY=Object.prototype,cY=uY.hasOwnProperty;function fY(e,t,r){var n=e[t];(!(cY.call(e,t)&&lY(n,r))||r===void 0&&!(t in e))&&sY(e,t,r)}var Q_=fY,dY=Array.isArray,Dr=dY;const ar=ze(Dr);function pY(e){return e!=null&&typeof e=="object"}var po=pY,hY=ti,vY=po,mY="[object Symbol]";function gY(e){return typeof e=="symbol"||vY(e)&&hY(e)==mY}var Ic=gY,yY=Dr,bY=Ic,xY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wY=/^\w*$/;function SY(e,t){if(yY(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||bY(e)?!0:wY.test(e)||!xY.test(e)||t!=null&&e in Object(t)}var J_=SY,OY=wl,PY=OY(Object,"create"),bb=PY,UA=bb;function CY(){this.__data__=UA?UA(null):{},this.size=0}var _Y=CY;function $Y(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EY=$Y,TY=bb,kY="__lodash_hash_undefined__",AY=Object.prototype,RY=AY.hasOwnProperty;function MY(e){var t=this.__data__;if(TY){var r=t[e];return r===kY?void 0:r}return RY.call(t,e)?t[e]:void 0}var IY=MY,DY=bb,jY=Object.prototype,NY=jY.hasOwnProperty;function LY(e){var t=this.__data__;return DY?t[e]!==void 0:NY.call(t,e)}var FY=LY,BY=bb,zY="__lodash_hash_undefined__";function VY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=BY&&t===void 0?zY:t,this}var UY=VY,WY=_Y,HY=EY,qY=IY,GY=FY,KY=UY;function Dc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var cX=uX,fX=xb;function dX(e,t){var r=this.__data__,n=fX(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var pX=dX,hX=QY,vX=oX,mX=sX,gX=cX,yX=pX;function jc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&IJ?new kJ:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=AZ}var l$=RZ,MZ=ti,IZ=l$,DZ=po,jZ="[object Arguments]",NZ="[object Array]",LZ="[object Boolean]",FZ="[object Date]",BZ="[object Error]",zZ="[object Function]",VZ="[object Map]",UZ="[object Number]",WZ="[object Object]",HZ="[object RegExp]",qZ="[object Set]",GZ="[object String]",KZ="[object WeakMap]",YZ="[object ArrayBuffer]",XZ="[object DataView]",QZ="[object Float32Array]",JZ="[object Float64Array]",ZZ="[object Int8Array]",eee="[object Int16Array]",tee="[object Int32Array]",ree="[object Uint8Array]",nee="[object Uint8ClampedArray]",oee="[object Uint16Array]",aee="[object Uint32Array]",Mt={};Mt[QZ]=Mt[JZ]=Mt[ZZ]=Mt[eee]=Mt[tee]=Mt[ree]=Mt[nee]=Mt[oee]=Mt[aee]=!0;Mt[jZ]=Mt[NZ]=Mt[YZ]=Mt[LZ]=Mt[XZ]=Mt[FZ]=Mt[BZ]=Mt[zZ]=Mt[VZ]=Mt[UZ]=Mt[WZ]=Mt[HZ]=Mt[qZ]=Mt[GZ]=Mt[KZ]=!1;function iee(e){return DZ(e)&&IZ(e.length)&&!!Mt[MZ(e)]}var see=iee;function lee(e){return function(t){return e(t)}}var oh=lee,ig={exports:{}};ig.exports;(function(e,t){var r=E3,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(ig,ig.exports);var u$=ig.exports,uee=see,cee=oh,tR=u$,rR=tR&&tR.isTypedArray,fee=rR?cee(rR):uee,c$=fee,dee=bZ,pee=_b,hee=Dr,vee=$b,mee=Ob,gee=c$,yee=Object.prototype,bee=yee.hasOwnProperty;function xee(e,t){var r=hee(e),n=!r&&pee(e),o=!r&&!n&&vee(e),a=!r&&!n&&!o&&gee(e),i=r||n||o||a,s=i?dee(e.length,String):[],l=s.length;for(var u in e)(t||bee.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mee(u,l)))&&s.push(u);return s}var Y3=xee,wee=Object.prototype;function See(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wee;return e===r}var f$=See;function Oee(e,t){return function(r){return e(t(r))}}var X3=Oee,Pee=X3,Cee=Pee(Object.keys,Object),_ee=Cee,$ee=f$,Eee=_ee,Tee=Object.prototype,kee=Tee.hasOwnProperty;function Aee(e){if(!$ee(e))return Eee(e);var t=[];for(var r in Object(e))kee.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ree=Aee,Mee=gb,Iee=l$;function Dee(e){return e!=null&&Iee(e.length)&&!Mee(e)}var Sl=Dee,jee=Y3,Nee=Ree,Lee=Sl;function Fee(e){return Lee(e)?jee(e):Nee(e)}var Bc=Fee,Bee=q3,zee=s$,Vee=Bc;function Uee(e){return Bee(e,Vee,zee)}var Q3=Uee,nR=Q3,Wee=1,Hee=Object.prototype,qee=Hee.hasOwnProperty;function Gee(e,t,r,n,o,a){var i=r&Wee,s=nR(e),l=s.length,u=nR(t),c=u.length;if(l!=c&&!i)return!1;for(var f=l;f--;){var d=s[f];if(!(i?d in t:qee.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var x=i;++f0){if(++t>=pne)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gne=mne,yne=dne,bne=gne,xne=bne(yne),h4=xne,wne=Uc,Sne=p4,One=h4;function Pne(e,t){return One(Sne(e,t,wne),e+"")}var ih=Pne,Cne=Mc,_ne=Sl,$ne=Ob,Ene=On;function Tne(e,t,r){if(!Ene(r))return!1;var n=typeof t;return(n=="number"?_ne(r)&&$ne(t,r.length):n=="string"&&t in r)?Cne(r[t],e):!1}var Wc=Tne,kne=ih,Ane=Wc;function Rne(e){return kne(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Ane(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Wne(e){var t=e.basename,r=e.children,n=e.history,o=m.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return m.useLayoutEffect(function(){return n.listen(i)},[n]),m.createElement(HG,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var g4=m.createContext(""),Hne=function(e){var t=e.children,r=e.basename;return m.createElement(g4.Provider,{value:r},t)},qne=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=ns(),i=a?Gne:Kne;return m.createElement(Hne,{basename:a?n:""},m.createElement(i,{basename:n,history:t},o))},Gne=function(e){var t=e.children;return m.createElement(m.Fragment,null,t)},Kne=function(e){var t=e.children,r=e.history,n=m.useMemo(function(){return r||Vne()},[r]);return m.createElement(Wne,{history:n},t)},os=function(){return m.useContext(g4)},Ol=function(){var e=os();return m.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return qo("".concat(e,"/").concat(r));case"create":return qo("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qo("".concat(e,"/").concat(r)):qo("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qo("".concat(e,"/").concat(r)):qo("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},qo=function(e){return e.replace("//","/")},pd=globalThis&&globalThis.__assign||function(){return pd=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),w4="%[a-f0-9]{2}",AR=new RegExp("("+w4+")|([^%]+?)","gi"),RR=new RegExp("("+w4+")+","gi");function GS(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],GS(r),GS(n))}function hoe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(AR)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},yoe=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;ay==null,i=Symbol("encodeFragmentIdentifier");function s(y){switch(y.arrayFormat){case"index":return v=>(w,S)=>{const O=w.length;return S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?w:S===null?[...w,[c(v,y),"[",O,"]"].join("")]:[...w,[c(v,y),"[",c(O,y),"]=",c(S,y)].join("")]};case"bracket":return v=>(w,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?w:S===null?[...w,[c(v,y),"[]"].join("")]:[...w,[c(v,y),"[]=",c(S,y)].join("")];case"colon-list-separator":return v=>(w,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?w:S===null?[...w,[c(v,y),":list="].join("")]:[...w,[c(v,y),":list=",c(S,y)].join("")];case"comma":case"separator":case"bracket-separator":{const v=y.arrayFormat==="bracket-separator"?"[]=":"=";return w=>(S,O)=>O===void 0||y.skipNull&&O===null||y.skipEmptyString&&O===""?S:(O=O===null?"":O,S.length===0?[[c(w,y),v,c(O,y)].join("")]:[[S,c(O,y)].join(y.arrayFormatSeparator)])}default:return v=>(w,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?w:S===null?[...w,c(v,y)]:[...w,[c(v,y),"=",c(S,y)].join("")]}}function l(y){let v;switch(y.arrayFormat){case"index":return(w,S,O)=>{if(v=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!v){O[w]=S;return}O[w]===void 0&&(O[w]={}),O[w][v[1]]=S};case"bracket":return(w,S,O)=>{if(v=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!v){O[w]=S;return}if(O[w]===void 0){O[w]=[S];return}O[w]=[].concat(O[w],S)};case"colon-list-separator":return(w,S,O)=>{if(v=/(:list)$/.exec(w),w=w.replace(/:list$/,""),!v){O[w]=S;return}if(O[w]===void 0){O[w]=[S];return}O[w]=[].concat(O[w],S)};case"comma":case"separator":return(w,S,O)=>{const P=typeof S=="string"&&S.includes(y.arrayFormatSeparator),C=typeof S=="string"&&!P&&f(S,y).includes(y.arrayFormatSeparator);S=C?f(S,y):S;const T=P||C?S.split(y.arrayFormatSeparator).map(A=>f(A,y)):S===null?S:f(S,y);O[w]=T};case"bracket-separator":return(w,S,O)=>{const P=/(\[\])$/.test(w);if(w=w.replace(/\[\]$/,""),!P){O[w]=S&&f(S,y);return}const C=S===null?[]:S.split(y.arrayFormatSeparator).map(T=>f(T,y));if(O[w]===void 0){O[w]=C;return}O[w]=[].concat(O[w],C)};default:return(w,S,O)=>{if(O[w]===void 0){O[w]=S;return}O[w]=[].concat(O[w],S)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,v){return v.encode?v.strict?t(y):encodeURIComponent(y):y}function f(y,v){return v.decode?r(y):y}function d(y){return Array.isArray(y)?y.sort():typeof y=="object"?d(Object.keys(y)).sort((v,w)=>Number(v)-Number(w)).map(v=>y[v]):y}function h(y){const v=y.indexOf("#");return v!==-1&&(y=y.slice(0,v)),y}function g(y){let v="";const w=y.indexOf("#");return w!==-1&&(v=y.slice(w)),v}function p(y){y=h(y);const v=y.indexOf("?");return v===-1?"":y.slice(v+1)}function x(y,v){return v.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):v.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function b(y,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),u(v.arrayFormatSeparator);const w=l(v),S=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return S;for(const O of y.split("&")){if(O==="")continue;let[P,C]=n(v.decode?O.replace(/\+/g," "):O,"=");C=C===void 0?null:["comma","separator","bracket-separator"].includes(v.arrayFormat)?C:f(C,v),w(f(P,v),C,S)}for(const O of Object.keys(S)){const P=S[O];if(typeof P=="object"&&P!==null)for(const C of Object.keys(P))P[C]=x(P[C],v);else S[O]=x(P,v)}return v.sort===!1?S:(v.sort===!0?Object.keys(S).sort():Object.keys(S).sort(v.sort)).reduce((O,P)=>{const C=S[P];return C&&typeof C=="object"&&!Array.isArray(C)?O[P]=d(C):O[P]=C,O},Object.create(null))}e.extract=p,e.parse=b,e.stringify=(y,v)=>{if(!y)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),u(v.arrayFormatSeparator);const w=C=>v.skipNull&&a(y[C])||v.skipEmptyString&&y[C]==="",S=s(v),O={};for(const C of Object.keys(y))w(C)||(O[C]=y[C]);const P=Object.keys(O);return v.sort!==!1&&P.sort(v.sort),P.map(C=>{const T=y[C];return T===void 0?"":T===null?c(C,v):Array.isArray(T)?T.length===0&&v.arrayFormat==="bracket-separator"?c(C,v)+"[]":T.reduce(S(C),[]).join("&"):c(C,v)+"="+c(T,v)}).filter(C=>C.length>0).join("&")},e.parseUrl=(y,v)=>{v=Object.assign({decode:!0},v);const[w,S]=n(y,"#");return Object.assign({url:w.split("?")[0]||"",query:b(p(y),v)},v&&v.parseFragmentIdentifier&&S?{fragmentIdentifier:f(S,v)}:{})},e.stringifyUrl=(y,v)=>{v=Object.assign({encode:!0,strict:!0,[i]:!0},v);const w=h(y.url).split("?")[0]||"",S=e.extract(y.url),O=e.parse(S,{sort:!1}),P=Object.assign(O,y.query);let C=e.stringify(P,v);C&&(C=`?${C}`);let T=g(y.url);return y.fragmentIdentifier&&(T=`#${v[i]?c(y.fragmentIdentifier,v):y.fragmentIdentifier}`),`${w}${C}${T}`},e.pick=(y,v,w)=>{w=Object.assign({parseFragmentIdentifier:!0,[i]:!1},w);const{url:S,query:O,fragmentIdentifier:P}=e.parseUrl(y,w);return e.stringifyUrl({url:S,query:o(O,v),fragmentIdentifier:P},w)},e.exclude=(y,v,w)=>{const S=Array.isArray(v)?O=>!v.includes(O):(O,P)=>!v(O,P);return e.pick(y,S,w)}})(Xs);var ug=globalThis&&globalThis.__assign||function(){return ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new doe(l&&l.message||a,o,l)):Promise.resolve({status:o,headers:i,body:s,json:l})})},O4={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function i(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||!e.message?t:e.message};const _4=Ooe;var Coe=["getList","getMany","getManyReference"],Hc=function(){var e=m.useContext(x4)||C4,t=_4(),r=m.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=z.useRef(e.isMutating()>0),o=z.useState(r.current||n.current),a=o[0],i=o[1];return z.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Et.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),l=e.getMutationCache().subscribe(Et.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),l()}},[e]),a},Tb=function(){var e=ei();return m.useCallback(function(){e.invalidateQueries()},[e])},$oe=function(e,t,r){var n=t.id,o=t.meta,a=Hc();return rs([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},pu=globalThis&&globalThis.__assign||function(){return pu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?$4(s,t-1,r,n,o):Moe(o,s):n||(o[o.length]=s)}return o}var sh=$4;function Doe(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var T4=qoe;function Goe(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=sae){var u=t?null:aae(e);if(u)return iae(u);i=!1,o=oae,l=new tae}else l=t?[]:s;e:for(;++n=t||P<0||f&&C>=a}function b(){var O=J1();if(x(O))return y(O);s=setTimeout(b,p(O))}function y(O){return s=void 0,d&&n?h(O):(n=o=void 0,i)}function v(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function w(){return s===void 0?i:y(J1())}function S(){var O=J1(),P=x(O);if(n=arguments,o=this,l=O,P){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),i}return S.cancel=v,S.flush=w,S}var M4=Nae;const I4=ze(M4);function FR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var D4=function(e,t){if(FR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o2?t[2]:void 0;for(o&&Rie(t[0],t[1],o)&&(n=1);++r"u"?"undefined":q4(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!u.item&&a===void 0&&(a=u);o=o.concat(l)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),Uie=Vie,Wie=typeof window>"u"?Rn:window;function Hie(e,t){if(e instanceof Wie[t])return!0;switch(typeof e>"u"?"undefined":q4(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var ex,VR;function qie(){return VR||(VR=1,ex=function(t,r,n){var o=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(l){return l.indexOf(r)>=0||l.indexOf(o)>=0||l.indexOf('"')>=0}:function(l){return l.indexOf(r)>=0||l.indexOf(o)>=0};return function(l){return n&&(l=""+l),l.replace&&(l=l.replace(a,i),(n||s(l))&&(l=t+l+t)),l}}),ex}var Gie=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(d).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),o.push(f.join(this._options.rowDelimiter)),n=f}}catch(h){s=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(s)throw l}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(x){var b=o._headers.indexOf(x);return b===-1&&(o._headers.push(x),b=o._headers.indexOf(x)),b};i=function(x){var b=[],y=function(M){return b.push(M.map(function(R){return R??""}))},v=function(){return new Array(o._headers.length).fill(null)},w={},S=v(),O=!0,P=!1,C=void 0;try{for(var T=x[Symbol.iterator](),A;!(O=(A=T.next()).done);O=!0){var k=A.value,I=s(k.item);if(S[I]!=null&&(y(S),S=v()),w[I]=w[I]||0,o._options.fillTopRow&&w[I]0&&y(S),a=a.concat(o._checkRows(b))};var l=!0,u=!1,c=void 0;try{for(var f=r[Symbol.iterator](),d;!(l=(d=f.next()).done);l=!0){var h=d.value,g=o._handler.check(h,o._options.mainPathItem,h,r);i(g)}}catch(p){u=!0,c=p}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),UR(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(f){var d=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(d=n._escape(d),n._options.verticalOutput){var h=[f.item,d];o.push(h.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(d)};for(var l in r){var u="";this._options.mainPathItem&&(u=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[l],u+l,l,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),UR(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Qie=Xie,Jie=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Zie=Jie,HR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qR=Qie,GR=Zie,ese=H4,tse=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:ese,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":HR(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),l=s[0];if((typeof l>"u"?"undefined":HR(l))==="object"){var u=Object.keys(e),c=Object.keys(l),f=c.every(function(g){return u.includes(g)});c.length>0&&f?r=l:t=l}else t=l}else return new GR(new qR(e));var d=Object.assign({},e,r),h=new qR(d);return t?new Promise(function(g,p){h.parse(t,function(x,b){if(n)return n(x,b);if(x)return p(x);if(p)return g(b)})}):new GR};const rse=ze(tse),nse=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var ose=function(e,t,r,n){return rse(e,function(o,a){return nse(a,n)})};const ase=ose;var ise=function(e){return function(t,r,n){return e.getMany(n,{ids:sse(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},sse=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))};const lse=ise;var Ml=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(l){if(!Array.isArray(l))return Ml([],l,!0);var u=l.indexOf(s);return u>-1?Ml(Ml([],l.slice(0,u),!0),l.slice(u+1),!0):Ml(Ml([],l,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},use=[],cse=Cb,fse=d$,dse=1,pse=2;function hse(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!P&&w(A)},[h.search]);var k=m.useCallback(function(W){O.current&&(S.current?S.current=zR(S.current,W):(S.current=zR(A,W),setTimeout(function(){o?b(S.current):g({search:"?".concat(Xs.stringify(zi(zi({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:W.type===XS}}),S.current=void 0},0)))},KR(KR([],C,!0),[g],!1)),I=m.useCallback(function(W){return k({type:L4,payload:W})},[k]),D=m.useCallback(function(W){return k({type:XS,payload:W})},[k]),M=m.useCallback(function(W){return k({type:F4,payload:W})},[k]),R=A.filter||QR,N=A.displayedFilters||QR,F=I4(function(W,X){k({type:QS,payload:{filter:fg(W),displayedFilters:X}})},r),j=m.useCallback(function(W,X,J){return J===void 0&&(J=!0),J?F(W,X):k({type:QS,payload:{filter:fg(W),displayedFilters:X}})},[k]),L=m.useCallback(function(W){k({type:z4,payload:W})},[k]),B=m.useCallback(function(W,X){k({type:B4,payload:{filterName:W,defaultValue:X}})},[k]);return[zi({displayedFilters:N,filterValues:R,requestSignature:C},A),{changeParams:k,setPage:D,setPerPage:M,setSort:I,setFilters:j,hideFilter:L,showFilter:B}]},wle=["page","perPage","sort","order","filter","displayedFilters"],YR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Sle=function(e){var t=e.search,r=yle(Xs.parse(t),function(n,o){return wle.indexOf(o)!==-1});return YR(r,"filter"),YR(r,"displayedFilters"),r},Ole=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Ple=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:Ole(r)?zi({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),zi(zi({},i),{page:XR(i.page,1),perPage:XR(i.perPage,10)})},XR=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},QR={},Cle={field:"id",order:Bi},JR={},O$=m.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});O$.displayName="ListContext";var J4=m.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),_le=function(e){return m.useMemo(function(){return y$(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};J4.displayName="ListFilterContext";var Z4=m.createContext({sort:null,setSort:null,resource:null}),$le=function(e){return m.useMemo(function(){return y$(e,["sort","setSort","resource"])},[e.sort,e.setSort])};Z4.displayName="ListSortContext";var P$=m.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});P$.displayName="ListPaginationContext";var Ele=function(e){return m.useMemo(function(){return y$(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},e5=function(e){var t=e.value,r=e.children;return m.createElement(O$.Provider,{value:t},m.createElement(J4.Provider,{value:_le(t)},m.createElement(Z4.Provider,{value:$le(t)},m.createElement(P$.Provider,{value:Ele(t)},r))))},Qs=globalThis&&globalThis.__assign||function(){return Qs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&m.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var v=We(),w=zn(),S=xle({debounce:r,disableSyncWithLocation:o,filterDefaultValues:l,perPage:c,resource:x,sort:g,storeKey:p}),O=S[0],P=S[1],C=G4(x),T=C[0],A=C[1],k=Eoe(x,{pagination:{page:O.page,perPage:O.perPage},sort:{field:O.sort,order:O.order},filter:Qs(Qs({},O.filter),s),meta:b},Qs({keepPreviousData:!0,retry:!1,onError:function(X){return w((X==null?void 0:X.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:X==null?void 0:X.message}})}},y)),I=k.data,D=k.pageInfo,M=k.total,R=k.error,N=k.isLoading,F=k.isFetching,j=k.refetch;m.useEffect(function(){if(O.page<=0||!F&&O.page>1&&(I==null||(I==null?void 0:I.length)===0)){P.setPage(1);return}if(M!=null){var X=Math.ceil(M/O.perPage)||1;!F&&O.page>X&&P.setPage(X)}},[F,O.page,O.perPage,I,P,M]);var L=m.useMemo(function(){return{field:O.sort,order:O.order}},[O.sort,O.order]),B=Ib(),W=v("ra.page.list",{name:B(x,2)});return{sort:L,data:I,defaultTitle:W,displayedFilters:O.displayedFilters,error:R,exporter:i,filter:s,filterValues:O.filterValues,hideFilter:P.hideFilter,isFetching:F,isLoading:N,onSelect:A.select,onToggleItem:A.toggle,onUnselectItems:A.clearSelection,page:O.page,perPage:O.perPage,refetch:j,resource:x,selectedIds:T,setFilters:P.setFilters,setPage:P.setPage,setPerPage:P.setPerPage,setSort:P.setSort,showFilter:P.showFilter,total:M,hasNextPage:D?D.hasNextPage:M!=null?O.page*O.perPage1}},Ale={field:"id",order:Bi},Rle=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],op=function(e){return Object.keys(e).filter(function(t){return!Rle.includes(t)}).reduce(function(t,r){var n;return Qs(Qs({},t),(n={},n[r]=e[r],n))},{})},Mle=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:hv(hv([],l.slice(0,u),!0),l.slice(u+1),!0):r?[t]:hv(hv([],l,!0),[t],!1)})},[a,t,r]);return[i,s]},jle=function(e,t){var r=ho("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(l){return l==s})}):!1,i=m.useCallback(function(){var s=n.filter(function(l){return!t.some(function(u){return u==l})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},St=function(e){var t=m.useContext(O$);return m.useMemo(function(){return lh({},e!=null?Nle(e):{},t)},[t,e])},Nle=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,l=e.hideFilter,u=e.isFetching,c=e.isLoading,f=e.onSelect,d=e.onToggleItem,h=e.onUnselectItems,g=e.page,p=e.perPage,x=e.refetch,b=e.resource,y=e.selectedIds,v=e.setFilters,w=e.setPage,S=e.setPerPage,O=e.setSort,P=e.showFilter,C=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:l,isFetching:u,isLoading:c,onSelect:f,onToggleItem:d,onUnselectItems:h,page:g,perPage:p,refetch:x,resource:b,selectedIds:y,setFilters:v,setPage:w,setPerPage:S,setSort:O,showFilter:P,total:C}},Lle=function(e){var t=m.useContext(P$);return m.useMemo(function(){return lh({},e!=null?Fle(e):{},t)},[t,e])},Fle=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,l=e.total,u=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:l,resource:u}},Fs=function(e){var t=e.render;return t(St())||null},hu=globalThis&&globalThis.__assign||function(){return hu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:S,showFilter:F,total:W}},uh=e=>e.type==="checkbox",vu=e=>e instanceof Date,Kr=e=>e==null;const t5=e=>typeof e=="object";var dr=e=>!Kr(e)&&!Array.isArray(e)&&t5(e)&&!vu(e),r5=e=>dr(e)&&e.target?uh(e.target)?e.target.checked:e.target.value:e,Vle=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,n5=(e,t)=>e.has(Vle(t)),Ule=e=>{const t=e.constructor&&e.constructor.prototype;return dr(t)&&t.hasOwnProperty("isPrototypeOf")},C$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function So(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(C$&&(e instanceof Blob||e instanceof FileList))&&(r||dr(e)))if(t=r?[]:{},!r&&!Ule(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=So(e[n]));else return e;return t}var ch=e=>Array.isArray(e)?e.filter(Boolean):[],Zt=e=>e===void 0,Ee=(e,t,r)=>{if(!t||!dr(e))return r;const n=ch(t.split(/[,[\].]+?/)).reduce((o,a)=>Kr(o)?o:o[a],e);return Zt(n)||n===e?Zt(e[t])?r:e[t]:n},Ci=e=>typeof e=="boolean";const dg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},$o={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Sa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o5=z.createContext(null),fh=()=>z.useContext(o5),a5=e=>{const{children:t,...r}=e;return z.createElement(o5.Provider,{value:r},t)};var i5=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==$o.all&&(t._proxyFormState[i]=!n||$o.all),r&&(r[i]=!0),e[i]}});return o},Kn=e=>dr(e)&&!Object.keys(e).length,s5=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Kn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||$o.all))},nm=e=>Array.isArray(e)?e:[e],l5=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||nm(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function _$(e){const t=z.useRef(e);t.current=e,z.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function $$(e){const t=fh(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=z.useState(r._formState),l=z.useRef(!0),u=z.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=z.useRef(o);return c.current=o,_$({disabled:n,next:f=>l.current&&l5(c.current,f.name,a)&&s5(f,u.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),z.useEffect(()=>(l.current=!0,u.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),i5(i,r,u.current,!1)}var ta=e=>typeof e=="string",u5=(e,t,r,n,o)=>ta(e)?(n&&t.watch.add(e),Ee(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ee(r,a))):(n&&(t.watchAll=!0),r);function Wle(e){const t=fh(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=z.useRef(n);s.current=n,_$({disabled:a,subject:r._subjects.values,next:c=>{l5(s.current,c.name,i)&&u(So(u5(s.current,r._names,c.values||r._formValues,!1,o)))}});const[l,u]=z.useState(r._getWatch(n,o));return z.useEffect(()=>r._removeUnmounted()),l}var E$=e=>/^\w*$/.test(e),c5=e=>ch(e.replace(/["|']|\]/g,"").split(/\.|\[/));function _t(e,t,r){let n=-1;const o=E$(t)?[t]:c5(t),a=o.length,i=a-1;for(;++n{const c=o._options.shouldUnregister||a,f=(d,h)=>{const g=Ee(o._fields,d);g&&(g._f.mount=h)};if(f(r,!0),c){const d=So(Ee(o._options.defaultValues,r));_t(o._defaultValues,r,d),Zt(Ee(o._formValues,r))&&_t(o._formValues,r,d)}return()=>{(i?c&&!o._state.action:c)?o.unregister(r):f(r,!1)}},[r,o,i,a]),z.useEffect(()=>{o._updateDisabledField({disabled:n,fields:o._fields,name:r})},[n,r,o]),{field:{name:r,value:s,...Ci(n)?{disabled:n}:{},onChange:z.useCallback(c=>u.current.onChange({target:{value:r5(c),name:r},type:dg.CHANGE}),[r]),onBlur:z.useCallback(()=>u.current.onBlur({target:{value:Ee(o._formValues,r),name:r},type:dg.BLUR}),[r,o]),ref:c=>{const f=Ee(o._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ee(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ee(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ee(l.touchedFields,r)},error:{enumerable:!0,get:()=>Ee(l.errors,r)}})}}var qle=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const JS=(e,t,r)=>{for(const n of r||Object.keys(e)){const o=Ee(e,n);if(o){const{_f:a,...i}=o;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else dr(i)&&JS(i,t)}}};var e2=e=>({isOnSubmit:!e||e===$o.onSubmit,isOnBlur:e===$o.onBlur,isOnChange:e===$o.onChange,isOnAll:e===$o.all,isOnTouch:e===$o.onTouched}),t2=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),Gle=(e,t,r)=>{const n=ch(Ee(e,r));return _t(n,"root",t[r]),_t(e,r,n),e},T$=e=>e.type==="file",_i=e=>typeof e=="function",pg=e=>{if(!C$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},om=e=>ta(e),k$=e=>e.type==="radio",hg=e=>e instanceof RegExp;const r2={value:!1,isValid:!1},n2={value:!0,isValid:!0};var f5=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Zt(e[0].attributes.value)?Zt(e[0].value)||e[0].value===""?n2:{value:e[0].value,isValid:!0}:n2:r2}return r2};const o2={isValid:!1,value:null};var d5=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,o2):o2;function a2(e,t,r="validate"){if(om(e)||Array.isArray(e)&&e.every(om)||Ci(e)&&!e)return{type:r,message:om(e)?e:"",ref:t}}var Il=e=>dr(e)&&!hg(e)?e:{value:e,message:""},i2=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:l,minLength:u,min:c,max:f,pattern:d,validate:h,name:g,valueAsNumber:p,mount:x,disabled:b}=e._f,y=Ee(t,g);if(!x||b)return{};const v=i?i[0]:a,w=I=>{n&&v.reportValidity&&(v.setCustomValidity(Ci(I)?"":I||""),v.reportValidity())},S={},O=k$(a),P=uh(a),C=O||P,T=(p||T$(a))&&Zt(a.value)&&Zt(y)||pg(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,A=qle.bind(null,g,r,S),k=(I,D,M,R=Sa.maxLength,N=Sa.minLength)=>{const F=I?D:M;S[g]={type:I?R:N,message:F,ref:a,...A(I?R:N,F)}};if(o?!Array.isArray(y)||!y.length:s&&(!C&&(T||Kr(y))||Ci(y)&&!y||P&&!f5(i).isValid||O&&!d5(i).isValid)){const{value:I,message:D}=om(s)?{value:!!s,message:s}:Il(s);if(I&&(S[g]={type:Sa.required,message:D,ref:v,...A(Sa.required,D)},!r))return w(D),S}if(!T&&(!Kr(c)||!Kr(f))){let I,D;const M=Il(f),R=Il(c);if(!Kr(y)&&!isNaN(y)){const N=a.valueAsNumber||y&&+y;Kr(M.value)||(I=N>M.value),Kr(R.value)||(D=Nnew Date(new Date().toDateString()+" "+B),j=a.type=="time",L=a.type=="week";ta(M.value)&&y&&(I=j?F(y)>F(M.value):L?y>M.value:N>new Date(M.value)),ta(R.value)&&y&&(D=j?F(y)+I.value,R=!Kr(D.value)&&y.length<+D.value;if((M||R)&&(k(M,I.message,D.message),!r))return w(S[g].message),S}if(d&&!T&&ta(y)){const{value:I,message:D}=Il(d);if(hg(I)&&!y.match(I)&&(S[g]={type:Sa.pattern,message:D,ref:a,...A(Sa.pattern,D)},!r))return w(D),S}if(h){if(_i(h)){const I=await h(y,t),D=a2(I,v);if(D&&(S[g]={...D,...A(Sa.validate,D.message)},!r))return w(D.message),S}else if(dr(h)){let I={};for(const D in h){if(!Kn(I)&&!r)break;const M=a2(await h[D](y,t),v,D);M&&(I={...M,...A(D,M.message)},w(M.message),r&&(S[g]=I))}if(!Kn(I)&&(S[g]={ref:v,...I},!r))return S}}return w(!0),S};function Kle(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var vg=e=>Kr(e)||!t5(e);function Bs(e,t){if(vg(e)||vg(t))return e===t;if(vu(e)&&vu(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(vu(a)&&vu(i)||dr(a)&&dr(i)||Array.isArray(a)&&Array.isArray(i)?!Bs(a,i):a!==i)return!1}}return!0}var p5=e=>e.type==="select-multiple",Xle=e=>k$(e)||uh(e),rx=e=>pg(e)&&e.isConnected,h5=e=>{for(const t in e)if(_i(e[t]))return!0;return!1};function mg(e,t={}){const r=Array.isArray(e);if(dr(e)||r)for(const n in e)Array.isArray(e[n])||dr(e[n])&&!h5(e[n])?(t[n]=Array.isArray(e[n])?[]:{},mg(e[n],t[n])):Kr(e[n])||(t[n]=!0);return t}function v5(e,t,r){const n=Array.isArray(e);if(dr(e)||n)for(const o in e)Array.isArray(e[o])||dr(e[o])&&!h5(e[o])?Zt(t)||vg(r[o])?r[o]=Array.isArray(e[o])?mg(e[o],[]):{...mg(e[o])}:v5(e[o],Kr(t)?{}:t[o],r[o]):r[o]=!Bs(e[o],t[o]);return r}var nx=(e,t)=>v5(e,t,mg(t)),m5=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Zt(e)?e:t?e===""?NaN:e&&+e:r&&ta(e)?new Date(e):n?n(e):e;function ox(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return T$(t)?t.files:k$(t)?d5(e.refs).value:p5(t)?[...t.selectedOptions].map(({value:r})=>r):uh(t)?f5(e.refs).value:m5(Zt(t.value)?e.ref.value:t.value,e)}var Qle=(e,t,r,n)=>{const o={};for(const a of e){const i=Ee(t,a);i&&_t(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Sf=e=>Zt(e)?e:hg(e)?e.source:dr(e)?hg(e.value)?e.value.source:e.value:e,Jle=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function s2(e,t,r){const n=Ee(e,r);if(n||E$(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Ee(t,a),s=Ee(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var Zle=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,eue=(e,t)=>!ch(Ee(e,t)).length&&_r(e,t);const tue={mode:$o.onSubmit,reValidateMode:$o.onChange,shouldFocusError:!0};function rue(e={},t){let r={...tue,...e},n={submitCount:0,isDirty:!1,isLoading:_i(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=dr(r.defaultValues)||dr(r.values)?So(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:So(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:tx(),array:tx(),state:tx()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,g=e2(r.mode),p=e2(r.reValidateMode),x=r.criteriaMode===$o.all,b=V=>q=>{clearTimeout(c),c=setTimeout(V,q)},y=async V=>{if(f.isValid||V){const q=r.resolver?Kn((await T()).errors):await k(o,!0);q!==n.isValid&&d.state.next({isValid:q})}},v=V=>f.isValidating&&d.state.next({isValidating:V}),w=(V,q=[],U,ne,re=!0,se=!0)=>{if(ne&&U){if(s.action=!0,se&&Array.isArray(Ee(o,V))){const me=U(Ee(o,V),ne.argA,ne.argB);re&&_t(o,V,me)}if(se&&Array.isArray(Ee(n.errors,V))){const me=U(Ee(n.errors,V),ne.argA,ne.argB);re&&_t(n.errors,V,me),eue(n.errors,V)}if(f.touchedFields&&se&&Array.isArray(Ee(n.touchedFields,V))){const me=U(Ee(n.touchedFields,V),ne.argA,ne.argB);re&&_t(n.touchedFields,V,me)}f.dirtyFields&&(n.dirtyFields=nx(a,i)),d.state.next({name:V,isDirty:D(V,q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else _t(i,V,q)},S=(V,q)=>{_t(n.errors,V,q),d.state.next({errors:n.errors})},O=(V,q,U,ne)=>{const re=Ee(o,V);if(re){const se=Ee(i,V,Zt(U)?Ee(a,V):U);Zt(se)||ne&&ne.defaultChecked||q?_t(i,V,q?se:ox(re._f)):N(V,se),s.mount&&y()}},P=(V,q,U,ne,re)=>{let se=!1,me=!1;const Ce={name:V};if(!U||ne){f.isDirty&&(me=n.isDirty,n.isDirty=Ce.isDirty=D(),se=me!==Ce.isDirty);const je=Bs(Ee(a,V),q);me=Ee(n.dirtyFields,V),je?_r(n.dirtyFields,V):_t(n.dirtyFields,V,!0),Ce.dirtyFields=n.dirtyFields,se=se||f.dirtyFields&&me!==!je}if(U){const je=Ee(n.touchedFields,V);je||(_t(n.touchedFields,V,U),Ce.touchedFields=n.touchedFields,se=se||f.touchedFields&&je!==U)}return se&&re&&d.state.next(Ce),se?Ce:{}},C=(V,q,U,ne)=>{const re=Ee(n.errors,V),se=f.isValid&&Ci(q)&&n.isValid!==q;if(e.delayError&&U?(u=b(()=>S(V,U)),u(e.delayError)):(clearTimeout(c),u=null,U?_t(n.errors,V,U):_r(n.errors,V)),(U?!Bs(re,U):re)||!Kn(ne)||se){const me={...ne,...se&&Ci(q)?{isValid:q}:{},errors:n.errors,name:V};n={...n,...me},d.state.next(me)}v(!1)},T=async V=>r.resolver(i,r.context,Qle(V||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),A=async V=>{const{errors:q}=await T(V);if(V)for(const U of V){const ne=Ee(q,U);ne?_t(n.errors,U,ne):_r(n.errors,U)}else n.errors=q;return q},k=async(V,q,U={valid:!0})=>{for(const ne in V){const re=V[ne];if(re){const{_f:se,...me}=re;if(se){const Ce=l.array.has(se.name),je=await i2(re,i,x,r.shouldUseNativeValidation&&!q,Ce);if(je[se.name]&&(U.valid=!1,q))break;!q&&(Ee(je,se.name)?Ce?Gle(n.errors,je,se.name):_t(n.errors,se.name,je[se.name]):_r(n.errors,se.name))}me&&await k(me,q,U)}}return U.valid},I=()=>{for(const V of l.unMount){const q=Ee(o,V);q&&(q._f.refs?q._f.refs.every(U=>!rx(U)):!rx(q._f.ref))&&de(V)}l.unMount=new Set},D=(V,q)=>(V&&q&&_t(i,V,q),!Bs(W(),a)),M=(V,q,U)=>u5(V,l,{...s.mount?i:Zt(q)?a:ta(V)?{[V]:q}:q},U,q),R=V=>ch(Ee(s.mount?i:a,V,e.shouldUnregister?Ee(a,V,[]):[])),N=(V,q,U={})=>{const ne=Ee(o,V);let re=q;if(ne){const se=ne._f;se&&(!se.disabled&&_t(i,V,m5(q,se)),re=pg(se.ref)&&Kr(q)?"":q,p5(se.ref)?[...se.ref.options].forEach(me=>me.selected=re.includes(me.value)):se.refs?uh(se.ref)?se.refs.length>1?se.refs.forEach(me=>(!me.defaultChecked||!me.disabled)&&(me.checked=Array.isArray(re)?!!re.find(Ce=>Ce===me.value):re===me.value)):se.refs[0]&&(se.refs[0].checked=!!re):se.refs.forEach(me=>me.checked=me.value===re):T$(se.ref)?se.ref.value="":(se.ref.value=re,se.ref.type||d.values.next({name:V,values:{...i}})))}(U.shouldDirty||U.shouldTouch)&&P(V,re,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&B(V)},F=(V,q,U)=>{for(const ne in q){const re=q[ne],se=`${V}.${ne}`,me=Ee(o,se);(l.array.has(V)||!vg(re)||me&&!me._f)&&!vu(re)?F(se,re,U):N(se,re,U)}},j=(V,q,U={})=>{const ne=Ee(o,V),re=l.array.has(V),se=So(q);_t(i,V,se),re?(d.array.next({name:V,values:{...i}}),(f.isDirty||f.dirtyFields)&&U.shouldDirty&&d.state.next({name:V,dirtyFields:nx(a,i),isDirty:D(V,se)})):ne&&!ne._f&&!Kr(se)?F(V,se,U):N(V,se,U),t2(V,l)&&d.state.next({...n}),d.values.next({name:V,values:{...i}}),!s.mount&&t()},L=async V=>{const q=V.target;let U=q.name,ne=!0;const re=Ee(o,U),se=()=>q.type?ox(re._f):r5(V);if(re){let me,Ce;const je=se(),He=V.type===dg.BLUR||V.type===dg.FOCUS_OUT,rt=!Jle(re._f)&&!r.resolver&&!Ee(n.errors,U)&&!re._f.deps||Zle(He,Ee(n.touchedFields,U),n.isSubmitted,p,g),Ue=t2(U,l,He);_t(i,U,je),He?(re._f.onBlur&&re._f.onBlur(V),u&&u(0)):re._f.onChange&&re._f.onChange(V);const ke=P(U,je,He,!1),ht=!Kn(ke)||Ue;if(!He&&d.values.next({name:U,type:V.type,values:{...i}}),rt)return f.isValid&&y(),ht&&d.state.next({name:U,...Ue?{}:ke});if(!He&&Ue&&d.state.next({...n}),v(!0),r.resolver){const{errors:Pt}=await T([U]),_e=s2(n.errors,o,U),Y=s2(Pt,o,_e.name||U);me=Y.error,U=Y.name,Ce=Kn(Pt)}else me=(await i2(re,i,x,r.shouldUseNativeValidation))[U],ne=Number.isNaN(je)||je===Ee(i,U,je),ne&&(me?Ce=!1:f.isValid&&(Ce=await k(o,!0)));ne&&(re._f.deps&&B(re._f.deps),C(U,Ce,me,ke))}},B=async(V,q={})=>{let U,ne;const re=nm(V);if(v(!0),r.resolver){const se=await A(Zt(V)?V:re);U=Kn(se),ne=V?!re.some(me=>Ee(se,me)):U}else V?(ne=(await Promise.all(re.map(async se=>{const me=Ee(o,se);return await k(me&&me._f?{[se]:me}:me)}))).every(Boolean),!(!ne&&!n.isValid)&&y()):ne=U=await k(o);return d.state.next({...!ta(V)||f.isValid&&U!==n.isValid?{}:{name:V},...r.resolver||!V?{isValid:U}:{},errors:n.errors,isValidating:!1}),q.shouldFocus&&!ne&&JS(o,se=>se&&Ee(n.errors,se),V?re:l.mount),ne},W=V=>{const q={...a,...s.mount?i:{}};return Zt(V)?q:ta(V)?Ee(q,V):V.map(U=>Ee(q,U))},X=(V,q)=>({invalid:!!Ee((q||n).errors,V),isDirty:!!Ee((q||n).dirtyFields,V),isTouched:!!Ee((q||n).touchedFields,V),error:Ee((q||n).errors,V)}),J=V=>{V&&nm(V).forEach(q=>_r(n.errors,q)),d.state.next({errors:V?n.errors:{}})},K=(V,q,U)=>{const ne=(Ee(o,V,{_f:{}})._f||{}).ref;_t(n.errors,V,{...q,ref:ne}),d.state.next({name:V,errors:n.errors,isValid:!1}),U&&U.shouldFocus&&ne&&ne.focus&&ne.focus()},ie=(V,q)=>_i(V)?d.values.subscribe({next:U=>V(M(void 0,q),U)}):M(V,q,!0),de=(V,q={})=>{for(const U of V?nm(V):l.mount)l.mount.delete(U),l.array.delete(U),q.keepValue||(_r(o,U),_r(i,U)),!q.keepError&&_r(n.errors,U),!q.keepDirty&&_r(n.dirtyFields,U),!q.keepTouched&&_r(n.touchedFields,U),!r.shouldUnregister&&!q.keepDefaultValue&&_r(a,U);d.values.next({values:{...i}}),d.state.next({...n,...q.keepDirty?{isDirty:D()}:{}}),!q.keepIsValid&&y()},ee=({disabled:V,name:q,field:U,fields:ne})=>{if(Ci(V)){const re=V?void 0:Ee(i,q,ox(U?U._f:Ee(ne,q)._f));_t(i,q,re),P(q,re,!1,!1,!0)}},le=(V,q={})=>{let U=Ee(o,V);const ne=Ci(q.disabled);return _t(o,V,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:V}},name:V,mount:!0,...q}}),l.mount.add(V),U?ee({field:U,disabled:q.disabled,name:V}):O(V,!0,q.value),{...ne?{disabled:q.disabled}:{},...r.progressive?{required:!!q.required,min:Sf(q.min),max:Sf(q.max),minLength:Sf(q.minLength),maxLength:Sf(q.maxLength),pattern:Sf(q.pattern)}:{},name:V,onChange:L,onBlur:L,ref:re=>{if(re){le(V,q),U=Ee(o,V);const se=Zt(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,me=Xle(se),Ce=U._f.refs||[];if(me?Ce.find(je=>je===se):se===U._f.ref)return;_t(o,V,{_f:{...U._f,...me?{refs:[...Ce.filter(rx),se,...Array.isArray(Ee(a,V))?[{}]:[]],ref:{type:se.type,name:V}}:{ref:se}}}),O(V,!1,void 0,se)}else U=Ee(o,V,{}),U._f&&(U._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&!(n5(l.array,V)&&s.action)&&l.unMount.add(V)}}},Q=()=>r.shouldFocusError&&JS(o,V=>V&&Ee(n.errors,V),l.mount),ae=(V,q)=>async U=>{U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let ne=So(i);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:re,values:se}=await T();n.errors=re,ne=se}else await k(o);_r(n.errors,"root"),Kn(n.errors)?(d.state.next({errors:{}}),await V(ne,U)):(q&&await q({...n.errors},U),Q(),setTimeout(Q)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Kn(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Z=(V,q={})=>{Ee(o,V)&&(Zt(q.defaultValue)?j(V,Ee(a,V)):(j(V,q.defaultValue),_t(a,V,q.defaultValue)),q.keepTouched||_r(n.touchedFields,V),q.keepDirty||(_r(n.dirtyFields,V),n.isDirty=q.defaultValue?D(V,Ee(a,V)):D()),q.keepError||(_r(n.errors,V),f.isValid&&y()),d.state.next({...n}))},G=(V,q={})=>{const U=V?So(V):a,ne=So(U),re=V&&!Kn(V)?ne:a;if(q.keepDefaultValues||(a=U),!q.keepValues){if(q.keepDirtyValues||h)for(const se of l.mount)Ee(n.dirtyFields,se)?_t(re,se,Ee(i,se)):j(se,Ee(re,se));else{if(C$&&Zt(V))for(const se of l.mount){const me=Ee(o,se);if(me&&me._f){const Ce=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;if(pg(Ce)){const je=Ce.closest("form");if(je){je.reset();break}}}}o={}}i=e.shouldUnregister?q.keepDefaultValues?So(a):{}:So(re),d.array.next({values:{...re}}),d.values.next({values:{...re}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!q.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:q.keepSubmitCount?n.submitCount:0,isDirty:q.keepDirty?n.isDirty:!!(q.keepDefaultValues&&!Bs(V,a)),isSubmitted:q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:q.keepDirtyValues?n.dirtyFields:q.keepDefaultValues&&V?nx(a,V):{},touchedFields:q.keepTouched?n.touchedFields:{},errors:q.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},oe=(V,q)=>G(_i(V)?V(i):V,q);return{control:{register:le,unregister:de,getFieldState:X,handleSubmit:ae,setError:K,_executeSchema:T,_getWatch:M,_getDirty:D,_updateValid:y,_removeUnmounted:I,_updateFieldArray:w,_updateDisabledField:ee,_getFieldArray:R,_reset:G,_resetDefaultValues:()=>_i(r.defaultValues)&&r.defaultValues().then(V=>{oe(V,r.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:V=>{n={...n,...V}},_subjects:d,_proxyFormState:f,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(V){s=V},get _defaultValues(){return a},get _names(){return l},set _names(V){l=V},get _formState(){return n},set _formState(V){n=V},get _options(){return r},set _options(V){r={...r,...V}}},trigger:B,register:le,handleSubmit:ae,watch:ie,setValue:j,getValues:W,reset:oe,resetField:Z,clearErrors:J,unregister:de,setError:K,setFocus:(V,q={})=>{const U=Ee(o,V),ne=U&&U._f;if(ne){const re=ne.refs?ne.refs[0]:ne.ref;re.focus&&(re.focus(),q.shouldSelect&&re.select())}},getFieldState:X}}function g5(e={}){const t=z.useRef(),r=z.useRef(),[n,o]=z.useState({isDirty:!1,isValidating:!1,isLoading:_i(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:_i(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rue(e,()=>o(i=>({...i}))),formState:n});const a=t.current.control;return a._options=e,_$({subject:a._subjects.state,next:i=>{s5(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),z.useEffect(()=>{e.values&&!Bs(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values):a._resetDefaultValues()},[e.values,a]),z.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=i5(n,a),t.current}var ZS=globalThis&&globalThis.__assign||function(){return ZS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");var v=ho(a||"".concat(b,".listParams"),{filter:h,order:u.order,sort:u.field,page:1,perPage:10})[0],w=Hc(),S=ei(),O={page:1,perPage:s},P={field:v.sort,order:v.order},C=Rs(Rs({},v.filter),f),T=p.meta,A=cue(p,["meta"]),k={pagination:O,sort:P,filter:C,meta:T},I=S.getQueryData([b,"getList",Rs(Rs({},k),{pagination:{page:v.page,perPage:v.perPage}})]),D=(t=I==null?void 0:I.data)===null||t===void 0?void 0:t.findIndex(function(de){return de.id===(x==null?void 0:x.id)}),M=D===0&&v.page>1,R=D===((r=I==null?void 0:I.data)===null||r===void 0?void 0:r.length)-1&&v.page<(I==null?void 0:I.total)/v.perPage,N=x&&(I==null?void 0:I.data)&&D!==-1&&!M&&!R,F=rs([b,"getList",k],function(){return w.getList(b,k)},Rs({enabled:!N},A)),j=F.data,L=F.error,B=F.isLoading,W=N?I.data:(j==null?void 0:j.data)||[];if(!x||B)return{isLoading:!0};var X=W.map(function(de){return de.id}),J=X.indexOf(x.id),K=typeof X[J-1]<"u"?X[J-1]:null,ie=J!==-1&&J0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?w(S):S},{updatedAt:v}),o.setQueriesData([x,"getManyReference"],function(S){if(!S||!S.data)return S;var O=w(S.data),P=O.length0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&f(h),[2]})})};r||d()},[e,n,r,s,t,i,c]),[a,u]},xue=function(e){var t=m.useState(e),r=t[0],n=t[1],o=m.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},wue=function(e,t){var r=w5(),n=r.register,o=r.unregister;m.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},Sue=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return S5(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},S5=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},Xf=function(e){var t=[],r=[],n=[];return m.Children.forEach(e,function(o){if(m.isValidElement(o)){if(o.type===m.Fragment){var a=Xf(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},Oue=function(e){Yne();var t=Ol(),r=yue(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,l=e.catchAll,u=e.dashboard,c=e.loading,f=e.menu,d=e.requireAuth,h=e.ready,g=e.title,p=m.useState(!d),x=p[0],b=p[1],y=I$();return m.useEffect(function(){d&&y().then(function(){b(!0)}).catch(function(){})},[y,d]),a==="empty"?m.createElement(h,null):a==="loading"||!x?m.createElement(_u,null,o,m.createElement(Qr,{path:"*",element:m.createElement("div",{style:{height:"100vh"}},m.createElement(c,null))})):m.createElement(_u,null,o,m.createElement(Qr,{path:"/*",element:m.createElement("div",null,m.createElement(s,{dashboard:u,menu:f,title:g},m.createElement(_u,null,n,m.Children.map(i,function(v){return m.createElement(Qr,{key:v.props.name,path:"".concat(v.props.name,"/*"),element:v})}),m.createElement(Qr,{path:"/",element:u?m.createElement(sce,{authParams:Pue,component:u}):i.length>0?m.createElement(UG,{to:t({resource:i[0].props.name,type:"list"})}):null}),m.createElement(Qr,{path:"*",element:m.createElement(l,{title:g})}))))}))},Pue={params:{route:"dashboard"}},Cue=function(e){var t=e.children;return m.createElement(m.Fragment,null,t)},_ue=function(e){var t=e.catchAll,r=t===void 0?p2:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,l=s===void 0?Cue:s,u=e.loading,c=u===void 0?p2:u,f=e.loginPage,d=f===void 0?!1:f,h=e.authCallbackPage,g=h===void 0?!1:h,p=e.menu,x=e.ready,b=x===void 0?Wue:x,y=e.title,v=y===void 0?"React Admin":y,w=e.requireAuth,S=w===void 0?!1:w;return m.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var O=new Image;O.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),m.createElement(_u,null,d!==!1&&d!==!0?m.createElement(Qr,{path:"/login",element:d2(d)}):null,g!==!1&&g!==!0?m.createElement(Qr,{path:"/auth-callback",element:d2(g)}):null,m.createElement(Qr,{path:"/*",element:m.createElement(Oue,{catchAll:r,dashboard:o,layout:l,loading:c,menu:p,requireAuth:S,ready:b,title:v},n)}))},d2=function(e){return m.isValidElement(e)?e:m.createElement(e)},p2=function(){return null},O5={exports:{}},Ot={};/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kb=60103,Ab=60106,dh=60107,ph=60108,hh=60114,vh=60109,mh=60110,gh=60112,yh=60113,R$=60120,bh=60115,xh=60116,P5=60121,C5=60122,_5=60117,$5=60129,E5=60131;if(typeof Symbol=="function"&&Symbol.for){var Cr=Symbol.for;kb=Cr("react.element"),Ab=Cr("react.portal"),dh=Cr("react.fragment"),ph=Cr("react.strict_mode"),hh=Cr("react.profiler"),vh=Cr("react.provider"),mh=Cr("react.context"),gh=Cr("react.forward_ref"),yh=Cr("react.suspense"),R$=Cr("react.suspense_list"),bh=Cr("react.memo"),xh=Cr("react.lazy"),P5=Cr("react.block"),C5=Cr("react.server.block"),_5=Cr("react.fundamental"),$5=Cr("react.debug_trace_mode"),E5=Cr("react.legacy_hidden")}function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kb:switch(e=e.type,e){case dh:case hh:case ph:case yh:case R$:return e;default:switch(e=e&&e.$$typeof,e){case mh:case gh:case xh:case bh:case vh:return e;default:return t}}case Ab:return t}}}var $ue=vh,Eue=kb,Tue=gh,kue=dh,Aue=xh,Rue=bh,Mue=Ab,Iue=hh,Due=ph,jue=yh;Ot.ContextConsumer=mh;Ot.ContextProvider=$ue;Ot.Element=Eue;Ot.ForwardRef=Tue;Ot.Fragment=kue;Ot.Lazy=Aue;Ot.Memo=Rue;Ot.Portal=Mue;Ot.Profiler=Iue;Ot.StrictMode=Due;Ot.Suspense=jue;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return Fo(e)===mh};Ot.isContextProvider=function(e){return Fo(e)===vh};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kb};Ot.isForwardRef=function(e){return Fo(e)===gh};Ot.isFragment=function(e){return Fo(e)===dh};Ot.isLazy=function(e){return Fo(e)===xh};Ot.isMemo=function(e){return Fo(e)===bh};Ot.isPortal=function(e){return Fo(e)===Ab};Ot.isProfiler=function(e){return Fo(e)===hh};Ot.isStrictMode=function(e){return Fo(e)===ph};Ot.isSuspense=function(e){return Fo(e)===yh};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dh||e===hh||e===$5||e===ph||e===yh||e===R$||e===E5||typeof e=="object"&&e!==null&&(e.$$typeof===xh||e.$$typeof===bh||e.$$typeof===vh||e.$$typeof===mh||e.$$typeof===gh||e.$$typeof===_5||e.$$typeof===P5||e[0]===C5)};Ot.typeOf=Fo;O5.exports=Ot;var T5=O5.exports,k5=m.createContext(void 0),Rb=function(e){var t=e.children,r=e.value;return r?m.createElement(k5.Provider,{value:r},t):t},yg=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return m.createElement(Rb,{value:o},m.createElement(_u,null,t&&m.createElement(Qr,{path:"create/*",element:vv(t)}),a&&m.createElement(Qr,{path:":id/show/*",element:vv(a)}),r&&m.createElement(Qr,{path:":id/*",element:vv(r)}),n&&m.createElement(Qr,{path:"/*",element:vv(n)}),e.children))},vv=function(e){return m.isValidElement(e)?e:T5.isValidElementType(e)?m.createElement(e,null):null};yg.raName="Resource";yg.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,l=e.recordRepresentation,u=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!u,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:l}};var A5={exports:{}};/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),l=new RegExp("_","g"),u=new RegExp("[ _]","g"),c=new RegExp("([A-Z])","g"),f=new RegExp("^_"),d={_apply_rules:function(h,g,p,x){if(x)h=x;else{var b=d.indexOf(p,h.toLowerCase())>-1;if(!b){for(var y=0,v=g.length;y1?d._apply_rules(h,o,r,x):d._apply_rules(h,a,r,p)},camelize:function(h,g){for(var p=h.split("/"),x=0,b=p.length,y,v,w,S;x1?$u.pluralize(r):$u.singularize(r))});return a}},Qt=function(e){var t=m.useContext(k5);return e&&e.resource||t},wh=function(e){var t=Qt(e),r=Mb(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,l=n.recordRepresentation,u=m.useMemo(function(){return lh({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:l},r[t])},[t,r,o,a,i,s,l]);return u},Lue=function(e){var t=wh({resource:e}).recordRepresentation;return m.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?Qe(r,t):m.isValidElement(t)?t:"#".concat(r.id):""},[t])},We=function(){var e=g$(),t=m.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:Fue},Fue=function(e){return e},Bue=function(){var e=We(),t=D5(),r=Qt();return m.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,zue({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},R5=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=Bue();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:m.createElement("span",null,a({label:r,resource:n,source:t}),o&&m.createElement("span",{"aria-hidden":"true"}," *"))};R5.displayName="FieldTitle";const ap=m.memo(R5),zue=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=Vue(a),s=i.sourceWithoutDigits,l=i.sourceSuffix,u=$u.transform(l.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:u}]:r?["".concat(r,".").concat(s),{_:u}]:["resources.".concat(o,".fields.").concat(s),{_:u}]};var Vue=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){Uue(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},Uue=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const M$=function(e,t,r){if(e[t]&&!T5.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))};var h2=globalThis&&globalThis.__assign||function(){return h2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?t:d)});return function(){return f()}},[e,a,t,n,s]);var u=bg(function(c,f){var d=typeof c=="function"?c(s):c;o(e,typeof d>"u"?typeof f>"u"?t:f:d)});return[s,u]},que=function(e){var t=Pb().removeItem;return m.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Gue=function(e){var t=Pb().removeItems;return m.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Kue=function(){var e=Pb().reset;return e},Yue=function(){var e=Za(),t=ei(),r=Kue(),n=No(),o=m.useRef(n),a=rn(),i=m.useRef(a),s=os(),l=qo("".concat(s,"/").concat(vb.loginUrl));m.useEffect(function(){i.current=a,o.current=n},[a,n]);var u=m.useCallback(function(f,d,h){return f===void 0&&(f={}),d===void 0&&(d=l),h===void 0&&(h=!0),e.logout(f).then(function(g){if(g===!1||d===!1){r(),t.clear();return}var p=g||d;if(p!=null&&p.startsWith("http"))return r(),t.clear(),window.location.href=p,p;var x=p.split("?"),b={pathname:x[0]},y={};return h&&i.current&&i.current.pathname&&(y={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),x[1]&&(b.search=x[1]),o.current(b,y),r(),t.clear(),g})},[e,r,l,t]),c=m.useCallback(function(f){return n({pathname:l},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,l,t]);return e?u:c};const Sh=Yue;var tO=globalThis&&globalThis.__assign||function(){return tO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},rO=globalThis&&globalThis.__assign||function(){return rO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"),Db(t);var i=L5(t).permissions;if(o)return m.createElement(o,vd({permissions:i},a));if(n)return n(vd({permissions:i},a));if(r)return r(vd({permissions:i},a))};const sce=ice;var lce=function(){var e=Za(),t=rn(),r=t.state,n=No(),o=os(),a=n4().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,l=qo("".concat(o,"/").concat(vb.afterLoginUrl)),u=m.useCallback(function(f,d){return f===void 0&&(f={}),e.login(f).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var g=d||i+s||l;n(g)}return h})},[e,n,i,s,a,l]),c=m.useCallback(function(f,d){return a(),n(l),Promise.resolve()},[n,a,l]);return e?u:c};const F5=lce;var uce="AUTH_LOGIN",cce="AUTH_CHECK",fce="AUTH_ERROR",dce="AUTH_LOGOUT",pce="AUTH_GET_PERMISSIONS";const hce=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},nO=globalThis&&globalThis.__assign||function(){return nO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]o.current&&(o.current=r,Object.keys(n).length>0&&a("ra.message.invalid_form",{type:"error"}))},[n,r,a])},Fce=function(e,t,r){var n=m.useContext(xl).navigator,o=rn(),a=We(),i=$$(r?{control:r}:void 0),s=i.isSubmitSuccessful,l=i.isSubmitting,u=i.dirtyFields,c=Object.keys(u).length>0,f=m.useRef(t||o.pathname);m.useEffect(function(){if(!(!e||!c)&&n.block){var d=n.block(function(h){var g=h.location.pathname.startsWith(f.current),p=h.location.pathname.startsWith("".concat(f.current,"/show")),x=g&&!p;!l&&(x||s||window.confirm(a("ra.message.unsaved_changes")))?(d(),h.retry()):l&&setTimeout(function(){h.retry()},100)});return d}},[e,o,n,c,l,s,a])},Bce=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},sO=globalThis&&globalThis.__assign||function(){return sO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,is=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function qce(e){return e?e.hasOwnProperty("message"):!1}var ss=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ls=function(e){return I3(e,function(){for(var t=[],r=0;re?ss(t,{max:e},r,n):void 0}});ls(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!is(r)&&re?ss(t,{max:e},r,n):void 0}});ls(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!is(t)&&isNaN(Number(t))?ss(e,void 0,t,r):void 0}});var Xce=I3(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!is(r)&&typeof r=="string"&&!e.test(r)?ss(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ls(function(e){return e===void 0&&(e="ra.validation.email"),Xce(Hce,e)});var Qce=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ls(function(e,t){return t===void 0&&(t=Qce),function(r,n){return!is(r)&&e.indexOf(r)===-1?ss(t,{list:e},r,n):void 0}});var Jce=m.createContext(void 0),Zce=function(){var e=m.useContext(U5);return e},efe=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=Bt(t),s=fh(),l=s.getValues,u=s.resetField,c=s.getFieldState,f=s.formState,d=s.reset,h=Qe(i,a),g=Qe(l(),a),p=c(a,f).isDirty;m.useEffect(function(){if(!(o==null||g!=null||h!=null||p)){var x=a.split(".").some(function(v){return tfe.test(v)});if(x){var b=a.split(".").slice(0,-1).join("."),y=Qe(l(),b);if(y==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),d({},{keepValues:!0});return}u(a,{defaultValue:o})}})},tfe=/^\d+$/,rfe=function(){var e=m.useContext(Jce);return e},nfe=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const ofe=nfe;var md=globalThis&&globalThis.__assign||function(){return md=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]{t[r]=q5(e[r])}),t}function vn(e,t,r={clone:!0}){const n=r.clone?E({},e):e;return Ms(e)&&Ms(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ms(t[o])&&o in e&&Ms(e[o])?n[o]=vn(e[o],t[o],r):r.clone?n[o]=Ms(t[o])?q5(t[o]):t[o]:n[o]=t[o])}),n}var G5={exports:{}},wfe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Sfe=wfe,Ofe=Sfe;function K5(){}function Y5(){}Y5.resetWarningCache=K5;var Pfe=function(){function e(n,o,a,i,s,l){if(l!==Ofe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y5,resetWarningCache:K5};return r.PropTypes=r,r};G5.exports=Pfe();var Cfe=G5.exports;const $=ze(Cfe);function Xi(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function qc(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function $fe(e,t){return()=>null}function gd(e,t){var r,n;return m.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Wt(e){return e&&e.ownerDocument||document}function io(e){return Wt(e).defaultView||window}function Efe(e,t){return()=>null}function wg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Tfe=typeof window<"u"?m.useLayoutEffect:m.useEffect,sr=Tfe;let y2=0;function kfe(e){const[t,r]=m.useState(e),n=e||t;return m.useEffect(()=>{t==null&&(y2+=1,r(`mui-${y2}`))},[t]),n}const b2=Pm["useId".toString()];function Ha(e){if(b2!==void 0){const t=b2();return e??t}return kfe(e)}function Afe(e,t,r,n,o){return null}function bn({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=m.useRef(e!==void 0),[a,i]=m.useState(t),s=o?e:a,l=m.useCallback(u=>{o||i(u)},[]);return[s,l]}function Me(e){const t=m.useRef(e);return sr(()=>{t.current=e}),m.useCallback((...r)=>(0,t.current)(...r),[])}function ut(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{wg(r,t)})},e)}let jb=!0,fO=!1,x2;const Rfe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Mfe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Rfe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ife(e){e.metaKey||e.altKey||e.ctrlKey||(jb=!0)}function ix(){jb=!1}function Dfe(){this.visibilityState==="hidden"&&fO&&(jb=!0)}function jfe(e){e.addEventListener("keydown",Ife,!0),e.addEventListener("mousedown",ix,!0),e.addEventListener("pointerdown",ix,!0),e.addEventListener("touchstart",ix,!0),e.addEventListener("visibilitychange",Dfe,!0)}function Nfe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jb||Mfe(t)}function Nb(){const e=m.useCallback(o=>{o!=null&&jfe(o.ownerDocument)},[]),t=m.useRef(!1);function r(){return t.current?(fO=!0,window.clearTimeout(x2),x2=window.setTimeout(()=>{fO=!1},100),t.current=!1,!0):!1}function n(o){return Nfe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Q5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Bl;function J5(){if(Bl)return Bl;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Bl="reverse",e.scrollLeft>0?Bl="default":(e.scrollLeft=1,e.scrollLeft===0&&(Bl="negative")),document.body.removeChild(e),Bl}function Lfe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(J5()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function j$(e,t){const r=E({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=E({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=E({},a),Object.keys(o).forEach(i=>{r[n][i]=j$(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Se(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const w2=e=>e,Ffe=()=>{let e=w2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=w2}}},Bfe=Ffe(),N$=Bfe,zfe={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 Oe(e,t,r="Mui"){const n=zfe[t];return n?`${r}-${n}`:`${N$.generate(e)}-${t}`}function Pe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Oe(e,o,r)}),n}const cl="$$material";function ue(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Z5(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Vfe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ufe=Z5(function(e){return Vfe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Wfe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ar(Gc,--xn):0,ec--,nr===10&&(ec=1,Fb--),nr}function jn(){return nr=xn2||lp(nr)>3?"":" "}function nde(e,t){for(;--t&&jn()&&!(nr<48||nr>102||nr>57&&nr<65||nr>70&&nr<97););return Oh(e,am()+(t<6&&sa()==32&&jn()==32))}function pO(e){for(;jn();)switch(nr){case e:return xn;case 34:case 39:e!==34&&e!==39&&pO(nr);break;case 40:e===41&&pO(e);break;case 92:jn();break}return xn}function ode(e,t){for(;jn()&&e+nr!==47+10;)if(e+nr===42+42&&sa()===47)break;return"/*"+Oh(t,xn-1)+"*"+Lb(e===47?e:jn())}function ade(e){for(;!lp(sa());)jn();return Oh(e,xn)}function ide(e){return az(sm("",null,null,null,[""],e=oz(e),0,[0],e))}function sm(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,f=i,d=0,h=0,g=0,p=1,x=1,b=1,y=0,v="",w=o,S=a,O=n,P=v;x;)switch(g=y,y=jn()){case 40:if(g!=108&&Ar(P,f-1)==58){dO(P+=lt(im(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=im(y);break;case 9:case 10:case 13:case 32:P+=rde(g);break;case 92:P+=nde(am()-1,7);continue;case 47:switch(sa()){case 42:case 47:mv(sde(ode(jn(),am()),t,r),l);break;default:P+="/"}break;case 123*p:s[u++]=Go(P)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:b==-1&&(P=lt(P,/\f/g,"")),h>0&&Go(P)-f&&mv(h>32?O2(P+";",n,r,f-1):O2(lt(P," ","")+";",n,r,f-2),l);break;case 59:P+=";";default:if(mv(O=S2(P,t,r,u,c,o,s,v,w=[],S=[],f),a),y===123)if(c===0)sm(P,t,O,O,w,a,f,s,S);else switch(d===99&&Ar(P,3)===110?100:d){case 100:case 108:case 109:case 115:sm(e,O,O,n&&mv(S2(e,O,O,0,0,o,s,v,o,w=[],f),S),o,S,f,s,n?w:S);break;default:sm(P,O,O,O,[""],S,0,s,S)}}u=c=h=0,p=b=1,v=P="",f=i;break;case 58:f=1+Go(P),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&tde()==125)continue}switch(P+=Lb(y),y*p){case 38:b=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(Go(P)-1)*b,b=1;break;case 64:sa()===45&&(P+=im(jn())),d=sa(),c=f=Go(v=P+=ade(am())),y++;break;case 45:g===45&&Go(P)==2&&(p=0)}}return a}function S2(e,t,r,n,o,a,i,s,l,u,c){for(var f=o-1,d=o===0?a:[""],h=B$(d),g=0,p=0,x=0;g0?d[b]+" "+y:lt(y,/&\f/g,d[b])))&&(l[x++]=v);return Bb(e,t,r,o===0?L$:s,l,u,c)}function sde(e,t,r){return Bb(e,t,r,ez,Lb(ede()),sp(e,2,-2),0)}function O2(e,t,r,n){return Bb(e,t,r,F$,sp(e,0,n),sp(e,n+1,-1),n)}function Eu(e,t){for(var r="",n=B$(e),o=0;o6)switch(Ar(e,t+1)){case 109:if(Ar(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Sg+(Ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dO(e,"stretch")?iz(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ar(e,t+1)!==115)break;case 6444:switch(Ar(e,Go(e)-3-(~dO(e,"!important")&&10))){case 107:return lt(e,":",":"+st)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(Ar(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+Lr+"$2box$3")+e}break;case 5936:switch(Ar(e,t+11)){case 114:return st+e+Lr+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+Lr+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+Lr+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+Lr+e+e}return e}var mde=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case F$:t.return=iz(t.value,t.length);break;case tz:return Eu([Pf(t,{value:lt(t.value,"@","@"+st)})],o);case L$:if(t.length)return Zfe(t.props,function(a){switch(Jfe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eu([Pf(t,{props:[lt(a,/:(read-\w+)/,":"+Sg+"$1")]})],o);case"::placeholder":return Eu([Pf(t,{props:[lt(a,/:(plac\w+)/,":"+st+"input-$1")]}),Pf(t,{props:[lt(a,/:(plac\w+)/,":"+Sg+"$1")]}),Pf(t,{props:[lt(a,/:(plac\w+)/,Lr+"input-$1")]})],o)}return""})}},gde=[mde],yde=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var x=p.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||gde,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var x=p.getAttribute("data-emotion").split(" "),b=1;b=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Tde={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,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},kde=/[A-Z]|^ms/g,Ade=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pz=function(t){return t.charCodeAt(1)===45},C2=function(t){return t!=null&&typeof t!="boolean"},sx=Z5(function(e){return pz(e)?e:e.replace(kde,"-$&").toLowerCase()}),_2=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ade,function(n,o,a){return Ko={name:o,styles:a,next:Ko},o})}return Tde[t]!==1&&!pz(t)&&typeof r=="number"&&r!==0?r+"px":r};function up(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ko={name:r.name,styles:r.styles,next:Ko},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ko={name:n.name,styles:n.styles,next:Ko},n=n.next;var o=r.styles+";";return o}return Rde(e,t,r)}case"function":{if(e!==void 0){var a=Ko,i=r(e);return Ko=a,up(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Rde(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?jde:Nde},k2=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Lde=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return fz(r,n,o),Ide(function(){return dz(r,n,o)}),null},Fde=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=k2(t,r,n),l=s||T2(o),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(zde(o)?r:o):t;return _.jsx(Dde,{styles:n})}/** + * @mui/styled-engine v5.14.11 + * + * @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 gz(e,t){return hO(e,t)}const Ude=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Wde=["values","unit","step"],Hde=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>E({},r,{[n.key]:n.val}),{})};function qde(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ue(e,Wde),a=Hde(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const g=i.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:h)-n/100}${r})`}function c(d){return i.indexOf(d)+1`@media (min-width:${q$[e]}px)`};function Do(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||A2;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||A2;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||q$).indexOf(s)!==-1){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function yz(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function bz(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Yde(e,...t){const r=yz(e),n=[r,...t].reduce((o,a)=>vn(o,a),{});return bz(Object.keys(r),n)}function Xde(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function lx({values:e,breakpoints:t,base:r}){const n=r||Xde(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function tc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Og(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=tc(e,r)||n,t&&(o=t(o,n,e)),o}function ft(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,u=tc(l,n)||{};return Do(i,s,f=>{let d=Og(u,o,f);return f===d&&typeof f=="string"&&(d=Og(u,o,`${t}${f==="default"?"":ce(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function Qde(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Jde={m:"margin",p:"padding"},Zde={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},R2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},epe=Qde(e=>{if(e.length>2)if(R2[e])e=R2[e];else return[e];const[t,r]=e.split(""),n=Jde[t],o=Zde[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),G$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],K$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...G$,...K$];function Ph(e,t,r,n){var o;const a=(o=tc(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Y$(e){return Ph(e,"spacing",8)}function fl(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function tpe(e,t){return r=>e.reduce((n,o)=>(n[o]=fl(t,r),n),{})}function rpe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=epe(r),a=tpe(o,n),i=e[r];return Do(e,i,a)}function xz(e,t){const r=Y$(e.theme);return Object.keys(e).map(n=>rpe(e,t,n,r)).reduce(yd,{})}function Gt(e){return xz(e,G$)}Gt.propTypes={};Gt.filterProps=G$;function Kt(e){return xz(e,K$)}Kt.propTypes={};Kt.filterProps=K$;function npe(e=8){if(e.mui)return e;const t=Y$({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Jb(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?yd(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Jo(e){return typeof e!="number"?e:`${e}px solid`}const ope=ft({prop:"border",themeKey:"borders",transform:Jo}),ape=ft({prop:"borderTop",themeKey:"borders",transform:Jo}),ipe=ft({prop:"borderRight",themeKey:"borders",transform:Jo}),spe=ft({prop:"borderBottom",themeKey:"borders",transform:Jo}),lpe=ft({prop:"borderLeft",themeKey:"borders",transform:Jo}),upe=ft({prop:"borderColor",themeKey:"palette"}),cpe=ft({prop:"borderTopColor",themeKey:"palette"}),fpe=ft({prop:"borderRightColor",themeKey:"palette"}),dpe=ft({prop:"borderBottomColor",themeKey:"palette"}),ppe=ft({prop:"borderLeftColor",themeKey:"palette"}),Zb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ph(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:fl(t,n)});return Do(e,e.borderRadius,r)}return null};Zb.propTypes={};Zb.filterProps=["borderRadius"];Jb(ope,ape,ipe,spe,lpe,upe,cpe,fpe,dpe,ppe,Zb);const e0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ph(e.theme,"spacing",8),r=n=>({gap:fl(t,n)});return Do(e,e.gap,r)}return null};e0.propTypes={};e0.filterProps=["gap"];const t0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ph(e.theme,"spacing",8),r=n=>({columnGap:fl(t,n)});return Do(e,e.columnGap,r)}return null};t0.propTypes={};t0.filterProps=["columnGap"];const r0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ph(e.theme,"spacing",8),r=n=>({rowGap:fl(t,n)});return Do(e,e.rowGap,r)}return null};r0.propTypes={};r0.filterProps=["rowGap"];const hpe=ft({prop:"gridColumn"}),vpe=ft({prop:"gridRow"}),mpe=ft({prop:"gridAutoFlow"}),gpe=ft({prop:"gridAutoColumns"}),ype=ft({prop:"gridAutoRows"}),bpe=ft({prop:"gridTemplateColumns"}),xpe=ft({prop:"gridTemplateRows"}),wpe=ft({prop:"gridTemplateAreas"}),Spe=ft({prop:"gridArea"});Jb(e0,t0,r0,hpe,vpe,mpe,gpe,ype,bpe,xpe,wpe,Spe);function Tu(e,t){return t==="grey"?t:e}const Ope=ft({prop:"color",themeKey:"palette",transform:Tu}),Ppe=ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tu}),Cpe=ft({prop:"backgroundColor",themeKey:"palette",transform:Tu});Jb(Ope,Ppe,Cpe);function kn(e){return e<=1&&e!==0?`${e*100}%`:e}const _pe=ft({prop:"width",transform:kn}),X$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||q$[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:kn(r)}};return Do(e,e.maxWidth,t)}return null};X$.filterProps=["maxWidth"];const $pe=ft({prop:"minWidth",transform:kn}),Epe=ft({prop:"height",transform:kn}),Tpe=ft({prop:"maxHeight",transform:kn}),kpe=ft({prop:"minHeight",transform:kn});ft({prop:"size",cssProperty:"width",transform:kn});ft({prop:"size",cssProperty:"height",transform:kn});const Ape=ft({prop:"boxSizing"});Jb(_pe,X$,$pe,Epe,Tpe,kpe,Ape);const Rpe={border:{themeKey:"borders",transform:Jo},borderTop:{themeKey:"borders",transform:Jo},borderRight:{themeKey:"borders",transform:Jo},borderBottom:{themeKey:"borders",transform:Jo},borderLeft:{themeKey:"borders",transform:Jo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zb},color:{themeKey:"palette",transform:Tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tu},backgroundColor:{themeKey:"palette",transform:Tu},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},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:e0},rowGap:{style:r0},columnGap:{style:t0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kn},maxWidth:{style:X$},minWidth:{transform:kn},height:{transform:kn},maxHeight:{transform:kn},minHeight:{transform:kn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n0=Rpe;function Mpe(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ipe(e,t){return typeof e=="function"?e(t):e}function Dpe(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=tc(o,u)||{};return f?f(i):Do(i,n,g=>{let p=Og(d,c,g);return g===p&&typeof g=="string"&&(p=Og(d,c,`${r}${g==="default"?"":ce(g)}`,g)),l===!1?p:{[l]:p}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:n0;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=yz(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const g=Ipe(u[h],a);if(g!=null)if(typeof g=="object")if(i[h])d=yd(d,e(h,g,a,i));else{const p=Do({theme:a},g,x=>({[h]:x}));Mpe(p,g)?d[h]=t({sx:g,theme:a}):d=yd(d,p)}else d=yd(d,e(h,g,a,i))}),bz(f,d)}return Array.isArray(o)?o.map(s):s(o)}return t}const wz=Dpe();wz.filterProps=["sx"];const o0=wz,jpe=["breakpoints","palette","spacing","shape"];function a0(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=ue(e,jpe),s=qde(r),l=npe(o);let u=vn({breakpoints:s,direction:"ltr",components:{},palette:E({mode:"light"},n),spacing:l,shape:E({},Kde,a)},i);return u=t.reduce((c,f)=>vn(c,f),u),u.unstable_sxConfig=E({},n0,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return o0({sx:f,theme:this})},u}function Npe(e){return Object.keys(e).length===0}function i0(e=null){const t=m.useContext(Qb);return!t||Npe(t)?e:t}const Lpe=a0();function Yc(e=Lpe){return i0(e)}function Fpe({styles:e,themeId:t,defaultTheme:r={}}){const n=Yc(r),o=typeof e=="function"?e(t&&n[t]||n):e;return _.jsx(Vde,{styles:o})}const Bpe=["sx"],zpe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:n0;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Q$(e){const{sx:t}=e,r=ue(e,Bpe),{systemProps:n,otherProps:o}=zpe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ms(s)?E({},n,s):n}:a=E({},n,t),E({},o,{sx:a})}function Sz(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(o0);return m.forwardRef(function(l,u){const c=Yc(r),f=Q$(l),{className:d,component:h="div"}=f,g=ue(f,Vpe);return _.jsx(a,E({as:h,ref:u,className:Oz(d,o?o(n):n),theme:t&&c[t]||c},g))})}const Wpe=["variant"];function M2(e){return e.length===0}function Pz(e){const{variant:t}=e,r=ue(e,Wpe);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=M2(n)?e[o]:ce(e[o]):n+=`${M2(n)?o:ce(o)}${ce(e[o].toString())}`}),n}const Hpe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qpe(e){return Object.keys(e).length===0}function Gpe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Kpe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Ype=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const a=Pz(o.props);n[a]=o.style}),n},Xpe=(e,t,r,n)=>{var o;const{ownerState:a={}}=e,i=[],s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&i.push(t[Pz(l.props)])}),i};function bd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qpe=a0(),Jpe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Cf({defaultTheme:e,theme:t,themeId:r}){return qpe(t)?e:t[r]||t}function Zpe(e){return e?(t,r)=>r[e]:null}function Cz(e={}){const{themeId:t,defaultTheme:r=Qpe,rootShouldForwardProp:n=bd,slotShouldForwardProp:o=bd}=e,a=i=>o0(E({},i,{theme:Cf(E({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Ude(i,w=>w.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=Zpe(Jpe(u))}=s,h=ue(s,Hpe),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,p=f||!1;let x,b=bd;u==="Root"||u==="root"?b=n:u?b=o:Gpe(i)&&(b=void 0);const y=gz(i,E({shouldForwardProp:b,label:x},h)),v=(w,...S)=>{const O=S?S.map(A=>typeof A=="function"&&A.__emotion_real!==A?k=>A(E({},k,{theme:Cf(E({},k,{defaultTheme:r,themeId:t}))})):A):[];let P=w;l&&d&&O.push(A=>{const k=Cf(E({},A,{defaultTheme:r,themeId:t})),I=Kpe(l,k);if(I){const D={};return Object.entries(I).forEach(([M,R])=>{D[M]=typeof R=="function"?R(E({},A,{theme:k})):R}),d(A,D)}return null}),l&&!g&&O.push(A=>{const k=Cf(E({},A,{defaultTheme:r,themeId:t}));return Xpe(A,Ype(l,k),k,l)}),p||O.push(a);const C=O.length-S.length;if(Array.isArray(w)&&C>0){const A=new Array(C).fill("");P=[...w,...A],P.raw=[...w.raw,...A]}else typeof w=="function"&&w.__emotion_real!==w&&(P=A=>w(E({},A,{theme:Cf(E({},A,{defaultTheme:r,themeId:t}))})));const T=y(P,...O);return i.muiName&&(T.muiName=i.muiName),T};return y.withConfig&&(v.withConfig=y.withConfig),v}}const ehe=Cz(),the=ehe;function _z(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:j$(t.components[r].defaultProps,n)}function $z({props:e,name:t,defaultTheme:r,themeId:n}){let o=Yc(r);return n&&(o=o[n]||o),_z({theme:o,name:t,props:e})}function J$(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function rhe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function dl(e){if(e.type)return e;if(e.charAt(0)==="#")return dl(rhe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Xi(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Xi(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function s0(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nhe(e){e=dl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,c=(u+r/30)%12)=>o-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),s0({type:s,values:l})}function vO(e){e=dl(e);let t=e.type==="hsl"||e.type==="hsla"?dl(nhe(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ohe(e,t){const r=vO(e),n=vO(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ne(e,t){return e=dl(e),t=J$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,s0(e)}function l0(e,t){if(e=dl(e),t=J$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s0(e)}function Ch(e,t){if(e=dl(e),t=J$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s0(e)}function ahe(e,t=.15){return vO(e)>.5?l0(e,t):Ch(e,t)}const ihe=m.createContext(null),Ez=ihe;function Tz(){return m.useContext(Ez)}const she=typeof Symbol=="function"&&Symbol.for,lhe=she?Symbol.for("mui.nested"):"__THEME_NESTED__";function uhe(e,t){return typeof t=="function"?t(e):E({},e,t)}function che(e){const{children:t,theme:r}=e,n=Tz(),o=m.useMemo(()=>{const a=n===null?r:uhe(n,r);return a!=null&&(a[lhe]=n!==null),a},[r,n]);return _.jsx(Ez.Provider,{value:o,children:t})}const I2={};function D2(e,t,r,n=!1){return m.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?E({},t,{[e]:a}):a;return n?()=>i:i}return e?E({},t,{[e]:r}):E({},t,r)},[e,t,r,n])}function fhe(e){const{children:t,theme:r,themeId:n}=e,o=i0(I2),a=Tz()||I2,i=D2(n,o,r),s=D2(n,a,r,!0);return _.jsx(che,{theme:s,children:_.jsx(Qb.Provider,{value:i,children:t})})}const dhe=["component","direction","spacing","divider","children","className","useFlexGap"],phe=a0(),hhe=the("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function vhe(e){return $z({props:e,name:"MuiStack",defaultTheme:phe})}function mhe(e,t){const r=m.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yhe=({ownerState:e,theme:t})=>{let r=E({display:"flex",flexDirection:"column"},Do({theme:t},lx({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Y$(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=lx({values:e.direction,base:o}),i=lx({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=vn(r,Do({theme:t},i,(l,u)=>e.useFlexGap?{gap:fl(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ghe(u?a[u]:e.direction)}`]:fl(n,l)}}))}return r=Yde(t.breakpoints,r),r};function bhe(e={}){const{createStyledComponent:t=hhe,useThemeProps:r=vhe,componentName:n="MuiStack"}=e,o=()=>Se({root:["root"]},l=>Oe(n,l),{}),a=t(yhe);return m.forwardRef(function(l,u){const c=r(l),f=Q$(c),{component:d="div",direction:h="column",spacing:g=0,divider:p,children:x,className:b,useFlexGap:y=!1}=f,v=ue(f,dhe),w={direction:h,spacing:g,useFlexGap:y},S=o();return _.jsx(a,E({as:d,ownerState:w,ref:u,className:Oz(S.root,b)},v,{children:p?mhe(x,p):x}))})}function xhe(e,t){return E({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const whe=["mode","contrastThreshold","tonalOffset"],j2={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:ip.white,default:ip.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}},ux={text:{primary:ip.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:ip.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function N2(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ch(e.main,o):t==="dark"&&(e.dark=l0(e.main,a)))}function She(e="light"){return e==="dark"?{main:Nl[200],light:Nl[50],dark:Nl[400]}:{main:Nl[700],light:Nl[400],dark:Nl[800]}}function Ohe(e="light"){return e==="dark"?{main:jl[200],light:jl[50],dark:jl[400]}:{main:jl[500],light:jl[300],dark:jl[700]}}function Phe(e="light"){return e==="dark"?{main:Dl[500],light:Dl[300],dark:Dl[700]}:{main:Dl[700],light:Dl[400],dark:Dl[800]}}function Che(e="light"){return e==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:Ll[700],light:Ll[500],dark:Ll[900]}}function _he(e="light"){return e==="dark"?{main:Fl[400],light:Fl[300],dark:Fl[700]}:{main:Fl[800],light:Fl[500],dark:Fl[900]}}function $he(e="light"){return e==="dark"?{main:Of[400],light:Of[300],dark:Of[700]}:{main:"#ed6c02",light:Of[500],dark:Of[900]}}function Ehe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ue(e,whe),a=e.primary||She(t),i=e.secondary||Ohe(t),s=e.error||Phe(t),l=e.info||Che(t),u=e.success||_he(t),c=e.warning||$he(t);function f(p){return ohe(p,ux.text.primary)>=r?ux.text.primary:j2.text.primary}const d=({color:p,name:x,mainShade:b=500,lightShade:y=300,darkShade:v=700})=>{if(p=E({},p),!p.main&&p[b]&&(p.main=p[b]),!p.hasOwnProperty("main"))throw new Error(Xi(11,x?` (${x})`:"",b));if(typeof p.main!="string")throw new Error(Xi(12,x?` (${x})`:"",JSON.stringify(p.main)));return N2(p,"light",y,n),N2(p,"dark",v,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:ux,light:j2};return vn(E({common:E({},ip),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:xfe,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),o)}const The=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function khe(e){return Math.round(e*1e5)/1e5}const L2={textTransform:"uppercase"},F2='"Roboto", "Helvetica", "Arial", sans-serif';function Ahe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=F2,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ue(r,The),h=o/14,g=f||(b=>`${b/u*h}rem`),p=(b,y,v,w,S)=>E({fontFamily:n,fontWeight:b,fontSize:g(y),lineHeight:v},n===F2?{letterSpacing:`${khe(w/y)}em`}:{},S,c),x={h1:p(a,96,1.167,-1.5),h2:p(a,60,1.2,-.5),h3:p(i,48,1.167,0),h4:p(i,34,1.235,.25),h5:p(i,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(i,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(i,16,1.5,.15),body2:p(i,14,1.43,.15),button:p(s,14,1.75,.4,L2),caption:p(i,12,1.66,.4),overline:p(i,12,2.66,1,L2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vn(E({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),d,{clone:!1})}const Rhe=.2,Mhe=.14,Ihe=.12;function Nt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Rhe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mhe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ihe})`].join(",")}const Dhe=["none",Nt(0,2,1,-1,0,1,1,0,0,1,3,0),Nt(0,3,1,-2,0,2,2,0,0,1,5,0),Nt(0,3,3,-2,0,3,4,0,0,1,8,0),Nt(0,2,4,-1,0,4,5,0,0,1,10,0),Nt(0,3,5,-1,0,5,8,0,0,1,14,0),Nt(0,3,5,-1,0,6,10,0,0,1,18,0),Nt(0,4,5,-2,0,7,10,1,0,2,16,1),Nt(0,5,5,-3,0,8,10,1,0,3,14,2),Nt(0,5,6,-3,0,9,12,1,0,3,16,2),Nt(0,6,6,-3,0,10,14,1,0,4,18,3),Nt(0,6,7,-4,0,11,15,1,0,4,20,3),Nt(0,7,8,-4,0,12,17,2,0,5,22,4),Nt(0,7,8,-4,0,13,19,2,0,5,24,4),Nt(0,7,9,-4,0,14,21,2,0,5,26,4),Nt(0,8,9,-5,0,15,22,2,0,6,28,5),Nt(0,8,10,-5,0,16,24,2,0,6,30,5),Nt(0,8,11,-5,0,17,26,2,0,6,32,5),Nt(0,9,11,-5,0,18,28,2,0,7,34,6),Nt(0,9,12,-6,0,19,29,2,0,7,36,6),Nt(0,10,13,-6,0,20,31,3,0,8,38,7),Nt(0,10,13,-6,0,21,33,3,0,8,40,7),Nt(0,10,14,-6,0,22,35,3,0,8,42,7),Nt(0,11,14,-7,0,23,36,3,0,9,44,8),Nt(0,11,15,-7,0,24,38,3,0,9,46,8)],jhe=Dhe,Nhe=["duration","easing","delay"],Lhe={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)"},Fhe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function B2(e){return`${Math.round(e)}ms`}function Bhe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zhe(e){const t=E({},Lhe,e.easing),r=E({},Fhe,e.duration);return E({getAutoHeightDuration:Bhe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ue(a,Nhe),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:B2(i)} ${s} ${typeof l=="string"?l:B2(l)}`).join(",")}},e,{easing:t,duration:r})}const Vhe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Uhe=Vhe,Whe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pg(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=ue(e,Whe);if(e.vars)throw new Error(Xi(18));const s=Ehe(n),l=a0(e);let u=vn(l,{mixins:xhe(l.breakpoints,r),palette:s,shadows:jhe.slice(),typography:Ahe(s,a),transitions:zhe(o),zIndex:E({},Uhe)});return u=vn(u,i),u=t.reduce((c,f)=>vn(c,f),u),u.unstable_sxConfig=E({},n0,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return o0({sx:f,theme:this})},u}const Hhe=Pg(),u0=Hhe;function pr(){const e=Yc(u0);return e[cl]||e}function xe({props:e,name:t}){return $z({props:e,name:t,defaultTheme:u0,themeId:cl})}const Pn=e=>bd(e)&&e!=="classes",qhe=bd,Ghe=Cz({themeId:cl,defaultTheme:u0,rootShouldForwardProp:Pn}),H=Ghe,Khe=["theme"];function Yhe(e){let{theme:t}=e,r=ue(e,Khe);const n=t[cl];return _.jsx(fhe,E({},r,{themeId:n?cl:void 0,theme:n||t}))}const Xhe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},z2=Xhe;function kz(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(r)}`]};return Se(o,Qhe,n)},eve=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ce(r.color)}`],t[`fontSize${ce(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,c,f,d,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Az=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=ue(n,Jhe),g=m.isValidElement(o)&&o.type==="svg",p=E({},n,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:g}),x={};c||(x.viewBox=d);const b=Zhe(p);return _.jsxs(eve,E({as:s,className:ve(b.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,h,g&&o.props,{ownerState:p,children:[g?o.props.children:o,f?_.jsx("title",{children:f}):null]}))});Az.muiName="SvgIcon";const V2=Az;function zt(e,t){function r(n,o){return _.jsx(V2,E({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=V2.muiName,m.memo(m.forwardRef(r))}const tve={configure:e=>{N$.configure(e)}},rve=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:cO,createSvgIcon:zt,debounce:qc,deprecatedPropType:$fe,isMuiElement:gd,ownerDocument:Wt,ownerWindow:io,requirePropFactory:Efe,setRef:wg,unstable_ClassNameGenerator:tve,unstable_useEnhancedEffect:sr,unstable_useId:Ha,unsupportedProp:Afe,useControlled:bn,useEventCallback:Me,useForkRef:ut,useIsFocusVisible:Nb},Symbol.toStringTag,{value:"Module"}));var bt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Z$=Symbol.for("react.element"),eE=Symbol.for("react.portal"),c0=Symbol.for("react.fragment"),f0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),p0=Symbol.for("react.provider"),h0=Symbol.for("react.context"),nve=Symbol.for("react.server_context"),v0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),g0=Symbol.for("react.suspense_list"),y0=Symbol.for("react.memo"),b0=Symbol.for("react.lazy"),ove=Symbol.for("react.offscreen"),Rz;Rz=Symbol.for("react.module.reference");function vo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z$:switch(e=e.type,e){case c0:case d0:case f0:case m0:case g0:return e;default:switch(e=e&&e.$$typeof,e){case nve:case h0:case v0:case b0:case y0:case p0:return e;default:return t}}case eE:return t}}}bt.ContextConsumer=h0;bt.ContextProvider=p0;bt.Element=Z$;bt.ForwardRef=v0;bt.Fragment=c0;bt.Lazy=b0;bt.Memo=y0;bt.Portal=eE;bt.Profiler=d0;bt.StrictMode=f0;bt.Suspense=m0;bt.SuspenseList=g0;bt.isAsyncMode=function(){return!1};bt.isConcurrentMode=function(){return!1};bt.isContextConsumer=function(e){return vo(e)===h0};bt.isContextProvider=function(e){return vo(e)===p0};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z$};bt.isForwardRef=function(e){return vo(e)===v0};bt.isFragment=function(e){return vo(e)===c0};bt.isLazy=function(e){return vo(e)===b0};bt.isMemo=function(e){return vo(e)===y0};bt.isPortal=function(e){return vo(e)===eE};bt.isProfiler=function(e){return vo(e)===d0};bt.isStrictMode=function(e){return vo(e)===f0};bt.isSuspense=function(e){return vo(e)===m0};bt.isSuspenseList=function(e){return vo(e)===g0};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c0||e===d0||e===f0||e===m0||e===g0||e===ove||typeof e=="object"&&e!==null&&(e.$$typeof===b0||e.$$typeof===y0||e.$$typeof===p0||e.$$typeof===h0||e.$$typeof===v0||e.$$typeof===Rz||e.getModuleId!==void 0)};bt.typeOf=vo;function ave(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ive(e,t){e.classList?e.classList.add(t):ave(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function U2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sve(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=U2(e.className,t):e.setAttribute("class",U2(e.className&&e.className.baseVal||"",t))}const W2={disabled:!1},Cg=z.createContext(null);var Mz=function(t){return t.scrollTop},Qf="unmounted",_s="exited",$s="entering",Yl="entered",mO="exiting",ni=function(e){pa(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=_s,a.appearStatus=$s):l=Yl:n.unmountOnExit||n.mountOnEnter?l=Qf:l=_s,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Qf?{status:_s}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==$s&&i!==Yl&&(a=$s):(i===$s||i===Yl)&&(a=mO)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===$s){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Yf.findDOMNode(this);i&&Mz(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_s&&this.setState({status:Qf})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Yf.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!o&&!i||W2.disabled){this.safeSetState({status:Yl},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:$s},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Yl},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Yf.findDOMNode(this);if(!a||W2.disabled){this.safeSetState({status:_s},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:mO},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:_s},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Yf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Qf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=ue(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(Cg.Provider,{value:null},typeof i=="function"?i(o,s):z.cloneElement(z.Children.only(i),s))},t}(z.Component);ni.contextType=Cg;ni.propTypes={};function zl(){}ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zl,onEntering:zl,onEntered:zl,onExit:zl,onExiting:zl,onExited:zl};ni.UNMOUNTED=Qf;ni.EXITED=_s;ni.ENTERING=$s;ni.ENTERED=Yl;ni.EXITING=mO;const x0=ni;var lve=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return ive(t,n)})},cx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return sve(t,n)})},tE=function(e){pa(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function rc(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function vve(e){return Oe("MuiPaper",e)}Pe("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 mve=["className","component","elevation","square","variant"],gve=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Se(a,vve,o)},yve=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return E({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&E({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne("#fff",z2(t.elevation))}, ${Ne("#fff",z2(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),bve=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=n,u=ue(n,mve),c=E({},n,{component:a,elevation:i,square:s,variant:l}),f=gve(c);return _.jsx(yve,E({as:a,ownerState:c,className:ve(f.root,o),ref:r},u))}),oi=bve;function xve(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,f]=m.useState(!1),d=ve(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=ve(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),m.useEffect(()=>{if(!s&&l!=null){const p=setTimeout(l,u);return()=>{clearTimeout(p)}}},[l,s,u]),_.jsx("span",{className:d,style:h,children:_.jsx("span",{className:g})})}const wve=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Yn=wve,Sve=["center","classes","className"];let w0=e=>e,H2,q2,G2,K2;const gO=550,Ove=80,Pve=us(H2||(H2=w0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Cve=us(q2||(q2=w0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),_ve=us(G2||(G2=w0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),$ve=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Eve=H(xve,{name:"MuiTouchRipple",slot:"Ripple"})(K2||(K2=w0` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Yn.rippleVisible,Pve,gO,({theme:e})=>e.transitions.easing.easeInOut,Yn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Yn.child,Yn.childLeaving,Cve,gO,({theme:e})=>e.transitions.easing.easeInOut,Yn.childPulsate,_ve,({theme:e})=>e.transitions.easing.easeInOut),Tve=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=ue(n,Sve),[l,u]=m.useState([]),c=m.useRef(0),f=m.useRef(null);m.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=m.useRef(!1),h=m.useRef(0),g=m.useRef(null),p=m.useRef(null);m.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const x=m.useCallback(w=>{const{pulsate:S,rippleX:O,rippleY:P,rippleSize:C,cb:T}=w;u(A=>[...A,_.jsx(Eve,{classes:{ripple:ve(a.ripple,Yn.ripple),rippleVisible:ve(a.rippleVisible,Yn.rippleVisible),ripplePulsate:ve(a.ripplePulsate,Yn.ripplePulsate),child:ve(a.child,Yn.child),childLeaving:ve(a.childLeaving,Yn.childLeaving),childPulsate:ve(a.childPulsate,Yn.childPulsate)},timeout:gO,pulsate:S,rippleX:O,rippleY:P,rippleSize:C},c.current)]),c.current+=1,f.current=T},[a]),b=m.useCallback((w={},S={},O=()=>{})=>{const{pulsate:P=!1,center:C=o||S.pulsate,fakeElement:T=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const A=T?null:p.current,k=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,D,M;if(C||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)I=Math.round(k.width/2),D=Math.round(k.height/2);else{const{clientX:R,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;I=Math.round(R-k.left),D=Math.round(N-k.top)}if(C)M=Math.sqrt((2*k.width**2+k.height**2)/3),M%2===0&&(M+=1);else{const R=Math.max(Math.abs((A?A.clientWidth:0)-I),I)*2+2,N=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;M=Math.sqrt(R**2+N**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{x({pulsate:P,rippleX:I,rippleY:D,rippleSize:M,cb:O})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},Ove)):x({pulsate:P,rippleX:I,rippleY:D,rippleSize:M,cb:O})},[o,x]),y=m.useCallback(()=>{b({},{pulsate:!0})},[b]),v=m.useCallback((w,S)=>{if(clearTimeout(h.current),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{v(w,S)});return}g.current=null,u(O=>O.length>0?O.slice(1):O),f.current=S},[]);return m.useImperativeHandle(r,()=>({pulsate:y,start:b,stop:v}),[y,b,v]),_.jsx($ve,E({className:ve(Yn.root,a.root,i),ref:p},s,{children:_.jsx(oE,{component:null,exit:!0,children:l})}))}),kve=Tve;function Ave(e){return Oe("MuiButtonBase",e)}const Rve=Pe("MuiButtonBase",["root","disabled","focusVisible"]),Mve=Rve,Ive=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Dve=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Se({root:["root",t&&"disabled",r&&"focusVisible"]},Ave,o);return r&&n&&(i.root+=` ${n}`),i},jve=H("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"},[`&.${Mve.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nve=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:g,onClick:p,onContextMenu:x,onDragLeave:b,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:S,onMouseDown:O,onMouseLeave:P,onMouseUp:C,onTouchEnd:T,onTouchMove:A,onTouchStart:k,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:M,type:R}=n,N=ue(n,Ive),F=m.useRef(null),j=m.useRef(null),L=ut(j,M),{isFocusVisibleRef:B,onFocus:W,onBlur:X,ref:J}=Nb(),[K,ie]=m.useState(!1);u&&K&&ie(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{ie(!0),F.current.focus()}}),[]);const[de,ee]=m.useState(!1);m.useEffect(()=>{ee(!0)},[]);const le=de&&!c&&!u;m.useEffect(()=>{K&&d&&!c&&de&&j.current.pulsate()},[c,d,K,de]);function Q(ke,ht,Pt=f){return Me(_e=>(ht&&ht(_e),!Pt&&j.current&&j.current[ke](_e),!0))}const ae=Q("start",O),Z=Q("stop",x),G=Q("stop",b),oe=Q("stop",C),fe=Q("stop",ke=>{K&&ke.preventDefault(),P&&P(ke)}),ge=Q("start",k),Ae=Q("stop",T),V=Q("stop",A),q=Q("stop",ke=>{X(ke),B.current===!1&&ie(!1),g&&g(ke)},!1),U=Me(ke=>{F.current||(F.current=ke.currentTarget),W(ke),B.current===!0&&(ie(!0),v&&v(ke)),y&&y(ke)}),ne=()=>{const ke=F.current;return l&&l!=="button"&&!(ke.tagName==="A"&&ke.href)},re=m.useRef(!1),se=Me(ke=>{d&&!re.current&&K&&j.current&&ke.key===" "&&(re.current=!0,j.current.stop(ke,()=>{j.current.start(ke)})),ke.target===ke.currentTarget&&ne()&&ke.key===" "&&ke.preventDefault(),w&&w(ke),ke.target===ke.currentTarget&&ne()&&ke.key==="Enter"&&!u&&(ke.preventDefault(),p&&p(ke))}),me=Me(ke=>{d&&ke.key===" "&&j.current&&K&&!ke.defaultPrevented&&(re.current=!1,j.current.stop(ke,()=>{j.current.pulsate(ke)})),S&&S(ke),p&&ke.target===ke.currentTarget&&ne()&&ke.key===" "&&!ke.defaultPrevented&&p(ke)});let Ce=l;Ce==="button"&&(N.href||N.to)&&(Ce=h);const je={};Ce==="button"?(je.type=R===void 0?"button":R,je.disabled=u):(!N.href&&!N.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const He=ut(r,J,F),rt=E({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:K}),Ue=Dve(rt);return _.jsxs(jve,E({as:Ce,className:ve(Ue.root,s),ownerState:rt,onBlur:q,onClick:p,onContextMenu:Z,onFocus:U,onKeyDown:se,onKeyUp:me,onMouseDown:ae,onMouseLeave:fe,onMouseUp:oe,onDragLeave:G,onTouchEnd:Ae,onTouchMove:V,onTouchStart:ge,ref:He,tabIndex:u?-1:I,type:R},je,N,{children:[i,le?_.jsx(kve,E({ref:L,center:a},D)):null]}))}),wn=Nve;function Lve(e){return Oe("MuiIconButton",e)}const Fve=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Bve=Fve,zve=["edge","children","className","color","disabled","disableFocusRipple","size"],Vve=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ce(n)}`,o&&`edge${ce(o)}`,`size${ce(a)}`]};return Se(i,Lve,t)},Uve=H(wn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ce(r.color)}`],r.edge&&t[`edge${ce(r.edge)}`],t[`size${ce(r.size)}`]]}})(({theme:e,ownerState:t})=>E({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return E({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&E({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":E({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Bve.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Wve=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=ue(n,zve),d=E({},n,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Vve(d);return _.jsx(Uve,E({className:ve(h.root,i),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),vt=Wve;function Hve(e){return Oe("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const qve=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gve=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${ce(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Se(s,Hve,i)},Kve=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>E({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Y2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yve={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Xve=e=>Yve[e]||e,Qve=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTypography"}),o=Xve(n.color),a=Q$(E({},n,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=Y2}=a,g=ue(a,qve),p=E({},a,{align:i,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),x=l||(f?"p":h[d]||Y2[d])||"span",b=Gve(p);return _.jsx(Kve,E({as:x,ref:r,ownerState:p,className:ve(b.root,s)},g))}),Te=Qve;function Jve(e){return Oe("MuiAppBar",e)}Pe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Zve=["className","color","enableColorOnDark","position"],eme=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${ce(t)}`,`position${ce(r)}`]};return Se(o,Jve,n)},gv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,tme=H(oi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return E({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&E({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&E({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&E({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),rme=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,l=ue(n,Zve),u=E({},n,{color:a,position:s,enableColorOnDark:i}),c=eme(u);return _.jsx(tme,E({square:!0,component:"header",ownerState:u,elevation:4,className:ve(c.root,o,s==="fixed"&&"mui-fixed"),ref:r},l))}),nme=rme;function pl(e){return typeof e=="string"}function Jf(e,t,r){return e===void 0||pl(e)?t:E({},t,{ownerState:E({},t.ownerState,r)})}const ome={disableDefaultClasses:!1},ame=m.createContext(ome);function ime(e){const{disableDefaultClasses:t}=m.useContext(ame);return r=>t?"":e(r)}function _g(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function iE(e,t,r){return typeof e=="function"?e(t,r):e}function Iz(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function sme(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=X2(o==null?void 0:o.className,n==null?void 0:n.className,a,r==null?void 0:r.className),g=E({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=E({},r,o,n);return h.length>0&&(p.className=h),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const i=_g(E({},o,n)),s=Q2(n),l=Q2(o),u=t(i),c=X2(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=E({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),d=E({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const lme=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function at(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=ue(e,lme),s=a?{}:iE(n,o),{props:l,internalRef:u}=sme(E({},i,{externalSlotProps:s})),c=ut(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jf(r,E({},l,{ref:c}),o)}function J2(e){return e.substring(2).toLowerCase()}function ume(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=ut(t.ref,s),f=Me(g=>{const p=u.current;u.current=!1;const x=Wt(s.current);if(!l.current||!s.current||"clientX"in g&&ume(g,x))return;if(i.current){i.current=!1;return}let b;g.composedPath?b=g.composedPath().indexOf(s.current)>-1:b=!x.documentElement.contains(g.target)||s.current.contains(g.target),!b&&(r||!p)&&o(g)}),d=g=>p=>{u.current=!0;const x=t.props[g];x&&x(p)},h={ref:c};return a!==!1&&(h[a]=d(a)),m.useEffect(()=>{if(a!==!1){const g=J2(a),p=Wt(s.current),x=()=>{i.current=!0};return p.addEventListener(g,f),p.addEventListener("touchmove",x),()=>{p.removeEventListener(g,f),p.removeEventListener("touchmove",x)}}},[f,a]),n!==!1&&(h[n]=d(n)),m.useEffect(()=>{if(n!==!1){const g=J2(n),p=Wt(s.current);return p.addEventListener(g,f),()=>{p.removeEventListener(g,f)}}},[f,n]),_.jsx(m.Fragment,{children:m.cloneElement(t,h)})}const fme=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dme(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 pme(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function hme(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pme(e))}function vme(e){const t=[],r=[];return Array.from(e.querySelectorAll(fme)).forEach((n,o)=>{const a=dme(n);a===-1||!hme(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function mme(){return!0}function Dz(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=vme,isEnabled:i=mme,open:s}=e,l=m.useRef(!1),u=m.useRef(null),c=m.useRef(null),f=m.useRef(null),d=m.useRef(null),h=m.useRef(!1),g=m.useRef(null),p=ut(t.ref,g),x=m.useRef(null);m.useEffect(()=>{!s||!g.current||(h.current=!r)},[r,s]),m.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),m.useEffect(()=>{if(!s||!g.current)return;const v=Wt(g.current),w=P=>{x.current=P,!(n||!i()||P.key!=="Tab")&&v.activeElement===g.current&&P.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const P=g.current;if(P===null)return;if(!v.hasFocus()||!i()||l.current){l.current=!1;return}if(P.contains(v.activeElement)||n&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(C=a(g.current)),C.length>0){var T,A;const k=!!((T=x.current)!=null&&T.shiftKey&&((A=x.current)==null?void 0:A.key)==="Tab"),I=C[0],D=C[C.length-1];typeof I!="string"&&typeof D!="string"&&(k?D.focus():I.focus())}else P.focus()};v.addEventListener("focusin",S),v.addEventListener("keydown",w,!0);const O=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),v.removeEventListener("focusin",S),v.removeEventListener("keydown",w,!0)}},[r,n,o,i,s,a]);const b=v=>{f.current===null&&(f.current=v.relatedTarget),h.current=!0,d.current=v.target;const w=t.props.onFocus;w&&w(v)},y=v=>{f.current===null&&(f.current=v.relatedTarget),h.current=!0};return _.jsxs(m.Fragment,{children:[_.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:p,onFocus:b}),_.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var mn="top",so="bottom",lo="right",gn="left",sE="auto",_h=[mn,so,lo,gn],nc="start",cp="end",gme="clippingParents",jz="viewport",_f="popper",yme="reference",Z2=_h.reduce(function(e,t){return e.concat([t+"-"+nc,t+"-"+cp])},[]),Nz=[].concat(_h,[sE]).reduce(function(e,t){return e.concat([t,t+"-"+nc,t+"-"+cp])},[]),bme="beforeRead",xme="read",wme="afterRead",Sme="beforeMain",Ome="main",Pme="afterMain",Cme="beforeWrite",_me="write",$me="afterWrite",Eme=[bme,xme,wme,Sme,Ome,Pme,Cme,_me,$me];function fa(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hl(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function no(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lE(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tme(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!no(a)||!fa(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function kme(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,u){return l[u]="",l},{});!no(o)||!fa(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Ame={name:"applyStyles",enabled:!0,phase:"write",fn:Tme,effect:kme,requires:["computeStyles"]};function la(e){return e.split("-")[0]}var Js=Math.max,$g=Math.min,oc=Math.round;function yO(){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 Lz(){return!/^((?!chrome|android).)*safari/i.test(yO())}function ac(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&no(e)&&(o=e.offsetWidth>0&&oc(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&oc(n.height)/e.offsetHeight||1);var i=hl(e)?Ln(e):window,s=i.visualViewport,l=!Lz()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/o,c=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function uE(e){var t=ac(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Fz(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&lE(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qa(e){return Ln(e).getComputedStyle(e)}function Rme(e){return["table","td","th"].indexOf(fa(e))>=0}function cs(e){return((hl(e)?e.ownerDocument:e.document)||window.document).documentElement}function S0(e){return fa(e)==="html"?e:e.assignedSlot||e.parentNode||(lE(e)?e.host:null)||cs(e)}function eM(e){return!no(e)||qa(e).position==="fixed"?null:e.offsetParent}function Mme(e){var t=/firefox/i.test(yO()),r=/Trident/i.test(yO());if(r&&no(e)){var n=qa(e);if(n.position==="fixed")return null}var o=S0(e);for(lE(o)&&(o=o.host);no(o)&&["html","body"].indexOf(fa(o))<0;){var a=qa(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function $h(e){for(var t=Ln(e),r=eM(e);r&&Rme(r)&&qa(r).position==="static";)r=eM(r);return r&&(fa(r)==="html"||fa(r)==="body"&&qa(r).position==="static")?t:r||Mme(e)||t}function cE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xd(e,t,r){return Js(e,$g(t,r))}function Ime(e,t,r){var n=xd(e,t,r);return n>r?r:n}function Bz(){return{top:0,right:0,bottom:0,left:0}}function zz(e){return Object.assign({},Bz(),e)}function Vz(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Dme=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,zz(typeof t!="number"?t:Vz(t,_h))};function jme(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=la(r.placement),l=cE(s),u=[gn,lo].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!i)){var f=Dme(o.padding,r),d=uE(a),h=l==="y"?mn:gn,g=l==="y"?so:lo,p=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],x=i[l]-r.rects.reference[l],b=$h(a),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=p/2-x/2,w=f[h],S=y-d[c]-f[g],O=y/2-d[c]/2+v,P=xd(w,O,S),C=l;r.modifiersData[n]=(t={},t[C]=P,t.centerOffset=P-O,t)}}function Nme(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Fz(t.elements.popper,o)&&(t.elements.arrow=o))}const Lme={name:"arrow",enabled:!0,phase:"main",fn:jme,effect:Nme,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ic(e){return e.split("-")[1]}var Fme={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bme(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:oc(r*o)/o||0,y:oc(n*o)/o||0}}function tM(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=i.x,h=d===void 0?0:d,g=i.y,p=g===void 0?0:g,x=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=x.x,p=x.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=gn,w=mn,S=window;if(u){var O=$h(r),P="clientHeight",C="clientWidth";if(O===Ln(r)&&(O=cs(r),qa(O).position!=="static"&&s==="absolute"&&(P="scrollHeight",C="scrollWidth")),O=O,o===mn||(o===gn||o===lo)&&a===cp){w=so;var T=f&&O===S&&S.visualViewport?S.visualViewport.height:O[P];p-=T-n.height,p*=l?1:-1}if(o===gn||(o===mn||o===so)&&a===cp){v=lo;var A=f&&O===S&&S.visualViewport?S.visualViewport.width:O[C];h-=A-n.width,h*=l?1:-1}}var k=Object.assign({position:s},u&&Fme),I=c===!0?Bme({x:h,y:p},Ln(r)):{x:h,y:p};if(h=I.x,p=I.y,l){var D;return Object.assign({},k,(D={},D[w]=y?"0":"",D[v]=b?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},k,(t={},t[w]=y?p+"px":"",t[v]=b?h+"px":"",t.transform="",t))}function zme(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:la(t.placement),variation:ic(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,tM(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tM(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vme={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zme,data:{}};var yv={passive:!0};function Ume(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,l=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,yv)}),s&&l.addEventListener("resize",r.update,yv),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,yv)}),s&&l.removeEventListener("resize",r.update,yv)}}const Wme={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ume,data:{}};var Hme={left:"right",right:"left",bottom:"top",top:"bottom"};function lm(e){return e.replace(/left|right|bottom|top/g,function(t){return Hme[t]})}var qme={start:"end",end:"start"};function rM(e){return e.replace(/start|end/g,function(t){return qme[t]})}function fE(e){var t=Ln(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function dE(e){return ac(cs(e)).left+fE(e).scrollLeft}function Gme(e,t){var r=Ln(e),n=cs(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var u=Lz();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+dE(e),y:l}}function Kme(e){var t,r=cs(e),n=fE(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Js(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Js(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+dE(e),l=-n.scrollTop;return qa(o||r).direction==="rtl"&&(s+=Js(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function pE(e){var t=qa(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Uz(e){return["html","body","#document"].indexOf(fa(e))>=0?e.ownerDocument.body:no(e)&&pE(e)?e:Uz(S0(e))}function wd(e,t){var r;t===void 0&&(t=[]);var n=Uz(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ln(n),i=o?[a].concat(a.visualViewport||[],pE(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(wd(S0(i)))}function bO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yme(e,t){var r=ac(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function nM(e,t,r){return t===jz?bO(Gme(e,r)):hl(t)?Yme(t,r):bO(Kme(cs(e)))}function Xme(e){var t=wd(S0(e)),r=["absolute","fixed"].indexOf(qa(e).position)>=0,n=r&&no(e)?$h(e):e;return hl(n)?t.filter(function(o){return hl(o)&&Fz(o,n)&&fa(o)!=="body"}):[]}function Qme(e,t,r,n){var o=t==="clippingParents"?Xme(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(l,u){var c=nM(e,u,n);return l.top=Js(c.top,l.top),l.right=$g(c.right,l.right),l.bottom=$g(c.bottom,l.bottom),l.left=Js(c.left,l.left),l},nM(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wz(e){var t=e.reference,r=e.element,n=e.placement,o=n?la(n):null,a=n?ic(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case mn:l={x:i,y:t.y-r.height};break;case so:l={x:i,y:t.y+t.height};break;case lo:l={x:t.x+t.width,y:s};break;case gn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?cE(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case nc:l[u]=l[u]-(t[c]/2-r[c]/2);break;case cp:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function fp(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?gme:s,u=r.rootBoundary,c=u===void 0?jz:u,f=r.elementContext,d=f===void 0?_f:f,h=r.altBoundary,g=h===void 0?!1:h,p=r.padding,x=p===void 0?0:p,b=zz(typeof x!="number"?x:Vz(x,_h)),y=d===_f?yme:_f,v=e.rects.popper,w=e.elements[g?y:d],S=Qme(hl(w)?w:w.contextElement||cs(e.elements.popper),l,c,i),O=ac(e.elements.reference),P=Wz({reference:O,element:v,strategy:"absolute",placement:o}),C=bO(Object.assign({},v,P)),T=d===_f?C:O,A={top:S.top-T.top+b.top,bottom:T.bottom-S.bottom+b.bottom,left:S.left-T.left+b.left,right:T.right-S.right+b.right},k=e.modifiersData.offset;if(d===_f&&k){var I=k[o];Object.keys(A).forEach(function(D){var M=[lo,so].indexOf(D)>=0?1:-1,R=[mn,so].indexOf(D)>=0?"y":"x";A[D]+=I[R]*M})}return A}function Jme(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Nz:l,c=ic(n),f=c?s?Z2:Z2.filter(function(g){return ic(g)===c}):_h,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,p){return g[p]=fp(e,{placement:p,boundary:o,rootBoundary:a,padding:i})[la(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function Zme(e){if(la(e)===sE)return[];var t=lm(e);return[rM(e),t,rM(t)]}function ege(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,p=r.allowedAutoPlacements,x=t.options.placement,b=la(x),y=b===x,v=l||(y||!g?[lm(x)]:Zme(x)),w=[x].concat(v).reduce(function(K,ie){return K.concat(la(ie)===sE?Jme(t,{placement:ie,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:p}):ie)},[]),S=t.rects.reference,O=t.rects.popper,P=new Map,C=!0,T=w[0],A=0;A=0,R=M?"width":"height",N=fp(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),F=M?D?lo:gn:D?so:mn;S[R]>O[R]&&(F=lm(F));var j=lm(F),L=[];if(a&&L.push(N[I]<=0),s&&L.push(N[F]<=0,N[j]<=0),L.every(function(K){return K})){T=k,C=!1;break}P.set(k,L)}if(C)for(var B=g?3:1,W=function(ie){var de=w.find(function(ee){var le=P.get(ee);if(le)return le.slice(0,ie).every(function(Q){return Q})});if(de)return T=de,"break"},X=B;X>0;X--){var J=W(X);if(J==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}const tge={name:"flip",enabled:!0,phase:"main",fn:ege,requiresIfExists:["offset"],data:{_skip:!1}};function oM(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function aM(e){return[mn,lo,so,gn].some(function(t){return e[t]>=0})}function rge(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=fp(t,{elementContext:"reference"}),s=fp(t,{altBoundary:!0}),l=oM(i,n),u=oM(s,o,a),c=aM(l),f=aM(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const nge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rge};function oge(e,t,r){var n=la(e),o=[gn,mn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[gn,lo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function age(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Nz.reduce(function(c,f){return c[f]=oge(f,t.rects,a),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const ige={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:age};function sge(e){var t=e.state,r=e.name;t.modifiersData[r]=Wz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lge={name:"popperOffsets",enabled:!0,phase:"read",fn:sge,data:{}};function uge(e){return e==="x"?"y":"x"}function cge(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,g=r.tetherOffset,p=g===void 0?0:g,x=fp(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),b=la(t.placement),y=ic(t.placement),v=!y,w=cE(b),S=uge(w),O=t.modifiersData.popperOffsets,P=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(O){if(a){var D,M=w==="y"?mn:gn,R=w==="y"?so:lo,N=w==="y"?"height":"width",F=O[w],j=F+x[M],L=F-x[R],B=h?-C[N]/2:0,W=y===nc?P[N]:C[N],X=y===nc?-C[N]:-P[N],J=t.elements.arrow,K=h&&J?uE(J):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bz(),de=ie[M],ee=ie[R],le=xd(0,P[N],K[N]),Q=v?P[N]/2-B-le-de-A.mainAxis:W-le-de-A.mainAxis,ae=v?-P[N]/2+B+le+ee+A.mainAxis:X+le+ee+A.mainAxis,Z=t.elements.arrow&&$h(t.elements.arrow),G=Z?w==="y"?Z.clientTop||0:Z.clientLeft||0:0,oe=(D=k==null?void 0:k[w])!=null?D:0,fe=F+Q-oe-G,ge=F+ae-oe,Ae=xd(h?$g(j,fe):j,F,h?Js(L,ge):L);O[w]=Ae,I[w]=Ae-F}if(s){var V,q=w==="x"?mn:gn,U=w==="x"?so:lo,ne=O[S],re=S==="y"?"height":"width",se=ne+x[q],me=ne-x[U],Ce=[mn,gn].indexOf(b)!==-1,je=(V=k==null?void 0:k[S])!=null?V:0,He=Ce?se:ne-P[re]-C[re]-je+A.altAxis,rt=Ce?ne+P[re]+C[re]-je-A.altAxis:me,Ue=h&&Ce?Ime(He,ne,rt):xd(h?He:se,ne,h?rt:me);O[S]=Ue,I[S]=Ue-ne}t.modifiersData[n]=I}}const fge={name:"preventOverflow",enabled:!0,phase:"main",fn:cge,requiresIfExists:["offset"]};function dge(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pge(e){return e===Ln(e)||!no(e)?fE(e):dge(e)}function hge(e){var t=e.getBoundingClientRect(),r=oc(t.width)/e.offsetWidth||1,n=oc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function vge(e,t,r){r===void 0&&(r=!1);var n=no(t),o=no(t)&&hge(t),a=cs(t),i=ac(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((fa(t)!=="body"||pE(a))&&(s=pge(t)),no(t)?(l=ac(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=dE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function mge(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gge(e){var t=mge(e);return Eme.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function yge(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bge(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var iM={placement:"bottom",modifiers:[],strategy:"absolute"};function sM(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(Oge(o)||document.body)},[o,a]),sr(()=>{if(i&&!a)return wg(r,i),()=>{wg(r,null)}},[r,i,a]),a){if(m.isValidElement(n)){const u={ref:l};return m.cloneElement(n,u)}return _.jsx(m.Fragment,{children:n})}return _.jsx(m.Fragment,{children:i&&Tc.createPortal(n,i)})});function Pge(e){return Oe("MuiPopper",e)}Pe("MuiPopper",["root"]);const Cge=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_ge=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function $ge(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 xO(e){return typeof e=="function"?e():e}function Ege(e){return e.nodeType!==void 0}const Tge=()=>Se({root:["root"]},ime(Pge)),kge={},Age=m.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:g={},TransitionProps:p}=t,x=ue(t,Cge),b=m.useRef(null),y=ut(b,r),v=m.useRef(null),w=ut(v,d),S=m.useRef(w);sr(()=>{S.current=w},[w]),m.useImperativeHandle(d,()=>v.current,[]);const O=$ge(c,i),[P,C]=m.useState(O),[T,A]=m.useState(xO(o));m.useEffect(()=>{v.current&&v.current.forceUpdate()}),m.useEffect(()=>{o&&A(xO(o))},[o]),sr(()=>{if(!T||!u)return;const R=j=>{C(j.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{R(j)}}];l!=null&&(N=N.concat(l)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const F=Sge(T,b.current,E({placement:O},f,{modifiers:N}));return S.current(F),()=>{F.destroy(),S.current(null)}},[T,s,l,u,f,O]);const k={placement:P};p!==null&&(k.TransitionProps=p);const I=Tge(),D=(n=g.root)!=null?n:"div",M=at({elementType:D,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:I.root});return _.jsx(D,E({},M,{children:typeof a=="function"?a(k):a}))}),Rge=m.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=kge,popperRef:h,style:g,transition:p=!1,slotProps:x={},slots:b={}}=t,y=ue(t,_ge),[v,w]=m.useState(!0),S=()=>{w(!1)},O=()=>{w(!0)};if(!l&&!c&&(!p||v))return null;let P;if(a)P=a;else if(n){const A=xO(n);P=A&&Ege(A)?Wt(A).body:Wt(null).body}const C=!c&&l&&(!p||v)?"none":void 0,T=p?{in:c,onEnter:S,onExited:O}:void 0;return _.jsx(Hz,{disablePortal:s,container:P,children:_.jsx(Age,E({anchorEl:n,direction:i,disablePortal:s,modifiers:u,ref:r,open:p?!v:c,placement:f,popperOptions:d,popperRef:h,slotProps:x,slots:b},y,{style:E({position:"fixed",top:0,left:0,display:C},g),TransitionProps:T,children:o}))})});function Mge(e){const t=Wt(e);return t.body===e?io(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Sd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lM(e){return parseInt(io(e).getComputedStyle(e).paddingRight,10)||0}function Ige(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function uM(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!Ige(i);s&&l&&Sd(i,o)})}function fx(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Dge(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Mge(n)){const i=Q5(Wt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${lM(n)+i}px`;const s=Wt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${lM(l)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wt(n).body;else{const i=n.parentElement,s=io(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function jge(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Nge{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Sd(t.modalRef,!1);const o=jge(r);uM(r,t.mount,t.modalRef,o,!0);const a=fx(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=fx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Dge(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=fx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Sd(t.modalRef,r),uM(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Sd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Lge(e){return typeof e=="function"?e():e}function Fge(e){return e?e.props.hasOwnProperty("in"):!1}const Bge=new Nge;function zge(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Bge,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=m.useRef({}),h=m.useRef(null),g=m.useRef(null),p=ut(g,f),[x,b]=m.useState(!c),y=Fge(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>Wt(h.current),S=()=>(d.current.modalRef=g.current,d.current.mount=h.current,d.current),O=()=>{o.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},P=Me(()=>{const N=Lge(t)||w().body;o.add(S(),N),g.current&&O()}),C=m.useCallback(()=>o.isTopModal(S()),[o]),T=Me(N=>{h.current=N,N&&(c&&C()?O():g.current&&Sd(g.current,v))}),A=m.useCallback(()=>{o.remove(S(),v)},[v,o]);m.useEffect(()=>()=>{A()},[A]),m.useEffect(()=>{c?P():(!y||!a)&&A()},[c,A,y,a,P]);const k=N=>F=>{var j;(j=N.onKeyDown)==null||j.call(N,F),!(F.key!=="Escape"||!C())&&(r||(F.stopPropagation(),u&&u(F,"escapeKeyDown")))},I=N=>F=>{var j;(j=N.onClick)==null||j.call(N,F),F.target===F.currentTarget&&u&&u(F,"backdropClick")};return{getRootProps:(N={})=>{const F=_g(e);delete F.onTransitionEnter,delete F.onTransitionExited;const j=E({},F,N);return E({role:"presentation"},j,{onKeyDown:k(j),ref:p})},getBackdropProps:(N={})=>{const F=N;return E({"aria-hidden":!0},F,{onClick:I(F),open:c})},getTransitionProps:()=>{const N=()=>{b(!1),i&&i()},F=()=>{b(!0),s&&s(),a&&A()};return{onEnter:cO(N,l==null?void 0:l.props.onEnter),onExited:cO(F,l==null?void 0:l.props.onExited)}},rootRef:p,portalRef:T,isTopModal:C,exited:x,hasTransition:y}}function Vge(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=m.useRef();m.useEffect(()=>{if(!o)return;function b(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=Me((b,y)=>{n==null||n(b,y)}),l=Me(b=>{!n||b==null||(clearTimeout(i.current),i.current=setTimeout(()=>{s(null,"timeout")},b))});m.useEffect(()=>(o&&l(t),()=>{clearTimeout(i.current)}),[o,t,l]);const u=b=>{n==null||n(b,"clickaway")},c=()=>{clearTimeout(i.current)},f=m.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),d=b=>y=>{const v=b.onBlur;v==null||v(y),f()},h=b=>y=>{const v=b.onFocus;v==null||v(y),c()},g=b=>y=>{const v=b.onMouseEnter;v==null||v(y),c()},p=b=>y=>{const v=b.onMouseLeave;v==null||v(y),f()};return m.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,f,o]),{getRootProps:(b={})=>{const y=E({},_g(e),_g(b));return E({role:"presentation"},b,y,{onBlur:d(y),onFocus:h(y),onMouseEnter:g(y),onMouseLeave:p(y)})},onClickAway:u}}const Uge=["onChange","maxRows","minRows","style","value"];function bv(e){return parseInt(e,10)||0}const Wge={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function cM(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Hge=m.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,l=ue(t,Uge),{current:u}=m.useRef(s!=null),c=m.useRef(null),f=ut(r,c),d=m.useRef(null),h=m.useRef(0),[g,p]=m.useState({outerHeightStyle:0}),x=m.useCallback(()=>{const w=c.current,O=io(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0};const P=d.current;P.style.width=O.width,P.value=w.value||t.placeholder||"x",P.value.slice(-1)===` +`&&(P.value+=" ");const C=O.boxSizing,T=bv(O.paddingBottom)+bv(O.paddingTop),A=bv(O.borderBottomWidth)+bv(O.borderTopWidth),k=P.scrollHeight;P.value="x";const I=P.scrollHeight;let D=k;a&&(D=Math.max(Number(a)*I,D)),o&&(D=Math.min(Number(o)*I,D)),D=Math.max(D,I);const M=D+(C==="border-box"?T+A:0),R=Math.abs(D-k)<=1;return{outerHeightStyle:M,overflow:R}},[o,a,t.placeholder]),b=(w,S)=>{const{outerHeightStyle:O,overflow:P}=S;return h.current<20&&(O>0&&Math.abs((w.outerHeightStyle||0)-O)>1||w.overflow!==P)?(h.current+=1,{overflow:P,outerHeightStyle:O}):w},y=m.useCallback(()=>{const w=x();cM(w)||p(S=>b(S,w))},[x]);sr(()=>{const w=()=>{const k=x();cM(k)||Tc.flushSync(()=>{p(I=>b(I,k))})},S=()=>{h.current=0,w()};let O;const P=qc(S),C=c.current,T=io(C);T.addEventListener("resize",P);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(S),A.observe(C)),()=>{P.clear(),cancelAnimationFrame(O),T.removeEventListener("resize",P),A&&A.disconnect()}},[x]),sr(()=>{y()}),m.useEffect(()=>{h.current=0},[s]);const v=w=>{h.current=0,u||y(),n&&n(w)};return _.jsxs(m.Fragment,{children:[_.jsx("textarea",E({value:s,onChange:v,ref:f,rows:a,style:E({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},i)},l)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:E({},Wge.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),qge=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Gge=H(Rge,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kge=m.forwardRef(function(t,r){var n;const o=i0(),a=xe({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:g,placement:p,popperOptions:x,popperRef:b,transition:y,slots:v,slotProps:w}=a,S=ue(a,qge),O=(n=v==null?void 0:v.root)!=null?n:l==null?void 0:l.Root,P=E({anchorEl:i,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:g,placement:p,popperOptions:x,popperRef:b,transition:y},S);return _.jsx(Gge,E({as:s,direction:o==null?void 0:o.direction,slots:{root:O},slotProps:w??u},P,{ref:r}))}),hE=Kge,Yge=zt(_.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 Xge(e){return Oe("MuiChip",e)}const Qge=Pe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),nt=Qge,Jge=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Zge=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,u={root:["root",l,r&&"disabled",`size${ce(n)}`,`color${ce(o)}`,s&&"clickable",s&&`clickableColor${ce(o)}`,i&&"deletable",i&&`deletableColor${ce(o)}`,`${l}${ce(o)}`],label:["label",`label${ce(n)}`],avatar:["avatar",`avatar${ce(n)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(n)}`,`iconColor${ce(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(n)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(l)}Color${ce(o)}`]};return Se(u,Xge,t)},eye=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=r;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${ce(n)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${ce(s)}`]},{[`& .${nt.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${ce(n)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(n)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${ce(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ce(n)}`],t[l],t[`${l}${ce(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return E({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",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:E({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&E({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${nt.deleteIcon}`]:E({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ne(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)`:Ne(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ne(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>E({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>E({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),tye=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ce(n)}`]]}})(({ownerState:e})=>E({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function fM(e){return e.key==="Backspace"||e.key==="Delete"}const rye=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:d,onClick:h,onDelete:g,onKeyDown:p,onKeyUp:x,size:b="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=n,S=ue(n,Jge),O=m.useRef(null),P=ut(O,r),C=L=>{L.stopPropagation(),g&&g(L)},T=L=>{L.currentTarget===L.target&&fM(L)&&L.preventDefault(),p&&p(L)},A=L=>{L.currentTarget===L.target&&(g&&fM(L)?g(L):L.key==="Escape"&&O.current&&O.current.blur()),x&&x(L)},k=i!==!1&&h?!0:i,I=k||g?wn:l||"div",D=E({},n,{component:I,disabled:c,size:b,color:s,iconColor:m.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:y}),M=Zge(D),R=I===wn?E({component:l||"div",focusVisibleClassName:M.focusVisible},g&&{disableRipple:!0}):{};let N=null;g&&(N=u&&m.isValidElement(u)?m.cloneElement(u,{className:ve(u.props.className,M.deleteIcon),onClick:C}):_.jsx(Yge,{className:ve(M.deleteIcon),onClick:C}));let F=null;o&&m.isValidElement(o)&&(F=m.cloneElement(o,{className:ve(M.avatar,o.props.className)}));let j=null;return f&&m.isValidElement(f)&&(j=m.cloneElement(f,{className:ve(M.icon,f.props.className)})),_.jsxs(eye,E({as:I,className:ve(M.root,a),disabled:k&&c?!0:void 0,onClick:h,onKeyDown:T,onKeyUp:A,ref:P,tabIndex:w&&c?-1:v,ownerState:D},R,S,{children:[F||j,_.jsx(tye,{className:ve(M.label),ownerState:D,children:d}),N]}))}),qz=rye;function Xc({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const nye=m.createContext(void 0),O0=nye;function fs(){return m.useContext(O0)}function oye(e){return _.jsx(Fpe,E({},e,{defaultTheme:u0,themeId:cl}))}function dM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Eg(e,t=!1){return e&&(dM(e.value)&&e.value!==""||t&&dM(e.defaultValue)&&e.defaultValue!=="")}function aye(e){return e.startAdornment}function iye(e){return Oe("MuiInputBase",e)}const sye=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),sc=sye,lye=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],P0=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ce(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},C0=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},uye=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:g}=e,p={root:["root",`color${ce(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",d&&d!=="medium"&&`size${ce(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Se(p,iye,t)},_0=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:P0})(({theme:e,ownerState:t})=>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",[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&E({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$0=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:C0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=E({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return E({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${sc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),cye=_.jsx(oye,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fye=m.forwardRef(function(t,r){var n;const o=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:p=!1,id:x,inputComponent:b="input",inputProps:y={},inputRef:v,maxRows:w,minRows:S,multiline:O=!1,name:P,onBlur:C,onChange:T,onClick:A,onFocus:k,onKeyDown:I,onKeyUp:D,placeholder:M,readOnly:R,renderSuffix:N,rows:F,slotProps:j={},slots:L={},startAdornment:B,type:W="text",value:X}=o,J=ue(o,lye),K=y.value!=null?y.value:X,{current:ie}=m.useRef(K!=null),de=m.useRef(),ee=m.useCallback(Ue=>{},[]),le=ut(de,v,y.ref,ee),[Q,ae]=m.useState(!1),Z=fs(),G=Xc({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=Z?Z.focused:Q,m.useEffect(()=>{!Z&&d&&Q&&(ae(!1),C&&C())},[Z,d,Q,C]);const oe=Z&&Z.onFilled,fe=Z&&Z.onEmpty,ge=m.useCallback(Ue=>{Eg(Ue)?oe&&oe():fe&&fe()},[oe,fe]);sr(()=>{ie&&ge({value:K})},[K,ge,ie]);const Ae=Ue=>{if(G.disabled){Ue.stopPropagation();return}k&&k(Ue),y.onFocus&&y.onFocus(Ue),Z&&Z.onFocus?Z.onFocus(Ue):ae(!0)},V=Ue=>{C&&C(Ue),y.onBlur&&y.onBlur(Ue),Z&&Z.onBlur?Z.onBlur(Ue):ae(!1)},q=(Ue,...ke)=>{if(!ie){const ht=Ue.target||de.current;if(ht==null)throw new Error(Xi(1));ge({value:ht.value})}y.onChange&&y.onChange(Ue,...ke),T&&T(Ue,...ke)};m.useEffect(()=>{ge(de.current)},[]);const U=Ue=>{de.current&&Ue.currentTarget===Ue.target&&de.current.focus(),A&&A(Ue)};let ne=b,re=y;O&&ne==="input"&&(F?re=E({type:void 0,minRows:F,maxRows:F},re):re=E({type:void 0,maxRows:w,minRows:S},re),ne=Hge);const se=Ue=>{ge(Ue.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};m.useEffect(()=>{Z&&Z.setAdornedStart(!!B)},[Z,B]);const me=E({},o,{color:G.color||"primary",disabled:G.disabled,endAdornment:g,error:G.error,focused:G.focused,formControl:Z,fullWidth:p,hiddenLabel:G.hiddenLabel,multiline:O,size:G.size,startAdornment:B,type:W}),Ce=uye(me),je=L.root||u.Root||_0,He=j.root||c.root||{},rt=L.input||u.Input||$0;return re=E({},re,(n=j.input)!=null?n:c.input),_.jsxs(m.Fragment,{children:[!h&&cye,_.jsxs(je,E({},He,!pl(je)&&{ownerState:E({},me,He.ownerState)},{ref:r,onClick:U},J,{className:ve(Ce.root,He.className,l,R&&"MuiInputBase-readOnly"),children:[B,_.jsx(O0.Provider,{value:null,children:_.jsx(rt,E({ownerState:me,"aria-invalid":G.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:G.disabled,id:x,onAnimationStart:se,name:P,placeholder:M,readOnly:R,required:G.required,rows:F,value:K,onKeyDown:I,onKeyUp:D,type:W},re,!pl(rt)&&{as:ne,ownerState:E({},me,re.ownerState)},{ref:le,className:ve(Ce.input,re.className,R&&"MuiInputBase-readOnly"),onBlur:V,onChange:q,onFocus:Ae}))}),g,N?N(E({},G,{startAdornment:B})):null]}))]})}),E0=fye;function dye(e){return Oe("MuiInput",e)}const pye=E({},sc,Pe("MuiInput",["root","underline","input"])),$f=pye;function hye(e){return Oe("MuiOutlinedInput",e)}const vye=E({},sc,Pe("MuiOutlinedInput",["root","notchedOutline","input"])),ci=vye;function mye(e){return Oe("MuiFilledInput",e)}const gye=E({},sc,Pe("MuiFilledInput",["root","underline","input"])),bs=gye,yye=zt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bye=zt(_.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function xye(e){return Oe("MuiAvatar",e)}Pe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const wye=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Sye=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Se({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},xye,t)},Oye=H("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>E({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&E({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Pye=H("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Cye=H(bye,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function _ye({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=m.useState(!1);return m.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const $ye=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:d="circular"}=n,h=ue(n,wye);let g=null;const p=_ye(E({},l,{src:c,srcSet:f})),x=c||f,b=x&&p!=="error",y=E({},n,{colorDefault:!b,component:s,variant:d}),v=Sye(y);return b?g=_.jsx(Pye,E({alt:o,srcSet:f,src:c,sizes:u,ownerState:y,className:v.img},l)):a!=null?g=a:x&&o?g=o[0]:g=_.jsx(Cye,{ownerState:y,className:v.fallback}),_.jsx(Oye,E({as:s,ownerState:y,className:ve(v.root,i),ref:r},h,{children:g}))}),Tg=$ye,Eye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Tye={entering:{opacity:1},entered:{opacity:1}},kye=m.forwardRef(function(t,r){const n=pr(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:g,onExiting:p,style:x,timeout:b=o,TransitionComponent:y=x0}=t,v=ue(t,Eye),w=m.useRef(null),S=ut(w,s.ref,r),O=M=>R=>{if(M){const N=w.current;R===void 0?M(N):M(N,R)}},P=O(d),C=O((M,R)=>{aE(M);const N=rc({style:x,timeout:b,easing:l},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",N),M.style.transition=n.transitions.create("opacity",N),c&&c(M,R)}),T=O(f),A=O(p),k=O(M=>{const R=rc({style:x,timeout:b,easing:l},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",R),M.style.transition=n.transitions.create("opacity",R),h&&h(M)}),I=O(g),D=M=>{a&&a(w.current,M)};return _.jsx(y,E({appear:i,in:u,nodeRef:w,onEnter:C,onEntered:T,onEntering:P,onExit:k,onExited:I,onExiting:A,addEndListener:D,timeout:b},v,{children:(M,R)=>m.cloneElement(s,E({style:E({opacity:0,visibility:M==="exited"&&!u?"hidden":void 0},Tye[M],x,s.props.style),ref:S},R))}))}),Qc=kye;function Aye(e){return Oe("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const Rye=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Mye=e=>{const{classes:t,invisible:r}=e;return Se({root:["root",r&&"invisible"]},Aye,t)},Iye=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>E({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Dye=m.forwardRef(function(t,r){var n,o,a;const i=xe({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:g={},slots:p={},TransitionComponent:x=Qc,transitionDuration:b}=i,y=ue(i,Rye),v=E({},i,{component:u,invisible:d}),w=Mye(v),S=(n=g.root)!=null?n:f.root;return _.jsx(x,E({in:h,timeout:b},y,{children:_.jsx(Iye,E({"aria-hidden":!0},S,{as:(o=(a=p.root)!=null?a:c.Root)!=null?o:u,className:ve(w.root,l,S==null?void 0:S.className),ownerState:E({},v,S==null?void 0:S.ownerState),classes:w,ref:r,children:s}))}))}),Gz=Dye,jye=Pg(),Nye=Upe({themeId:cl,defaultTheme:jye,defaultClassName:"MuiBox-root",generateClassName:N$.generate}),kg=Nye;function Lye(e){return Oe("MuiButton",e)}const Fye=Pe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xv=Fye,Bye=m.createContext({}),zye=Bye,Vye=m.createContext(void 0),Uye=Vye,Wye=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hye=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${ce(t)}`,`size${ce(o)}`,`${a}Size${ce(o)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ce(o)}`],endIcon:["endIcon",`iconSize${ce(o)}`]},l=Se(s,Lye,i);return E({},i,l)},Kz=e=>E({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),qye=H(wn,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ce(r.color)}`],t[`size${ce(r.size)}`],t[`${r.variant}Size${ce(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return E({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":E({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":E({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xv.focusVisible}`]:E({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xv.disabled}`]:E({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ne(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xv.disabled}`]:{boxShadow:"none"}}),Gye=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>E({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kz(e))),Kye=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>E({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kz(e))),Yye=m.forwardRef(function(t,r){const n=m.useContext(zye),o=m.useContext(Uye),a=j$(n,t),i=xe({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:p,fullWidth:x=!1,size:b="medium",startIcon:y,type:v,variant:w="text"}=i,S=ue(i,Wye),O=E({},i,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:x,size:b,type:v,variant:w}),P=Hye(O),C=y&&_.jsx(Gye,{className:P.startIcon,ownerState:O,children:y}),T=g&&_.jsx(Kye,{className:P.endIcon,ownerState:O,children:g}),A=o||"";return _.jsxs(qye,E({ownerState:O,className:ve(n.className,P.root,c,A),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ve(P.focusVisible,p),ref:r,type:v},S,{classes:P,children:[C,s,T]}))}),br=Yye;function Xye(e){return Oe("MuiCard",e)}Pe("MuiCard",["root"]);const Qye=["className","raised"],Jye=e=>{const{classes:t}=e;return Se({root:["root"]},Xye,t)},Zye=H(oi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ebe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=ue(n,Qye),s=E({},n,{raised:a}),l=Jye(s);return _.jsx(Zye,E({className:ve(l.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),T0=ebe;function tbe(e){return Oe("MuiCardContent",e)}Pe("MuiCardContent",["root"]);const rbe=["className","component"],nbe=e=>{const{classes:t}=e;return Se({root:["root"]},tbe,t)},obe=H("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),abe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=ue(n,rbe),s=E({},n,{component:a}),l=nbe(s);return _.jsx(obe,E({as:a,className:ve(l.root,o),ownerState:s,ref:r},i))}),vE=abe;function ibe(e){return Oe("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sbe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],lbe=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return Se(a,ibe,t)},ube=H(wn)(({ownerState:e})=>E({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),cbe=H("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),fbe=m.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:g,name:p,onBlur:x,onChange:b,onFocus:y,readOnly:v,required:w=!1,tabIndex:S,type:O,value:P}=t,C=ue(t,sbe),[T,A]=bn({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),k=fs(),I=L=>{y&&y(L),k&&k.onFocus&&k.onFocus(L)},D=L=>{x&&x(L),k&&k.onBlur&&k.onBlur(L)},M=L=>{if(L.nativeEvent.defaultPrevented)return;const B=L.target.checked;A(B),b&&b(L,B)};let R=l;k&&typeof R>"u"&&(R=k.disabled);const N=O==="checkbox"||O==="radio",F=E({},t,{checked:T,disabled:R,disableFocusRipple:u,edge:c}),j=lbe(F);return _.jsxs(ube,E({component:"span",className:ve(j.root,i),centerRipple:!0,focusRipple:!u,disabled:R,tabIndex:null,role:void 0,onFocus:I,onBlur:D,ownerState:F,ref:r},C,{children:[_.jsx(cbe,E({autoFocus:n,checked:o,defaultChecked:s,className:j.input,disabled:R,id:N?d:void 0,name:p,onChange:M,readOnly:v,ref:g,required:w,ownerState:F,tabIndex:S,type:O},O==="checkbox"&&P===void 0?{}:{value:P},h)),T?a:f]}))}),dbe=fbe,pbe=zt(_.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),hbe=zt(_.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),vbe=zt(_.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function mbe(e){return Oe("MuiCheckbox",e)}const gbe=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dx=gbe,ybe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bbe=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${ce(n)}`,`size${ce(o)}`]},i=Se(a,mbe,t);return E({},t,i)},xbe=H(dbe,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dx.checked}, &.${dx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${dx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),wbe=_.jsx(hbe,{}),Sbe=_.jsx(pbe,{}),Obe=_.jsx(vbe,{}),Pbe=m.forwardRef(function(t,r){var n,o;const a=xe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=wbe,color:s="primary",icon:l=Sbe,indeterminate:u=!1,indeterminateIcon:c=Obe,inputProps:f,size:d="medium",className:h}=a,g=ue(a,ybe),p=u?c:l,x=u?c:i,b=E({},a,{color:s,indeterminate:u,size:d}),y=bbe(b);return _.jsx(xbe,E({type:"checkbox",inputProps:E({"data-indeterminate":u},f),icon:m.cloneElement(p,{fontSize:(n=p.props.fontSize)!=null?n:d}),checkedIcon:m.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:d}),ownerState:b,ref:r,className:ve(y.root,h)},g,{classes:y}))}),Ag=Pbe;function Cbe(e){return Oe("MuiCircularProgress",e)}Pe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _be=["className","color","disableShrink","size","style","thickness","value","variant"];let k0=e=>e,pM,hM,vM,mM;const fi=44,$be=us(pM||(pM=k0` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Ebe=us(hM||(hM=k0` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Tbe=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${ce(n)}`],svg:["svg"],circle:["circle",`circle${ce(r)}`,o&&"circleDisableShrink"]};return Se(a,Cbe,t)},kbe=H("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ce(r.color)}`]]}})(({ownerState:e,theme:t})=>E({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Kc(vM||(vM=k0` + animation: ${0} 1.4s linear infinite; + `),$be)),Abe=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Rbe=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ce(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>E({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Kc(mM||(mM=k0` + animation: ${0} 1.4s ease-in-out infinite; + `),Ebe)),Mbe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=n,d=ue(n,_be),h=E({},n,{color:a,disableShrink:i,size:s,thickness:u,value:c,variant:f}),g=Tbe(h),p={},x={},b={};if(f==="determinate"){const y=2*Math.PI*((fi-u)/2);p.strokeDasharray=y.toFixed(3),b["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,x.transform="rotate(-90deg)"}return _.jsx(kbe,E({className:ve(g.root,o),style:E({width:s,height:s},x,l),ownerState:h,ref:r,role:"progressbar"},b,d,{children:_.jsx(Abe,{className:g.svg,ownerState:h,viewBox:`${fi/2} ${fi/2} ${fi} ${fi}`,children:_.jsx(Rbe,{className:g.circle,style:p,ownerState:h,cx:fi,cy:fi,r:(fi-u)/2,fill:"none",strokeWidth:u})})}))}),A0=Mbe,Ibe=(e,t)=>E({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Dbe=e=>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}});function jbe(e){return Oe("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const Nbe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Lbe=e=>{const{open:t,exited:r,classes:n}=e;return Se({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jbe,n)},Fbe=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>E({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Bbe=H(Gz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zbe=m.forwardRef(function(t,r){var n,o,a,i,s,l;const u=xe({name:"MuiModal",props:t}),{BackdropComponent:c=Bbe,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:g,container:p,component:x,components:b={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:O=!1,disableRestoreFocus:P=!1,disableScrollLock:C=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:k,open:I,slotProps:D,slots:M}=u,R=ue(u,Nbe),N=E({},u,{closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:O,disableRestoreFocus:P,disableScrollLock:C,hideBackdrop:T,keepMounted:A}),{getRootProps:F,getBackdropProps:j,getTransitionProps:L,portalRef:B,isTopModal:W,exited:X,hasTransition:J}=zge(E({},N,{rootRef:r})),K=E({},N,{exited:X}),ie=Lbe(K),de={};if(g.props.tabIndex===void 0&&(de.tabIndex="-1"),J){const{onEnter:oe,onExited:fe}=L();de.onEnter=oe,de.onExited=fe}const ee=(n=(o=M==null?void 0:M.root)!=null?o:b.Root)!=null?n:Fbe,le=(a=(i=M==null?void 0:M.backdrop)!=null?i:b.Backdrop)!=null?a:c,Q=(s=D==null?void 0:D.root)!=null?s:y.root,ae=(l=D==null?void 0:D.backdrop)!=null?l:y.backdrop,Z=at({elementType:ee,externalSlotProps:Q,externalForwardedProps:R,getSlotProps:F,additionalProps:{ref:r,as:x},ownerState:K,className:ve(d,Q==null?void 0:Q.className,ie==null?void 0:ie.root,!K.open&&K.exited&&(ie==null?void 0:ie.hidden))}),G=at({elementType:le,externalSlotProps:ae,additionalProps:f,getSlotProps:oe=>j(E({},oe,{onClick:fe=>{k&&k(fe),oe!=null&&oe.onClick&&oe.onClick(fe)}})),className:ve(ae==null?void 0:ae.className,f==null?void 0:f.className,ie==null?void 0:ie.backdrop),ownerState:K});return!A&&!I&&(!J||X)?null:_.jsx(Hz,{ref:B,container:p,disablePortal:O,children:_.jsxs(ee,E({},Z,{children:[!T&&c?_.jsx(le,E({},G)):null,_.jsx(Dz,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:P,isEnabled:W,open:I,children:m.cloneElement(g,de)})]}))})}),mE=zbe;function Vbe(e){return Oe("MuiDialog",e)}const Ube=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Od=Ube,Wbe=m.createContext({}),Yz=Wbe,Hbe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],qbe=H(Gz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Gbe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${ce(r)}`],paper:["paper",`paperScroll${ce(r)}`,`paperWidth${ce(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Se(i,Vbe,t)},Kbe=H(mE,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ybe=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ce(r.scroll)}`]]}})(({ownerState:e})=>E({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Xbe=H(oi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ce(r.scroll)}`],t[`paperWidth${ce(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>E({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Od.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Od.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Od.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Qbe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDialog"}),o=pr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:d=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:p="sm",onBackdropClick:x,onClose:b,open:y,PaperComponent:v=oi,PaperProps:w={},scroll:S="paper",TransitionComponent:O=Qc,transitionDuration:P=a,TransitionProps:C}=n,T=ue(n,Hbe),A=E({},n,{disableEscapeKeyDown:d,fullScreen:h,fullWidth:g,maxWidth:p,scroll:S}),k=Gbe(A),I=m.useRef(),D=F=>{I.current=F.target===F.currentTarget},M=F=>{I.current&&(I.current=null,x&&x(F),b&&b(F,"backdropClick"))},R=Ha(s),N=m.useMemo(()=>({titleId:R}),[R]);return _.jsx(Kbe,E({className:ve(k.root,f),closeAfterTransition:!0,components:{Backdrop:qbe},componentsProps:{backdrop:E({transitionDuration:P,as:l},u)},disableEscapeKeyDown:d,onClose:b,open:y,ref:r,onClick:M,ownerState:A},T,{children:_.jsx(O,E({appear:!0,in:y,timeout:P,role:"presentation"},C,{children:_.jsx(Ybe,{className:ve(k.container),onMouseDown:D,ownerState:A,children:_.jsx(Xbe,E({as:v,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":R},w,{className:ve(k.paper,w.className),ownerState:A,children:_.jsx(Yz.Provider,{value:N,children:c})}))})}))}))}),R0=Qbe;function Jbe(e){return Oe("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const Zbe=["className","disableSpacing"],e0e=e=>{const{classes:t,disableSpacing:r}=e;return Se({root:["root",!r&&"spacing"]},Jbe,t)},t0e=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>E({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),r0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=ue(n,Zbe),s=E({},n,{disableSpacing:a}),l=e0e(s);return _.jsx(t0e,E({className:ve(l.root,o),ownerState:s,ref:r},i))}),M0=r0e;function n0e(e){return Oe("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);function o0e(e){return Oe("MuiDialogTitle",e)}const a0e=Pe("MuiDialogTitle",["root"]),i0e=a0e,s0e=["className","dividers"],l0e=e=>{const{classes:t,dividers:r}=e;return Se({root:["root",r&&"dividers"]},n0e,t)},u0e=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>E({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${i0e.root} + &`]:{paddingTop:0}})),c0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=ue(n,s0e),s=E({},n,{dividers:a}),l=l0e(s);return _.jsx(u0e,E({className:ve(l.root,o),ownerState:s,ref:r},i))}),I0=c0e;function f0e(e){return Oe("MuiDialogContentText",e)}Pe("MuiDialogContentText",["root"]);const d0e=["children","className"],p0e=e=>{const{classes:t}=e,n=Se({root:["root"]},f0e,t);return E({},t,n)},h0e=H(Te,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=ue(n,d0e),i=p0e(a);return _.jsx(h0e,E({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:ve(i.root,o)},n,{classes:i}))}),Xz=v0e,m0e=["className","id"],g0e=e=>{const{classes:t}=e;return Se({root:["root"]},o0e,t)},y0e=H(Te,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),b0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=ue(n,m0e),s=n,l=g0e(s),{titleId:u=a}=m.useContext(Yz);return _.jsx(y0e,E({component:"h2",className:ve(l.root,o),ownerState:s,ref:r,variant:"h6",id:a??u},i))}),gE=b0e;function x0e(e){return Oe("MuiDivider",e)}const gM=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),w0e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],S0e=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},x0e,n)},O0e=H("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>E({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ne(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>E({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>E({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>E({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>E({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),P0e=H("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>E({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Qz=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,g=ue(n,w0e),p=E({},n,{absolute:o,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),x=S0e(p);return _.jsx(O0e,E({as:s,className:ve(x.root,i),role:f,ref:r,ownerState:p},g,{children:a?_.jsx(P0e,{className:x.wrapper,ownerState:p,children:a}):null}))});Qz.muiSkipListHighlight=!0;const yM=Qz,C0e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _0e(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=io(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=a.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-n.top}px)`:`translateY(${a.innerHeight+l-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function $0e(e){return typeof e=="function"?e():e}function wv(e,t,r){const n=$0e(r),o=_0e(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const E0e=m.forwardRef(function(t,r){const n=pr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,container:u,direction:c="down",easing:f=o,in:d,onEnter:h,onEntered:g,onEntering:p,onExit:x,onExited:b,onExiting:y,style:v,timeout:w=a,TransitionComponent:S=x0}=t,O=ue(t,C0e),P=m.useRef(null),C=ut(l.ref,P,r),T=j=>L=>{j&&(L===void 0?j(P.current):j(P.current,L))},A=T((j,L)=>{wv(c,j,u),aE(j),h&&h(j,L)}),k=T((j,L)=>{const B=rc({timeout:w,style:v,easing:f},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",E({},B)),j.style.transition=n.transitions.create("transform",E({},B)),j.style.webkitTransform="none",j.style.transform="none",p&&p(j,L)}),I=T(g),D=T(y),M=T(j=>{const L=rc({timeout:w,style:v,easing:f},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",L),j.style.transition=n.transitions.create("transform",L),wv(c,j,u),x&&x(j)}),R=T(j=>{j.style.webkitTransition="",j.style.transition="",b&&b(j)}),N=j=>{i&&i(P.current,j)},F=m.useCallback(()=>{P.current&&wv(c,P.current,u)},[c,u]);return m.useEffect(()=>{if(d||c==="down"||c==="right")return;const j=qc(()=>{P.current&&wv(c,P.current,u)}),L=io(P.current);return L.addEventListener("resize",j),()=>{j.clear(),L.removeEventListener("resize",j)}},[c,d,u]),m.useEffect(()=>{d||F()},[d,F]),_.jsx(S,E({nodeRef:P,onEnter:A,onEntered:I,onEntering:k,onExit:M,onExited:R,onExiting:D,addEndListener:N,appear:s,in:d,timeout:w},O,{children:(j,L)=>m.cloneElement(l,E({ref:C,style:E({visibility:j==="exited"&&!d?"hidden":void 0},v,l.props.style)},L))}))}),Jz=E0e;function T0e(e){return Oe("MuiDrawer",e)}Pe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const k0e=["BackdropProps"],A0e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Zz=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},R0e=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(r)}`,n!=="temporary"&&`paperAnchorDocked${ce(r)}`]};return Se(o,T0e,t)},M0e=H(mE,{name:"MuiDrawer",slot:"Root",overridesResolver:Zz})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),bM=H("div",{shouldForwardProp:Pn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Zz})({flex:"0 0 auto"}),I0e=H(oi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ce(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ce(r.anchor)}`]]}})(({theme:e,ownerState:t})=>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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),e6={left:"right",right:"left",top:"down",bottom:"up"};function D0e(e){return["left","right"].indexOf(e)!==-1}function j0e(e,t){return e.direction==="rtl"&&D0e(t)?e6[t]:t}const N0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDrawer"}),o=pr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:d}={},onClose:h,open:g=!1,PaperProps:p={},SlideProps:x,TransitionComponent:b=Jz,transitionDuration:y=a,variant:v="temporary"}=n,w=ue(n.ModalProps,k0e),S=ue(n,A0e),O=m.useRef(!1);m.useEffect(()=>{O.current=!0},[]);const P=j0e(o,i),T=E({},n,{anchor:i,elevation:c,open:g,variant:v},S),A=R0e(T),k=_.jsx(I0e,E({elevation:v==="temporary"?c:0,square:!0},p,{className:ve(A.paper,p.className),ownerState:T,children:l}));if(v==="permanent")return _.jsx(bM,E({className:ve(A.root,A.docked,u),ownerState:T,ref:r},S,{children:k}));const I=_.jsx(b,E({in:g,direction:e6[P],timeout:y,appear:O.current},x,{children:k}));return v==="persistent"?_.jsx(bM,E({className:ve(A.root,A.docked,u),ownerState:T,ref:r},S,{children:I})):_.jsx(M0e,E({BackdropProps:E({},s,d,{transitionDuration:y}),className:ve(A.root,A.modal,u),open:g,ownerState:T,onClose:h,hideBackdrop:f,ref:r},S,w,{children:I}))}),L0e=N0e;function F0e(e){return Oe("MuiFab",e)}const B0e=Pe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),xM=B0e,z0e=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],V0e=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${ce(o)}`,t==="inherit"?"colorInherit":t]},i=Se(a,F0e,n);return E({},n,i)},U0e=H(wn,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Pn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ce(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return E({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${xM.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>E({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${xM.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),W0e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:l=!1,disableFocusRipple:u=!1,focusVisibleClassName:c,size:f="large",variant:d="circular"}=n,h=ue(n,z0e),g=E({},n,{color:i,component:s,disabled:l,disableFocusRipple:u,size:f,variant:d}),p=V0e(g);return _.jsx(U0e,E({className:ve(p.root,a),component:s,disabled:l,focusRipple:!u,focusVisibleClassName:ve(p.focusVisible,c),ownerState:g,ref:r},h,{classes:p,children:o}))}),H0e=W0e,q0e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],G0e=e=>{const{classes:t,disableUnderline:r}=e,o=Se({root:["root",!r&&"underline"],input:["input"]},mye,t);return E({},t,o)},K0e=H(_0,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...P0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return E({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${bs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${bs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bs.disabled}, .${bs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&E({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Y0e=H($0,{name:"MuiFilledInput",slot:"Input",overridesResolver:C0})(({theme:e,ownerState:t})=>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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),t6=m.forwardRef(function(t,r){var n,o,a,i;const s=xe({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:g={},type:p="text"}=s,x=ue(s,q0e),b=E({},s,{fullWidth:c,inputComponent:f,multiline:d,type:p}),y=G0e(s),v={root:{ownerState:b},input:{ownerState:b}},w=h??u?vn(h??u,v):v,S=(n=(o=g.root)!=null?o:l.Root)!=null?n:K0e,O=(a=(i=g.input)!=null?i:l.Input)!=null?a:Y0e;return _.jsx(E0,E({slots:{root:S,input:O},componentsProps:w,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:p},x,{classes:y}))});t6.muiName="Input";const r6=t6;function X0e(e){return Oe("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Q0e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],J0e=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${ce(r)}`,n&&"fullWidth"]};return Se(o,X0e,t)},Z0e=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>E({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),e1e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:g=!1,size:p="medium",variant:x="outlined"}=n,b=ue(n,Q0e),y=E({},n,{color:i,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:g,size:p,variant:x}),v=J0e(y),[w,S]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,M=>{if(!gd(M,["Input","Select"]))return;const R=gd(M,["Select"])?M.props.input:M;R&&aye(R.props)&&(D=!0)}),D}),[O,P]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,M=>{gd(M,["Input","Select"])&&(Eg(M.props,!0)||Eg(M.props.inputProps,!0))&&(D=!0)}),D}),[C,T]=m.useState(!1);l&&C&&T(!1);const A=c!==void 0&&!l?c:C;let k;const I=m.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:i,disabled:l,error:u,filled:O,focused:A,fullWidth:f,hiddenLabel:d,size:p,onBlur:()=>{T(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{T(!0)},registerEffect:k,required:g,variant:x}),[w,i,l,u,O,A,f,d,k,g,p,x]);return _.jsx(O0.Provider,{value:I,children:_.jsx(Z0e,E({as:s,ownerState:y,className:ve(v.root,a),ref:r},b,{children:o}))})}),t1e=e1e,r1e=bhe({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>xe({props:e,name:"MuiStack"})}),D0=r1e;function n1e(e){return Oe("MuiFormHelperText",e)}const o1e=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),wM=o1e;var SM;const a1e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],i1e=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,u={root:["root",o&&"disabled",a&&"error",n&&`size${ce(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Se(u,n1e,t)},s1e=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ce(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wM.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wM.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),l1e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=ue(n,a1e),l=fs(),u=Xc({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=E({},n,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=i1e(c);return _.jsx(s1e,E({as:i,ownerState:c,className:ve(f.root,a),ref:r},s,{children:o===" "?SM||(SM=_.jsx("span",{className:"notranslate",children:"​"})):o}))}),u1e=l1e;function c1e(e){return Oe("MuiFormLabel",e)}const f1e=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pd=f1e,d1e=["children","className","color","component","disabled","error","filled","focused","required"],p1e=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${ce(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Se(l,c1e,t)},h1e=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Pd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pd.error}`]:{color:(e.vars||e).palette.error.main}})),v1e=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pd.error}`]:{color:(e.vars||e).palette.error.main}})),m1e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=ue(n,d1e),l=fs(),u=Xc({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=E({},n,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=p1e(c);return _.jsxs(h1e,E({as:i,ownerState:c,className:ve(f.root,a),ref:r},s,{children:[o,u.required&&_.jsxs(v1e,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),g1e=m1e,y1e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wO(e){return`scale(${e}, ${e**2})`}const b1e={entering:{opacity:1,transform:wO(1)},entered:{opacity:1,transform:"none"}},px=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),n6=m.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:g,timeout:p="auto",TransitionComponent:x=x0}=t,b=ue(t,y1e),y=m.useRef(),v=m.useRef(),w=pr(),S=m.useRef(null),O=ut(S,a.ref,r),P=R=>N=>{if(R){const F=S.current;N===void 0?R(F):R(F,N)}},C=P(c),T=P((R,N)=>{aE(R);const{duration:F,delay:j,easing:L}=rc({style:g,timeout:p,easing:i},{mode:"enter"});let B;p==="auto"?(B=w.transitions.getAutoHeightDuration(R.clientHeight),v.current=B):B=F,R.style.transition=[w.transitions.create("opacity",{duration:B,delay:j}),w.transitions.create("transform",{duration:px?B:B*.666,delay:j,easing:L})].join(","),l&&l(R,N)}),A=P(u),k=P(h),I=P(R=>{const{duration:N,delay:F,easing:j}=rc({style:g,timeout:p,easing:i},{mode:"exit"});let L;p==="auto"?(L=w.transitions.getAutoHeightDuration(R.clientHeight),v.current=L):L=N,R.style.transition=[w.transitions.create("opacity",{duration:L,delay:F}),w.transitions.create("transform",{duration:px?L:L*.666,delay:px?F:F||L*.333,easing:j})].join(","),R.style.opacity=0,R.style.transform=wO(.75),f&&f(R)}),D=P(d),M=R=>{p==="auto"&&(y.current=setTimeout(R,v.current||0)),n&&n(S.current,R)};return m.useEffect(()=>()=>{clearTimeout(y.current)},[]),_.jsx(x,E({appear:o,in:s,nodeRef:S,onEnter:T,onEntered:A,onEntering:C,onExit:I,onExited:D,onExiting:k,addEndListener:M,timeout:p==="auto"?null:p},b,{children:(R,N)=>m.cloneElement(a,E({style:E({opacity:0,transform:wO(.75),visibility:R==="exited"&&!s?"hidden":void 0},b1e[R],g,a.props.style),ref:O},N))}))});n6.muiSupportAuto=!0;const dp=n6;function x1e(e,t,r,n,o){const[a,i]=m.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return sr(()=>{let s=!0;if(!r)return;const l=r(e),u=()=>{s&&i(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,r]),a}const o6=Pm["useSyncExternalStore"];function w1e(e,t,r,n,o){const a=m.useCallback(()=>t,[t]),i=m.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,o,r]),[s,l]=m.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return o6(l,s,i)}function Cn(e,t={}){const r=i0(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=_z({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(o6!==void 0?w1e:x1e)(l,o,a,i,s)}const S1e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],O1e=e=>{const{classes:t,disableUnderline:r}=e,o=Se({root:["root",!r&&"underline"],input:["input"]},dye,t);return E({},t,o)},P1e=H(_0,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...P0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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})`),E({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$f.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$f.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(.${$f.disabled}, .${$f.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$f.disabled}:before`]:{borderBottomStyle:"dotted"}})}),C1e=H($0,{name:"MuiInput",slot:"Input",overridesResolver:C0})({}),a6=m.forwardRef(function(t,r){var n,o,a,i;const s=xe({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:g,slots:p={},type:x="text"}=s,b=ue(s,S1e),y=O1e(s),w={root:{ownerState:{disableUnderline:l}}},S=g??c?vn(g??c,w):w,O=(n=(o=p.root)!=null?o:u.Root)!=null?n:P1e,P=(a=(i=p.input)!=null?i:u.Input)!=null?a:C1e;return _.jsx(E0,E({slots:{root:O,input:P},slotProps:S,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:x},b,{classes:y}))});a6.muiName="Input";const i6=a6;function _1e(e){return Oe("MuiInputAdornment",e)}const $1e=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),OM=$1e;var PM;const E1e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],T1e=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},k1e=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${ce(o)}`,i,n&&"hiddenLabel",a&&`size${ce(a)}`]};return Se(s,_1e,t)},A1e=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:T1e})(({theme:e,ownerState:t})=>E({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${OM.positionStart}&:not(.${OM.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),R1e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,f=ue(n,E1e),d=fs()||{};let h=c;c&&d.variant,d&&!h&&(h=d.variant);const g=E({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:u,variant:h}),p=k1e(g);return _.jsx(O0.Provider,{value:null,children:_.jsx(A1e,E({as:i,ownerState:g,className:ve(p.root,a),ref:r},f,{children:typeof o=="string"&&!l?_.jsx(Te,{color:"text.secondary",children:o}):_.jsxs(m.Fragment,{children:[u==="start"?PM||(PM=_.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Vi=R1e;function M1e(e){return Oe("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const I1e=["disableAnimation","margin","shrink","variant","className"],D1e=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${ce(n)}`,i],asterisk:[s&&"asterisk"]},u=Se(l,M1e,t);return E({},t,u)},j1e=H(g1e,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Pd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>E({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&E({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&E({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&E({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),N1e=m.forwardRef(function(t,r){const n=xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=ue(n,I1e),l=fs();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Xc({props:n,muiFormControl:l,states:["size","variant","required"]}),f=E({},n,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=D1e(f);return _.jsx(j1e,E({"data-shrink":u,ownerState:f,ref:r,className:ve(d.root,i)},s,{classes:d}))}),L1e=N1e;function F1e(e){return Oe("MuiLinearProgress",e)}Pe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const B1e=["className","color","value","valueBuffer","variant"];let Jc=e=>e,CM,_M,$M,EM,TM,kM;const SO=4,z1e=us(CM||(CM=Jc` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),V1e=us(_M||(_M=Jc` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),U1e=us($M||($M=Jc` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),W1e=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${ce(n)}`,r],dashed:["dashed",`dashedColor${ce(n)}`],bar1:["bar",`barColor${ce(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${ce(n)}`,r==="buffer"&&`color${ce(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Se(o,F1e,t)},yE=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ch(e.palette[t].main,.62):l0(e.palette[t].main,.5),H1e=H("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${ce(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>E({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:yE(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),q1e=H("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${ce(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=yE(t,e.color);return E({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Kc(EM||(EM=Jc` + animation: ${0} 3s infinite linear; + `),U1e)),G1e=H("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ce(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${SO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${SO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Kc(TM||(TM=Jc` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),z1e)),K1e=H("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${ce(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:yE(t,e.color),transition:`transform .${SO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Kc(kM||(kM=Jc` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),V1e)),Y1e=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:l="indeterminate"}=n,u=ue(n,B1e),c=E({},n,{color:a,variant:l}),f=W1e(c),d=pr(),h={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let p=i-100;d.direction==="rtl"&&(p=-p),g.bar1.transform=`translateX(${p}%)`}if(l==="buffer"&&s!==void 0){let p=(s||0)-100;d.direction==="rtl"&&(p=-p),g.bar2.transform=`translateX(${p}%)`}return _.jsxs(H1e,E({className:ve(f.root,o),ownerState:c,role:"progressbar"},h,{ref:r},u,{children:[l==="buffer"?_.jsx(q1e,{className:f.dashed,ownerState:c}):null,_.jsx(G1e,{className:f.bar1,ownerState:c,style:g.bar1}),l==="determinate"?null:_.jsx(K1e,{className:f.bar2,ownerState:c,style:g.bar2})]}))}),X1e=Y1e;function Q1e(e){return Oe("MuiLink",e)}const J1e=Pe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Z1e=J1e,s6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},exe=e=>s6[e]||e,txe=({theme:e,ownerState:t})=>{const r=exe(t.color),n=tc(e,`palette.${r}`,!1)||t.color,o=tc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne(n,.4)},rxe=txe,nxe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oxe=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${ce(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Se(a,Q1e,t)},axe=H(Te,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ce(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>E({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&E({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:rxe({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Z1e.focusVisible}`]:{outline:"auto"}})),ixe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=ue(n,nxe),{isFocusVisibleRef:g,onBlur:p,onFocus:x,ref:b}=Nb(),[y,v]=m.useState(!1),w=ut(r,b),S=T=>{p(T),g.current===!1&&v(!1),s&&s(T)},O=T=>{x(T),g.current===!0&&v(!0),l&&l(T)},P=E({},n,{color:a,component:i,focusVisible:y,underline:c,variant:f}),C=oxe(P);return _.jsx(axe,E({color:a,className:ve(C.root,o),classes:u,component:i,onBlur:S,onFocus:O,ref:w,ownerState:P,variant:f,sx:[...Object.keys(s6).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),Rg=ixe,sxe=m.createContext({}),La=sxe;function lxe(e){return Oe("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const uxe=["children","className","component","dense","disablePadding","subheader"],cxe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Se({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},lxe,t)},fxe=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>E({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),dxe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ue(n,uxe),f=m.useMemo(()=>({dense:s}),[s]),d=E({},n,{component:i,dense:s,disablePadding:l}),h=cxe(d);return _.jsx(La.Provider,{value:f,children:_.jsxs(fxe,E({as:i,className:ve(h.root,a),ref:r,ownerState:d},c,{children:[u,o]}))})}),l6=dxe;function pxe(e){return Oe("MuiListItem",e)}const hxe=Pe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Xl=hxe,vxe=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mxe=vxe;function gxe(e){return Oe("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const yxe=["className"],bxe=e=>{const{disableGutters:t,classes:r}=e;return Se({root:["root",t&&"disableGutters"]},gxe,r)},xxe=H("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>E({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),u6=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=ue(n,yxe),i=m.useContext(La),s=E({},n,{disableGutters:i.disableGutters}),l=bxe(s);return _.jsx(xxe,E({className:ve(l.root,o),ownerState:s,ref:r},a))});u6.muiName="ListItemSecondaryAction";const wxe=u6,Sxe=["className"],Oxe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pxe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Cxe=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Se({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},pxe,n)},_xe=H("div",{name:"MuiListItem",slot:"Root",overridesResolver:Pxe})(({theme:e,ownerState:t})=>E({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&E({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${mxe.root}`]:{paddingRight:48}},{[`&.${Xl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(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})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),$xe=H("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Exe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:g=!1,disabled:p=!1,disableGutters:x=!1,disablePadding:b=!1,divider:y=!1,focusVisibleClassName:v,secondaryAction:w,selected:S=!1,slotProps:O={},slots:P={}}=n,C=ue(n.ContainerProps,Sxe),T=ue(n,Oxe),A=m.useContext(La),k=m.useMemo(()=>({dense:g||A.dense||!1,alignItems:o,disableGutters:x}),[o,A.dense,g,x]),I=m.useRef(null);sr(()=>{a&&I.current&&I.current.focus()},[a]);const D=m.Children.toArray(s),M=D.length&&gd(D[D.length-1],["ListItemSecondaryAction"]),R=E({},n,{alignItems:o,autoFocus:a,button:i,dense:k.dense,disabled:p,disableGutters:x,disablePadding:b,divider:y,hasSecondaryAction:M,selected:S}),N=Cxe(R),F=ut(I,r),j=P.root||c.Root||_xe,L=O.root||f.root||{},B=E({className:ve(N.root,L.className,l),disabled:p},T);let W=u||"li";return i&&(B.component=u||"div",B.focusVisibleClassName=ve(Xl.focusVisible,v),W=wn),M?(W=!B.component&&!u?"div":W,d==="li"&&(W==="li"?W="div":B.component==="li"&&(B.component="div")),_.jsx(La.Provider,{value:k,children:_.jsxs($xe,E({as:d,className:ve(N.container,h),ref:F,ownerState:R},C,{children:[_.jsx(j,E({},L,!pl(j)&&{as:W,ownerState:E({},R,L.ownerState)},B,{children:D})),D.pop()]}))})):_.jsx(La.Provider,{value:k,children:_.jsxs(j,E({},L,{as:W,ref:F},!pl(j)&&{ownerState:E({},R,L.ownerState)},B,{children:[D,w&&_.jsx(wxe,{children:w})]}))})}),Txe=Exe;function kxe(e){return Oe("MuiListItemIcon",e)}const Axe=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]),AM=Axe,Rxe=["className"],Mxe=e=>{const{alignItems:t,classes:r}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},kxe,r)},Ixe=H("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>E({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Dxe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=ue(n,Rxe),i=m.useContext(La),s=E({},n,{alignItems:i.alignItems}),l=Mxe(s);return _.jsx(Ixe,E({className:ve(l.root,o),ownerState:s,ref:r},a))}),c6=Dxe;function jxe(e){return Oe("MuiListItemText",e)}const Nxe=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Mg=Nxe,Lxe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Fxe=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return Se({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},jxe,t)},Bxe=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mg.primary}`]:t.primary},{[`& .${Mg.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>E({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),zxe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=n,d=ue(n,Lxe),{dense:h}=m.useContext(La);let g=l??o,p=c;const x=E({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!p,dense:h}),b=Fxe(x);return g!=null&&g.type!==Te&&!i&&(g=_.jsx(Te,E({variant:h?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),p!=null&&p.type!==Te&&!i&&(p=_.jsx(Te,E({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},f,{children:p}))),_.jsxs(Bxe,E({className:ve(b.root,a),ownerState:x,ref:r},d,{children:[g,p]}))}),Vxe=zxe,Uxe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hx(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function RM(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function f6(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Ef(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!f6(s,a)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const Wxe=m.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=ue(t,Uxe),h=m.useRef(null),g=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sr(()=>{o&&h.current.focus()},[o]),m.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,w)=>{const S=!h.current.style.width;if(v.clientHeight{const w=h.current,S=v.key,O=Wt(w).activeElement;if(S==="ArrowDown")v.preventDefault(),Ef(w,O,u,l,hx);else if(S==="ArrowUp")v.preventDefault(),Ef(w,O,u,l,RM);else if(S==="Home")v.preventDefault(),Ef(w,null,u,l,hx);else if(S==="End")v.preventDefault(),Ef(w,null,u,l,RM);else if(S.length===1){const P=g.current,C=S.toLowerCase(),T=performance.now();P.keys.length>0&&(T-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&C!==P.keys[0]&&(P.repeating=!1)),P.lastTime=T,P.keys.push(C);const A=O&&!P.repeating&&f6(O,P);P.previousKeyMatched&&(A||Ef(w,O,!1,l,hx,P))?v.preventDefault():P.previousKeyMatched=!1}c&&c(v)},x=ut(h,r);let b=-1;m.Children.forEach(i,(v,w)=>{if(!m.isValidElement(v)){b===w&&(b+=1,b>=i.length&&(b=-1));return}v.props.disabled||(f==="selectedMenu"&&v.props.selected||b===-1)&&(b=w),b===w&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const y=m.Children.map(i,(v,w)=>{if(w===b){const S={};return a&&(S.autoFocus=!0),v.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),m.cloneElement(v,S)}return v});return _.jsx(l6,E({role:"menu",ref:x,className:s,onKeyDown:p,tabIndex:o?0:-1},d,{children:y}))}),d6=Wxe;function Hxe(e){return Oe("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);const qxe=["onEntering"],Gxe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Kxe=["slotProps"];function MM(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function IM(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function DM(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vx(e){return typeof e=="function"?e():e}const Yxe=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},Hxe,t)},Xxe=H(mE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p6=H(oi,{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}),Qxe=m.forwardRef(function(t,r){var n,o,a;const i=xe({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:g,elevation:p=8,marginThreshold:x=16,open:b,PaperProps:y={},slots:v,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:O=dp,transitionDuration:P="auto",TransitionProps:{onEntering:C}={},disableScrollLock:T=!1}=i,A=ue(i.TransitionProps,qxe),k=ue(i,Gxe),I=(n=w==null?void 0:w.paper)!=null?n:y,D=m.useRef(),M=ut(D,I.ref),R=E({},i,{anchorOrigin:u,anchorReference:f,elevation:p,marginThreshold:x,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:O,transitionDuration:P,TransitionProps:A}),N=Yxe(R),F=m.useCallback(()=>{if(f==="anchorPosition")return c;const oe=vx(l),ge=(oe&&oe.nodeType===1?oe:Wt(D.current).body).getBoundingClientRect();return{top:ge.top+MM(ge,u.vertical),left:ge.left+IM(ge,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),j=m.useCallback(oe=>({vertical:MM(oe,S.vertical),horizontal:IM(oe,S.horizontal)}),[S.horizontal,S.vertical]),L=m.useCallback(oe=>{const fe={width:oe.offsetWidth,height:oe.offsetHeight},ge=j(fe);if(f==="none")return{top:null,left:null,transformOrigin:DM(ge)};const Ae=F();let V=Ae.top-ge.vertical,q=Ae.left-ge.horizontal;const U=V+fe.height,ne=q+fe.width,re=io(vx(l)),se=re.innerHeight-x,me=re.innerWidth-x;if(x!==null&&Vse){const Ce=U-se;V-=Ce,ge.vertical+=Ce}if(x!==null&&qme){const Ce=ne-me;q-=Ce,ge.horizontal+=Ce}return{top:`${Math.round(V)}px`,left:`${Math.round(q)}px`,transformOrigin:DM(ge)}},[l,f,F,j,x]),[B,W]=m.useState(b),X=m.useCallback(()=>{const oe=D.current;if(!oe)return;const fe=L(oe);fe.top!==null&&(oe.style.top=fe.top),fe.left!==null&&(oe.style.left=fe.left),oe.style.transformOrigin=fe.transformOrigin,W(!0)},[L]);m.useEffect(()=>(T&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,T,X]);const J=(oe,fe)=>{C&&C(oe,fe),X()},K=()=>{W(!1)};m.useEffect(()=>{b&&X()}),m.useImperativeHandle(s,()=>b?{updatePosition:()=>{X()}}:null,[b,X]),m.useEffect(()=>{if(!b)return;const oe=qc(()=>{X()}),fe=io(l);return fe.addEventListener("resize",oe),()=>{oe.clear(),fe.removeEventListener("resize",oe)}},[l,b,X]);let ie=P;P==="auto"&&!O.muiSupportAuto&&(ie=void 0);const de=g||(l?Wt(vx(l)).body:void 0),ee=(o=v==null?void 0:v.root)!=null?o:Xxe,le=(a=v==null?void 0:v.paper)!=null?a:p6,Q=at({elementType:le,externalSlotProps:E({},I,{style:B?I.style:E({},I.style,{opacity:0})}),additionalProps:{elevation:p,ref:M},ownerState:R,className:ve(N.paper,I==null?void 0:I.className)}),ae=at({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:de,open:b},ownerState:R,className:ve(N.root,h)}),{slotProps:Z}=ae,G=ue(ae,Kxe);return _.jsx(ee,E({},G,!pl(ee)&&{slotProps:Z,disableScrollLock:T},{children:_.jsx(O,E({appear:!0,in:b,onEntering:J,onExited:K,timeout:ie},A,{children:_.jsx(le,E({},Q,{children:d}))}))}))}),h6=Qxe;function Jxe(e){return Oe("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const Zxe=["onEntering"],ewe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],twe={vertical:"top",horizontal:"right"},rwe={vertical:"top",horizontal:"left"},nwe=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},Jxe,t)},owe=H(h6,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),awe=H(p6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iwe=H(d6,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),swe=m.forwardRef(function(t,r){var n,o;const a=xe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:g,transitionDuration:p="auto",TransitionProps:{onEntering:x}={},variant:b="selectedMenu",slots:y={},slotProps:v={}}=a,w=ue(a.TransitionProps,Zxe),S=ue(a,ewe),O=pr(),P=O.direction==="rtl",C=E({},a,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:x,PaperProps:h,transitionDuration:p,TransitionProps:w,variant:b}),T=nwe(C),A=i&&!u&&d,k=m.useRef(null),I=(L,B)=>{k.current&&k.current.adjustStyleForScrollbar(L,O),x&&x(L,B)},D=L=>{L.key==="Tab"&&(L.preventDefault(),f&&f(L,"tabKeyDown"))};let M=-1;m.Children.map(s,(L,B)=>{m.isValidElement(L)&&(L.props.disabled||(b==="selectedMenu"&&L.props.selected||M===-1)&&(M=B))});const R=(n=y.paper)!=null?n:awe,N=(o=v.paper)!=null?o:h,F=at({elementType:y.root,externalSlotProps:v.root,ownerState:C,className:[T.root,l]}),j=at({elementType:R,externalSlotProps:N,ownerState:C,className:T.paper});return _.jsx(owe,E({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?twe:rwe,slots:{paper:R,root:y.root},slotProps:{root:F,paper:j},open:d,ref:r,transitionDuration:p,TransitionProps:E({onEntering:I},w),ownerState:C},S,{classes:g,children:_.jsx(iwe,E({onKeyDown:D,actions:k,autoFocus:i&&(M===-1||u),autoFocusItem:A,variant:b},c,{className:ve(T.list,c.className),children:s}))}))}),j0=swe;function lwe(e){return Oe("MuiMenuItem",e)}const uwe=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tf=uwe,cwe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fwe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},dwe=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=Se({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},lwe,i);return E({},i,l)},pwe=H(wn,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:fwe})(({theme:e,ownerState:t})=>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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Tf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Tf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Tf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(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})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Tf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Tf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${gM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${gM.inset}`]:{marginLeft:52},[`& .${Mg.root}`]:{marginTop:0,marginBottom:0},[`& .${Mg.inset}`]:{paddingLeft:36},[`& .${AM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&E({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${AM.root} svg`]:{fontSize:"1.25rem"}}))),hwe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:d}=n,h=ue(n,cwe),g=m.useContext(La),p=m.useMemo(()=>({dense:i||g.dense||!1,disableGutters:l}),[g.dense,i,l]),x=m.useRef(null);sr(()=>{o&&x.current&&x.current.focus()},[o]);const b=E({},n,{dense:p.dense,divider:s,disableGutters:l}),y=dwe(n),v=ut(x,r);let w;return n.disabled||(w=f!==void 0?f:-1),_.jsx(La.Provider,{value:p,children:_.jsx(pwe,E({ref:v,role:c,tabIndex:w,component:a,focusVisibleClassName:ve(y.focusVisible,u),className:ve(y.root,d)},h,{ownerState:b,classes:y}))})}),Ma=hwe;function vwe(e){return Oe("MuiNativeSelect",e)}const mwe=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bE=mwe,gwe=["className","disabled","error","IconComponent","inputRef","variant"],ywe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ce(r)}`,a&&"iconOpen",n&&"disabled"]};return Se(s,vwe,t)},v6=({ownerState:e,theme:t})=>E({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":E({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${bE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),bwe=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${bE.multiple}`]:t.multiple}]}})(v6),m6=({ownerState:e,theme:t})=>E({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${bE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),xwe=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(m6),wwe=m.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,u=ue(t,gwe),c=E({},t,{disabled:o,variant:l,error:a}),f=ywe(c);return _.jsxs(m.Fragment,{children:[_.jsx(bwe,E({ownerState:c,className:ve(f.select,n),disabled:o,ref:s||r},u)),t.multiple?null:_.jsx(xwe,{as:i,ownerState:c,className:f.icon})]})}),Swe=wwe;var jM;const Owe=["children","classes","className","label","notched"],Pwe=H("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Cwe=H("legend")(({ownerState:e,theme:t})=>E({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&E({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function _we(e){const{className:t,label:r,notched:n}=e,o=ue(e,Owe),a=r!=null&&r!=="",i=E({},e,{notched:n,withLabel:a});return _.jsx(Pwe,E({"aria-hidden":!0,className:t,ownerState:i},o,{children:_.jsx(Cwe,{ownerState:i,children:a?_.jsx("span",{children:r}):jM||(jM=_.jsx("span",{className:"notranslate",children:"​"}))})}))}const $we=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ewe=e=>{const{classes:t}=e,n=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},hye,t);return E({},t,n)},Twe=H(_0,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:P0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return E({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ci.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ci.focused} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ci.error} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ci.disabled} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&E({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),kwe=H(_we,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Awe=H($0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:C0})(({theme:e,ownerState:t})=>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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),g6=m.forwardRef(function(t,r){var n,o,a,i,s;const l=xe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:g,slots:p={},type:x="text"}=l,b=ue(l,$we),y=Ewe(l),v=fs(),w=Xc({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=E({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:v,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:h,size:w.size,type:x}),O=(n=(o=p.root)!=null?o:u.Root)!=null?n:Twe,P=(a=(i=p.input)!=null?i:u.Input)!=null?a:Awe;return _.jsx(E0,E({slots:{root:O,input:P},renderSuffix:C=>_.jsx(kwe,{ownerState:S,className:y.notchedOutline,label:d!=null&&d!==""&&w.required?s||(s=_.jsxs(m.Fragment,{children:[d," ","*"]})):d,notched:typeof g<"u"?g:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:x},b,{classes:E({},y,{notchedOutline:null})}))});g6.muiName="Input";const y6=g6;function Rwe(e){return Oe("MuiPagination",e)}Pe("MuiPagination",["root","ul","outlined","text"]);const Mwe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Iwe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:d=1}=e,h=ue(e,Mwe),[g,p]=bn({controlled:u,default:o,name:r,state:"page"}),x=(T,A)=>{u||p(A),l&&l(T,A)},b=(T,A)=>{const k=A-T+1;return Array.from({length:k},(I,D)=>T+D)},y=b(1,Math.min(t,n)),v=b(Math.max(n-t+1,t+1),n),w=Math.max(Math.min(g-d,n-t-d*2-1),t+2),S=Math.min(Math.max(g+d,t+d*2+2),v.length>0?v[0]-2:n-1),O=[...c?["first"]:[],...s?[]:["previous"],...y,...w>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...v,...i?[]:["next"],...f?["last"]:[]],P=T=>{switch(T){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},C=O.map(T=>typeof T=="number"?{onClick:A=>{x(A,T)},type:"page",page:T,selected:T===g,disabled:a,"aria-current":T===g?"true":void 0}:{onClick:A=>{x(A,P(T))},type:T,page:P(T),selected:!1,disabled:a||T.indexOf("ellipsis")===-1&&(T==="next"||T==="last"?g>=n:g<=1)});return E({items:C},h)}function Dwe(e){return Oe("MuiPaginationItem",e)}const jwe=Pe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),Gn=jwe,Ig=zt(_.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Dg=zt(_.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),NM=zt(_.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),LM=zt(_.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Nwe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],b6=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.variant==="text"&&t[`text${ce(r.color)}`],r.variant==="outlined"&&t[`outlined${ce(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Lwe=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:l}=e,u={root:["root",`size${ce(a)}`,l,i,r!=="standard"&&`${l}${ce(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Se(u,Dwe,t)},Fwe=H("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:b6})(({theme:e,ownerState:t})=>E({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Bwe=H(wn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:b6})(({theme:e,ownerState:t})=>E({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selected} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selected} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Gn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>E({},t.variant==="text"&&{[`&.${Gn.selected}`]:E({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Gn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Gn.selected}`]:E({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Ne(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Ne(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Gn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),zwe=H("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>E({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Vwe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:l=!1,page:u,selected:c=!1,shape:f="circular",size:d="medium",slots:h={},type:g="page",variant:p="text"}=n,x=ue(n,Nwe),b=E({},n,{color:a,disabled:l,selected:c,shape:f,size:d,type:g,variant:p}),y=pr(),v=Lwe(b),S=(y.direction==="rtl"?{previous:h.next||s.next||LM,next:h.previous||s.previous||NM,last:h.first||s.first||Ig,first:h.last||s.last||Dg}:{previous:h.previous||s.previous||NM,next:h.next||s.next||LM,first:h.first||s.first||Ig,last:h.last||s.last||Dg})[g];return g==="start-ellipsis"||g==="end-ellipsis"?_.jsx(Fwe,{ref:r,ownerState:b,className:ve(v.root,o),children:"…"}):_.jsxs(Bwe,E({ref:r,ownerState:b,component:i,disabled:l,className:ve(v.root,o)},x,{children:[g==="page"&&u,S?_.jsx(zwe,{as:S,ownerState:b,className:v.icon}):null]}))}),Uwe=Vwe,Wwe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Hwe=e=>{const{classes:t,variant:r}=e;return Se({root:["root",r],ul:["ul"]},Rwe,t)},qwe=H("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Gwe=H("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Kwe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Ywe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:l=1,disabled:u=!1,getItemAriaLabel:c=Kwe,hideNextButton:f=!1,hidePrevButton:d=!1,renderItem:h=C=>_.jsx(Uwe,E({},C)),shape:g="circular",showFirstButton:p=!1,showLastButton:x=!1,siblingCount:b=1,size:y="medium",variant:v="text"}=n,w=ue(n,Wwe),{items:S}=Iwe(E({},n,{componentName:"Pagination"})),O=E({},n,{boundaryCount:o,color:i,count:s,defaultPage:l,disabled:u,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:p,showLastButton:x,siblingCount:b,size:y,variant:v}),P=Hwe(O);return _.jsx(qwe,E({"aria-label":"pagination navigation",className:ve(P.root,a),ownerState:O,ref:r},w,{children:_.jsx(Gwe,{className:P.ul,ownerState:O,children:S.map((C,T)=>_.jsx("li",{children:h(E({},C,{color:i,"aria-label":c(C.type,C.page,C.selected),shape:g,size:y,variant:v}))},T))})}))}),Xwe=Ywe;function Qwe(e){return Oe("MuiScopedCssBaseline",e)}Pe("MuiScopedCssBaseline",["root"]);const Jwe=["className","component","enableColorScheme"],Zwe=e=>{const{classes:t}=e;return Se({root:["root"]},Qwe,t)},eSe=H("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),E({},Ibe(e,t.enableColorScheme),Dbe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),tSe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=ue(n,Jwe),s=E({},n,{component:a}),l=Zwe(s);return _.jsx(eSe,E({as:a,className:ve(l.root,o),ref:r,ownerState:s},i))}),rSe=tSe;function nSe(e){return Oe("MuiSelect",e)}const oSe=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kf=oSe;var FM;const aSe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],iSe=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${kf.select}`]:t.select},{[`&.${kf.select}`]:t[r.variant]},{[`&.${kf.error}`]:t.error},{[`&.${kf.multiple}`]:t.multiple}]}})(v6,{[`&.${kf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sSe=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(m6),lSe=H("input",{shouldForwardProp:e=>qhe(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 BM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function uSe(e){return e==null||typeof e=="string"&&!e.trim()}const cSe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ce(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Se(s,nSe,t)},fSe=m.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:g=!1,IconComponent:p,inputRef:x,labelId:b,MenuProps:y={},multiple:v,name:w,onBlur:S,onChange:O,onClose:P,onFocus:C,onOpen:T,open:A,readOnly:k,renderValue:I,SelectDisplayProps:D={},tabIndex:M,value:R,variant:N="standard"}=t,F=ue(t,aSe),[j,L]=bn({controlled:R,default:f,name:"Select"}),[B,W]=bn({controlled:A,default:c,name:"Select"}),X=m.useRef(null),J=m.useRef(null),[K,ie]=m.useState(null),{current:de}=m.useRef(A!=null),[ee,le]=m.useState(),Q=ut(r,x),ae=m.useCallback(_e=>{J.current=_e,_e&&ie(_e)},[]),Z=K==null?void 0:K.parentNode;m.useImperativeHandle(Q,()=>({focus:()=>{J.current.focus()},node:X.current,value:j}),[j]),m.useEffect(()=>{c&&B&&K&&!de&&(le(s?null:Z.clientWidth),J.current.focus())},[K,s]),m.useEffect(()=>{i&&J.current.focus()},[i]),m.useEffect(()=>{if(!b)return;const _e=Wt(J.current).getElementById(b);if(_e){const Y=()=>{getSelection().isCollapsed&&J.current.focus()};return _e.addEventListener("click",Y),()=>{_e.removeEventListener("click",Y)}}},[b]);const G=(_e,Y)=>{_e?T&&T(Y):P&&P(Y),de||(le(s?null:Z.clientWidth),W(_e))},oe=_e=>{_e.button===0&&(_e.preventDefault(),J.current.focus(),G(!0,_e))},fe=_e=>{G(!1,_e)},ge=m.Children.toArray(l),Ae=_e=>{const Y=ge.find(te=>te.props.value===_e.target.value);Y!==void 0&&(L(Y.props.value),O&&O(_e,Y))},V=_e=>Y=>{let te;if(Y.currentTarget.hasAttribute("tabindex")){if(v){te=Array.isArray(j)?j.slice():[];const he=j.indexOf(_e.props.value);he===-1?te.push(_e.props.value):te.splice(he,1)}else te=_e.props.value;if(_e.props.onClick&&_e.props.onClick(Y),j!==te&&(L(te),O)){const he=Y.nativeEvent||Y,we=new he.constructor(he.type,he);Object.defineProperty(we,"target",{writable:!0,value:{value:te,name:w}}),O(we,_e)}v||G(!1,Y)}},q=_e=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(_e.key)!==-1&&(_e.preventDefault(),G(!0,_e))},U=K!==null&&B,ne=_e=>{!U&&S&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:j,name:w}}),S(_e))};delete F["aria-invalid"];let re,se;const me=[];let Ce=!1;(Eg({value:j})||h)&&(I?re=I(j):Ce=!0);const je=ge.map(_e=>{if(!m.isValidElement(_e))return null;let Y;if(v){if(!Array.isArray(j))throw new Error(Xi(2));Y=j.some(te=>BM(te,_e.props.value)),Y&&Ce&&me.push(_e.props.children)}else Y=BM(j,_e.props.value),Y&&Ce&&(se=_e.props.children);return m.cloneElement(_e,{"aria-selected":Y?"true":"false",onClick:V(_e),onKeyUp:te=>{te.key===" "&&te.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(te)},role:"option",selected:Y,value:void 0,"data-value":_e.props.value})});Ce&&(v?me.length===0?re=null:re=me.reduce((_e,Y,te)=>(_e.push(Y),te{const{classes:t}=e;return t},xE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pn(e)&&e!=="variant",slot:"Root"},mSe=H(i6,xE)(""),gSe=H(y6,xE)(""),ySe=H(r6,xE)(""),x6=m.forwardRef(function(t,r){const n=xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=yye,id:f,input:d,inputProps:h,label:g,labelId:p,MenuProps:x,multiple:b=!1,native:y=!1,onClose:v,onOpen:w,open:S,renderValue:O,SelectDisplayProps:P,variant:C="outlined"}=n,T=ue(n,pSe),A=y?Swe:dSe,k=fs(),I=Xc({props:n,muiFormControl:k,states:["variant","error"]}),D=I.variant||C,M=E({},n,{variant:D,classes:i}),R=vSe(M),N=ue(R,hSe),F=d||{standard:_.jsx(mSe,{ownerState:M}),outlined:_.jsx(gSe,{label:g,ownerState:M}),filled:_.jsx(ySe,{ownerState:M})}[D],j=ut(r,F.ref);return _.jsx(m.Fragment,{children:m.cloneElement(F,E({inputComponent:A,inputProps:E({children:a,error:I.error,IconComponent:c,variant:D,type:void 0,multiple:b},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:p,MenuProps:x,onClose:v,onOpen:w,open:S,renderValue:O,SelectDisplayProps:E({id:f},P)},h,{classes:h?vn(N,h.classes):N},d?d.props.inputProps:{})},b&&y&&D==="outlined"?{notched:!0}:{},{ref:j,className:ve(F.props.className,s,R.root)},!d&&{variant:D},T))})});x6.muiName="Select";const w6=x6;function bSe(e){return Oe("MuiSnackbarContent",e)}Pe("MuiSnackbarContent",["root","message","action"]);const xSe=["action","className","message","role"],wSe=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},bSe,t)},SSe=H(oi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ahe(e.palette.background.default,t);return E({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,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}})}),OSe=H("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),PSe=H("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),CSe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,l=ue(n,xSe),u=n,c=wSe(u);return _.jsxs(SSe,E({role:s,square:!0,elevation:6,className:ve(c.root,a),ownerState:u,ref:r},l,{children:[_.jsx(OSe,{className:c.message,ownerState:u,children:i}),o?_.jsx(PSe,{className:c.action,ownerState:u,children:o}):null]}))}),_Se=CSe;function $Se(e){return Oe("MuiSnackbar",e)}Pe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ESe=["onEnter","onExited"],TSe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],kSe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ce(r.vertical)}${ce(r.horizontal)}`]};return Se(n,$Se,t)},zM=H("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ce(r.anchorOrigin.vertical)}${ce(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return E({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:E({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),ASe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiSnackbar"}),o=pr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:c,className:f,ClickAwayListenerProps:d,ContentProps:h,disableWindowBlurListener:g=!1,message:p,open:x,TransitionComponent:b=dp,transitionDuration:y=a,TransitionProps:{onEnter:v,onExited:w}={}}=n,S=ue(n.TransitionProps,ESe),O=ue(n,TSe),P=E({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:b,transitionDuration:y}),C=kSe(P),{getRootProps:T,onClickAway:A}=Vge(E({},P)),[k,I]=m.useState(!0),D=at({elementType:zM,getSlotProps:T,externalForwardedProps:O,ownerState:P,additionalProps:{ref:r},className:[C.root,f]}),M=N=>{I(!0),w&&w(N)},R=(N,F)=>{I(!1),v&&v(N,F)};return!x&&k?null:_.jsx(cme,E({onClickAway:A},d,{children:_.jsx(zM,E({},D,{children:_.jsx(b,E({appear:!0,in:x,timeout:y,direction:s==="top"?"down":"up",onEnter:R,onExited:M},S,{children:c||_.jsx(_Se,E({message:p,action:i},h))}))}))}))}),RSe=ASe;function MSe(e){return Oe("MuiTooltip",e)}const ISe=Pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),$i=ISe,DSe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function jSe(e){return Math.round(e*1e5)/1e5}const NSe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ce(a.split("-")[0])}`],arrow:["arrow"]};return Se(i,MSe,t)},LSe=H(hE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>E({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${$i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${$i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${$i.arrow}`]:E({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${$i.arrow}`]:E({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),FSe=H("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ce(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>E({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ne(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${jSe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${$i.popper}[data-popper-placement*="left"] &`]:E({transformOrigin:"right center"},t.isRtl?E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):E({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${$i.popper}[data-popper-placement*="right"] &`]:E({transformOrigin:"left center"},t.isRtl?E({marginRight:"14px"},t.touch&&{marginRight:"24px"}):E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${$i.popper}[data-popper-placement*="top"] &`]:E({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${$i.popper}[data-popper-placement*="bottom"] &`]:E({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),BSe=H("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ne(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Sv=!1,mx=null,Af={x:0,y:0};function Ov(e,t){return r=>{t&&t(r),e(r)}}const zSe=m.forwardRef(function(t,r){var n,o,a,i,s,l,u,c,f,d,h,g,p,x,b,y,v,w,S;const O=xe({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:C,components:T={},componentsProps:A={},describeChild:k=!1,disableFocusListener:I=!1,disableHoverListener:D=!1,disableInteractive:M=!1,disableTouchListener:R=!1,enterDelay:N=100,enterNextDelay:F=0,enterTouchDelay:j=700,followCursor:L=!1,id:B,leaveDelay:W=0,leaveTouchDelay:X=1500,onClose:J,onOpen:K,open:ie,placement:de="bottom",PopperComponent:ee,PopperProps:le={},slotProps:Q={},slots:ae={},title:Z,TransitionComponent:G=dp,TransitionProps:oe}=O,fe=ue(O,DSe),ge=m.isValidElement(C)?C:_.jsx("span",{children:C}),Ae=pr(),V=Ae.direction==="rtl",[q,U]=m.useState(),[ne,re]=m.useState(null),se=m.useRef(!1),me=M||L,Ce=m.useRef(),je=m.useRef(),He=m.useRef(),rt=m.useRef(),[Ue,ke]=bn({controlled:ie,default:!1,name:"Tooltip",state:"open"});let ht=Ue;const Pt=Ha(B),_e=m.useRef(),Y=m.useCallback(()=>{_e.current!==void 0&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),clearTimeout(rt.current)},[]);m.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(je.current),clearTimeout(He.current),Y()},[Y]);const te=Ye=>{clearTimeout(mx),Sv=!0,ke(!0),K&&!ht&&K(Ye)},he=Me(Ye=>{clearTimeout(mx),mx=setTimeout(()=>{Sv=!1},800+W),ke(!1),J&&ht&&J(Ye),clearTimeout(Ce.current),Ce.current=setTimeout(()=>{se.current=!1},Ae.transitions.duration.shortest)}),we=Ye=>{se.current&&Ye.type!=="touchstart"||(q&&q.removeAttribute("title"),clearTimeout(je.current),clearTimeout(He.current),N||Sv&&F?je.current=setTimeout(()=>{te(Ye)},Sv?F:N):te(Ye))},De=Ye=>{clearTimeout(je.current),clearTimeout(He.current),He.current=setTimeout(()=>{he(Ye)},W)},{isFocusVisibleRef:$e,onBlur:ct,onFocus:qt,ref:jt}=Nb(),[,Pr]=m.useState(!1),go=Ye=>{ct(Ye),$e.current===!1&&(Pr(!1),De(Ye))},Ge=Ye=>{q||U(Ye.currentTarget),qt(Ye),$e.current===!0&&(Pr(!0),we(Ye))},At=Ye=>{se.current=!0;const _n=ge.props;_n.onTouchStart&&_n.onTouchStart(Ye)},yo=we,nn=De,qh=Ye=>{At(Ye),clearTimeout(He.current),clearTimeout(Ce.current),Y(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",rt.current=setTimeout(()=>{document.body.style.WebkitUserSelect=_e.current,we(Ye)},j)},gs=Ye=>{ge.props.onTouchEnd&&ge.props.onTouchEnd(Ye),Y(),clearTimeout(He.current),He.current=setTimeout(()=>{he(Ye)},X)};m.useEffect(()=>{if(!ht)return;function Ye(_n){(_n.key==="Escape"||_n.key==="Esc")&&he(_n)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[he,ht]);const ff=ut(ge.ref,jt,U,r);!Z&&Z!==0&&(ht=!1);const li=m.useRef(),df=Ye=>{const _n=ge.props;_n.onMouseMove&&_n.onMouseMove(Ye),Af={x:Ye.clientX,y:Ye.clientY},li.current&&li.current.update()},ga={},Tl=typeof Z=="string";k?(ga.title=!ht&&Tl&&!D?Z:null,ga["aria-describedby"]=ht?Pt:null):(ga["aria-label"]=Tl?Z:null,ga["aria-labelledby"]=ht&&!Tl?Pt:null);const on=E({},ga,fe,ge.props,{className:ve(fe.className,ge.props.className),onTouchStart:At,ref:ff},L?{onMouseMove:df}:{}),ya={};R||(on.onTouchStart=qh,on.onTouchEnd=gs),D||(on.onMouseOver=Ov(yo,on.onMouseOver),on.onMouseLeave=Ov(nn,on.onMouseLeave),me||(ya.onMouseOver=yo,ya.onMouseLeave=nn)),I||(on.onFocus=Ov(Ge,on.onFocus),on.onBlur=Ov(go,on.onBlur),me||(ya.onFocus=Ge,ya.onBlur=go));const Gh=m.useMemo(()=>{var Ye;let _n=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return(Ye=le.popperOptions)!=null&&Ye.modifiers&&(_n=_n.concat(le.popperOptions.modifiers)),E({},le.popperOptions,{modifiers:_n})},[ne,le]),ba=E({},O,{isRtl:V,arrow:P,disableInteractive:me,placement:de,PopperComponentProp:ee,touch:se.current}),kl=NSe(ba),Kh=(n=(o=ae.popper)!=null?o:T.Popper)!=null?n:LSe,Al=(a=(i=(s=ae.transition)!=null?s:T.Transition)!=null?i:G)!=null?a:dp,xa=(l=(u=ae.tooltip)!=null?u:T.Tooltip)!=null?l:FSe,ys=(c=(f=ae.arrow)!=null?f:T.Arrow)!=null?c:BSe,y1=Jf(Kh,E({},le,(d=Q.popper)!=null?d:A.popper,{className:ve(kl.popper,le==null?void 0:le.className,(h=(g=Q.popper)!=null?g:A.popper)==null?void 0:h.className)}),ba),Yh=Jf(Al,E({},oe,(p=Q.transition)!=null?p:A.transition),ba),Z9=Jf(xa,E({},(x=Q.tooltip)!=null?x:A.tooltip,{className:ve(kl.tooltip,(b=(y=Q.tooltip)!=null?y:A.tooltip)==null?void 0:b.className)}),ba),eH=Jf(ys,E({},(v=Q.arrow)!=null?v:A.arrow,{className:ve(kl.arrow,(w=(S=Q.arrow)!=null?S:A.arrow)==null?void 0:w.className)}),ba);return _.jsxs(m.Fragment,{children:[m.cloneElement(ge,on),_.jsx(Kh,E({as:ee??hE,placement:de,anchorEl:L?{getBoundingClientRect:()=>({top:Af.y,left:Af.x,right:Af.x,bottom:Af.y,width:0,height:0})}:q,popperRef:li,open:q?ht:!1,id:Pt,transition:!0},ya,y1,{popperOptions:Gh,children:({TransitionProps:Ye})=>_.jsx(Al,E({timeout:Ae.transitions.duration.shorter},Ye,Yh,{children:_.jsxs(xa,E({},Z9,{children:[Z,P?_.jsx(ys,E({},eH,{ref:re})):null]}))}))}))]})}),ds=zSe;function VSe(e){return Oe("MuiTab",e)}const USe=Pe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),xs=USe,WSe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],HSe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,u={root:["root",a&&i&&"labelIcon",`textColor${ce(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(u,VSe,t)},qSe=H(wn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ce(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>E({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${xs.iconWrapper}`]:E({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${xs.selected}`]:{opacity:1},[`&.${xs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),GSe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:g,selected:p,selectionFollowsFocus:x,textColor:b="inherit",value:y,wrapped:v=!1}=n,w=ue(n,WSe),S=E({},n,{disabled:a,disableFocusRipple:i,selected:p,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:b,wrapped:v}),O=HSe(S),P=l&&f&&m.isValidElement(l)?m.cloneElement(l,{className:ve(O.iconWrapper,l.props.className)}):l,C=A=>{!p&&d&&d(A,y),h&&h(A)},T=A=>{x&&!p&&d&&d(A,y),g&&g(A)};return _.jsxs(qSe,E({focusRipple:!i,className:ve(O.root,o),ref:r,role:"tab","aria-selected":p,disabled:a,onClick:C,onFocus:T,ownerState:S,tabIndex:p?0:-1},w,{children:[u==="top"||u==="start"?_.jsxs(m.Fragment,{children:[P,f]}):_.jsxs(m.Fragment,{children:[f,P]}),c]}))}),KSe=GSe,YSe=m.createContext(),S6=YSe;function XSe(e){return Oe("MuiTable",e)}Pe("MuiTable",["root","stickyHeader"]);const QSe=["className","component","padding","size","stickyHeader"],JSe=e=>{const{classes:t,stickyHeader:r}=e;return Se({root:["root",r&&"stickyHeader"]},XSe,t)},ZSe=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>E({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":E({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),VM="table",eOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTable"}),{className:o,component:a=VM,padding:i="normal",size:s="medium",stickyHeader:l=!1}=n,u=ue(n,QSe),c=E({},n,{component:a,padding:i,size:s,stickyHeader:l}),f=JSe(c),d=m.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return _.jsx(S6.Provider,{value:d,children:_.jsx(ZSe,E({as:a,role:a===VM?null:"table",ref:r,className:ve(f.root,o),ownerState:c},u))})}),O6=eOe,tOe=m.createContext(),N0=tOe;function rOe(e){return Oe("MuiTableBody",e)}Pe("MuiTableBody",["root"]);const nOe=["className","component"],oOe=e=>{const{classes:t}=e;return Se({root:["root"]},rOe,t)},aOe=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),iOe={variant:"body"},UM="tbody",sOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTableBody"}),{className:o,component:a=UM}=n,i=ue(n,nOe),s=E({},n,{component:a}),l=oOe(s);return _.jsx(N0.Provider,{value:iOe,children:_.jsx(aOe,E({className:ve(l.root,o),as:a,ref:r,role:a===UM?null:"rowgroup",ownerState:s},i))})}),P6=sOe;function lOe(e){return Oe("MuiTableCell",e)}const uOe=Pe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),cOe=uOe,fOe=["align","className","component","padding","scope","size","sortDirection","variant"],dOe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ce(n)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(a)}`]};return Se(s,lOe,t)},pOe=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.padding!=="normal"&&t[`padding${ce(r.padding)}`],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>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"?Ch(Ne(e.palette.divider,1),.88):l0(Ne(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${cOe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),hOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ue(n,fOe),h=m.useContext(S6),g=m.useContext(N0),p=g&&g.variant==="head";let x;i?x=i:x=p?"th":"td";let b=l;x==="td"?b=void 0:!b&&p&&(b="col");const y=f||g&&g.variant,v=E({},n,{align:o,component:x,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),w=dOe(v);let S=null;return c&&(S=c==="asc"?"ascending":"descending"),_.jsx(pOe,E({as:x,ref:r,className:ve(w.root,a),"aria-sort":S,scope:b,ownerState:v},d))}),Vr=hOe;function vOe(e){return Oe("MuiTableHead",e)}Pe("MuiTableHead",["root"]);const mOe=["className","component"],gOe=e=>{const{classes:t}=e;return Se({root:["root"]},vOe,t)},yOe=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bOe={variant:"head"},WM="thead",xOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTableHead"}),{className:o,component:a=WM}=n,i=ue(n,mOe),s=E({},n,{component:a}),l=gOe(s);return _.jsx(N0.Provider,{value:bOe,children:_.jsx(yOe,E({as:a,className:ve(l.root,o),ref:r,role:a===WM?null:"rowgroup",ownerState:s},i))})}),C6=xOe;function wOe(e){return Oe("MuiToolbar",e)}Pe("MuiToolbar",["root","gutters","regular","dense"]);const SOe=["className","component","disableGutters","variant"],OOe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Se({root:["root",!r&&"gutters",n]},wOe,t)},POe=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>E({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),COe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,l=ue(n,SOe),u=E({},n,{component:a,disableGutters:i,variant:s}),c=OOe(u);return _.jsx(POe,E({as:a,className:ve(c.root,o),ref:r,ownerState:u},l))}),Eh=COe,OO=zt(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PO=zt(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var HM,qM,GM,KM,YM,XM,QM,JM;const _Oe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],$Oe=m.forwardRef(function(t,r){const{backIconButtonProps:n,count:o,getItemAriaLabel:a,nextIconButtonProps:i,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:f}=t,d=ue(t,_Oe),h=pr(),g=y=>{s(y,0)},p=y=>{s(y,l-1)},x=y=>{s(y,l+1)},b=y=>{s(y,Math.max(0,Math.ceil(o/u)-1))};return _.jsxs("div",E({ref:r},d,{children:[c&&_.jsx(vt,{onClick:g,disabled:l===0,"aria-label":a("first",l),title:a("first",l),children:h.direction==="rtl"?HM||(HM=_.jsx(Dg,{})):qM||(qM=_.jsx(Ig,{}))}),_.jsx(vt,E({onClick:p,disabled:l===0,color:"inherit","aria-label":a("previous",l),title:a("previous",l)},n,{children:h.direction==="rtl"?GM||(GM=_.jsx(PO,{})):KM||(KM=_.jsx(OO,{}))})),_.jsx(vt,E({onClick:x,disabled:o!==-1?l>=Math.ceil(o/u)-1:!1,color:"inherit","aria-label":a("next",l),title:a("next",l)},i,{children:h.direction==="rtl"?YM||(YM=_.jsx(OO,{})):XM||(XM=_.jsx(PO,{}))})),f&&_.jsx(vt,{onClick:b,disabled:l>=Math.ceil(o/u)-1,"aria-label":a("last",l),title:a("last",l),children:h.direction==="rtl"?QM||(QM=_.jsx(Ig,{})):JM||(JM=_.jsx(Dg,{}))})]}))}),EOe=$Oe;function TOe(e){return Oe("MuiTablePagination",e)}const kOe=Pe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Cd=kOe;var ZM;const AOe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],ROe=H(Vr,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),MOe=H(Eh,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>E({[`& .${Cd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Cd.actions}`]:{flexShrink:0,marginLeft:20}})),IOe=H("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),DOe=H("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>E({},e.typography.body2,{flexShrink:0})),jOe=H(w6,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>E({[`& .${Cd.selectIcon}`]:t.selectIcon,[`& .${Cd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Cd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),NOe=H(Ma,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),LOe=H("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>E({},e.typography.body2,{flexShrink:0}));function FOe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function BOe(e){return`Go to ${e} page`}const zOe=e=>{const{classes:t}=e;return Se({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},TOe,t)},VOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=EOe,backIconButtonProps:a,className:i,colSpan:s,component:l=Vr,count:u,getItemAriaLabel:c=BOe,labelDisplayedRows:f=FOe,labelRowsPerPage:d="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:p,page:x,rowsPerPage:b,rowsPerPageOptions:y=[10,25,50,100],SelectProps:v={},showFirstButton:w=!1,showLastButton:S=!1}=n,O=ue(n,AOe),P=n,C=zOe(P),T=v.native?"option":NOe;let A;(l===Vr||l==="td")&&(A=s||1e3);const k=Ha(v.id),I=Ha(v.labelId),D=()=>u===-1?(x+1)*b:b===-1?u:Math.min(u,(x+1)*b);return _.jsx(ROe,E({colSpan:A,ref:r,as:l,ownerState:P,className:ve(C.root,i)},O,{children:_.jsxs(MOe,{className:C.toolbar,children:[_.jsx(IOe,{className:C.spacer}),y.length>1&&_.jsx(DOe,{className:C.selectLabel,id:I,children:d}),y.length>1&&_.jsx(jOe,E({variant:"standard"},!v.variant&&{input:ZM||(ZM=_.jsx(E0,{}))},{value:b,onChange:p,id:k,labelId:I},v,{classes:E({},v.classes,{root:ve(C.input,C.selectRoot,(v.classes||{}).root),select:ve(C.select,(v.classes||{}).select),icon:ve(C.selectIcon,(v.classes||{}).icon)}),children:y.map(M=>m.createElement(T,E({},!pl(T)&&{ownerState:P},{className:C.menuItem,key:M.label?M.label:M,value:M.value?M.value:M}),M.label?M.label:M))})),_.jsx(LOe,{className:C.displayedRows,children:f({from:u===0?0:x*b+1,to:D(),count:u===-1?-1:u,page:x})}),_.jsx(o,{className:C.actions,backIconButtonProps:a,count:u,nextIconButtonProps:h,onPageChange:g,page:x,rowsPerPage:b,showFirstButton:w,showLastButton:S,getItemAriaLabel:c})]})}))}),eI=VOe;function UOe(e){return Oe("MuiTableRow",e)}const WOe=Pe("MuiTableRow",["root","selected","hover","head","footer"]),tI=WOe,HOe=["className","component","hover","selected"],qOe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Se({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},UOe,t)},GOe=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(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}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),rI="tr",KOe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTableRow"}),{className:o,component:a=rI,hover:i=!1,selected:s=!1}=n,l=ue(n,HOe),u=m.useContext(N0),c=E({},n,{component:a,hover:i,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=qOe(c);return _.jsx(GOe,E({as:a,ref:r,className:ve(f.root,o),role:a===rI?null:"row",ownerState:c},l))}),pp=KOe,YOe=zt(_.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function XOe(e){return Oe("MuiTableSortLabel",e)}const QOe=Pe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),gx=QOe,JOe=["active","children","className","direction","hideSortIcon","IconComponent"],ZOe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${ce(r)}`]};return Se(o,XOe,t)},ePe=H(wn,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${gx.icon}`]:{opacity:.5}},[`&.${gx.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${gx.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),tPe=H("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ce(r.direction)}`]]}})(({theme:e,ownerState:t})=>E({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),rPe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:l=!1,IconComponent:u=YOe}=n,c=ue(n,JOe),f=E({},n,{active:o,direction:s,hideSortIcon:l,IconComponent:u}),d=ZOe(f);return _.jsxs(ePe,E({className:ve(d.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[a,l&&!o?null:_.jsx(tPe,{as:u,className:ve(d.icon),ownerState:f})]}))}),nPe=rPe;function oPe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function aPe(e,t,r,n={},o=()=>{}){const{ease:a=oPe,duration:i=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/i);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===r?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const iPe=["onChange"],sPe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lPe(e){const{onChange:t}=e,r=ue(e,iPe),n=m.useRef(),o=m.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return sr(()=>{const i=qc(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=io(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),m.useEffect(()=>{a(),t(n.current)},[t]),_.jsx("div",E({style:sPe,ref:o},r))}function uPe(e){return Oe("MuiTabScrollButton",e)}const cPe=Pe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fPe=cPe,dPe=["className","slots","slotProps","direction","orientation","disabled"],pPe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Se({root:["root",r,n&&"disabled"]},uPe,t)},hPe=H(wn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>E({width:40,flexShrink:0,opacity:.8,[`&.${fPe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),vPe=m.forwardRef(function(t,r){var n,o;const a=xe({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:u}=a,c=ue(a,dPe),d=pr().direction==="rtl",h=E({isRtl:d},a),g=pPe(h),p=(n=s.StartScrollButtonIcon)!=null?n:OO,x=(o=s.EndScrollButtonIcon)!=null?o:PO,b=at({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=at({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return _.jsx(hPe,E({component:"div",className:ve(g.root,i),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?_.jsx(p,E({},b)):_.jsx(x,E({},y))}))}),mPe=vPe;function gPe(e){return Oe("MuiTabs",e)}const yPe=Pe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),yx=yPe,bPe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nI=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,oI=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Pv=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},xPe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},gPe,l)},wPe=H("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${yx.scrollButtons}`]:t.scrollButtons},{[`& .${yx.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>E({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${yx.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),SPe=H("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>E({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),OPe=H("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>E({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),PPe=H("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>E({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),CPe=H(lPe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),aI={},_Pe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTabs"}),o=pr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:p,orientation:x="horizontal",ScrollButtonComponent:b=mPe,scrollButtons:y="auto",selectionFollowsFocus:v,slots:w={},slotProps:S={},TabIndicatorProps:O={},TabScrollButtonProps:P={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:k=!1}=n,I=ue(n,bPe),D=A==="scrollable",M=x==="vertical",R=M?"scrollTop":"scrollLeft",N=M?"top":"left",F=M?"bottom":"right",j=M?"clientHeight":"clientWidth",L=M?"height":"width",B=E({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:g,orientation:x,vertical:M,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:k,fixed:!D,hideScrollbar:D&&!k,scrollableX:D&&!M,scrollableY:D&&M,centered:u&&!D,scrollButtonsHideMobile:!h}),W=xPe(B),X=at({elementType:w.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:B}),J=at({elementType:w.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:B}),[K,ie]=m.useState(!1),[de,ee]=m.useState(aI),[le,Q]=m.useState(!1),[ae,Z]=m.useState(!1),[G,oe]=m.useState(!1),[fe,ge]=m.useState({overflow:"hidden",scrollbarWidth:0}),Ae=new Map,V=m.useRef(null),q=m.useRef(null),U=()=>{const he=V.current;let we;if(he){const $e=he.getBoundingClientRect();we={clientWidth:he.clientWidth,scrollLeft:he.scrollLeft,scrollTop:he.scrollTop,scrollLeftNormalized:Lfe(he,o.direction),scrollWidth:he.scrollWidth,top:$e.top,bottom:$e.bottom,left:$e.left,right:$e.right}}let De;if(he&&T!==!1){const $e=q.current.children;if($e.length>0){const ct=$e[Ae.get(T)];De=ct?ct.getBoundingClientRect():null}}return{tabsMeta:we,tabMeta:De}},ne=Me(()=>{const{tabsMeta:he,tabMeta:we}=U();let De=0,$e;if(M)$e="top",we&&he&&(De=we.top-he.top+he.scrollTop);else if($e=a?"right":"left",we&&he){const qt=a?he.scrollLeftNormalized+he.clientWidth-he.scrollWidth:he.scrollLeft;De=(a?-1:1)*(we[$e]-he[$e]+qt)}const ct={[$e]:De,[L]:we?we[L]:0};if(isNaN(de[$e])||isNaN(de[L]))ee(ct);else{const qt=Math.abs(de[$e]-ct[$e]),jt=Math.abs(de[L]-ct[L]);(qt>=1||jt>=1)&&ee(ct)}}),re=(he,{animation:we=!0}={})=>{we?aPe(R,V.current,he,{duration:o.transitions.duration.standard}):V.current[R]=he},se=he=>{let we=V.current[R];M?we+=he:(we+=he*(a?-1:1),we*=a&&J5()==="reverse"?-1:1),re(we)},me=()=>{const he=V.current[j];let we=0;const De=Array.from(q.current.children);for(let $e=0;$ehe){$e===0&&(we=he);break}we+=ct[j]}return we},Ce=()=>{se(-1*me())},je=()=>{se(me())},He=m.useCallback(he=>{ge({overflow:null,scrollbarWidth:he})},[]),rt=()=>{const he={};he.scrollbarSizeListener=D?_.jsx(CPe,{onChange:He,className:ve(W.scrollableX,W.hideScrollbar)}):null;const De=D&&(y==="auto"&&(le||ae)||y===!0);return he.scrollButtonStart=De?_.jsx(b,E({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:x,direction:a?"right":"left",onClick:Ce,disabled:!le},P,{className:ve(W.scrollButtons,P.className)})):null,he.scrollButtonEnd=De?_.jsx(b,E({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:J},orientation:x,direction:a?"left":"right",onClick:je,disabled:!ae},P,{className:ve(W.scrollButtons,P.className)})):null,he},Ue=Me(he=>{const{tabsMeta:we,tabMeta:De}=U();if(!(!De||!we)){if(De[N]we[F]){const $e=we[R]+(De[F]-we[F]);re($e,{animation:he})}}}),ke=Me(()=>{D&&y!==!1&&oe(!G)});m.useEffect(()=>{const he=qc(()=>{V.current&&ne()}),we=io(V.current);we.addEventListener("resize",he);let De;return typeof ResizeObserver<"u"&&(De=new ResizeObserver(he),Array.from(q.current.children).forEach($e=>{De.observe($e)})),()=>{he.clear(),we.removeEventListener("resize",he),De&&De.disconnect()}},[ne]),m.useEffect(()=>{const he=Array.from(q.current.children),we=he.length;if(typeof IntersectionObserver<"u"&&we>0&&D&&y!==!1){const De=he[0],$e=he[we-1],ct={root:V.current,threshold:.99},qt=Ge=>{Q(!Ge[0].isIntersecting)},jt=new IntersectionObserver(qt,ct);jt.observe(De);const Pr=Ge=>{Z(!Ge[0].isIntersecting)},go=new IntersectionObserver(Pr,ct);return go.observe($e),()=>{jt.disconnect(),go.disconnect()}}},[D,y,G,c==null?void 0:c.length]),m.useEffect(()=>{ie(!0)},[]),m.useEffect(()=>{ne()}),m.useEffect(()=>{Ue(aI!==de)},[Ue,de]),m.useImperativeHandle(l,()=>({updateIndicator:ne,updateScrollButtons:ke}),[ne,ke]);const ht=_.jsx(PPe,E({},O,{className:ve(W.indicator,O.className),ownerState:B,style:E({},de,O.style)}));let Pt=0;const _e=m.Children.map(c,he=>{if(!m.isValidElement(he))return null;const we=he.props.value===void 0?Pt:he.props.value;Ae.set(we,Pt);const De=we===T;return Pt+=1,m.cloneElement(he,E({fullWidth:A==="fullWidth",indicator:De&&!K&&ht,selected:De,selectionFollowsFocus:v,onChange:p,textColor:C,value:we},Pt===1&&T===!1&&!he.props.tabIndex?{tabIndex:0}:{}))}),Y=he=>{const we=q.current,De=Wt(we).activeElement;if(De.getAttribute("role")!=="tab")return;let ct=x==="horizontal"?"ArrowLeft":"ArrowUp",qt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(ct="ArrowRight",qt="ArrowLeft"),he.key){case ct:he.preventDefault(),Pv(we,De,oI);break;case qt:he.preventDefault(),Pv(we,De,nI);break;case"Home":he.preventDefault(),Pv(we,null,nI);break;case"End":he.preventDefault(),Pv(we,null,oI);break}},te=rt();return _.jsxs(wPe,E({className:ve(W.root,f),ownerState:B,ref:r,as:d},I,{children:[te.scrollButtonStart,te.scrollbarSizeListener,_.jsxs(SPe,{className:W.scroller,ownerState:B,style:{overflow:fe.overflow,[M?`margin${a?"Left":"Right"}`:"marginBottom"]:k?void 0:-fe.scrollbarWidth},ref:V,children:[_.jsx(OPe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:W.flexContainer,ownerState:B,onKeyDown:Y,ref:q,role:"tablist",children:_e}),K&&ht]}),te.scrollButtonEnd]}))}),$Pe=_Pe;function EPe(e){return Oe("MuiTextField",e)}Pe("MuiTextField",["root"]);const TPe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],kPe={standard:i6,filled:r6,outlined:y6},APe=e=>{const{classes:t}=e;return Se({root:["root"]},EPe,t)},RPe=H(t1e,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MPe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:x,inputProps:b,InputProps:y,inputRef:v,label:w,maxRows:S,minRows:O,multiline:P=!1,name:C,onBlur:T,onChange:A,onFocus:k,placeholder:I,required:D=!1,rows:M,select:R=!1,SelectProps:N,type:F,value:j,variant:L="outlined"}=n,B=ue(n,TPe),W=E({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:P,required:D,select:R,variant:L}),X=APe(W),J={};L==="outlined"&&(x&&typeof x.shrink<"u"&&(J.notched=x.shrink),J.label=w),R&&((!N||!N.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const K=Ha(p),ie=g&&K?`${K}-helper-text`:void 0,de=w&&K?`${K}-label`:void 0,ee=kPe[L],le=_.jsx(ee,E({"aria-describedby":ie,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:h,multiline:P,name:C,rows:M,maxRows:S,minRows:O,type:F,value:j,id:K,inputRef:v,onBlur:T,onChange:A,onFocus:k,placeholder:I,inputProps:b},J,y));return _.jsxs(RPe,E({className:ve(X.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:D,color:l,variant:L,ownerState:W},B,{children:[w!=null&&w!==""&&_.jsx(L1e,E({htmlFor:K,id:de},x,{children:w})),R?_.jsx(w6,E({"aria-describedby":ie,id:K,labelId:de,value:j,input:le},N,{children:i})):le,g&&_.jsx(u1e,E({id:ie},d,{children:g}))]}))}),L0=MPe;function IPe(e){return Oe("MuiToggleButton",e)}const DPe=Pe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),iI=DPe,jPe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],NPe=e=>{const{classes:t,fullWidth:r,selected:n,disabled:o,size:a,color:i}=e,s={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ce(a)}`,i]};return Se(s,IPe,t)},LPe=H(wn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${ce(r.size)}`]]}})(({theme:e,ownerState:t})=>{let r=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,n;return e.vars&&(r=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,n=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),E({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${iI.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${iI.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Ne(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Ne(r,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),FPe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u=!1,onChange:c,onClick:f,selected:d,size:h="medium",value:g}=n,p=ue(n,jPe),x=E({},n,{color:i,disabled:s,disableFocusRipple:l,fullWidth:u,size:h}),b=NPe(x),y=v=>{f&&(f(v,g),v.defaultPrevented)||c&&c(v,g)};return _.jsx(LPe,E({className:ve(b.root,a),disabled:s,focusRipple:!l,ref:r,onClick:y,onChange:c,value:g,ownerState:x,"aria-pressed":d},p,{children:o}))}),Yo=FPe;function BPe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}function zPe(e){return Oe("MuiToggleButtonGroup",e)}const VPe=Pe("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),Oa=VPe,UPe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],WPe=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:o}=e,a={root:["root",r==="vertical"&&"vertical",n&&"fullWidth"],grouped:["grouped",`grouped${ce(r)}`,o&&"disabled"]};return Se(a,zPe,t)},HPe=H("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Oa.grouped}`]:t.grouped},{[`& .${Oa.grouped}`]:t[`grouped${ce(r.orientation)}`]},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>E({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Oa.grouped}`]:E({},e.orientation==="horizontal"?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${Oa.selected} + .${Oa.grouped}.${Oa.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${Oa.selected} + .${Oa.grouped}.${Oa.selected}`]:{borderTop:0,marginTop:0}})})),qPe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:i="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:d="medium",value:h}=n,g=ue(n,UPe),p=E({},n,{disabled:s,fullWidth:u,orientation:f,size:d}),x=WPe(p),b=(v,w)=>{if(!c)return;const S=h&&h.indexOf(w);let O;h&&S>=0?(O=h.slice(),O.splice(S,1)):O=h?h.concat(w):[w],c(v,O)},y=(v,w)=>{c&&c(v,h===w?null:w)};return _.jsx(HPe,E({role:"group",className:ve(x.root,a),ref:r,ownerState:p},g,{children:m.Children.map(o,v=>m.isValidElement(v)?m.cloneElement(v,{className:ve(x.grouped,v.props.className),onChange:l?y:b,selected:v.props.selected===void 0?BPe(v.props.value,h):v.props.selected,size:v.props.size||d,fullWidth:u,color:v.props.color||i,disabled:v.props.disabled||s}):null)}))}),_d=qPe,GPe=["getTrigger","target"];function KPe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const YPe=typeof window<"u"?window:null;function _6(e={}){const{getTrigger:t=KPe,target:r=YPe}=e,n=ue(e,GPe),o=m.useRef(),[a,i]=m.useState(()=>t(o,n));return m.useEffect(()=>{const s=()=>{i(t(o,E({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var wE={},$6={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($6);var dt=$6.exports,bx={};const XPe=HL(rve);var sI;function pt(){return sI||(sI=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XPe}(bx)),bx}var QPe=dt;Object.defineProperty(wE,"__esModule",{value:!0});var F0=wE.default=void 0,JPe=QPe(pt()),ZPe=_,eCe=(0,JPe.default)((0,ZPe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");F0=wE.default=eCe;var $d=globalThis&&globalThis.__assign||function(){return $d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?m.createElement(sEe,null):null,t&&m.createElement(YCe,null),m.createElement(I6,null))},JCe=m.createElement(QCe,null);IE.propTypes={alwaysOn:$.bool,children:$.node,className:$.string,color:$.oneOf(["default","inherit","primary","secondary","transparent"]),container:M$,open:$.bool,toolbar:$.element,userMenu:$.oneOfType([$.element,$.bool])};var ZCe=m.createElement(EE,null),Es="RaAppBar",Vs={appBar:"".concat(Es,"-appBar"),toolbar:"".concat(Es,"-toolbar"),menuButton:"".concat(Es,"-menuButton"),menuButtonIconClosed:"".concat(Es,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Es,"-menuButtonIconOpen"),title:"".concat(Es,"-title")},e_e=H(nme,{name:Es,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Vs.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Vs.menuButton)]={marginRight:"0.2em"},t["& .".concat(Vs.title)]={},t}),DE={},t_e=dt;Object.defineProperty(DE,"__esModule",{value:!0});var U6=DE.default=void 0,r_e=t_e(pt()),n_e=_,o_e=(0,r_e.default)((0,n_e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");U6=DE.default=o_e;var jE={},a_e=dt;Object.defineProperty(jE,"__esModule",{value:!0});var W6=jE.default=void 0,i_e=a_e(pt()),s_e=_,l_e=(0,i_e.default)((0,s_e.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");W6=jE.default=l_e;var Td=globalThis&&globalThis.__assign||function(){return Td=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Tc.createPortal(m.createElement(Q_e,jO({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},z0=$.oneOfType([$.string,$.element]);Ah.propTypes={defaultTitle:$.string,className:$.string,record:$.any,title:z0};var Z_e=function(e){var t=rn().pathname,r=m.useRef(t);m.useEffect(function(){t!==r.current&&e()},[t,e])},NO=globalThis&&globalThis.__assign||function(){return NO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},JO=globalThis&&globalThis.__assign||function(){return JO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=hTe&&(a=pTe,i=!1,t=new lTe(t));e:for(;++o0&&w.length>0&&w.every(function(S){return g.includes(S)}),onChange:v})),m.Children.map(t,function(S,O){return m.isValidElement(S)?m.createElement(rTe,{className:qe(Fe.headerCell,"column-".concat(S.props.source)),sort:f,field:S,isSorting:f.field===(S.props.sortBy||S.props.source),key:S.props.source||O,resource:l,updateSort:y}):null})))};iT.propTypes={children:$.node,className:$.string,sort:$.exact({field:$.string,order:$.oneOf(["ASC","DESC"])}),data:$.arrayOf($.any),hasExpand:$.bool,hasBulkActions:$.bool,isRowSelectable:$.func,isRowExpandable:$.func,onSelect:$.func,onToggleItem:$.func,resource:$.string,selectedIds:$.arrayOf($.any),setSort:$.func};iT.displayName="DatagridHeader";var CTe=function(e){var t=e.children,r=e.value;return z.createElement(EV.Provider,{value:r},t)};const _Te=CTe;var sT={},$Te=dt;Object.defineProperty(sT,"__esModule",{value:!0});var DV=sT.default=void 0,ETe=$Te(pt()),TTe=_,kTe=(0,ETe.default)((0,TTe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");DV=sT.default=kTe;var sP=globalThis&&globalThis.__assign||function(){return sP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1] element instead.")})},[r]);var c=function(){var d=a.getValues();return r.filter(function(h){var g=Qe(d,h.props.source);return h.props.alwaysOn||l[h.props.source]||g!==""&&typeof g<"u"})},f=m.useCallback(function(d){return u(d.currentTarget.dataset.key)},[u]);return m.createElement(j5,{prefix:"resources.".concat(o,".fields")},m.createElement(pRe,Ui({className:t},cRe(n),{onSubmit:uRe}),c().map(function(d){return m.createElement(zV,{key:d.props.source,filterElement:d,handleHide:f,resource:o,className:Jg.filterFormInput})}),m.createElement("div",{className:Jg.clearFix})))},uRe=function(e){return e.preventDefault(),!1};VV.propTypes={resource:$.string,filters:$.arrayOf($.node).isRequired,displayedFilters:$.object,hideFilter:$.func,initialValues:$.object,className:$.string};var cRe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=lT(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},fRe=function(e,t){return Ui(Ui({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return r$(Ui({},r),n.props.source,n.props.defaultValue)},{})),e)},dRe=function(){},uP="RaFilterForm",Jg={clearFix:"".concat(uP,"-clearFix"),filterFormInput:"".concat(uP,"-filterFormInput")},pRe=H("form",{name:uP,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Jg.clearFix)]={clear:"right"},t["& .".concat(Jg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),hRe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=UV(e,o,t),n},(r=BV(t))!==null&&r!==void 0?r:{})},UV=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return Qe(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=UV(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return s===""||(o[a]=s),o},{});return Object.keys(n).length?n:""}return Qe(r,t,"")},uT={},vRe=dt;Object.defineProperty(uT,"__esModule",{value:!0});var WV=uT.default=void 0,mRe=vRe(pt()),gRe=_,yRe=(0,mRe.default)((0,gRe.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");WV=uT.default=yRe;var HV=m.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Qt(e),i=m.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return m.createElement(Ma,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},m.createElement(ap,{label:r.props.label,source:r.props.source,resource:a}))});HV.propTypes={filter:$.element.isRequired,onShow:$.func.isRequired,resource:$.string,autoFocus:$.bool};var cT=function(e){return ho("".concat(e,".savedQueries"),[])},fT=function(e){return Array.isArray(e)?e.filter(function(t){return bRe(t)}):[]},bRe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},xRe=function(e){var t=e.open,r=e.onClose,n=We(),o=St(),a=o.resource,i=o.filterValues,s=o.displayedFilters,l=o.sort,u=o.perPage,c=cT(a),f=c[0],d=c[1],h=m.useState(""),g=h[0],p=h[1],x=function(v){p(v.target.value)},b=function(v){v.preventDefault(),y()},y=function(){var v={label:g,value:{filter:i,sort:l,perPage:u,displayedFilters:s}},w=fT(f);d(w.concat(v)),p(""),r()};return m.createElement(R0,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},m.createElement(gE,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),m.createElement(I0,null,m.createElement("form",{onSubmit:b},m.createElement(L0,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:x}))),m.createElement(M0,null,m.createElement(br,{onClick:r},n("ra.action.cancel")),m.createElement(br,{onClick:y,color:"primary"},n("ra.action.save"))))},_I=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var T=a.filter(function(J){return!J.props.alwaysOn&&!d[J.props.source]&&typeof Qe(h,J.props.source)>"u"}),A=m.useCallback(function(J){J.preventDefault(),P(!0),C.current=J.currentTarget},[C,P]),k=m.useCallback(function(){P(!1)},[P]),I=m.useCallback(function(J){var K=J.source,ie=J.defaultValue;x(K,ie===""?void 0:ie),setTimeout(function(){var de=document.querySelector("input[name='".concat(K,"']"));de&&de.focus()},50),P(!1)},[x,P]),D=m.useState(!1),M=D[0],R=D[1],N=function(){R(!1)},F=function(){P(!1),R(!0)},j=m.useState(!1),L=j[0],B=j[1],W=function(){B(!1)},X=function(){P(!1),B(!0)};return T.length===0&&v.length===0&&!y?null:m.createElement(PRe,cP({className:r},SRe(o)),m.createElement(Wr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:A},m.createElement(WV,null)),m.createElement(j0,{open:O,anchorEl:C.current,onClose:k},T.map(function(J,K){return m.createElement(HV,{key:J.props.source,filter:J,resource:i,onShow:I,autoFocus:K===0})}),v.map(function(J,K){return Dn(J.value,{filter:h,sort:b,perPage:g,displayedFilters:d})?m.createElement(Ma,{onClick:X,key:K},s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:J.label})):m.createElement(Ma,{onClick:function(){u({search:Xs.stringify({filter:JSON.stringify(J.value.filter),sort:J.value.sort.field,order:J.value.sort.order,page:1,perPage:J.value.perPage,displayedFilters:JSON.stringify(J.value.displayedFilters)})}),P(!1)},key:K},J.label)}),y&&!w&&!n&&m.createElement(Ma,{onClick:F},s("ra.saved_queries.new_label",{_:"Save current query..."})),y&&m.createElement(Ma,{onClick:function(){return p({},{},!1)}},s("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&m.createElement(m.Fragment,null,m.createElement(xRe,{open:M,onClose:N}),m.createElement(wRe,{open:L,onClose:W})))},SRe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=qV(e,["displayedFilters","filterValues","showFilter"]);return t};GV.propTypes={resource:$.string,filters:$.arrayOf($.node),displayedFilters:$.object,filterValues:$.object,showFilter:$.func,className:$.string};var ORe="RaFilterButton",PRe=H("div",{name:ORe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),dT={},CRe=dt;Object.defineProperty(dT,"__esModule",{value:!0});var Zg=dT.default=void 0,_Re=CRe(pt()),$Re=_,ERe=(0,_Re.default)((0,$Re.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Zg=dT.default=ERe;var fP=globalThis&&globalThis.__assign||function(){return fP=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb-1)throw new Error(p("ra.navigation.page_out_of_boundaries",{page:C+1}));h(C+1)},[b,h,p]),v=m.useCallback(function(P){g(P.target.value)},[g]),w=m.useCallback(function(P){var C=P.from,T=P.to,A=P.count;return A===-1&&u?p("ra.navigation.partial_page_range_info",{offsetBegin:C,offsetEnd:T,_:"%{from}-%{to} of more than %{to}"}):p("ra.navigation.page_range_info",{offsetBegin:C,offsetEnd:T,total:A===-1?T:A,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[p,u]),S=m.useCallback(function(P){return p("ra.navigation.".concat(P),{_:"Go to ".concat(P," page")})},[p]);if(l)return m.createElement(Eh,{variant:"dense"});if(d===0||c<1||d!=null&&c>b)return a!=null,null;if(x)return m.createElement(eI,ey({count:d??-1,rowsPerPage:f,page:c-1,onPageChange:y,rowsPerPageOptions:MRe,component:"span",labelDisplayedRows:w},op(i)));var O=n||(!l&&d!=null?YV:void 0);return m.createElement(eI,ey({count:d??-1,rowsPerPage:f,page:c-1,onPageChange:y,onRowsPerPageChange:v,ActionsComponent:O,nextIconButtonProps:{disabled:!u},component:"span",labelRowsPerPage:p("ra.navigation.page_rows_per_page"),labelDisplayedRows:w,getItemAriaLabel:S,rowsPerPageOptions:r},op(i)))});XV.propTypes={actions:M$,limit:$.element,rowsPerPageOptions:$.arrayOf($.number)};var RRe=[5,10,25,50],MRe=[],pT={},IRe=dt;Object.defineProperty(pT,"__esModule",{value:!0});var dP=pT.default=void 0,DRe=IRe(pt()),jRe=_,NRe=(0,DRe.default)((0,jRe.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");dP=pT.default=NRe;var ty=globalThis&&globalThis.__assign||function(){return ty=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return m.createElement(VRe,{onSubmit:u,mode:"onChange",noValidate:!0,className:r},m.createElement(vE,{className:Ru.content},m.createElement(vl,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:uO(),fullWidth:!0}),m.createElement(vl,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:uO(),fullWidth:!0}),m.createElement(br,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Ru.button},o?m.createElement(A0,{className:Ru.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},vm="RaLoginForm",Ru={content:"".concat(vm,"-content"),button:"".concat(vm,"-button"),icon:"".concat(vm,"-icon")},VRe=H(H5,{name:vm,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Ru.content)]={width:300},t["& .".concat(Ru.button)]={marginTop:r.spacing(2)},t["& .".concat(Ru.icon)]={margin:r.spacing(.3)},t});QV.propTypes={redirectTo:$.string};var pP=globalThis&&globalThis.__assign||function(){return pP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&x?qRe:r;return!o||!p&&u?null:m.createElement(KRe,vP({className:qe("show-page",a)},GRe(f)),m.createElement(Ah,{title:c,defaultTitle:g,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,m.createElement("div",{className:qe(Iu.main,(t={},t[Iu.noActions]=!b,t))},m.createElement(s,{className:Iu.card},o),n))};rU.propTypes={actions:$.oneOfType([$.element,$.bool]),children:$.node,className:$.string,emptyWhileLoading:$.bool,title:$.any};var GRe=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=tU(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},gm="RaShow",Iu={main:"".concat(gm,"-main"),noActions:"".concat(gm,"-noActions"),card:"".concat(gm,"-card")},KRe=H("div",{name:gm,overridesResolver:function(e,t){return t.root}})((Rf={},Rf["& .".concat(Iu.main)]={display:"flex"},Rf["& .".concat(Iu.noActions)]={marginTop:"1em"},Rf["& .".concat(Iu.card)]={flex:"1 1 auto"},Rf)),mP=globalThis&&globalThis.__assign||function(){return mP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};aU.propTypes={children:$.node};var Rd=globalThis&&globalThis.__assign||function(){return Rd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&AI.call(t.callee)==="[object Function]"),n},Sx,RI;function R2e(){if(RI)return Sx;RI=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=vU,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(d){var h=d.constructor;return h&&h.prototype===d},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!u["$"+d]&&t.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{l(window[d])}catch{return!0}}catch{return!0}return!1}(),f=function(d){if(typeof window>"u"||!c)return l(d);try{return l(d)}catch{return!1}};e=function(h){var g=h!==null&&typeof h=="object",p=r.call(h)==="[object Function]",x=n(h),b=g&&r.call(h)==="[object String]",y=[];if(!g&&!p&&!x)throw new TypeError("Object.keys called on a non-object");var v=i&&p;if(b&&h.length>0&&!t.call(h,0))for(var w=0;w0)for(var S=0;S"u"||!mr?Xe:mr(Uint8Array),el={"%AggregateError%":typeof AggregateError>"u"?Xe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Xe:ArrayBuffer,"%ArrayIteratorPrototype%":Vl&&mr?mr([][Symbol.iterator]()):Xe,"%AsyncFromSyncIteratorPrototype%":Xe,"%AsyncFunction%":Zl,"%AsyncGenerator%":Zl,"%AsyncGeneratorFunction%":Zl,"%AsyncIteratorPrototype%":Zl,"%Atomics%":typeof Atomics>"u"?Xe:Atomics,"%BigInt%":typeof BigInt>"u"?Xe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Xe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Xe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Xe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Xe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Xe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Xe:FinalizationRegistry,"%Function%":bU,"%GeneratorFunction%":Zl,"%Int8Array%":typeof Int8Array>"u"?Xe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Xe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Xe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vl&&mr?mr(mr([][Symbol.iterator]())):Xe,"%JSON%":typeof JSON=="object"?JSON:Xe,"%Map%":typeof Map>"u"?Xe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Vl||!mr?Xe:mr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Xe:Promise,"%Proxy%":typeof Proxy>"u"?Xe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Xe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Xe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Vl||!mr?Xe:mr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Xe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vl&&mr?mr(""[Symbol.iterator]()):Xe,"%Symbol%":Vl?Symbol:Xe,"%SyntaxError%":lc,"%ThrowTypeError%":H2e,"%TypedArray%":G2e,"%TypeError%":Nu,"%Uint8Array%":typeof Uint8Array>"u"?Xe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Xe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Xe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Xe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Xe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Xe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Xe:WeakSet};if(mr)try{null.error}catch(e){var K2e=mr(mr(e));el["%Error.prototype%"]=K2e}var Y2e=function e(t){var r;if(t==="%AsyncFunction%")r=Px("async function () {}");else if(t==="%GeneratorFunction%")r=Px("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Px("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&mr&&(r=mr(o.prototype))}return el[t]=r,r},NI={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Rh=xT,ay=yU,X2e=Rh.call(Function.call,Array.prototype.concat),Q2e=Rh.call(Function.apply,Array.prototype.splice),LI=Rh.call(Function.call,String.prototype.replace),iy=Rh.call(Function.call,String.prototype.slice),J2e=Rh.call(Function.call,RegExp.prototype.exec),Z2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eMe=/\\(\\)?/g,tMe=function(t){var r=iy(t,0,1),n=iy(t,-1);if(r==="%"&&n!=="%")throw new lc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lc("invalid intrinsic syntax, expected opening `%`");var o=[];return LI(t,Z2e,function(a,i,s,l){o[o.length]=s?LI(l,eMe,"$1"):i||a}),o},rMe=function(t,r){var n=t,o;if(ay(NI,n)&&(o=NI[n],n="%"+o[0]+"%"),ay(el,n)){var a=el[n];if(a===Zl&&(a=Y2e(n)),typeof a>"u"&&!r)throw new Nu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new lc("intrinsic "+t+" does not exist!")},Sr=function(t,r){if(typeof t!="string"||t.length===0)throw new Nu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nu('"allowMissing" argument must be a boolean');if(J2e(/^%?[^%]*%?$/,t)===null)throw new lc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=tMe(t),o=n.length>0?n[0]:"",a=rMe("%"+o+"%",r),i=a.name,s=a.value,l=!1,u=a.alias;u&&(o=u[0],Q2e(n,X2e([0,1],u)));for(var c=1,f=!0;c=n.length){var p=Zs(s,d);f=!!p,f&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[d]}else f=ay(s,d),s=s[d];f&&!l&&(el[i]=s)}}return s},nMe=Sr,_P=nMe("%Object.defineProperty%",!0),$P=function(){if(_P)try{return _P({},"a",{value:1}),!0}catch{return!1}return!1};$P.hasArrayLengthDefineBug=function(){if(!$P())return null;try{return _P([],"length",{value:1}).length!==1}catch{return!0}};var xU=$P,_x,FI;function oMe(){if(FI)return _x;FI=1;var e=Sr,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return _x=t,_x}var aMe=xU(),wT=Sr,BI=aMe&&wT("%Object.defineProperty%",!0),iMe=wT("%SyntaxError%"),Ul=wT("%TypeError%"),zI=oMe(),sMe=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ul("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ul("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ul("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ul("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ul("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ul("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!zI&&zI(t,r);if(BI)BI(t,r,{configurable:i===null&&l?l.configurable:!i,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:a===null&&l?l.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new iMe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},lMe=D2e,uMe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",cMe=Object.prototype.toString,fMe=Array.prototype.concat,VI=sMe,dMe=function(e){return typeof e=="function"&&cMe.call(e)==="[object Function]"},wU=xU(),pMe=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!dMe(n)||!n())return}wU?VI(e,t,r,!0):VI(e,t,r)},SU=function(e,t){var r=arguments.length>2?arguments[2]:{},n=lMe(t);uMe&&(n=fMe.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o-1?CU(n):n},vMe=Sr,mMe=vMe("%TypeError%"),gMe=function(t,r){if(t==null)throw new mMe(r||"Cannot call method on "+t);return t},Mh=gMe,$x,UI;function yMe(){if(UI)return $x;UI=1;var e=Sr,t=e("%Array%"),r=!t.isArray&&ai("Object.prototype.toString");return $x=t.isArray||function(o){return r(o)==="[object Array]"},$x}var Ex,WI;function bMe(){return WI||(WI=1,Ex=yMe()),Ex}var Tx,HI;function xMe(){if(HI)return Tx;HI=1;var e=Sr,t=ai,r=e("%TypeError%"),n=bMe(),o=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Tx=function(i,s){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return o(i,s,l)},Tx}const wMe={},SMe=Object.freeze(Object.defineProperty({__proto__:null,default:wMe},Symbol.toStringTag,{value:"Module"})),OMe=HL(SMe);var kx,qI;function PMe(){if(qI)return kx;qI=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,f=c?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype,h=d?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,p=Object.prototype.toString,x=Function.prototype.toString,b=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,O=RegExp.prototype.test,P=Array.prototype.concat,C=Array.prototype.join,T=Array.prototype.slice,A=Math.floor,k=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,M=typeof Symbol=="function"&&typeof Symbol.iterator=="object",R=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Y){return Y.__proto__}:null);function j(Y,te){if(Y===1/0||Y===-1/0||Y!==Y||Y&&Y>-1e3&&Y<1e3||O.call(/e/,te))return te;var he=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Y=="number"){var we=Y<0?-A(-Y):A(Y);if(we!==Y){var De=String(we),$e=y.call(te,De.length+1);return v.call(De,he,"$&_")+"."+v.call(v.call($e,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(te,he,"$&_")}var L=OMe,B=L.custom,W=Z(B)?B:null;kx=function Y(te,he,we,De){var $e=he||{};if(fe($e,"quoteStyle")&&$e.quoteStyle!=="single"&&$e.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fe($e,"maxStringLength")&&(typeof $e.maxStringLength=="number"?$e.maxStringLength<0&&$e.maxStringLength!==1/0:$e.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ct=fe($e,"customInspect")?$e.customInspect:!0;if(typeof ct!="boolean"&&ct!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fe($e,"indent")&&$e.indent!==null&&$e.indent!==" "&&!(parseInt($e.indent,10)===$e.indent&&$e.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fe($e,"numericSeparator")&&typeof $e.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var qt=$e.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return Ce(te,$e);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var jt=String(te);return qt?j(te,jt):jt}if(typeof te=="bigint"){var Pr=String(te)+"n";return qt?j(te,Pr):Pr}var go=typeof $e.depth>"u"?5:$e.depth;if(typeof we>"u"&&(we=0),we>=go&&go>0&&typeof te=="object")return K(te)?"[Array]":"[Object]";var Ge=ht($e,we);if(typeof De>"u")De=[];else if(V(De,te)>=0)return"[Circular]";function At(xa,ys,y1){if(ys&&(De=T.call(De),De.push(ys)),y1){var Yh={depth:$e.depth};return fe($e,"quoteStyle")&&(Yh.quoteStyle=$e.quoteStyle),Y(xa,Yh,we+1,De)}return Y(xa,$e,we+1,De)}if(typeof te=="function"&&!de(te)){var yo=Ae(te),nn=_e(te,At);return"[Function"+(yo?": "+yo:" (anonymous)")+"]"+(nn.length>0?" { "+C.call(nn,", ")+" }":"")}if(Z(te)){var qh=M?v.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(te);return typeof te=="object"&&!M?He(qh):qh}if(me(te)){for(var gs="<"+S.call(String(te.nodeName)),ff=te.attributes||[],li=0;li",gs}if(K(te)){if(te.length===0)return"[]";var df=_e(te,At);return Ge&&!ke(df)?"["+Pt(df,Ge)+"]":"[ "+C.call(df,", ")+" ]"}if(ee(te)){var ga=_e(te,At);return!("cause"in Error.prototype)&&"cause"in te&&!N.call(te,"cause")?"{ ["+String(te)+"] "+C.call(P.call("[cause]: "+At(te.cause),ga),", ")+" }":ga.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+C.call(ga,", ")+" }"}if(typeof te=="object"&&ct){if(W&&typeof te[W]=="function"&&L)return L(te,{depth:go-we});if(ct!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(q(te)){var Tl=[];return n&&n.call(te,function(xa,ys){Tl.push(At(ys,te,!0)+" => "+At(xa,te))}),Ue("Map",r.call(te),Tl,Ge)}if(re(te)){var on=[];return s&&s.call(te,function(xa){on.push(At(xa,te))}),Ue("Set",i.call(te),on,Ge)}if(U(te))return rt("WeakMap");if(se(te))return rt("WeakSet");if(ne(te))return rt("WeakRef");if(Q(te))return He(At(Number(te)));if(G(te))return He(At(k.call(te)));if(ae(te))return He(g.call(te));if(le(te))return He(At(String(te)));if(!ie(te)&&!de(te)){var ya=_e(te,At),Gh=F?F(te)===Object.prototype:te instanceof Object||te.constructor===Object,ba=te instanceof Object?"":"null prototype",kl=!Gh&&R&&Object(te)===te&&R in te?y.call(ge(te),8,-1):ba?"Object":"",Kh=Gh||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",Al=Kh+(kl||ba?"["+C.call(P.call([],kl||[],ba||[]),": ")+"] ":"");return ya.length===0?Al+"{}":Ge?Al+"{"+Pt(ya,Ge)+"}":Al+"{ "+C.call(ya,", ")+" }"}return String(te)};function X(Y,te,he){var we=(he.quoteStyle||te)==="double"?'"':"'";return we+Y+we}function J(Y){return v.call(String(Y),/"/g,""")}function K(Y){return ge(Y)==="[object Array]"&&(!R||!(typeof Y=="object"&&R in Y))}function ie(Y){return ge(Y)==="[object Date]"&&(!R||!(typeof Y=="object"&&R in Y))}function de(Y){return ge(Y)==="[object RegExp]"&&(!R||!(typeof Y=="object"&&R in Y))}function ee(Y){return ge(Y)==="[object Error]"&&(!R||!(typeof Y=="object"&&R in Y))}function le(Y){return ge(Y)==="[object String]"&&(!R||!(typeof Y=="object"&&R in Y))}function Q(Y){return ge(Y)==="[object Number]"&&(!R||!(typeof Y=="object"&&R in Y))}function ae(Y){return ge(Y)==="[object Boolean]"&&(!R||!(typeof Y=="object"&&R in Y))}function Z(Y){if(M)return Y&&typeof Y=="object"&&Y instanceof Symbol;if(typeof Y=="symbol")return!0;if(!Y||typeof Y!="object"||!D)return!1;try{return D.call(Y),!0}catch{}return!1}function G(Y){if(!Y||typeof Y!="object"||!k)return!1;try{return k.call(Y),!0}catch{}return!1}var oe=Object.prototype.hasOwnProperty||function(Y){return Y in this};function fe(Y,te){return oe.call(Y,te)}function ge(Y){return p.call(Y)}function Ae(Y){if(Y.name)return Y.name;var te=b.call(x.call(Y),/^function\s*([\w$]+)/);return te?te[1]:null}function V(Y,te){if(Y.indexOf)return Y.indexOf(te);for(var he=0,we=Y.length;hete.maxStringLength){var he=Y.length-te.maxStringLength,we="... "+he+" more character"+(he>1?"s":"");return Ce(y.call(Y,0,te.maxStringLength),te)+we}var De=v.call(v.call(Y,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,je);return X(De,"single",te)}function je(Y){var te=Y.charCodeAt(0),he={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return he?"\\"+he:"\\x"+(te<16?"0":"")+w.call(te.toString(16))}function He(Y){return"Object("+Y+")"}function rt(Y){return Y+" { ? }"}function Ue(Y,te,he,we){var De=we?Pt(he,we):C.call(he,", ");return Y+" ("+te+") {"+De+"}"}function ke(Y){for(var te=0;te=0)return!1;return!0}function ht(Y,te){var he;if(Y.indent===" ")he=" ";else if(typeof Y.indent=="number"&&Y.indent>0)he=C.call(Array(Y.indent+1)," ");else return null;return{base:he,prev:C.call(Array(te+1),he)}}function Pt(Y,te){if(Y.length===0)return"";var he=` +`+te.prev+te.base;return he+C.call(Y,","+he)+` +`+te.prev}function _e(Y,te){var he=K(Y),we=[];if(he){we.length=Y.length;for(var De=0;De"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"}),Rx}var Mx,YI;function Ih(){if(YI)return Mx;YI=1;var e=CMe();return Mx=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":e(r)},Mx}var Ix,XI;function $U(){if(XI)return Ix;XI=1;var e=Sr,t=e("%TypeError%"),r=PMe(),n=_U(),o=Ih();return Ix=function(i,s){if(o(i)!=="Object")throw new t("Assertion failed: Type(O) is not Object");if(!n(s))throw new t("Assertion failed: IsPropertyKey(P) is not true, got "+r(s));return i[s]},Ix}var Dx,QI;function _Me(){if(QI)return Dx;QI=1;var e=Sr,t=e("%TypeError%"),r=_U(),n=Ih();return Dx=function(a,i){if(n(a)!=="Object")throw new t("Assertion failed: `O` must be an Object");if(!r(i))throw new t("Assertion failed: `P` must be a Property Key");return i in a},Dx}var jx,JI;function EU(){if(JI)return jx;JI=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(y){y!==n&&(t=null)}else t=null;var o=/^\s*class\b/,a=function(v){try{var w=e.call(v);return o.test(w)}catch{return!1}},i=function(v){try{return a(v)?!1:(e.call(v),!0)}catch{return!1}},s=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",h="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,p=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var b=document.all;s.call(b)===s.call(document.all)&&(x=function(v){if((p||!v)&&(typeof v>"u"||typeof v=="object"))try{var w=s.call(v);return(w===f||w===d||w===h||w===l)&&v("")==null}catch{}return!1})}return jx=t?function(v){if(x(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(w){if(w!==n)return!1}return!a(v)&&i(v)}:function(v){if(x(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(g)return i(v);if(a(v))return!1;var w=s.call(v);return w!==u&&w!==c&&!/^\[object HTML/.test(w)?!1:i(v)},jx}var Nx,ZI;function $Me(){return ZI||(ZI=1,Nx=EU()),Nx}var Lx,eD;function EMe(){return eD||(eD=1,Lx=Number.MAX_SAFE_INTEGER||9007199254740991),Lx}var Fx,tD;function TMe(){return tD||(tD=1,Fx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Fx}var Bx,rD;function kMe(){return rD||(rD=1,Bx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Bx}var zx,nD;function ST(){if(nD)return zx;nD=1;var e=mU;return zx=function(){return e()&&!!Symbol.toStringTag},zx}var Vx,oD;function AMe(){if(oD)return Vx;oD=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=ST()();return Vx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},Vx}var $v={exports:{}},aD;function RMe(){if(aD)return $v.exports;aD=1;var e=Object.prototype.toString,t=gU();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};$v.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else $v.exports=function(i){return!1};return $v.exports}var Ux,iD;function MMe(){if(iD)return Ux;iD=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=kMe(),r=EU(),n=AMe(),o=RMe(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],f,d,h;for(h=0;h1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=i(l,Symbol.toPrimitive):o(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var f=c.call(l,u);if(t(f))return f;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||o(l))&&(u="string"),a(l,u==="default"?"number":u)},Ux}var Wx,sD;function IMe(){if(sD)return Wx;sD=1;var e=MMe();return Wx=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Wx}var Hx,lD;function DMe(){if(lD)return Hx;lD=1;var e=ai,t=ST()(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor,u="[object RegExp]";return Hx=t?function(f){if(!f||typeof f!="object")return!1;var d=l(f,"lastIndex"),h=d&&r(d,"value");if(!h)return!1;try{n(f,a)}catch(g){return g===o}}:function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:s(f)===u},Hx}var qx,uD;function jMe(){if(uD)return qx;uD=1;var e=ai,t=Sr,r=DMe(),n=e("RegExp.prototype.exec"),o=t("%TypeError%");return qx=function(i){if(!r(i))throw new o("`regex` must be a RegExp");return function(l){return n(i,l)!==null}},qx}var TU=Sr,NMe=TU("%String%"),LMe=TU("%TypeError%"),kU=function(t){if(typeof t=="symbol")throw new LMe("Cannot convert a Symbol value to a string");return NMe(t)},FMe=Mh,BMe=kU,zMe=ai,cD=zMe("String.prototype.replace"),AU=/^\s$/.test("᠎"),VMe=AU?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,UMe=AU?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,RU=function(){var t=BMe(FMe(this));return cD(cD(t,VMe,""),UMe,"")},WMe=RU,fD="​",Wl="᠎",MU=function(){return String.prototype.trim&&fD.trim()===fD&&Wl.trim()===Wl&&("_"+Wl).trim()==="_"+Wl&&(Wl+"_").trim()===Wl+"_"?String.prototype.trim:WMe},HMe=tf,qMe=MU,GMe=function(){var t=qMe();return HMe(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},KMe=H0,YMe=tf,XMe=Mh,QMe=RU,IU=MU,JMe=GMe,ZMe=KMe(IU()),DU=function(t){return XMe(t),ZMe(t)};YMe(DU,{getPolyfill:IU,implementation:QMe,shim:JMe});var jU=DU,Gx,dD;function eIe(){if(dD)return Gx;dD=1;var e=Sr,t=e("%Number%"),r=e("%RegExp%"),n=e("%TypeError%"),o=e("%parseInt%"),a=ai,i=jMe(),s=a("String.prototype.slice"),l=i(/^0b[01]+$/i),u=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),f=["…","​","￾"].join(""),d=new r("["+f+"]","g"),h=i(d),g=jU,p=Ih();return Gx=function x(b){if(p(b)!=="String")throw new n("Assertion failed: `argument` is not a String");if(l(b))return t(o(s(b,2),2));if(u(b))return t(o(s(b,2),8));if(h(b)||c(b))return NaN;var y=g(b);return y!==b?x(y):t(b)},Gx}var Kx,pD;function tIe(){if(pD)return Kx;pD=1;var e=Sr,t=e("%TypeError%"),r=e("%Number%"),n=TMe(),o=IMe(),a=eIe();return Kx=function(s){var l=n(s)?s:o(s,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):r(l)},Kx}var Yx,hD;function rIe(){if(hD)return Yx;hD=1;var e=Ih(),t=Math.floor;return Yx=function(n){return e(n)==="BigInt"?n:t(n)},Yx}var Xx,vD;function nIe(){if(vD)return Xx;vD=1;var e=Sr,t=rIe(),r=e("%TypeError%");return Xx=function(o){if(typeof o!="number"&&typeof o!="bigint")throw new r("argument must be a Number or a BigInt");var a=o<0?-t(-o):t(o);return a===0?0:a},Xx}var Qx,mD;function NU(){return mD||(mD=1,Qx=Number.isNaN||function(t){return t!==t}),Qx}var Jx,gD;function oIe(){if(gD)return Jx;gD=1;var e=NU();return Jx=function(t){return(typeof t=="number"||typeof t=="bigint")&&!e(t)&&t!==1/0&&t!==-1/0},Jx}var Zx,yD;function aIe(){if(yD)return Zx;yD=1;var e=tIe(),t=nIe(),r=NU(),n=oIe();return Zx=function(a){var i=e(a);return r(i)||i===0?0:n(i)?t(i):i},Zx}var ew,bD;function iIe(){if(bD)return ew;bD=1;var e=EMe(),t=aIe();return ew=function(n){var o=t(n);return o<=0?0:o>e?e:o},ew}var tw,xD;function sIe(){if(xD)return tw;xD=1;var e=Sr,t=e("%TypeError%"),r=$U(),n=iIe(),o=Ih();return tw=function(i){if(o(i)!=="Object")throw new t("Assertion failed: `obj` must be an Object");return n(r(i,"length"))},tw}var rw,wD;function lIe(){if(wD)return rw;wD=1;var e=Sr,t=e("%Object%"),r=Mh;return rw=function(o){return r(o),t(o)},rw}var nw,SD;function uIe(){if(SD)return nw;SD=1;var e=String.prototype.valueOf,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object String]",o=ST()();return nw=function(i){return typeof i=="string"?!0:typeof i!="object"?!1:o?t(i):r.call(i)===n},nw}var cIe=Sr,fIe=ai,dIe=cIe("%TypeError%"),pIe=xMe(),hIe=$U(),vIe=_Me(),mIe=$Me(),gIe=sIe(),yIe=lIe(),bIe=kU,xIe=uIe(),wIe=fIe("String.prototype.split"),OD=Object("a"),SIe=OD[0]!=="a"||!(0 in OD),LU=function(t){var r=yIe(this),n=SIe&&xIe(this)?wIe(this,""):r,o=gIe(n);if(!mIe(t))throw new dIe("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},XU={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:aw,chinese:function(){return 0},croatian:aw,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:aw,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function QIe(e){var t={};return sy(OT(e),function(r){var n=r[0],o=r[1];sy(o,function(a){t[a]=n})}),t}function JIe(e,t){var r=QIe(e.pluralTypeToLanguages);return r[t]||r[YU.call(t,/-/,1)[0]]||r.en}function ZIe(e,t,r){return e.pluralTypes[t](r)}function eDe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=JIe(t,r),n&&(e[r]=n)),n}}function CD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tDe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===xm||r===xm)throw new RangeError('"'+xm+'" token is reserved for pluralization');return new RegExp(CD(t)+"(.*?)"+CD(r),"g")}var rDe=eDe(),nDe=/%\{(.*?)\}/g;function PT(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||nDe,l=a||KU,u=typeof t=="number"?{smart_count:t}:t;if(u.smart_count!=null&&e){var c=o||XU,f=YU.call(e,xm),d=r||"en",h=rDe(c,d),g=ZIe(c,h,u.smart_count);i=YIe(f[g]||f[0])}return i=l.call(i,s,function(p,x){return!GU(u,x)||u[x]==null?p:u[x]}),i}function ii(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?PT:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||XIe,this.replaceImplementation=t.replace||KU,this.tokenRegex=tDe(t.interpolation),this.pluralRules=t.pluralRules||XU}ii.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};ii.prototype.extend=function(e,t){sy(OT(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};ii.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:sy(OT(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};ii.prototype.clear=function(){this.phrases={}};ii.prototype.replace=function(e){this.clear(),this.extend(e)};ii.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=PT(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};ii.prototype.has=function(e){return GU(this.phrases,e)};ii.transformPhrase=function(t,r,n){return PT(t,r,n)};var oDe=ii;const _D=ze(oDe);var mu=globalThis&&globalThis.__assign||function(){return mu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rs.id),{data:n,isLoading:o,error:a}=as("compute_latest",{target:"PartitionKey",id:"1",filter:{user:r},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0 SU"});var i=n.reduce(function(s,l){return l.user===t.id&&(s+=Number(l.usage)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:rf(i)})}function fDe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("storage_latest",{target:"PartitionKey",id:"1",filter:{user:r,fs:"gdata"},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0.00 kB"});var i=n.reduce(function(s,l){return l.user===t.id&&(s+=Number(l.size)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:yn(i)})}function dDe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("storage_latest",{target:"PartitionKey",id:"1",filter:{user:r,fs:"scratch"},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0.00 B"});var i=n.reduce(function(s,l){return l.user===t.id&&(s+=Number(l.size)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:yn(i)})}const pDe=()=>_.jsx(bT,{filters:uDe,sx:{padding:2},children:_.jsxs(ko,{rowClick:"show",bulkActionButtons:!1,hover:!1,children:[_.jsx(Wi,{source:"id",label:"Username"}),_.jsx(Wi,{source:"pw_name",label:"Name"}),_.jsx(ot,{label:"Compute Usage across all projects",render:cDe}),_.jsx(ot,{label:"Data on /scratch across all projects",render:dDe}),_.jsx(ot,{label:"Data on /g/data across all projects",render:fDe})]})});var QU={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){var r=1e3,n=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",g="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,y={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(M){var R=["th","st","nd","rd"],N=M%100;return"["+M+(R[(N-20)%10]||R[N]||R[0])+"]"}},v=function(M,R,N){var F=String(M);return!F||F.length>=R?M:""+Array(R+1-F.length).join(N)+M},w={s:v,z:function(M){var R=-M.utcOffset(),N=Math.abs(R),F=Math.floor(N/60),j=N%60;return(R<=0?"+":"-")+v(F,2,"0")+":"+v(j,2,"0")},m:function M(R,N){if(R.date()1)return M(B[0])}else{var W=R.name;O[W]=R,j=W}return!F&&j&&(S=j),j||!F&&S},A=function(M,R){if(C(M))return M.clone();var N=typeof R=="object"?R:{};return N.date=M,N.args=arguments,new I(N)},k=w;k.l=T,k.i=C,k.w=function(M,R){return A(M,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var I=function(){function M(N){this.$L=T(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[P]=!0}var R=M.prototype;return R.parse=function(N){this.$d=function(F){var j=F.date,L=F.utc;if(j===null)return new Date(NaN);if(k.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(x);if(B){var W=B[2]-1||0,X=(B[7]||"0").substring(0,3);return L?new Date(Date.UTC(B[1],W,B[3]||1,B[4]||0,B[5]||0,B[6]||0,X)):new Date(B[1],W,B[3]||1,B[4]||0,B[5]||0,B[6]||0,X)}}return new Date(j)}(N),this.init()},R.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},R.$utils=function(){return k},R.isValid=function(){return this.$d.toString()!==p},R.isSame=function(N,F){var j=A(N);return this.startOf(F)<=j&&j<=this.endOf(F)},R.isAfter=function(N,F){return A(N)25){var c=i(this).startOf(n).add(1,n).date(u),f=i(this).endOf(r);if(c.isBefore(f))return 1}var d=i(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(d,r,!0);return h<0?i(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(ZU);var hDe=ZU.exports;const vDe=ze(hDe);var e8={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){var r={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(x){this[p]=+x}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var b=x.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y}(p)}],f=function(p){var x=s[p];return x&&(x.indexOf?x:x.s.concat(x.f))},d=function(p,x){var b,y=s.meridiem;if(y){for(var v=1;v<=24;v+=1)if(p.indexOf(y(v,0,x))>-1){b=v>12;break}}else b=p===(x?"pm":"PM");return b},h={A:[i,function(p){this.afternoon=d(p,!1)}],a:[i,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],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:[o,u("day")],Do:[i,function(p){var x=s.ordinal,b=p.match(/\d+/);if(this.day=b[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===p&&(this.day=y)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(p){var x=f("months"),b=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[i,function(p){var x=f("months").indexOf(p)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function g(p){var x,b;x=p,b=s&&s.formats;for(var y=(p=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,A,k){var I=k&&k.toUpperCase();return A||b[k]||r[k]||b[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,M,R){return M||R.slice(1)})})).match(n),v=y.length,w=0;w-1)return new Date((F==="X"?1e3:1)*N);var L=g(F)(N),B=L.year,W=L.month,X=L.day,J=L.hours,K=L.minutes,ie=L.seconds,de=L.milliseconds,ee=L.zone,le=new Date,Q=X||(B||W?1:le.getDate()),ae=B||le.getFullYear(),Z=0;B&&!W||(Z=W>0?W-1:le.getMonth());var G=J||0,oe=K||0,fe=ie||0,ge=de||0;return ee?new Date(Date.UTC(ae,Z,Q,G,oe,fe,ge+60*ee.offset*1e3)):j?new Date(Date.UTC(ae,Z,Q,G,oe,fe,ge)):new Date(ae,Z,Q,G,oe,fe,ge)}catch{return new Date("")}}(S,C,O),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),k&&S!=this.format(C)&&(this.$d=new Date("")),s={}}else if(C instanceof Array)for(var D=C.length,M=1;M<=D;M+=1){P[1]=C[M-1];var R=b.apply(this,P);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}M===D&&(this.$d=new Date(""))}else v.call(this,w)}}})})(e8);var mDe=e8.exports;const gDe=ze(mDe);var t8={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){var r={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(n,o,a){var i=o.prototype,s=i.format;a.en.formats=r,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(f,d){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,p){var x=p&&p.toUpperCase();return g||d[p]||r[p]||d[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,v){return y||v.slice(1)})})}(l,u===void 0?{}:u);return s.call(this,c)}}})})(t8);var yDe=t8.exports;const bDe=ze(yDe);var r8={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){return function(r,n,o){n.prototype.isBetween=function(a,i,s,l){var u=o(a),c=o(i),f=(l=l||"()")[0]==="(",d=l[1]===")";return(f?this.isAfter(u,s):!this.isBefore(u,s))&&(d?this.isBefore(c,s):!this.isAfter(c,s))||(f?this.isBefore(u,s):!this.isAfter(u,s))&&(d?this.isAfter(c,s):!this.isBefore(c,s))}}})})(r8);var xDe=r8.exports;const wDe=ze(xDe),n8=(e,t="warning")=>{let r=!1;const n=Array.isArray(e)?e.join(` +`):e;return()=>{r||(r=!0,t==="error"?console.error(n):console.warn(n))}};Ze.extend(gDe);Ze.extend(bDe);Ze.extend(wDe);const SDe=n8(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),ODe={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"},PDe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},iw=["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(` +`),$D=["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(` +`),CDe=(e,t)=>t?(...r)=>e(...r).locale(t):e;class o8{constructor({locale:t,formats:r,instance:n}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=ODe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof Ze.utc<"u",this.hasTimezonePlugin=()=>typeof Ze.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return Ze.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=Ze.tz.guess();return i!=="UTC"?Ze.tz(a,i):Ze(a)}return Ze(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(iw);return Ze.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(iw);if(!this.hasTimezonePlugin())throw new Error($D);const s=a!==void 0&&!a.endsWith("Z");return Ze(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=Ze.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(SDe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const u=a.tz(this.cleanTimezone(i),!0);return((s=u.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:u}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasUTCPlugin()&&a.isUTC())return"UTC";if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;return s??"system"}return"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(iw);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error($D)}return Ze.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,c,f)=>c||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,u,c)=>{const f=c&&c.toUpperCase();return u||i[c]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let u=0,c=s;const f=[];for(;ca.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),u=[];let c=s;for(;ca==="am"?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=CDe((o=this.rawDayJsInstance)!=null?o:Ze,t),this.locale=t,this.formats=E({},PDe,r),Ze.extend(vDe)}}const _De=["localeText"],EP=m.createContext(null),q0=function(t){var r;const{localeText:n}=t,o=ue(t,_De),{utils:a,localeText:i}=(r=m.useContext(EP))!=null?r:{utils:void 0,localeText:void 0},s=xe({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:f,adapterLocale:d,localeText:h}=s,g=m.useMemo(()=>E({},h,i,n),[h,i,n]),p=m.useMemo(()=>{if(!u)return a||null;const y=new u({locale:d,formats:c,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: 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 y},[u,d,c,f,a]),x=m.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),b=m.useMemo(()=>({utils:p,defaultDates:x,localeText:g}),[x,p,g]);return _.jsx(EP.Provider,{value:b,children:l})},Mf=(e,t)=>e.length!==t.length?!1:t.every(r=>e.includes(r)),$De=({openTo:e,defaultOpenTo:t,views:r,defaultViews:n})=>{const o=r??n;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},Id=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));r&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(n,l)&&(n=l);let u=e,c=e;for(i.isBefore(e,o)&&(u=o,c=null),i.isAfter(e,n)&&(c&&(c=n),u=null);u||c;){if(u&&i.isAfter(u,n)&&(u=null),c&&i.isBefore(c,o)&&(c=null),u){if(!a(u))return u;u=i.addDays(u,1)}if(c){if(!a(c))return c;c=i.addDays(c,-1)}}return null},EDe=(e,t)=>t==null||!e.isValid(t)?null:t,uo=(e,t,r)=>t==null||!e.isValid(t)?r:t,TDe=(e,t,r)=>!e.isValid(t)&&t!=null&&!e.isValid(r)&&r!=null?!0:e.isEqual(t,r),CT=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const o=n[n.length-1];n.push(e.addMonths(o,1))}return n},TP=(e,t,r)=>{let n=t;return n=e.setHours(n,e.getHours(r)),n=e.setMinutes(n,e.getMinutes(r)),n=e.setSeconds(n,e.getSeconds(r)),n},a8=(e,t,r)=>r==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),kDe=["year","month","day"],ED=e=>kDe.includes(e),_T=(e,{format:t,views:r},n)=>{if(t!=null)return t;const o=e.formats;return Mf(r,["year"])?o.year:Mf(r,["month"])?o.month:Mf(r,["day"])?o.dayOfMonth:Mf(r,["month","year"])?`${o.month} ${o.year}`:Mf(r,["day","month"])?`${o.month} ${o.dayOfMonth}`:n?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},ADe=(e,t)=>{const r=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(n=>e.addDays(r,n))},RDe=["hours","minutes","seconds"],MDe=e=>RDe.includes(e),TD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),IDe=(e,t)=>(r,n)=>e?t.isAfter(r,n):TD(r,t)>TD(n,t),Xo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},DDe=e=>Math.max(...e.map(t=>{var r;return(r=Xo[t.type])!=null?r:1})),If=(e,t,r)=>{if(t===Xo.year)return e.startOfYear(r);if(t===Xo.month)return e.startOfMonth(r);if(t===Xo.day)return e.startOfDay(r);let n=r;return t{var a;let i=o?o():If(t,r,a8(t,n));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=If(t,r,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=If(t,r,e.maxDate));const s=IDe((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=If(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:TP(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=If(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:TP(t,i,e.maxTime))),i},i8=(e,t)=>{const r=e.formatTokenMap[t];if(r==null)throw new Error([`MUI: 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 r=="string"?{type:r,contentType:r==="meridiem"?"letter":"digit",maxLength:void 0}:{type:r.sectionType,contentType:r.contentType,maxLength:r.maxLength}},NDe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},G0=(e,t,r)=>{const n=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)n.push(s),s=e.addDays(s,1);return n.map(l=>e.formatByString(l,r))},s8=(e,t,r,n)=>{switch(r){case"month":return CT(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,n));case"weekDay":return G0(e,t,n);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,n))}default:return[]}},l8=(e,t,r)=>{let n=t;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,r);return e.formatByString(i,o.format)}const a=r.toString();return o.hasLeadingZerosInInput?l8(e,a,o.maxLength):a},LDe=(e,t,r,n,o,a,i)=>{const s=NDe(n),l=n==="Home",u=n==="End",c=r.value===""||l||u,f=()=>{const h=o[r.type]({currentDate:a,format:r.format,contentType:r.contentType}),g=y=>u8(e,t,y,h,r),p=r.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let b=parseInt(r.value,10)+s*p;if(c){if(r.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),r.format);s>0||l?b=h.minimum:b=h.maximum}return b%p!==0&&((s<0||l)&&(b+=p-(p+b)%p),(s>0||u)&&(b-=b%p)),b>h.maximum?g(h.minimum+(b-h.maximum-1)%(h.maximum-h.minimum+1)):b{const h=s8(e,t,r.type,r.format);if(h.length===0)return r.value;if(c)return s>0||l?h[0]:h[h.length-1];const p=(h.indexOf(r.value)+h.length+s)%h.length;return h[p]};return r.contentType==="digit"||r.contentType==="digit-with-letter"?f():d()},$T=(e,t)=>{let r=e.value||e.placeholder;const n=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(r).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!n&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},gu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),c8=(e,t)=>{let r=0,n=t?1:0;const o=[];for(let a=0;a{switch(n.type){case"year":return r.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return r.fieldMonthPlaceholder({contentType:n.contentType});case"day":return r.fieldDayPlaceholder();case"weekDay":return r.fieldWeekDayPlaceholder({contentType:n.contentType});case"hours":return r.fieldHoursPlaceholder();case"minutes":return r.fieldMinutesPlaceholder();case"seconds":return r.fieldSecondsPlaceholder();case"meridiem":return r.fieldMeridiemPlaceholder();default:return o}},kD=(e,t,r,n)=>e.formatByString(e.parse(t,r),n),f8=(e,t,r)=>e.formatByString(e.dateWithTimezone(void 0,t),r).length===4,d8=(e,t,r,n,o)=>{if(r!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(n){case"year":return f8(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},BDe=(e,t)=>{const r=[],{start:n,end:o}=e.escapedCharacters,a=new RegExp(`(\\${n}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)r.push({start:i.index,end:a.lastIndex-1});return r},AD=(e,t,r,n,o,a,i,s)=>{let l="";const u=[],c=e.date(),f=v=>{if(v==="")return null;const w=i8(e,v),S=d8(e,t,w.contentType,w.type,v),O=i?S:w.contentType==="digit",P=o!=null&&e.isValid(o);let C=P?e.formatByString(o,v):"",T=null;if(O)if(S)T=C===""?e.formatByString(c,v).length:C.length;else{if(w.maxLength==null)throw new Error(`MUI: The token ${v} should have a 'maxDigitNumber' property on it's adapter`);T=w.maxLength,P&&(C=l8(e,C,T))}return u.push(E({},w,{format:v,maxLength:T,value:C,placeholder:FDe(e,t,r,w,v),hasLeadingZeros:S,hasLeadingZerosInFormat:S,hasLeadingZerosInInput:O,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let d=10,h=n,g=e.expandFormat(n);for(;g!==h;)if(h=g,g=e.expandFormat(h),d-=1,d<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const p=g,x=BDe(e,p),b=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((v,w)=>w.length-v.length).join("|")})`,"g");let y="";for(let v=0;vT.start<=v&&T.end>=v),S=p[v],O=w!=null,P=`${y}${p.slice(v)}`,C=b.test(P);!O&&S.match(/([A-Za-z]+)/)&&C?(y=P.slice(0,b.lastIndex),v+=b.lastIndex-1):O&&(w==null?void 0:w.start)===v||(w==null?void 0:w.end)===v||(f(y),y="",u.length===0?l+=S:u[u.length-1].endSeparator+=S)}return f(y),u.map(v=>{const w=S=>{let O=S;return s&&O!==null&&O.includes(" ")&&(O=`⁩${O}⁦`),a==="spacious"&&["/",".","-"].includes(O)&&(O=` ${O} `),O};return v.startSeparator=w(v.startSeparator),v.endSeparator=w(v.endSeparator),v})},zDe=(e,t)=>{const r=t.some(s=>s.type==="day"),n=[],o=[];for(let s=0;s{const n=e.map(o=>{const a=$T(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${n}⁩`:n},UDe=(e,t)=>{const r=e.dateWithTimezone(void 0,t),n=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:i}=CT(e,r).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:f8(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(n)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=G0(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(r),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(r),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},WDe=(e,t,r,n,o)=>{switch(r.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const a=G0(e,t,r.format),i=e.formatByString(n,r.format),s=a.indexOf(i),u=a.indexOf(r.value)-s;return e.addDays(n,u)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const a=e.getHours(n)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},RD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},MD=(e,t,r,n,o,a)=>[...n].sort((i,s)=>RD[i.type]-RD[s.type]).reduce((i,s)=>!a||s.modified?WDe(e,t,s,r,i):i,o),HDe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,qDe=(e,t)=>{const r={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;r[u]={leftIndex:c,rightIndex:f}}),{neighbors:r,startIndex:0,endIndex:e.length-1};const n={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,u)=>{var c;return u>=a&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,n[s]=l,s-=1;a=i+1}return e.forEach((l,u)=>{const c=o[u],f=c===0?null:n[c-1],d=c===e.length-1?null:n[c+1];r[u]={leftIndex:f,rightIndex:d}}),{neighbors:r,startIndex:n[0],endIndex:n[e.length-1]}},GDe=["value","referenceDate"],Ga={emptyValue:null,getTodayValue:a8,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,n=ue(e,GDe);return t!=null&&n.utils.isValid(t)?t:r??jDe(n)},cleanValue:EDe,areValuesEqual:TDe,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,r)=>r==null?null:e.setTimezone(r,t)},KDe={updateReferenceValue:(e,t,r)=>t==null||!e.isValid(t)?r:t,getSectionsFromValue:(e,t,r,n,o)=>!e.isValid(t)&&!!r?r:c8(o(t),n),getValueStrFromSections:VDe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:r=>r,getNewValuesFromNewActiveDate:r=>({value:r,referenceValue:r==null||!e.isValid(r)?t.referenceValue:r})}),parseValueStr:(e,t,r)=>r(e.trim(),t)},YDe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:E({},e)}}}}),p8={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",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,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.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)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",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"},XDe=p8;YDe(p8);const Pl=()=>{const e=m.useContext(EP);if(e===null)throw new Error(["MUI: 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: 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=m.useMemo(()=>E({},XDe,e.localeText),[e.localeText]);return m.useMemo(()=>E({},e,{localeText:t}),[e,t])},kt=()=>Pl().utils,Dh=()=>Pl().defaultDates,ps=()=>Pl().localeText,jh=e=>{const t=kt(),r=m.useRef();return r.current===void 0&&(r.current=t.dateWithTimezone(void 0,e)),r.current};function h8(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{const{classes:t,isLandscape:r}=e;return Se({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},QDe,t)},ZDe=H("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>E({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),eje=H("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),tje=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=n,u=n,c=JDe(u);return s?null:_.jsxs(ZDe,{ref:r,className:Sn(c.root,a),ownerState:u,children:[_.jsx(Te,{color:"text.secondary",variant:"overline",id:l,children:i}),_.jsx(eje,{className:c.content,ownerState:u,children:o})]})});function rje(e){return Oe("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const nje=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],oje=e=>{const{classes:t}=e;return Se({root:["root"],title:["title"]},rje,t)},aje=H(tje,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ije=H(Te,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>E({},e.isLandscape&&{margin:"auto 16px auto auto"})),sje=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=n,u=ue(n,nje),c=kt(),f=ps(),d=oje(n),h=m.useMemo(()=>{if(!o)return s;const p=_T(c,{format:i,views:l},!0);return c.formatByString(o,p)},[o,i,s,c,l]),g=n;return _.jsx(aje,E({ref:r,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:d.root},u,{children:_.jsx(ije,{variant:"h4",align:a?"left":"center",ownerState:g,className:d.title,children:h})}))}),v8=e=>{if(e!==void 0)return Object.keys(e).reduce((t,r)=>E({},t,{[`${r.slice(0,1).toLowerCase()}${r.slice(1)}`]:e[r]}),{})};function m8(e,t){var r,n,o,a;const i=kt(),s=Dh(),l=xe({props:e,name:t}),u=m.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:E({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(r=l.slots)!=null?r:v8(l.components);return E({},l,{localeText:u},$De({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(n=l.disableFuture)!=null?n:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:uo(i,l.minDate,s.minDate),maxDate:uo(i,l.maxDate,s.maxDate),slots:E({toolbar:sje},c),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const lje=zt(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),uje=zt(_.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),cje=zt(_.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),fje=zt(_.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");zt(_.jsxs(m.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");zt(_.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");zt(_.jsxs(m.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const dje=zt(_.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 pje(e){return Oe("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button"]);const hje=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],vje=["ownerState"],mje=["ownerState"],gje=H("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),yje=H("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ID=H(vt,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>E({},e.hidden&&{visibility:"hidden"})),bje=e=>{const{classes:t}=e;return Se({root:["root"],spacer:["spacer"],button:["button"]},pje,t)},xje=m.forwardRef(function(t,r){var n,o,a,i;const l=pr().direction==="rtl",u=xe({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:d,slotProps:h,isNextDisabled:g,isNextHidden:p,onGoToNext:x,nextLabel:b,isPreviousDisabled:y,isPreviousHidden:v,onGoToPrevious:w,previousLabel:S}=u,O=ue(u,hje),P=u,C=bje(P),T={isDisabled:g,isHidden:p,goTo:x,label:b},A={isDisabled:y,isHidden:v,goTo:w,label:S},k=(n=d==null?void 0:d.previousIconButton)!=null?n:ID,I=at({elementType:k,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:E({},P,{hidden:A.isHidden}),className:C.button}),D=(o=d==null?void 0:d.nextIconButton)!=null?o:ID,M=at({elementType:D,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:E({},P,{hidden:T.isHidden}),className:C.button}),R=(a=d==null?void 0:d.leftArrowIcon)!=null?a:uje,N=at({elementType:R,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),F=ue(N,vje),j=(i=d==null?void 0:d.rightArrowIcon)!=null?i:cje,L=at({elementType:j,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=ue(L,mje);return _.jsxs(gje,E({ref:r,className:Sn(C.root,f),ownerState:P},O,{children:[_.jsx(k,E({},I,{children:l?_.jsx(j,E({},B)):_.jsx(R,E({},F))})),c?_.jsx(Te,{variant:"subtitle1",component:"span",children:c}):_.jsx(yje,{className:C.spacer,ownerState:P}),_.jsx(D,E({},M,{children:l?_.jsx(R,E({},F)):_.jsx(j,E({},B))}))]}))}),gp=36,K0=2,g8=320,y8=358,wje=H(R0)({[`& .${Od.container}`]:{outline:0},[`& .${Od.paper}`]:{outline:0,minWidth:g8}}),Sje=H(I0)({"&:first-of-type":{padding:0}});function Oje(e){var t,r;const{children:n,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:wje,u=(r=i==null?void 0:i.mobileTransition)!=null?r:Qc;return _.jsx(l,E({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:_.jsx(Sje,{children:n})}))}function Pje(e){return Oe("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);function Cje(e,t){return Array.isArray(t)?t.every(r=>e.indexOf(r)!==-1):e.indexOf(t)!==-1}const _je=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation()),t&&t(r)},ly=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ly(t.shadowRoot):t:null},$je="@media (pointer: fine)",Eje="@media (prefers-reduced-motion: reduce)",Lu=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),DD=Lu&&Lu[1]?parseInt(Lu[1],10):null,jD=Lu&&Lu[2]?parseInt(Lu[2],10):null,Tje=DD&&DD<10||jD&&jD<13||!1,b8=()=>Cn(Eje,{defaultMatches:!1})||Tje,kje=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Aje=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},Pje,t)},Rje=H(hE,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Mje=H(oi,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>E({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Ije(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=Me(l=>{if(!a.current)return;const u=n.current;n.current=!1;const c=Wt(o.current);if(!o.current||"clientX"in l&&Ije(l,c))return;if(r.current){r.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!c.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!u&&t(l)}),s=()=>{n.current=!0};return m.useEffect(()=>{if(e){const l=Wt(o.current),u=()=>{r.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",u)}}},[e,i]),m.useEffect(()=>{if(e){const l=Wt(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),n.current=!1}}},[e,i]),[o,s,s]}const jje=m.forwardRef((e,t)=>{const{PaperComponent:r,popperPlacement:n,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=ue(e,kje),f=E({},o,{placement:n}),d=at({elementType:r,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return _.jsx(r,E({},c,d,{onClick:h=>{var g;l(h),(g=d.onClick)==null||g.call(d,h)},onTouchStart:h=>{var g;u(h),(g=d.onTouchStart)==null||g.call(d,h)},ownerState:f,children:a}))});function Nje(e){var t,r,n,o;const a=xe({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:d,role:h,placement:g,slots:p,slotProps:x,reduceAnimations:b}=a;m.useEffect(()=>{function L(B){d&&(B.key==="Escape"||B.key==="Esc")&&f()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[f,d]);const y=m.useRef(null);m.useEffect(()=>{h==="tooltip"||u&&!u()||(d?y.current=ly(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[d,h,u]);const[v,w,S]=Dje(d,c??f),O=m.useRef(null),P=ut(O,l),C=ut(P,v),T=a,A=Aje(T),k=b8(),I=b??k,D=L=>{L.key==="Escape"&&(L.stopPropagation(),f())},M=((t=p==null?void 0:p.desktopTransition)!=null?t:I)?Qc:dp,R=(r=p==null?void 0:p.desktopTrapFocus)!=null?r:Dz,N=(n=p==null?void 0:p.desktopPaper)!=null?n:Mje,F=(o=p==null?void 0:p.popper)!=null?o:Rje,j=at({elementType:F,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:h,open:d,anchorEl:i,placement:g,onKeyDown:D},className:A.root,ownerState:a});return _.jsx(F,E({},j,{children:({TransitionProps:L,placement:B})=>_.jsx(R,E({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:_.jsx(M,E({},L,x==null?void 0:x.desktopTransition,{children:_.jsx(jje,{PaperComponent:N,ownerState:T,popperPlacement:B,ref:C,onPaperClick:w,onPaperTouchStart:S,paperClasses:A.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}const ET=({timezone:e,value:t,defaultValue:r,onChange:n,valueManager:o})=>{var a,i;const s=kt(),l=m.useRef(r),u=(a=t??l.current)!=null?a:o.emptyValue,c=m.useMemo(()=>o.getTimezone(s,u),[s,o,u]),f=Me(p=>c==null?p:o.setTimezone(s,c,p)),d=(i=e??c)!=null?i:"default",h=m.useMemo(()=>o.setTimezone(s,d,u),[o,s,d,u]),g=Me((p,...x)=>{const b=f(p);n==null||n(b,...x)});return{value:h,handleValueChange:g,timezone:d}},TT=({name:e,timezone:t,value:r,defaultValue:n,onChange:o,valueManager:a})=>{const[i,s]=bn({name:e,state:"value",controlled:r,default:n??a.emptyValue}),l=Me((u,...c)=>{s(u),o==null||o(u,...c)});return ET({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})};function x8(e,t,r,n){const{value:o,onError:a}=e,i=Pl(),s=m.useRef(n),l=t({adapter:i,value:o,props:e});return m.useEffect(()=>{a&&!r(l,s.current)&&a(l,o),s.current=l},[r,a,s,l,o]),l}const Lje=e=>{const t=kt(),r=ps(),n=Pl(),a=pr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:f,defaultValue:d,referenceDate:h,onChange:g,format:p,formatDensity:x="dense",selectedSections:b,onSelectedSectionsChange:y,shouldRespectLeadingZeros:v=!1,timezone:w}}=e,{timezone:S,value:O,handleValueChange:P}=ET({timezone:w,value:f,defaultValue:d,onChange:g,valueManager:i}),C=m.useMemo(()=>UDe(t,S),[t,S]),T=m.useCallback((K,ie=null)=>s.getSectionsFromValue(t,K,ie,a,de=>AD(t,S,r,p,de,x,v,a)),[s,p,r,a,v,t,x,S]),A=m.useMemo(()=>s.getValueStrFromSections(T(i.emptyValue),a),[s,T,i.emptyValue,a]),[k,I]=m.useState(()=>{const K=T(O),ie={sections:K,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},de=DDe(K),ee=i.getInitialReferenceValue({referenceDate:h,value:O,utils:t,props:c,granularity:de,timezone:S});return E({},ie,{referenceValue:ee})}),[D,M]=bn({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),R=K=>{M(K),y==null||y(K),I(ie=>E({},ie,{selectedSectionQuery:null}))},N=m.useMemo(()=>{if(D==null)return null;if(D==="all")return{startIndex:0,endIndex:k.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof D=="number")return{startIndex:D,endIndex:D};if(typeof D=="string"){const K=k.sections.findIndex(ie=>ie.type===D);return{startIndex:K,endIndex:K}}return D},[D,k.sections]),F=({value:K,referenceValue:ie,sections:de})=>{I(le=>E({},le,{sections:de,value:K,referenceValue:ie,tempValueStrAndroid:null}));const ee={validationError:u({adapter:n,value:K,props:E({},c,{value:K,timezone:S})})};P(K,ee)},j=(K,ie)=>{const de=[...k.sections];return de[K]=E({},de[K],{value:ie,modified:!0}),c8(de,a)},L=()=>{i.areValuesEqual(t,k.value,i.emptyValue)||F({value:i.emptyValue,referenceValue:k.referenceValue,sections:T(i.emptyValue)})},B=()=>{if(N==null)return;const K=k.sections[N.startIndex];if(K.value==="")return;const ie=s.getActiveDateManager(t,k,K),ee=ie.getSections(k.sections).filter(Z=>Z.value!=="").length===1,le=j(N.startIndex,""),Q=ee?null:t.date(new Date("")),ae=ie.getNewValuesFromNewActiveDate(Q);(Q!=null&&!t.isValid(Q))!=(ie.date!=null&&!t.isValid(ie.date))?F(E({},ae,{sections:le})):I(Z=>E({},Z,ae,{sections:le,tempValueStrAndroid:null}))},W=K=>{const ie=(le,Q)=>{const ae=t.parse(le,p);if(ae==null||!t.isValid(ae))return null;const Z=AD(t,S,r,p,ae,x,v,a);return MD(t,S,ae,Z,Q,!1)},de=s.parseValueStr(K,k.referenceValue,ie),ee=s.updateReferenceValue(t,de,k.referenceValue);F({value:de,referenceValue:ee,sections:T(de,k.sections)})},X=({activeSection:K,newSectionValue:ie,shouldGoToNextSection:de})=>{de&&N&&N.startIndexE({},oe,Z,{sections:le,tempValueStrAndroid:null}))},J=K=>I(ie=>E({},ie,{tempValueStrAndroid:K}));return m.useEffect(()=>{const K=T(k.value);I(ie=>E({},ie,{sections:K}))},[p,t.locale]),m.useEffect(()=>{let K=!1;i.areValuesEqual(t,k.value,O)?K=i.getTimezone(t,k.value)!==i.getTimezone(t,O):K=!0,K&&I(ie=>E({},ie,{value:O,referenceValue:s.updateReferenceValue(t,O,ie.referenceValue),sections:T(O)}))},[O]),{state:k,selectedSectionIndexes:N,setSelectedSections:R,clearValue:L,clearActiveSection:B,updateSectionValue:X,updateValueFromValueStr:W,setTempAndroidValueStr:J,sectionsValueBoundaries:C,placeholder:A,timezone:S}},Fje=5e3,Hl=e=>e.saveQuery!=null,Bje=({sections:e,updateSectionValue:t,sectionsValueBoundaries:r,setTempAndroidValueStr:n,timezone:o})=>{const a=kt(),[i,s]=m.useState(null),l=Me(()=>s(null));m.useEffect(()=>{var h;i!=null&&((h=e[i.sectionIndex])==null?void 0:h.type)!==i.sectionType&&l()},[e,i,l]),m.useEffect(()=>{if(i!=null){const h=setTimeout(()=>l(),Fje);return()=>{window.clearTimeout(h)}}return()=>{}},[i,l]);const u=({keyPressed:h,sectionIndex:g},p,x)=>{const b=h.toLowerCase(),y=e[g];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===g){const w=`${i.value}${b}`,S=p(w,y);if(!Hl(S))return s({sectionIndex:g,value:w,sectionType:y.type}),S}const v=p(b,y);return Hl(v)&&!v.saveQuery?(l(),null):(s({sectionIndex:g,value:b,sectionType:y.type}),Hl(v)?null:v)},c=h=>{const g=(b,y,v)=>{const w=y.filter(S=>S.toLowerCase().startsWith(v));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},p=(b,y,v,w)=>{const S=O=>s8(a,o,y.type,O);if(y.contentType==="letter")return g(y.format,S(y.format),b);if(v&&w!=null&&i8(a,v).contentType==="letter"){const O=S(v),P=g(v,O,b);return Hl(P)?{saveQuery:!1}:E({},P,{sectionValue:w(P.sectionValue,O)})}return{saveQuery:!1}};return u(h,(b,y)=>{switch(y.type){case"month":{const v=w=>kD(a,w,a.formats.month,y.format);return p(b,y,a.formats.month,v)}case"weekDay":{const v=(w,S)=>S.indexOf(w).toString();return p(b,y,a.formats.weekday,v)}case"meridiem":return p(b,y);default:return{saveQuery:!1}}})},f=h=>{const g=(x,b)=>{const y=+`${x}`,v=r[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(y>v.maximum)return{saveQuery:!1};if(yv.maximum||x.length===v.maximum.toString().length;return{sectionValue:u8(a,o,y,v,b),shouldGoToNextSection:w}};return u(h,(x,b)=>{if(b.contentType==="digit"||b.contentType==="digit-with-letter")return g(x,b);if(b.type==="month"){const y=d8(a,o,"digit","month","MM"),v=g(x,{type:b.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Hl(v))return v;const w=kD(a,v.sectionValue,"MM",b.format);return E({},v,{sectionValue:w})}if(b.type==="weekDay"){const y=g(x,b);if(Hl(y))return y;const v=G0(a,o,b.format)[Number(y.sectionValue)-1];return E({},y,{sectionValue:v})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:Me(h=>{const g=e[h.sectionIndex],x=!Number.isNaN(Number(h.keyPressed))?f(h):c(h);x==null?n(null):t({activeSection:g,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}},zje=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear"],Vje=e=>{const t=kt(),{state:r,selectedSectionIndexes:n,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f,timezone:d}=Lje(e),{inputRef:h,internalProps:g,internalProps:{readOnly:p=!1,unstableFieldRef:x,minutesStep:b},forwardedProps:{onClick:y,onKeyDown:v,onFocus:w,onBlur:S,onMouseUp:O,onPaste:P,error:C,clearable:T,onClear:A},fieldValueManager:k,valueManager:I,validator:D}=e,M=ue(e.forwardedProps,zje),{applyCharacterEditing:R,resetCharacterQuery:N}=Bje({sections:r.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:d}),F=m.useRef(null),j=ut(h,F),L=m.useRef(void 0),W=pr().direction==="rtl",X=m.useMemo(()=>qDe(r.sections,W),[r.sections,W]),J=()=>{var U;if(p){o(null);return}const ne=(U=F.current.selectionStart)!=null?U:0;let re;ne<=r.sections[0].startInInput||ne>=r.sections[r.sections.length-1].endInInput?re=1:re=r.sections.findIndex(me=>me.startInInput-me.startSeparator.length>ne);const se=re===-1?r.sections.length-1:re-1;o(se)},K=Me((U,...ne)=>{U.isDefaultPrevented()||(y==null||y(U,...ne),J())}),ie=Me(U=>{O==null||O(U),U.preventDefault()}),de=Me((...U)=>{w==null||w(...U);const ne=F.current;window.clearTimeout(L.current),L.current=setTimeout(()=>{!ne||ne!==F.current||n!=null||p||(ne.value.length&&Number(ne.selectionEnd)-Number(ne.selectionStart)===ne.value.length?o("all"):J())})}),ee=Me((...U)=>{S==null||S(...U),o(null)}),le=Me(U=>{if(P==null||P(U),p){U.preventDefault();return}const ne=U.clipboardData.getData("text");if(n&&n.startIndex===n.endIndex){const re=r.sections[n.startIndex],se=/^[a-zA-Z]+$/.test(ne),me=/^[0-9]+$/.test(ne),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ne);if(re.contentType==="letter"&&se||re.contentType==="digit"&&me||re.contentType==="digit-with-letter"&&Ce)return;if(se||me){U.preventDefault();return}}U.preventDefault(),N(),l(ne)}),Q=Me(U=>{if(p)return;const ne=U.target.value,re=U.nativeEvent.data,se=re&&re.length>1,me=se?re:ne,Ce=gu(me);if(n==null||se){l(se?re:Ce);return}let je;if(n.startIndex===0&&n.endIndex===r.sections.length-1&&Ce.length===1)je=Ce;else{const He=gu(k.getValueStrFromSections(r.sections,W));let rt=-1,Ue=-1;for(let _e=0;_eke.end)return;const Pt=Ce.length-He.length+ke.end-gu(ke.endSeparator||"").length;je=Ce.slice(ke.start+gu(ke.startSeparator||"").length,Pt)}if(HDe()&&je.length===0){u(me);return}R({keyPressed:je,sectionIndex:n.startIndex})}),ae=Me(U=>{switch(v==null||v(U),!0){case(U.key==="a"&&(U.ctrlKey||U.metaKey)):{U.preventDefault(),o("all");break}case U.key==="ArrowRight":{if(U.preventDefault(),n==null)o(X.startIndex);else if(n.startIndex!==n.endIndex)o(n.endIndex);else{const ne=X.neighbors[n.startIndex].rightIndex;ne!==null&&o(ne)}break}case U.key==="ArrowLeft":{if(U.preventDefault(),n==null)o(X.endIndex);else if(n.startIndex!==n.endIndex)o(n.startIndex);else{const ne=X.neighbors[n.startIndex].leftIndex;ne!==null&&o(ne)}break}case["Backspace","Delete"].includes(U.key):{if(U.preventDefault(),p)break;n==null||n.startIndex===0&&n.endIndex===r.sections.length-1?a():i(),N();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(U.key):{if(U.preventDefault(),p||n==null)break;const ne=r.sections[n.startIndex],re=k.getActiveDateManager(t,r,ne),se=LDe(t,d,ne,U.key,c,re.date,{minutesStep:b});s({activeSection:ne,newSectionValue:se,shouldGoToNextSection:!1});break}}});sr(()=>{if(!F.current)return;if(n==null){F.current.scrollLeft&&(F.current.scrollLeft=0);return}const U=r.sections[n.startIndex],ne=r.sections[n.endIndex];let re=U.startInInput,se=ne.endInInput;if(n.shouldSelectBoundarySelectors&&(re-=U.startSeparator.length,se+=ne.endSeparator.length),re!==F.current.selectionStart||se!==F.current.selectionEnd){const me=F.current.scrollTop;F.current===ly(document)&&F.current.setSelectionRange(re,se),F.current.scrollTop=me}});const Z=x8(E({},g,{value:r.value,timezone:d}),D,I.isSameError,I.defaultErrorState),G=m.useMemo(()=>C!==void 0?C:I.hasError(Z),[I,Z,C]);m.useEffect(()=>{!G&&!n&&N()},[r.referenceValue,n,G]),m.useEffect(()=>(F.current&&F.current===document.activeElement&&o("all"),()=>window.clearTimeout(L.current)),[]),m.useEffect(()=>{r.tempValueStrAndroid!=null&&n!=null&&(N(),i())},[r.tempValueStrAndroid]);const oe=m.useMemo(()=>{var U;return(U=r.tempValueStrAndroid)!=null?U:k.getValueStrFromSections(r.sections,W)},[r.sections,k,r.tempValueStrAndroid,W]),fe=m.useMemo(()=>n==null||r.sections[n.startIndex].contentType==="letter"?"text":"numeric",[n,r.sections]),ge=F.current&&F.current===ly(document),Ae=I.areValuesEqual(t,r.value,I.emptyValue),V=!ge&&Ae;m.useImperativeHandle(x,()=>({getSections:()=>r.sections,getActiveSectionIndex:()=>{var U,ne;const re=(U=F.current.selectionStart)!=null?U:0,se=(ne=F.current.selectionEnd)!=null?ne:0;if(re===0&&se===0)return null;const me=re<=r.sections[0].startInInput?1:r.sections.findIndex(Ce=>Ce.startInInput-Ce.startSeparator.length>re);return me===-1?r.sections.length-1:me-1},setSelectedSections:U=>o(U)}));const q=Me((U,...ne)=>{var re;U.preventDefault(),A==null||A(U,...ne),a(),F==null||(re=F.current)==null||re.focus(),o(0)});return E({placeholder:f,autoComplete:"off"},M,{value:V?"":oe,inputMode:fe,readOnly:p,onClick:K,onFocus:de,onBlur:ee,onPaste:le,onChange:Q,onKeyDown:ae,onMouseUp:ie,onClear:q,error:G,ref:j,clearable:!!(T&&!Ae&&!p)})},Uje=({open:e,onOpen:t,onClose:r})=>{const n=m.useRef(typeof e=="boolean").current,[o,a]=m.useState(!1);m.useEffect(()=>{if(n){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[n,e]);const i=m.useCallback(s=>{n||a(s),s&&t&&t(),!s&&r&&r()},[n,t,r]);return{isOpen:o,setIsOpen:i}},Wje=e=>{const{action:t,hasChanged:r,dateState:n,isControlled:o}=e,a=!o&&!n.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:r(n.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:r(n.lastPublishedValue):!1},Hje=e=>{const{action:t,hasChanged:r,dateState:n,isControlled:o,closeOnSelect:a}=e,i=!o&&!n.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:r(n.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:r(n.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&r(n.lastCommittedValue):!1},qje=e=>{const{action:t,closeOnSelect:r}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&r:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Gje=({props:e,valueManager:t,valueType:r,wrapperVariant:n,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:u=n==="desktop",selectedSections:c,onSelectedSectionsChange:f,timezone:d}=e,{current:h}=m.useRef(l),{current:g}=m.useRef(s!==void 0),p=kt(),x=Pl(),[b,y]=bn({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:v,setIsOpen:w}=Uje(e),[S,O]=m.useState(()=>{let ee;return s!==void 0?ee=s:h!==void 0?ee=h:ee=t.emptyValue,{draft:ee,lastPublishedValue:ee,lastCommittedValue:ee,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:P,handleValueChange:C}=ET({timezone:d,value:s,defaultValue:h,onChange:i,valueManager:t});x8(E({},e,{value:S.draft,timezone:P}),o,t.isSameError,t.defaultErrorState);const T=Me(ee=>{const le={action:ee,dateState:S,hasChanged:G=>!t.areValuesEqual(p,ee.value,G),isControlled:g,closeOnSelect:u},Q=Wje(le),ae=Hje(le),Z=qje(le);if(O(G=>E({},G,{draft:ee.value,lastPublishedValue:Q?ee.value:G.lastPublishedValue,lastCommittedValue:ae?ee.value:G.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Q){const oe={validationError:ee.name==="setValueFromField"?ee.context.validationError:o({adapter:x,value:ee.value,props:E({},e,{value:ee.value,timezone:P})})};ee.name==="setValueFromShortcut"&&ee.shortcut!=null&&(oe.shortcut=ee.shortcut),C(ee.value,oe)}ae&&a&&a(ee.value),Z&&w(!1)});if(s!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(p,S.lastControlledValue,s))){const ee=t.areValuesEqual(p,S.draft,s);O(le=>E({},le,{lastControlledValue:s},ee?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const A=Me(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),k=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),I=Me(()=>{T({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),D=Me(()=>{T({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),M=Me(()=>{T({value:t.getTodayValue(p,P,r),name:"setValueFromAction",pickerAction:"today"})}),R=Me(()=>w(!0)),N=Me(()=>w(!1)),F=Me((ee,le="partial")=>T({name:"setValueFromView",value:ee,selectionState:le})),j=Me((ee,le,Q)=>T({name:"setValueFromShortcut",value:ee,changeImportance:le??"accept",shortcut:Q})),L=Me((ee,le)=>T({name:"setValueFromField",value:ee,context:le})),B=Me(ee=>{y(ee),f==null||f(ee)}),W={onClear:A,onAccept:k,onDismiss:I,onCancel:D,onSetToday:M,onOpen:R,onClose:N},X={value:S.draft,onChange:L,selectedSections:b,onSelectedSectionsChange:B},J=m.useMemo(()=>t.cleanValue(p,S.draft),[p,t,S.draft]),K={value:J,onChange:F,onClose:N,open:v,onSelectedSectionsChange:B},de=E({},W,{value:J,onChange:F,onSelectShortcut:j,isValid:ee=>{const le=o({adapter:x,value:ee,props:E({},e,{value:ee,timezone:P})});return!t.hasError(le)}});return{open:v,fieldProps:X,viewProps:K,layoutProps:de,actions:W}};function w8({onChange:e,onViewChange:t,openTo:r,view:n,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,u;const c=m.useRef(r),f=m.useRef(o),d=m.useRef(o.includes(r)?r:o[0]),[h,g]=bn({name:"useViews",state:"view",controlled:n,default:d.current}),p=m.useRef(a?h:null),[x,b]=bn({name:"useViews",state:"focusedView",controlled:i,default:p.current});m.useEffect(()=>{(c.current&&c.current!==r||f.current&&f.current.some(A=>!o.includes(A)))&&(g(o.includes(r)?r:o[0]),f.current=o,c.current=r)},[r,g,h,o]);const y=o.indexOf(h),v=(l=o[y-1])!=null?l:null,w=(u=o[y+1])!=null?u:null,S=Me((A,k)=>{b(k?A:I=>A===I?null:I),s==null||s(A,k)}),O=Me(A=>{A!==h&&(g(A),S(A,!0),t&&t(A))}),P=Me(()=>{w&&O(w),S(w,!0)}),C=Me((A,k,I)=>{const D=k==="finish",M=I?o.indexOf(I){e(A,k?"partial":"finish",I),k&&(O(k),S(k,!0))});return{view:h,setView:O,focusedView:x,setFocusedView:S,nextView:w,previousView:v,defaultView:d.current,goToNextView:P,setValueAndGoToNextView:C,setValueAndGoToView:T}}const Kje=["className","sx"],Yje=({props:e,propsFromPickerValue:t,additionalViewProps:r,inputRef:n,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:d,viewRenderers:h,timezone:g}=e,p=ue(e,Kje),{view:x,setView:b,defaultView:y,focusedView:v,setFocusedView:w,setValueAndGoToNextView:S}=w8({view:void 0,views:u,openTo:c,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:O,viewModeLookup:P}=m.useMemo(()=>u.reduce((M,R)=>{let N;return d?N="field":h[R]!=null?N="UI":N="field",M.viewModeLookup[R]=N,N==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[d,h,u]),C=m.useMemo(()=>u.reduce((M,R)=>h[R]!=null&&MDe(R)?M+1:M,0),[h,u]),T=P[x],A=Me(()=>T==="UI"),[k,I]=m.useState(T==="UI"?x:null);return k!==x&&P[x]==="UI"&&I(x),sr(()=>{T==="field"&&i&&(l(),setTimeout(()=>{n==null||n.current.focus(),s(x)}))},[x]),sr(()=>{if(!i)return;let M=x;T==="field"&&k!=null&&(M=k),M!==y&&P[M]==="UI"&&P[y]==="UI"&&(M=y),M!==x&&b(M),w(M,!0)},[i]),{hasUIView:O,shouldRestoreFocus:A,layoutProps:{views:u,view:k,onViewChange:b},renderCurrentView:()=>{if(k==null)return null;const M=h[k];return M==null?null:M(E({},p,r,t,{views:u,timezone:g,onChange:S,view:k,onViewChange:b,focusedView:v,onFocusedViewChange:w,showViewSwitcher:C>1,timeViewsCount:C}))}}};function ND(){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 Xje=(e,t)=>{const[r,n]=m.useState(ND);return sr(()=>{const a=()=>{n(ND())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),Cje(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},Qje=({props:e,propsFromPickerValue:t,propsFromPickerViews:r,wrapperVariant:n})=>{const{orientation:o}=e,a=Xje(r.views,o);return{layoutProps:E({},r,t,{isLandscape:a,wrapperVariant:n,disabled:e.disabled,readOnly:e.readOnly})}};n8(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const S8=({props:e,valueManager:t,valueType:r,wrapperVariant:n,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=Gje({props:e,valueManager:t,valueType:r,wrapperVariant:n,validator:i}),u=Yje({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=Qje({props:e,wrapperVariant:n,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function O8(e){return Oe("MuiPickersLayout",e)}const sw=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),Jje=["onAccept","onClear","onCancel","onSetToday","actions"];function Zje(e){const{onAccept:t,onClear:r,onCancel:n,onSetToday:o,actions:a}=e,i=ue(e,Jje),s=ps();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(u=>{switch(u){case"clear":return _.jsx(br,{onClick:r,children:s.clearButtonLabel},u);case"cancel":return _.jsx(br,{onClick:n,children:s.cancelButtonLabel},u);case"accept":return _.jsx(br,{onClick:t,children:s.okButtonLabel},u);case"today":return _.jsx(br,{onClick:o,children:s.todayButtonLabel},u);default:return null}});return _.jsx(M0,E({},i,{children:l}))}const eNe=["items","changeImportance","isLandscape","onChange","isValid"],tNe=["getValue"];function rNe(e){const{items:t,changeImportance:r,onChange:n,isValid:o}=e,a=ue(e,eNe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,u=ue(s,tNe);const c=l({isValid:o});return{label:u.label,onClick:()=>{n(c,r,u)},disabled:!o(c)}});return _.jsx(l6,E({dense:!0,sx:[{maxHeight:y8,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>_.jsx(Txe,{children:_.jsx(qz,E({},s))},s.label))}))}function nNe(e){return e.view!==null}const oNe=e=>{const{classes:t,isLandscape:r}=e;return Se({root:["root",r&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},O8,t)},aNe=e=>{var t,r;const{wrapperVariant:n,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:u,onViewChange:c,value:f,onChange:d,onSelectShortcut:h,isValid:g,isLandscape:p,disabled:x,readOnly:b,children:y,components:v,componentsProps:w,slots:S,slotProps:O}=e,P=S??v8(v),C=O??w,T=oNe(e),A=(t=P==null?void 0:P.actionBar)!=null?t:Zje,k=at({elementType:A,externalSlotProps:C==null?void 0:C.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:n==="desktop"?[]:["cancel","accept"],className:T.actionBar},ownerState:E({},e,{wrapperVariant:n})}),I=_.jsx(A,E({},k)),D=P==null?void 0:P.toolbar,M=at({elementType:D,externalSlotProps:C==null?void 0:C.toolbar,additionalProps:{isLandscape:p,onChange:d,value:f,view:l,onViewChange:c,views:u,disabled:x,readOnly:b,className:T.toolbar},ownerState:E({},e,{wrapperVariant:n})}),R=nNe(M)&&D?_.jsx(D,E({},M)):null,N=y,F=P==null?void 0:P.tabs,j=l&&F?_.jsx(F,E({view:l,onViewChange:c},C==null?void 0:C.tabs)):null,L=(r=P==null?void 0:P.shortcuts)!=null?r:rNe,B=at({elementType:L,externalSlotProps:C==null?void 0:C.shortcuts,additionalProps:{isValid:g,isLandscape:p,onChange:h,className:T.shortcuts},ownerState:{isValid:g,isLandscape:p,onChange:h,className:T.shortcuts,wrapperVariant:n}}),W=l&&L?_.jsx(L,E({},B)):null;return{toolbar:R,content:N,tabs:j,actionBar:I,shortcuts:W}},iNe=aNe,sNe=e=>{const{isLandscape:t,classes:r}=e;return Se({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},O8,r)},P8=H("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${sw.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${sw.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${sw.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));P8.propTypes={as:$.elementType,ownerState:$.shape({isLandscape:$.bool.isRequired}).isRequired,sx:$.oneOfType([$.arrayOf($.oneOfType([$.func,$.object,$.bool])),$.func,$.object])};const lNe=H("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),C8=function(t){const r=xe({props:t,name:"MuiPickersLayout"}),{toolbar:n,content:o,tabs:a,actionBar:i,shortcuts:s}=iNe(r),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:d}=r,h=r,g=sNe(h);return _.jsxs(P8,{ref:f,sx:l,className:Sn(u,g.root),ownerState:h,children:[c?s:n,c?n:s,_.jsx(lNe,{className:g.contentWrapper,children:d==="desktop"?_.jsxs(m.Fragment,{children:[o,a]}):_.jsxs(m.Fragment,{children:[a,o]})}),i]})};function uNe(e,{disableFuture:t,maxDate:r,timezone:n}){const o=kt();return m.useMemo(()=>{const a=o.dateWithTimezone(void 0,n),i=o.startOfMonth(t&&o.isBefore(a,r)?a:r);return!o.isAfter(i,e)},[t,r,e,o,n])}function cNe(e,{disablePast:t,minDate:r,timezone:n}){const o=kt();return m.useMemo(()=>{const a=o.dateWithTimezone(void 0,n),i=o.startOfMonth(t&&o.isAfter(a,r)?a:r);return!o.isBefore(i,e)},[t,r,e,o,n])}const kP=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],AP=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],_8=["minDateTime","maxDateTime"],fNe=[...kP,...AP,..._8],$8=e=>fNe.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{}),dNe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],pNe=(e,t)=>{const r=E({},e),n={},o=a=>{r.hasOwnProperty(a)&&(n[a]=r[a],delete r[a])};return dNe.forEach(o),t==="date"?kP.forEach(o):t==="time"?AP.forEach(o):t==="date-time"&&(kP.forEach(o),AP.forEach(o),_8.forEach(o)),{forwardedProps:r,internalProps:n}},Y0=({props:e,value:t,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:n,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,u=r.utils.dateWithTimezone(void 0,l),c=uo(r.utils,e.minDate,r.defaultDates.minDate),f=uo(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(n&&n(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(i&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(f&&r.utils.isAfterDay(t,f)):return"maxDate";default:return null}};function hNe(e){return Oe("MuiPickersDay",e)}const Ss=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),vNe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],mNe=e=>{const{selected:t,disableMargin:r,disableHighlightToday:n,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,u=i&&!s;return Se({root:["root",t&&!u&&"selected",a&&"disabled",!r&&"dayWithMargin",!n&&o&&"today",i&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},hNe,l)},E8=({theme:e,ownerState:t})=>E({},e.typography.caption,{width:gp,height:gp,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})`:Ne(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ss.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ss.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}},[`&.${Ss.disabled}:not(.${Ss.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ss.disabled}&.${Ss.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${K0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ss.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),T8=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},gNe=H(wn,{name:"MuiPickersDay",slot:"Root",overridesResolver:T8})(E8),yNe=H("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:T8})(({theme:e,ownerState:t})=>E({},E8({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Df=()=>{},bNe=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:d,onFocus:h=Df,onBlur:g=Df,onKeyDown:p=Df,onMouseDown:x=Df,onMouseEnter:b=Df,outsideCurrentMonth:y,selected:v=!1,showDaysOutsideCurrentMonth:w=!1,children:S,today:O=!1}=n,P=ue(n,vNe),C=E({},n,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:u,selected:v,showDaysOutsideCurrentMonth:w,today:O}),T=mNe(C),A=kt(),k=m.useRef(null),I=ut(k,r);sr(()=>{o&&!s&&!c&&!y&&k.current.focus()},[o,s,c,y]);const D=R=>{x(R),y&&R.preventDefault()},M=R=>{s||d(i),y&&R.currentTarget.focus(),f&&f(R)};return y&&!w?_.jsx(yNe,{className:Sn(T.root,T.hiddenDaySpacingFiller,a),ownerState:C,role:P.role}):_.jsx(gNe,E({className:Sn(T.root,a),ref:I,centerRipple:!0,disabled:s,tabIndex:v?0:-1,onKeyDown:R=>p(R,i),onFocus:R=>h(R,i),onBlur:R=>g(R,i),onMouseEnter:R=>b(R,i),onClick:M,onMouseDown:D},P,{ownerState:C,children:S||A.format(i,"dayOfMonth")}))}),xNe=m.memo(bNe),wNe=e=>Oe("MuiPickersSlideTransition",e),Un=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),SNe=["children","className","reduceAnimations","slideDirection","transKey","classes"],ONe=e=>{const{classes:t,slideDirection:r}=e,n={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${r}`],exitActive:[`slideExitActiveLeft-${r}`]};return Se(n,wNe,t)},k8=350,PNe=H(oE,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Un["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Un["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Un.slideEnterActive}`]:t.slideEnterActive},{[`.${Un.slideExit}`]:t.slideExit},{[`.${Un["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Un["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:k8,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},[`& .${Un["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Un["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Un.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Un.slideExit}`]:{transform:"translate(0%)"},[`& .${Un["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Un["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function CNe(e){const t=xe({props:e,name:"MuiPickersSlideTransition"}),{children:r,className:n,reduceAnimations:o,transKey:a}=t,i=ue(t,SNe),s=ONe(t);if(o)return _.jsx("div",{className:Sn(s.root,n),children:r});const l={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return _.jsx(PNe,{className:Sn(s.root,n),childFactory:u=>m.cloneElement(u,{classNames:l}),role:"presentation",children:_.jsx(uve,E({mountOnEnter:!0,unmountOnExit:!0,timeout:k8,classNames:l},i,{children:r}),a)})}const A8=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=Pl();return m.useCallback(u=>Y0({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,r,n,o,a,i,s])},_Ne=e=>Oe("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const $Ne=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ENe=["ownerState"],TNe=e=>{const{classes:t}=e;return Se({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},_Ne,t)},R8=(gp+K0*2)*6,kNe=H("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ANe=H("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),RNe=H(Te,{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})),MNe=H(Te,{name:"MuiDayPicker",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})),INe=H(Te,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>E({},e.typography.caption,{width:gp,height:gp,padding:0,margin:`0 ${K0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),DNe=H("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:R8}),jNe=H(CNe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:R8}),NNe=H("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),LNe=H("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${K0}px 0`,display:"flex",justifyContent:"center"});function FNe(e){var t,r,n;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=ue(e,$Ne);const{disabled:d,disableHighlightToday:h,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:p,components:x,componentsProps:b,slots:y,slotProps:v,timezone:w}=o,S=kt(),O=jh(w),P=i!==null&&S.isSameDay(a,i),C=s.some(F=>S.isSameDay(F,a)),T=S.isSameDay(a,O),A=(t=(r=y==null?void 0:y.day)!=null?r:x==null?void 0:x.Day)!=null?t:xNe,k=at({elementType:A,externalSlotProps:(n=v==null?void 0:v.day)!=null?n:b==null?void 0:b.day,additionalProps:E({disableHighlightToday:h,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:g,"data-timestamp":S.toJsDate(a).valueOf()},f),ownerState:E({},o,{day:a,selected:C})}),I=ue(k,ENe),D=m.useMemo(()=>d||l(a),[d,l,a]),M=m.useMemo(()=>S.getMonth(a)!==u,[S,a,u]),R=m.useMemo(()=>{const F=S.startOfMonth(S.setMonth(a,u));return p?S.isSameDay(a,S.startOfWeek(F)):S.isSameDay(a,F)},[u,a,p,S]),N=m.useMemo(()=>{const F=S.endOfMonth(S.setMonth(a,u));return p?S.isSameDay(a,S.endOfWeek(F)):S.isSameDay(a,F)},[u,a,p,S]);return _.jsx(A,E({},I,{day:a,disabled:D,autoFocus:c&&P,today:T,outsideCurrentMonth:M,isFirstVisibleCell:R,isLastVisibleCell:N,selected:C,tabIndex:P?0:-1,"aria-selected":C,"aria-current":T?"date":void 0}))}function BNe(e){const t=xe({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:r,className:n,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:f,renderLoading:d=()=>_.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:g,disablePast:p,disableFuture:x,minDate:b,maxDate:y,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:O,hasFocus:P,onFocusedViewChange:C,gridLabelId:T,displayWeekNumber:A,fixedWeekNumber:k,autoFocus:I,timezone:D}=t,M=jh(D),R=kt(),N=TNe(t),j=pr().direction==="rtl",L=O||((q,U)=>R.format(U,"weekdayShort").charAt(0).toUpperCase()),B=A8({shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:S,minDate:b,maxDate:y,disablePast:p,disableFuture:x,timezone:D}),W=ps(),[X,J]=bn({name:"DayCalendar",state:"hasFocus",controlled:P,default:I??!1}),[K,ie]=m.useState(()=>i||M),de=Me(q=>{c||l(q)}),ee=q=>{B(q)||(r(q),ie(q),C==null||C(!0),J(!0))},le=Me((q,U)=>{switch(q.key){case"ArrowUp":ee(R.addDays(U,-7)),q.preventDefault();break;case"ArrowDown":ee(R.addDays(U,7)),q.preventDefault();break;case"ArrowLeft":{const ne=R.addDays(U,j?1:-1),re=R.addMonths(U,j?1:-1),se=Id({utils:R,date:ne,minDate:j?ne:R.startOfMonth(re),maxDate:j?R.endOfMonth(re):ne,isDateDisabled:B,timezone:D});ee(se||ne),q.preventDefault();break}case"ArrowRight":{const ne=R.addDays(U,j?-1:1),re=R.addMonths(U,j?-1:1),se=Id({utils:R,date:ne,minDate:j?R.startOfMonth(re):ne,maxDate:j?ne:R.endOfMonth(re),isDateDisabled:B,timezone:D});ee(se||ne),q.preventDefault();break}case"Home":ee(R.startOfWeek(U)),q.preventDefault();break;case"End":ee(R.endOfWeek(U)),q.preventDefault();break;case"PageUp":ee(R.addMonths(U,1)),q.preventDefault();break;case"PageDown":ee(R.addMonths(U,-1)),q.preventDefault();break}}),Q=Me((q,U)=>ee(U)),ae=Me((q,U)=>{X&&R.isSameDay(K,U)&&(C==null||C(!1))}),Z=R.getMonth(o),G=m.useMemo(()=>a.filter(q=>!!q).map(q=>R.startOfDay(q)),[R,a]),oe=Z,fe=m.useMemo(()=>m.createRef(),[oe]),ge=R.startOfWeek(M),Ae=m.useMemo(()=>{const q=R.startOfMonth(o),U=R.endOfMonth(o);return B(K)||R.isAfterDay(K,U)||R.isBeforeDay(K,q)?Id({utils:R,date:K,minDate:q,maxDate:U,disablePast:p,disableFuture:x,isDateDisabled:B,timezone:D}):K},[o,x,p,K,B,R,D]),V=m.useMemo(()=>{const q=R.setTimezone(o,D),U=R.getWeekArray(q);let ne=R.addMonths(q,1);for(;k&&U.length{U.length{var ne;const re=R.format(q,"weekdayShort").slice(0,2);return _.jsx(RNe,{variant:"caption",role:"columnheader","aria-label":R.format(R.addDays(ge,U),"weekday"),className:N.weekDayLabel,children:(ne=L==null?void 0:L(re,q))!=null?ne:re},re+U.toString())})]}),s?_.jsx(DNe,{className:N.loadingContainer,children:d()}):_.jsx(jNe,E({transKey:oe,onExited:u,reduceAnimations:f,slideDirection:h,className:Sn(n,N.slideTransition)},g,{nodeRef:fe,children:_.jsx(NNe,{ref:fe,role:"rowgroup",className:N.monthContainer,children:V.map((q,U)=>_.jsxs(LNe,{role:"row",className:N.weekContainer,"aria-rowindex":U+1,children:[A&&_.jsx(INe,{className:N.weekNumber,role:"rowheader","aria-label":W.calendarWeekNumberAriaLabelText(R.getWeekNumber(q[0])),children:W.calendarWeekNumberText(R.getWeekNumber(q[0]))}),q.map((ne,re)=>_.jsx(FNe,{parentProps:t,day:ne,selectedDays:G,focusableDay:Ae,onKeyDown:le,onFocus:Q,onBlur:ae,onDaySelect:de,isDateDisabled:B,currentMonthNumber:Z,isViewFocused:X,"aria-colindex":re+1},ne.toString()))]},`week-${q[0]}`))})}))]})}const zNe=(e,t,r)=>(n,o)=>{switch(o.type){case"changeMonth":return E({},n,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return E({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(n.focusedDay!=null&&o.focusedDay!=null&&r.isSameDay(o.focusedDay,n.focusedDay))return n;const a=o.focusedDay!=null&&!t&&!r.isSameMonth(n.currentMonth,o.focusedDay);return E({},n,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?r.startOfMonth(o.focusedDay):n.currentMonth,slideDirection:o.focusedDay!=null&&r.isAfterDay(o.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},VNe=e=>{const{value:t,referenceDate:r,defaultCalendarMonth:n,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:f,timezone:d}=e,h=jh(d),g=kt(),p=m.useRef(zNe(!!c,i,g)).current,x=m.useMemo(()=>{let C=null;return r?C=r:n&&(C=g.startOfMonth(n)),Ga.getInitialReferenceValue({value:t,utils:g,timezone:d,props:e,referenceDate:C,granularity:Xo.day})},[]),[b,y]=m.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:t||h,currentMonth:g.startOfMonth(x),slideDirection:"left"}),v=m.useCallback(C=>{y(E({type:"changeMonth"},C)),u&&u(C.newMonth)},[u]),w=m.useCallback(C=>{const T=C;g.isSameMonth(T,b.currentMonth)||v({newMonth:g.startOfMonth(T),direction:g.isAfterDay(T,b.currentMonth)?"left":"right"})},[b.currentMonth,v,g]),S=A8({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:d}),O=m.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),P=Me((C,T)=>{S(C)||y({type:"changeFocusedDay",focusedDay:C,withoutMonthSwitchingAnimation:T})});return{referenceDate:x,calendarState:b,changeMonth:w,changeFocusedDay:P,isDateDisabled:S,onMonthSwitchingAnimationEnd:O,handleChangeMonth:v}},UNe=["props","getOpenDialogAriaText"],WNe=["ownerState"],HNe=["ownerState"],qNe=e=>{var t,r,n,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=ue(e,UNe);const{slots:u,slotProps:c,className:f,sx:d,format:h,formatDensity:g,timezone:p,label:x,inputRef:b,readOnly:y,disabled:v,autoFocus:w,localeText:S,reduceAnimations:O}=i,P=kt(),C=m.useRef(null),T=m.useRef(null),A=Ha(),k=(t=c==null||(r=c.toolbar)==null?void 0:r.hidden)!=null?t:!1,{open:I,actions:D,hasUIView:M,layoutProps:R,renderCurrentView:N,shouldRestoreFocus:F,fieldProps:j}=S8(E({},l,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=(n=u.inputAdornment)!=null?n:Vi,B=at({elementType:L,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:i}),W=ue(B,WNe),X=(o=u.openPickerButton)!=null?o:vt,J=at({elementType:X,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:v||y,onClick:I?D.onClose:D.onOpen,"aria-label":s(j.value,P),edge:W.position},ownerState:i}),K=ue(J,HNe),ie=u.openPickerIcon,de=u.field,ee=at({elementType:de,externalSlotProps:c==null?void 0:c.field,additionalProps:E({},j,k&&{id:A},{readOnly:y,disabled:v,className:f,sx:d,format:h,formatDensity:g,timezone:p,label:x,autoFocus:w&&!i.open,focused:I?!0:void 0}),ownerState:i});M&&(ee.InputProps=E({},ee.InputProps,{ref:T,[`${W.position}Adornment`]:_.jsx(L,E({},W,{children:_.jsx(X,E({},K,{children:_.jsx(ie,E({},c==null?void 0:c.openPickerIcon))}))}))}));const le=E({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},ee.slots),Q=(a=u.layout)!=null?a:C8,ae=ut(C,ee.inputRef,b);let Z=A;k&&(x?Z=`${A}-label`:Z=void 0);const G=E({},c,{toolbar:E({},c==null?void 0:c.toolbar,{titleId:A}),popper:E({"aria-labelledby":Z},c==null?void 0:c.popper)});return{renderPicker:()=>_.jsxs(q0,{localeText:S,children:[_.jsx(de,E({},ee,{slots:le,slotProps:G,inputRef:ae})),_.jsx(Nje,E({role:"dialog",placement:"bottom-start",anchorEl:T.current},D,{open:I,slots:u,slotProps:G,shouldRestoreFocus:F,reduceAnimations:O,children:_.jsx(Q,E({},R,G==null?void 0:G.layout,{slots:u,slotProps:G,children:N()}))}))]})}},GNe=e=>{var t,r,n;const o=kt(),a=Dh();return E({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(n=e.format)!=null?n:o.formats.keyboardDate,minDate:uo(o,e.minDate,a.minDate),maxDate:uo(o,e.maxDate,a.maxDate)})},KNe=({props:e,inputRef:t})=>{const r=GNe(e),{forwardedProps:n,internalProps:o}=pNe(r,"date");return Vje({inputRef:t,forwardedProps:n,internalProps:o,valueManager:Ga,fieldValueManager:KDe,validator:Y0,valueType:"date"})},YNe=["ownerState"],XNe=({clearable:e,fieldProps:t,InputProps:r,onClear:n,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,u,c,f,d,h;const g=ps(),p=(l=(u=o==null?void 0:o.clearButton)!=null?u:i==null?void 0:i.ClearButton)!=null?l:vt,x=at({elementType:p,externalSlotProps:(c=a==null?void 0:a.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),b=ue(x,YNe),y=(f=(d=o==null?void 0:o.clearIcon)!=null?d:i==null?void 0:i.ClearIcon)!=null?f:dje,v=at({elementType:y,externalSlotProps:(h=a==null?void 0:a.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),w=E({},r,{endAdornment:e?_.jsxs(m.Fragment,{children:[_.jsx(Vi,{position:"end",sx:{marginRight:r!=null&&r.endAdornment?-1:-1.5},children:_.jsx(p,E({},b,{onClick:n,children:_.jsx(y,E({fontSize:"small"},v))}))}),r==null?void 0:r.endAdornment]}):r==null?void 0:r.endAdornment}),S=E({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:w,fieldProps:S}},QNe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],JNe=["inputRef"],ZNe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],M8=m.forwardRef(function(t,r){var n,o,a;const i=xe({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:d}=i,h=ue(i,QNe),g=i,p=(n=(o=u==null?void 0:u.textField)!=null?o:s==null?void 0:s.TextField)!=null?n:L0,x=at({elementType:p,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:g}),{inputRef:b}=x,y=ue(x,JNe);y.inputProps=E({},d,y.inputProps),y.InputProps=E({},f,y.InputProps);const v=KNe({props:y,inputRef:b}),{ref:w,onPaste:S,onKeyDown:O,inputMode:P,readOnly:C,clearable:T,onClear:A}=v,k=ue(v,ZNe),{InputProps:I,fieldProps:D}=XNe({onClear:A,clearable:T,fieldProps:k,InputProps:k.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return _.jsx(p,E({ref:r},D,{InputProps:E({},I,{readOnly:C}),inputProps:E({},k.inputProps,{inputMode:P,onPaste:S,onKeyDown:O,ref:w})}))}),eLe=e=>Oe("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const tLe=e=>{const{classes:t}=e;return Se({root:["root"]},eLe,t)},LD=500,rLe=H(oE,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function I8(e){const t=xe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:n,reduceAnimations:o,transKey:a}=t,i=tLe(t);return o?r:_.jsx(rLe,{className:Sn(i.root,n),children:_.jsx(Qc,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:LD,enter:LD/2,exit:0},children:r},a)})}function nLe(e){return Oe("MuiPickersMonth",e)}const Ev=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),oLe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],aLe=e=>{const{disabled:t,selected:r,classes:n}=e;return Se({root:["root"],monthButton:["monthButton",t&&"disabled",r&&"selected"]},nLe,n)},iLe=H("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),sLe=H("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ev.disabled}`]:t.disabled},{[`&.${Ev.selected}`]:t.selected}]})(({theme:e})=>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})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),lLe=m.memo(function(t){const r=xe({props:t,name:"MuiPickersMonth"}),{autoFocus:n,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:d,"aria-current":h,"aria-label":g}=r,p=ue(r,oLe),x=m.useRef(null),b=aLe(r);return sr(()=>{if(n){var y;(y=x.current)==null||y.focus()}},[n]),_.jsx(iLe,E({className:b.root,ownerState:r},p,{children:_.jsx(sLe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":h,"aria-checked":i,"aria-label":g,onClick:y=>u(y,s),onKeyDown:y=>c(y,s),onFocus:y=>f(y,s),onBlur:y=>d(y,s),className:b.monthButton,ownerState:r,children:o})}))});function uLe(e){return Oe("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const cLe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],fLe=e=>{const{classes:t}=e;return Se({root:["root"]},uLe,t)};function dLe(e,t){const r=kt(),n=Dh(),o=xe({props:e,name:t});return E({disableFuture:!1,disablePast:!1},o,{minDate:uo(r,o.minDate,n.minDate),maxDate:uo(r,o.maxDate,n.maxDate)})}const pLe=H("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),hLe=m.forwardRef(function(t,r){const n=dLe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:f,minDate:d,onChange:h,shouldDisableMonth:g,readOnly:p,disableHighlightToday:x,autoFocus:b=!1,onMonthFocus:y,hasFocus:v,onFocusedViewChange:w,monthsPerRow:S=3,timezone:O,gridLabelId:P}=n,C=ue(n,cLe),{value:T,handleValueChange:A,timezone:k}=TT({name:"MonthCalendar",timezone:O,value:a,defaultValue:i,onChange:h,valueManager:Ga}),I=jh(k),D=Yc(),M=kt(),R=m.useMemo(()=>Ga.getInitialReferenceValue({value:T,utils:M,props:n,timezone:k,referenceDate:s,granularity:Xo.month}),[]),N=n,F=fLe(N),j=m.useMemo(()=>M.getMonth(I),[M,I]),L=m.useMemo(()=>T!=null?M.getMonth(T):x?null:M.getMonth(R),[T,M,x,R]),[B,W]=m.useState(()=>L||j),[X,J]=bn({name:"MonthCalendar",state:"hasFocus",controlled:v,default:b??!1}),K=Me(Z=>{J(Z),w&&w(Z)}),ie=m.useCallback(Z=>{const G=M.startOfMonth(c&&M.isAfter(I,d)?I:d),oe=M.startOfMonth(u&&M.isBefore(I,f)?I:f),fe=M.startOfMonth(Z);return M.isBefore(fe,G)||M.isAfter(fe,oe)?!0:g?g(fe):!1},[u,c,f,d,I,g,M]),de=Me((Z,G)=>{if(p)return;const oe=M.setMonth(T??R,G);A(oe)}),ee=Me(Z=>{ie(M.setMonth(T??R,Z))||(W(Z),K(!0),y&&y(Z))});m.useEffect(()=>{W(Z=>L!==null&&Z!==L?L:Z)},[L]);const le=Me((Z,G)=>{switch(Z.key){case"ArrowUp":ee((12+G-3)%12),Z.preventDefault();break;case"ArrowDown":ee((12+G+3)%12),Z.preventDefault();break;case"ArrowLeft":ee((12+G+(D.direction==="ltr"?-1:1))%12),Z.preventDefault();break;case"ArrowRight":ee((12+G+(D.direction==="ltr"?1:-1))%12),Z.preventDefault();break}}),Q=Me((Z,G)=>{ee(G)}),ae=Me((Z,G)=>{B===G&&K(!1)});return _.jsx(pLe,E({ref:r,className:Sn(F.root,o),ownerState:N,role:"radiogroup","aria-labelledby":P},C,{children:CT(M,T??R).map(Z=>{const G=M.getMonth(Z),oe=M.format(Z,"monthShort"),fe=M.format(Z,"month"),ge=G===L,Ae=l||ie(Z);return _.jsx(lLe,{selected:ge,value:G,onClick:de,onKeyDown:le,autoFocus:X&&G===B,disabled:Ae,tabIndex:G===B?0:-1,onFocus:Q,onBlur:ae,"aria-current":j===G?"date":void 0,"aria-label":fe,monthsPerRow:S,children:oe},oe)})}))});function vLe(e){return Oe("MuiPickersYear",e)}const Tv=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),mLe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],gLe=e=>{const{disabled:t,selected:r,classes:n}=e;return Se({root:["root"],yearButton:["yearButton",t&&"disabled",r&&"selected"]},vLe,n)},yLe=H("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),bLe=H("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Tv.disabled}`]:t.disabled},{[`&.${Tv.selected}`]:t.selected}]})(({theme:e})=>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.focusOpacity})`:Ne(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Tv.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Tv.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),xLe=m.memo(function(t){const r=xe({props:t,name:"MuiPickersYear"}),{autoFocus:n,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:f,onFocus:d,onBlur:h,"aria-current":g}=r,p=ue(r,mLe),x=m.useRef(null),b=gLe(r);return m.useEffect(()=>{n&&x.current.focus()},[n]),_.jsx(yLe,E({className:Sn(b.root,o),ownerState:r},p,{children:_.jsx(bLe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:u,"aria-current":g,"aria-checked":s,onClick:y=>c(y,l),onKeyDown:y=>f(y,l),onFocus:y=>d(y,l),onBlur:y=>h(y,l),className:b.yearButton,ownerState:r,children:a})}))});function wLe(e){return Oe("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const SLe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],OLe=e=>{const{classes:t}=e;return Se({root:["root"]},wLe,t)};function PLe(e,t){const r=kt(),n=Dh(),o=xe({props:e,name:t});return E({disablePast:!1,disableFuture:!1},o,{minDate:uo(r,o.minDate,n.minDate),maxDate:uo(r,o.maxDate,n.maxDate)})}const CLe=H("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304,boxSizing:"border-box",position:"relative"}),_Le=m.forwardRef(function(t,r){const n=PLe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:f,maxDate:d,minDate:h,onChange:g,readOnly:p,shouldDisableYear:x,disableHighlightToday:b,onYearFocus:y,hasFocus:v,onFocusedViewChange:w,yearsPerRow:S=3,timezone:O,gridLabelId:P}=n,C=ue(n,SLe),{value:T,handleValueChange:A,timezone:k}=TT({name:"YearCalendar",timezone:O,value:i,defaultValue:s,onChange:g,valueManager:Ga}),I=jh(k),D=Yc(),M=kt(),R=m.useMemo(()=>Ga.getInitialReferenceValue({value:T,utils:M,props:n,timezone:k,referenceDate:l,granularity:Xo.year}),[]),N=n,F=OLe(N),j=m.useMemo(()=>M.getYear(I),[M,I]),L=m.useMemo(()=>T!=null?M.getYear(T):b?null:M.getYear(R),[T,M,b,R]),[B,W]=m.useState(()=>L||j),[X,J]=bn({name:"YearCalendar",state:"hasFocus",controlled:v,default:o??!1}),K=Me(oe=>{J(oe),w&&w(oe)}),ie=m.useCallback(oe=>{if(f&&M.isBeforeYear(oe,I)||c&&M.isAfterYear(oe,I)||h&&M.isBeforeYear(oe,h)||d&&M.isAfterYear(oe,d))return!0;if(!x)return!1;const fe=M.startOfYear(oe);return x(fe)},[c,f,d,h,I,x,M]),de=Me((oe,fe)=>{if(p)return;const ge=M.setYear(T??R,fe);A(ge)}),ee=Me(oe=>{ie(M.setYear(T??R,oe))||(W(oe),K(!0),y==null||y(oe))});m.useEffect(()=>{W(oe=>L!==null&&oe!==L?L:oe)},[L]);const le=Me((oe,fe)=>{switch(oe.key){case"ArrowUp":ee(fe-S),oe.preventDefault();break;case"ArrowDown":ee(fe+S),oe.preventDefault();break;case"ArrowLeft":ee(fe+(D.direction==="ltr"?-1:1)),oe.preventDefault();break;case"ArrowRight":ee(fe+(D.direction==="ltr"?1:-1)),oe.preventDefault();break}}),Q=Me((oe,fe)=>{ee(fe)}),ae=Me((oe,fe)=>{B===fe&&K(!1)}),Z=m.useRef(null),G=ut(r,Z);return m.useEffect(()=>{if(o||Z.current===null)return;const oe=Z.current.querySelector('[tabindex="0"]');if(!oe)return;const fe=oe.offsetHeight,ge=oe.offsetTop,Ae=Z.current.clientHeight,V=Z.current.scrollTop,q=ge+fe;fe>Ae||ge{const fe=M.getYear(oe),ge=fe===L,Ae=u||ie(oe);return _.jsx(xLe,{selected:ge,value:fe,onClick:de,onKeyDown:le,autoFocus:X&&fe===B,disabled:Ae,tabIndex:fe===B?0:-1,onFocus:Q,onBlur:ae,"aria-current":j===fe?"date":void 0,yearsPerRow:S,children:M.format(oe,"year")},M.format(oe,"year"))})}))}),$Le=e=>Oe("MuiPickersCalendarHeader",e),ELe=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),TLe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],kLe=["ownerState"],ALe=e=>{const{classes:t}=e;return Se({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},$Le,t)},RLe=H("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),MLe=H("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>E({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),ILe=H("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),DLe=H(vt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>E({marginRight:"auto"},e.view==="year"&&{[`.${ELe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),jLe=H(lje,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),NLe=m.forwardRef(function(t,r){var n,o;const a=ps(),i=kt(),s=xe({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:u,currentMonth:c,disabled:f,disableFuture:d,disablePast:h,maxDate:g,minDate:p,onMonthChange:x,onViewChange:b,view:y,reduceAnimations:v,views:w,labelId:S,className:O,timezone:P}=s,C=ue(s,TLe),T=s,A=ALe(s),k=(n=l==null?void 0:l.switchViewButton)!=null?n:DLe,I=at({elementType:k,externalSlotProps:u==null?void 0:u.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:T,className:A.switchViewButton}),D=(o=l==null?void 0:l.switchViewIcon)!=null?o:jLe,M=at({elementType:D,externalSlotProps:u==null?void 0:u.switchViewIcon,ownerState:void 0,className:A.switchViewIcon}),R=ue(M,kLe),N=()=>x(i.addMonths(c,1),"left"),F=()=>x(i.addMonths(c,-1),"right"),j=uNe(c,{disableFuture:d,maxDate:g,timezone:P}),L=cNe(c,{disablePast:h,minDate:p,timezone:P}),B=()=>{if(!(w.length===1||!b||f))if(w.length===2)b(w.find(W=>W!==y)||w[0]);else{const W=w.indexOf(y)!==0?0:1;b(w[W])}};return w.length===1&&w[0]==="year"?null:_.jsxs(RLe,E({},C,{ownerState:T,className:Sn(O,A.root),ref:r,children:[_.jsxs(MLe,{role:"presentation",onClick:B,ownerState:T,"aria-live":"polite",className:A.labelContainer,children:[_.jsx(I8,{reduceAnimations:v,transKey:i.format(c,"monthAndYear"),children:_.jsx(ILe,{id:S,ownerState:T,className:A.label,children:i.format(c,"monthAndYear")})}),w.length>1&&!f&&_.jsx(k,E({},I,{children:_.jsx(D,E({},R))}))]}),_.jsx(Qc,{in:y==="day",children:_.jsx(xje,{slots:l,slotProps:u,onGoToPrevious:F,isPreviousDisabled:L,previousLabel:a.previousMonth,onGoToNext:N,isNextDisabled:j,nextLabel:a.nextMonth})})]}))}),LLe=H("div")({overflow:"hidden",width:g8,maxHeight:y8,display:"flex",flexDirection:"column",margin:"0 auto"}),FLe=e=>Oe("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const BLe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],zLe=e=>{const{classes:t}=e;return Se({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},FLe,t)};function VLe(e,t){var r,n,o,a,i,s,l;const u=kt(),c=Dh(),f=b8(),d=xe({props:e,name:t});return E({},d,{loading:(r=d.loading)!=null?r:!1,disablePast:(n=d.disablePast)!=null?n:!1,disableFuture:(o=d.disableFuture)!=null?o:!1,openTo:(a=d.openTo)!=null?a:"day",views:(i=d.views)!=null?i:["year","day"],reduceAnimations:(s=d.reduceAnimations)!=null?s:f,renderLoading:(l=d.renderLoading)!=null?l:()=>_.jsx("span",{children:"..."}),minDate:uo(u,d.minDate,c.minDate),maxDate:uo(u,d.maxDate,c.maxDate)})}const ULe=H(LLe,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),WLe=H(I8,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),HLe=m.forwardRef(function(t,r){var n,o,a;const i=kt(),s=Ha(),l=VLe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:f,defaultValue:d,referenceDate:h,disableFuture:g,disablePast:p,defaultCalendarMonth:x,onChange:b,onYearChange:y,onMonthChange:v,reduceAnimations:w,shouldDisableDate:S,shouldDisableMonth:O,shouldDisableYear:P,view:C,views:T,openTo:A,className:k,disabled:I,readOnly:D,minDate:M,maxDate:R,disableHighlightToday:N,focusedView:F,onFocusedViewChange:j,showDaysOutsideCurrentMonth:L,fixedWeekNumber:B,dayOfWeekFormatter:W,components:X,componentsProps:J,slots:K,slotProps:ie,loading:de,renderLoading:ee,displayWeekNumber:le,yearsPerRow:Q,monthsPerRow:ae,timezone:Z}=l,G=ue(l,BLe),{value:oe,handleValueChange:fe,timezone:ge}=TT({name:"DateCalendar",timezone:Z,value:f,defaultValue:d,onChange:b,valueManager:Ga}),{view:Ae,setView:V,focusedView:q,setFocusedView:U,goToNextView:ne,setValueAndGoToNextView:re}=w8({view:C,views:T,openTo:A,onChange:fe,onViewChange:c,autoFocus:u,focusedView:F,onFocusedViewChange:j}),{referenceDate:se,calendarState:me,changeFocusedDay:Ce,changeMonth:je,handleChangeMonth:He,isDateDisabled:rt,onMonthSwitchingAnimationEnd:Ue}=VNe({value:oe,defaultCalendarMonth:x,referenceDate:h,reduceAnimations:w,onMonthChange:v,minDate:M,maxDate:R,shouldDisableDate:S,disablePast:p,disableFuture:g,timezone:ge}),ke=I&&oe||M,ht=I&&oe||R,Pt=`${s}-grid-label`,_e=q!==null,Y=(n=(o=K==null?void 0:K.calendarHeader)!=null?o:X==null?void 0:X.CalendarHeader)!=null?n:NLe,te=at({elementType:Y,externalSlotProps:(a=ie==null?void 0:ie.calendarHeader)!=null?a:J==null?void 0:J.calendarHeader,additionalProps:{views:T,view:Ae,currentMonth:me.currentMonth,onViewChange:V,onMonthChange:(Ge,At)=>He({newMonth:Ge,direction:At}),minDate:ke,maxDate:ht,disabled:I,disablePast:p,disableFuture:g,reduceAnimations:w,timezone:ge,labelId:Pt,slots:K,slotProps:ie},ownerState:l}),he=Me(Ge=>{const At=i.startOfMonth(Ge),yo=i.endOfMonth(Ge),nn=rt(Ge)?Id({utils:i,date:Ge,minDate:i.isBefore(M,At)?At:M,maxDate:i.isAfter(R,yo)?yo:R,disablePast:p,disableFuture:g,isDateDisabled:rt,timezone:ge}):Ge;nn?(re(nn,"finish"),v==null||v(At)):(ne(),je(At)),Ce(nn,!0)}),we=Me(Ge=>{const At=i.startOfYear(Ge),yo=i.endOfYear(Ge),nn=rt(Ge)?Id({utils:i,date:Ge,minDate:i.isBefore(M,At)?At:M,maxDate:i.isAfter(R,yo)?yo:R,disablePast:p,disableFuture:g,isDateDisabled:rt,timezone:ge}):Ge;nn?(re(nn,"finish"),y==null||y(nn)):(ne(),je(At)),Ce(nn,!0)}),De=Me(Ge=>fe(Ge&&TP(i,Ge,oe??se),"finish"));m.useEffect(()=>{oe!=null&&i.isValid(oe)&&je(oe)},[oe]);const $e=l,ct=zLe($e),qt={disablePast:p,disableFuture:g,maxDate:R,minDate:M},jt={disableHighlightToday:N,readOnly:D,disabled:I,timezone:ge,gridLabelId:Pt},Pr=m.useRef(Ae);m.useEffect(()=>{Pr.current!==Ae&&(q===Pr.current&&U(Ae,!0),Pr.current=Ae)},[q,U,Ae]);const go=m.useMemo(()=>[oe],[oe]);return _.jsxs(ULe,E({ref:r,className:Sn(ct.root,k),ownerState:$e},G,{children:[_.jsx(Y,E({},te)),_.jsx(WLe,{reduceAnimations:w,className:ct.viewTransitionContainer,transKey:Ae,ownerState:$e,children:_.jsxs("div",{children:[Ae==="year"&&_.jsx(_Le,E({},qt,jt,{value:oe,onChange:we,shouldDisableYear:P,hasFocus:_e,onFocusedViewChange:Ge=>U("year",Ge),yearsPerRow:Q,referenceDate:se})),Ae==="month"&&_.jsx(hLe,E({},qt,jt,{hasFocus:_e,className:k,value:oe,onChange:he,shouldDisableMonth:O,onFocusedViewChange:Ge=>U("month",Ge),monthsPerRow:ae,referenceDate:se})),Ae==="day"&&_.jsx(BNe,E({},me,qt,jt,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:Ce,reduceAnimations:w,selectedDays:go,onSelectedDaysChange:De,shouldDisableDate:S,shouldDisableMonth:O,shouldDisableYear:P,hasFocus:_e,onFocusedViewChange:Ge=>U("day",Ge),showDaysOutsideCurrentMonth:L,fixedWeekNumber:B,dayOfWeekFormatter:W,displayWeekNumber:le,components:X,componentsProps:J,slots:K,slotProps:ie,loading:de,renderLoading:ee}))]})})]}))}),Fu=({view:e,onViewChange:t,views:r,focusedView:n,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:f,disablePast:d,minDate:h,maxDate:g,shouldDisableDate:p,shouldDisableMonth:x,shouldDisableYear:b,reduceAnimations:y,onMonthChange:v,monthsPerRow:w,onYearChange:S,yearsPerRow:O,defaultCalendarMonth:P,components:C,componentsProps:T,slots:A,slotProps:k,loading:I,renderLoading:D,disableHighlightToday:M,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:j,sx:L,autoFocus:B,fixedWeekNumber:W,displayWeekNumber:X,timezone:J})=>_.jsx(HLe,{view:e,onViewChange:t,views:r.filter(ED),focusedView:n&&ED(n)?n:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:f,disablePast:d,minDate:h,maxDate:g,shouldDisableDate:p,shouldDisableMonth:x,shouldDisableYear:b,reduceAnimations:y,onMonthChange:v,monthsPerRow:w,onYearChange:S,yearsPerRow:O,defaultCalendarMonth:P,components:C,componentsProps:T,slots:A,slotProps:k,loading:I,renderLoading:D,disableHighlightToday:M,readOnly:R,disabled:N,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:j,sx:L,autoFocus:B,fixedWeekNumber:W,displayWeekNumber:X,timezone:J}),D8=m.forwardRef(function(t,r){var n,o,a,i;const s=ps(),l=kt(),u=m8(t,"MuiDesktopDatePicker"),c=E({day:Fu,month:Fu,year:Fu},u.viewRenderers),f=E({},u,{viewRenderers:c,format:_T(l,u,!1),yearsPerRow:(n=u.yearsPerRow)!=null?n:4,slots:E({openPickerIcon:fje,field:M8},u.slots),slotProps:E({},u.slotProps,{field:h=>{var g;return E({},iE((g=u.slotProps)==null?void 0:g.field,h),$8(u),{ref:r})},toolbar:E({hidden:!0},(o=u.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:d}=qNe({props:f,valueManager:Ga,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:Y0});return d()});D8.propTypes={autoFocus:$.bool,className:$.string,closeOnSelect:$.bool,components:$.object,componentsProps:$.object,dayOfWeekFormatter:$.func,defaultCalendarMonth:$.any,defaultValue:$.any,disabled:$.bool,disableFuture:$.bool,disableHighlightToday:$.bool,disableOpenPicker:$.bool,disablePast:$.bool,displayWeekNumber:$.bool,fixedWeekNumber:$.number,format:$.string,formatDensity:$.oneOf(["dense","spacious"]),inputRef:X5,label:$.node,loading:$.bool,localeText:$.object,maxDate:$.any,minDate:$.any,monthsPerRow:$.oneOf([3,4]),onAccept:$.func,onChange:$.func,onClose:$.func,onError:$.func,onMonthChange:$.func,onOpen:$.func,onSelectedSectionsChange:$.func,onViewChange:$.func,onYearChange:$.func,open:$.bool,openTo:$.oneOf(["day","month","year"]),orientation:$.oneOf(["landscape","portrait"]),readOnly:$.bool,reduceAnimations:$.bool,referenceDate:$.any,renderLoading:$.func,selectedSections:$.oneOfType([$.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),$.number,$.shape({endIndex:$.number.isRequired,startIndex:$.number.isRequired})]),shouldDisableDate:$.func,shouldDisableMonth:$.func,shouldDisableYear:$.func,showDaysOutsideCurrentMonth:$.bool,slotProps:$.object,slots:$.object,sx:$.oneOfType([$.arrayOf($.oneOfType([$.func,$.object,$.bool])),$.func,$.object]),timezone:$.string,value:$.any,view:$.oneOf(["day","month","year"]),viewRenderers:$.shape({day:$.func,month:$.func,year:$.func}),views:$.arrayOf($.oneOf(["day","month","year"]).isRequired),yearsPerRow:$.oneOf([3,4])};const qLe=["props","getOpenDialogAriaText"],GLe=e=>{var t,r,n;let{props:o,getOpenDialogAriaText:a}=e,i=ue(e,qLe);const{slots:s,slotProps:l,className:u,sx:c,format:f,formatDensity:d,timezone:h,label:g,inputRef:p,readOnly:x,disabled:b,localeText:y}=o,v=kt(),w=m.useRef(null),S=Ha(),O=(t=l==null||(r=l.toolbar)==null?void 0:r.hidden)!=null?t:!1,{open:P,actions:C,layoutProps:T,renderCurrentView:A,fieldProps:k}=S8(E({},i,{props:o,inputRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),I=s.field,D=at({elementType:I,externalSlotProps:l==null?void 0:l.field,additionalProps:E({},k,O&&{id:S},!(b||x)&&{onClick:C.onOpen,onKeyDown:_je(C.onOpen)},{readOnly:x??!0,disabled:b,className:u,sx:c,format:f,formatDensity:d,timezone:h,label:g}),ownerState:o});D.inputProps=E({},D.inputProps,{"aria-label":a(k.value,v)});const M=E({textField:s.textField},D.slots),R=(n=s.layout)!=null?n:C8,N=ut(w,D.inputRef,p);let F=S;O&&(g?F=`${S}-label`:F=void 0);const j=E({},l,{toolbar:E({},l==null?void 0:l.toolbar,{titleId:S}),mobilePaper:E({"aria-labelledby":F},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>_.jsxs(q0,{localeText:y,children:[_.jsx(I,E({},D,{slots:M,slotProps:j,inputRef:N})),_.jsx(Oje,E({},C,{open:P,slots:s,slotProps:j,children:_.jsx(R,E({},T,j==null?void 0:j.layout,{slots:s,slotProps:j,children:A()}))}))]})}},j8=m.forwardRef(function(t,r){var n,o,a;const i=ps(),s=kt(),l=m8(t,"MuiMobileDatePicker"),u=E({day:Fu,month:Fu,year:Fu},l.viewRenderers),c=E({},l,{viewRenderers:u,format:_T(s,l,!1),slots:E({field:M8},l.slots),slotProps:E({},l.slotProps,{field:d=>{var h;return E({},iE((h=l.slotProps)==null?void 0:h.field,d),$8(l),{ref:r})},toolbar:E({hidden:!1},(n=l.slotProps)==null?void 0:n.toolbar)})}),{renderPicker:f}=GLe({props:c,valueManager:Ga,valueType:"date",getOpenDialogAriaText:(o=(a=c.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:Y0});return f()});j8.propTypes={autoFocus:$.bool,className:$.string,closeOnSelect:$.bool,components:$.object,componentsProps:$.object,dayOfWeekFormatter:$.func,defaultCalendarMonth:$.any,defaultValue:$.any,disabled:$.bool,disableFuture:$.bool,disableHighlightToday:$.bool,disableOpenPicker:$.bool,disablePast:$.bool,displayWeekNumber:$.bool,fixedWeekNumber:$.number,format:$.string,formatDensity:$.oneOf(["dense","spacious"]),inputRef:X5,label:$.node,loading:$.bool,localeText:$.object,maxDate:$.any,minDate:$.any,monthsPerRow:$.oneOf([3,4]),onAccept:$.func,onChange:$.func,onClose:$.func,onError:$.func,onMonthChange:$.func,onOpen:$.func,onSelectedSectionsChange:$.func,onViewChange:$.func,onYearChange:$.func,open:$.bool,openTo:$.oneOf(["day","month","year"]),orientation:$.oneOf(["landscape","portrait"]),readOnly:$.bool,reduceAnimations:$.bool,referenceDate:$.any,renderLoading:$.func,selectedSections:$.oneOfType([$.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),$.number,$.shape({endIndex:$.number.isRequired,startIndex:$.number.isRequired})]),shouldDisableDate:$.func,shouldDisableMonth:$.func,shouldDisableYear:$.func,showDaysOutsideCurrentMonth:$.bool,slotProps:$.object,slots:$.object,sx:$.oneOfType([$.arrayOf($.oneOfType([$.func,$.object,$.bool])),$.func,$.object]),timezone:$.string,value:$.any,view:$.oneOf(["day","month","year"]),viewRenderers:$.shape({day:$.func,month:$.func,year:$.func}),views:$.arrayOf($.oneOf(["day","month","year"]).isRequired),yearsPerRow:$.oneOf([3,4])};const KLe=["desktopModeMediaQuery"],uy=m.forwardRef(function(t,r){const n=xe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=$je}=n,a=ue(n,KLe);return Cn(o,{defaultMatches:!0})?_.jsx(D8,E({ref:r},a)):_.jsx(j8,E({ref:r},a))});var N8={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o0?1:-1},Ws=function(t){return Nh(t)&&t.indexOf("%")===t.length-1},be=function(t){return lFe(t)&&!nf(t)},fr=function(t){return be(t)||Nh(t)},dFe=0,Lh=function(t){var r=++dFe;return"".concat(t||"").concat(r)},uc=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!be(t)&&!Nh(t))return n;var a;if(Ws(t)){var i=t.indexOf("%");a=r*parseFloat(t.slice(0,i))/100}else a=+t;return nf(a)&&(a=n),o&&a>r&&(a=r),a},di=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},pFe=function(t){if(!ar(t))return!1;for(var r=t.length,n={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bFe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function MP(e){"@babel/helpers - typeof";return MP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MP(e)}var zD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Hi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},VD=null,uw=null,AT=function e(t){if(t===VD&&ar(uw))return uw;var r=[];return m.Children.forEach(t,function(n){Le(n)||(W$.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),uw=r,VD=t,r};function Mo(e,t){var r=[],n=[];return ar(t)?n=t.map(function(o){return Hi(o)}):n=[Hi(t)],AT(e).forEach(function(o){var a=Qe(o,"type.displayName")||Qe(o,"type.name");n.indexOf(a)!==-1&&r.push(o)}),r}function Ia(e,t){var r=Mo(e,t);return r&&r[0]}var UD=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,o=r.height;return!(!be(n)||n<=0||!be(o)||o<=0)},xFe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],wFe=function(t){return t&&t.type&&Nh(t.type)&&xFe.indexOf(t.type)>=0},SFe=function(t){return t&&MP(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},OFe=function(t,r,n,o){var a,i=(a=lw==null?void 0:lw[o])!==null&&a!==void 0?a:[];return!Ve(t)&&(o&&i.includes(r)||vFe.includes(r))||n&&kT.includes(r)},et=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(m.isValidElement(t)&&(o=t.props),!Rc(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;OFe((s=o)===null||s===void 0?void 0:s[i],i,r,n)&&(a[i]=o[i])}),a},F8=function e(t,r){if(t===r)return!0;var n=m.Children.count(t);if(n!==m.Children.count(r))return!1;if(n===0)return!0;if(n===1)return WD(ar(t)?t[0]:t,ar(r)?r[0]:r);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EFe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function DP(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,a=e.className,i=e.style,s=$Fe(e,_Fe),l=o||{width:r,height:n,x:0,y:0},u=wt("recharts-surface",a);return z.createElement("svg",IP({},et(s,!0,"svg"),{className:u,width:r,height:n,style:i,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),z.createElement("title",null,e.title),z.createElement("desc",null,e.desc),t)}var TFe=["children","className"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AFe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Xt=z.forwardRef(function(e,t){var r=e.children,n=e.className,o=kFe(e,TFe),a=wt("recharts-layer",n);return z.createElement("g",jP({className:a},et(o,!0),{ref:t}),r)}),RFe=ri,MFe=A4;function IFe(e,t){return e&&e.length?MFe(e,RFe(t)):[]}var DFe=IFe;const py=ze(DFe);var jFe=F3;function NFe(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:jFe(e,t,r)}var LFe=NFe,FFe="\\ud800-\\udfff",BFe="\\u0300-\\u036f",zFe="\\ufe20-\\ufe2f",VFe="\\u20d0-\\u20ff",UFe=BFe+zFe+VFe,WFe="\\ufe0e\\ufe0f",HFe="\\u200d",qFe=RegExp("["+HFe+FFe+UFe+WFe+"]");function GFe(e){return qFe.test(e)}var B8=GFe;function KFe(e){return e.split("")}var YFe=KFe,z8="\\ud800-\\udfff",XFe="\\u0300-\\u036f",QFe="\\ufe20-\\ufe2f",JFe="\\u20d0-\\u20ff",ZFe=XFe+QFe+JFe,eBe="\\ufe0e\\ufe0f",tBe="["+z8+"]",NP="["+ZFe+"]",LP="\\ud83c[\\udffb-\\udfff]",rBe="(?:"+NP+"|"+LP+")",V8="[^"+z8+"]",U8="(?:\\ud83c[\\udde6-\\uddff]){2}",W8="[\\ud800-\\udbff][\\udc00-\\udfff]",nBe="\\u200d",H8=rBe+"?",q8="["+eBe+"]?",oBe="(?:"+nBe+"(?:"+[V8,U8,W8].join("|")+")"+q8+H8+")*",aBe=q8+H8+oBe,iBe="(?:"+[V8+NP+"?",NP,U8,W8,tBe].join("|")+")",sBe=RegExp(LP+"(?="+LP+")|"+iBe+aBe,"g");function lBe(e){return e.match(sBe)||[]}var uBe=lBe,cBe=YFe,fBe=B8,dBe=uBe;function pBe(e){return fBe(e)?dBe(e):cBe(e)}var hBe=pBe,vBe=LFe,mBe=B8,gBe=hBe,yBe=j3;function bBe(e){return function(t){t=yBe(t);var r=mBe(t)?gBe(t):void 0,n=r?r[0]:t.charAt(0),o=r?vBe(r,1).join(""):t.slice(1);return n[e]()+o}}var xBe=bBe,wBe=xBe,SBe=wBe("toUpperCase"),OBe=SBe;const X0=ze(OBe);function $t(e){return function(){return e}}const G8=Math.cos,hy=Math.sin,Bo=Math.sqrt,vy=Math.PI,Q0=2*vy,FP=Math.PI,BP=2*FP,ks=1e-6,PBe=BP-ks;function K8(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return K8;const r=10**t;return function(n){this._+=n[0];for(let o=1,a=n.length;oks)if(!(Math.abs(f*l-u*c)>ks)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-i,g=o-s,p=l*l+u*u,x=h*h+g*g,b=Math.sqrt(p),y=Math.sqrt(d),v=a*Math.tan((FP-Math.acos((p+d-x)/(2*b*y)))/2),w=v/y,S=v/b;Math.abs(w-1)>ks&&this._append`L${t+w*c},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+S*l},${this._y1=r+S*u}`}}arc(t,r,n,o,a,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),u=t+s,c=r+l,f=1^i,d=i?o-a:a-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ks||Math.abs(this._y1-c)>ks)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%BP+BP),d>PBe?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>ks&&this._append`A${n},${n},0,${+(d>=FP)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function RT(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new _Be(t)}function MT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Y8(e){this._context=e}Y8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function J0(e){return new Y8(e)}function X8(e){return e[0]}function Q8(e){return e[1]}function J8(e,t){var r=$t(!0),n=null,o=J0,a=null,i=RT(s);e=typeof e=="function"?e:e===void 0?X8:$t(e),t=typeof t=="function"?t:t===void 0?Q8:$t(t);function s(l){var u,c=(l=MT(l)).length,f,d=!1,h;for(n==null&&(a=o(h=i())),u=0;u<=c;++u)!(u=h;--g)s.point(v[g],w[g]);s.lineEnd(),s.areaEnd()}b&&(v[d]=+e(x,d,f),w[d]=+t(x,d,f),s.point(n?+n(x,d,f):v[d],r?+r(x,d,f):w[d]))}if(y)return s=null,y+""||null}function c(){return J8().defined(o).curve(i).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:$t(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:$t(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:$t(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:$t(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:$t(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:$t(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:$t(!!f),u):o},u.curve=function(f){return arguments.length?(i=f,a!=null&&(s=i(a)),u):i},u.context=function(f){return arguments.length?(f==null?a=s=null:s=i(a=f),u):a},u}class Z8{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function $Be(e){return new Z8(e,!0)}function EBe(e){return new Z8(e,!1)}const IT={draw(e,t){const r=Bo(t/vy);e.moveTo(r,0),e.arc(0,0,r,0,Q0)}},TBe={draw(e,t){const r=Bo(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},eW=Bo(1/3),kBe=eW*2,ABe={draw(e,t){const r=Bo(t/kBe),n=r*eW;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},RBe={draw(e,t){const r=Bo(t),n=-r/2;e.rect(n,n,r,r)}},MBe=.8908130915292852,tW=hy(vy/10)/hy(7*vy/10),IBe=hy(Q0/10)*tW,DBe=-G8(Q0/10)*tW,jBe={draw(e,t){const r=Bo(t*MBe),n=IBe*r,o=DBe*r;e.moveTo(0,-r),e.lineTo(n,o);for(let a=1;a<5;++a){const i=Q0*a/5,s=G8(i),l=hy(i);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},cw=Bo(3),NBe={draw(e,t){const r=-Bo(t/(cw*3));e.moveTo(0,r*2),e.lineTo(-cw*r,-r),e.lineTo(cw*r,-r),e.closePath()}},Wn=-.5,Hn=Bo(3)/2,zP=1/Bo(12),LBe=(zP/2+1)*3,FBe={draw(e,t){const r=Bo(t/LBe),n=r/2,o=r*zP,a=n,i=r*zP+r,s=-a,l=i;e.moveTo(n,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(Wn*n-Hn*o,Hn*n+Wn*o),e.lineTo(Wn*a-Hn*i,Hn*a+Wn*i),e.lineTo(Wn*s-Hn*l,Hn*s+Wn*l),e.lineTo(Wn*n+Hn*o,Wn*o-Hn*n),e.lineTo(Wn*a+Hn*i,Wn*i-Hn*a),e.lineTo(Wn*s+Hn*l,Wn*l-Hn*s),e.closePath()}};function BBe(e,t){let r=null,n=RT(o);e=typeof e=="function"?e:$t(e||IT),t=typeof t=="function"?t:$t(t===void 0?64:+t);function o(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:$t(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:$t(+a),o):t},o.context=function(a){return arguments.length?(r=a??null,o):r},o}function my(){}function gy(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function rW(e){this._context=e}rW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zBe(e){return new rW(e)}function nW(e){this._context=e}nW.prototype={areaStart:my,areaEnd:my,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VBe(e){return new nW(e)}function oW(e){this._context=e}oW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UBe(e){return new oW(e)}function aW(e){this._context=e}aW.prototype={areaStart:my,areaEnd:my,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function WBe(e){return new aW(e)}function qD(e){return e<0?-1:1}function GD(e,t,r){var n=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(n||o<0&&-0),i=(r-e._y1)/(o||n<0&&-0),s=(a*o+i*n)/(n+o);return(qD(a)+qD(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function KD(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fw(e,t,r){var n=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,o+s*t,a-s,i-s*r,a,i)}function yy(e){this._context=e}yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fw(this,this._t0,KD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fw(this,KD(this,r=GD(this,e,t)),r);break;default:fw(this,this._t0,r=GD(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function iW(e){this._context=new sW(e)}(iW.prototype=Object.create(yy.prototype)).point=function(e,t){yy.prototype.point.call(this,t,e)};function sW(e){this._context=e}sW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,a){this._context.bezierCurveTo(t,e,n,r,a,o)}};function HBe(e){return new yy(e)}function qBe(e){return new iW(e)}function lW(e){this._context=e}lW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=YD(e),o=YD(t),a=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function KBe(e){return new Z0(e,.5)}function YBe(e){return new Z0(e,0)}function XBe(e){return new Z0(e,1)}function cc(e,t){if((i=e.length)>1)for(var r=1,n,o,a=e[t[0]],i,s=a.length;r=0;)r[t]=t;return r}function QBe(e,t){return e[t]}function JBe(e){const t=[];return t.key=e,t}function ZBe(){var e=$t([]),t=VP,r=cc,n=QBe;function o(a){var i=Array.from(e.apply(this,arguments),JBe),s,l=i.length,u=-1,c;for(const f of a)for(s=0,++u;s0){for(var r,n,o=0,a=e[0].length,i;o0){for(var r=0,n=e[t[0]],o,a=n.length;r0)||!((a=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,a,i;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l3e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var uW={symbolCircle:IT,symbolCross:TBe,symbolDiamond:ABe,symbolSquare:RBe,symbolStar:jBe,symbolTriangle:NBe,symbolWye:FBe},u3e=Math.PI/180,c3e=function(t){var r="symbol".concat(X0(t));return uW[r]||IT},f3e=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*u3e;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},d3e=function(t,r){uW["symbol".concat(X0(t))]=r},cW=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=s3e(t,n3e),u=QD(QD({},l),{},{type:n,size:a,sizeType:s}),c=function(){var x=c3e(n),b=BBe().type(x).size(f3e(a,s,n));return b()},f=u.className,d=u.cx,h=u.cy,g=et(u,!0);return d===+d&&h===+h&&a===+a?z.createElement("path",UP({},g,{className:wt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};cW.registerSymbol=d3e;function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function WP(){return WP=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},by(e)}function bp(e,t,r){return t=fW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=w3e(e,"string");return fc(t)==="symbol"?t:String(t)}function w3e(e,t){if(fc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qn=32,DT=function(e){m3e(r,e);var t=g3e(r);function r(){return h3e(this,r),t.apply(this,arguments)}return v3e(r,[{key:"renderIcon",value:function(o){var a=this.props.inactiveColor,i=qn/2,s=qn/6,l=qn/3,u=o.inactive?a:o.color;if(o.type==="plainline")return z.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:o.payload.strokeDasharray,x1:0,y1:i,x2:qn,y2:i,className:"recharts-legend-icon"});if(o.type==="line")return z.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(l,` + A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(i,` + H`).concat(qn,"M").concat(2*l,",").concat(i,` + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(o.type==="rect")return z.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(qn/8,"h").concat(qn,"v").concat(qn*3/4,"h").concat(-qn,"z"),className:"recharts-legend-icon"});if(z.isValidElement(o.legendIcon)){var c=p3e({},o);return delete c.legendIcon,z.cloneElement(o.legendIcon,c)}return z.createElement(cW,{fill:u,cx:i,cy:i,size:qn,sizeType:"diameter",type:o.type})}},{key:"renderItems",value:function(){var o=this,a=this.props,i=a.payload,s=a.iconSize,l=a.layout,u=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:qn,height:qn},d={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(g,p){var x,b=g.formatter||u,y=wt((x={"recharts-legend-item":!0},bp(x,"legend-item-".concat(p),!0),bp(x,"inactive",g.inactive),x));if(g.type==="none")return null;var v=g.inactive?c:g.color;return z.createElement("li",WP({className:y,style:d,key:"legend-item-".concat(p)},dy(o.props,g,p)),z.createElement(DP,{width:s,height:s,viewBox:f,style:h},o.renderIcon(g)),z.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},b?b(g.value,g,p):g.value))})}},{key:"render",value:function(){var o=this.props,a=o.payload,i=o.layout,s=o.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?s:"left"};return z.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(m.PureComponent);bp(DT,"displayName","Legend");bp(DT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var S3e=["ref"];function ej(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ql(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xy(e)}function e1(e,t,r){return t=pW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pW(e){var t=T3e(e,"string");return dc(t)==="symbol"?t:String(t)}function T3e(e,t){if(dc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k3e(e,t){if(e==null)return{};var r=A3e(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A3e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function R3e(e){return e.value}function M3e(e,t){return e===!0?py(t,R3e):Ve(e)?py(t,e):t}function I3e(e,t){if(z.isValidElement(e))return z.cloneElement(e,t);if(Ve(e))return z.createElement(e,t);t.ref;var r=k3e(t,S3e);return z.createElement(DT,r)}var rj=1,Ka=function(e){C3e(r,e);var t=_3e(r);function r(){var n;O3e(this,r);for(var o=arguments.length,a=new Array(o),i=0;i=0&&i>=0?{width:a,height:i}:null}},{key:"getDefaultPosition",value:function(o){var a=this.props,i=a.layout,s=a.align,l=a.verticalAlign,u=a.margin,c=a.chartWidth,f=a.chartHeight,d,h;if(!o||(o.left===void 0||o.left===null)&&(o.right===void 0||o.right===null))if(s==="center"&&i==="vertical"){var g=this.getBBoxSnapshot()||{width:0};d={left:((c||0)-g.width)/2}}else d=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!o||(o.top===void 0||o.top===null)&&(o.bottom===void 0||o.bottom===null))if(l==="middle"){var p=this.getBBoxSnapshot()||{height:0};h={top:((f||0)-p.height)/2}}else h=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ql(ql({},d),h)}},{key:"updateBBox",value:function(){var o=this.state,a=o.boxWidth,i=o.boxHeight,s=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var l=this.wrapperNode.getBoundingClientRect();(Math.abs(l.width-a)>rj||Math.abs(l.height-i)>rj)&&this.setState({boxWidth:l.width,boxHeight:l.height},function(){s&&s(l)})}else(a!==-1||i!==-1)&&this.setState({boxWidth:-1,boxHeight:-1},function(){s&&s(null)})}},{key:"render",value:function(){var o=this,a=this.props,i=a.content,s=a.width,l=a.height,u=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=ql(ql({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return z.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){o.wrapperNode=g}},I3e(i,ql(ql({},this.props),{},{payload:M3e(c,f)})))}}],[{key:"getWithHeight",value:function(o,a){var i=o.props.layout;return i==="vertical"&&be(o.props.height)?{height:o.props.height}:i==="horizontal"?{width:o.props.width||a}:null}}]),r}(m.PureComponent);e1(Ka,"displayName","Legend");e1(Ka,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var D3e=Object.getOwnPropertyNames,j3e=Object.getOwnPropertySymbols,N3e=Object.prototype.hasOwnProperty;function nj(e,t){return function(n,o,a){return e(n,o,a)&&t(n,o,a)}}function Av(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function oj(e){return D3e(e).concat(j3e(e))}var hW=Object.hasOwn||function(e,t){return N3e.call(e,t)};function of(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var vW="_owner",aj=Object.getOwnPropertyDescriptor,ij=Object.keys;function L3e(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function F3e(e,t){return of(e.getTime(),t.getTime())}function sj(e,t,r){if(e.size!==t.size)return!1;for(var n={},o=e.entries(),a=0,i,s;(i=o.next())&&!i.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var f=i.value,d=f[0],h=f[1],g=s.value,p=g[0],x=g[1];!u&&!n[c]&&(u=r.equals(d,p,a,c,e,t,r)&&r.equals(h,x,d,p,e,t,r))&&(n[c]=!0),c++}if(!u)return!1;a++}return!0}function B3e(e,t,r){var n=ij(e),o=n.length;if(ij(t).length!==o)return!1;for(var a;o-- >0;)if(a=n[o],a===vW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!hW(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function jf(e,t,r){var n=oj(e),o=n.length;if(oj(t).length!==o)return!1;for(var a,i,s;o-- >0;)if(a=n[o],a===vW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!hW(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(i=aj(e,a),s=aj(t,a),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function z3e(e,t){return of(e.valueOf(),t.valueOf())}function V3e(e,t){return e.source===t.source&&e.flags===t.flags}function lj(e,t,r){if(e.size!==t.size)return!1;for(var n={},o=e.values(),a,i;(a=o.next())&&!a.done;){for(var s=t.values(),l=!1,u=0;(i=s.next())&&!i.done;)!l&&!n[u]&&(l=r.equals(a.value,i.value,a.value,i.value,e,t,r))&&(n[u]=!0),u++;if(!l)return!1}return!0}function U3e(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var W3e="[object Arguments]",H3e="[object Boolean]",q3e="[object Date]",G3e="[object Map]",K3e="[object Number]",Y3e="[object Object]",X3e="[object RegExp]",Q3e="[object Set]",J3e="[object String]",Z3e=Array.isArray,uj=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,cj=Object.assign,e4e=Object.prototype.toString.call.bind(Object.prototype.toString);function t4e(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,i=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var h=c.constructor;if(h!==f.constructor)return!1;if(h===Object)return o(c,f,d);if(Z3e(c))return t(c,f,d);if(uj!=null&&uj(c))return l(c,f,d);if(h===Date)return r(c,f,d);if(h===RegExp)return i(c,f,d);if(h===Map)return n(c,f,d);if(h===Set)return s(c,f,d);var g=e4e(c);return g===q3e?r(c,f,d):g===X3e?i(c,f,d):g===G3e?n(c,f,d):g===Q3e?s(c,f,d):g===Y3e?typeof c.then!="function"&&typeof f.then!="function"&&o(c,f,d):g===W3e?o(c,f,d):g===H3e||g===K3e||g===J3e?a(c,f,d):!1}}function r4e(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?jf:L3e,areDatesEqual:F3e,areMapsEqual:n?nj(sj,jf):sj,areObjectsEqual:n?jf:B3e,arePrimitiveWrappersEqual:z3e,areRegExpsEqual:V3e,areSetsEqual:n?nj(lj,jf):lj,areTypedArraysEqual:n?jf:U3e};if(r&&(o=cj({},o,r(o))),t){var a=Av(o.areArraysEqual),i=Av(o.areMapsEqual),s=Av(o.areObjectsEqual),l=Av(o.areSetsEqual);o=cj({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}function n4e(e){return function(t,r,n,o,a,i,s){return e(t,r,s)}}function o4e(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(l,u,{cache:d,equals:o,meta:h,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(l,u){return r(l,u,i)}}var a4e=hs();hs({strict:!0});hs({circular:!0});hs({circular:!0,strict:!0});hs({createInternalComparator:function(){return of}});hs({strict:!0,createInternalComparator:function(){return of}});hs({circular:!0,createInternalComparator:function(){return of}});hs({circular:!0,createInternalComparator:function(){return of},strict:!0});function hs(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,o=e.createState,a=e.strict,i=a===void 0?!1:a,s=r4e(e),l=t4e(s),u=n?n(l):n4e(l);return o4e({circular:r,comparator:l,createState:o,equals:u,strict:i})}function fj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function o(a){r<0&&(r=a),a-r>t?(e(a),r=-1):requestAnimationFrame(o)};requestAnimationFrame(n)}function GP(e){"@babel/helpers - typeof";return GP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GP(e)}function i4e(e){return c4e(e)||u4e(e)||l4e(e)||s4e()}function s4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l4e(e,t){if(e){if(typeof e=="string")return dj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dj(e,t)}}function dj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:b<0?0:b},p=function(b){for(var y=b>1?1:b,v=y,w=0;w<8;++w){var S=f(v)-y,O=h(v);if(Math.abs(S-y)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,o=t.damping,a=o===void 0?8:o,i=t.dt,s=i===void 0?17:i,l=function(c,f,d){var h=-(c-f)*n,g=d*a,p=d+(h-g)*s/1e3,x=d*s/1e3+c;return Math.abs(x-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H4e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function dw(e){return Y4e(e)||K4e(e)||G4e(e)||q4e()}function q4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G4e(e,t){if(e){if(typeof e=="string")return ZP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZP(e,t)}}function K4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y4e(e){if(Array.isArray(e))return ZP(e)}function ZP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Py(e)}var ml=function(e){Z4e(r,e);var t=e5e(r);function r(n,o){var a;X4e(this,r),a=t.call(this,n,o);var i=a.props,s=i.isActive,l=i.attributeName,u=i.from,c=i.to,f=i.steps,d=i.children,h=i.duration;if(a.handleStyleChange=a.handleStyleChange.bind(rC(a)),a.changeStyle=a.changeStyle.bind(rC(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),tC(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},tC(a);a.state={style:l?ed({},l,u):u}}else a.state={style:{}};return a}return Q4e(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.isActive,i=o.canBegin;this.mounted=!0,!(!a||!i)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!i){var h={style:l?ed({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(a4e(o.to,c)&&o.canBegin&&o.isActive)){var g=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||u?f:o.to;if(this.state&&d){var x={style:l?ed({},l,p):p};(l&&[l]!==p||!l&&d!==p)&&this.setState(x)}this.runAnimation(xo(xo({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var a=this,i=o.from,s=o.to,l=o.duration,u=o.easing,c=o.begin,f=o.onAnimationEnd,d=o.onAnimationStart,h=V4e(i,s,A4e(u),l,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(o){var a=this,i=o.steps,s=o.begin,l=o.onAnimationStart,u=i[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,x,b){if(b===0)return p;var y=x.duration,v=x.easing,w=v===void 0?"ease":v,S=x.style,O=x.properties,P=x.onAnimationEnd,C=b>0?i[b-1]:x,T=O||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(dw(p),[a.runJSAnimation.bind(a,{from:C.style,to:S,duration:y,easing:w}),y]);var A=hj(T,y,w),k=xo(xo(xo({},C.style),S),{},{transition:A});return[].concat(dw(p),[k,y,P]).filter(y4e)};return this.manager.start([l].concat(dw(i.reduce(h,[c,Math.max(d,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=f4e());var a=o.begin,i=o.duration,s=o.attributeName,l=o.to,u=o.easing,c=o.onAnimationStart,f=o.onAnimationEnd,d=o.steps,h=o.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(o);return}if(d.length>1){this.runStepAnimation(o);return}var p=s?ed({},s,l):l,x=hj(Object.keys(p),i,u);g.start([c,a,xo(xo({},p),{},{transition:x}),i,f])}},{key:"render",value:function(){var o=this.props,a=o.children;o.begin;var i=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=W4e(o,U4e),u=m.Children.count(a),c=KP(this.state.style);if(typeof a=="function")return a(c);if(!s||u===0||i<=0)return a;var f=function(h){var g=h.props,p=g.style,x=p===void 0?{}:p,b=g.className,y=m.cloneElement(h,xo(xo({},l),{},{style:xo(xo({},x),c),className:b}));return y};return u===1?f(m.Children.only(a)):z.createElement("div",null,m.Children.map(a,function(d){return f(d)}))}}]),r}(m.PureComponent);ml.displayName="Animate";ml.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ml.propTypes={from:$.oneOfType([$.object,$.string]),to:$.oneOfType([$.object,$.string]),attributeName:$.string,duration:$.number,begin:$.number,easing:$.oneOfType([$.string,$.func]),steps:$.arrayOf($.shape({duration:$.number.isRequired,style:$.object.isRequired,easing:$.oneOfType([$.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$.func]),properties:$.arrayOf("string"),onAnimationEnd:$.func})),children:$.oneOfType([$.node,$.func]),isActive:$.bool,canBegin:$.bool,onAnimationEnd:$.func,shouldReAnimate:$.bool,onAnimationStart:$.func,onAnimationReStart:$.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});$.object,$.object,$.object,$.element;$.object,$.object,$.object,$.oneOfType([$.array,$.element]),$.any;var r5e=a4,n5e=Bc;function o5e(e,t){return e&&r5e(e,t,n5e)}var wW=o5e,a5e=Sl;function i5e(e,t){return function(r,n){if(r==null)return r;if(!a5e(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++at||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var x5e=b5e,pw=th,w5e=nh,S5e=ri,O5e=SW,P5e=v5e,C5e=oh,_5e=x5e,$5e=Uc,E5e=Dr;function T5e(e,t,r){t.length?t=pw(t,function(a){return E5e(a)?function(i){return w5e(i,a.length===1?a[0]:a)}:a}):t=[$5e];var n=-1;t=pw(t,C5e(S5e));var o=O5e(e,function(a,i,s){var l=pw(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return P5e(o,function(a,i){return _5e(a,i,r)})}var k5e=T5e,A5e=sh,R5e=k5e,M5e=ih,Sj=Wc,I5e=M5e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Sj(e,t[0],t[1])?t=[]:r>2&&Sj(t[0],t[1],t[2])&&(t=[t[0]]),R5e(e,A5e(t,1),[])}),D5e=I5e;const NT=ze(D5e);function Sp(e){"@babel/helpers - typeof";return Sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sp(e)}function j5e(e,t){return B5e(e)||F5e(e,t)||L5e(e,t)||N5e()}function N5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L5e(e,t){if(e){if(typeof e=="string")return Oj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oj(e,t)}}function Oj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cy(e)}function Ho(e,t,r){return t=OW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OW(e){var t=Z5e(e,"string");return vc(t)==="symbol"?t:String(t)}function Z5e(e,t){if(vc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nf="recharts-tooltip-wrapper",$j=1;function eze(e){return e.dataKey}function tze(e,t){return e===!0?py(t,eze):Ve(e)?py(t,e):t}function rze(e,t){return z.isValidElement(e)?z.cloneElement(e,t):Ve(e)?z.createElement(e,t):z.createElement(H5e,t)}var ra=function(e){Y5e(r,e);var t=X5e(r);function r(){var n;G5e(this,r);for(var o=arguments.length,a=new Array(o),i=0;iP?Math.max(y,b[l]):Math.max(v,b[l])}),n}return K5e(r,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var o=this.state,a=o.boxWidth,i=o.boxHeight,s=o.dismissed;if(s?(document.removeEventListener("keydown",this.handleKeyDown),(this.props.coordinate.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate.y!==this.state.dismissedAtCoordinate.y)&&this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var l=this.wrapperNode.getBoundingClientRect();(Math.abs(l.width-a)>$j||Math.abs(l.height-i)>$j)&&this.setState({boxWidth:l.width,boxHeight:l.height})}else(a!==-1||i!==-1)&&this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var o,a=this,i=this.props,s=i.payload,l=i.isAnimationActive,u=i.animationDuration,c=i.animationEasing,f=i.filterNull,d=i.payloadUniqBy,h=tze(d,f&&s&&s.length?s.filter(function(D){return!Le(D.value)}):s),g=h&&h.length,p=this.props,x=p.content,b=p.viewBox,y=p.coordinate,v=p.position,w=p.active,S=p.wrapperStyle,O=Pa({pointerEvents:"none",visibility:!this.state.dismissed&&w&&g?"visible":"hidden",position:"absolute",top:0,left:0},S),P,C;if(v&&be(v.x)&&be(v.y))P=v.x,C=v.y;else{var T=this.state,A=T.boxWidth,k=T.boxHeight;A>0&&k>0&&y?(P=this.getTranslate({key:"x",tooltipDimension:A,viewBoxDimension:b.width}),C=this.getTranslate({key:"y",tooltipDimension:k,viewBoxDimension:b.height})):O.visibility="hidden"}O=Pa(Pa({},KP({transform:this.props.useTranslate3d?"translate3d(".concat(P,"px, ").concat(C,"px, 0)"):"translate(".concat(P,"px, ").concat(C,"px)")})),O),l&&w&&(O=Pa(Pa({},KP({transition:"transform ".concat(u,"ms ").concat(c)})),O));var I=wt(Nf,(o={},Ho(o,"".concat(Nf,"-right"),be(P)&&y&&be(y.x)&&P>=y.x),Ho(o,"".concat(Nf,"-left"),be(P)&&y&&be(y.x)&&P=y.y),Ho(o,"".concat(Nf,"-top"),be(C)&&y&&be(y.y)&&C"u"},Tj=function(e){return e instanceof Element||e instanceof HTMLDocument},fze=function(e,t,r){return function(n){var o=n.width,a=n.height;e(function(i){return i.width===o&&i.height===a||i.width===o&&!r||i.height===a&&!t?i:{width:o,height:a}})}},dze=function(e){lze(t,e);function t(r){var n=e.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var u=n.props,c=u.targetRef,f=u.observerOptions;if(!Lf()){c&&c.current&&(n.targetRef.current=c.current);var d=n.getElement();d&&(n.observableElement&&n.observableElement===d||(n.observableElement=d,n.resizeObserver.observe(d,f)))}},n.getElement=function(){var u=n.props,c=u.querySelector,f=u.targetDomEl;if(Lf())return null;if(c)return document.querySelector(c);if(f&&Tj(f))return f;if(n.targetRef&&Tj(n.targetRef.current))return n.targetRef.current;var d=Tc.findDOMNode(n);if(!d)return null;var h=n.getRenderType();switch(h){case"renderProp":return d;case"childFunction":return d;case"child":return d;case"childArray":return d;default:return d.parentElement}},n.createResizeHandler=function(u){var c=n.props,f=c.handleWidth,d=f===void 0?!0:f,h=c.handleHeight,g=h===void 0?!0:h,p=c.onResize;if(!(!d&&!g)){var x=fze(function(b){return n.setState(b,function(){return p==null?void 0:p(n.state.width,n.state.height)})},d,g);u.forEach(function(b){var y=b&&b.contentRect||{},v=y.width,w=y.height,S=!n.skipOnMount&&!Lf();S&&x({width:v,height:w}),n.skipOnMount=!1})}},n.getRenderType=function(){var u=n.props,c=u.render,f=u.children;return Ej(c)?"renderProp":Ej(f)?"childFunction":m.isValidElement(f)?"child":Array.isArray(f)?"childArray":"parent"};var o=r.skipOnMount,a=r.refreshMode,i=r.refreshRate,s=i===void 0?1e3:i,l=r.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=o,n.targetRef=m.createRef(),n.observableElement=null,Lf()||(n.resizeHandler=cze(n.createResizeHandler,a,s,l),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){Lf()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var r=this.props,n=r.render,o=r.children,a=r.nodeType,i=a===void 0?"div":a,s=this.state,l=s.width,u=s.height,c={width:l,height:u,targetRef:this.targetRef},f=this.getRenderType();switch(f){case"renderProp":return n==null?void 0:n(c);case"childFunction":{var d=o;return d==null?void 0:d(c)}case"child":{var h=o;if(h.type&&typeof h.type=="string"){c.targetRef;var g=uze(c,["targetRef"]);return m.cloneElement(h,g)}return m.cloneElement(h,c)}case"childArray":{var p=o;return p.map(function(x){return!!x&&m.cloneElement(x,c)})}default:return z.createElement(i,null)}},t}(m.PureComponent),zu=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,"The aspect(%s) must be greater than zero.",r);var M=Ws(i)?I:i,R=Ws(l)?D:l;return r&&r>0&&(M?R=M/r:R&&(M=R*r),d&&R>d&&(R=d)),zu(M>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,M,R,i,l,c,f,r),m.cloneElement(h,{width:M,height:R})},[r,h,l,d,f,c,S,i]);m.useEffect(function(){var I=C();I&&O(I)},[C]);var k={width:i,height:l,minWidth:c,minHeight:f,maxHeight:d};return z.createElement(dze,{handleWidth:!0,handleHeight:!0,onResize:T,targetRef:P,refreshMode:p>0?"debounce":void 0,refreshRate:p},z.createElement("div",aC({},x!=null?{id:"".concat(x)}:{},{className:wt("recharts-responsive-container",b),style:k,ref:P}),A))}),CW=function(t){return null};CW.displayName="Cell";var iC={exports:{}},vw="(".charCodeAt(0),mw=")".charCodeAt(0),Rv="'".charCodeAt(0),gw='"'.charCodeAt(0),yw="\\".charCodeAt(0),Mv="/".charCodeAt(0),bw=",".charCodeAt(0),xw=":".charCodeAt(0),Aj="*".charCodeAt(0),yze=function(e){for(var t=[],r=e,n,o,a,i,s,l,u,c=0,f=r.charCodeAt(c),d=r.length,h=[{nodes:t}],g=0,p,x="",b="",y="";c=48&&f<=57)c=!0;else if(f===n||f===o){if(u>-1)break;u=i}else if(f===r){if(l)break;l=!0}else if(f===t||f===e){if(i!==0)break}else break;i+=1}return u+1===i&&i--,c?{number:a.slice(0,i),unit:a.slice(i)}:!1},ww}var Sze=yze,$W=bze,EW=xze;function Qi(e){return this instanceof Qi?(this.nodes=Sze(e),this):new Qi(e)}Qi.prototype.toString=function(){return Array.isArray(this.nodes)?EW(this.nodes):""};Qi.prototype.walk=function(e,t){return $W(this.nodes,e,t),this};Qi.unit=wze();Qi.walk=$W;Qi.stringify=EW;var Oze=Qi;function Pze(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var TW={};(function(e){var t=function(){function r(d,h){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),d==null&&(d="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:d}),this.hash=h;var g;if(h&&h.exception instanceof Error){var p=h.exception;this.message=p.message||d,g=p.stack}g||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):g=new Error(d).stack),g&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:g})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(r.prototype,Error.prototype):r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.name="JisonParserError";function n(d){for(var h=[],g=d.pop,p=d.rule,x=0,b=g.length;x"u"&&Object.prototype.hasOwnProperty.call(Q,ae)&&(le[ae]=Q[ae])}T(C,this.yy),C.lexer=P,C.parser=this,typeof C.parseError=="function"?this.parseError=function(Q,ae,Z){return Z||(Z=this.JisonParserError),C.parseError.call(this,Q,ae,Z)}:this.parseError=this.originalParseError,typeof C.quoteName=="function"?this.quoteName=function(Q){return C.quoteName.call(this,Q)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(Q,ae,Z){var G;if(ae){var oe;(C.post_parse||this.post_parse)&&(oe=this.constructParseErrorInfo(null,null,null,!1)),C.post_parse&&(G=C.post_parse.call(this,C,Q,oe),typeof G<"u"&&(Q=G)),this.post_parse&&(G=this.post_parse.call(this,C,Q,oe),typeof G<"u"&&(Q=G)),oe&&oe.destroy&&oe.destroy()}if(this.__reentrant_call_depth>1)return Q;if(P.cleanupAfterLex&&P.cleanupAfterLex(Z),C&&(C.lexer=void 0,C.parser=void 0,P.yy===C&&(P.yy=void 0)),C=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,p.length=0,x.length=0,b.length=0,v=0,!Z){for(var fe=this.__error_infos.length-1;fe>=0;fe--){var ge=this.__error_infos[fe];ge&&typeof ge.destroy=="function"&&ge.destroy()}this.__error_infos.length=0}return Q},this.constructParseErrorInfo=function(Q,ae,Z,G){var oe={errStr:Q,exception:ae,text:P.match,value:P.yytext,token:this.describeSymbol(w)||w,token_id:w,line:P.yylineno,expected:Z,recoverable:G,state:D,action:M,new_state:W,symbol_stack:p,state_stack:x,value_stack:b,stack_pointer:v,yy:C,lexer:P,parser:this,destroy:function(){var ge=!!this.recoverable;for(var Ae in this)this.hasOwnProperty(Ae)&&typeof Ae=="object"&&(this[Ae]=void 0);this.recoverable=ge}};return this.__error_infos.push(oe),oe};function A(){var le=P.lex();return typeof le!="number"&&(le=g.symbols_[le]||le),le||S}function k(){var le=P.fastLex();return typeof le!="number"&&(le=g.symbols_[le]||le),le||S}var I=A,D,M,R,N,F={$:!0,_$:void 0,yy:C},j,L,B,W,X=!1;try{if(this.__reentrant_call_depth++,P.setInput(h,C),typeof P.canIUse=="function"){var J=P.canIUse();J.fastLex&&typeof k=="function"&&(I=k)}for(b[v]=null,x[v]=0,p[v]=0,++v,this.pre_parse&&this.pre_parse.call(this,C),C.pre_parse&&C.pre_parse.call(this,C),W=x[v-1];;){if(D=W,this.defaultActions[D])M=2,W=this.defaultActions[D];else if(w||(w=I()),N=y[D]&&y[D][w]||O,W=N[1],M=N[0],!M){var K,ie=this.describeSymbol(w)||w,de=this.collect_expected_token_set(D);typeof P.yylineno=="number"?K="Parse error on line "+(P.yylineno+1)+": ":K="Parse error: ",typeof P.showPosition=="function"&&(K+=` +`+P.showPosition(79-10,10)+` +`),de.length?K+="Expecting "+de.join(", ")+", got unexpected "+ie:K+="Unexpected "+ie,j=this.constructParseErrorInfo(K,null,de,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(X=R);break}switch(M){default:if(M instanceof Array){j=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+D+", token: "+w,null,null,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(X=R);break}j=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(X=R);break;case 1:p[v]=w,b[v]=P.yytext,x[v]=W,++v,w=0;continue;case 2:if(B=this.productions_[W-1],L=B[1],R=this.performAction.call(F,W,v-1,b),typeof R<"u"){X=R;break}v-=L;var ee=B[0];p[v]=ee,b[v]=F.$,W=y[x[v-1]][ee],x[v]=W,++v;continue;case 3:v!==-2&&(X=!0,v--,typeof b[v]<"u"&&(X=b[v]));break}break}}catch(le){if(le instanceof this.JisonParserError)throw le;if(P&&typeof P.JisonLexerError=="function"&&le instanceof P.JisonLexerError)throw le;j=this.constructParseErrorInfo("Parsing aborted due to exception.",le,null,!1),X=!1,R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(X=R)}finally{X=this.cleanupAfterParse(X,!0,!0),this.__reentrant_call_depth--}return X}};u.originalParseError=u.parseError,u.originalQuoteName=u.quoteName;var c=function(){function d(g,p){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),g==null&&(g="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:g}),this.hash=p;var x;if(p&&p.exception instanceof Error){var b=p.exception;this.message=b.message||g,x=b.stack}x||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):x=new Error(g).stack),x&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:x})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(d.prototype,Error.prototype):d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="JisonLexerError";var h={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(p,x,b){if(p=""+p,b==null&&(b=!(p.indexOf(` +`)>0&&p.indexOf("^")>0)),this.yylloc&&b){if(typeof this.prettyPrintRange=="function")this.prettyPrintRange(this.yylloc),/\n\s*$/.test(p)||(p+=` +`),p+=` + Erroneous area: +`+this.prettyPrintRange(this.yylloc);else if(typeof this.showPosition=="function"){var y=this.showPosition();y&&(p.length&&p[p.length-1]!==` +`&&y[0]!==` +`?p+=` +`+y:p+=y)}}var v={errStr:p,recoverable:!!x,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var S=!!this.recoverable;for(var O in this)this.hasOwnProperty(O)&&typeof O=="object"&&(this[O]=void 0);this.recoverable=S}};return this.__error_infos.push(v),v},parseError:function(p,x,b){if(b||(b=this.JisonLexerError),this.yy){if(this.yy.parser&&typeof this.yy.parser.parseError=="function")return this.yy.parser.parseError.call(this,p,x,b)||this.ERROR;if(typeof this.yy.parseError=="function")return this.yy.parseError.call(this,p,x,b)||this.ERROR}throw new b(p,x)},yyerror:function(p){var x="";this.yylloc&&(x=" on line "+(this.yylineno+1));var b=this.constructLexErrorInfo("Lexical error"+x+": "+p,this.options.lexerErrorsAreRecoverable),y=Array.prototype.slice.call(arguments,1);return y.length&&(b.extra_error_attributes=y),this.parseError(b.errStr,b,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(p){if(this.setInput("",{}),!p){for(var x=this.__error_infos.length-1;x>=0;x--){var b=this.__error_infos[x];b&&typeof b.destroy=="function"&&b.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var p=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:p,last_line:this.yylineno+1,last_column:p,range:[this.offset,this.offset]}},setInput:function(p,x){if(this.yy=x||this.yy||{},!this.__decompressed){for(var b=this.rules,y=0,v=b.length;y1){this.yylineno-=b.length-1,this.yylloc.last_line=this.yylineno+1;var y=this.match,v=y.split(/(?:\r\n?|\n)/g);v.length===1&&(y=this.matched,v=y.split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=v[v.length-1].length}else this.yylloc.last_column-=x;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var p="";this.yylloc&&(p=" on line "+(this.yylineno+1));var x=this.constructLexErrorInfo("Lexical error"+p+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(x.errStr,x,this.JisonLexerError)||this.ERROR}return this},less:function(p){return this.unput(this.match.slice(p))},pastInput:function(p,x){var b=this.matched.substring(0,this.matched.length-this.match.length);p<0?p=b.length:p||(p=20),x<0?x=b.length:x||(x=1),b=b.substr(-p*2-2);var y=b.replace(/\r\n|\r/g,` +`).split(` +`);return y=y.slice(-x),b=y.join(` +`),b.length>p&&(b="..."+b.substr(-p)),b},upcomingInput:function(p,x){var b=this.match;p<0?p=b.length+this._input.length:p||(p=20),x<0?x=p:x||(x=1),b.lengthp&&(b=b.substring(0,p)+"..."),b},showPosition:function(p,x){var b=this.pastInput(p).replace(/\s/g," "),y=new Array(b.length+1).join("-");return b+this.upcomingInput(x).replace(/\s/g," ")+` +`+y+"^"},deriveLocationInfo:function(p,x,b,y){var v={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return p&&(v.first_line=p.first_line|0,v.last_line=p.last_line|0,v.first_column=p.first_column|0,v.last_column=p.last_column|0,p.range&&(v.range[0]=p.range[0]|0,v.range[1]=p.range[1]|0)),(v.first_line<=0||v.last_line=v.first_line)&&(v.last_line=y.last_line|0,v.last_column=y.last_column|0,y.range&&(v.range[1]=y.range[1]|0))),v.last_line<=0&&(v.first_line<=0?(v.first_line=this.yylloc.first_line,v.last_line=this.yylloc.last_line,v.first_column=this.yylloc.first_column,v.last_column=this.yylloc.last_column,v.range[0]=this.yylloc.range[0],v.range[1]=this.yylloc.range[1]):(v.last_line=this.yylloc.last_line,v.last_column=this.yylloc.last_column,v.range[1]=this.yylloc.range[1])),v.first_line<=0&&(v.first_line=v.last_line,v.first_column=0,v.range[1]=v.range[0]),v.first_column<0&&(v.first_column=0),v.last_column<0&&(v.last_column=v.first_column>0?v.first_column:80),v},prettyPrintRange:function(p,x,b){p=this.deriveLocationInfo(p,x,b);const y=3,v=1,w=2;var S=this.matched+this._input,O=S.split(` +`),P=Math.max(1,x?x.first_line:p.first_line-y),C=Math.max(1,b?b.last_line:p.last_line+v),T=1+Math.log10(C|1)|0,A=new Array(T).join(" "),k=[],I=O.slice(P-1,C+1).map(function(F,j){var L=j+P,B=(A+L).substr(-T),W=B+": "+F,X=new Array(T+1).join("^"),J=2+1,K=0;if(L===p.first_line?(J+=p.first_column,K=Math.max(2,(L===p.last_line?p.last_column:F.length)-p.first_column+1)):L===p.last_line?K=Math.max(2,p.last_column+1):L>p.first_line&&L0&&k.push(j)}return W=W.replace(/\t/g," "),W});if(k.length>2*w){var D=k[w-1]+1,M=k[k.length-w]-1,R=new Array(T+1).join(" ")+" (...continued...)";R+=` +`+new Array(T+1).join("-")+" (---------------)",I.splice(D,M-D+1,R)}return I.join(` +`)},describeYYLLOC:function(p,x){var b=p.first_line,y=p.last_line,v=p.first_column,w=p.last_column,S=y-b,O=w-v,P;if(S===0?(P="line "+b+", ",O<=1?P+="column "+v:P+="columns "+v+" .. "+w):P="lines "+b+"(column "+v+") .. "+y+"(column "+w+")",p.range&&x){var C=p.range[0],T=p.range[1]-1;T<=C?P+=" {String Offset: "+C+"}":P+=" {String Offset range: "+C+" .. "+T+"}"}return P},test_match:function(p,x){var b,y,v,w,S;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),w=p[0],S=w.length,y=w.split(/(?:\r\n?|\n)/g),y.length>1?(this.yylineno+=y.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=y[y.length-1].length):this.yylloc.last_column+=S,this.yytext+=w,this.match+=w,this.matched+=w,this.matches=p,this.yyleng=this.yytext.length,this.yylloc.range[1]+=S,this.offset+=S,this._more=!1,this._backtrack=!1,this._input=this._input.slice(S),b=this.performAction.call(this,this.yy,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var O in v)this[O]=v[O];return this.__currentRuleSet__=null,!1}else if(this._signaled_error_token)return b=this._signaled_error_token,this._signaled_error_token=!1,b;return!1},next:function(){if(this.done)return this.clear(),this.EOF;this._input||(this.done=!0);var p,x,b,y;this._more||this.clear();var v=this.__currentRuleSet__;if(!v&&(v=this.__currentRuleSet__=this._currentRules(),!v||!v.rules)){var w="";this.options.trackPosition&&(w=" on line "+(this.yylineno+1));var S=this.constructLexErrorInfo("Internal lexer engine error"+w+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(S.errStr,S,this.JisonLexerError)||this.ERROR}for(var O=v.rules,P=v.__rule_regexes,C=v.__rule_count,T=1;T<=C;T++)if(b=this._input.match(P[T]),b&&(!x||b[0].length>x[0].length)){if(x=b,y=T,this.options.backtrack_lexer){if(p=this.test_match(b,O[T]),p!==!1)return p;if(this._backtrack){x=void 0;continue}else return!1}else if(!this.options.flex)break}if(x)return p=this.test_match(x,O[y]),p!==!1?p:!1;if(this._input){var w="";this.options.trackPosition&&(w=" on line "+(this.yylineno+1));var S=this.constructLexErrorInfo("Lexical error"+w+": Unrecognized text.",this.options.lexerErrorsAreRecoverable),A=this._input,k=this.topState(),I=this.conditionStack.length;return p=this.parseError(S.errStr,S,this.JisonLexerError)||this.ERROR,p===this.ERROR&&!this.matches&&A===this._input&&k===this.topState()&&I===this.conditionStack.length&&this.input(),p}else return this.done=!0,this.clear(),this.EOF},lex:function(){var p;for(typeof this.pre_lex=="function"&&(p=this.pre_lex.call(this,0)),typeof this.options.pre_lex=="function"&&(p=this.options.pre_lex.call(this,p)||p),this.yy&&typeof this.yy.pre_lex=="function"&&(p=this.yy.pre_lex.call(this,p)||p);!p;)p=this.next();return this.yy&&typeof this.yy.post_lex=="function"&&(p=this.yy.post_lex.call(this,p)||p),typeof this.options.post_lex=="function"&&(p=this.options.post_lex.call(this,p)||p),typeof this.post_lex=="function"&&(p=this.post_lex.call(this,p)||p),p},fastLex:function(){for(var p;!p;)p=this.next();return p},canIUse:function(){var p={fastLex:!(typeof this.pre_lex=="function"||typeof this.options.pre_lex=="function"||this.yy&&typeof this.yy.pre_lex=="function"||this.yy&&typeof this.yy.post_lex=="function"||typeof this.options.post_lex=="function"||typeof this.post_lex=="function")&&typeof this.fastLex=="function"};return p},begin:function(p){return this.pushState(p)},pushState:function(p){return this.conditionStack.push(p),this.__currentRuleSet__=null,this},popState:function(){var p=this.conditionStack.length-1;return p>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:d,performAction:function(p,x,b){switch(x){case 1:break;default:return this.simpleCaseActionClusters[x]}},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return h}();u.lexer=c;function f(){this.yy={}}return f.prototype=u,u.Parser=f,new f}();typeof Pze<"u"&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})})(TW);var Fh={},sC={exports:{}},Sw={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:1/1e3},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:1/1e3,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},Cze=function(e,t,r,n){if(!Sw.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!Sw[r].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+r);var o=Sw[r][t]*e;return n!==!1?(n=Math.pow(10,parseInt(n)||5),Math.round(o*n)/n):o};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Cze,n=o(r);function o(s){return s&&s.__esModule?s:{default:s}}function a(s,l,u){switch(s.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return i(s,l,u);default:return{left:s,right:l}}}function i(s,l,u){return l.type===s.type&&(l={type:s.type,value:(0,n.default)(l.value,l.unit,s.unit,u),unit:s.unit}),{left:s,right:l}}t.default=a,e.exports=t.default})(sC,sC.exports);var _ze=sC.exports;Object.defineProperty(Fh,"__esModule",{value:!0});Fh.flip=lC;var $ze=_ze,Ow=Eze($ze);function Eze(e){return e&&e.__esModule?e:{default:e}}function Br(e,t){return e.type==="MathExpression"?Mze(e,t):e.type==="Calc"?Br(e.value,t):e}function Ij(e,t){return e.type===t.type&&e.value===t.value}function un(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Tze(e,t){var r=(0,Ow.default)(e.left,e.right,t),n=Br(r.left,t),o=Br(r.right,t);return n.type==="MathExpression"&&o.type==="MathExpression"&&(n.operator==="/"&&o.operator==="*"||n.operator==="-"&&o.operator==="+"||n.operator==="*"&&o.operator==="/"||n.operator==="+"&&o.operator==="-")&&(Ij(n.right,o.right)?r=(0,Ow.default)(n.left,o.left,t):Ij(n.right,o.left)&&(r=(0,Ow.default)(n.left,o.right,t)),n=Br(r.left,t),o=Br(r.right,t)),e.left=n,e.right=o,e}function lC(e){return e==="+"?"-":"+"}function uC(e){return un(e.type)?e.value=-e.value:e.type=="MathExpression"&&(e.left=uC(e.left),e.right=uC(e.right)),e}function kze(e,t){var r=e,n=r.left,o=r.right,a=r.operator;if(n.type==="CssVariable"||o.type==="CssVariable")return e;if(o.value===0)return n;if(n.value===0&&a==="+")return o;if(n.value===0&&a==="-")return uC(o);if(n.type===o.type&&un(n.type)&&(e=Object.assign({},n),a==="+"?e.value=n.value+o.value:e.value=n.value-o.value),un(n.type)&&(o.operator==="+"||o.operator==="-")&&o.type==="MathExpression"){if(n.type===o.left.type)return e=Object.assign({},e),e.left=Br({type:"MathExpression",operator:a,left:n,right:o.left},t),e.right=o.right,e.operator=a==="-"?lC(o.operator):o.operator,Br(e,t);if(n.type===o.right.type)return e=Object.assign({},e),e.left=Br({type:"MathExpression",operator:a==="-"?lC(o.operator):o.operator,left:n,right:o.right},t),e.right=o.left,Br(e,t)}if(n.type==="MathExpression"&&(n.operator==="+"||n.operator==="-")&&un(o.type)){if(o.type===n.left.type)return e=Object.assign({},n),e.left=Br({type:"MathExpression",operator:a,left:n.left,right:o},t),Br(e,t);if(o.type===n.right.type)return e=Object.assign({},n),n.operator==="-"?(e.right=Br({type:"MathExpression",operator:a==="-"?"+":"-",left:o,right:n.right},t),e.operator=a==="-"?"-":"+"):e.right=Br({type:"MathExpression",operator:a,left:n.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator=e.operator==="-"?"+":"-"),Br(e,t)}return e}function Aze(e,t){if(!un(e.right.type))return e;if(e.right.type!=="Value")throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(e.right.value===0)throw new Error("Cannot divide by zero");return e.left.type==="MathExpression"?un(e.left.left.type)&&un(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Br(e.left,t)):e:un(e.left.type)?(e.left.value/=e.right.value,e.left):e}function Rze(e){if(e.left.type==="MathExpression"&&e.right.type==="Value"){if(un(e.left.left.type)&&un(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(un(e.left.type)&&e.right.type==="Value")return e.left.value*=e.right.value,e.left;if(e.left.type==="Value"&&e.right.type==="MathExpression"){if(un(e.right.left.type)&&un(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if(e.left.type==="Value"&&un(e.right.type))return e.right.value*=e.left.value,e.right}return e}function Mze(e,t){switch(e=Tze(e,t),e.operator){case"+":case"-":return kze(e,t);case"/":return Aze(e,t);case"*":return Rze(e)}return e}Fh.default=Br;var cC={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(i,s,l){var u=a(s,l);return s.type==="MathExpression"&&(u=i+"("+u+")"),u};var r=Fh,n={"*":0,"/":0,"+":1,"-":1};function o(i,s){if(s!==!1){var l=Math.pow(10,s);return Math.round(i*l)/l}return i}function a(i,s){switch(i.type){case"MathExpression":{var l=i.left,u=i.right,c=i.operator,f="";return l.type==="MathExpression"&&n[c]1&&arguments[1]!==void 0?arguments[1]:5;return(0,n.default)(f).walk(function(h){if(!(h.type!=="function"||!c.test(h.value))){var g=n.default.stringify(h.nodes);if(!(g.indexOf("constant")>=0||g.indexOf("env")>=0)){var p=o.parser.parse(g),x=(0,i.default)(p,d);h.type="word",h.value=(0,l.default)(h.value,x,d)}}},!0).toString()},e.exports=t.default})(iC,iC.exports);var Dze=iC.exports;const Pw=ze(Dze);function Op(e){"@babel/helpers - typeof";return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Op(e)}function Dj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function jj(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&t===+t?"".concat(t,"px"):t}function Gze(e){var t=e.split(""),r=t.reduce(function(n,o){return o===o.toUpperCase()?[].concat(Nj(n),["-",o.toLowerCase()]):[].concat(Nj(n),[o])},[]);return r.join("")}var Kze=function(t){return Object.keys(t).reduce(function(r,n){return"".concat(r).concat(Gze(n),":").concat(qze(n,t[n]),";")},"")},ea=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Fa.isSsr)return{width:0,height:0};var n="".concat(t),o=Kze(r),a="".concat(n,"-").concat(o);if(Gl.widthCache[a])return Gl.widthCache[a];try{var i=document.getElementById(Lj);i||(i=document.createElement("span"),i.setAttribute("id",Lj),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=jj(jj({},Wze),r);Object.keys(s).map(function(c){return i.style[c]=s[c],c}),i.textContent=n;var l=i.getBoundingClientRect(),u={width:l.width,height:l.height};return Gl.widthCache[a]=u,++Gl.cacheCount>Uze&&(Gl.cacheCount=0,Gl.widthCache={}),u}catch{return{width:0,height:0}}},Yze=function(t){var r=t.ownerDocument.documentElement,n={top:0,left:0};return typeof t.getBoundingClientRect<"u"&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft}},Xze=function(t,r){return{chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)}},Qze=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Jze=["dx","dy","angle","className","breakAll"];function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zze(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Bj(e,t){return n6e(e)||r6e(e,t)||t6e(e,t)||e6e()}function e6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t6e(e,t){if(e){if(typeof e=="string")return zj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zj(e,t)}}function zj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(N,F){var j=F.word,L=F.width,B=N[N.length-1];if(B&&(o==null||a||B.width+L+nF.width?N:F})};if(!c)return h;for(var p="…",x=function(R){var N=f.slice(0,R),F=AW({breakAll:u,style:l,children:N+p}).wordsWithComputedWidth,j=d(F),L=j.length>i||g(j).width>Number(o);return[L,j]},b=0,y=f.length-1,v=0,w;b<=y&&v<=f.length-1;){var S=Math.floor((b+y)/2),O=S-1,P=x(O),C=Bj(P,2),T=C[0],A=C[1],k=x(S),I=Bj(k,1),D=I[0];if(!T&&!D&&(b=S+1),T&&D&&(y=S-1),!T&&D){w=A;break}v++}return w||h},Vj=function(t){var r=Le(t)?[]:t.toString().split(kW);return[{words:r}]},a6e=function(t){var r=t.width,n=t.scaleToFit,o=t.children,a=t.style,i=t.breakAll,s=t.maxLines;if((r||n)&&!Fa.isSsr){var l,u,c=AW({breakAll:i,children:o,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return Vj(o);return o6e({breakAll:i,children:o,maxLines:s,style:a},l,u,r,n)}return Vj(o)},Uj="#808080",_y=function(t){var r=t.x,n=r===void 0?0:r,o=t.y,a=o===void 0?0:o,i=t.lineHeight,s=i===void 0?"1em":i,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,x=t.fill,b=x===void 0?Uj:x,y=Fj(t,Qze),v=m.useMemo(function(){return a6e({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),w=y.dx,S=y.dy,O=y.angle,P=y.className,C=y.breakAll,T=Fj(y,Jze);if(!fr(n)||!fr(a))return null;var A=n+(be(w)?w:0),k=a+(be(S)?S:0),I;switch(p){case"start":I=Pw("calc(".concat(u,")"));break;case"middle":I=Pw("calc(".concat((v.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:I=Pw("calc(".concat(v.length-1," * -").concat(s,")"));break}var D=[];if(f){var M=v[0].width,R=y.width;D.push("scale(".concat((be(R)?R/M:1)/M,")"))}return O&&D.push("rotate(".concat(O,", ").concat(A,", ").concat(k,")")),D.length&&(T.transform=D.join(" ")),z.createElement("text",dC({},et(T,!0),{x:A,y:k,className:wt("recharts-text",P),textAnchor:h,fill:b.includes("url")?Uj:b}),v.map(function(N,F){return z.createElement("tspan",{x:A,dy:F===0?I:s,key:F},N.words.join(C?"":" "))}))},i6e=Ic;function s6e(e,t,r){for(var n=-1,o=e.length;++nt}var u6e=l6e,c6e=RW,f6e=u6e,d6e=Uc;function p6e(e){return e&&e.length?c6e(e,d6e,f6e):void 0}var h6e=p6e;const Ti=ze(h6e);function v6e(e,t){return et?1:e>=t?0:NaN}function M6e(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function LT(e){let t,r,n;e.length!==2?(t=qi,r=(s,l)=>qi(e(s),l),n=(s,l)=>e(s)-l):(t=e===qi||e===M6e?e:I6e,r=e,n=e);function o(s,l,u=0,c=s.length){if(u>>1;r(s[f],l)<0?u=f+1:c=f}while(u>>1;r(s[f],l)<=0?u=f+1:c=f}while(uu&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:o,center:i,right:a}}function I6e(){return 0}function MW(e){return e===null?NaN:+e}function*D6e(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const j6e=LT(qi),N6e=j6e.right;LT(MW).center;const Bh=N6e;class Wj extends Map{constructor(t,r=B6e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(Hj(this,t))}has(t){return super.has(Hj(this,t))}set(t,r){return super.set(L6e(this,t),r)}delete(t){return super.delete(F6e(this,t))}}function Hj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function L6e({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function F6e({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function B6e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function z6e(e=qi){if(e===qi)return IW;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function IW(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const V6e=Math.sqrt(50),U6e=Math.sqrt(10),W6e=Math.sqrt(2);function $y(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),a=n/Math.pow(10,o),i=a>=V6e?10:a>=U6e?5:a>=W6e?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/i,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,o)*i,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const n=t=o))return[];const s=a-o+1,l=new Array(s);if(n)if(i<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function Gj(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function DW(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?IW:z6e(o);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),g=Math.min(n,Math.floor(t+(l-u)*f/l+d));DW(e,t,h,g,o)}const a=e[t];let i=r,s=n;for(Ff(e,r,t),o(e[n],a)>0&&Ff(e,r,n);i0;)--s}o(e[r],a)===0?Ff(e,r,s):(++s,Ff(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ff(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function H6e(e,t,r){if(e=Float64Array.from(D6e(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Gj(e);if(t>=1)return qj(e);var n,o=(n-1)*t,a=Math.floor(o),i=qj(DW(e,a).subarray(0,a+1)),s=Gj(e.subarray(a+1));return i+(s-i)*(o-a)}}function q6e(e,t,r=MW){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,a=Math.floor(o),i=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return i+(s-i)*(o-a)}}function G6e(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(o);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Iv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Iv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Y6e.exec(e))?new fn(t[1],t[2],t[3],1):(t=X6e.exec(e))?new fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q6e.exec(e))?Iv(t[1],t[2],t[3],t[4]):(t=J6e.exec(e))?Iv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Z6e.exec(e))?eN(t[1],t[2]/100,t[3]/100,1):(t=eVe.exec(e))?eN(t[1],t[2]/100,t[3]/100,t[4]):Kj.hasOwnProperty(e)?Qj(Kj[e]):e==="transparent"?new fn(NaN,NaN,NaN,0):null}function Qj(e){return new fn(e>>16&255,e>>8&255,e&255,1)}function Iv(e,t,r,n){return n<=0&&(e=t=r=NaN),new fn(e,t,r,n)}function nVe(e){return e instanceof zh||(e=$p(e)),e?(e=e.rgb(),new fn(e.r,e.g,e.b,e.opacity)):new fn}function gC(e,t,r,n){return arguments.length===1?nVe(e):new fn(e,t,r,n??1)}function fn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}BT(fn,gC,NW(zh,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cp:Math.pow(Cp,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fn(tl(this.r),tl(this.g),tl(this.b),Ty(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jj,formatHex:Jj,formatHex8:oVe,formatRgb:Zj,toString:Zj}));function Jj(){return`#${Hs(this.r)}${Hs(this.g)}${Hs(this.b)}`}function oVe(){return`#${Hs(this.r)}${Hs(this.g)}${Hs(this.b)}${Hs((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zj(){const e=Ty(this.opacity);return`${e===1?"rgb(":"rgba("}${tl(this.r)}, ${tl(this.g)}, ${tl(this.b)}${e===1?")":`, ${e})`}`}function Ty(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hs(e){return e=tl(e),(e<16?"0":"")+e.toString(16)}function eN(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new To(e,t,r,n)}function LW(e){if(e instanceof To)return new To(e.h,e.s,e.l,e.opacity);if(e instanceof zh||(e=$p(e)),!e)return new To;if(e instanceof To)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,s=a-o,l=(a+o)/2;return s?(t===a?i=(r-n)/s+(r0&&l<1?0:i,new To(i,s,l,e.opacity)}function aVe(e,t,r,n){return arguments.length===1?LW(e):new To(e,t,r,n??1)}function To(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}BT(To,aVe,NW(zh,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new To(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cp:Math.pow(Cp,e),new To(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new fn(Cw(e>=240?e-240:e+120,o,n),Cw(e,o,n),Cw(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new To(tN(this.h),Dv(this.s),Dv(this.l),Ty(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ty(this.opacity);return`${e===1?"hsl(":"hsla("}${tN(this.h)}, ${Dv(this.s)*100}%, ${Dv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tN(e){return e=(e||0)%360,e<0?e+360:e}function Dv(e){return Math.max(0,Math.min(1,e||0))}function Cw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const zT=e=>()=>e;function iVe(e,t){return function(r){return e+r*t}}function sVe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function lVe(e){return(e=+e)==1?FW:function(t,r){return r-t?sVe(t,r,e):zT(isNaN(t)?r:t)}}function FW(e,t){var r=t-e;return r?iVe(e,r):zT(isNaN(e)?t:e)}const rN=function e(t){var r=lVe(t);function n(o,a){var i=r((o=gC(o)).r,(a=gC(a)).r),s=r(o.g,a.g),l=r(o.b,a.b),u=FW(o.opacity,a.opacity);return function(c){return o.r=i(c),o.g=s(c),o.b=l(c),o.opacity=u(c),o+""}}return n.gamma=e,n}(1);function uVe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(a){for(o=0;or&&(a=t.slice(r,a),s[i]?s[i]+=a:s[++i]=a),(n=n[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:ky(n,o)})),r=_w.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function xVe(e,t,r){var n=e[0],o=e[1],a=t[0],i=t[1];return o2?wVe:xVe,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(i(d)))}return f.invert=function(d){return i(o((u||(u=s(t,e.map(n),ky)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Ay),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=VT,c()},f.clamp=function(d){return arguments.length?(i=d?!0:Jr,c()):i!==Jr},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,o=h,c()}}function UT(){return n1()(Jr,Jr)}function SVe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ry(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function mc(e){return e=Ry(Math.abs(e)),e?e[1]:NaN}function OVe(e,t){return function(r,n){for(var o=r.length,a=[],i=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[i=(i+1)%e.length];return a.reverse().join(t)}}function PVe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var CVe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ep(e){if(!(t=CVe.exec(e)))throw new Error("invalid format: "+e);var t;return new WT({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ep.prototype=WT.prototype;function WT(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}WT.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _Ve(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var BW;function $Ve(e,t){var r=Ry(e,t);if(!r)return e+"";var n=r[0],o=r[1],a=o-(BW=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=n.length;return a===i?n:a>i?n+new Array(a-i+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ry(e,Math.max(0,t+a-1))[0]}function oN(e,t){var r=Ry(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const aN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:SVe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>oN(e*100,t),r:oN,s:$Ve,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function iN(e){return e}var sN=Array.prototype.map,lN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function EVe(e){var t=e.grouping===void 0||e.thousands===void 0?iN:OVe(sN.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?iN:PVe(sN.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ep(f);var d=f.fill,h=f.align,g=f.sign,p=f.symbol,x=f.zero,b=f.width,y=f.comma,v=f.precision,w=f.trim,S=f.type;S==="n"?(y=!0,S="g"):aN[S]||(v===void 0&&(v=12),w=!0,S="g"),(x||d==="0"&&h==="=")&&(x=!0,d="0",h="=");var O=p==="$"?r:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",P=p==="$"?n:/[%p]/.test(S)?i:"",C=aN[S],T=/[defgprs%]/.test(S);v=v===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function A(k){var I=O,D=P,M,R,N;if(S==="c")D=C(k)+D,k="";else{k=+k;var F=k<0||1/k<0;if(k=isNaN(k)?l:C(Math.abs(k),v),w&&(k=_Ve(k)),F&&+k==0&&g!=="+"&&(F=!1),I=(F?g==="("?g:s:g==="-"||g==="("?"":g)+I,D=(S==="s"?lN[8+BW/3]:"")+D+(F&&g==="("?")":""),T){for(M=-1,R=k.length;++MN||N>57){D=(N===46?o+k.slice(M+1):k.slice(M))+D,k=k.slice(0,M);break}}}y&&!x&&(k=t(k,1/0));var j=I.length+k.length+D.length,L=j>1)+I+k+D+L.slice(j);break;default:k=L+I+k+D;break}return a(k)}return A.toString=function(){return f+""},A}function c(f,d){var h=u((f=Ep(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(mc(d)/3)))*3,p=Math.pow(10,-g),x=lN[8+g/3];return function(b){return h(p*b)+x}}return{format:u,formatPrefix:c}}var jv,HT,zW;TVe({thousands:",",grouping:[3],currency:["$",""]});function TVe(e){return jv=EVe(e),HT=jv.format,zW=jv.formatPrefix,jv}function kVe(e){return Math.max(0,-mc(Math.abs(e)))}function AVe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(mc(t)/3)))*3-mc(Math.abs(e)))}function RVe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,mc(t)-mc(e))+1}function VW(e,t,r,n){var o=vC(e,t,r),a;switch(n=Ep(n??",f"),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=AVe(o,i))&&(n.precision=a),zW(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=RVe(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kVe(o))&&(n.precision=a-(n.type==="%")*2);break}}return HT(n)}function vs(e){var t=e.domain;return e.ticks=function(r){var n=t();return pC(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return VW(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,a=n.length-1,i=n[o],s=n[a],l,u,c=10;for(s0;){if(u=hC(i,s,r),u===l)return n[o]=i,n[a]=s,t(n);if(u>0)i=Math.floor(i/u)*u,s=Math.ceil(s/u)*u;else if(u<0)i=Math.ceil(i*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function My(){var e=UT();return e.copy=function(){return Vh(e,My())},mo.apply(e,arguments),vs(e)}function UW(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ay),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return UW(e).unknown(t)},e=arguments.length?Array.from(e,Ay):[0,1],vs(r)}function WW(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],a=e[n],i;return aMath.pow(e,t)}function NVe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function fN(e){return(t,r)=>-e(-t,r)}function qT(e){const t=e(uN,cN),r=t.domain;let n=10,o,a;function i(){return o=NVe(n),a=jVe(n),r()[0]<0?(o=fN(o),a=fN(a),e(MVe,IVe)):e(uN,cN),t}return t.base=function(s){return arguments.length?(n=+s,i()):n},t.domain=function(s){return arguments.length?(r(s),i()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c0){for(;d<=h;++d)for(g=1;gc)break;b.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(pc)break;b.push(p)}b.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ep(l)).precision==null&&(l.trim=!0),l=HT(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(o(c)));return f*nr(WW(r(),{floor:s=>a(Math.floor(o(s))),ceil:s=>a(Math.ceil(o(s)))})),t}function HW(){const e=qT(n1()).domain([1,10]);return e.copy=()=>Vh(e,HW()).base(e.base()),mo.apply(e,arguments),e}function dN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function pN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function GT(e){var t=1,r=e(dN(t),pN(t));return r.constant=function(n){return arguments.length?e(dN(t=+n),pN(t)):t},vs(r)}function qW(){var e=GT(n1());return e.copy=function(){return Vh(e,qW()).constant(e.constant())},mo.apply(e,arguments)}function hN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function LVe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FVe(e){return e<0?-e*e:e*e}function KT(e){var t=e(Jr,Jr),r=1;function n(){return r===1?e(Jr,Jr):r===.5?e(LVe,FVe):e(hN(r),hN(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},vs(t)}function YT(){var e=KT(n1());return e.copy=function(){return Vh(e,YT()).exponent(e.exponent())},mo.apply(e,arguments),e}function BVe(){return YT.apply(null,arguments).exponent(.5)}function vN(e){return Math.sign(e)*e*e}function zVe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function GW(){var e=UT(),t=[0,1],r=!1,n;function o(a){var i=zVe(e(a));return isNaN(i)?n:r?Math.round(i):i}return o.invert=function(a){return e.invert(vN(a))},o.domain=function(a){return arguments.length?(e.domain(a),o):e.domain()},o.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ay)).map(vN)),o):t.slice()},o.rangeRound=function(a){return o.range(a).round(!0)},o.round=function(a){return arguments.length?(r=!!a,o):r},o.clamp=function(a){return arguments.length?(e.clamp(a),o):e.clamp()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return GW(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},mo.apply(o,arguments),vs(o)}function KW(){var e=[],t=[],r=[],n;function o(){var i=0,s=Math.max(1,t.length);for(r=new Array(s-1);++i0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[u-1],n[u]]},i.unknown=function(l){return arguments.length&&(a=l),i},i.thresholds=function(){return n.slice()},i.copy=function(){return YW().domain([e,t]).range(o).unknown(a)},mo.apply(vs(i),arguments)}function XW(){var e=[.5],t=[0,1],r,n=1;function o(a){return a!=null&&a<=a?t[Bh(e,a,0,n)]:r}return o.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(a){var i=t.indexOf(a);return[e[i-1],e[i]]},o.unknown=function(a){return arguments.length?(r=a,o):r},o.copy=function(){return XW().domain(e).range(t).unknown(r)},mo.apply(o,arguments)}const $w=new Date,Ew=new Date;function hr(e,t,r,n){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const i=o(a),s=o.ceil(a);return a-i(t(a=new Date(+a),i==null?1:Math.floor(i)),a),o.range=(a,i,s)=>{const l=[];if(a=o.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uhr(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),r&&(o.count=(a,i)=>($w.setTime(+a),Ew.setTime(+i),e($w),e(Ew),Math.floor(r($w,Ew))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(n?i=>n(i)%a===0:i=>o.count(0,i)%a===0):o)),o}const Iy=hr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Iy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?hr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Iy);Iy.range;const Da=1e3,to=Da*60,ja=to*60,Ya=ja*24,XT=Ya*7,mN=Ya*30,Tw=Ya*365,qs=hr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Da)},(e,t)=>(t-e)/Da,e=>e.getUTCSeconds());qs.range;const QT=hr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Da)},(e,t)=>{e.setTime(+e+t*to)},(e,t)=>(t-e)/to,e=>e.getMinutes());QT.range;const JT=hr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*to)},(e,t)=>(t-e)/to,e=>e.getUTCMinutes());JT.range;const ZT=hr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Da-e.getMinutes()*to)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getHours());ZT.range;const ek=hr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getUTCHours());ek.range;const Uh=hr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*to)/Ya,e=>e.getDate()-1);Uh.range;const o1=hr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ya,e=>e.getUTCDate()-1);o1.range;const QW=hr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ya,e=>Math.floor(e/Ya));QW.range;function Cl(e){return hr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*to)/XT)}const a1=Cl(0),Dy=Cl(1),VVe=Cl(2),UVe=Cl(3),gc=Cl(4),WVe=Cl(5),HVe=Cl(6);a1.range;Dy.range;VVe.range;UVe.range;gc.range;WVe.range;HVe.range;function _l(e){return hr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/XT)}const i1=_l(0),jy=_l(1),qVe=_l(2),GVe=_l(3),yc=_l(4),KVe=_l(5),YVe=_l(6);i1.range;jy.range;qVe.range;GVe.range;yc.range;KVe.range;YVe.range;const tk=hr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tk.range;const rk=hr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());rk.range;const Xa=hr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Xa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:hr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Xa.range;const Qa=hr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:hr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Qa.range;function JW(e,t,r,n,o,a){const i=[[qs,1,Da],[qs,5,5*Da],[qs,15,15*Da],[qs,30,30*Da],[a,1,to],[a,5,5*to],[a,15,15*to],[a,30,30*to],[o,1,ja],[o,3,3*ja],[o,6,6*ja],[o,12,12*ja],[n,1,Ya],[n,2,2*Ya],[r,1,XT],[t,1,mN],[t,3,3*mN],[e,1,Tw]];function s(u,c,f){const d=cx).right(i,d);if(h===i.length)return e.every(vC(u/Tw,c/Tw,f));if(h===0)return Iy.every(Math.max(vC(u,c,f),1));const[g,p]=i[d/i[h-1][2]53)return null;"w"in G||(G.w=1),"Z"in G?(fe=Aw(Bf(G.y,0,1)),ge=fe.getUTCDay(),fe=ge>4||ge===0?jy.ceil(fe):jy(fe),fe=o1.offset(fe,(G.V-1)*7),G.y=fe.getUTCFullYear(),G.m=fe.getUTCMonth(),G.d=fe.getUTCDate()+(G.w+6)%7):(fe=kw(Bf(G.y,0,1)),ge=fe.getDay(),fe=ge>4||ge===0?Dy.ceil(fe):Dy(fe),fe=Uh.offset(fe,(G.V-1)*7),G.y=fe.getFullYear(),G.m=fe.getMonth(),G.d=fe.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),ge="Z"in G?Aw(Bf(G.y,0,1)).getUTCDay():kw(Bf(G.y,0,1)).getDay(),G.m=0,G.d="W"in G?(G.w+6)%7+G.W*7-(ge+5)%7:G.w+G.U*7-(ge+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,Aw(G)):kw(G)}}function C(Q,ae,Z,G){for(var oe=0,fe=ae.length,ge=Z.length,Ae,V;oe=ge)return-1;if(Ae=ae.charCodeAt(oe++),Ae===37){if(Ae=ae.charAt(oe++),V=S[Ae in gN?ae.charAt(oe++):Ae],!V||(G=V(Q,Z,G))<0)return-1}else if(Ae!=Z.charCodeAt(G++))return-1}return G}function T(Q,ae,Z){var G=u.exec(ae.slice(Z));return G?(Q.p=c.get(G[0].toLowerCase()),Z+G[0].length):-1}function A(Q,ae,Z){var G=h.exec(ae.slice(Z));return G?(Q.w=g.get(G[0].toLowerCase()),Z+G[0].length):-1}function k(Q,ae,Z){var G=f.exec(ae.slice(Z));return G?(Q.w=d.get(G[0].toLowerCase()),Z+G[0].length):-1}function I(Q,ae,Z){var G=b.exec(ae.slice(Z));return G?(Q.m=y.get(G[0].toLowerCase()),Z+G[0].length):-1}function D(Q,ae,Z){var G=p.exec(ae.slice(Z));return G?(Q.m=x.get(G[0].toLowerCase()),Z+G[0].length):-1}function M(Q,ae,Z){return C(Q,t,ae,Z)}function R(Q,ae,Z){return C(Q,r,ae,Z)}function N(Q,ae,Z){return C(Q,n,ae,Z)}function F(Q){return i[Q.getDay()]}function j(Q){return a[Q.getDay()]}function L(Q){return l[Q.getMonth()]}function B(Q){return s[Q.getMonth()]}function W(Q){return o[+(Q.getHours()>=12)]}function X(Q){return 1+~~(Q.getMonth()/3)}function J(Q){return i[Q.getUTCDay()]}function K(Q){return a[Q.getUTCDay()]}function ie(Q){return l[Q.getUTCMonth()]}function de(Q){return s[Q.getUTCMonth()]}function ee(Q){return o[+(Q.getUTCHours()>=12)]}function le(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var ae=O(Q+="",v);return ae.toString=function(){return Q},ae},parse:function(Q){var ae=P(Q+="",!1);return ae.toString=function(){return Q},ae},utcFormat:function(Q){var ae=O(Q+="",w);return ae.toString=function(){return Q},ae},utcParse:function(Q){var ae=P(Q+="",!0);return ae.toString=function(){return Q},ae}}}var gN={"-":"",_:" ",0:"0"},Or=/^\s*\d+/,tUe=/^%/,rUe=/[\\^$*+?|[\]().{}]/g;function it(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",a=o.length;return n+(a[t.toLowerCase(),r]))}function oUe(e,t,r){var n=Or.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function aUe(e,t,r){var n=Or.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function iUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function sUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function lUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function yN(e,t,r){var n=Or.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function bN(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function uUe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function cUe(e,t,r){var n=Or.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function fUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function xN(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dUe(e,t,r){var n=Or.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function wN(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function pUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function hUe(e,t,r){var n=Or.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vUe(e,t,r){var n=Or.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mUe(e,t,r){var n=Or.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gUe(e,t,r){var n=tUe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function yUe(e,t,r){var n=Or.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function bUe(e,t,r){var n=Or.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function SN(e,t){return it(e.getDate(),t,2)}function xUe(e,t){return it(e.getHours(),t,2)}function wUe(e,t){return it(e.getHours()%12||12,t,2)}function SUe(e,t){return it(1+Uh.count(Xa(e),e),t,3)}function ZW(e,t){return it(e.getMilliseconds(),t,3)}function OUe(e,t){return ZW(e,t)+"000"}function PUe(e,t){return it(e.getMonth()+1,t,2)}function CUe(e,t){return it(e.getMinutes(),t,2)}function _Ue(e,t){return it(e.getSeconds(),t,2)}function $Ue(e){var t=e.getDay();return t===0?7:t}function EUe(e,t){return it(a1.count(Xa(e)-1,e),t,2)}function e9(e){var t=e.getDay();return t>=4||t===0?gc(e):gc.ceil(e)}function TUe(e,t){return e=e9(e),it(gc.count(Xa(e),e)+(Xa(e).getDay()===4),t,2)}function kUe(e){return e.getDay()}function AUe(e,t){return it(Dy.count(Xa(e)-1,e),t,2)}function RUe(e,t){return it(e.getFullYear()%100,t,2)}function MUe(e,t){return e=e9(e),it(e.getFullYear()%100,t,2)}function IUe(e,t){return it(e.getFullYear()%1e4,t,4)}function DUe(e,t){var r=e.getDay();return e=r>=4||r===0?gc(e):gc.ceil(e),it(e.getFullYear()%1e4,t,4)}function jUe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+it(t/60|0,"0",2)+it(t%60,"0",2)}function ON(e,t){return it(e.getUTCDate(),t,2)}function NUe(e,t){return it(e.getUTCHours(),t,2)}function LUe(e,t){return it(e.getUTCHours()%12||12,t,2)}function FUe(e,t){return it(1+o1.count(Qa(e),e),t,3)}function t9(e,t){return it(e.getUTCMilliseconds(),t,3)}function BUe(e,t){return t9(e,t)+"000"}function zUe(e,t){return it(e.getUTCMonth()+1,t,2)}function VUe(e,t){return it(e.getUTCMinutes(),t,2)}function UUe(e,t){return it(e.getUTCSeconds(),t,2)}function WUe(e){var t=e.getUTCDay();return t===0?7:t}function HUe(e,t){return it(i1.count(Qa(e)-1,e),t,2)}function r9(e){var t=e.getUTCDay();return t>=4||t===0?yc(e):yc.ceil(e)}function qUe(e,t){return e=r9(e),it(yc.count(Qa(e),e)+(Qa(e).getUTCDay()===4),t,2)}function GUe(e){return e.getUTCDay()}function KUe(e,t){return it(jy.count(Qa(e)-1,e),t,2)}function YUe(e,t){return it(e.getUTCFullYear()%100,t,2)}function XUe(e,t){return e=r9(e),it(e.getUTCFullYear()%100,t,2)}function QUe(e,t){return it(e.getUTCFullYear()%1e4,t,4)}function JUe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?yc(e):yc.ceil(e),it(e.getUTCFullYear()%1e4,t,4)}function ZUe(){return"+0000"}function PN(){return"%"}function CN(e){return+e}function _N(e){return Math.floor(+e/1e3)}var Kl,n9,o9;e8e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function e8e(e){return Kl=eUe(e),n9=Kl.format,Kl.parse,o9=Kl.utcFormat,Kl.utcParse,Kl}function t8e(e){return new Date(e)}function r8e(e){return e instanceof Date?+e:+new Date(+e)}function nk(e,t,r,n,o,a,i,s,l,u){var c=UT(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),p=u("%I:%M"),x=u("%I %p"),b=u("%a %d"),y=u("%b %d"),v=u("%B"),w=u("%Y");function S(O){return(l(O)t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,a)=>H6e(e,a/n))},r.copy=function(){return l9(t).domain(e)},si.apply(r,arguments)}function l1(){var e=0,t=.5,r=1,n=1,o,a,i,s,l,u=Jr,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*pe.e^a.s<0?1:-1;for(n=a.d.length,o=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===o?0:n>o^a.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*It;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ie.dividedBy=Ie.div=function(e){return Ba(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,r=t.constructor;return xt(Ba(t,new r(e),0,1),r.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return ir(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,r=this,n=r.constructor,o=n.precision,a=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(An))throw Error(co+"NaN");if(r.s<1)throw Error(co+(r.s?"NaN":"-Infinity"));return r.eq(An)?new n(0):(Ft=!1,t=Ba(Tp(r,a),Tp(e,a),a),Ft=!0,xt(t,o))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v9(t,e):p9(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(co+"NaN");return r.s?(Ft=!1,t=Ba(r,e,0,1).times(e),Ft=!0,r.minus(t)):xt(new n(r),o)};Ie.naturalExponential=Ie.exp=function(){return h9(this)};Ie.naturalLogarithm=Ie.ln=function(){return Tp(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?p9(t,e):v9(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rl+e);if(t=ir(o)+1,n=o.d.length-1,r=n*It+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ie.squareRoot=Ie.sqrt=function(){var e,t,r,n,o,a,i,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(co+"NaN")}for(e=ir(s),Ft=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=na(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=lf((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(o.toString()),r=l.precision,o=i=r+3;;)if(a=n,n=a.plus(Ba(s,a,i+2)).times(.5),na(a.d).slice(0,i)===(t=na(n.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&t=="4999"){if(xt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;i+=4}return Ft=!0,xt(n,r)};Ie.times=Ie.mul=function(e){var t,r,n,o,a,i,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l=0;){for(t=0,o=l+n;o>n;)s=a[o]+h[n]*d[o-n-1]+t,a[o--]=s%gr|0,t=s/gr|0;a[o]=(a[o]+t)%gr|0}for(;!a[--i];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ft?xt(e,f.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(da(e,0,sf),t===void 0?t=n.rounding:da(t,0,8),xt(r,e+ir(r)+1,t))};Ie.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=gl(n,!0):(da(e,0,sf),t===void 0?t=o.rounding:da(t,0,8),n=xt(new o(n),e+1,t),r=gl(n,!0,e+1)),r};Ie.toFixed=function(e,t){var r,n,o=this,a=o.constructor;return e===void 0?gl(o):(da(e,0,sf),t===void 0?t=a.rounding:da(t,0,8),n=xt(new a(o),e+ir(o)+1,t),r=gl(n.abs(),!1,e+ir(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return xt(new t(e),ir(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,r,n,o,a,i,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(An);if(s=new l(s),!s.s){if(e.s<1)throw Error(co+"Infinity");return s}if(s.eq(An))return s;if(n=l.precision,e.eq(An))return xt(s,n);if(t=e.e,r=e.d.length-1,i=t>=r,a=s.s,i){if((r=c<0?-c:c)<=d9){for(o=new l(An),t=Math.ceil(n/It+4),Ft=!1;r%2&&(o=o.times(s),TN(o.d,t)),r=lf(r/2),r!==0;)s=s.times(s),TN(s.d,t);return Ft=!0,e.s<0?new l(An).div(o):xt(o,n)}}else if(a<0)throw Error(co+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ft=!1,o=e.times(Tp(s,n+u)),Ft=!0,o=h9(o),o.s=a,o};Ie.toPrecision=function(e,t){var r,n,o=this,a=o.constructor;return e===void 0?(r=ir(o),n=gl(o,r<=a.toExpNeg||r>=a.toExpPos)):(da(e,1,sf),t===void 0?t=a.rounding:da(t,0,8),o=xt(new a(o),e,t),r=ir(o),n=gl(o,e<=r||r<=a.toExpNeg,e)),n};Ie.toSignificantDigits=Ie.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(da(e,1,sf),t===void 0?t=n.rounding:da(t,0,8)),xt(new n(r),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ir(e),r=e.constructor;return gl(e,t<=r.toExpNeg||t>=r.toExpPos)};function p9(e,t){var r,n,o,a,i,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ft?xt(t,f):t;if(l=e.d,u=t.d,i=e.e,o=t.e,l=l.slice(),a=i-o,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,o=i,s=l.length),i=Math.ceil(f/It),s=i>s?i+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/gr|0,l[a]%=gr;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Ft?xt(t,f):t}function da(e,t,r){if(e!==~~e||er)throw Error(rl+e)}function na(e){var t,r,n,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;ti?1:-1;else for(s=l=0;so[s]?1:-1;break}return l}function r(n,o,a){for(var i=0;a--;)n[a]-=i,i=n[a]1;)n.shift()}return function(n,o,a,i){var s,l,u,c,f,d,h,g,p,x,b,y,v,w,S,O,P,C,T=n.constructor,A=n.s==o.s?1:-1,k=n.d,I=o.d;if(!n.s)return new T(n);if(!o.s)throw Error(co+"Division by zero");for(l=n.e-o.e,P=I.length,S=k.length,h=new T(A),g=h.d=[],u=0;I[u]==(k[u]||0);)++u;if(I[u]>(k[u]||0)&&--l,a==null?y=a=T.precision:i?y=a+(ir(n)-ir(o))+1:y=a,y<0)return new T(0);if(y=y/It+2|0,u=0,P==1)for(c=0,I=I[0],y++;(u1&&(I=e(I,c),k=e(k,c),P=I.length,S=k.length),w=P,p=k.slice(0,P),x=p.length;x=gr/2&&++O;do c=0,s=t(I,p,P,x),s<0?(b=p[0],P!=x&&(b=b*gr+(p[1]||0)),c=b/O|0,c>1?(c>=gr&&(c=gr-1),f=e(I,c),d=f.length,x=p.length,s=t(f,p,d,x),s==1&&(c--,r(f,P16)throw Error(ik+ir(e));if(!e.s)return new c(An);for(t==null?(Ft=!1,s=f):s=t,i=new c(.03125);e.abs().gte(.1);)e=e.times(i),u+=5;for(n=Math.log(As(2,u))/Math.LN10*2+5|0,s+=n,r=o=a=new c(An),c.precision=s;;){if(o=xt(o.times(e),s),r=r.times(++l),i=a.plus(Ba(o,r,s)),na(i.d).slice(0,s)===na(a.d).slice(0,s)){for(;u--;)a=xt(a.times(a),s);return c.precision=f,t==null?(Ft=!0,xt(a,f)):a}a=i}}function ir(e){for(var t=e.e*It,r=e.d[0];r>=10;r/=10)t++;return t}function Rw(e,t,r){if(t>e.LN10.sd())throw Ft=!0,r&&(e.precision=r),Error(co+"LN10 precision limit exceeded");return xt(new e(e.LN10),t)}function bi(e){for(var t="";e--;)t+="0";return t}function Tp(e,t){var r,n,o,a,i,s,l,u,c,f=1,d=10,h=e,g=h.d,p=h.constructor,x=p.precision;if(h.s<1)throw Error(co+(h.s?"NaN":"-Infinity"));if(h.eq(An))return new p(0);if(t==null?(Ft=!1,u=x):u=t,h.eq(10))return t==null&&(Ft=!0),Rw(p,u);if(u+=d,p.precision=u,r=na(g),n=r.charAt(0),a=ir(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=na(h.d),n=r.charAt(0),f++;a=ir(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=Rw(p,u+2,x).times(a+""),h=Tp(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=x,t==null?(Ft=!0,xt(h,x)):h;for(s=i=h=Ba(h.minus(An),h.plus(An),u),c=xt(h.times(h),u),o=3;;){if(i=xt(i.times(c),u),l=s.plus(Ba(i,new p(o),u)),na(l.d).slice(0,u)===na(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Rw(p,u+2,x).times(a+""))),s=Ba(s,new p(f),u),p.precision=x,t==null?(Ft=!0,xt(s,x)):s;s=l,o+=2}}function EN(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=lf(r/It),e.d=[],n=(r+1)%It,r<0&&(n+=It),nNy||e.e<-Ny))throw Error(ik+r)}else e.s=0,e.e=0,e.d=[0];return e}function xt(e,t,r){var n,o,a,i,s,l,u,c,f=e.d;for(i=1,a=f[0];a>=10;a/=10)i++;if(n=t-i,n<0)n+=It,o=t,u=f[c=0];else{if(c=Math.ceil((n+1)/It),a=f.length,c>=a)return e;for(u=a=f[c],i=1;a>=10;a/=10)i++;n%=It,o=n-It+i}if(r!==void 0&&(a=As(10,i-o-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?o>0?u/As(10,i-o):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=ir(e),f.length=1,t=t-a-1,f[0]=As(10,(It-t%It)%It),e.e=lf(-t/It)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=As(10,It-n),f[c]=o>0?(u/As(10,i-o)%As(10,o)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==gr&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=gr)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Ft&&(e.e>Ny||e.e<-Ny))throw Error(ik+ir(e));return e}function v9(e,t){var r,n,o,a,i,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ft?xt(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),i=u-n,i){for(c=i<0,c?(r=l,i=-i,s=f.length):(r=f,n=u,s=l.length),o=Math.max(Math.ceil(h/It),s)+2,i>o&&(i=o,r.length=1),r.reverse(),o=i;o--;)r.push(0);r.reverse()}else{for(o=l.length,s=f.length,c=o0;--o)l[s++]=0;for(o=f.length;o>i;){if(l[--o]0?a=a.charAt(0)+"."+a.slice(1)+bi(n):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+bi(-o-1)+a,r&&(n=r-i)>0&&(a+=bi(n))):o>=i?(a+=bi(o+1-i),r&&(n=r-o-1)>0&&(a=a+"."+bi(n))):((n=o+1)0&&(o+1===i&&(a+="."),a+=bi(n))),e.s<0?"-"+a:a}function TN(e,t){if(e.length>t)return e.length=t,!0}function m9(e){var t,r,n;function o(a){var i=this;if(!(i instanceof o))return new o(a);if(i.constructor=o,a instanceof o){i.s=a.s,i.e=a.e,i.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(rl+a);if(a>0)i.s=1;else if(a<0)a=-a,i.s=-1;else{i.s=0,i.e=0,i.d=[0];return}if(a===~~a&&a<1e7){i.e=0,i.d=[a];return}return EN(i,a.toString())}else if(typeof a!="string")throw Error(rl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),i.s=-1):i.s=1,l8e.test(a))EN(i,a);else throw Error(rl+a)}if(o.prototype=Ie,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=m9,o.config=o.set=u8e,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(rl+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(rl+r+": "+n);return this}var sk=m9(s8e);An=new sk(1);const yt=sk;function c8e(e){return h8e(e)||p8e(e)||d8e(e)||f8e()}function f8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d8e(e,t){if(e){if(typeof e=="string")return xC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xC(e,t)}}function p8e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function h8e(e){if(Array.isArray(e))return xC(e)}function xC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,o):e(t-i,kN(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(o)throw a}}return r}}function T8e(e){if(Array.isArray(e))return e}function w9(e){var t=kp(e,2),r=t[0],n=t[1],o=r,a=n;return r>n&&(o=n,a=r),[o,a]}function S9(e,t,r){if(e.lte(0))return new yt(0);var n=c1.getDigitCount(e.toNumber()),o=new yt(10).pow(n),a=e.div(o),i=n!==1?.05:.1,s=new yt(Math.ceil(a.div(i).toNumber())).add(r).mul(i),l=s.mul(o);return t?l:new yt(Math.ceil(l))}function k8e(e,t,r){var n=1,o=new yt(e);if(!o.isint()&&r){var a=Math.abs(e);a<1?(n=new yt(10).pow(c1.getDigitCount(e)-1),o=new yt(Math.floor(o.div(n).toNumber())).mul(n)):a>1&&(o=new yt(Math.floor(e)))}else e===0?o=new yt(Math.floor((t-1)/2)):r||(o=new yt(Math.floor(e)));var i=Math.floor((t-1)/2),s=y8e(g8e(function(l){return o.add(new yt(l-i).mul(n)).toNumber()}),wC);return s(0,t)}function O9(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var a=S9(new yt(t).sub(e).div(r-1),n,o),i;e<=0&&t>=0?i=new yt(0):(i=new yt(e).add(t).div(2),i=i.sub(new yt(i).mod(a)));var s=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new yt(t).sub(i).div(a).toNumber()),u=s+l+1;return u>r?O9(e,t,r,n,o+1):(u0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:i.sub(new yt(s).mul(a)),tickMax:i.add(new yt(l).mul(a))})}function A8e(e){var t=kp(e,2),r=t[0],n=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(o,2),s=w9([r,n]),l=kp(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(OC(wC(0,o-1).map(function(){return 1/0}))):[].concat(OC(wC(0,o-1).map(function(){return-1/0})),[c]);return r>n?SC(f):f}if(u===c)return k8e(u,o,a);var d=O9(u,c,i,a),h=d.step,g=d.tickMin,p=d.tickMax,x=c1.rangeStep(g,p.add(new yt(.1).mul(h)),h);return r>n?SC(x):x}function R8e(e,t){var r=kp(e,2),n=r[0],o=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=w9([n,o]),s=kp(i,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,o];if(l===u)return[l];var c=Math.max(t,2),f=S9(new yt(u).sub(l).div(c-1),a,0),d=[].concat(OC(c1.rangeStep(new yt(l),new yt(u).sub(new yt(.99).mul(f)),f)),[u]);return n>o?SC(d):d}var M8e=b9(A8e),I8e=b9(R8e),D8e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V8e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function f1(e){var t=e.offset,r=e.layout,n=e.width,o=e.dataKey,a=e.data,i=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=z8e(e,D8e),c=et(u),f=a.map(function(d,h){var g=i(d,o),p=g.x,x=g.y,b=g.value,y=g.errorVal;if(!y)return null;var v=[],w,S;if(Array.isArray(y)){var O=j8e(y,2);w=O[0],S=O[1]}else w=S=y;if(r==="vertical"){var P=s.scale,C=x+t,T=C+n,A=C-n,k=P(b-w),I=P(b+S);v.push({x1:I,y1:T,x2:I,y2:A}),v.push({x1:k,y1:C,x2:I,y2:C}),v.push({x1:k,y1:T,x2:k,y2:A})}else if(r==="horizontal"){var D=l.scale,M=p+t,R=M-n,N=M+n,F=D(b-w),j=D(b+S);v.push({x1:R,y1:j,x2:N,y2:j}),v.push({x1:M,y1:F,x2:M,y2:j}),v.push({x1:R,y1:F,x2:N,y2:F})}return z.createElement(Xt,Ly({className:"recharts-errorBar",key:"bar-".concat(h)},c),v.map(function(L,B){return z.createElement("line",Ly({},L,{key:"line-".concat(B)}))}))});return z.createElement(Xt,{className:"recharts-errorBars"},f)}f1.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};f1.displayName="ErrorBar";function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function RN(e){return q8e(e)||H8e(e)||W8e(e)||U8e()}function U8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W8e(e,t){if(e){if(typeof e=="string")return CC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CC(e,t)}}function H8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q8e(e){if(Array.isArray(e))return CC(e)}function CC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?o[u-1].coordinate:o[s-1].coordinate,f=o[u].coordinate,d=u>=s-1?o[0].coordinate:o[u+1].coordinate,h=void 0;if(eo(f-c)!==eo(d-f)){var g=[];if(eo(d-f)===eo(l[1]-l[0])){h=d;var p=f+l[1]-l[0];g[0]=Math.min(p,(p+c)/2),g[1]=Math.max(p,(p+c)/2)}else{h=c;var x=d+l[1]-l[0];g[0]=Math.min(f,(x+f)/2),g[1]=Math.max(f,(x+f)/2)}var b=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>b[0]&&t<=b[1]||t>=g[0]&&t<=g[1]){i=o[u].index;break}}else{var y=Math.min(c,d),v=Math.max(c,d);if(t>(y+f)/2&&t<=(v+f)/2){i=o[u].index;break}}}else for(var w=0;w0&&w(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){i=n[w].index;break}return i},lk=function(t){var r=t,n=r.type.displayName,o=t.props,a=o.stroke,i=o.fill,s;switch(n){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:i;break;default:s=i;break}return s},P9=function(t){var r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,a=t.legendContent,i=Ia(r,Ka);if(!i)return null;var s;return i.props&&i.props.payload?s=i.props&&i.props.payload:a==="children"?s=(n||[]).reduce(function(l,u){var c=u.item,f=u.props,d=f.sectors||f.data||[];return l.concat(d.map(function(h){return{type:i.props.iconType||c.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):s=(n||[]).map(function(l){var u=l.item,c=u.props,f=c.dataKey,d=c.name,h=c.legendType,g=c.hide;return{inactive:g,dataKey:f,type:i.props.iconType||h||"square",color:lk(u),value:d||f,payload:u.props}}),Xr(Xr(Xr({},i.props),Ka.getWithHeight(i,o)),{},{payload:s,item:i})},X8e=function(t){var r=t.barSize,n=t.stackGroups,o=n===void 0?{}:n;if(!o)return{};for(var a={},i=Object.keys(o),s=0,l=i.length;s=0});if(x&&x.length){var b=x[0].props.barSize,y=x[0].props[p];a[y]||(a[y]=[]),a[y].push({item:x[0],stackList:x.slice(1),barSize:Le(b)?r:b})}}return a},Q8e=function(t){var r=t.barGap,n=t.barCategoryGap,o=t.bandSize,a=t.sizeList,i=a===void 0?[]:a,s=t.maxBarSize,l=i.length;if(l<1)return null;var u=uc(r,o,0,!0),c;if(i[0].barSize===+i[0].barSize){var f=!1,d=o/l,h=i.reduce(function(v,w){return v+w.barSize||0},0);h+=(l-1)*u,h>=o&&(h-=(l-1)*u,u=0),h>=o&&d>0&&(f=!0,d*=.9,h=l*d);var g=(o-h)/2>>0,p={offset:g-u,size:0};c=i.reduce(function(v,w){var S=[].concat(RN(v),[{item:w.item,position:{offset:p.offset+p.size+u,size:f?d:w.barSize}}]);return p=S[S.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(O){S.push({item:O,position:p})}),S},[])}else{var x=uc(n,o,0,!0);o-2*x-(l-1)*u<=0&&(u=0);var b=(o-2*x-(l-1)*u)/l;b>1&&(b>>=0);var y=s===+s?Math.min(b,s):b;c=i.reduce(function(v,w,S){var O=[].concat(RN(v),[{item:w.item,position:{offset:x+(b+u)*S+(b-y)/2,size:y}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},[])}return c},J8e=function(t,r,n,o){var a=n.children,i=n.width,s=n.margin,l=i-(s.left||0)-(s.right||0),u=P9({children:a,legendWidth:l}),c=t;if(u){var f=o||{},d=u.align,h=u.verticalAlign,g=u.layout;(g==="vertical"||g==="horizontal"&&h==="middle")&&be(t[d])&&(c=Xr(Xr({},t),{},Uu({},d,c[d]+(f.width||0)))),(g==="horizontal"||g==="vertical"&&d==="center")&&be(t[h])&&(c=Xr(Xr({},t),{},Uu({},h,c[h]+(f.height||0))))}return c},Z8e=function(t,r,n){return Le(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},C9=function(t,r,n,o,a){var i=r.props.children,s=Mo(i,f1).filter(function(u){return Z8e(o,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=fo(c,n,0),d=ar(f)?[r1(f),Ti(f)]:[f,f],h=l.reduce(function(g,p){var x=fo(c,p,0),b=d[0]-Math.abs(ar(x)?x[0]:x),y=d[1]+Math.abs(ar(x)?x[1]:x);return[Math.min(b,g[0]),Math.max(y,g[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},eWe=function(t,r,n,o,a){var i=r.map(function(s){return C9(t,s,n,a,o)}).filter(function(s){return!Le(s)});return i&&i.length?i.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},_9=function(t,r,n,o,a){var i=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&C9(t,l,u,o)||Nd(t,u,n,a)});if(n==="number")return i.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return i.reduce(function(l,u){for(var c=0,f=u.length;c=2?eo(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:o(d)+u,value:f,offset:u}});return c.filter(function(f){return!nf(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:o(f)+u,value:f,index:d,offset:u}}):o.ticks&&!n?o.ticks(t.tickCount).map(function(f){return{coordinate:o(f)+u,value:f,offset:u}}):o.domain().map(function(f,d){return{coordinate:o(f)+u,value:a?a[f]:f,index:d,offset:u}})},Nv=function(t,r,n){var o;return Ve(n)?o=n:Ve(r)&&(o=r),Ve(t)||o?function(a,i,s,l){Ve(t)&&t(a,i,s,l),Ve(o)&&o(a,i,s,l)}:null},tWe=function(t,r,n){var o=t.scale,a=t.type,i=t.layout,s=t.axisType;if(o==="auto")return i==="radial"&&s==="radiusAxis"?{scale:Pp(),realScaleType:"band"}:i==="radial"&&s==="angleAxis"?{scale:My(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:jd(),realScaleType:"point"}:a==="category"?{scale:Pp(),realScaleType:"band"}:{scale:My(),realScaleType:"linear"};if(Nh(o)){var l="scale".concat(X0(o));return{scale:($N[l]||jd)(),realScaleType:$N[l]?l:"point"}}return Ve(o)?{scale:o}:{scale:jd(),realScaleType:"point"}},DN=1e-4,rWe=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,o=t.range(),a=Math.min(o[0],o[1])-DN,i=Math.max(o[0],o[1])+DN,s=t(r[0]),l=t(r[n-1]);(si||li)&&t.domain([r[0],r[n-1]])}},nWe=function(t,r){if(!t)return null;for(var n=0,o=t.length;no)&&(a[1]=o),a[0]>o&&(a[0]=o),a[1]=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1])}},iWe=function(t){var r=t.length;if(!(r<=0))for(var n=0,o=t[0].length;n=0?(t[i][n][0]=a,t[i][n][1]=a+s,a=t[i][n][1]):(t[i][n][0]=0,t[i][n][1]=0)}},sWe={sign:aWe,expand:e3e,none:cc,silhouette:t3e,wiggle:r3e,positive:iWe},lWe=function(t,r,n){var o=r.map(function(i){return i.props.dataKey}),a=ZBe().keys(o).value(function(i,s){return+fo(i,s,0)}).order(VP).offset(sWe[n]);return a(t)},uWe=function(t,r,n,o,a,i){if(!t)return null;var s=i?r.reverse():r,l=s.reduce(function(u,c){var f=c.props,d=f.stackId,h=f.hide;if(h)return u;var g=c.props[n],p=u[g]||{hasStack:!1,stackGroups:{}};if(fr(d)){var x=p.stackGroups[d]||{numericAxisId:n,cateAxisId:o,items:[]};x.items.push(c),p.hasStack=!0,p.stackGroups[d]=x}else p.stackGroups[Lh("_stackId_")]={numericAxisId:n,cateAxisId:o,items:[c]};return Xr(Xr({},u),{},Uu({},g,p))},{});return Object.keys(l).reduce(function(u,c){var f=l[c];return f.hasStack&&(f.stackGroups=Object.keys(f.stackGroups).reduce(function(d,h){var g=f.stackGroups[h];return Xr(Xr({},d),{},Uu({},h,{numericAxisId:n,cateAxisId:o,items:g.items,stackedData:lWe(t,g.items,a)}))},{})),Xr(Xr({},u),{},Uu({},c,f))},{})},cWe=function(t,r){var n=r.realScaleType,o=r.type,a=r.tickCount,i=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&o==="number"&&i&&(i[0]==="auto"||i[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=M8e(u,a,s);return t.domain([r1(c),Ti(c)]),{niceTicks:c}}if(a&&o==="number"){var f=t.domain(),d=I8e(f,a,s);return{niceTicks:d}}return null},jN=function(t){var r=t.axis,n=t.ticks,o=t.bandSize,a=t.entry,i=t.index,s=t.dataKey;if(r.type==="category"){if(!r.allowDuplicatedCategory&&r.dataKey&&!Le(a[r.dataKey])){var l=cy(n,"value",a[r.dataKey]);if(l)return l.coordinate+o/2}return n[i]?n[i].coordinate+o/2:null}var u=fo(a,Le(s)?r.dataKey:s);return Le(u)?null:r.scale(u)},NN=function(t){var r=t.axis,n=t.ticks,o=t.offset,a=t.bandSize,i=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+o:null;var l=fo(i,r.dataKey,r.domain[s]);return Le(l)?null:r.scale(l)-a/2+o},fWe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var o=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return o<=0&&a>=0?0:a<0?a:o}return n[0]},dWe=function(t,r){var n=t.props.stackId;if(fr(n)){var o=r[n];if(o&&o.items.length){for(var a=-1,i=0,s=o.items.length;i=0?o.stackedData[a]:null}}return null},pWe=function(t){return t.reduce(function(r,n){return[r1(n.concat([r[0]]).filter(be)),Ti(n.concat([r[1]]).filter(be))]},[1/0,-1/0])},E9=function(t,r,n){return Object.keys(t).reduce(function(o,a){var i=t[a],s=i.stackedData,l=s.reduce(function(u,c){var f=pWe(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},LN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,FN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_C=function(t,r,n){if(Ve(t))return t(r,n);if(!ar(t))return r;var o=[];if(be(t[0]))o[0]=n?t[0]:Math.min(t[0],r[0]);else if(LN.test(t[0])){var a=+LN.exec(t[0])[1];o[0]=r[0]-a}else Ve(t[0])?o[0]=t[0](r[0]):o[0]=r[0];if(be(t[1]))o[1]=n?t[1]:Math.max(t[1],r[1]);else if(FN.test(t[1])){var i=+FN.exec(t[1])[1];o[1]=r[1]+i}else Ve(t[1])?o[1]=t[1](r[1]):o[1]=r[1];return o},Fy=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!n||o>0)return o}if(t&&r&&r.length>=2){for(var a=NT(r,function(f){return f.coordinate}),i=1/0,s=1,l=a.length;si&&(u=2*Math.PI-u),{radius:s,angle:gWe(u),angleInRadian:u}},xWe=function(t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),a=Math.floor(n/360),i=Math.min(o,a);return{startAngle:r-i*360,endAngle:n-i*360}},wWe=function(t,r){var n=r.startAngle,o=r.endAngle,a=Math.floor(n/360),i=Math.floor(o/360),s=Math.min(a,i);return t+s*360},UN=function(t,r){var n=t.x,o=t.y,a=bWe({x:n,y:o},r),i=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(iu)return!1;if(i===0)return!0;var c=xWe(r),f=c.startAngle,d=c.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return g?VN(VN({},r),{},{radius:i,angle:wWe(h,r)}):null};function Mp(e){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(e)}var SWe=["offset"];function OWe(e){return $We(e)||_We(e)||CWe(e)||PWe()}function PWe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CWe(e,t){if(e){if(typeof e=="string")return $C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $C(e,t)}}function _We(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $We(e){if(Array.isArray(e))return $C(e)}function $C(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TWe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function WN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lr(e){for(var t=1;t=0?1:-1,v,w;o==="insideStart"?(v=h+y*i,w=p):o==="insideEnd"?(v=g-y*i,w=!p):o==="end"&&(v=g+y*i,w=p),w=b<=0?w:!w;var S=Rr(u,c,x,v),O=Rr(u,c,x,v+(w?1:-1)*359),P="M".concat(S.x,",").concat(S.y,` + A`).concat(x,",").concat(x,",0,1,").concat(w?0:1,`, + `).concat(O.x,",").concat(O.y),C=Le(t.id)?Lh("recharts-radial-line-"):t.id;return z.createElement("text",Ip({},n,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",s)}),z.createElement("defs",null,z.createElement("path",{id:C,d:P})),z.createElement("textPath",{xlinkHref:"#".concat(C)},r))},jWe=function(t){var r=t.viewBox,n=t.offset,o=t.position,a=r,i=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(o==="outside"){var h=Rr(i,s,u+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=i?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"end"};var x=(l+u)/2,b=Rr(i,s,x,d),y=b.x,v=b.y;return{x:y,y:v,textAnchor:"middle",verticalAnchor:"middle"}},NWe=function(t){var r=t.viewBox,n=t.parentViewBox,o=t.offset,a=t.position,i=r,s=i.x,l=i.y,u=i.width,c=i.height,f=c>=0?1:-1,d=f*o,h=f>0?"end":"start",g=f>0?"start":"end",p=u>=0?1:-1,x=p*o,b=p>0?"end":"start",y=p>0?"start":"end";if(a==="top"){var v={x:s+u/2,y:l-f*o,textAnchor:"middle",verticalAnchor:h};return lr(lr({},v),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var w={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return lr(lr({},w),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var S={x:s-x,y:l+c/2,textAnchor:b,verticalAnchor:"middle"};return lr(lr({},S),n?{width:Math.max(S.x-n.x,0),height:c}:{})}if(a==="right"){var O={x:s+u+x,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return lr(lr({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:c}:{})}var P=n?{width:u,height:c}:{};return a==="insideLeft"?lr({x:s+x,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},P):a==="insideRight"?lr({x:s+u-x,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},P):a==="insideTop"?lr({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:g},P):a==="insideBottom"?lr({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},P):a==="insideTopLeft"?lr({x:s+x,y:l+d,textAnchor:y,verticalAnchor:g},P):a==="insideTopRight"?lr({x:s+u-x,y:l+d,textAnchor:b,verticalAnchor:g},P):a==="insideBottomLeft"?lr({x:s+x,y:l+c-d,textAnchor:y,verticalAnchor:h},P):a==="insideBottomRight"?lr({x:s+u-x,y:l+c-d,textAnchor:b,verticalAnchor:h},P):Rc(a)&&(be(a.x)||Ws(a.x))&&(be(a.y)||Ws(a.y))?lr({x:s+uc(a.x,u),y:l+uc(a.y,c),textAnchor:"end",verticalAnchor:"end"},P):lr({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},P)},LWe=function(t){return"cx"in t&&be(t.cx)};function Ur(e){var t=e.offset,r=t===void 0?5:t,n=EWe(e,SWe),o=lr({offset:r},n),a=o.viewBox,i=o.position,s=o.value,l=o.children,u=o.content,c=o.className,f=c===void 0?"":c,d=o.textBreakAll;if(!a||Le(s)&&Le(l)&&!m.isValidElement(u)&&!Ve(u))return null;if(m.isValidElement(u))return m.cloneElement(u,o);var h;if(Ve(u)){if(h=m.createElement(u,o),m.isValidElement(h))return h}else h=MWe(o);var g=LWe(a),p=et(o,!0);if(g&&(i==="insideStart"||i==="insideEnd"||i==="end"))return DWe(o,h,p);var x=g?jWe(o):NWe(o);return z.createElement(_y,Ip({className:wt("recharts-label",f)},p,x,{breakAll:d}),h)}Ur.displayName="Label";var k9=function(t){var r=t.cx,n=t.cy,o=t.angle,a=t.startAngle,i=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,x=t.height,b=t.clockWise,y=t.labelViewBox;if(y)return y;if(be(p)&&be(x)){if(be(f)&&be(d))return{x:f,y:d,width:p,height:x};if(be(h)&&be(g))return{x:h,y:g,width:p,height:x}}return be(f)&&be(d)?{x:f,y:d,width:0,height:0}:be(r)&&be(n)?{cx:r,cy:n,startAngle:a||o||0,endAngle:i||o||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},FWe=function(t,r){return t?t===!0?z.createElement(Ur,{key:"label-implicit",viewBox:r}):fr(t)?z.createElement(Ur,{key:"label-implicit",viewBox:r,value:t}):m.isValidElement(t)?t.type===Ur?m.cloneElement(t,{key:"label-implicit",viewBox:r}):z.createElement(Ur,{key:"label-implicit",content:t,viewBox:r}):Ve(t)?z.createElement(Ur,{key:"label-implicit",content:t,viewBox:r}):Rc(t)?z.createElement(Ur,Ip({viewBox:r},t,{key:"label-implicit"})):null:null},BWe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var o=t.children,a=k9(t),i=Mo(o,Ur).map(function(l,u){return m.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return i;var s=FWe(t.label,r||a);return[s].concat(OWe(i))};Ur.parseViewBox=k9;Ur.renderCallByParent=BWe;function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}var zWe=["valueAccessor"],VWe=["data","dataKey","clockWise","id","textBreakAll"];function UWe(e){return GWe(e)||qWe(e)||HWe(e)||WWe()}function WWe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HWe(e,t){if(e){if(typeof e=="string")return EC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return EC(e,t)}}function qWe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GWe(e){if(Array.isArray(e))return EC(e)}function EC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QWe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var JWe=function(t){return ar(t.value)?AQ(t.value):t.value};function Gi(e){var t=e.valueAccessor,r=t===void 0?JWe:t,n=GN(e,zWe),o=n.data,a=n.dataKey,i=n.clockWise,s=n.id,l=n.textBreakAll,u=GN(n,VWe);return!o||!o.length?null:z.createElement(Xt,{className:"recharts-label-list"},o.map(function(c,f){var d=Le(a)?r(c,f):fo(c&&c.payload,a),h=Le(s)?{}:{id:"".concat(s,"-").concat(f)};return z.createElement(Ur,zy({},et(c,!0),u,h,{parentViewBox:c.parentViewBox,index:f,value:d,textBreakAll:l,viewBox:Ur.parseViewBox(Le(i)?c:qN(qN({},c),{},{clockWise:i})),key:"label-".concat(f)}))}))}Gi.displayName="LabelList";function ZWe(e,t){return e?e===!0?z.createElement(Gi,{key:"labelList-implicit",data:t}):z.isValidElement(e)||Ve(e)?z.createElement(Gi,{key:"labelList-implicit",data:t,content:e}):Rc(e)?z.createElement(Gi,zy({data:t},e,{key:"labelList-implicit"})):null:null}function e9e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,o=Mo(n,Gi).map(function(i,s){return m.cloneElement(i,{data:t,key:"labelList-".concat(s)})});if(!r)return o;var a=ZWe(e.label,t);return[a].concat(UWe(o))}Gi.renderCallByParent=e9e;function jp(e){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(e)}function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>u),`, + `).concat(f.x,",").concat(f.y,` + `);if(o>0){var h=Rr(r,n,o,i),g=Rr(r,n,o,u);d+="L ".concat(g.x,",").concat(g.y,` + A `).concat(o,",").concat(o,`,0, + `).concat(+(Math.abs(l)>180),",").concat(+(i<=u),`, + `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},a9e=function(t){var r=t.cx,n=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=eo(c-u),d=Lv({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:i,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,x=Lv({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:l}),b=x.circleTangency,y=x.lineTangency,v=x.theta,w=l?Math.abs(u-c):Math.abs(u-c)-p-v;if(w<0)return s?"M ".concat(g.x,",").concat(g.y,` + a`).concat(i,",").concat(i,",0,0,1,").concat(i*2,`,0 + a`).concat(i,",").concat(i,",0,0,1,").concat(-i*2,`,0 + `):A9({cx:r,cy:n,innerRadius:o,outerRadius:a,startAngle:u,endAngle:c});var S="M ".concat(g.x,",").concat(g.y,` + A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` + A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,` + A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,` + `);if(o>0){var O=Lv({cx:r,cy:n,radius:o,angle:u,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),P=O.circleTangency,C=O.lineTangency,T=O.theta,A=Lv({cx:r,cy:n,radius:o,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),k=A.circleTangency,I=A.lineTangency,D=A.theta,M=l?Math.abs(u-c):Math.abs(u-c)-T-D;if(M<0&&i===0)return"".concat(S,"L").concat(r,",").concat(n,"Z");S+="L".concat(I.x,",").concat(I.y,` + A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,` + A`).concat(o,",").concat(o,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,` + A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else S+="L".concat(r,",").concat(n,"Z");return S},i9e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},s9e=function(t){var r=YN(YN({},i9e),t),n=r.cx,o=r.cy,a=r.innerRadius,i=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(i0&&Math.abs(c-f)<360?x=a9e({cx:n,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):x=A9({cx:n,cy:o,innerRadius:a,outerRadius:i,startAngle:c,endAngle:f}),z.createElement("path",TC({},et(r,!0),{className:h,d:x,role:"img"}))};function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function kC(){return kC=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,u=o>=0&&n>=0||o<0&&n<0?1:0,c;if(i>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;di?i:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, + `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+o-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, + `).concat(t+n-l*f[2],",").concat(r+o)),c+="L ".concat(t+l*f[3],",").concat(r+o),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, + `).concat(t,",").concat(r+o-s*f[3])),c+="Z"}else if(i>0&&a===+a&&a>0){var g=Math.min(i,a);c="M ".concat(t,",").concat(r+s*g,` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,` + L `).concat(t+n-l*g,",").concat(r,` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,` + L `).concat(t+n,",").concat(r+o-s*g,` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+o,` + L `).concat(t+l*g,",").concat(r+o,` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+o-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(o," h ").concat(-n," Z");return c},w9e=function(t,r){if(!t||!r)return!1;var n=t.x,o=t.y,a=r.x,i=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(i,i+l),d=Math.max(i,i+l);return n>=u&&n<=c&&o>=f&&o<=d}return!1},S9e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uk=function(t){var r=tL(tL({},S9e),t),n=m.useRef(),o=m.useState(-1),a=p9e(o,2),i=a[0],s=a[1];m.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,x=r.animationBegin,b=r.isAnimationActive,y=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var v=wt("recharts-rectangle",h);return y?z.createElement(ml,{canBegin:i>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:g,isActive:y},function(w){var S=w.width,O=w.height,P=w.x,C=w.y;return z.createElement(ml,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:p,isActive:b,easing:g},z.createElement("path",Vy({},et(r,!0),{className:v,d:rL(P,C,S,O,d),ref:n})))}):z.createElement("path",Vy({},et(r,!0),{className:v,d:rL(l,u,c,f,d)}))};function AC(){return AC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T9e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var k9e=function(t,r,n,o,a,i){return"M".concat(t,",").concat(a,"v").concat(o,"M").concat(i,",").concat(r,"h").concat(n)},A9e=function(t){var r=t.x,n=r===void 0?0:r,o=t.y,a=o===void 0?0:o,i=t.top,s=i===void 0?0:i,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,g=t.className,p=E9e(t,O9e),x=P9e({x:n,y:a,top:s,left:u,width:f,height:h},p);return!be(n)||!be(a)||!be(f)||!be(h)||!be(s)||!be(u)?null:z.createElement("path",RC({},et(x,!0),{className:wt("recharts-cross",g),d:k9e(n,a,f,h,s,u)}))},R9e=Math.ceil,M9e=Math.max;function I9e(e,t,r,n){for(var o=-1,a=M9e(R9e((t-e)/(r||1)),0),i=Array(a);a--;)i[n?a:++o]=e,e+=r;return i}var D9e=I9e,j9e=R4,oL=1/0,N9e=17976931348623157e292;function L9e(e){if(!e)return e===0?e:0;if(e=j9e(e),e===oL||e===-oL){var t=e<0?-1:1;return t*N9e}return e===e?e:0}var R9=L9e,F9e=D9e,B9e=Wc,Mw=R9;function z9e(e){return function(t,r,n){return n&&typeof n!="number"&&B9e(t,r,n)&&(r=n=void 0),t=Mw(t),r===void 0?(r=t,t=0):r=Mw(r),n=n===void 0?t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hy(e)}function En(e,t,r){return t=I9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I9(e){var t=rHe(e,"string");return bc(t)==="symbol"?t:String(t)}function rHe(e,t){if(bc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nHe=function(t){var r=t.data,n=t.startIndex,o=t.endIndex,a=t.x,i=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=jd().domain(Uy(0,l)).range([a,a+i-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(o),scale:u,scaleValues:c}},uL=function(t){return t.changedTouches&&!!t.changedTouches.length},zp=function(e){J9e(r,e);var t=Z9e(r);function r(n){var o;return X9e(this,r),o=t.call(this,n),En(Vo(o),"handleDrag",function(a){o.leaveTimer&&(clearTimeout(o.leaveTimer),o.leaveTimer=null),o.state.isTravellerMoving?o.handleTravellerMove(a):o.state.isSlideMoving&&o.handleSlideDrag(a)}),En(Vo(o),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&o.handleDrag(a.changedTouches[0])}),En(Vo(o),"handleDragEnd",function(){o.setState({isTravellerMoving:!1,isSlideMoving:!1}),o.detachDragEndListener()}),En(Vo(o),"handleLeaveWrapper",function(){(o.state.isTravellerMoving||o.state.isSlideMoving)&&(o.leaveTimer=window.setTimeout(o.handleDragEnd,o.props.leaveTimeOut))}),En(Vo(o),"handleEnterSlideOrTraveller",function(){o.setState({isTextActive:!0})}),En(Vo(o),"handleLeaveSlideOrTraveller",function(){o.setState({isTextActive:!1})}),En(Vo(o),"handleSlideDragStart",function(a){var i=uL(a)?a.changedTouches[0]:a;o.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),o.attachDragEndListener()}),o.travellerDragStartHandlers={startX:o.handleTravellerDragStart.bind(Vo(o),"startX"),endX:o.handleTravellerDragStart.bind(Vo(o),"endX")},o.state={},o}return Q9e(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(o){var a=o.startX,i=o.endX,s=this.state.scaleValues,l=this.props,u=l.gap,c=l.data,f=c.length-1,d=Math.min(a,i),h=Math.max(a,i),g=r.getIndexInRange(s,d),p=r.getIndexInRange(s,h);return{startIndex:g-g%u,endIndex:p===f?f:p-p%u}}},{key:"getTextOfTick",value:function(o){var a=this.props,i=a.data,s=a.tickFormatter,l=a.dataKey,u=fo(i[o],l,o);return Ve(s)?s(u,o):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(o){var a=this.state,i=a.slideMoveStartX,s=a.startX,l=a.endX,u=this.props,c=u.x,f=u.width,d=u.travellerWidth,h=u.startIndex,g=u.endIndex,p=u.onChange,x=o.pageX-i;x>0?x=Math.min(x,c+f-d-l,c+f-d-s):x<0&&(x=Math.max(x,c-s,c-l));var b=this.getIndex({startX:s+x,endX:l+x});(b.startIndex!==h||b.endIndex!==g)&&p&&p(b),this.setState({startX:s+x,endX:l+x,slideMoveStartX:o.pageX})}},{key:"handleTravellerDragStart",value:function(o,a){var i=uL(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:o,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(o){var a,i=this.state,s=i.brushMoveStartX,l=i.movingTravellerId,u=i.endX,c=i.startX,f=this.state[l],d=this.props,h=d.x,g=d.width,p=d.travellerWidth,x=d.onChange,b=d.gap,y=d.data,v={startX:this.state.startX,endX:this.state.endX},w=o.pageX-s;w>0?w=Math.min(w,h+g-p-f):w<0&&(w=Math.max(w,h-f)),v[l]=f+w;var S=this.getIndex(v),O=S.startIndex,P=S.endIndex,C=function(){var A=y.length-1;return l==="startX"&&(u>c?O%b===0:P%b===0)||uc?P%b===0:O%b===0)||u>c&&P===A};this.setState((a={},En(a,l,f+w),En(a,"brushMoveStartX",o.pageX),a),function(){x&&C()&&x(S)})}},{key:"handleTravellerMoveKeyboard",value:function(o,a){var i=this,s=this.state,l=s.scaleValues,u=s.startX,c=s.endX,f=this.state[a],d=l.indexOf(f);if(d!==-1){var h=d+o;if(!(h===-1||h>=l.length)){var g=l[h];a==="startX"&&g>=c||a==="endX"&&g<=u||this.setState(En({},a,g),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var o=this.props,a=o.x,i=o.y,s=o.width,l=o.height,u=o.fill,c=o.stroke;return z.createElement("rect",{stroke:c,fill:u,x:a,y:i,width:s,height:l})}},{key:"renderPanorama",value:function(){var o=this.props,a=o.x,i=o.y,s=o.width,l=o.height,u=o.data,c=o.children,f=o.padding,d=m.Children.only(c);return d?z.cloneElement(d,{x:a,y:i,width:s,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(o,a){var i=this,s=this.props,l=s.y,u=s.travellerWidth,c=s.height,f=s.traveller,d=Math.max(o,this.props.x),h=Iw(Iw({},et(this.props)),{},{x:d,y:l,width:u,height:c});return z.createElement(Xt,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(p){["ArrowLeft","ArrowRight"].includes(p.key)&&(p.preventDefault(),p.stopPropagation(),i.handleTravellerMoveKeyboard(p.key==="ArrowRight"?1:-1,a))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,h))}},{key:"renderSlide",value:function(o,a){var i=this.props,s=i.y,l=i.height,u=i.stroke,c=i.travellerWidth,f=Math.min(o,a)+c,d=Math.max(Math.abs(a-o)-c,0);return z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:s,width:d,height:l})}},{key:"renderText",value:function(){var o=this.props,a=o.startIndex,i=o.endIndex,s=o.y,l=o.height,u=o.travellerWidth,c=o.stroke,f=this.state,d=f.startX,h=f.endX,g=5,p={pointerEvents:"none",fill:c};return z.createElement(Xt,{className:"recharts-brush-texts"},z.createElement(_y,Wy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-g,y:s+l/2},p),this.getTextOfTick(a)),z.createElement(_y,Wy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+u+g,y:s+l/2},p),this.getTextOfTick(i)))}},{key:"render",value:function(){var o=this.props,a=o.data,i=o.className,s=o.children,l=o.x,u=o.y,c=o.width,f=o.height,d=o.alwaysShowText,h=this.state,g=h.startX,p=h.endX,x=h.isTextActive,b=h.isSlideMoving,y=h.isTravellerMoving,v=h.isTravellerFocused;if(!a||!a.length||!be(l)||!be(u)||!be(c)||!be(f)||c<=0||f<=0)return null;var w=wt("recharts-brush",i),S=z.Children.count(s)===1,O=Y9e("userSelect","none");return z.createElement(Xt,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(g,p),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(p,"endX"),(x||b||y||v||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(o){var a=o.x,i=o.y,s=o.width,l=o.height,u=o.stroke,c=Math.floor(i+l/2)-1;return z.createElement(z.Fragment,null,z.createElement("rect",{x:a,y:i,width:s,height:l,fill:u,stroke:"none"}),z.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),z.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(o,a){var i;return z.isValidElement(o)?i=z.cloneElement(o,a):Ve(o)?i=o(a):i=r.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(o,a){var i=o.data,s=o.width,l=o.x,u=o.travellerWidth,c=o.updateId,f=o.startIndex,d=o.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return Iw({prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s},i&&i.length?nHe({data:i,width:s,x:l,travellerWidth:u,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+s-u]);var h=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:i,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s,startX:a.scale(o.startIndex),endX:a.scale(o.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(o,a){for(var i=o.length,s=0,l=i-1;l-s>1;){var u=Math.floor((s+l)/2);o[u]>a?l=u:s=u}return a>=o[l]?l:s}}]),r}(m.PureComponent);En(zp,"displayName","Brush");En(zp,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oHe=jT;function aHe(e,t){var r;return oHe(e,function(n,o,a){return r=t(n,o,a),!r}),!!r}var iHe=aHe,sHe=U3,lHe=ri,uHe=iHe,cHe=Dr,fHe=Wc;function dHe(e,t,r){var n=cHe(e)?sHe:uHe;return r&&fHe(e,t,r)&&(t=void 0),n(e,lHe(t))}var pHe=dHe;const hHe=ze(pHe);var ca=function(t,r){var n=t.alwaysShow,o=t.ifOverflow;return n&&(o="extendDomain"),o===r};function vHe(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DHe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qy(e)}function ki(e,t,r){return t=j9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j9(e){var t=VHe(e,"string");return xc(t)==="symbol"?t:String(t)}function VHe(e,t){if(xc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d1=function(e){LHe(r,e);var t=FHe(r);function r(){var n;jHe(this,r);for(var o=arguments.length,a=new Array(o),i=0;i0&&Math.abs(M)0&&Math.abs(D)0&&(D=Math.min((K||0)-(M[ie-1]||0),D))});var R=D/I,N=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(P=R*N/2),p.padding==="no-gap"){var F=uc(t.barCategoryGap,R*N),j=R*N/2;P=j-F-(j-F)/N*F}}o==="xAxis"?C=[n.left+(v.left||0)+(P||0),n.left+n.width-(v.right||0)-(P||0)]:o==="yAxis"?C=l==="horizontal"?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0)+(P||0),n.top+n.height-(v.bottom||0)-(P||0)]:C=p.range,S&&(C=[C[1],C[0]]);var L=tWe(p,a,d),B=L.scale,W=L.realScaleType;B.domain(b).range(C),rWe(B);var X=cWe(B,Po(Po({},p),{},{realScaleType:W}));o==="xAxis"?(k=x==="top"&&!w||x==="bottom"&&w,T=n.left,A=f[O]-k*p.height):o==="yAxis"&&(k=x==="left"&&!w||x==="right"&&w,T=f[O]-k*p.width,A=n.top);var J=Po(Po(Po({},p),X),{},{realScaleType:W,x:T,y:A,scale:B,width:o==="xAxis"?n.width:p.width,height:o==="yAxis"?n.height:p.height});return J.bandSize=Fy(J,X),!p.hide&&o==="xAxis"?f[O]+=(k?-1:1)*J.height:p.hide||(f[O]+=(k?-1:1)*J.width),Po(Po({},h),{},p1({},g,J))},{})},L9=function(t,r){var n=t.x,o=t.y,a=r.x,i=r.y;return{x:Math.min(n,a),y:Math.min(o,i),width:Math.abs(a-n),height:Math.abs(i-o)}},GHe=function(t){var r=t.x1,n=t.y1,o=t.x2,a=t.y2;return L9({x:r,y:n},{x:o,y:a})},F9=function(){function e(t){UHe(this,e),this.scale=t}return WHe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+i}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),o=n[0],a=n[n.length-1];return o<=a?r>=o&&r<=a:r>=a&&r<=o}}],[{key:"create",value:function(r){return new e(r)}}]),e}();p1(F9,"EPS",1e-4);var fk=function(t){var r=Object.keys(t).reduce(function(n,o){return Po(Po({},n),{},p1({},o,F9.create(t[o])))},{});return Po(Po({},r),{},{apply:function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=a.bandAware,s=a.position;return RHe(o,function(l,u){return r[u].apply(l,{bandAware:i,position:s})})},isInRange:function(o){return D9(o,function(a,i){return r[i].isInRange(a)})}})};function KHe(e){return(e%180+180)%180}var YHe=function(t){var r=t.width,n=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=KHe(o),i=a*Math.PI/180,s=Math.atan(n/r),l=i>s&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2?eo(x[1].coordinate-x[0].coordinate):1,v,w;y===1?(v=g==="width"?c:f,w=g==="width"?c+d:f+h):(v=g==="width"?c+d:f+h,w=g==="width"?c:f);for(var S=b-1;S>=0;S--){var O=x[S],P=Ve(n)?n(O.value,b-S-1):O.value,C=g==="width"?BC(ea(P,{fontSize:l,letterSpacing:u}),p,t):ea(P,{fontSize:l,letterSpacing:u})[g];if(S===b-1){var T=y*(O.coordinate+y*C/2-w);x[S]=O=Fr(Fr({},O),{},{tickCoord:T>0?O.coordinate-T*y:O.coordinate})}else x[S]=O=Fr(Fr({},O),{},{tickCoord:O.coordinate});var A=y*(O.tickCoord-y*C/2-v)>=0&&y*(O.tickCoord+y*C/2-w)<=0;A&&(w=O.tickCoord-y*(C/2+i),x[S]=Fr(Fr({},O),{},{isShow:!0}))}return x}function SL(e,t){var r=e.angle,n=e.ticks,o=e.tickFormatter,a=e.viewBox,i=e.orientation,s=e.minTickGap,l=e.unit,u=e.fontSize,c=e.letterSpacing,f=a.x,d=a.y,h=a.width,g=a.height,p=i==="top"||i==="bottom"?"width":"height",x=(n||[]).slice(),b=l&&p==="width"?ea(l,{fontSize:u,letterSpacing:c}):{width:0,height:0},y=x.length,v=y>=2?eo(x[1].coordinate-x[0].coordinate):1,w,S;if(v===1?(w=p==="width"?f:d,S=p==="width"?f+h:d+g):(w=p==="width"?f+h:d+g,S=p==="width"?f:d),t){var O=n[y-1],P=Ve(o)?o(O.value,y-1):O.value,C=p==="width"?BC(ea(P,{fontSize:u,letterSpacing:c}),b,r):ea(P,{fontSize:u,letterSpacing:c})[p],T=v*(O.coordinate+v*C/2-S);x[y-1]=O=Fr(Fr({},O),{},{tickCoord:T>0?O.coordinate-T*v:O.coordinate});var A=v*(O.tickCoord-v*C/2-w)>=0&&v*(O.tickCoord+v*C/2-S)<=0;A&&(S=O.tickCoord-v*(C/2+s),x[y-1]=Fr(Fr({},O),{},{isShow:!0}))}for(var k=t?y-1:y,I=0;I=0&&v*(D.tickCoord+v*R/2-S)<=0;F&&(w=D.tickCoord+v*(R/2+s),x[I]=Fr(Fr({},D),{},{isShow:!0}))}return x}function zC(e,t,r){var n=e.tick,o=e.ticks,a=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!o||!o.length||!n)return[];if(be(l)||Fa.isSsr)return y7e(o,typeof l=="number"&&be(l)?l:0);var d=[];return l==="equidistantPreserveStart"?(d=SL({angle:f,ticks:o,tickFormatter:u,viewBox:a,orientation:s,minTickGap:i,unit:c,fontSize:t,letterSpacing:r}),g7e(d)):(l==="preserveStart"||l==="preserveStartEnd"?d=SL({angle:f,ticks:o,tickFormatter:u,viewBox:a,orientation:s,minTickGap:i,unit:c,fontSize:t,letterSpacing:r},l==="preserveStartEnd"):d=b7e({angle:f,ticks:o,tickFormatter:u,viewBox:a,orientation:s,minTickGap:i,unit:c,fontSize:t,letterSpacing:r}),d.filter(function(h){return h.isShow}))}var x7e=["viewBox"],w7e=["viewBox"],S7e=["ticks"];function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O7e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function P7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PL(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gy(e)}function pk(e,t,r){return t=B9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9(e){var t=A7e(e,"string");return wc(t)==="symbol"?t:String(t)}function A7e(e,t){if(wc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fd=function(e){_7e(r,e);var t=$7e(r);function r(n){var o;return P7e(this,r),o=t.call(this,n),o.state={fontSize:"",letterSpacing:""},o}return C7e(r,[{key:"shouldComponentUpdate",value:function(o,a){var i=o.viewBox,s=Dw(o,x7e),l=this.props,u=l.viewBox,c=Dw(l,w7e);return!Bu(i,u)||!Bu(s,c)||!Bu(a,this.state)}},{key:"componentDidMount",value:function(){var o=this.layerReference;if(o){var a=o.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(o){var a=this.props,i=a.x,s=a.y,l=a.width,u=a.height,c=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,g,p,x,b,y,v,w=d?-1:1,S=o.tickSize||f,O=be(o.tickCoord)?o.tickCoord:o.coordinate;switch(c){case"top":g=p=o.coordinate,b=s+ +!d*u,x=b-w*S,v=x-w*h,y=O;break;case"left":x=b=o.coordinate,p=i+ +!d*l,g=p-w*S,y=g-w*h,v=O;break;case"right":x=b=o.coordinate,p=i+ +d*l,g=p+w*S,y=g+w*h,v=O;break;default:g=p=o.coordinate,b=s+ +d*u,x=b+w*S,v=x+w*h,y=O;break}return{line:{x1:g,y1:x,x2:p,y2:b},tick:{x:y,y:v}}}},{key:"getTickTextAnchor",value:function(){var o=this.props,a=o.orientation,i=o.mirror,s;switch(a){case"left":s=i?"start":"end";break;case"right":s=i?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var o=this.props,a=o.orientation,i=o.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=i?"start":"end";break;default:s=i?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var o=this.props,a=o.x,i=o.y,s=o.width,l=o.height,u=o.orientation,c=o.mirror,f=o.axisLine,d=qr(qr(qr({},et(this.props)),et(f)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!c||u==="bottom"&&c);d=qr(qr({},d),{},{x1:a,y1:i+h*l,x2:a+s,y2:i+h*l})}else{var g=+(u==="left"&&!c||u==="right"&&c);d=qr(qr({},d),{},{x1:a+g*s,y1:i,x2:a+g*s,y2:i+l})}return z.createElement("line",yu({},d,{className:wt("recharts-cartesian-axis-line",Qe(f,"className"))}))}},{key:"renderTicks",value:function(o,a,i){var s=this,l=this.props,u=l.tickLine,c=l.stroke,f=l.tick,d=l.tickFormatter,h=l.unit,g=zC(qr(qr({},this.props),{},{ticks:o}),a,i),p=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),b=et(this.props),y=et(f),v=qr(qr({},b),{},{fill:"none"},et(u)),w=g.map(function(S,O){var P=s.getTickLineCoord(S),C=P.line,T=P.tick,A=qr(qr(qr(qr({textAnchor:p,verticalAnchor:x},b),{},{stroke:"none",fill:c},y),T),{},{index:O,payload:S,visibleTicksCount:g.length,tickFormatter:d});return z.createElement(Xt,yu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O)},dy(s.props,S,O)),u&&z.createElement("line",yu({},v,C,{className:wt("recharts-cartesian-axis-tick-line",Qe(u,"className"))})),f&&r.renderTickItem(f,A,"".concat(Ve(d)?d(S.value,O):S.value).concat(h||"")))});return z.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var o=this,a=this.props,i=a.axisLine,s=a.width,l=a.height,u=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,g=Dw(d,S7e),p=h;return Ve(u)&&(p=h&&h.length>0?u(this.props):u(g)),s<=0||l<=0||!p||!p.length?null:z.createElement(Xt,{className:wt("recharts-cartesian-axis",c),ref:function(b){o.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Ur.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(o,a,i){var s;return z.isValidElement(o)?s=z.cloneElement(o,a):Ve(o)?s=o(a):s=z.createElement(_y,yu({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}]),r}(m.Component);pk(Fd,"displayName","CartesianAxis");pk(Fd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var R7e=["x1","y1","x2","y2","key"];function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function UC(){return UC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I7e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function CL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Bv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ky(e){return Ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ky(e)}function hk(e,t,r){return t=z9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=V7e(e,"string");return Sc(t)==="symbol"?t:String(t)}function V7e(e,t){if(Sc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uf=function(e){N7e(r,e);var t=L7e(r);function r(){return D7e(this,r),t.apply(this,arguments)}return j7e(r,[{key:"renderHorizontal",value:function(o){var a=this,i=this.props,s=i.x,l=i.width,u=i.horizontal;if(!o||!o.length)return null;var c=o.map(function(f,d){var h=Bv(Bv({},a.props),{},{x1:s,y1:f,x2:s+l,y2:f,key:"line-".concat(d),index:d});return r.renderLineItem(u,h)});return z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(o){var a=this,i=this.props,s=i.y,l=i.height,u=i.vertical;if(!o||!o.length)return null;var c=o.map(function(f,d){var h=Bv(Bv({},a.props),{},{x1:f,y1:s,x2:f,y2:s+l,key:"line-".concat(d),index:d});return r.renderLineItem(u,h)});return z.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(o){var a=this.props.verticalFill;if(!a||!a.length)return null;var i=this.props,s=i.fillOpacity,l=i.x,u=i.y,c=i.width,f=i.height,d=o.map(function(g){return Math.round(g+l-l)}).sort(function(g,p){return g-p});l!==d[0]&&d.unshift(0);var h=d.map(function(g,p){var x=!d[p+1],b=x?l+c-g:d[p+1]-g;if(b<=0)return null;var y=p%a.length;return z.createElement("rect",{key:"react-".concat(p),x:g,y:u,width:b,height:f,stroke:"none",fill:a[y],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(o){var a=this.props.horizontalFill;if(!a||!a.length)return null;var i=this.props,s=i.fillOpacity,l=i.x,u=i.y,c=i.width,f=i.height,d=o.map(function(g){return Math.round(g+u-u)}).sort(function(g,p){return g-p});u!==d[0]&&d.unshift(0);var h=d.map(function(g,p){var x=!d[p+1],b=x?u+f-g:d[p+1]-g;if(b<=0)return null;var y=p%a.length;return z.createElement("rect",{key:"react-".concat(p),y:g,x:l,height:b,width:c,stroke:"none",fill:a[y],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var o=this.props.fill;if(!o||o==="none")return null;var a=this.props,i=a.fillOpacity,s=a.x,l=a.y,u=a.width,c=a.height;return z.createElement("rect",{x:s,y:l,width:u,height:c,stroke:"none",fill:o,fillOpacity:i,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var o=this.props,a=o.x,i=o.y,s=o.width,l=o.height,u=o.horizontal,c=o.vertical,f=o.horizontalCoordinatesGenerator,d=o.verticalCoordinatesGenerator,h=o.xAxis,g=o.yAxis,p=o.offset,x=o.chartWidth,b=o.chartHeight;if(!be(s)||s<=0||!be(l)||l<=0||!be(a)||a!==+a||!be(i)||i!==+i)return null;var y=this.props,v=y.horizontalPoints,w=y.verticalPoints;return(!v||!v.length)&&Ve(f)&&(v=f({yAxis:g,width:x,height:b,offset:p})),(!w||!w.length)&&Ve(d)&&(w=d({xAxis:h,width:x,height:b,offset:p})),z.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(w),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(w))}}],[{key:"renderLineItem",value:function(o,a){var i;if(z.isValidElement(o))i=z.cloneElement(o,a);else if(Ve(o))i=o(a);else{var s=a.x1,l=a.y1,u=a.x2,c=a.y2,f=a.key,d=M7e(a,R7e);i=z.createElement("line",UC({},et(d),{x1:s,y1:l,x2:u,y2:c,fill:"none",key:f}))}return i}}]),r}(m.PureComponent);hk(uf,"displayName","CartesianGrid");hk(uf,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var U7e=["layout","type","stroke","connectNulls","isRange","ref"];function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function W7e(e,t){if(e==null)return{};var r=H7e(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H7e(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yy(e)}function oa(e,t,r){return t=V9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=J7e(e,"string");return Oc(t)==="symbol"?t:String(t)}function J7e(e,t){if(Oc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jo=function(e){K7e(r,e);var t=Y7e(r);function r(){var n;q7e(this,r);for(var o=arguments.length,a=new Array(o),i=0;i0||!Dn(f,s)||!Dn(d,l))?this.renderAreaWithAnimation(o,a):this.renderAreaStatically(s,l,o,a)}},{key:"render",value:function(){var o,a=this.props,i=a.hide,s=a.dot,l=a.points,u=a.className,c=a.top,f=a.left,d=a.xAxis,h=a.yAxis,g=a.width,p=a.height,x=a.isAnimationActive,b=a.id;if(i||!l||!l.length)return null;var y=this.state.isAnimationFinished,v=l.length===1,w=wt("recharts-area",u),S=d&&d.allowDataOverflow,O=h&&h.allowDataOverflow,P=S||O,C=Le(b)?this.id:b,T=(o=et(s))!==null&&o!==void 0?o:{r:3,strokeWidth:2},A=T.r,k=A===void 0?3:A,I=T.strokeWidth,D=I===void 0?2:I,M=SFe(s)?s:{},R=M.clipDot,N=R===void 0?!0:R,F=k*2+D;return z.createElement(Xt,{className:w},S||O?z.createElement("defs",null,z.createElement("clipPath",{id:"clipPath-".concat(C)},z.createElement("rect",{x:S?f:f-g/2,y:O?c:c-p/2,width:S?g:g*2,height:O?p:p*2})),!N&&z.createElement("clipPath",{id:"clipPath-dots-".concat(C)},z.createElement("rect",{x:f-F/2,y:c-F/2,width:g+F,height:p+F}))):null,v?null:this.renderArea(P,C),(s||v)&&this.renderDots(P,N,C),(!x||y)&&Gi.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(o,a){return o.animationId!==a.prevAnimationId?{prevAnimationId:o.animationId,curPoints:o.points,curBaseLine:o.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:o.points!==a.curPoints||o.baseLine!==a.curBaseLine?{curPoints:o.points,curBaseLine:o.baseLine}:null}}]),r}(m.PureComponent);oa(jo,"displayName","Area");oa(jo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fa.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});oa(jo,"getBaseValue",function(e,t,r,n){var o=e.layout,a=e.baseValue,i=t.props.baseValue,s=i??a;if(be(s)&&typeof s=="number")return s;var l=o==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});oa(jo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,o=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,g=u&&u.length,p=jo.getBaseValue(t,r,n,o),x=!1,b=f.map(function(v,w){var S=fo(v,l),O;g?O=u[c+w]:(O=S,ar(O)?x=!0:O=[p,O]);var P=Le(O[1])||g&&Le(S);return h==="horizontal"?{x:jN({axis:n,ticks:a,bandSize:s,entry:v,index:w}),y:P?null:o.scale(O[1]),value:O,payload:v}:{x:P?null:n.scale(O[1]),y:jN({axis:o,ticks:i,bandSize:s,entry:v,index:w}),value:O,payload:v}}),y;return g||x?y=b.map(function(v){return h==="horizontal"?{x:v.x,y:!Le(Qe(v,"value[0]"))&&!Le(Qe(v,"y"))?o.scale(Qe(v,"value[0]")):null}:{x:Le(Qe(v,"value[0]"))?null:n.scale(Qe(v,"value[0]")),y:v.y}}):h==="horizontal"?y=o.scale(p):y=n.scale(p),hi({points:b,baseLine:y,layout:h,isRange:x},d)});oa(jo,"renderDotItem",function(e,t){var r;return z.isValidElement(e)?r=z.cloneElement(e,t):Ve(e)?r=e(t):r=z.createElement(ck,Gs({},t,{className:"recharts-area-dot"})),r});var $l=function(){return null};$l.displayName="XAxis";$l.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var El=function(){return null};El.displayName="YAxis";El.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var Z7e=ri,eqe=Sl,tqe=Bc;function rqe(e){return function(t,r,n){var o=Object(t);if(!eqe(t)){var a=Z7e(r);t=tqe(t),r=function(s){return a(o[s],s,o)}}var i=e(t,r,n);return i>-1?o[a?t[i]:i]:void 0}}var nqe=rqe,oqe=R9;function aqe(e){var t=oqe(e),r=t%1;return t===t?r?t-r:t:0}var iqe=aqe,sqe=E4,lqe=ri,uqe=iqe,cqe=Math.max;function fqe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:uqe(r);return o<0&&(o=cqe(n+o,0)),sqe(e,lqe(t),o)}var dqe=fqe,pqe=nqe,hqe=dqe,vqe=pqe(hqe),mqe=vqe;const gqe=ze(mqe);var yqe=ti,bqe=po,xqe="[object Boolean]";function wqe(e){return e===!0||e===!1||bqe(e)&&yqe(e)==xqe}var Sqe=wqe;const Oqe=ze(Sqe);function TL(e){return $qe(e)||_qe(e)||Cqe(e)||Pqe()}function Pqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cqe(e,t){if(e){if(typeof e=="string")return qC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qC(e,t)}}function _qe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $qe(e){if(Array.isArray(e))return qC(e)}function qC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nqe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Lqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xy(e)}function Cc(e){return qqe(e)||Hqe(e)||W9(e)||Wqe()}function Wqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W9(e,t){if(e){if(typeof e=="string")return YC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YC(e,t)}}function Hqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qqe(e){if(Array.isArray(e))return YC(e)}function YC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?s:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&be(a)&&be(i)?t.slice(a,i+1):[]};function Jqe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],o=e==null?void 0:e[1];if(n&&o&&be(n)&&be(o))return!0}return!1}function G9(e){return e==="number"?[0,"auto"]:void 0}var K9=function(t,r,n,o){var a=t.graphicalItems,i=t.tooltipAxis,s=h1(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c=u.props.hide;if(c)return l;var f=u.props.data,d;if(i.dataKey&&!i.allowDuplicatedCategory){var h=f===void 0?s:f;d=cy(h,i.dataKey,o)}else d=f&&f[n]||s[n];return d?[].concat(Cc(l),[T9(u,d)]):l},[])},NL=function(t,r,n,o){var a=o||{x:t.chartX,y:t.chartY},i=Xqe(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=Y8e(i,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=K9(t,r,c,f),h=Qqe(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Zqe=function(t,r){var n=r.axes,o=r.graphicalItems,a=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=$9(c,a),g=n.reduce(function(p,x){var b,y=x.props,v=y.type,w=y.dataKey,S=y.allowDataOverflow,O=y.allowDuplicatedCategory,P=y.scale,C=y.ticks,T=y.includeHidden,A=x.props[i];if(p[A])return p;var k=h1(t.data,{graphicalItems:o.filter(function(J){return J.props[i]===A}),dataStartIndex:l,dataEndIndex:u}),I=k.length,D,M,R;Jqe(x.props.domain,S,v)&&(D=_C(x.props.domain,null,S),h&&(v==="number"||P!=="auto")&&(R=Nd(k,w,"category")));var N=G9(v);if(!D||D.length===0){var F,j=(F=x.props.domain)!==null&&F!==void 0?F:N;if(w){if(D=Nd(k,w,v),v==="category"&&h){var L=pFe(D);O&&L?(M=D,D=Uy(0,I)):O||(D=BN(j,D,x).reduce(function(J,K){return J.indexOf(K)>=0?J:[].concat(Cc(J),[K])},[]))}else if(v==="category")O?D=D.filter(function(J){return J!==""&&!Le(J)}):D=BN(j,D,x).reduce(function(J,K){return J.indexOf(K)>=0||K===""||Le(K)?J:[].concat(Cc(J),[K])},[]);else if(v==="number"){var B=eWe(k,o.filter(function(J){return J.props[i]===A&&(T||!J.props.hide)}),w,a,c);B&&(D=B)}h&&(v==="number"||P!=="auto")&&(R=Nd(k,w,"category"))}else h?D=Uy(0,I):s&&s[A]&&s[A].hasStack&&v==="number"?D=d==="expand"?[0,1]:E9(s[A].stackGroups,l,u):D=_9(k,o.filter(function(J){return J.props[i]===A&&(T||!J.props.hide)}),v,c,!0);if(v==="number")D=GC(f,D,A,a,C),j&&(D=_C(j,D,S));else if(v==="category"&&j){var W=j,X=D.every(function(J){return W.indexOf(J)>=0});X&&(D=W)}}return pe(pe({},p),{},Be({},A,pe(pe({},x.props),{},{axisType:a,domain:D,categoricalDomain:R,duplicateDomain:M,originalDomain:(b=x.props.domain)!==null&&b!==void 0?b:N,isCategorical:h,layout:c})))},{});return g},eGe=function(t,r){var n=r.graphicalItems,o=r.Axis,a=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=h1(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,g=$9(c,a),p=-1,x=n.reduce(function(b,y){var v=y.props[i],w=G9("number");if(!b[v]){p++;var S;return g?S=Uy(0,h):s&&s[v]&&s[v].hasStack?(S=E9(s[v].stackGroups,l,u),S=GC(f,S,v,a)):(S=_C(w,_9(d,n.filter(function(O){return O.props[i]===v&&!O.props.hide}),"number",c),o.defaultProps.allowDataOverflow),S=GC(f,S,v,a)),pe(pe({},b),{},Be({},v,pe(pe({axisType:a},o.defaultProps),{},{hide:!0,orientation:Qe(Kqe,"".concat(a,".").concat(p%2),null),domain:S,originalDomain:w,isCategorical:g,layout:c})))}return b},{});return x},tGe=function(t,r){var n=r.axisType,o=n===void 0?"xAxis":n,a=r.AxisComp,i=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(o,"Id"),d=Mo(c,a),h={};return d&&d.length?h=Zqe(t,{axes:d,graphicalItems:i,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(h=eGe(t,{Axis:a,graphicalItems:i,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},rGe=function(t){var r=di(t),n=pi(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:NT(n,function(o){return o.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Fy(r,n)}},LL=function(t){var r,n,o=t.children,a=t.defaultShowTooltip,i=Ia(o,zp),s=i&&i.props&&i.props.startIndex||0,l=(i==null||(r=i.props)===null||r===void 0?void 0:r.endIndex)!==void 0?i==null||(n=i.props)===null||n===void 0?void 0:n.endIndex:t.data&&t.data.length-1||0;return{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:Le(a)?!1:a}},nGe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Hi(r&&r.type);return n&&n.indexOf("Bar")>=0})},FL=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},oGe=function(t,r){var n=t.props,o=t.graphicalItems,a=t.xAxisMap,i=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=Ia(f,zp),g=Ia(f,Ka),p=Object.keys(l).reduce(function(v,w){var S=l[w],O=S.orientation;return!S.mirror&&!S.hide?pe(pe({},v),{},Be({},O,v[O]+S.width)):v},{left:d.left||0,right:d.right||0}),x=Object.keys(i).reduce(function(v,w){var S=i[w],O=S.orientation;return!S.mirror&&!S.hide?pe(pe({},v),{},Be({},O,Qe(v,"".concat(O))+S.height)):v},{top:d.top||0,bottom:d.bottom||0}),b=pe(pe({},x),p),y=b.bottom;return h&&(b.bottom+=h.props.height||zp.defaultProps.height),g&&r&&(b=J8e(b,o,n,r)),pe(pe({brushBottom:y},b),{},{width:u-b.left-b.right,height:c-b.top-b.bottom})},aGe=function(t){var r,n=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(x,b){var y=b.graphicalItems,v=b.stackGroups,w=b.offset,S=b.updateId,O=b.dataStartIndex,P=b.dataEndIndex,C=x.barSize,T=x.layout,A=x.barGap,k=x.barCategoryGap,I=x.maxBarSize,D=FL(T),M=D.numericAxisName,R=D.cateAxisName,N=nGe(y),F=N&&X8e({barSize:C,stackGroups:v}),j=[];return y.forEach(function(L,B){var W=h1(x.data,{dataStartIndex:O,dataEndIndex:P},L),X=L.props,J=X.dataKey,K=X.maxBarSize,ie=L.props["".concat(M,"Id")],de=L.props["".concat(R,"Id")],ee=u.reduce(function(ne,re){var se,me=b["".concat(re.axisType,"Map")],Ce=L.props["".concat(re.axisType,"Id")],je=me&&me[Ce];return pe(pe({},ne),{},(se={},Be(se,re.axisType,je),Be(se,"".concat(re.axisType,"Ticks"),pi(je)),se))},{}),le=ee[R],Q=ee["".concat(R,"Ticks")],ae=v&&v[ie]&&v[ie].hasStack&&dWe(L,v[ie].stackGroups),Z=Hi(L.type).indexOf("Bar")>=0,G=Fy(le,Q),oe=[];if(Z){var fe,ge,Ae=Le(K)?I:K,V=(fe=(ge=Fy(le,Q,!0))!==null&&ge!==void 0?ge:Ae)!==null&&fe!==void 0?fe:0;oe=Q8e({barGap:A,barCategoryGap:k,bandSize:V!==G?V:G,sizeList:F[de],maxBarSize:Ae}),V!==G&&(oe=oe.map(function(ne){return pe(pe({},ne),{},{position:pe(pe({},ne.position),{},{offset:ne.position.offset-V/2})})}))}var q=L&&L.type&&L.type.getComposedData;if(q){var U;j.push({props:pe(pe({},q(pe(pe({},ee),{},{displayedData:W,props:x,dataKey:J,item:L,bandSize:G,barPosition:oe,offset:w,stackedData:ae,layout:T,dataStartIndex:O,dataEndIndex:P}))),{},(U={key:L.key||"item-".concat(B)},Be(U,M,ee[M]),Be(U,R,ee[R]),Be(U,"animationId",S),U)),childIndex:CFe(L,x.children),item:L})}}),j},g=function(x,b){var y=x.props,v=x.dataStartIndex,w=x.dataEndIndex,S=x.updateId;if(!UD({props:y}))return null;var O=y.children,P=y.layout,C=y.stackOffset,T=y.data,A=y.reverseStackOrder,k=FL(P),I=k.numericAxisName,D=k.cateAxisName,M=Mo(O,o),R=uWe(T,M,"".concat(I,"Id"),"".concat(D,"Id"),C,A),N=u.reduce(function(W,X){var J="".concat(X.axisType,"Map");return pe(pe({},W),{},Be({},J,tGe(y,pe(pe({},X),{},{graphicalItems:M,stackGroups:X.axisType===I&&R,dataStartIndex:v,dataEndIndex:w}))))},{}),F=oGe(pe(pe({},N),{},{props:y,graphicalItems:M}),b==null?void 0:b.legendBBox);Object.keys(N).forEach(function(W){N[W]=f(y,N[W],F,W.replace("Map",""),n)});var j=N["".concat(D,"Map")],L=rGe(j),B=h(y,pe(pe({},N),{},{dataStartIndex:v,dataEndIndex:w,updateId:S,graphicalItems:M,stackGroups:R,offset:F}));return pe(pe({formattedGraphicalItems:B,graphicalItems:M,offset:F,stackGroups:R},L),N)};return r=function(p){Bqe(b,p);var x=zqe(b);function b(y){var v;return Lqe(this,b),v=x.call(this,y),Be(Ke(v),"accessibilityManager",new Aqe),Be(Ke(v),"clearDeferId",function(){!Le(v.deferId)&&jL&&jL(v.deferId),v.deferId=null}),Be(Ke(v),"handleLegendBBoxUpdate",function(w){if(w){var S=v.state,O=S.dataStartIndex,P=S.dataEndIndex,C=S.updateId;v.setState(pe({legendBBox:w},g({props:v.props,dataStartIndex:O,dataEndIndex:P,updateId:C},pe(pe({},v.state),{},{legendBBox:w}))))}}),Be(Ke(v),"handleReceiveSyncEvent",function(w,S,O){var P=v.props.syncId;P===w&&S!==v.uniqueChartId&&(v.clearDeferId(),v.deferId=DL&&DL(v.applySyncEvent.bind(Ke(v),O)))}),Be(Ke(v),"handleBrushChange",function(w){var S=w.startIndex,O=w.endIndex;if(S!==v.state.dataStartIndex||O!==v.state.dataEndIndex){var P=v.state.updateId;v.setState(function(){return pe({dataStartIndex:S,dataEndIndex:O},g({props:v.props,dataStartIndex:S,dataEndIndex:O,updateId:P},v.state))}),v.triggerSyncEvent({dataStartIndex:S,dataEndIndex:O})}}),Be(Ke(v),"handleMouseEnter",function(w){var S=v.props.onMouseEnter,O=v.getMouseInfo(w);if(O){var P=pe(pe({},O),{},{isTooltipActive:!0});v.setState(P),v.triggerSyncEvent(P),Ve(S)&&S(P,w)}}),Be(Ke(v),"triggeredAfterMouseMove",function(w){var S=v.props.onMouseMove,O=v.getMouseInfo(w),P=O?pe(pe({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(P),v.triggerSyncEvent(P),Ve(S)&&S(P,w)}),Be(Ke(v),"handleItemMouseEnter",function(w){v.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Be(Ke(v),"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),Be(Ke(v),"handleMouseMove",function(w){w&&Ve(w.persist)&&w.persist(),v.triggeredAfterMouseMove(w)}),Be(Ke(v),"handleMouseLeave",function(w){var S=v.props.onMouseLeave,O={isTooltipActive:!1};v.setState(O),v.triggerSyncEvent(O),Ve(S)&&S(O,w),v.cancelThrottledTriggerAfterMouseMove()}),Be(Ke(v),"handleOuterEvent",function(w){var S=PFe(w),O=Qe(v.props,"".concat(S));if(S&&Ve(O)){var P;/.*touch.*/i.test(S)?P=v.getMouseInfo(w.changedTouches[0]):P=v.getMouseInfo(w);var C=O;C(P,w)}}),Be(Ke(v),"handleClick",function(w){var S=v.props.onClick,O=v.getMouseInfo(w);if(O){var P=pe(pe({},O),{},{isTooltipActive:!0});v.setState(P),v.triggerSyncEvent(P),Ve(S)&&S(P,w)}}),Be(Ke(v),"handleMouseDown",function(w){var S=v.props.onMouseDown;if(Ve(S)){var O=v.getMouseInfo(w);S(O,w)}}),Be(Ke(v),"handleMouseUp",function(w){var S=v.props.onMouseUp;if(Ve(S)){var O=v.getMouseInfo(w);S(O,w)}}),Be(Ke(v),"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseMove(w.changedTouches[0])}),Be(Ke(v),"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseDown(w.changedTouches[0])}),Be(Ke(v),"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseUp(w.changedTouches[0])}),Be(Ke(v),"verticalCoordinatesGenerator",function(w){var S=w.xAxis,O=w.width,P=w.height,C=w.offset;return IN(zC(pe(pe(pe({},Fd.defaultProps),S),{},{ticks:pi(S,!0),viewBox:{x:0,y:0,width:O,height:P}})),C.left,C.left+C.width)}),Be(Ke(v),"horizontalCoordinatesGenerator",function(w){var S=w.yAxis,O=w.width,P=w.height,C=w.offset;return IN(zC(pe(pe(pe({},Fd.defaultProps),S),{},{ticks:pi(S,!0),viewBox:{x:0,y:0,width:O,height:P}})),C.top,C.top+C.height)}),Be(Ke(v),"axesTicksGenerator",function(w){return pi(w,!0)}),Be(Ke(v),"renderCursor",function(w){var S=v.state,O=S.isTooltipActive,P=S.activeCoordinate,C=S.activePayload,T=S.offset,A=S.activeTooltipIndex,k=v.getTooltipEventType();if(!w||!w.props.cursor||!O||!P||n!=="ScatterChart"&&k!=="axis")return null;var I=v.props.layout,D,M=Ld;if(n==="ScatterChart")D=P,M=A9e;else if(n==="BarChart")D=v.getCursorRectangle(),M=uk;else if(I==="radial"){var R=v.getCursorPoints(),N=R.cx,F=R.cy,j=R.radius,L=R.startAngle,B=R.endAngle;D={cx:N,cy:F,startAngle:L,endAngle:B,innerRadius:j,outerRadius:j},M=s9e}else D={points:v.getCursorPoints()},M=Ld;var W=w.key||"_recharts-cursor",X=pe(pe(pe(pe({stroke:"#ccc",pointerEvents:"none"},T),D),et(w.props.cursor)),{},{payload:C,payloadIndex:A,key:W,className:"recharts-tooltip-cursor"});return m.isValidElement(w.props.cursor)?m.cloneElement(w.props.cursor,X):m.createElement(M,X)}),Be(Ke(v),"renderPolarAxis",function(w,S,O){var P=Qe(w,"type.axisType"),C=Qe(v.state,"".concat(P,"Map")),T=C&&C[w.props["".concat(P,"Id")]];return m.cloneElement(w,pe(pe({},T),{},{className:P,key:w.key||"".concat(S,"-").concat(O),ticks:pi(T,!0)}))}),Be(Ke(v),"renderXAxis",function(w,S,O){var P=v.state.xAxisMap,C=P[w.props.xAxisId];return v.renderAxis(C,w,S,O)}),Be(Ke(v),"renderYAxis",function(w,S,O){var P=v.state.yAxisMap,C=P[w.props.yAxisId];return v.renderAxis(C,w,S,O)}),Be(Ke(v),"renderGrid",function(w){var S=v.state,O=S.xAxisMap,P=S.yAxisMap,C=S.offset,T=v.props,A=T.width,k=T.height,I=di(O),D=gqe(P,function(N){return D9(N.domain,Yqe)}),M=D||di(P),R=w.props||{};return m.cloneElement(w,{key:w.key||"grid",x:be(R.x)?R.x:C.left,y:be(R.y)?R.y:C.top,width:be(R.width)?R.width:C.width,height:be(R.height)?R.height:C.height,xAxis:I,yAxis:M,offset:C,chartWidth:A,chartHeight:k,verticalCoordinatesGenerator:R.verticalCoordinatesGenerator||v.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:R.horizontalCoordinatesGenerator||v.horizontalCoordinatesGenerator})}),Be(Ke(v),"renderPolarGrid",function(w){var S=w.props,O=S.radialLines,P=S.polarAngles,C=S.polarRadius,T=v.state,A=T.radiusAxisMap,k=T.angleAxisMap,I=di(A),D=di(k),M=D.cx,R=D.cy,N=D.innerRadius,F=D.outerRadius;return m.cloneElement(w,{polarAngles:ar(P)?P:pi(D,!0).map(function(j){return j.coordinate}),polarRadius:ar(C)?C:pi(I,!0).map(function(j){return j.coordinate}),cx:M,cy:R,innerRadius:N,outerRadius:F,key:w.key||"polar-grid",radialLines:O})}),Be(Ke(v),"renderLegend",function(){var w=v.state.formattedGraphicalItems,S=v.props,O=S.children,P=S.width,C=S.height,T=v.props.margin||{},A=P-(T.left||0)-(T.right||0),k=P9({children:O,formattedGraphicalItems:w,legendWidth:A,legendContent:c});if(!k)return null;var I=k.item,D=RL(k,Rqe);return m.cloneElement(I,pe(pe({},D),{},{chartWidth:P,chartHeight:C,margin:T,ref:function(R){v.legendInstance=R},onBBoxUpdate:v.handleLegendBBoxUpdate}))}),Be(Ke(v),"renderTooltip",function(){var w=v.props.children,S=Ia(w,ra);if(!S)return null;var O=v.state,P=O.isTooltipActive,C=O.activeCoordinate,T=O.activePayload,A=O.activeLabel,k=O.offset;return m.cloneElement(S,{viewBox:pe(pe({},k),{},{x:k.left,y:k.top}),active:P,label:A,payload:P?T:[],coordinate:C})}),Be(Ke(v),"renderBrush",function(w){var S=v.props,O=S.margin,P=S.data,C=v.state,T=C.offset,A=C.dataStartIndex,k=C.dataEndIndex,I=C.updateId;return m.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Nv(v.handleBrushChange,null,w.props.onChange),data:P,x:be(w.props.x)?w.props.x:T.left,y:be(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(O.bottom||0),width:be(w.props.width)?w.props.width:T.width,startIndex:A,endIndex:k,updateId:"brush-".concat(I)})}),Be(Ke(v),"renderReferenceElement",function(w,S,O){if(!w)return null;var P=Ke(v),C=P.clipPathId,T=v.state,A=T.xAxisMap,k=T.yAxisMap,I=T.offset,D=w.props,M=D.xAxisId,R=D.yAxisId;return m.cloneElement(w,{key:w.key||"".concat(S,"-").concat(O),xAxis:A[M],yAxis:k[R],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:C})}),Be(Ke(v),"renderActivePoints",function(w){var S=w.item,O=w.activePoint,P=w.basePoint,C=w.childIndex,T=w.isRange,A=[],k=S.props.key,I=S.item.props,D=I.activeDot,M=I.dataKey,R=pe(pe({index:C,dataKey:M,cx:O.x,cy:O.y,r:4,fill:lk(S.item),strokeWidth:2,stroke:"#fff",payload:O.payload,value:O.value,key:"".concat(k,"-activePoint-").concat(C)},et(D)),fy(D));return A.push(b.renderActiveDot(D,R)),P?A.push(b.renderActiveDot(D,pe(pe({},R),{},{cx:P.x,cy:P.y,key:"".concat(k,"-basePoint-").concat(C)}))):T&&A.push(null),A}),Be(Ke(v),"renderGraphicChild",function(w,S,O){var P=v.filterFormatItem(w,S,O);if(!P)return null;var C=v.getTooltipEventType(),T=v.state,A=T.isTooltipActive,k=T.tooltipAxis,I=T.activeTooltipIndex,D=T.activeLabel,M=v.props.children,R=Ia(M,ra),N=P.props,F=N.points,j=N.isRange,L=N.baseLine,B=P.item.props,W=B.activeDot,X=B.hide,J=!X&&A&&R&&W&&I>=0,K={};C!=="axis"&&R&&R.props.trigger==="click"?K={onClick:Nv(v.handleItemMouseEnter,null,w.props.onCLick)}:C!=="axis"&&(K={onMouseLeave:Nv(v.handleItemMouseLeave,null,w.props.onMouseLeave),onMouseEnter:Nv(v.handleItemMouseEnter,null,w.props.onMouseEnter)});var ie=m.cloneElement(w,pe(pe({},P.props),K));function de(ae){return typeof k.dataKey=="function"?k.dataKey(ae.payload):null}if(J){var ee,le;if(k.dataKey&&!k.allowDuplicatedCategory){var Q=typeof k.dataKey=="function"?de:"payload.".concat(k.dataKey.toString());ee=cy(F,Q,D),le=j&&L&&cy(L,Q,D)}else ee=F[I],le=j&&L&&L[I];if(!Le(ee))return[ie].concat(Cc(v.renderActivePoints({item:P,activePoint:ee,basePoint:le,childIndex:I,isRange:j})))}return j?[ie,null,null]:[ie,null]}),Be(Ke(v),"renderCustomized",function(w,S,O){return m.cloneElement(w,pe(pe({key:"recharts-customized-".concat(O)},v.props),v.state))}),v.uniqueChartId=Le(y.id)?Lh("recharts"):y.id,v.clipPathId="".concat(v.uniqueChartId,"-clip"),y.throttleDelay&&(v.triggeredAfterMouseMove=PW(v.triggeredAfterMouseMove,y.throttleDelay)),v.state={},v}return Fqe(b,[{key:"componentDidMount",value:function(){var v,w;Le(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(v,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==v.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==v.margin){var S,O;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(v){Le(v.syncId)&&!Le(this.props.syncId)&&this.addListener(),!Le(v.syncId)&&Le(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Le(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){typeof this.triggeredAfterMouseMove.cancel=="function"&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var v=Ia(this.props.children,ra);if(v&&Oqe(v.props.shared)){var w=v.props.shared?"axis":"item";return l.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(v){if(!this.container)return null;var w=Yze(this.container),S=Xze(v,w),O=this.inRange(S.chartX,S.chartY);if(!O)return null;var P=this.state,C=P.xAxisMap,T=P.yAxisMap,A=this.getTooltipEventType();if(A!=="axis"&&C&&T){var k=di(C).scale,I=di(T).scale,D=k&&k.invert?k.invert(S.chartX):null,M=I&&I.invert?I.invert(S.chartY):null;return pe(pe({},S),{},{xValue:D,yValue:M})}var R=NL(this.state,this.props.data,this.props.layout,O);return R?pe(pe({},S),R):null}},{key:"getCursorRectangle",value:function(){var v=this.props.layout,w=this.state,S=w.activeCoordinate,O=w.offset,P=w.tooltipAxisBandSize,C=P/2;return{stroke:"none",fill:"#ccc",x:v==="horizontal"?S.x-C:O.left+.5,y:v==="horizontal"?O.top+.5:S.y-C,width:v==="horizontal"?P:O.width-1,height:v==="horizontal"?O.height-1:P}}},{key:"getCursorPoints",value:function(){var v=this.props.layout,w=this.state,S=w.activeCoordinate,O=w.offset,P,C,T,A;if(v==="horizontal")P=S.x,T=P,C=O.top,A=O.top+O.height;else if(v==="vertical")C=S.y,A=C,P=O.left,T=O.left+O.width;else if(!Le(S.cx)||!Le(S.cy))if(v==="centric"){var k=S.cx,I=S.cy,D=S.innerRadius,M=S.outerRadius,R=S.angle,N=Rr(k,I,D,R),F=Rr(k,I,M,R);P=N.x,C=N.y,T=F.x,A=F.y}else{var j=S.cx,L=S.cy,B=S.radius,W=S.startAngle,X=S.endAngle,J=Rr(j,L,B,W),K=Rr(j,L,B,X);return{points:[J,K],cx:j,cy:L,radius:B,startAngle:W,endAngle:X}}return[{x:P,y:C},{x:T,y:A}]}},{key:"inRange",value:function(v,w){var S=this.props.layout;if(S==="horizontal"||S==="vertical"){var O=this.state.offset,P=v>=O.left&&v<=O.left+O.width&&w>=O.top&&w<=O.top+O.height;return P?{x:v,y:w}:null}var C=this.state,T=C.angleAxisMap,A=C.radiusAxisMap;if(T&&A){var k=di(T);return UN({x:v,y:w},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var v=this.props.children,w=this.getTooltipEventType(),S=Ia(v,ra),O={};S&&w==="axis"&&(S.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var P=fy(this.props,this.handleOuterEvent);return pe(pe({},P),O)}},{key:"addListener",value:function(){$n.on(jw,this.handleReceiveSyncEvent),$n.setMaxListeners&&$n._maxListeners&&$n.setMaxListeners($n._maxListeners+1)}},{key:"removeListener",value:function(){$n.removeListener(jw,this.handleReceiveSyncEvent),$n.setMaxListeners&&$n._maxListeners&&$n.setMaxListeners($n._maxListeners-1)}},{key:"triggerSyncEvent",value:function(v){var w=this.props.syncId;Le(w)||$n.emit(jw,w,this.uniqueChartId,v)}},{key:"applySyncEvent",value:function(v){var w=this.props,S=w.layout,O=w.syncMethod,P=this.state.updateId,C=v.dataStartIndex,T=v.dataEndIndex;if(!Le(v.dataStartIndex)||!Le(v.dataEndIndex))this.setState(pe({dataStartIndex:C,dataEndIndex:T},g({props:this.props,dataStartIndex:C,dataEndIndex:T,updateId:P},this.state)));else if(Le(v.activeTooltipIndex))this.setState(v);else{var A=v.chartX,k=v.chartY,I=v.activeTooltipIndex,D=this.state,M=D.offset,R=D.tooltipTicks;if(!M)return;if(typeof O=="function")I=O(R,v);else if(O==="value"){I=-1;for(var N=0;Ne&&t&&t.length?_.jsxs("div",{className:"custom-tooltip",children:[_.jsx("p",{className:"label",children:Ze.unix(r).format("YYYY-MM-DD h:mm A")}),_.jsx("ul",{children:t.map((o,a)=>_.jsx("li",{style:{color:o.color},children:`${o.name in Bd?Bd[o.name]:o.name}: ${n(o.value)}`},`item-${a}`))})]}):null;function g1(e,t,r,n="zero",o=6,a,i){var s={},l={},u=[],c=[],f={};r.forEach(x=>{let b=Ze(x.ts).unix();c.indexOf(b)===-1&&c.push(b),b in s||(s[b]={}),x[e]in l?l[x[e]]+=x[t]:l[x[e]]=x[t],x[e]in s[b]?s[b][x[e]]+=x[t]:s[b][x[e]]=x[t],u.includes(x[e])||u.push(x[e]),x[e]in f||(f[x[e]]=b)}),u.sort((x,b)=>l[b]-l[x]),u=u.slice(0,30);let d=Math.max(...c);n=="prev"&&(d=i.unix());let h=a.unix();for(;hb>h&&b{u.forEach(y=>{y in s[x]||(x>g?n=="zero"?s[x][y]=0:n=="prev"&&(s[x][y]=s[c[b-1]][y]):f[y]x.id-b.id),{dataArray:p,proplist:u}}function uGe(){const e=St(),{fromDate:t,toDate:r}=m.useContext(cf);if(e.isLoading)return null;const{dataArray:n,proplist:o}=g1("project","usage",e.data,"zero",6,t,r);return _.jsx(t1,{width:"100%",height:400,children:_.jsxs(v1,{data:n,children:[_.jsx($l,{dataKey:"id",type:"number",tickFormatter:a=>Ze.unix(a).format("YYYY-MM-DD"),domain:[t.unix(),r.unix()],allowDataOverflow:!0}),_.jsx(El,{type:"number",tickFormatter:Y9,width:80}),_.jsx(ra,{content:_.jsx(m1,{formatter:rf}),wrapperStyle:{backgroundColor:"white",paddingLeft:"5px",paddingRight:"5px",opacity:"0.8"}}),_.jsx(Ka,{}),_.jsx(uf,{stroke:"#eee",strokeDasharray:"5 5"}),o.map((a,i)=>_.jsx(jo,{dataKey:a,type:"monotone",stroke:Ji(i),fill:Ji(i),fillOpacity:"1",stackId:"1"}))]})})}function cGe(){const{fromDate:e,toDate:t}=m.useContext(cf),r=St();if(r.isLoading)return null;const{dataArray:n,proplist:o}=g1("user","usage",r.data,"zero",6,e,t);return _.jsx(t1,{width:"100%",height:400,children:_.jsxs(v1,{data:n,children:[_.jsx($l,{dataKey:"id",type:"number",tickFormatter:a=>Ze.unix(a).format("YYYY-MM-DD"),domain:[e.unix(),t.unix()],allowDataOverflow:!0}),_.jsx(El,{type:"number",tickFormatter:Y9,width:80}),_.jsx(ra,{content:_.jsx(m1,{formatter:rf}),wrapperStyle:{backgroundColor:"white",paddingLeft:"5px",paddingRight:"5px",opacity:"0.8"}}),_.jsx(Ka,{}),_.jsx(uf,{stroke:"#eee",strokeDasharray:"5 5"}),o.map((a,i)=>{let s="1",l=1;return a=="total"?(s="2",l=0):a=="grant"&&(s="3",l=0),_.jsx(jo,{dataKey:a,type:"monotone",stroke:Ji(i),fill:Ji(i),fillOpacity:l,stackId:s})})]})})}function zL(){const e=St(),{fromDate:t,toDate:r,storageType:n}=m.useContext(cf);if(e.isLoading)return null;const{dataArray:o,proplist:a}=g1("location",n,e.data,"prev",6,t,r);return _.jsx(t1,{width:"100%",height:400,children:_.jsxs(v1,{data:o,children:[_.jsx($l,{dataKey:"id",type:"number",tickFormatter:i=>Ze.unix(i).format("YYYY-MM-DD"),domain:[t.unix(),r.unix()],allowDataOverflow:!0}),_.jsx(El,{type:"number",tickFormatter:i=>n=="size"?yn(i):i.toLocaleString(),width:80}),_.jsx(ra,{content:_.jsx(m1,{formatter:n=="size"?yn:i=>i.toLocaleString()}),wrapperStyle:{backgroundColor:"white",paddingLeft:"5px",paddingRight:"5px",opacity:"0.8"}}),_.jsx(Ka,{}),_.jsx(uf,{stroke:"#eee",strokeDasharray:"5 5"}),a.map((i,s)=>_.jsx(jo,{dataKey:i,type:"monotone",stroke:Ji(s),fill:Ji(s),fillOpacity:"1",stackId:"1"}))]})})}function Lw(){const{fromDate:e,toDate:t,storageType:r}=m.useContext(cf),n=St();if(n.isLoading)return null;const{dataArray:o,proplist:a}=g1("user",r,n.data,"prev",6,e,t);return _.jsx(t1,{width:"100%",height:400,children:_.jsxs(v1,{data:o,children:[_.jsx($l,{dataKey:"id",type:"number",tickFormatter:i=>Ze.unix(i).format("YYYY-MM-DD"),domain:[e.unix(),t.unix()],allowDataOverflow:!0}),_.jsx(El,{type:"number",tickFormatter:i=>r=="size"?yn(i):i.toLocaleString(),width:80}),_.jsx(ra,{content:_.jsx(m1,{formatter:r=="size"?yn:i=>i.toLocaleString()}),wrapperStyle:{backgroundColor:"white",paddingLeft:"5px",paddingRight:"5px",opacity:"0.8"}}),_.jsx(Ka,{}),_.jsx(uf,{stroke:"#eee",strokeDasharray:"5 5"}),a.map((i,s)=>{let l="1",u=1;return i=="total"?(l="2",u=0):i=="grant"&&(l="3",u=0),_.jsx(jo,{dataKey:i,type:"monotone",stroke:Ji(s),fill:Ji(s),fillOpacity:u,stackId:l})})]})})}const Fw=(e,t,r)=>{var n="show";return e in Bd?t?t+"/"+Bd[e]:Bd[e]:(r&&(n=n+"/"+r),t?_.jsx(Rg,{href:`#/users/${e}/${n}`,children:t+"/"+e}):_.jsx(Rg,{href:`#/users/${e}/${n}`,children:e}))},ka=(e,t,r)=>{var n="show";return r&&(n=n+"/"+r),sGe.includes(e)?t?_.jsx(Rg,{href:`#/groups/${e}/${n}`,children:t+"/"+e}):_.jsx(Rg,{href:`#/groups/${e}/${n}`,children:e}):t?t+"/"+e:e};var X9={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Rn,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(p){var x={date:p,utc:!0,args:arguments};return new i(x)},l.utc=function(p){var x=s(this.toDate(),{locale:this.$L,utc:!0});return p?x.add(this.utcOffset(),r):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),u.call(this,p)};var c=l.init;l.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else c.call(this)};var f=l.utcOffset;l.utcOffset=function(p,x){var b=this.$utils().u;if(b(p))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof p=="string"&&(p=function(S){S===void 0&&(S="");var O=S.match(n);if(!O)return null;var P=(""+O[0]).match(o)||["-",0,0],C=P[0],T=60*+P[1]+ +P[2];return T===0?0:C==="+"?T:-T}(p),p===null))return this;var y=Math.abs(p)<=16?60*p:p,v=this;if(x)return v.$offset=y,v.$u=p===0,v;if(p!==0){var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(v=this.local().add(y+w,r)).$offset=y,v.$x.$localOffset=w}else v=this.utc();return v};var d=l.format;l.format=function(p){var x=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,x)},l.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(p){return p==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var g=l.diff;l.diff=function(p,x,b){if(p&&this.$u===p.$u)return g.call(this,p,x,b);var y=this.local(),v=s(p).local();return g.call(y,v,x,b)}}})})(X9);var fGe=X9.exports;const dGe=ze(fGe);Ze.extend(dGe);function Qy(e){var t=e.utc();return e.minute()<30&&[1,7,13,19].includes(e.hour())?t=t.subtract(6,"hours"):t=t.hour(Math.floor(((e.utc().hour()-1)%24+24)%24/6)*6+1),t=t.set("minute",30).set("second",0).set("millisecond",0),t}const pGe=()=>{const e=Bt();return e?_.jsxs("span",{children:[e.pw_name," (",e.id,")"]}):null},hGe=()=>{const e=Bt();return e?_.jsx("div",{children:e.groups.map(t=>_.jsx(qz,{label:t,component:"a",href:`#/groups/${t}/show`,clickable:!0},t))}):null},vGe=()=>{const[e,t]=m.useState([]),[r,n]=m.useState(Ze().subtract(14,"day")),[o,a]=m.useState(Ze()),[i,s]=m.useState("size"),l=r&&o?{ts:[Qy(r.subtract(6,"hours")).toISOString(),Qy(o).toISOString()]}:{},u=()=>{const{resource:p,selectedIds:x}=St();var b=[];p==="compute_latest"?b=x.map(w=>w.split("_")[2]):p==="storage_latest"&&(b=x.map(w=>w.split("_")[3]));const y=()=>{t(b)},v=()=>{t([])};return _.jsxs(_.Fragment,{children:[_.jsx(Wr,{label:"Reset Filter",onClick:v}),_.jsx(Wr,{label:"Filter Graph",onClick:y})]})},c=(p,x)=>{s(x)},f=e.length!=0?{project:e}:{},d=e.length!=0?{location:e}:{},h={...f,...l},g={...d,...l};return _.jsx(vT,{title:_.jsx(pGe,{}),actions:_.jsx(ef,{children:_.jsx(xV,{linkType:"show"})}),children:_.jsxs(cf.Provider,{value:{fromDate:r,toDate:o,storageType:i},children:[_.jsxs(gT,{children:[_.jsx(Wi,{source:"id",label:"Username"}),_.jsx(Wi,{source:"pw_name",label:"Name"}),_.jsx(hGe,{label:"Projects"}),_.jsxs(q0,{dateAdapter:o8,adapterLocale:"en-au",children:[_.jsx(uy,{label:"From",value:r,onChange:p=>n(p),minDate:Ze("2023-09-05")}),_.jsx(uy,{label:"To",value:o,onChange:p=>a(p),minDate:Ze("2023-09-05")}),_.jsx(Wr,{label:"Reset Dates",variant:"contained",size:"large",sx:{margin:1.5},onClick:()=>{n(Ze().subtract(14,"day")),a(Ze())}})]})]}),_.jsxs(Eo,{children:[_.jsxs(Eo.Tab,{label:"Compute",children:[_.jsx(Yr,{label:"Compute usage over time",target:"user",reference:"compute",sort:{field:"ts",order:"ASC"},filter:h,perPage:99999,children:_.jsx(Fs,{render:uGe})}),_.jsx(Yr,{label:"Compute usage in Projects",target:"user",reference:"compute_latest",sort:{field:"usage",order:"DESC"},children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"Project",render:p=>ka(p.project),sortBy:"project",source:"project"}),_.jsx(ot,{label:"SU Usage",render:p=>`${rf(p.usage)}`,sortBy:"usage",source:"usage"})]})})]}),_.jsxs(Eo.Tab,{label:"/scratch",path:"scratch",children:[_.jsxs(_d,{color:"primary",value:i,exclusive:!0,onChange:c,"aria-label":"Type",children:[_.jsx(Yo,{value:"size",children:"Storage Capacity"}),_.jsx(Yo,{value:"inodes",children:"File Counts"})]}),_.jsx(Yr,{label:"/scratch usage over time",target:"user",reference:"storage",sort:{field:"ts",order:"ASC"},filter:{fs:"scratch",...g},perPage:99999,children:_.jsx(Fs,{render:zL})}),_.jsx(Yr,{label:"/scratch usage across all projects",target:"user",reference:"storage_latest",sort:{field:"size",order:"DESC"},filter:{fs:"scratch"},children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"Directory",render:p=>ka(p.location,"/scratch","scratch"),sortBy:"location",source:"location"}),_.jsx(ot,{label:"Group Ownership",render:p=>ka(p.ownership),sortBy:"ownership",source:"ownership"}),_.jsx(ot,{label:"Data Usage",render:p=>`${yn(p.size)}`,sortBy:"size",source:"size"}),_.jsx(ot,{label:"# Files",render:p=>`${p.inodes.toLocaleString()}`,sortBy:"inodes",source:"inodes"})]})})]}),_.jsxs(Eo.Tab,{label:"/g/data",path:"gdata",children:[_.jsxs(_d,{color:"primary",value:i,exclusive:!0,onChange:c,"aria-label":"Type",children:[_.jsx(Yo,{value:"size",children:"Storage Capacity"}),_.jsx(Yo,{value:"inodes",children:"File Counts"})]}),_.jsx(Yr,{label:"/g/data usage over time",target:"user",reference:"storage",sort:{field:"ts",order:"ASC"},filter:{fs:"gdata",...g},perPage:99999,children:_.jsx(Fs,{render:zL})}),_.jsx(Yr,{label:"/g/data usage across all projects",target:"user",reference:"storage_latest",sort:{field:"size",order:"DESC"},filter:{fs:"gdata"},children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"Directory",render:p=>ka(p.location,"/g/data","gdata"),sortBy:"location",source:"location"}),_.jsx(ot,{label:"Group Ownership",render:p=>ka(p.ownership),sortBy:"ownership",source:"ownership"}),_.jsx(ot,{label:"Data Usage",render:p=>`${yn(p.size)}`,sortBy:"size",source:"size"}),_.jsx(ot,{label:"# Files",render:p=>`${p.inodes.toLocaleString()}`,sortBy:"inodes",source:"inodes"})]})})]})]})]})})},mGe=[_.jsx(vl,{source:"id",label:"Group Search",alwaysOn:!0,resettable:!0,InputProps:{endAdornment:_.jsx(Vi,{position:"end",children:_.jsx(vt,{children:_.jsx(Zg,{})})})}})];function gGe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("compute_latest",{target:"PartitionKey",id:"1",filter:{project:r},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0 SU"});var i=n.reduce(function(s,l){return l.project===t.id&&l.user!="total"&&l.user!="grant"&&(s+=Number(l.usage)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:rf(i)})}function yGe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("storage_project_latest",{target:"PartitionKey",id:"1",filter:{project:r,fs:"scratch"},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0 SU"});var i=n.reduce(function(s,l){return l.project===t.id&&l.user!="total"&&l.user!="grant"&&(s+=Number(l.usage)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:yn(i)})}function bGe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("storage_project_latest",{target:"PartitionKey",id:"1",filter:{project:r,fs:"gdata"},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0 SU"});var i=n.reduce(function(s,l){return l.project===t.id&&l.user!="total"&&l.user!="grant"&&(s+=Number(l.usage)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:yn(i)})}function xGe(){const e=St(),t=Bt();if(!t)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(e.isLoading)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});const r=e.data.map(s=>s.id),{data:n,isLoading:o,error:a}=as("storage_project_latest",{target:"PartitionKey",id:"1",filter:{project:r,fs:"massdata"},pagination:{page:1,perPage:999}});if(o)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Loading..."});if(a)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"Error..."});if(!n)return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:"0 SU"});var i=n.reduce(function(s,l){return l.project===t.id&&l.user!="total"&&l.user!="grant"&&(s+=Number(l.usage)),s},0);return _.jsx(Te,{component:"span",variant:"body2",textAlign:"right",children:yn(i)})}const wGe=()=>_.jsx(bT,{filters:mGe,children:_.jsxs(ko,{rowClick:"show",bulkActionButtons:!1,hover:!1,children:[_.jsx(Wi,{source:"id",label:"Group Name"}),_.jsx(ot,{label:"Compute Usage",render:gGe}),_.jsx(ot,{label:"Scratch Usage",render:yGe}),_.jsx(ot,{label:"/g/data Usage",render:bGe}),_.jsx(ot,{label:"Massdata Usage",render:xGe})]})}),VL=()=>_.jsxs("div",{children:[_.jsx("b",{children:"A note on storage"}),_.jsx("br",{}),"Due to the different sources of the per-user data and the overall group data, the value in the 'Total Usage' field is unlikely to match the sum of usage over users. On Gadi, the overall group data comes from the file system 'quota' command, whereas the per-user data comes from NCI's daily file scans. There will always be a discrepancy between the reported project usage and the sum of individual usage. There main reasons for this are:",_.jsxs("ul",{children:[_.jsx("li",{children:"On /scratch, expired files count towards the group quota, but are not included in the daily scan"}),_.jsxs("li",{children:["NCI maintains 5 /g/data file systems. On some of them, files under a project's directory count towards the quota (called 'project quotas'), but on others the group ownership counts (called 'group quotas'). ",_.jsx("br",{}),"On file systems that enforce group quotas, group ownership only counts towards quotas if the files are in a directory on the same file system.",_.jsx("br",{}),"For example:",_.jsxs("ul",{children:[_.jsx("li",{children:"w40 and v45 are on the same file system which enforce group quotas, so files owned by the v45 group in the /g/data/w40 directory count towards v45's quota."}),_.jsx("li",{children:"v45 and hh5 are on different file systems, files owned by the v45 in the /g/data/hh5 directory count towards hh5's quota, as that file system enforces project quotas."})]})]})]}),"NCI uses overall group data to determine whether a project is over quota or not, this is the data in the 'total' row on this page."]}),SGe=()=>{const e=Bt();return e?_.jsxs("span",{children:["Project ",e.id]}):null};function UL(){return iGe.includes(window.location.hash.split("/")[2])?"ownership":"location"}const OGe=()=>{const[e,t]=m.useState([]),[r,n]=m.useState(Ze().subtract(14,"day")),[o,a]=m.useState(Ze()),[i,s]=m.useState("size"),l=r&&o?{ts:[Qy(r.subtract(6,"hours")).toISOString(),Qy(o).toISOString()]}:{},u=()=>{const{resource:h,selectedIds:g}=St();var p=[];h==="storage_latest"?p=g.map(y=>y.split("_")[2]):h==="compute_latest"&&(p=g.map(y=>y.split("_")[1]));const x=()=>{t(p)},b=()=>{t([])};return _.jsxs(_.Fragment,{children:[_.jsx(Wr,{label:"Reset Filter",onClick:b}),_.jsx(Wr,{label:"Filter Graph",onClick:x})]})},c=(h,g)=>{s(g)},d={...e.length!=0?{user:e}:{},...l};return _.jsx(vT,{title:_.jsx(SGe,{}),actions:_.jsx(ef,{children:_.jsx(xV,{linkType:"show"})}),children:_.jsxs(cf.Provider,{value:{fromDate:r,toDate:o,storageType:i},children:[_.jsxs(gT,{children:[_.jsx(Wi,{source:"id",label:"Group Name"}),_.jsxs(q0,{dateAdapter:o8,adapterLocale:"en-au",children:[_.jsx(uy,{label:"From",value:r,onChange:h=>n(h),minDate:Ze("2023-09-05")}),_.jsx(uy,{label:"To",value:o,onChange:h=>a(h),minDate:Ze("2023-09-05")}),_.jsx(Wr,{label:"Reset Dates",variant:"contained",size:"large",sx:{margin:1.5},onClick:()=>{n(Ze().subtract(14,"day")),a(Ze())}})]})]}),_.jsxs(Eo,{children:[_.jsxs(Eo.Tab,{label:"Compute",children:[_.jsx(Yr,{label:"Compute usage over time",target:"project",reference:"compute",sort:{field:"ts",order:"ASC"},filter:d,perPage:99999,children:_.jsx(Fs,{render:cGe})}),_.jsx(Yr,{label:"Compute usage by User",target:"project",reference:"compute_latest",sort:{field:"usage",order:"DESC"},perPage:9999,children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"User",render:h=>Fw(h.user),sortBy:"user",source:"user"}),_.jsx(ot,{label:"SU Usage",render:h=>`${rf(h.usage)}`,sortBy:"usage",source:"usage"})]})})]}),_.jsxs(Eo.Tab,{label:"/scratch",path:"scratch",children:[_.jsxs(_d,{color:"primary",value:i,exclusive:!0,onChange:c,"aria-label":"Type",children:[_.jsx(Yo,{value:"size",children:"Storage Capacity"}),_.jsx(Yo,{value:"inodes",children:"File Counts"})]}),_.jsx(Yr,{label:"/scratch usage over time",target:"location",reference:"storage",sort:{field:"ts",order:"ASC"},filter:{fs:"scratch",...d},perPage:99999,children:_.jsx(Fs,{render:Lw})}),_.jsx(VL,{}),_.jsx(Yr,{label:"/scratch usage by user",target:"location",reference:"storage_latest",sort:{field:"size",order:"DESC"},filter:{fs:"scratch"},perPage:9999,children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"User",render:h=>Fw(h.user),sortBy:"user",source:"user"}),_.jsx(ot,{label:"Directory",render:h=>ka(h.location,"/scratch","scratch"),sortBy:"location",source:"location"}),_.jsx(ot,{label:"Group Ownership",render:h=>ka(h.ownership),sortBy:"ownership",source:"ownership"}),_.jsx(ot,{label:"Data Usage",render:h=>`${yn(h.size)}`,sortBy:"size",source:"size"}),_.jsx(ot,{label:"# Files",render:h=>`${h.inodes.toLocaleString()}`,sortBy:"inodes",source:"inodes"})]})})]}),_.jsxs(Eo.Tab,{label:"/g/data",path:"gdata",children:[_.jsxs(_d,{color:"primary",value:i,exclusive:!0,onChange:c,"aria-label":"Type",children:[_.jsx(Yo,{value:"size",children:"Storage Capacity"}),_.jsx(Yo,{value:"inodes",children:"File Counts"})]}),_.jsxs(Yr,{label:"/g/data usage over time",target:UL(),reference:"storage",sort:{field:"ts",order:"ASC"},filter:{fs:"gdata",...d},perPage:99999,children:[_.jsx(Fs,{render:Lw}),_.jsx(VL,{})]}),_.jsx(Yr,{label:"/g/data usage by user",target:UL(),reference:"storage_latest",sort:{field:"size",order:"DESC"},filter:{fs:"gdata"},perPage:9999,children:_.jsxs(ko,{bulkActionButtons:_.jsx(u,{}),children:[_.jsx(ot,{label:"User",render:h=>Fw(h.user),sortBy:"user",source:"user"}),_.jsx(ot,{label:"Directory",render:h=>ka(h.location,"/g/data","gdata"),sortBy:"location",source:"location"}),_.jsx(ot,{label:"Group Ownership",render:h=>ka(h.ownership),sortBy:"ownership",source:"ownership"}),_.jsx(ot,{label:"Data Usage",render:h=>`${yn(h.size)}`,sortBy:"size",source:"size"}),_.jsx(ot,{label:"# Files",render:h=>`${h.inodes.toLocaleString()}`,sortBy:"inodes",source:"inodes"})]})})]}),_.jsxs(Eo.Tab,{label:"massdata",path:"massdata",children:[_.jsxs(_d,{color:"primary",value:i,exclusive:!0,onChange:c,"aria-label":"Type",children:[_.jsx(Yo,{value:"size",children:"Storage Capacity"}),_.jsx(Yo,{value:"inodes",children:"File Counts"})]}),_.jsx(Yr,{label:"massdata usage over time",target:"location",reference:"storage",sort:{field:"ts",order:"ASC"},filter:{fs:"massdata",...d},perPage:99999,children:_.jsx(Fs,{render:Lw})}),_.jsx(Yr,{label:"massdata usage",target:"location",reference:"storage_latest",sort:{field:"size",order:"DESC"},filter:{fs:"massdata"},perPage:9999,children:_.jsxs(ko,{bulkActionButtons:!1,children:[_.jsx(Wi,{label:"",sortBy:"user",source:"user"}),_.jsx(Wi,{label:"Project",sortBy:"location",source:"location"}),_.jsx(ot,{label:"Data Usage",render:h=>`${yn(h.size)}`,sortBy:"size",source:"size"}),_.jsx(ot,{label:"# Files",render:h=>`${h.inodes.toLocaleString()}`,sortBy:"inodes",source:"inodes"})]})})]})]})]})})},Q9=e=>{const{redirectTo:t,className:r}=e,[n,o]=ul(!1),a=F5(),i=We(),s=zn(),l=u=>{o(!0),a({username:"User",...u},t).then(()=>{o(!1)}).catch(c=>{o(!1),s(typeof c=="string"?c:typeof c>"u"||!c.message?"ra.auth.sign_in_error":c.message,{type:"error",messageArgs:{_:typeof c=="string"?c:c&&c.message?c.message:void 0}})})};return _.jsx(PGe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r,children:_.jsxs(vE,{className:Wu.content,children:[_.jsx(vl,{source:"password",label:i("ra.auth.password"),type:"password",autoComplete:"current-password",validate:uO(),fullWidth:!0}),_.jsx(br,{variant:"contained",type:"submit",color:"primary",disabled:n,fullWidth:!0,className:Wu.button,children:n?_.jsx(A0,{className:Wu.icon,size:19,thickness:3}):i("ra.auth.sign_in")})]})})},Sm="RaLoginForm",Wu={content:`${Sm}-content`,button:`${Sm}-button`,icon:`${Sm}-icon`},PGe=H(H5,{name:Sm,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Wu.content}`]:{width:300},[`& .${Wu.button}`]:{marginTop:e.spacing(2)},[`& .${Wu.icon}`]:{margin:e.spacing(.3)}}));Q9.propTypes={redirectTo:$.string};const J9=e=>{const{children:t=CGe,backgroundImage:r,...n}=e,o=m.useRef();let a=!1;const i=I$(),s=No();m.useEffect(()=>{i({},!1).then(()=>{s("/")}).catch(()=>{})},[i,s]);const l=()=>{!a&&o.current&&(o.current.style.backgroundImage=`url(${r})`,a=!0)},u=()=>{if(r){const c=new Image;c.onload=l,c.src=r}};return m.useEffect(()=>{a||u()}),_.jsx(_Ge,{...n,ref:o,children:_.jsxs(T0,{className:Hu.card,children:[_.jsx("div",{className:Hu.avatar,children:_.jsx(Tg,{className:Hu.icon,children:_.jsx(F0,{})})}),t]})})},CGe=_.jsx(Q9,{}),Om="RaLogin",Hu={card:`${Om}-card`,avatar:`${Om}-avatar`,icon:`${Om}-icon`},_Ge=H("div",{name:Om,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Hu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Hu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Hu.icon}`]:{backgroundColor:e.palette.secondary[500]}}));J9.propTypes={backgroundImage:$.string,children:$.node,className:$.string};const $Ge={login:({username:e,password:t})=>{const r=new Request("https://api.clex-cms-accounting.workers.dev/v0/auth",{method:"POST",body:JSON.stringify({username:e,password:t}),headers:new Headers({"Content-Type":"application/json"})});return fetch(r).then(n=>{if(n.status<200||n.status>=300)throw new Error(n.statusText);return n.text()}).then(n=>{localStorage.setItem("auth",n)}).catch(n=>{throw n.message?new Error(n.message):new Error("I broke")})},logout:()=>(localStorage.removeItem("auth"),Promise.resolve()),checkAuth:()=>localStorage.getItem("auth")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("auth"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve({id:"user",fullName:"User"}),getPermissions:()=>Promise.resolve("")},WL={orange:"#711E18",yellow:"#695B29",purple:"#3E437B",blue:"#024E62",green:"#346D53"},EGe={...TI,palette:{background:{default:"#f1f1f1"}},typography:{fontFamily:["Ubuntu","sans-serif"].join(",")},components:{...TI.components,RaAppBar:{styleOverrides:{root:{backgroundColor:WL.blue}}},RaDatagridHeaderCell:{styleOverrides:{root:{fontSize:16}}},MuiTableCell:{styleOverrides:{root:{color:"inherit"}}},RaDatagrid:{styleOverrides:{root:{"& .RaDatagrid-clickableRow":{":hover":{backgroundColor:WL.purple,color:"white"}}}}}}};var Jy=globalThis&&globalThis.__assign||function(){return Jy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const r=localStorage.getItem("auth"),n=t.headers||new Headers({});r&&n.set("Authorization",r),t.headers=n;const{status:o,headers:a,body:i,json:s}=await S4(e,t);return o==401&&(localStorage.removeItem("auth"),window.location.href=window.location.protocol+"//"+window.location.hostname+window.location.pathname+"#/login"),{status:o,headers:a,body:i,json:s}},AGe=TGe("https://api.clex-cms-accounting.workers.dev/v0/",kGe),RGe=()=>{const e=new h3({defaultOptions:{queries:{staleTime:3e5}}}),t=()=>_.jsx(Wr,{href:"http://climateextremes.org.au",children:_.jsx("img",{src:"https://home.climateextremes.org.au/wp-content/uploads/sites/2/2023/06/CLEX-ARC-Centre-_logo_WHITE-1.png",width:"180"})}),r=()=>_.jsxs(IE,{userMenu:!1,children:[_.jsx(z6,{}),_.jsx(t,{})]}),n=o=>_.jsx(nV,{...o,appBar:r});return _.jsxs(lDe,{layout:n,dataProvider:AGe,queryClient:e,loginPage:J9,authProvider:$Ge,theme:EGe,requireAuth:!0,disableTelemetry:!0,children:[_.jsx(yg,{name:"users",list:pDe,show:vGe}),_.jsx(yg,{name:"groups",list:wGe,show:OGe})]})};Bw.createRoot(document.getElementById("root")).render(_.jsx(z.StrictMode,{children:_.jsx(RGe,{})})); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..f9113c3 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..7e95128 --- /dev/null +++ b/index.html @@ -0,0 +1,126 @@ + + + + + + + + + CLEX Accounting Dashboard + + + + + + + + +
+
+
Loading...
+
+
+ + + diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..842b566 --- /dev/null +++ b/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "dashboard", + "name": "{{name}}", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": "./index.html", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +}