diff --git a/assets/index-BL6fGyJn.js b/assets/index-N_Z6QZ5K.js similarity index 64% rename from assets/index-BL6fGyJn.js rename to assets/index-N_Z6QZ5K.js index 3918e72..efa918a 100644 --- a/assets/index-BL6fGyJn.js +++ b/assets/index-N_Z6QZ5K.js @@ -1,4 +1,4 @@ -var RN=Object.defineProperty;var $N=(e,t,n)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vu=(e,t,n)=>$N(e,typeof t!="symbol"?t+"":t,n);var $1e=_N((Fr,jr)=>{function AN(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ip=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var hM={exports:{}},Sg={},mM={exports:{}},at={};/** +var $N=Object.defineProperty;var _N=(e,t,n)=>t in e?$N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var AN=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vu=(e,t,n)=>_N(e,typeof t!="symbol"?t+"":t,n);var _1e=AN((Fr,jr)=>{function DN(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ip=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var gM={exports:{}},Pg={},vM={exports:{}},at={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var RN=Object.defineProperty;var $N=(e,t,n)=>t in e?RN(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Bf=Symbol.for("react.element"),LN=Symbol.for("react.portal"),FN=Symbol.for("react.fragment"),jN=Symbol.for("react.strict_mode"),NN=Symbol.for("react.profiler"),BN=Symbol.for("react.provider"),zN=Symbol.for("react.context"),HN=Symbol.for("react.forward_ref"),VN=Symbol.for("react.suspense"),UN=Symbol.for("react.memo"),GN=Symbol.for("react.lazy"),yP=Symbol.iterator;function WN(e){return e===null||typeof e!="object"?null:(e=yP&&e[yP]||e["@@iterator"],typeof e=="function"?e:null)}var gM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vM=Object.assign,yM={};function mu(e,t,n){this.props=e,this.context=t,this.refs=yM,this.updater=n||gM}mu.prototype.isReactComponent={};mu.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")};mu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bM(){}bM.prototype=mu.prototype;function zC(e,t,n){this.props=e,this.context=t,this.refs=yM,this.updater=n||gM}var HC=zC.prototype=new bM;HC.constructor=zC;vM(HC,mu.prototype);HC.isPureReactComponent=!0;var bP=Array.isArray,wM=Object.prototype.hasOwnProperty,VC={current:null},CM={key:!0,ref:!0,__self:!0,__source:!0};function xM(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)wM.call(t,r)&&!CM.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1t in e?RN(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var QN=p,JN=Symbol.for("react.element"),ZN=Symbol.for("react.fragment"),eB=Object.prototype.hasOwnProperty,tB=QN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nB={key:!0,ref:!0,__self:!0,__source:!0};function PM(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)eB.call(t,r)&&!nB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:JN,type:e,key:i,ref:s,props:o,_owner:tB.current}}Sg.Fragment=ZN;Sg.jsx=PM;Sg.jsxs=PM;hM.exports=Sg;var v=hM.exports,IM={exports:{}},Wr={},kM={exports:{}},TM={};/** + */var JN=p,ZN=Symbol.for("react.element"),eB=Symbol.for("react.fragment"),tB=Object.prototype.hasOwnProperty,nB=JN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rB={key:!0,ref:!0,__self:!0,__source:!0};function kM(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tB.call(t,r)&&!rB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ZN,type:e,key:i,ref:s,props:o,_owner:nB.current}}Pg.Fragment=eB;Pg.jsx=kM;Pg.jsxs=kM;gM.exports=Pg;var v=gM.exports,TM={exports:{}},Wr={},EM={exports:{}},OM={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var RN=Object.defineProperty;var $N=(e,t,n)=>t in e?RN(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(F,j){var N=F.length;F.push(j);e:for(;0>>1,V=F[z];if(0>>1;zo(G,N))Yo(ee,G)?(F[z]=ee,F[Y]=N,z=Y):(F[z]=G,F[H]=N,z=H);else if(Yo(ee,N))F[z]=ee,F[Y]=N,z=Y;else break e}}return j}function o(F,j){var N=F.sortIndex-j.sortIndex;return N!==0?N:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,m=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(F){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=F)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function x(F){if(y=!1,g(F),!m)if(n(l)!==null)m=!0,$(P);else{var j=n(c);j!==null&&L(x,j.startTime-F)}}function P(F,j){m=!1,y&&(y=!1,w(M),M=-1),h=!0;var N=f;try{for(g(j),d=n(l);d!==null&&(!(d.expirationTime>j)||F&&!R());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var V=z(d.expirationTime<=j);j=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),g(j)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var H=n(c);H!==null&&L(x,H.startTime-j),K=!1}return K}finally{d=null,f=N,h=!1}}var I=!1,T=null,M=-1,k=5,S=-1;function R(){return!(e.unstable_now()-SF||125z?(F.sortIndex=N,t(c,F),n(l)===null&&F===n(c)&&(y?(w(M),M=-1):y=!0,L(x,N-z))):(F.sortIndex=V,t(l,F),m||h||(m=!0,$(P))),F},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(F){var j=f;return function(){var N=f;f=j;try{return F.apply(this,arguments)}finally{f=N}}}})(TM);kM.exports=TM;var rB=kM.exports;/** + */(function(e){function t(F,j){var N=F.length;F.push(j);e:for(;0>>1,V=F[z];if(0>>1;zo(G,N))qo(ee,G)?(F[z]=ee,F[q]=N,z=q):(F[z]=G,F[H]=N,z=H);else if(qo(ee,N))F[z]=ee,F[q]=N,z=q;else break e}}return j}function o(F,j){var N=F.sortIndex-j.sortIndex;return N!==0?N:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,m=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(F){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=F)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function x(F){if(y=!1,g(F),!m)if(n(l)!==null)m=!0,$(P);else{var j=n(c);j!==null&&L(x,j.startTime-F)}}function P(F,j){m=!1,y&&(y=!1,w(M),M=-1),h=!0;var N=f;try{for(g(j),d=n(l);d!==null&&(!(d.expirationTime>j)||F&&!R());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var V=z(d.expirationTime<=j);j=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),g(j)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var H=n(c);H!==null&&L(x,H.startTime-j),K=!1}return K}finally{d=null,f=N,h=!1}}var I=!1,T=null,M=-1,k=5,S=-1;function R(){return!(e.unstable_now()-SF||125z?(F.sortIndex=N,t(c,F),n(l)===null&&F===n(c)&&(y?(w(M),M=-1):y=!0,L(x,N-z))):(F.sortIndex=V,t(l,F),m||h||(m=!0,$(P))),F},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(F){var j=f;return function(){var N=f;f=j;try{return F.apply(this,arguments)}finally{f=N}}}})(OM);EM.exports=OM;var oB=EM.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var RN=Object.defineProperty;var $N=(e,t,n)=>t in e?RN(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oB=p,Vr=rB;function be(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h0=Object.prototype.hasOwnProperty,iB=/^[: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]*$/,CP={},xP={};function sB(e){return h0.call(xP,e)?!0:h0.call(CP,e)?!1:iB.test(e)?xP[e]=!0:(CP[e]=!0,!1)}function aB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lB(e,t,n,r){if(t===null||typeof t>"u"||aB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ar(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new ar(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new ar(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new ar(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new ar(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){Rn[e]=new ar(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new ar(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new ar(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new ar(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new ar(e,5,!1,e.toLowerCase(),null,!1,!1)});var GC=/[\-:]([a-z])/g;function WC(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(GC,WC);Rn[t]=new ar(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(GC,WC);Rn[t]=new ar(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(GC,WC);Rn[t]=new ar(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new ar(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new ar(e,1,!1,e.toLowerCase(),null,!0,!0)});function KC(e,t,n,r){var o=Rn.hasOwnProperty(t)?Rn[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m0=Object.prototype.hasOwnProperty,sB=/^[: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]*$/,SP={},PP={};function aB(e){return m0.call(PP,e)?!0:m0.call(SP,e)?!1:sB.test(e)?PP[e]=!0:(SP[e]=!0,!1)}function lB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cB(e,t,n,r){if(t===null||typeof t>"u"||lB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ar(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var $n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$n[e]=new ar(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$n[t]=new ar(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$n[e]=new ar(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$n[e]=new ar(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){$n[e]=new ar(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$n[e]=new ar(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$n[e]=new ar(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$n[e]=new ar(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$n[e]=new ar(e,5,!1,e.toLowerCase(),null,!1,!1)});var KC=/[\-:]([a-z])/g;function qC(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(KC,qC);$n[t]=new ar(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(KC,qC);$n[t]=new ar(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(KC,qC);$n[t]=new ar(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$n[e]=new ar(e,1,!1,e.toLowerCase(),null,!1,!1)});$n.xlinkHref=new ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$n[e]=new ar(e,1,!1,e.toLowerCase(),null,!0,!0)});function YC(e,t,n,r){var o=$n.hasOwnProperty(t)?$n[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ey=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pd(e):""}function cB(e){switch(e.tag){case 5:return pd(e.type);case 16:return pd("Lazy");case 13:return pd("Suspense");case 19:return pd("SuspenseList");case 0:case 2:case 15:return e=Oy(e.type,!1),e;case 11:return e=Oy(e.type.render,!1),e;case 1:return e=Oy(e.type,!0),e;default:return""}}function y0(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 Yl:return"Fragment";case ql:return"Portal";case m0:return"Profiler";case qC:return"StrictMode";case g0:return"Suspense";case v0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MM:return(e.displayName||"Context")+".Consumer";case OM:return(e._context.displayName||"Context")+".Provider";case YC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case XC:return t=e.displayName||null,t!==null?t:y0(e.type)||"Memo";case ws:t=e._payload,e=e._init;try{return y0(e(t))}catch{}}return null}function uB(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 y0(t);case 8:return t===qC?"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 Ys(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $M(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dB(e){var t=$M(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ep(e){e._valueTracker||(e._valueTracker=dB(e))}function _M(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$M(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wh(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 b0(e,t){var n=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function PP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ys(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function AM(e,t){t=t.checked,t!=null&&KC(e,"checked",t,!1)}function w0(e,t){AM(e,t);var n=Ys(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?C0(e,t.type,n):t.hasOwnProperty("defaultValue")&&C0(e,t.type,Ys(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function IP(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function C0(e,t,n){(t!=="number"||Wh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hd=Array.isArray;function gc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Op.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Id={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},fB=["Webkit","ms","Moz","O"];Object.keys(Id).forEach(function(e){fB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Id[t]=Id[e]})});function jM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Id.hasOwnProperty(e)&&Id[e]?(""+t).trim():t+"px"}function NM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=jM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pB=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function P0(e,t){if(t){if(pB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(be(62))}}function I0(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 k0=null;function QC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var T0=null,vc=null,yc=null;function EP(e){if(e=Vf(e)){if(typeof T0!="function")throw Error(be(280));var t=e.stateNode;t&&(t=Eg(t),T0(e.stateNode,e.type,t))}}function BM(e){vc?yc?yc.push(e):yc=[e]:vc=e}function zM(){if(vc){var e=vc,t=yc;if(yc=vc=null,EP(e),t)for(e=0;e>>=0,e===0?32:31-(PB(e)/IB|0)|0}var Mp=64,Rp=4194304;function md(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 Xh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=md(a):(i&=s,i!==0&&(r=md(i)))}else s=n&~o,s!==0?r=md(s):i!==0&&(r=md(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lo(t),e[t]=n}function OB(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Td),FP=" ",jP=!1;function aR(e,t){switch(e){case"keyup":return rz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function iz(e,t){switch(e){case"compositionend":return lR(t);case"keypress":return t.which!==32?null:(jP=!0,FP);case"textInput":return e=t.data,e===FP&&jP?null:e;default:return null}}function sz(e,t){if(Xl)return e==="compositionend"||!ix&&aR(e,t)?(e=iR(),vh=nx=$s=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=HP(n)}}function fR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pR(){for(var e=window,t=Wh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wh(e.document)}return t}function sx(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 mz(e){var t=pR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fR(n.ownerDocument.documentElement,n)){if(r!==null&&sx(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=VP(n,i);var s=VP(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ql=null,_0=null,Od=null,A0=!1;function UP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;A0||Ql==null||Ql!==Wh(r)||(r=Ql,"selectionStart"in r&&sx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&rf(Od,r)||(Od=r,r=Zh(_0,"onSelect"),0ec||(e.current=B0[ec],B0[ec]=null,ec--)}function $t(e,t){ec++,B0[ec]=e.current,e.current=t}var Xs={},Wn=oa(Xs),vr=oa(!1),Wa=Xs;function Fc(e,t){var n=e.type.contextTypes;if(!n)return Xs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yr(e){return e=e.childContextTypes,e!=null}function tm(){Dt(vr),Dt(Wn)}function QP(e,t,n){if(Wn.current!==Xs)throw Error(be(168));$t(Wn,t),$t(vr,n)}function xR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(be(108,uB(e)||"Unknown",o));return Kt({},n,r)}function nm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xs,Wa=Wn.current,$t(Wn,e),$t(vr,vr.current),!0}function JP(e,t,n){var r=e.stateNode;if(!r)throw Error(be(169));n?(e=xR(e,t,Wa),r.__reactInternalMemoizedMergedChildContext=e,Dt(vr),Dt(Wn),$t(Wn,e)):Dt(vr),$t(vr,n)}var Oi=null,Og=!1,Vy=!1;function SR(e){Oi===null?Oi=[e]:Oi.push(e)}function Tz(e){Og=!0,SR(e)}function ia(){if(!Vy&&Oi!==null){Vy=!0;var e=0,t=bt;try{var n=Oi;for(bt=1;e>=s,o-=s,$i=1<<32-Lo(t)+o|n<M?(k=T,T=null):k=T.sibling;var S=f(w,T,g[M],x);if(S===null){T===null&&(T=k);break}e&&T&&S.alternate===null&&t(w,T),b=i(S,b,M),I===null?P=S:I.sibling=S,I=S,T=k}if(M===g.length)return n(w,T),Nt&&ba(w,M),P;if(T===null){for(;MM?(k=T,T=null):k=T.sibling;var R=f(w,T,S.value,x);if(R===null){T===null&&(T=k);break}e&&T&&R.alternate===null&&t(w,T),b=i(R,b,M),I===null?P=R:I.sibling=R,I=R,T=k}if(S.done)return n(w,T),Nt&&ba(w,M),P;if(T===null){for(;!S.done;M++,S=g.next())S=d(w,S.value,x),S!==null&&(b=i(S,b,M),I===null?P=S:I.sibling=S,I=S);return Nt&&ba(w,M),P}for(T=r(w,T);!S.done;M++,S=g.next())S=h(T,w,M,S.value,x),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?M:S.key),b=i(S,b,M),I===null?P=S:I.sibling=S,I=S);return e&&T.forEach(function(O){return t(w,O)}),Nt&&ba(w,M),P}function C(w,b,g,x){if(typeof g=="object"&&g!==null&&g.type===Yl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Tp:e:{for(var P=g.key,I=b;I!==null;){if(I.key===P){if(P=g.type,P===Yl){if(I.tag===7){n(w,I.sibling),b=o(I,g.props.children),b.return=w,w=b;break e}}else if(I.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ws&&tI(P)===I.type){n(w,I.sibling),b=o(I,g.props),b.ref=Yu(w,I,g),b.return=w,w=b;break e}n(w,I);break}else t(w,I);I=I.sibling}g.type===Yl?(b=ja(g.props.children,w.mode,x,g.key),b.return=w,w=b):(x=Ih(g.type,g.key,g.props,null,w.mode,x),x.ref=Yu(w,b,g),x.return=w,w=x)}return s(w);case ql:e:{for(I=g.key;b!==null;){if(b.key===I)if(b.tag===4&&b.stateNode.containerInfo===g.containerInfo&&b.stateNode.implementation===g.implementation){n(w,b.sibling),b=o(b,g.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=Qy(g,w.mode,x),b.return=w,w=b}return s(w);case ws:return I=g._init,C(w,b,I(g._payload),x)}if(hd(g))return m(w,b,g,x);if(Uu(g))return y(w,b,g,x);jp(w,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,g),b.return=w,w=b):(n(w,b),b=Xy(g,w.mode,x),b.return=w,w=b),s(w)):n(w,b)}return C}var Nc=TR(!0),ER=TR(!1),im=oa(null),sm=null,rc=null,ux=null;function dx(){ux=rc=sm=null}function fx(e){var t=im.current;Dt(im),e._currentValue=t}function V0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wc(e,t){sm=e,ux=rc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function vo(e){var t=e._currentValue;if(ux!==e)if(e={context:e,memoizedValue:t,next:null},rc===null){if(sm===null)throw Error(be(308));rc=e,sm.dependencies={lanes:0,firstContext:e}}else rc=rc.next=e;return t}var Oa=null;function px(e){Oa===null?Oa=[e]:Oa.push(e)}function OR(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,px(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yi(e,r)}function Yi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cs=!1;function hx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function MR(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ut&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yi(e,n)}return o=r.interleaved,o===null?(t.next=t,px(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yi(e,n)}function bh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}function nI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function am(e,t,n,r){var o=e.updateQueue;Cs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(f=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=Kt({},d,f);break e;case 2:Cs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ya|=s,e.lanes=s,e.memoizedState=d}}function rI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gy.transition;Gy.transition={};try{e(!1),t()}finally{bt=n,Gy.transition=r}}function KR(){return yo().memoizedState}function Rz(e,t,n){var r=Hs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qR(e))YR(t,n);else if(n=OR(e,t,n,r),n!==null){var o=or();Fo(n,e,r,o),XR(n,t,r)}}function $z(e,t,n){var r=Hs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qR(e))YR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,zo(a,s)){var l=t.interleaved;l===null?(o.next=o,px(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=OR(e,t,o,r),n!==null&&(o=or(),Fo(n,e,r,o),XR(n,t,r))}}function qR(e){var t=e.alternate;return e===Gt||t!==null&&t===Gt}function YR(e,t){Md=cm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XR(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}var um={readContext:vo,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},_z={readContext:vo,useCallback:function(e,t){return Yo().memoizedState=[e,t===void 0?null:t],e},useContext:vo,useEffect:iI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ch(4194308,4,HR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ch(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rz.bind(null,Gt,e),[r.memoizedState,e]},useRef:function(e){var t=Yo();return e={current:e},t.memoizedState=e},useState:oI,useDebugValue:xx,useDeferredValue:function(e){return Yo().memoizedState=e},useTransition:function(){var e=oI(!1),t=e[0];return e=Mz.bind(null,e[1]),Yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Gt,o=Yo();if(Nt){if(n===void 0)throw Error(be(407));n=n()}else{if(n=t(),xn===null)throw Error(be(349));qa&30||AR(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,iI(LR.bind(null,r,i,e),[e]),r.flags|=2048,ff(9,DR.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Yo(),t=xn.identifierPrefix;if(Nt){var n=_i,r=$i;n=(r&~(1<<32-Lo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Oy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pd(e):""}function uB(e){switch(e.tag){case 5:return pd(e.type);case 16:return pd("Lazy");case 13:return pd("Suspense");case 19:return pd("SuspenseList");case 0:case 2:case 15:return e=My(e.type,!1),e;case 11:return e=My(e.type.render,!1),e;case 1:return e=My(e.type,!0),e;default:return""}}function b0(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 Yl:return"Fragment";case ql:return"Portal";case g0:return"Profiler";case XC:return"StrictMode";case v0:return"Suspense";case y0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $M:return(e.displayName||"Context")+".Consumer";case RM:return(e._context.displayName||"Context")+".Provider";case QC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case JC:return t=e.displayName||null,t!==null?t:b0(e.type)||"Memo";case Cs:t=e._payload,e=e._init;try{return b0(e(t))}catch{}}return null}function dB(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 b0(t);case 8:return t===XC?"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 Qs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fB(e){var t=AM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ep(e){e._valueTracker||(e._valueTracker=fB(e))}function DM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=AM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kh(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 w0(e,t){var n=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LM(e,t){t=t.checked,t!=null&&YC(e,"checked",t,!1)}function C0(e,t){LM(e,t);var n=Qs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?x0(e,t.type,n):t.hasOwnProperty("defaultValue")&&x0(e,t.type,Qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TP(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function x0(e,t,n){(t!=="number"||Kh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hd=Array.isArray;function gc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Op.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Id={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},pB=["Webkit","ms","Moz","O"];Object.keys(Id).forEach(function(e){pB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Id[t]=Id[e]})});function BM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Id.hasOwnProperty(e)&&Id[e]?(""+t).trim():t+"px"}function zM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=BM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var hB=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function I0(e,t){if(t){if(hB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(be(62))}}function k0(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 T0=null;function ZC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var E0=null,vc=null,yc=null;function MP(e){if(e=Vf(e)){if(typeof E0!="function")throw Error(be(280));var t=e.stateNode;t&&(t=Og(t),E0(e.stateNode,e.type,t))}}function HM(e){vc?yc?yc.push(e):yc=[e]:vc=e}function VM(){if(vc){var e=vc,t=yc;if(yc=vc=null,MP(e),t)for(e=0;e>>=0,e===0?32:31-(IB(e)/kB|0)|0}var Mp=64,Rp=4194304;function md(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 Qh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=md(a):(i&=s,i!==0&&(r=md(i)))}else s=n&~o,s!==0?r=md(s):i!==0&&(r=md(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lo(t),e[t]=n}function MB(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Td),NP=" ",BP=!1;function cR(e,t){switch(e){case"keyup":return oz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function sz(e,t){switch(e){case"compositionend":return uR(t);case"keypress":return t.which!==32?null:(BP=!0,NP);case"textInput":return e=t.data,e===NP&&BP?null:e;default:return null}}function az(e,t){if(Xl)return e==="compositionend"||!ax&&cR(e,t)?(e=aR(),vh=ox=_s=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=UP(n)}}function hR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mR(){for(var e=window,t=Kh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kh(e.document)}return t}function lx(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 gz(e){var t=mR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hR(n.ownerDocument.documentElement,n)){if(r!==null&&lx(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=GP(n,i);var s=GP(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ql=null,A0=null,Od=null,D0=!1;function WP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;D0||Ql==null||Ql!==Kh(r)||(r=Ql,"selectionStart"in r&&lx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Od&&rf(Od,r)||(Od=r,r=em(A0,"onSelect"),0ec||(e.current=z0[ec],z0[ec]=null,ec--)}function $t(e,t){ec++,z0[ec]=e.current,e.current=t}var Js={},Wn=ia(Js),vr=ia(!1),Wa=Js;function Fc(e,t){var n=e.type.contextTypes;if(!n)return Js;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yr(e){return e=e.childContextTypes,e!=null}function nm(){Dt(vr),Dt(Wn)}function ZP(e,t,n){if(Wn.current!==Js)throw Error(be(168));$t(Wn,t),$t(vr,n)}function PR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(be(108,dB(e)||"Unknown",o));return Kt({},n,r)}function rm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Js,Wa=Wn.current,$t(Wn,e),$t(vr,vr.current),!0}function eI(e,t,n){var r=e.stateNode;if(!r)throw Error(be(169));n?(e=PR(e,t,Wa),r.__reactInternalMemoizedMergedChildContext=e,Dt(vr),Dt(Wn),$t(Wn,e)):Dt(vr),$t(vr,n)}var Oi=null,Mg=!1,Uy=!1;function IR(e){Oi===null?Oi=[e]:Oi.push(e)}function Ez(e){Mg=!0,IR(e)}function sa(){if(!Uy&&Oi!==null){Uy=!0;var e=0,t=bt;try{var n=Oi;for(bt=1;e>=s,o-=s,$i=1<<32-Lo(t)+o|n<M?(k=T,T=null):k=T.sibling;var S=f(w,T,g[M],x);if(S===null){T===null&&(T=k);break}e&&T&&S.alternate===null&&t(w,T),b=i(S,b,M),I===null?P=S:I.sibling=S,I=S,T=k}if(M===g.length)return n(w,T),Nt&&wa(w,M),P;if(T===null){for(;MM?(k=T,T=null):k=T.sibling;var R=f(w,T,S.value,x);if(R===null){T===null&&(T=k);break}e&&T&&R.alternate===null&&t(w,T),b=i(R,b,M),I===null?P=R:I.sibling=R,I=R,T=k}if(S.done)return n(w,T),Nt&&wa(w,M),P;if(T===null){for(;!S.done;M++,S=g.next())S=d(w,S.value,x),S!==null&&(b=i(S,b,M),I===null?P=S:I.sibling=S,I=S);return Nt&&wa(w,M),P}for(T=r(w,T);!S.done;M++,S=g.next())S=h(T,w,M,S.value,x),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?M:S.key),b=i(S,b,M),I===null?P=S:I.sibling=S,I=S);return e&&T.forEach(function(O){return t(w,O)}),Nt&&wa(w,M),P}function C(w,b,g,x){if(typeof g=="object"&&g!==null&&g.type===Yl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Tp:e:{for(var P=g.key,I=b;I!==null;){if(I.key===P){if(P=g.type,P===Yl){if(I.tag===7){n(w,I.sibling),b=o(I,g.props.children),b.return=w,w=b;break e}}else if(I.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Cs&&rI(P)===I.type){n(w,I.sibling),b=o(I,g.props),b.ref=Yu(w,I,g),b.return=w,w=b;break e}n(w,I);break}else t(w,I);I=I.sibling}g.type===Yl?(b=ja(g.props.children,w.mode,x,g.key),b.return=w,w=b):(x=Ih(g.type,g.key,g.props,null,w.mode,x),x.ref=Yu(w,b,g),x.return=w,w=x)}return s(w);case ql:e:{for(I=g.key;b!==null;){if(b.key===I)if(b.tag===4&&b.stateNode.containerInfo===g.containerInfo&&b.stateNode.implementation===g.implementation){n(w,b.sibling),b=o(b,g.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=Jy(g,w.mode,x),b.return=w,w=b}return s(w);case Cs:return I=g._init,C(w,b,I(g._payload),x)}if(hd(g))return m(w,b,g,x);if(Uu(g))return y(w,b,g,x);jp(w,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,g),b.return=w,w=b):(n(w,b),b=Qy(g,w.mode,x),b.return=w,w=b),s(w)):n(w,b)}return C}var Nc=OR(!0),MR=OR(!1),sm=ia(null),am=null,rc=null,fx=null;function px(){fx=rc=am=null}function hx(e){var t=sm.current;Dt(sm),e._currentValue=t}function U0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wc(e,t){am=e,fx=rc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function vo(e){var t=e._currentValue;if(fx!==e)if(e={context:e,memoizedValue:t,next:null},rc===null){if(am===null)throw Error(be(308));rc=e,am.dependencies={lanes:0,firstContext:e}}else rc=rc.next=e;return t}var Ma=null;function mx(e){Ma===null?Ma=[e]:Ma.push(e)}function RR(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,mx(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xi(e,r)}function Xi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var xs=!1;function gx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $R(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ut&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xi(e,n)}return o=r.interleaved,o===null?(t.next=t,mx(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xi(e,n)}function bh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tx(e,n)}}function oI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function lm(e,t,n,r){var o=e.updateQueue;xs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(f=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=Kt({},d,f);break e;case 2:xs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ya|=s,e.lanes=s,e.memoizedState=d}}function iI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Wy.transition;Wy.transition={};try{e(!1),t()}finally{bt=n,Wy.transition=r}}function YR(){return yo().memoizedState}function $z(e,t,n){var r=Us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},XR(e))QR(t,n);else if(n=RR(e,t,n,r),n!==null){var o=or();Fo(n,e,r,o),JR(n,t,r)}}function _z(e,t,n){var r=Us(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(XR(e))QR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,zo(a,s)){var l=t.interleaved;l===null?(o.next=o,mx(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=RR(e,t,o,r),n!==null&&(o=or(),Fo(n,e,r,o),JR(n,t,r))}}function XR(e){var t=e.alternate;return e===Gt||t!==null&&t===Gt}function QR(e,t){Md=um=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function JR(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tx(e,n)}}var dm={readContext:vo,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useInsertionEffect:Ln,useLayoutEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useMutableSource:Ln,useSyncExternalStore:Ln,useId:Ln,unstable_isNewReconciler:!1},Az={readContext:vo,useCallback:function(e,t){return Yo().memoizedState=[e,t===void 0?null:t],e},useContext:vo,useEffect:aI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ch(4194308,4,UR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ch(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$z.bind(null,Gt,e),[r.memoizedState,e]},useRef:function(e){var t=Yo();return e={current:e},t.memoizedState=e},useState:sI,useDebugValue:Px,useDeferredValue:function(e){return Yo().memoizedState=e},useTransition:function(){var e=sI(!1),t=e[0];return e=Rz.bind(null,e[1]),Yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Gt,o=Yo();if(Nt){if(n===void 0)throw Error(be(407));n=n()}else{if(n=t(),Sn===null)throw Error(be(349));qa&30||LR(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,aI(jR.bind(null,r,i,e),[e]),r.flags|=2048,ff(9,FR.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Yo(),t=Sn.identifierPrefix;if(Nt){var n=_i,r=$i;n=(r&~(1<<32-Lo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ei]=t,e[af]=r,s$(e,t,!1,!1),t.stateNode=e;e:{switch(s=I0(n,r),n){case"dialog":_t("cancel",e),_t("close",e),o=r;break;case"iframe":case"object":case"embed":_t("load",e),o=r;break;case"video":case"audio":for(o=0;oHc&&(t.flags|=128,r=!0,Xu(i,!1),t.lanes=4194304)}else{if(!r)if(e=lm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nt)return Ln(t),null}else 2*sn()-i.renderingStartTime>Hc&&n!==1073741824&&(t.flags|=128,r=!0,Xu(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=sn(),t.sibling=null,n=zt.current,$t(zt,r?n&1|2:n&1),t):(Ln(t),null);case 22:case 23:return Ex(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mr&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(be(156,t.tag))}function zz(e,t){switch(lx(t),t.tag){case 1:return yr(t.type)&&tm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),Dt(vr),Dt(Wn),vx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gx(t),null;case 13:if(Dt(zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));jc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(zt),null;case 4:return Bc(),null;case 10:return fx(t.type._context),null;case 22:case 23:return Ex(),null;case 24:return null;default:return null}}var Bp=!1,zn=!1,Hz=typeof WeakSet=="function"?WeakSet:Set,$e=null;function oc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){en(e,t,r)}else n.current=null}function J0(e,t,n){try{n()}catch(r){en(e,t,r)}}var gI=!1;function Vz(e,t){if(D0=Qh,e=pR(),sx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=s),f===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(L0={focusedElem:e,selectionRange:n},Qh=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,C=m.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ro(t.type,y),C);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(be(163))}}catch(x){en(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return m=gI,gI=!1,m}function Rd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&J0(t,n,i)}o=o.next}while(o!==r)}}function $g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Z0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function c$(e){var t=e.alternate;t!==null&&(e.alternate=null,c$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ei],delete t[af],delete t[N0],delete t[Iz],delete t[kz])),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 u$(e){return e.tag===5||e.tag===3||e.tag===4}function vI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||u$(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 ew(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=em));else if(r!==4&&(e=e.child,e!==null))for(ew(e,t,n),e=e.sibling;e!==null;)ew(e,t,n),e=e.sibling}function tw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tw(e,t,n),e=e.sibling;e!==null;)tw(e,t,n),e=e.sibling}var Pn=null,_o=!1;function fs(e,t,n){for(n=n.child;n!==null;)d$(e,t,n),n=n.sibling}function d$(e,t,n){if(ri&&typeof ri.onCommitFiberUnmount=="function")try{ri.onCommitFiberUnmount(Pg,n)}catch{}switch(n.tag){case 5:zn||oc(n,t);case 6:var r=Pn,o=_o;Pn=null,fs(e,t,n),Pn=r,_o=o,Pn!==null&&(_o?(e=Pn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pn.removeChild(n.stateNode));break;case 18:Pn!==null&&(_o?(e=Pn,n=n.stateNode,e.nodeType===8?Hy(e.parentNode,n):e.nodeType===1&&Hy(e,n),tf(e)):Hy(Pn,n.stateNode));break;case 4:r=Pn,o=_o,Pn=n.stateNode.containerInfo,_o=!0,fs(e,t,n),Pn=r,_o=o;break;case 0:case 11:case 14:case 15:if(!zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&J0(n,t,s),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!zn&&(oc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){en(n,t,a)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,fs(e,t,n),zn=r):fs(e,t,n);break;default:fs(e,t,n)}}function yI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hz),t.forEach(function(r){var o=Jz.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gz(r/1960))-r,10e?16:e,_s===null)var r=!1;else{if(e=_s,_s=null,pm=0,ut&6)throw Error(be(331));var o=ut;for(ut|=4,$e=e.current;$e!==null;){var i=$e,s=i.child;if($e.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lsn()-kx?Fa(e,0):Ix|=n),br(e,t)}function b$(e,t){t===0&&(e.mode&1?(t=Rp,Rp<<=1,!(Rp&130023424)&&(Rp=4194304)):t=1);var n=or();e=Yi(e,t),e!==null&&(zf(e,t,n),br(e,n))}function Qz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b$(e,n)}function Jz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(be(314))}r!==null&&r.delete(t),b$(e,n)}var w$;w$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,Nz(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Nt&&t.flags&1048576&&PR(t,om,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xh(e,t),e=t.pendingProps;var o=Fc(t,Wn.current);wc(t,n),o=bx(null,t,r,e,o,n);var i=wx();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,yr(r)?(i=!0,nm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hx(t),o.updater=Rg,t.stateNode=o,o._reactInternals=t,G0(t,r,e,n),t=q0(null,t,r,!0,i,n)):(t.tag=0,Nt&&i&&ax(t),tr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=e3(r),e=Ro(r,e),o){case 0:t=K0(null,t,r,e,n);break e;case 1:t=pI(null,t,r,e,n);break e;case 11:t=dI(null,t,r,e,n);break e;case 14:t=fI(null,t,r,Ro(r.type,e),n);break e}throw Error(be(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),K0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),pI(e,t,r,o,n);case 3:e:{if(r$(t),e===null)throw Error(be(387));r=t.pendingProps,i=t.memoizedState,o=i.element,MR(e,t),am(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zc(Error(be(423)),t),t=hI(e,t,r,n,o);break e}else if(r!==o){o=zc(Error(be(424)),t),t=hI(e,t,r,n,o);break e}else for(Dr=Ns(t.stateNode.containerInfo.firstChild),Nr=t,Nt=!0,Ao=null,n=ER(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jc(),r===o){t=Xi(e,t,n);break e}tr(e,t,r,n)}t=t.child}return t;case 5:return RR(t),e===null&&H0(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,F0(r,o)?s=null:i!==null&&F0(r,i)&&(t.flags|=32),n$(e,t),tr(e,t,s,n),t.child;case 6:return e===null&&H0(t),null;case 13:return o$(e,t,n);case 4:return mx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nc(t,null,r,n):tr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),dI(e,t,r,o,n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:return tr(e,t,t.pendingProps.children,n),t.child;case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$t(im,r._currentValue),r._currentValue=s,i!==null)if(zo(i.value,s)){if(i.children===o.children&&!vr.current){t=Xi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Bi(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),V0(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(be(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),V0(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}tr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wc(t,n),o=vo(o),r=r(o),t.flags|=1,tr(e,t,r,n),t.child;case 14:return r=t.type,o=Ro(r,t.pendingProps),o=Ro(r.type,o),fI(e,t,r,o,n);case 15:return e$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),xh(e,t),t.tag=1,yr(r)?(e=!0,nm(t)):e=!1,wc(t,n),QR(t,r,o),G0(t,r,o,n),q0(null,t,r,!0,e,n);case 19:return i$(e,t,n);case 22:return t$(e,t,n)}throw Error(be(156,t.tag))};function C$(e,t){return qM(e,t)}function Zz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function co(e,t,n,r){return new Zz(e,t,n,r)}function Mx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e3(e){if(typeof e=="function")return Mx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===YC)return 11;if(e===XC)return 14}return 2}function Vs(e,t){var n=e.alternate;return n===null?(n=co(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ih(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Mx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yl:return ja(n.children,o,i,t);case qC:s=8,o|=8;break;case m0:return e=co(12,n,t,o|2),e.elementType=m0,e.lanes=i,e;case g0:return e=co(13,n,t,o),e.elementType=g0,e.lanes=i,e;case v0:return e=co(19,n,t,o),e.elementType=v0,e.lanes=i,e;case RM:return Ag(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OM:s=10;break e;case MM:s=9;break e;case YC:s=11;break e;case XC:s=14;break e;case ws:s=16,r=null;break e}throw Error(be(130,e==null?e:typeof e,""))}return t=co(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ja(e,t,n,r){return e=co(7,e,r,t),e.lanes=n,e}function Ag(e,t,n,r){return e=co(22,e,r,t),e.elementType=RM,e.lanes=n,e.stateNode={isHidden:!1},e}function Xy(e,t,n){return e=co(6,e,null,t),e.lanes=n,e}function Qy(e,t,n){return t=co(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ry(0),this.expirationTimes=Ry(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ry(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rx(e,t,n,r,o,i,s,a,l){return e=new t3(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=co(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hx(i),e}function n3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I$)}catch(e){console.error(e)}}I$(),IM.exports=Wr;var Ng=IM.exports;const Vp=hu(Ng);var k$,kI=Ng;k$=kI.createRoot,kI.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Yy(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function K0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Fz=typeof WeakMap=="function"?WeakMap:Map;function e$(e,t,n){n=Bi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pm||(pm=!0,rw=r),K0(e,t)},n}function t$(e,t,n){n=Bi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){K0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){K0(e,t),typeof r!="function"&&(Vs===null?Vs=new Set([this]):Vs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function uI(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fz;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Qz.bind(null,e,t,n),t.then(e,e))}function dI(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fI(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bi(-1,1),t.tag=2,Hs(n,t,1))),n.lanes|=1),e)}var jz=is.ReactCurrentOwner,gr=!1;function tr(e,t,n,r){t.child=e===null?MR(t,null,n,r):Nc(t,e.child,n,r)}function pI(e,t,n,r,o){n=n.render;var i=t.ref;return wc(t,o),r=Cx(e,t,n,r,i,o),n=xx(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qi(e,t,o)):(Nt&&n&&cx(t),t.flags|=1,tr(e,t,r,o),t.child)}function hI(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!$x(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,n$(e,t,i,r,o)):(e=Ih(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:rf,n(s,r)&&e.ref===t.ref)return Qi(e,t,o)}return t.flags|=1,e=Gs(i,r),e.ref=t.ref,e.return=t,t.child=e}function n$(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(rf(i,r)&&e.ref===t.ref)if(gr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(gr=!0);else return t.lanes=e.lanes,Qi(e,t,o)}return q0(e,t,n,r,o)}function r$(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$t(ic,Mr),Mr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$t(ic,Mr),Mr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$t(ic,Mr),Mr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$t(ic,Mr),Mr|=r;return tr(e,t,o,n),t.child}function o$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function q0(e,t,n,r,o){var i=yr(n)?Wa:Wn.current;return i=Fc(t,i),wc(t,o),n=Cx(e,t,n,r,i,o),r=xx(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qi(e,t,o)):(Nt&&r&&cx(t),t.flags|=1,tr(e,t,n,o),t.child)}function mI(e,t,n,r,o){if(yr(n)){var i=!0;rm(t)}else i=!1;if(wc(t,o),t.stateNode===null)xh(e,t),ZR(t,n,r),W0(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=vo(c):(c=yr(n)?Wa:Wn.current,c=Fc(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&cI(t,s,r,c),xs=!1;var f=t.memoizedState;s.state=f,lm(t,r,s,o),l=t.memoizedState,a!==r||f!==l||vr.current||xs?(typeof u=="function"&&(G0(t,n,u,r),l=t.memoizedState),(a=xs||lI(t,n,a,r,f,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,$R(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ro(t.type,a),s.props=c,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=vo(l):(l=yr(n)?Wa:Wn.current,l=Fc(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&cI(t,s,r,l),xs=!1,f=t.memoizedState,s.state=f,lm(t,r,s,o);var m=t.memoizedState;a!==d||f!==m||vr.current||xs?(typeof h=="function"&&(G0(t,n,h,r),m=t.memoizedState),(c=xs||lI(t,n,c,r,f,m,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Y0(e,t,n,r,i,o)}function Y0(e,t,n,r,o,i){o$(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&eI(t,n,!1),Qi(e,t,i);r=t.stateNode,jz.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nc(t,e.child,null,i),t.child=Nc(t,null,a,i)):tr(e,t,a,i),t.memoizedState=r.state,o&&eI(t,n,!0),t.child}function i$(e){var t=e.stateNode;t.pendingContext?ZP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ZP(e,t.context,!1),vx(e,t.containerInfo)}function gI(e,t,n,r,o){return jc(),dx(o),t.flags|=256,tr(e,t,n,r),t.child}var X0={dehydrated:null,treeContext:null,retryLane:0};function Q0(e){return{baseLanes:e,cachePool:null,transitions:null}}function s$(e,t,n){var r=t.pendingProps,o=zt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),$t(zt,o&1),e===null)return V0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Dg(s,r,0,null),e=ja(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Q0(n),t.memoizedState=X0,e):Ix(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Nz(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Gs(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Gs(a,i):(i=ja(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Q0(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=X0,r}return i=e.child,e=i.sibling,r=Gs(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ix(e,t){return t=Dg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Np(e,t,n,r){return r!==null&&dx(r),Nc(t,e.child,null,n),e=Ix(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nz(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Yy(Error(be(422))),Np(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Dg({mode:"visible",children:r.children},o,0,null),i=ja(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Nc(t,e.child,null,s),t.child.memoizedState=Q0(s),t.memoizedState=X0,i);if(!(t.mode&1))return Np(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(be(419)),r=Yy(i,r,void 0),Np(e,t,s,r)}if(a=(s&e.childLanes)!==0,gr||a){if(r=Sn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Xi(e,o),Fo(r,e,o,-1))}return Rx(),r=Yy(Error(be(421))),Np(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Jz.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Dr=zs(o.nextSibling),Nr=t,Nt=!0,Ao=null,e!==null&&(ro[oo++]=$i,ro[oo++]=_i,ro[oo++]=Ka,$i=e.id,_i=e.overflow,Ka=t),t=Ix(t,r.children),t.flags|=4096,t)}function vI(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),U0(e.return,t,n)}function Xy(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function a$(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(tr(e,t,r.children,n),r=zt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vI(e,n,t);else if(e.tag===19)vI(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($t(zt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&cm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xy(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xy(t,!0,n,null,i);break;case"together":Xy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(be(153));if(t.child!==null){for(e=t.child,n=Gs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bz(e,t,n){switch(t.tag){case 3:i$(t),jc();break;case 5:_R(t);break;case 1:yr(t.type)&&rm(t);break;case 4:vx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$t(sm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($t(zt,zt.current&1),t.flags|=128,null):n&t.child.childLanes?s$(e,t,n):($t(zt,zt.current&1),e=Qi(e,t,n),e!==null?e.sibling:null);$t(zt,zt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return a$(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$t(zt,zt.current),r)break;return null;case 22:case 23:return t.lanes=0,r$(e,t,n)}return Qi(e,t,n)}var l$,J0,c$,u$;l$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};J0=function(){};c$=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ra(oi.current);var i=null;switch(n){case"input":o=w0(e,o),r=w0(e,r),i=[];break;case"select":o=Kt({},o,{value:void 0}),r=Kt({},r,{value:void 0}),i=[];break;case"textarea":o=S0(e,o),r=S0(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tm)}I0(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Xd.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Xd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&_t("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};u$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xu(e,t){if(!Nt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zz(e,t,n){var r=t.pendingProps;switch(ux(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fn(t),null;case 1:return yr(t.type)&&nm(),Fn(t),null;case 3:return r=t.stateNode,Bc(),Dt(vr),Dt(Wn),bx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ao!==null&&(sw(Ao),Ao=null))),J0(e,t),Fn(t),null;case 5:yx(t);var o=Ra(cf.current);if(n=t.type,e!==null&&t.stateNode!=null)c$(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(be(166));return Fn(t),null}if(e=Ra(oi.current),Fp(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ei]=t,r[af]=i,e=(t.mode&1)!==0,n){case"dialog":_t("cancel",r),_t("close",r);break;case"iframe":case"object":case"embed":_t("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ei]=t,e[af]=r,l$(e,t,!1,!1),t.stateNode=e;e:{switch(s=k0(n,r),n){case"dialog":_t("cancel",e),_t("close",e),o=r;break;case"iframe":case"object":case"embed":_t("load",e),o=r;break;case"video":case"audio":for(o=0;oHc&&(t.flags|=128,r=!0,Xu(i,!1),t.lanes=4194304)}else{if(!r)if(e=cm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nt)return Fn(t),null}else 2*sn()-i.renderingStartTime>Hc&&n!==1073741824&&(t.flags|=128,r=!0,Xu(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=sn(),t.sibling=null,n=zt.current,$t(zt,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return Mx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mr&1073741824&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(be(156,t.tag))}function Hz(e,t){switch(ux(t),t.tag){case 1:return yr(t.type)&&nm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),Dt(vr),Dt(Wn),bx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yx(t),null;case 13:if(Dt(zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));jc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(zt),null;case 4:return Bc(),null;case 10:return hx(t.type._context),null;case 22:case 23:return Mx(),null;case 24:return null;default:return null}}var Bp=!1,zn=!1,Vz=typeof WeakSet=="function"?WeakSet:Set,$e=null;function oc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){en(e,t,r)}else n.current=null}function Z0(e,t,n){try{n()}catch(r){en(e,t,r)}}var yI=!1;function Uz(e,t){if(L0=Jh,e=mR(),lx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=s),f===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(F0={focusedElem:e,selectionRange:n},Jh=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,C=m.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ro(t.type,y),C);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(be(163))}}catch(x){en(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return m=yI,yI=!1,m}function Rd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Z0(t,n,i)}o=o.next}while(o!==r)}}function _g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ew(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function d$(e){var t=e.alternate;t!==null&&(e.alternate=null,d$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ei],delete t[af],delete t[B0],delete t[kz],delete t[Tz])),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 f$(e){return e.tag===5||e.tag===3||e.tag===4}function bI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f$(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 tw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tm));else if(r!==4&&(e=e.child,e!==null))for(tw(e,t,n),e=e.sibling;e!==null;)tw(e,t,n),e=e.sibling}function nw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(nw(e,t,n),e=e.sibling;e!==null;)nw(e,t,n),e=e.sibling}var In=null,_o=!1;function ps(e,t,n){for(n=n.child;n!==null;)p$(e,t,n),n=n.sibling}function p$(e,t,n){if(ri&&typeof ri.onCommitFiberUnmount=="function")try{ri.onCommitFiberUnmount(Ig,n)}catch{}switch(n.tag){case 5:zn||oc(n,t);case 6:var r=In,o=_o;In=null,ps(e,t,n),In=r,_o=o,In!==null&&(_o?(e=In,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):In.removeChild(n.stateNode));break;case 18:In!==null&&(_o?(e=In,n=n.stateNode,e.nodeType===8?Vy(e.parentNode,n):e.nodeType===1&&Vy(e,n),tf(e)):Vy(In,n.stateNode));break;case 4:r=In,o=_o,In=n.stateNode.containerInfo,_o=!0,ps(e,t,n),In=r,_o=o;break;case 0:case 11:case 14:case 15:if(!zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Z0(n,t,s),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!zn&&(oc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){en(n,t,a)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,ps(e,t,n),zn=r):ps(e,t,n);break;default:ps(e,t,n)}}function wI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vz),t.forEach(function(r){var o=Zz.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wz(r/1960))-r,10e?16:e,As===null)var r=!1;else{if(e=As,As=null,hm=0,ut&6)throw Error(be(331));var o=ut;for(ut|=4,$e=e.current;$e!==null;){var i=$e,s=i.child;if($e.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lsn()-Ex?Fa(e,0):Tx|=n),br(e,t)}function C$(e,t){t===0&&(e.mode&1?(t=Rp,Rp<<=1,!(Rp&130023424)&&(Rp=4194304)):t=1);var n=or();e=Xi(e,t),e!==null&&(zf(e,t,n),br(e,n))}function Jz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),C$(e,n)}function Zz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(be(314))}r!==null&&r.delete(t),C$(e,n)}var x$;x$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,Bz(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Nt&&t.flags&1048576&&kR(t,im,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xh(e,t),e=t.pendingProps;var o=Fc(t,Wn.current);wc(t,n),o=Cx(null,t,r,e,o,n);var i=xx();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,yr(r)?(i=!0,rm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gx(t),o.updater=$g,t.stateNode=o,o._reactInternals=t,W0(t,r,e,n),t=Y0(null,t,r,!0,i,n)):(t.tag=0,Nt&&i&&cx(t),tr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t3(r),e=Ro(r,e),o){case 0:t=q0(null,t,r,e,n);break e;case 1:t=mI(null,t,r,e,n);break e;case 11:t=pI(null,t,r,e,n);break e;case 14:t=hI(null,t,r,Ro(r.type,e),n);break e}throw Error(be(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),q0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),mI(e,t,r,o,n);case 3:e:{if(i$(t),e===null)throw Error(be(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$R(e,t),lm(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zc(Error(be(423)),t),t=gI(e,t,r,n,o);break e}else if(r!==o){o=zc(Error(be(424)),t),t=gI(e,t,r,n,o);break e}else for(Dr=zs(t.stateNode.containerInfo.firstChild),Nr=t,Nt=!0,Ao=null,n=MR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jc(),r===o){t=Qi(e,t,n);break e}tr(e,t,r,n)}t=t.child}return t;case 5:return _R(t),e===null&&V0(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,j0(r,o)?s=null:i!==null&&j0(r,i)&&(t.flags|=32),o$(e,t),tr(e,t,s,n),t.child;case 6:return e===null&&V0(t),null;case 13:return s$(e,t,n);case 4:return vx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nc(t,null,r,n):tr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),pI(e,t,r,o,n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:return tr(e,t,t.pendingProps.children,n),t.child;case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$t(sm,r._currentValue),r._currentValue=s,i!==null)if(zo(i.value,s)){if(i.children===o.children&&!vr.current){t=Qi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Bi(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),U0(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(be(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),U0(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}tr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wc(t,n),o=vo(o),r=r(o),t.flags|=1,tr(e,t,r,n),t.child;case 14:return r=t.type,o=Ro(r,t.pendingProps),o=Ro(r.type,o),hI(e,t,r,o,n);case 15:return n$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ro(r,o),xh(e,t),t.tag=1,yr(r)?(e=!0,rm(t)):e=!1,wc(t,n),ZR(t,r,o),W0(t,r,o,n),Y0(null,t,r,!0,e,n);case 19:return a$(e,t,n);case 22:return r$(e,t,n)}throw Error(be(156,t.tag))};function S$(e,t){return XM(e,t)}function e3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function co(e,t,n,r){return new e3(e,t,n,r)}function $x(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t3(e){if(typeof e=="function")return $x(e)?1:0;if(e!=null){if(e=e.$$typeof,e===QC)return 11;if(e===JC)return 14}return 2}function Gs(e,t){var n=e.alternate;return n===null?(n=co(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ih(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")$x(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yl:return ja(n.children,o,i,t);case XC:s=8,o|=8;break;case g0:return e=co(12,n,t,o|2),e.elementType=g0,e.lanes=i,e;case v0:return e=co(13,n,t,o),e.elementType=v0,e.lanes=i,e;case y0:return e=co(19,n,t,o),e.elementType=y0,e.lanes=i,e;case _M:return Dg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RM:s=10;break e;case $M:s=9;break e;case QC:s=11;break e;case JC:s=14;break e;case Cs:s=16,r=null;break e}throw Error(be(130,e==null?e:typeof e,""))}return t=co(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ja(e,t,n,r){return e=co(7,e,r,t),e.lanes=n,e}function Dg(e,t,n,r){return e=co(22,e,r,t),e.elementType=_M,e.lanes=n,e.stateNode={isHidden:!1},e}function Qy(e,t,n){return e=co(6,e,null,t),e.lanes=n,e}function Jy(e,t,n){return t=co(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$y(0),this.expirationTimes=$y(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$y(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _x(e,t,n,r,o,i,s,a,l){return e=new n3(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=co(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gx(i),e}function r3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T$)}catch(e){console.error(e)}}T$(),TM.exports=Wr;var Bg=TM.exports;const Vp=hu(Bg);var E$,EI=Bg;E$=EI.createRoot,EI.hydrateRoot;/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function T$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function l3(){return Math.random().toString(36).substr(2,8)}function EI(e,t){return{usr:e.state,key:e.key,idx:t}}function sw(e,t,n,r){return n===void 0&&(n=null),hf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yu(t):t,{state:n,key:t&&t.key||r||l3()})}function gm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function c3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=As.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(hf({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=As.Pop;let C=u(),w=C==null?null:C-c;c=C,l&&l({action:a,location:y.location,delta:w})}function f(C,w){a=As.Push;let b=sw(y.location,C,w);c=u()+1;let g=EI(b,c),x=y.createHref(b);try{s.pushState(g,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(x)}i&&l&&l({action:a,location:y.location,delta:1})}function h(C,w){a=As.Replace;let b=sw(y.location,C,w);c=u();let g=EI(b,c),x=y.createHref(b);s.replaceState(g,"",x),i&&l&&l({action:a,location:y.location,delta:0})}function m(C){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:gm(C);return b=b.replace(/ $/,"%20"),ln(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let y={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(TI,d),l=C,()=>{o.removeEventListener(TI,d),l=null}},createHref(C){return t(o,C)},createURL:m,encodeLocation(C){let w=m(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:h,go(C){return s.go(C)}};return y}var OI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(OI||(OI={}));function u3(e,t,n){return n===void 0&&(n="/"),d3(e,t,n,!1)}function d3(e,t,n,r){let o=typeof t=="string"?yu(t):t,i=Dx(o.pathname||"/",n);if(i==null)return null;let s=E$(e);f3(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ln(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Us([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ln(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),E$(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:b3(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of O$(i.path))o(i,s,l)}),t}function O$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=O$(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function f3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:w3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p3=/^:[\w-]+$/,h3=3,m3=2,g3=1,v3=10,y3=-2,MI=e=>e==="*";function b3(e,t){let n=e.split("/"),r=n.length;return n.some(MI)&&(r+=y3),t&&(r+=m3),n.filter(o=>!MI(o)).reduce((o,i)=>o+(p3.test(i)?h3:i===""?g3:v3),r)}function w3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function C3(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:f,isOptional:h}=u;if(f==="*"){let y=a[d]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return h&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function x3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),T$(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function S3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return T$(!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 Dx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function P3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yu(e):e;return{pathname:n?n.startsWith("/")?n:I3(n,t):t,search:E3(r),hash:O3(o)}}function I3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Jy(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function k3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lx(e,t){let n=k3(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Fx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yu(e):(o=hf({},e),ln(!o.pathname||!o.pathname.includes("?"),Jy("?","pathname","search",o)),ln(!o.pathname||!o.pathname.includes("#"),Jy("#","pathname","hash",o)),ln(!o.search||!o.search.includes("#"),Jy("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=P3(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Us=e=>e.join("/").replace(/\/\/+/g,"/"),T3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,O3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function M3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const M$=["post","put","patch","delete"];new Set(M$);const R3=["get",...M$];new Set(R3);/** + */function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function O$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c3(){return Math.random().toString(36).substr(2,8)}function MI(e,t){return{usr:e.state,key:e.key,idx:t}}function aw(e,t,n,r){return n===void 0&&(n=null),hf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yu(t):t,{state:n,key:t&&t.key||r||c3()})}function vm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function u3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Ds.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(hf({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Ds.Pop;let C=u(),w=C==null?null:C-c;c=C,l&&l({action:a,location:y.location,delta:w})}function f(C,w){a=Ds.Push;let b=aw(y.location,C,w);c=u()+1;let g=MI(b,c),x=y.createHref(b);try{s.pushState(g,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(x)}i&&l&&l({action:a,location:y.location,delta:1})}function h(C,w){a=Ds.Replace;let b=aw(y.location,C,w);c=u();let g=MI(b,c),x=y.createHref(b);s.replaceState(g,"",x),i&&l&&l({action:a,location:y.location,delta:0})}function m(C){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:vm(C);return b=b.replace(/ $/,"%20"),ln(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let y={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(OI,d),l=C,()=>{o.removeEventListener(OI,d),l=null}},createHref(C){return t(o,C)},createURL:m,encodeLocation(C){let w=m(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:h,go(C){return s.go(C)}};return y}var RI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(RI||(RI={}));function d3(e,t,n){return n===void 0&&(n="/"),f3(e,t,n,!1)}function f3(e,t,n,r){let o=typeof t=="string"?yu(t):t,i=Fx(o.pathname||"/",n);if(i==null)return null;let s=M$(e);p3(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ln(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ws([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ln(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),M$(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:w3(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of R$(i.path))o(i,s,l)}),t}function R$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=R$(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function p3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:C3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const h3=/^:[\w-]+$/,m3=3,g3=2,v3=1,y3=10,b3=-2,$I=e=>e==="*";function w3(e,t){let n=e.split("/"),r=n.length;return n.some($I)&&(r+=b3),t&&(r+=g3),n.filter(o=>!$I(o)).reduce((o,i)=>o+(h3.test(i)?m3:i===""?v3:y3),r)}function C3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function x3(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:f,isOptional:h}=u;if(f==="*"){let y=a[d]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return h&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function S3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),O$(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function P3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return O$(!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 Fx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function I3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yu(e):e;return{pathname:n?n.startsWith("/")?n:k3(n,t):t,search:O3(r),hash:M3(o)}}function k3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Zy(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function T3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jx(e,t){let n=T3(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Nx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yu(e):(o=hf({},e),ln(!o.pathname||!o.pathname.includes("?"),Zy("?","pathname","search",o)),ln(!o.pathname||!o.pathname.includes("#"),Zy("#","pathname","hash",o)),ln(!o.search||!o.search.includes("#"),Zy("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=I3(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ws=e=>e.join("/").replace(/\/\/+/g,"/"),E3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),O3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,M3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function R3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $$=["post","put","patch","delete"];new Set($$);const $3=["get",...$$];new Set($3);/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Fx(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Us([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function D3(){let{matches:e}=p.useContext(is),t=e[e.length-1];return t?t.params:{}}function _$(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(sa),{matches:o}=p.useContext(is),{pathname:i}=wu(),s=JSON.stringify(Lx(o,r.v7_relativeSplatPath));return p.useMemo(()=>Fx(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function L3(e,t){return F3(e,t)}function F3(e,t,n,r){bu()||ln(!1);let{navigator:o}=p.useContext(sa),{matches:i}=p.useContext(is),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=wu(),u;if(t){var d;let C=typeof t=="string"?yu(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||ln(!1),u=C}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let C=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=u3(e,{pathname:h}),y=H3(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Us([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Us([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&y?p.createElement(Bg.Provider,{value:{location:mf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:As.Pop}},y):y}function j3(){let e=W3(),t=M3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const N3=p.createElement(j3,null);class B3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(is.Provider,{value:this.props.routeContext},p.createElement(R$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function z3(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(jx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(is.Provider,{value:t},r)}function H3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||ln(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,y=null,C=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||N3,l&&(c<0&&f===0?(m=!0,C=null):c===f&&(m=!0,C=d.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,f+1)),b=()=>{let g;return h?g=y:m?g=C:d.route.Component?g=p.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,p.createElement(z3,{match:d,routeContext:{outlet:u,matches:w,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(B3,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var A$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A$||{}),vm=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}(vm||{});function V3(e){let t=p.useContext(jx);return t||ln(!1),t}function U3(e){let t=p.useContext($3);return t||ln(!1),t}function G3(e){let t=p.useContext(is);return t||ln(!1),t}function D$(e){let t=G3(),n=t.matches[t.matches.length-1];return n.route.id||ln(!1),n.route.id}function W3(){var e;let t=p.useContext(R$),n=U3(vm.UseRouteError),r=D$(vm.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function K3(){let{router:e}=V3(A$.UseNavigateStable),t=D$(vm.UseNavigateStable),n=p.useRef(!1);return $$(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,mf({fromRouteId:t},i)))},[e,t])}const $I={};function q3(e,t){$I[t]||($I[t]=!0,console.warn(t))}const _I=(e,t,n)=>q3(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Y3(e,t){e!=null&&e.v7_startTransition||_I("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&_I("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function X3(e){let{to:t,replace:n,state:r,relative:o}=e;bu()||ln(!1);let{future:i,static:s}=p.useContext(sa),{matches:a}=p.useContext(is),{pathname:l}=wu(),c=Gf(),u=Fx(t,Lx(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function gs(e){ln(!1)}function Q3(e){let{basename:t="/",children:n=null,location:r,navigationType:o=As.Pop,navigator:i,static:s=!1,future:a}=e;bu()&&ln(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:mf({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=yu(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,y=p.useMemo(()=>{let C=Dx(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:h,key:m},navigationType:o}},[l,u,d,f,h,m,o]);return y==null?null:p.createElement(sa.Provider,{value:c},p.createElement(Bg.Provider,{children:n,value:y}))}function J3(e){let{children:t,location:n}=e;return L3(aw(t),n)}new Promise(()=>{});function aw(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,aw(r.props.children,i));return}r.type!==gs&&ln(!1),!r.props.index||!r.props.children||ln(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=aw(r.props.children,i)),n.push(s)}),n}/** + */function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Nx(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ws([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function L3(){let{matches:e}=p.useContext(ss),t=e[e.length-1];return t?t.params:{}}function D$(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(aa),{matches:o}=p.useContext(ss),{pathname:i}=wu(),s=JSON.stringify(jx(o,r.v7_relativeSplatPath));return p.useMemo(()=>Nx(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function F3(e,t){return j3(e,t)}function j3(e,t,n,r){bu()||ln(!1);let{navigator:o}=p.useContext(aa),{matches:i}=p.useContext(ss),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=wu(),u;if(t){var d;let C=typeof t=="string"?yu(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||ln(!1),u=C}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let C=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(C.length).join("/")}let m=d3(e,{pathname:h}),y=V3(m&&m.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Ws([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Ws([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&y?p.createElement(zg.Provider,{value:{location:mf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ds.Pop}},y):y}function N3(){let e=K3(),t=R3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const B3=p.createElement(N3,null);class z3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(ss.Provider,{value:this.props.routeContext},p.createElement(_$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H3(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Bx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(ss.Provider,{value:t},r)}function V3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||ln(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,y=null,C=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||B3,l&&(c<0&&f===0?(m=!0,C=null):c===f&&(m=!0,C=d.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,f+1)),b=()=>{let g;return h?g=y:m?g=C:d.route.Component?g=p.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,p.createElement(H3,{match:d,routeContext:{outlet:u,matches:w,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(z3,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var L$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L$||{}),ym=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}(ym||{});function U3(e){let t=p.useContext(Bx);return t||ln(!1),t}function G3(e){let t=p.useContext(_3);return t||ln(!1),t}function W3(e){let t=p.useContext(ss);return t||ln(!1),t}function F$(e){let t=W3(),n=t.matches[t.matches.length-1];return n.route.id||ln(!1),n.route.id}function K3(){var e;let t=p.useContext(_$),n=G3(ym.UseRouteError),r=F$(ym.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function q3(){let{router:e}=U3(L$.UseNavigateStable),t=F$(ym.UseNavigateStable),n=p.useRef(!1);return A$(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,mf({fromRouteId:t},i)))},[e,t])}const AI={};function Y3(e,t){AI[t]||(AI[t]=!0,console.warn(t))}const DI=(e,t,n)=>Y3(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function X3(e,t){e!=null&&e.v7_startTransition||DI("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&DI("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Q3(e){let{to:t,replace:n,state:r,relative:o}=e;bu()||ln(!1);let{future:i,static:s}=p.useContext(aa),{matches:a}=p.useContext(ss),{pathname:l}=wu(),c=Gf(),u=Nx(t,jx(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function vs(e){ln(!1)}function J3(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ds.Pop,navigator:i,static:s=!1,future:a}=e;bu()&&ln(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:mf({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=yu(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,y=p.useMemo(()=>{let C=Fx(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:h,key:m},navigationType:o}},[l,u,d,f,h,m,o]);return y==null?null:p.createElement(aa.Provider,{value:c},p.createElement(zg.Provider,{children:n,value:y}))}function Z3(e){let{children:t,location:n}=e;return F3(lw(t),n)}new Promise(()=>{});function lw(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,lw(r.props.children,i));return}r.type!==vs&&ln(!1),!r.props.index||!r.props.children||ln(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=lw(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -64,28 +64,28 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function e4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function t4(e,t){return e.button===0&&(!t||t==="_self")&&!e4(e)}const n4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],r4="6";try{window.__reactRouterVersion=r4}catch{}const o4="startTransition",AI=Yd[o4];function i4(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=a3({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=p.useCallback(d=>{c&&AI?AI(()=>l(d)):l(d)},[l,c]);return p.useLayoutEffect(()=>s.listen(u),[s,u]),p.useEffect(()=>Y3(r),[r]),p.createElement(Q3,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const s4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",a4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qo=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=Z3(t,n4),{basename:h}=p.useContext(sa),m,y=!1;if(typeof c=="string"&&a4.test(c)&&(m=c,s4))try{let g=new URL(window.location.href),x=c.startsWith("//")?new URL(g.protocol+c):new URL(c),P=Dx(x.pathname,h);x.origin===g.origin&&P!=null?c=P+x.search+x.hash:y=!0}catch{}let C=_3(c,{relative:o}),w=l4(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function b(g){r&&r(g),g.defaultPrevented||w(g)}return p.createElement("a",lw({},f,{href:m||C,onClick:y||i?r:b,ref:n,target:l}))});var DI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DI||(DI={}));var LI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(LI||(LI={}));function l4(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Gf(),c=wu(),u=_$(e,{relative:s});return p.useCallback(d=>{if(t4(d,n)){d.preventDefault();let f=r!==void 0?r:gm(c)===gm(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}var L$={exports:{}},c4="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u4=c4,d4=u4;function F$(){}function j$(){}j$.resetWarningCache=F$;var f4=function(){function e(r,o,i,s,a,l){if(l!==d4){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:j$,resetWarningCache:F$};return n.PropTypes=n,n};L$.exports=f4();var p4=L$.exports;const q=hu(p4);function N$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tn.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function re(e){if(typeof e!="string")throw new Error(Qi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ti(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function B$(e){if(p.isValidElement(e)||!ti(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=B$(e[n])}),t}function Un(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ti(e)&&ti(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?r[o]=t[o]:ti(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ti(e[o])?r[o]=Un(e[o],t[o],n):n.clone?r[o]=ti(t[o])?B$(t[o]):t[o]:r[o]=t[o]}),r}function Ad(e,t){return t?Un(e,t,{clone:!1}):e}function h4(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function m4(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function g4(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function v4(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const zg={xs:0,sm:600,md:900,lg:1200,xl:1536},FI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zg[e]}px)`},y4={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:zg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ji(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||FI;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||FI;return Object.keys(t).reduce((s,a)=>{if(m4(i.keys,a)){const l=g4(r.containerQueries?r:y4,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||zg).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function b4(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function w4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Hg(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ym(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Hg(e,n)||r,t&&(o=t(o,r,e)),o}function cn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Hg(l,r)||{};return Ji(s,a,d=>{let f=ym(c,o,d);return d===f&&typeof d=="string"&&(f=ym(c,o,`${t}${d==="default"?"":re(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function C4(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const x4={m:"margin",p:"padding"},S4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},P4=C4(e=>{if(e.length>2)if(jI[e])e=jI[e];else return[e];const[t,n]=e.split(""),r=x4[t],o=S4[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Nx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Nx,...Bx];function Wf(e,t,n,r){const o=Hg(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i),a=o[s];return i>=0?a:typeof a=="number"?-a:`-${a}`}:typeof o=="function"?o:()=>{}}function zx(e){return Wf(e,"spacing",8)}function Kf(e,t){return typeof t=="string"||t==null?t:e(t)}function I4(e,t){return n=>e.reduce((r,o)=>(r[o]=Kf(t,n),r),{})}function k4(e,t,n,r){if(!t.includes(n))return null;const o=P4(n),i=I4(o,r),s=e[n];return Ji(e,s,i)}function z$(e,t){const n=zx(e.theme);return Object.keys(e).map(r=>k4(e,t,r,n)).reduce(Ad,{})}function Yt(e){return z$(e,Nx)}Yt.propTypes={};Yt.filterProps=Nx;function Xt(e){return z$(e,Bx)}Xt.propTypes={};Xt.filterProps=Bx;function Vg(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ad(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function io(e){return typeof e!="number"?e:`${e}px solid`}function xo(e,t){return cn({prop:e,themeKey:"borders",transform:t})}const T4=xo("border",io),E4=xo("borderTop",io),O4=xo("borderRight",io),M4=xo("borderBottom",io),R4=xo("borderLeft",io),$4=xo("borderColor"),_4=xo("borderTopColor"),A4=xo("borderRightColor"),D4=xo("borderBottomColor"),L4=xo("borderLeftColor"),F4=xo("outline",io),j4=xo("outlineColor"),Ug=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Kf(t,r)});return Ji(e,e.borderRadius,n)}return null};Ug.propTypes={};Ug.filterProps=["borderRadius"];Vg(T4,E4,O4,M4,R4,$4,_4,A4,D4,L4,Ug,F4,j4);const Gg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({gap:Kf(t,r)});return Ji(e,e.gap,n)}return null};Gg.propTypes={};Gg.filterProps=["gap"];const Wg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({columnGap:Kf(t,r)});return Ji(e,e.columnGap,n)}return null};Wg.propTypes={};Wg.filterProps=["columnGap"];const Kg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({rowGap:Kf(t,r)});return Ji(e,e.rowGap,n)}return null};Kg.propTypes={};Kg.filterProps=["rowGap"];const N4=cn({prop:"gridColumn"}),B4=cn({prop:"gridRow"}),z4=cn({prop:"gridAutoFlow"}),H4=cn({prop:"gridAutoColumns"}),V4=cn({prop:"gridAutoRows"}),U4=cn({prop:"gridTemplateColumns"}),G4=cn({prop:"gridTemplateRows"}),W4=cn({prop:"gridTemplateAreas"}),K4=cn({prop:"gridArea"});Vg(Gg,Wg,Kg,N4,B4,z4,H4,V4,U4,G4,W4,K4);function xc(e,t){return t==="grey"?t:e}const q4=cn({prop:"color",themeKey:"palette",transform:xc}),Y4=cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xc}),X4=cn({prop:"backgroundColor",themeKey:"palette",transform:xc});Vg(q4,Y4,X4);function _r(e){return e<=1&&e!==0?`${e*100}%`:e}const Q4=cn({prop:"width",transform:_r}),Hx=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||zg[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:_r(n)}};return Ji(e,e.maxWidth,t)}return null};Hx.filterProps=["maxWidth"];const J4=cn({prop:"minWidth",transform:_r}),Z4=cn({prop:"height",transform:_r}),eH=cn({prop:"maxHeight",transform:_r}),tH=cn({prop:"minHeight",transform:_r});cn({prop:"size",cssProperty:"width",transform:_r});cn({prop:"size",cssProperty:"height",transform:_r});const nH=cn({prop:"boxSizing"});Vg(Q4,Hx,J4,Z4,eH,tH,nH);const qf={border:{themeKey:"borders",transform:io},borderTop:{themeKey:"borders",transform:io},borderRight:{themeKey:"borders",transform:io},borderBottom:{themeKey:"borders",transform:io},borderLeft:{themeKey:"borders",transform:io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:io},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ug},color:{themeKey:"palette",transform:xc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xc},backgroundColor:{themeKey:"palette",transform:xc},p:{style:Xt},pt:{style:Xt},pr:{style:Xt},pb:{style:Xt},pl:{style:Xt},px:{style:Xt},py:{style:Xt},padding:{style:Xt},paddingTop:{style:Xt},paddingRight:{style:Xt},paddingBottom:{style:Xt},paddingLeft:{style:Xt},paddingX:{style:Xt},paddingY:{style:Xt},paddingInline:{style:Xt},paddingInlineStart:{style:Xt},paddingInlineEnd:{style:Xt},paddingBlock:{style:Xt},paddingBlockStart:{style:Xt},paddingBlockEnd:{style:Xt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},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:Gg},rowGap:{style:Kg},columnGap:{style:Wg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_r},maxWidth:{style:Hx},minWidth:{transform:_r},height:{transform:_r},maxHeight:{transform:_r},minHeight:{transform:_r},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rH(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function oH(e,t){return typeof e=="function"?e(t):e}function iH(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Hg(o,c)||{};return d?d(s):Ji(s,r,m=>{let y=ym(f,u,m);return m===y&&typeof m=="string"&&(y=ym(f,u,`${n}${m==="default"?"":re(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??qf;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=b4(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const h=oH(l[f],o);if(h!=null)if(typeof h=="object")if(i[f])d=Ad(d,e(f,h,o,i));else{const m=Ji({theme:o},h,y=>({[f]:y}));rH(m,h)?d[f]=t({sx:h,theme:o}):d=Ad(d,m)}else d=Ad(d,e(f,h,o,i))}),h4(o,w4(u,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const Qa=iH();Qa.filterProps=["sx"];const sH=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??qf;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function H$(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=sH(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return ti(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Tn(Cu,--Sr):0,Vc--,fn===10&&(Vc=1,Yg--),fn}function Br(){return fn=Sr2||vf(fn)>3?"":" "}function SH(e,t){for(;--t&&Br()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return Yf(e,kh()+(t<6&&ii()==32&&Br()==32))}function uw(e){for(;Br();)switch(fn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&uw(fn);break;case 40:e===41&&uw(e);break;case 92:Br();break}return Sr}function PH(e,t){for(;Br()&&e+fn!==57;)if(e+fn===84&&ii()===47)break;return"/*"+Yf(t,Sr-1)+"*"+qg(e===47?e:Br())}function IH(e){for(;!vf(ii());)Br();return Yf(e,Sr)}function kH(e){return Y$(Eh("",null,null,null,[""],e=q$(e),0,[0],e))}function Eh(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,m=0,y=1,C=1,w=1,b=0,g="",x=o,P=i,I=r,T=g;C;)switch(m=b,b=Br()){case 40:if(m!=108&&Tn(T,d-1)==58){cw(T+=ft(Th(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=Th(b);break;case 9:case 10:case 13:case 32:T+=xH(m);break;case 92:T+=SH(kh()-1,7);continue;case 47:switch(ii()){case 42:case 47:Up(TH(PH(Br(),kh()),t,n),l);break;default:T+="/"}break;case 123*y:a[c++]=Jo(T)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+u:w==-1&&(T=ft(T,/\f/g,"")),h>0&&Jo(T)-d&&Up(h>32?BI(T+";",r,n,d-1):BI(ft(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Up(I=NI(T,t,n,c,u,o,a,g,x=[],P=[],d),i),b===123)if(u===0)Eh(T,t,I,I,x,i,d,a,P);else switch(f===99&&Tn(T,3)===110?100:f){case 100:case 108:case 109:case 115:Eh(e,I,I,r&&Up(NI(e,I,I,0,0,o,a,g,o,x=[],d),P),o,P,d,a,r?x:P);break;default:Eh(T,I,I,I,[""],P,0,a,P)}}c=u=h=0,y=w=1,g=T="",d=s;break;case 58:d=1+Jo(T),h=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&CH()==125)continue}switch(T+=qg(b),b*y){case 38:w=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(Jo(T)-1)*w,w=1;break;case 64:ii()===45&&(T+=Th(Br())),f=ii(),u=d=Jo(g=T+=IH(kh())),b++;break;case 45:m===45&&Jo(T)==2&&(y=0)}}return i}function NI(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Gx(f),m=0,y=0,C=0;m0?f[w]+" "+b:ft(b,/&\f/g,f[w])))&&(l[C++]=g);return Xg(e,t,n,o===0?Vx:a,l,c,u)}function TH(e,t,n){return Xg(e,t,n,U$,qg(wH()),gf(e,2,-2),0)}function BI(e,t,n,r){return Xg(e,t,n,Ux,gf(e,0,r),gf(e,r+1,-1),r)}function Sc(e,t){for(var n="",r=Gx(e),o=0;o6)switch(Tn(e,t+1)){case 109:if(Tn(e,t+4)!==45)break;case 102:return ft(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+bm+(Tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cw(e,"stretch")?X$(ft(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tn(e,t+1)!==115)break;case 6444:switch(Tn(e,Jo(e)-3-(~cw(e,"!important")&&10))){case 107:return ft(e,":",":"+dt)+e;case 101:return ft(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(Tn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+jn+"$2box$3")+e}break;case 5936:switch(Tn(e,t+11)){case 114:return dt+e+jn+ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+jn+ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+jn+ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+jn+e+e}return e}var LH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ux:t.return=X$(t.value,t.length);break;case G$:return Sc([Ju(t,{value:ft(t.value,"@","@"+dt)})],o);case Vx:if(t.length)return bH(t.props,function(i){switch(yH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sc([Ju(t,{props:[ft(i,/:(read-\w+)/,":"+bm+"$1")]})],o);case"::placeholder":return Sc([Ju(t,{props:[ft(i,/:(plac\w+)/,":"+dt+"input-$1")]}),Ju(t,{props:[ft(i,/:(plac\w+)/,":"+bm+"$1")]}),Ju(t,{props:[ft(i,/:(plac\w+)/,jn+"input-$1")]})],o)}return""})}},FH=[LH],jH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||FH,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),w=1;w=0)&&(n[o]=e[o]);return n}function t4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function n4(e,t){return e.button===0&&(!t||t==="_self")&&!t4(e)}const r4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],o4="6";try{window.__reactRouterVersion=o4}catch{}const i4="startTransition",LI=Yd[i4];function s4(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=l3({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=p.useCallback(d=>{c&&LI?LI(()=>l(d)):l(d)},[l,c]);return p.useLayoutEffect(()=>s.listen(u),[s,u]),p.useEffect(()=>X3(r),[r]),p.createElement(J3,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const a4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qo=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=e4(t,r4),{basename:h}=p.useContext(aa),m,y=!1;if(typeof c=="string"&&l4.test(c)&&(m=c,a4))try{let g=new URL(window.location.href),x=c.startsWith("//")?new URL(g.protocol+c):new URL(c),P=Fx(x.pathname,h);x.origin===g.origin&&P!=null?c=P+x.search+x.hash:y=!0}catch{}let C=A3(c,{relative:o}),w=c4(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function b(g){r&&r(g),g.defaultPrevented||w(g)}return p.createElement("a",cw({},f,{href:m||C,onClick:y||i?r:b,ref:n,target:l}))});var FI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FI||(FI={}));var jI;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jI||(jI={}));function c4(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Gf(),c=wu(),u=D$(e,{relative:s});return p.useCallback(d=>{if(n4(d,n)){d.preventDefault();let f=r!==void 0?r:vm(c)===vm(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}var j$={exports:{}},u4="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",d4=u4,f4=d4;function N$(){}function B$(){}B$.resetWarningCache=N$;var p4=function(){function e(r,o,i,s,a,l){if(l!==f4){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:B$,resetWarningCache:N$};return n.PropTypes=n,n};j$.exports=p4();var h4=j$.exports;const Y=hu(h4);function z$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tn.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function re(e){if(typeof e!="string")throw new Error(Ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ti(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function H$(e){if(p.isValidElement(e)||!ti(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=H$(e[n])}),t}function Un(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ti(e)&&ti(t)&&Object.keys(t).forEach(o=>{p.isValidElement(t[o])?r[o]=t[o]:ti(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ti(e[o])?r[o]=Un(e[o],t[o],n):n.clone?r[o]=ti(t[o])?H$(t[o]):t[o]:r[o]=t[o]}),r}function Ad(e,t){return t?Un(e,t,{clone:!1}):e}function m4(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function g4(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function v4(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function y4(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Hg={xs:0,sm:600,md:900,lg:1200,xl:1536},NI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hg[e]}px)`},b4={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Hg[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Zi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||NI;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||NI;return Object.keys(t).reduce((s,a)=>{if(g4(i.keys,a)){const l=v4(r.containerQueries?r:b4,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||Hg).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function w4(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function C4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Vg(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function bm(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vg(e,n)||r,t&&(o=t(o,r,e)),o}function cn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Vg(l,r)||{};return Zi(s,a,d=>{let f=bm(c,o,d);return d===f&&typeof d=="string"&&(f=bm(c,o,`${t}${d==="default"?"":re(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function x4(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const S4={m:"margin",p:"padding"},P4={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},I4=x4(e=>{if(e.length>2)if(BI[e])e=BI[e];else return[e];const[t,n]=e.split(""),r=S4[t],o=P4[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),zx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zx,...Hx];function Wf(e,t,n,r){const o=Vg(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i),a=o[s];return i>=0?a:typeof a=="number"?-a:`-${a}`}:typeof o=="function"?o:()=>{}}function Vx(e){return Wf(e,"spacing",8)}function Kf(e,t){return typeof t=="string"||t==null?t:e(t)}function k4(e,t){return n=>e.reduce((r,o)=>(r[o]=Kf(t,n),r),{})}function T4(e,t,n,r){if(!t.includes(n))return null;const o=I4(n),i=k4(o,r),s=e[n];return Zi(e,s,i)}function V$(e,t){const n=Vx(e.theme);return Object.keys(e).map(r=>T4(e,t,r,n)).reduce(Ad,{})}function Yt(e){return V$(e,zx)}Yt.propTypes={};Yt.filterProps=zx;function Xt(e){return V$(e,Hx)}Xt.propTypes={};Xt.filterProps=Hx;function Ug(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ad(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function io(e){return typeof e!="number"?e:`${e}px solid`}function xo(e,t){return cn({prop:e,themeKey:"borders",transform:t})}const E4=xo("border",io),O4=xo("borderTop",io),M4=xo("borderRight",io),R4=xo("borderBottom",io),$4=xo("borderLeft",io),_4=xo("borderColor"),A4=xo("borderTopColor"),D4=xo("borderRightColor"),L4=xo("borderBottomColor"),F4=xo("borderLeftColor"),j4=xo("outline",io),N4=xo("outlineColor"),Gg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Kf(t,r)});return Zi(e,e.borderRadius,n)}return null};Gg.propTypes={};Gg.filterProps=["borderRadius"];Ug(E4,O4,M4,R4,$4,_4,A4,D4,L4,F4,Gg,j4,N4);const Wg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({gap:Kf(t,r)});return Zi(e,e.gap,n)}return null};Wg.propTypes={};Wg.filterProps=["gap"];const Kg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({columnGap:Kf(t,r)});return Zi(e,e.columnGap,n)}return null};Kg.propTypes={};Kg.filterProps=["columnGap"];const qg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wf(e.theme,"spacing",8),n=r=>({rowGap:Kf(t,r)});return Zi(e,e.rowGap,n)}return null};qg.propTypes={};qg.filterProps=["rowGap"];const B4=cn({prop:"gridColumn"}),z4=cn({prop:"gridRow"}),H4=cn({prop:"gridAutoFlow"}),V4=cn({prop:"gridAutoColumns"}),U4=cn({prop:"gridAutoRows"}),G4=cn({prop:"gridTemplateColumns"}),W4=cn({prop:"gridTemplateRows"}),K4=cn({prop:"gridTemplateAreas"}),q4=cn({prop:"gridArea"});Ug(Wg,Kg,qg,B4,z4,H4,V4,U4,G4,W4,K4,q4);function xc(e,t){return t==="grey"?t:e}const Y4=cn({prop:"color",themeKey:"palette",transform:xc}),X4=cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xc}),Q4=cn({prop:"backgroundColor",themeKey:"palette",transform:xc});Ug(Y4,X4,Q4);function _r(e){return e<=1&&e!==0?`${e*100}%`:e}const J4=cn({prop:"width",transform:_r}),Ux=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||Hg[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:_r(n)}};return Zi(e,e.maxWidth,t)}return null};Ux.filterProps=["maxWidth"];const Z4=cn({prop:"minWidth",transform:_r}),eH=cn({prop:"height",transform:_r}),tH=cn({prop:"maxHeight",transform:_r}),nH=cn({prop:"minHeight",transform:_r});cn({prop:"size",cssProperty:"width",transform:_r});cn({prop:"size",cssProperty:"height",transform:_r});const rH=cn({prop:"boxSizing"});Ug(J4,Ux,Z4,eH,tH,nH,rH);const qf={border:{themeKey:"borders",transform:io},borderTop:{themeKey:"borders",transform:io},borderRight:{themeKey:"borders",transform:io},borderBottom:{themeKey:"borders",transform:io},borderLeft:{themeKey:"borders",transform:io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:io},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gg},color:{themeKey:"palette",transform:xc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xc},backgroundColor:{themeKey:"palette",transform:xc},p:{style:Xt},pt:{style:Xt},pr:{style:Xt},pb:{style:Xt},pl:{style:Xt},px:{style:Xt},py:{style:Xt},padding:{style:Xt},paddingTop:{style:Xt},paddingRight:{style:Xt},paddingBottom:{style:Xt},paddingLeft:{style:Xt},paddingX:{style:Xt},paddingY:{style:Xt},paddingInline:{style:Xt},paddingInlineStart:{style:Xt},paddingInlineEnd:{style:Xt},paddingBlock:{style:Xt},paddingBlockStart:{style:Xt},paddingBlockEnd:{style:Xt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},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:Wg},rowGap:{style:qg},columnGap:{style:Kg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_r},maxWidth:{style:Ux},minWidth:{transform:_r},height:{transform:_r},maxHeight:{transform:_r},minHeight:{transform:_r},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function oH(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function iH(e,t){return typeof e=="function"?e(t):e}function sH(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Vg(o,c)||{};return d?d(s):Zi(s,r,m=>{let y=bm(f,u,m);return m===y&&typeof m=="string"&&(y=bm(f,u,`${n}${m==="default"?"":re(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??qf;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=w4(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const h=iH(l[f],o);if(h!=null)if(typeof h=="object")if(i[f])d=Ad(d,e(f,h,o,i));else{const m=Zi({theme:o},h,y=>({[f]:y}));oH(m,h)?d[f]=t({sx:h,theme:o}):d=Ad(d,m)}else d=Ad(d,e(f,h,o,i))}),m4(o,C4(u,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const Qa=sH();Qa.filterProps=["sx"];const aH=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??qf;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function U$(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=aH(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return ti(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?En(Cu,--Sr):0,Vc--,fn===10&&(Vc=1,Xg--),fn}function Br(){return fn=Sr2||vf(fn)>3?"":" "}function PH(e,t){for(;--t&&Br()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return Yf(e,kh()+(t<6&&ii()==32&&Br()==32))}function dw(e){for(;Br();)switch(fn){case e:return Sr;case 34:case 39:e!==34&&e!==39&&dw(fn);break;case 40:e===41&&dw(e);break;case 92:Br();break}return Sr}function IH(e,t){for(;Br()&&e+fn!==57;)if(e+fn===84&&ii()===47)break;return"/*"+Yf(t,Sr-1)+"*"+Yg(e===47?e:Br())}function kH(e){for(;!vf(ii());)Br();return Yf(e,Sr)}function TH(e){return Q$(Eh("",null,null,null,[""],e=X$(e),0,[0],e))}function Eh(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,m=0,y=1,C=1,w=1,b=0,g="",x=o,P=i,I=r,T=g;C;)switch(m=b,b=Br()){case 40:if(m!=108&&En(T,d-1)==58){uw(T+=ft(Th(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=Th(b);break;case 9:case 10:case 13:case 32:T+=SH(m);break;case 92:T+=PH(kh()-1,7);continue;case 47:switch(ii()){case 42:case 47:Up(EH(IH(Br(),kh()),t,n),l);break;default:T+="/"}break;case 123*y:a[c++]=Jo(T)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+u:w==-1&&(T=ft(T,/\f/g,"")),h>0&&Jo(T)-d&&Up(h>32?HI(T+";",r,n,d-1):HI(ft(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Up(I=zI(T,t,n,c,u,o,a,g,x=[],P=[],d),i),b===123)if(u===0)Eh(T,t,I,I,x,i,d,a,P);else switch(f===99&&En(T,3)===110?100:f){case 100:case 108:case 109:case 115:Eh(e,I,I,r&&Up(zI(e,I,I,0,0,o,a,g,o,x=[],d),P),o,P,d,a,r?x:P);break;default:Eh(T,I,I,I,[""],P,0,a,P)}}c=u=h=0,y=w=1,g=T="",d=s;break;case 58:d=1+Jo(T),h=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&xH()==125)continue}switch(T+=Yg(b),b*y){case 38:w=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(Jo(T)-1)*w,w=1;break;case 64:ii()===45&&(T+=Th(Br())),f=ii(),u=d=Jo(g=T+=kH(kh())),b++;break;case 45:m===45&&Jo(T)==2&&(y=0)}}return i}function zI(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Kx(f),m=0,y=0,C=0;m0?f[w]+" "+b:ft(b,/&\f/g,f[w])))&&(l[C++]=g);return Qg(e,t,n,o===0?Gx:a,l,c,u)}function EH(e,t,n){return Qg(e,t,n,W$,Yg(CH()),gf(e,2,-2),0)}function HI(e,t,n,r){return Qg(e,t,n,Wx,gf(e,0,r),gf(e,r+1,-1),r)}function Sc(e,t){for(var n="",r=Kx(e),o=0;o6)switch(En(e,t+1)){case 109:if(En(e,t+4)!==45)break;case 102:return ft(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+wm+(En(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uw(e,"stretch")?J$(ft(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(En(e,t+1)!==115)break;case 6444:switch(En(e,Jo(e)-3-(~uw(e,"!important")&&10))){case 107:return ft(e,":",":"+dt)+e;case 101:return ft(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(En(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Nn+"$2box$3")+e}break;case 5936:switch(En(e,t+11)){case 114:return dt+e+Nn+ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Nn+ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Nn+ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Nn+e+e}return e}var FH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wx:t.return=J$(t.value,t.length);break;case K$:return Sc([Ju(t,{value:ft(t.value,"@","@"+dt)})],o);case Gx:if(t.length)return wH(t.props,function(i){switch(bH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sc([Ju(t,{props:[ft(i,/:(read-\w+)/,":"+wm+"$1")]})],o);case"::placeholder":return Sc([Ju(t,{props:[ft(i,/:(plac\w+)/,":"+dt+"input-$1")]}),Ju(t,{props:[ft(i,/:(plac\w+)/,":"+wm+"$1")]}),Ju(t,{props:[ft(i,/:(plac\w+)/,Nn+"input-$1")]})],o)}return""})}},jH=[FH],NH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||jH,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),w=1;w=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QH=!1,JH=/[A-Z]|^ms/g,ZH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,r_=function(t){return t.charCodeAt(1)===45},HI=function(t){return t!=null&&typeof t!="boolean"},Zy=V$(function(e){return r_(e)?e:e.replace(JH,"-$&").toLowerCase()}),VI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZH,function(r,o,i){return Zo={name:o,styles:i,next:Zo},o})}return XH[t]!==1&&!r_(t)&&typeof n=="number"&&n!==0?n+"px":n},eV="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function yf(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Zo={name:o.name,styles:o.styles,next:Zo},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Zo={name:s.name,styles:s.styles,next:Zo},s=s.next;var a=i.styles+";";return a}return tV(e,t,n)}case"function":{if(e!==void 0){var l=Zo,c=n(e);return Zo=l,yf(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function tV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?iV:sV},KI=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},aV=!1,lV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return t_(n,r,o),rV(function(){return n_(n,r,o)}),null},cV=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=KI(t,n,r),l=a||WI(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;ht(dV(o)?n:o):t;return v.jsx(oV,{styles:r})}/** + */var Pn=typeof Symbol=="function"&&Symbol.for,qx=Pn?Symbol.for("react.element"):60103,Yx=Pn?Symbol.for("react.portal"):60106,Jg=Pn?Symbol.for("react.fragment"):60107,Zg=Pn?Symbol.for("react.strict_mode"):60108,ev=Pn?Symbol.for("react.profiler"):60114,tv=Pn?Symbol.for("react.provider"):60109,nv=Pn?Symbol.for("react.context"):60110,Xx=Pn?Symbol.for("react.async_mode"):60111,rv=Pn?Symbol.for("react.concurrent_mode"):60111,ov=Pn?Symbol.for("react.forward_ref"):60112,iv=Pn?Symbol.for("react.suspense"):60113,BH=Pn?Symbol.for("react.suspense_list"):60120,sv=Pn?Symbol.for("react.memo"):60115,av=Pn?Symbol.for("react.lazy"):60116,zH=Pn?Symbol.for("react.block"):60121,HH=Pn?Symbol.for("react.fundamental"):60117,VH=Pn?Symbol.for("react.responder"):60118,UH=Pn?Symbol.for("react.scope"):60119;function qr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qx:switch(e=e.type,e){case Xx:case rv:case Jg:case ev:case Zg:case iv:return e;default:switch(e=e&&e.$$typeof,e){case nv:case ov:case av:case sv:case tv:return e;default:return t}}case Yx:return t}}}function e_(e){return qr(e)===rv}wt.AsyncMode=Xx;wt.ConcurrentMode=rv;wt.ContextConsumer=nv;wt.ContextProvider=tv;wt.Element=qx;wt.ForwardRef=ov;wt.Fragment=Jg;wt.Lazy=av;wt.Memo=sv;wt.Portal=Yx;wt.Profiler=ev;wt.StrictMode=Zg;wt.Suspense=iv;wt.isAsyncMode=function(e){return e_(e)||qr(e)===Xx};wt.isConcurrentMode=e_;wt.isContextConsumer=function(e){return qr(e)===nv};wt.isContextProvider=function(e){return qr(e)===tv};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qx};wt.isForwardRef=function(e){return qr(e)===ov};wt.isFragment=function(e){return qr(e)===Jg};wt.isLazy=function(e){return qr(e)===av};wt.isMemo=function(e){return qr(e)===sv};wt.isPortal=function(e){return qr(e)===Yx};wt.isProfiler=function(e){return qr(e)===ev};wt.isStrictMode=function(e){return qr(e)===Zg};wt.isSuspense=function(e){return qr(e)===iv};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jg||e===rv||e===ev||e===Zg||e===iv||e===BH||typeof e=="object"&&e!==null&&(e.$$typeof===av||e.$$typeof===sv||e.$$typeof===tv||e.$$typeof===nv||e.$$typeof===ov||e.$$typeof===HH||e.$$typeof===VH||e.$$typeof===UH||e.$$typeof===zH)};wt.typeOf=qr;Z$.exports=wt;var GH=Z$.exports,t_=GH,WH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n_={};n_[t_.ForwardRef]=WH;n_[t_.Memo]=KH;var qH=!0;function YH(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var r_=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||qH===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},o_=function(t,n,r){r_(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function XH(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var QH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},JH=!1,ZH=/[A-Z]|^ms/g,eV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,i_=function(t){return t.charCodeAt(1)===45},UI=function(t){return t!=null&&typeof t!="boolean"},eb=G$(function(e){return i_(e)?e:e.replace(ZH,"-$&").toLowerCase()}),GI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(eV,function(r,o,i){return Zo={name:o,styles:i,next:Zo},o})}return QH[t]!==1&&!i_(t)&&typeof n=="number"&&n!==0?n+"px":n},tV="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function yf(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Zo={name:o.name,styles:o.styles,next:Zo},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Zo={name:s.name,styles:s.styles,next:Zo},s=s.next;var a=i.styles+";";return a}return nV(e,t,n)}case"function":{if(e!==void 0){var l=Zo,c=n(e);return Zo=l,yf(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function nV(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?sV:aV},YI=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},lV=!1,cV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return r_(n,r,o),oV(function(){return o_(n,r,o)}),null},uV=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=YI(t,n,r),l=a||qI(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;ht(fV(o)?n:o):t;return v.jsx(iV,{styles:r})}/** * @mui/styled-engine v6.1.8 * * @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 a_(e,t){return wm(e,t)}function pV(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const qI=[];function YI(e){return qI[0]=e,av(qI)}const hV=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function mV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=hV(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,h){const m=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function vV(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function cv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=mV(n),l=l_(o);let c=Un({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...gV,...i}},s);return c=v4(c),c.applyStyles=vV,c=t.reduce((u,d)=>Un(u,d),c),c.unstable_sxConfig={...qf,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return Qa({sx:d,theme:this})},c}function yV(e){return Object.keys(e).length===0}function c_(e=null){const t=p.useContext(lv);return!t||yV(t)?e:t}const bV=cv();function uv(e=bV){return c_(e)}function wV({styles:e,themeId:t,defaultTheme:n={}}){const r=uv(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(fV,{styles:o})}const XI=e=>e,CV=()=>{let e=XI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=XI}}},u_=CV();function xV(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=a_("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Qa);return p.forwardRef(function(l,c){const u=uv(n),{className:d,component:f="div",...h}=H$(l);return v.jsx(i,{as:f,ref:c,className:ie(d,o?o(r):r),theme:t&&u[t]||u,...h})})}const SV={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 Ne(e,t,n="Mui"){const r=SV[t];return r?`${n}-${r}`:`${u_.generate(e)}-${t}`}function je(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ne(e,o,n)}),r}function d_(e){const{variants:t,...n}=e,r={variants:t,style:YI(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=YI(o.style))}),r}const PV=cv();function eb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function IV(e){return e?(t,n)=>n[e]:null}function kV(e,t,n){e.theme=EV(e.theme)?n:e.theme[t]||e.theme}function Oh(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Oh(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return f_(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function f_(e,t,n=[]){var o;let r;e:for(let i=0;i{pV(a,P=>P.filter(I=>I!==Qa));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=IV(MV(u)),...m}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let w=eb;u==="Root"||u==="root"?w=r:u?w=o:OV(a)&&(w=void 0);const b=a_(a,{shouldForwardProp:w,label:TV(),...m}),g=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(T){return Oh(T,P)};if(ti(P)){const I=d_(P);return I.variants?function(M){return Oh(M,I)}:I.style}return P},x=(...P)=>{const I=[],T=P.map(g),M=[];if(I.push(i),c&&h&&M.push(function(O){var $,L;const D=(L=($=O.theme.components)==null?void 0:$[c])==null?void 0:L.styleOverrides;if(!D)return null;const _={};for(const F in D)_[F]=Oh(O,D[F]);return h(O,_)}),c&&!y&&M.push(function(O){var _,$;const A=O.theme,D=($=(_=A==null?void 0:A.components)==null?void 0:_[c])==null?void 0:$.variants;return D?f_(O,D):null}),C||M.push(Qa),Array.isArray(T[0])){const R=T.shift(),O=new Array(I.length).fill(""),A=new Array(M.length).fill("");let D;D=[...O,...R,...A],D.raw=[...O,...R.raw,...A],I.unshift(D)}const k=[...I,...T,...M],S=b(...k);return a.muiName&&(S.muiName=a.muiName),S};return b.withConfig&&(x.withConfig=b.withConfig),x}}function TV(e,t){return void 0}function EV(e){for(const t in e)return!1;return!0}function OV(e){return typeof e=="string"&&e.charCodeAt(0)>96}function MV(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ct=p_();function Uc(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=Uc(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function h_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Uc(t.components[n].defaultProps,r)}function m_({props:e,name:t,defaultTheme:n,themeId:r}){let o=uv(n);return r&&(o=o[r]||o),h_({theme:o,name:t,props:e})}const pt=typeof window<"u"?p.useLayoutEffect:p.useEffect;function RV(e,t,n,r,o){const[i,s]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return pt(()=>{if(!n)return;const a=n(e),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),i}const $V={...Yd},g_=$V.useSyncExternalStore;function _V(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return g_(l,a,s)}function AV(e={}){const{themeId:t}=e;return function(r,o={}){let i=c_();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=h_({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(g_!==void 0?_V:RV)(d,a,l,c,u)}}function v_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Yx(e,t=0,n=1){return v_(e,t,n)}function DV(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(DV(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Qi(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Qi(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const LV=e=>{const t=pi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},vd=(e,t)=>{try{return LV(e)}catch{return e}};function Xf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function y_(e){e=pi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Xf({type:a,values:l})}function dw(e){e=pi(e);let t=e.type==="hsl"||e.type==="hsla"?pi(y_(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FV(e,t){const n=dw(e),r=dw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function We(e,t){return e=pi(e),t=Yx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xf(e)}function Gp(e,t,n){try{return We(e,t)}catch{return e}}function ul(e,t){if(e=pi(e),t=Yx(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xf(e)}function Tt(e,t,n){try{return ul(e,t)}catch{return e}}function dl(e,t){if(e=pi(e),t=Yx(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xf(e)}function Et(e,t,n){try{return dl(e,t)}catch{return e}}function jV(e,t=.15){return dw(e)>.5?ul(e,t):dl(e,t)}function Wp(e,t,n){try{return jV(e,t)}catch{return e}}function QI(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function b_(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function tb(e,t){var n,r,o;return p.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function hi(e){return Wt(e).defaultView||window}function Cm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let JI=0;function NV(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(JI+=1,n(`mui-${JI}`))},[t]),r}const BV={...Yd},ZI=BV.useId;function yt(e){if(ZI!==void 0){const t=ZI();return e??t}return NV(e)}function Gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),a=o?e:i,l=p.useCallback(c=>{o||s(c)},[]);return[a,l]}function nt(e){const t=p.useRef(e);return pt(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function ht(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cm(n,t)})},e)}const ek={};function Vo(e,t){const n=p.useRef(ek);return n.current===ek&&(n.current=e(t)),n}const zV=[];function dv(e){p.useEffect(e,zV)}class fv{constructor(){Vu(this,"currentId",null);Vu(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Vu(this,"disposeEffect",()=>this.clear)}static create(){return new fv}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function uo(){const e=Vo(fv.create).current;return dv(e.disposeEffect),e}function Gc(e){try{return e.matches(":focus-visible")}catch{}return!1}function w_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Xx=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},HV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function VV(e){return typeof e=="string"}function C_(e,t,n){return e===void 0||VV(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function x_(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function tk(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function S_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ie(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=x_({...o,...r}),a=tk(r),l=tk(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function P_(e,t,n){return typeof e=="function"?e(t,n):e}function bf(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:P_(n,r),{props:a,internalRef:l}=S_({...i,externalSlotProps:s}),c=ht(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return C_(t,{...a,ref:c},r)}function fl(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const UV=p.createContext(),Ir=()=>p.useContext(UV)??!1,GV=p.createContext(void 0);function WV(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Uc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Uc(o,r):r}function KV({props:e,name:t}){const n=p.useContext(GV);return WV({props:e,name:t,theme:{components:n}})}const nk={theme:void 0};function qV(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(nk.theme=o.theme,i=d_(e(nk)),t=i,n=o.theme),i}}function YV(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const rk=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},XV=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},QV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function nb(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return XV(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=QV(a,l);Object.assign(o,{[u]:d}),rk(i,a,`var(${u})`,c),rk(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function JV(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=nb(l,t);let f=d;const h={},{[a]:m,...y}=i;if(Object.entries(y||{}).forEach(([g,x])=>{const{vars:P,css:I,varsWithDefaults:T}=nb(x,t);f=Un(f,T),h[g]={css:I,vars:P}}),m){const{css:g,vars:x,varsWithDefaults:P}=nb(m,t);f=Un(f,P),h[a]={css:g,vars:x}}function C(g,x){var I,T;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),g){if(P==="media")return e.defaultColorScheme===g?":root":{[`@media (prefers-color-scheme: ${((T=(I=i[g])==null?void 0:I.palette)==null?void 0:T.mode)||g})`]:{":root":x}};if(P)return e.defaultColorScheme===g?`:root, ${P.replace("%s",String(g))}`:P.replace("%s",String(g))}return":root"}return{vars:f,generateThemeVars:()=>{let g={...c};return Object.entries(h).forEach(([,{vars:x}])=>{g=Un(g,x)}),g},generateStyleSheets:()=>{var M,k;const g=[],x=e.defaultColorScheme||"light";function P(S,R){Object.keys(R).length&&g.push(typeof S=="string"?{[S]:{...R}}:S)}P(n(void 0,{...u}),u);const{[x]:I,...T}=h;if(I){const{css:S}=I,R=(k=(M=i[x])==null?void 0:M.palette)==null?void 0:k.mode,O=!r&&R?{colorScheme:R,...S}:{...S};P(n(x,{...O}),O)}return Object.entries(T).forEach(([S,{css:R}])=>{var D,_;const O=(_=(D=i[S])==null?void 0:D.palette)==null?void 0:_.mode,A=!r&&O?{colorScheme:O,...R}:{...R};P(n(S,{...A}),A)}),g}}}function ZV(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const e6=cv(),t6=Ct("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),n6=e=>m_({props:e,name:"MuiContainer",defaultTheme:e6}),r6=(e,t)=>{const n=l=>Ne(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${re(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ve(a,n,r)};function o6(e={}){const{createStyledComponent:t=t6,useThemeProps:n=n6,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>({...a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}}));return p.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:m="lg",classes:y,...C}=c,w={...c,component:d,disableGutters:f,fixed:h,maxWidth:m},b=r6(w,r);return v.jsx(o,{as:d,ownerState:w,className:ie(b.root,u),ref:l,...C})})}const wf={black:"#000",white:"#fff"},i6={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},El={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ol={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Zu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ml={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Rl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},$l={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function I_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wf.white,default:wf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const s6=I_();function k_(){return{text:{primary:wf.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:wf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ok=k_();function ik(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=dl(e.main,o):t==="dark"&&(e.dark=ul(e.main,i)))}function a6(e="light"){return e==="dark"?{main:Ml[200],light:Ml[50],dark:Ml[400]}:{main:Ml[700],light:Ml[400],dark:Ml[800]}}function l6(e="light"){return e==="dark"?{main:El[200],light:El[50],dark:El[400]}:{main:El[500],light:El[300],dark:El[700]}}function c6(e="light"){return e==="dark"?{main:Ol[500],light:Ol[300],dark:Ol[700]}:{main:Ol[700],light:Ol[400],dark:Ol[800]}}function u6(e="light"){return e==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:Rl[700],light:Rl[500],dark:Rl[900]}}function d6(e="light"){return e==="dark"?{main:$l[400],light:$l[300],dark:$l[700]}:{main:$l[800],light:$l[500],dark:$l[900]}}function f6(e="light"){return e==="dark"?{main:Zu[400],light:Zu[300],dark:Zu[700]}:{main:"#ed6c02",light:Zu[500],dark:Zu[900]}}function Qx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||a6(t),s=e.secondary||l6(t),a=e.error||c6(t),l=e.info||u6(t),c=e.success||d6(t),u=e.warning||f6(t);function d(y){return FV(y,ok.text.primary)>=n?ok.text.primary:s6.text.primary}const f=({color:y,name:C,mainShade:w=500,lightShade:b=300,darkShade:g=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Qi(11,C?` (${C})`:"",w));if(typeof y.main!="string")throw new Error(Qi(12,C?` (${C})`:"",JSON.stringify(y.main)));return ik(y,"light",b,r),ik(y,"dark",g,r),y.contrastText||(y.contrastText=d(y.main)),y};let h;return t==="light"?h=I_():t==="dark"&&(h=k_()),Un({common:{...wf},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:i6,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...h},o)}function p6(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function h6(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function m6(e){return Math.round(e*1e5)/1e5}const sk={textTransform:"uppercase"},ak='"Roboto", "Helvetica", "Arial", sans-serif';function g6(e,t){const{fontFamily:n=ak,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,h=u||(C=>`${C/l*f}rem`),m=(C,w,b,g,x)=>({fontFamily:n,fontWeight:C,fontSize:h(w),lineHeight:b,...n===ak?{letterSpacing:`${m6(g/w)}em`}:{},...x,...c}),y={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,sk),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,sk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...y},d,{clone:!1})}const v6=.2,y6=.14,b6=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${v6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${y6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b6})`].join(",")}const w6=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],C6={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)"},x6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lk(e){return`${Math.round(e)}ms`}function S6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function P6(e){const t={...C6,...e.easing},n={...x6,...e.duration};return{getAutoHeightDuration:S6,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:lk(s)} ${a} ${typeof l=="string"?l:lk(l)}`).join(",")},...e,easing:t,duration:n}}const I6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function k6(e){return ti(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function T_(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function gV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=mV(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,h){const m=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function yV(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function uv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=gV(n),l=u_(o);let c=Un({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...vV,...i}},s);return c=y4(c),c.applyStyles=yV,c=t.reduce((u,d)=>Un(u,d),c),c.unstable_sxConfig={...qf,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return Qa({sx:d,theme:this})},c}function bV(e){return Object.keys(e).length===0}function d_(e=null){const t=p.useContext(cv);return!t||bV(t)?e:t}const wV=uv();function dv(e=wV){return d_(e)}function CV({styles:e,themeId:t,defaultTheme:n={}}){const r=dv(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(pV,{styles:o})}const JI=e=>e,xV=()=>{let e=JI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=JI}}},f_=xV();function SV(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=c_("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Qa);return p.forwardRef(function(l,c){const u=dv(n),{className:d,component:f="div",...h}=U$(l);return v.jsx(i,{as:f,ref:c,className:ie(d,o?o(r):r),theme:t&&u[t]||u,...h})})}const PV={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 Ne(e,t,n="Mui"){const r=PV[t];return r?`${n}-${r}`:`${f_.generate(e)}-${t}`}function Fe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ne(e,o,n)}),r}function p_(e){const{variants:t,...n}=e,r={variants:t,style:QI(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=QI(o.style))}),r}const IV=uv();function tb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kV(e){return e?(t,n)=>n[e]:null}function TV(e,t,n){e.theme=OV(e.theme)?n:e.theme[t]||e.theme}function Oh(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Oh(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return h_(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function h_(e,t,n=[]){var o;let r;e:for(let i=0;i{hV(a,P=>P.filter(I=>I!==Qa));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=kV(RV(u)),...m}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let w=tb;u==="Root"||u==="root"?w=r:u?w=o:MV(a)&&(w=void 0);const b=c_(a,{shouldForwardProp:w,label:EV(),...m}),g=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(T){return Oh(T,P)};if(ti(P)){const I=p_(P);return I.variants?function(M){return Oh(M,I)}:I.style}return P},x=(...P)=>{const I=[],T=P.map(g),M=[];if(I.push(i),c&&h&&M.push(function(O){var $,L;const D=(L=($=O.theme.components)==null?void 0:$[c])==null?void 0:L.styleOverrides;if(!D)return null;const _={};for(const F in D)_[F]=Oh(O,D[F]);return h(O,_)}),c&&!y&&M.push(function(O){var _,$;const A=O.theme,D=($=(_=A==null?void 0:A.components)==null?void 0:_[c])==null?void 0:$.variants;return D?h_(O,D):null}),C||M.push(Qa),Array.isArray(T[0])){const R=T.shift(),O=new Array(I.length).fill(""),A=new Array(M.length).fill("");let D;D=[...O,...R,...A],D.raw=[...O,...R.raw,...A],I.unshift(D)}const k=[...I,...T,...M],S=b(...k);return a.muiName&&(S.muiName=a.muiName),S};return b.withConfig&&(x.withConfig=b.withConfig),x}}function EV(e,t){return void 0}function OV(e){for(const t in e)return!1;return!0}function MV(e){return typeof e=="string"&&e.charCodeAt(0)>96}function RV(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ct=m_();function Uc(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=Uc(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function g_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Uc(t.components[n].defaultProps,r)}function v_({props:e,name:t,defaultTheme:n,themeId:r}){let o=dv(n);return r&&(o=o[r]||o),g_({theme:o,name:t,props:e})}const ht=typeof window<"u"?p.useLayoutEffect:p.useEffect;function $V(e,t,n,r,o){const[i,s]=p.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return ht(()=>{if(!n)return;const a=n(e),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),i}const _V={...Yd},y_=_V.useSyncExternalStore;function AV(e,t,n,r,o){const i=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=p.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[i,n,e]);return y_(l,a,s)}function DV(e={}){const{themeId:t}=e;return function(r,o={}){let i=d_();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=g_({name:"MuiUseMediaQuery",props:o,theme:i});let d=typeof r=="function"?r(i):r;return d=d.replace(/^@media( ?)/m,""),(y_!==void 0?AV:$V)(d,a,l,c,u)}}function b_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Qx(e,t=0,n=1){return b_(e,t,n)}function LV(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(LV(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ji(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ji(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const FV=e=>{const t=pi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},vd=(e,t)=>{try{return FV(e)}catch{return e}};function Xf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function w_(e){e=pi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Xf({type:a,values:l})}function fw(e){e=pi(e);let t=e.type==="hsl"||e.type==="hsla"?pi(w_(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jV(e,t){const n=fw(e),r=fw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function We(e,t){return e=pi(e),t=Qx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xf(e)}function Gp(e,t,n){try{return We(e,t)}catch{return e}}function ul(e,t){if(e=pi(e),t=Qx(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xf(e)}function Et(e,t,n){try{return ul(e,t)}catch{return e}}function dl(e,t){if(e=pi(e),t=Qx(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xf(e)}function Ot(e,t,n){try{return dl(e,t)}catch{return e}}function NV(e,t=.15){return fw(e)>.5?ul(e,t):dl(e,t)}function Wp(e,t,n){try{return NV(e,t)}catch{return e}}function ZI(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function C_(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function nb(e,t){var n,r,o;return p.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function hi(e){return Wt(e).defaultView||window}function xm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ek=0;function BV(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(ek+=1,n(`mui-${ek}`))},[t]),r}const zV={...Yd},tk=zV.useId;function yt(e){if(tk!==void 0){const t=tk();return e??t}return BV(e)}function Ks({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),a=o?e:i,l=p.useCallback(c=>{o||s(c)},[]);return[a,l]}function nt(e){const t=p.useRef(e);return ht(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function mt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xm(n,t)})},e)}const nk={};function Vo(e,t){const n=p.useRef(nk);return n.current===nk&&(n.current=e(t)),n}const HV=[];function fv(e){p.useEffect(e,HV)}class pv{constructor(){Vu(this,"currentId",null);Vu(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Vu(this,"disposeEffect",()=>this.clear)}static create(){return new pv}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function uo(){const e=Vo(pv.create).current;return fv(e.disposeEffect),e}function Gc(e){try{return e.matches(":focus-visible")}catch{}return!1}function x_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Jx=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},VV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function UV(e){return typeof e=="string"}function S_(e,t,n){return e===void 0||UV(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function P_(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function rk(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function I_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ie(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=P_({...o,...r}),a=rk(r),l=rk(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function k_(e,t,n){return typeof e=="function"?e(t,n):e}function bf(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:k_(n,r),{props:a,internalRef:l}=I_({...i,externalSlotProps:s}),c=mt(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return S_(t,{...a,ref:c},r)}function fl(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const GV=p.createContext(),Ir=()=>p.useContext(GV)??!1,WV=p.createContext(void 0);function KV(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Uc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Uc(o,r):r}function qV({props:e,name:t}){const n=p.useContext(WV);return KV({props:e,name:t,theme:{components:n}})}const ok={theme:void 0};function YV(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(ok.theme=o.theme,i=p_(e(ok)),t=i,n=o.theme),i}}function XV(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const ik=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},QV=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},JV=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function rb(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return QV(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=JV(a,l);Object.assign(o,{[u]:d}),ik(i,a,`var(${u})`,c),ik(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function ZV(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=rb(l,t);let f=d;const h={},{[a]:m,...y}=i;if(Object.entries(y||{}).forEach(([g,x])=>{const{vars:P,css:I,varsWithDefaults:T}=rb(x,t);f=Un(f,T),h[g]={css:I,vars:P}}),m){const{css:g,vars:x,varsWithDefaults:P}=rb(m,t);f=Un(f,P),h[a]={css:g,vars:x}}function C(g,x){var I,T;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),g){if(P==="media")return e.defaultColorScheme===g?":root":{[`@media (prefers-color-scheme: ${((T=(I=i[g])==null?void 0:I.palette)==null?void 0:T.mode)||g})`]:{":root":x}};if(P)return e.defaultColorScheme===g?`:root, ${P.replace("%s",String(g))}`:P.replace("%s",String(g))}return":root"}return{vars:f,generateThemeVars:()=>{let g={...c};return Object.entries(h).forEach(([,{vars:x}])=>{g=Un(g,x)}),g},generateStyleSheets:()=>{var M,k;const g=[],x=e.defaultColorScheme||"light";function P(S,R){Object.keys(R).length&&g.push(typeof S=="string"?{[S]:{...R}}:S)}P(n(void 0,{...u}),u);const{[x]:I,...T}=h;if(I){const{css:S}=I,R=(k=(M=i[x])==null?void 0:M.palette)==null?void 0:k.mode,O=!r&&R?{colorScheme:R,...S}:{...S};P(n(x,{...O}),O)}return Object.entries(T).forEach(([S,{css:R}])=>{var D,_;const O=(_=(D=i[S])==null?void 0:D.palette)==null?void 0:_.mode,A=!r&&O?{colorScheme:O,...R}:{...R};P(n(S,{...A}),A)}),g}}}function e6(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const t6=uv(),n6=Ct("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),r6=e=>v_({props:e,name:"MuiContainer",defaultTheme:t6}),o6=(e,t)=>{const n=l=>Ne(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${re(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ye(a,n,r)};function i6(e={}){const{createStyledComponent:t=n6,useThemeProps:n=r6,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>({...a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}}));return p.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:m="lg",classes:y,...C}=c,w={...c,component:d,disableGutters:f,fixed:h,maxWidth:m},b=o6(w,r);return v.jsx(o,{as:d,ownerState:w,className:ie(b.root,u),ref:l,...C})})}const wf={black:"#000",white:"#fff"},s6={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},El={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ol={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Zu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ml={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Rl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},$l={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function T_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wf.white,default:wf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const a6=T_();function E_(){return{text:{primary:wf.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:wf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const sk=E_();function ak(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=dl(e.main,o):t==="dark"&&(e.dark=ul(e.main,i)))}function l6(e="light"){return e==="dark"?{main:Ml[200],light:Ml[50],dark:Ml[400]}:{main:Ml[700],light:Ml[400],dark:Ml[800]}}function c6(e="light"){return e==="dark"?{main:El[200],light:El[50],dark:El[400]}:{main:El[500],light:El[300],dark:El[700]}}function u6(e="light"){return e==="dark"?{main:Ol[500],light:Ol[300],dark:Ol[700]}:{main:Ol[700],light:Ol[400],dark:Ol[800]}}function d6(e="light"){return e==="dark"?{main:Rl[400],light:Rl[300],dark:Rl[700]}:{main:Rl[700],light:Rl[500],dark:Rl[900]}}function f6(e="light"){return e==="dark"?{main:$l[400],light:$l[300],dark:$l[700]}:{main:$l[800],light:$l[500],dark:$l[900]}}function p6(e="light"){return e==="dark"?{main:Zu[400],light:Zu[300],dark:Zu[700]}:{main:"#ed6c02",light:Zu[500],dark:Zu[900]}}function Zx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||l6(t),s=e.secondary||c6(t),a=e.error||u6(t),l=e.info||d6(t),c=e.success||f6(t),u=e.warning||p6(t);function d(y){return jV(y,sk.text.primary)>=n?sk.text.primary:a6.text.primary}const f=({color:y,name:C,mainShade:w=500,lightShade:b=300,darkShade:g=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Ji(11,C?` (${C})`:"",w));if(typeof y.main!="string")throw new Error(Ji(12,C?` (${C})`:"",JSON.stringify(y.main)));return ak(y,"light",b,r),ak(y,"dark",g,r),y.contrastText||(y.contrastText=d(y.main)),y};let h;return t==="light"?h=T_():t==="dark"&&(h=E_()),Un({common:{...wf},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:s6,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...h},o)}function h6(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function m6(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function g6(e){return Math.round(e*1e5)/1e5}const lk={textTransform:"uppercase"},ck='"Roboto", "Helvetica", "Arial", sans-serif';function v6(e,t){const{fontFamily:n=ck,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,h=u||(C=>`${C/l*f}rem`),m=(C,w,b,g,x)=>({fontFamily:n,fontWeight:C,fontSize:h(w),lineHeight:b,...n===ck?{letterSpacing:`${g6(g/w)}em`}:{},...x,...c}),y={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,lk),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,lk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...y},d,{clone:!1})}const y6=.2,b6=.14,w6=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${b6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${w6})`].join(",")}const C6=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],x6={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)"},S6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uk(e){return`${Math.round(e)}ms`}function P6(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function I6(e){const t={...x6,...e.easing},n={...S6,...e.duration};return{getAutoHeightDuration:P6,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:uk(s)} ${a} ${typeof l=="string"?l:uk(l)}`).join(",")},...e,easing:t,duration:n}}const k6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function T6(e){return ti(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function O_(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iUn(h,m),f),f.unstable_sxConfig={...qf,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return Qa({sx:m,theme:this})},f.toRuntimeSource=T_,f}function pw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const T6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function E_(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function O_(e){return e==="dark"?T6:[]}function E6(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Qx(t);return{palette:i,opacity:{...E_(i.mode),...n},overlays:r||O_(i.mode),...o}}function O6(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const M6=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],R6=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return M6(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function $6(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function se(e,t,n){!e[t]&&n&&(e[t]=n)}function yd(e){return!e||!e.startsWith("hsl")?e:y_(e)}function Pi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=vd(yd(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function _6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ko=e=>{try{return e()}catch{}},A6=(e="mui")=>YV(e);function rb(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=E6({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=fw({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...E_(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||O_(o)},s}function D6(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=O6,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=A6(i),{[d]:h,light:m,dark:y,...C}=n,w={...C};let b=h;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Qi(21,d));const g=rb(w,b,c,d);m&&!w.light&&rb(w,m,void 0,"light"),y&&!w.dark&&rb(w,y,void 0,"dark");let x={defaultColorScheme:d,...g,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:w,font:{...p6(g.typography),...g.font},spacing:_6(c.spacing)};Object.keys(x.colorSchemes).forEach(k=>{const S=x.colorSchemes[k].palette,R=O=>{const A=O.split("-"),D=A[1],_=A[2];return f(O,S[D][_])};if(S.mode==="light"&&(se(S.common,"background","#fff"),se(S.common,"onBackground","#000")),S.mode==="dark"&&(se(S.common,"background","#000"),se(S.common,"onBackground","#fff")),$6(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){se(S.Alert,"errorColor",Tt(S.error.light,.6)),se(S.Alert,"infoColor",Tt(S.info.light,.6)),se(S.Alert,"successColor",Tt(S.success.light,.6)),se(S.Alert,"warningColor",Tt(S.warning.light,.6)),se(S.Alert,"errorFilledBg",R("palette-error-main")),se(S.Alert,"infoFilledBg",R("palette-info-main")),se(S.Alert,"successFilledBg",R("palette-success-main")),se(S.Alert,"warningFilledBg",R("palette-warning-main")),se(S.Alert,"errorFilledColor",Ko(()=>S.getContrastText(S.error.main))),se(S.Alert,"infoFilledColor",Ko(()=>S.getContrastText(S.info.main))),se(S.Alert,"successFilledColor",Ko(()=>S.getContrastText(S.success.main))),se(S.Alert,"warningFilledColor",Ko(()=>S.getContrastText(S.warning.main))),se(S.Alert,"errorStandardBg",Et(S.error.light,.9)),se(S.Alert,"infoStandardBg",Et(S.info.light,.9)),se(S.Alert,"successStandardBg",Et(S.success.light,.9)),se(S.Alert,"warningStandardBg",Et(S.warning.light,.9)),se(S.Alert,"errorIconColor",R("palette-error-main")),se(S.Alert,"infoIconColor",R("palette-info-main")),se(S.Alert,"successIconColor",R("palette-success-main")),se(S.Alert,"warningIconColor",R("palette-warning-main")),se(S.AppBar,"defaultBg",R("palette-grey-100")),se(S.Avatar,"defaultBg",R("palette-grey-400")),se(S.Button,"inheritContainedBg",R("palette-grey-300")),se(S.Button,"inheritContainedHoverBg",R("palette-grey-A100")),se(S.Chip,"defaultBorder",R("palette-grey-400")),se(S.Chip,"defaultAvatarColor",R("palette-grey-700")),se(S.Chip,"defaultIconColor",R("palette-grey-700")),se(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(S.LinearProgress,"primaryBg",Et(S.primary.main,.62)),se(S.LinearProgress,"secondaryBg",Et(S.secondary.main,.62)),se(S.LinearProgress,"errorBg",Et(S.error.main,.62)),se(S.LinearProgress,"infoBg",Et(S.info.main,.62)),se(S.LinearProgress,"successBg",Et(S.success.main,.62)),se(S.LinearProgress,"warningBg",Et(S.warning.main,.62)),se(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),se(S.Slider,"primaryTrack",Et(S.primary.main,.62)),se(S.Slider,"secondaryTrack",Et(S.secondary.main,.62)),se(S.Slider,"errorTrack",Et(S.error.main,.62)),se(S.Slider,"infoTrack",Et(S.info.main,.62)),se(S.Slider,"successTrack",Et(S.success.main,.62)),se(S.Slider,"warningTrack",Et(S.warning.main,.62));const O=Wp(S.background.default,.8);se(S.SnackbarContent,"bg",O),se(S.SnackbarContent,"color",Ko(()=>S.getContrastText(O))),se(S.SpeedDialAction,"fabHoverBg",Wp(S.background.paper,.15)),se(S.StepConnector,"border",R("palette-grey-400")),se(S.StepContent,"border",R("palette-grey-400")),se(S.Switch,"defaultColor",R("palette-common-white")),se(S.Switch,"defaultDisabledColor",R("palette-grey-100")),se(S.Switch,"primaryDisabledColor",Et(S.primary.main,.62)),se(S.Switch,"secondaryDisabledColor",Et(S.secondary.main,.62)),se(S.Switch,"errorDisabledColor",Et(S.error.main,.62)),se(S.Switch,"infoDisabledColor",Et(S.info.main,.62)),se(S.Switch,"successDisabledColor",Et(S.success.main,.62)),se(S.Switch,"warningDisabledColor",Et(S.warning.main,.62)),se(S.TableCell,"border",Et(Gp(S.divider,1),.88)),se(S.Tooltip,"bg",Gp(S.grey[700],.92))}if(S.mode==="dark"){se(S.Alert,"errorColor",Et(S.error.light,.6)),se(S.Alert,"infoColor",Et(S.info.light,.6)),se(S.Alert,"successColor",Et(S.success.light,.6)),se(S.Alert,"warningColor",Et(S.warning.light,.6)),se(S.Alert,"errorFilledBg",R("palette-error-dark")),se(S.Alert,"infoFilledBg",R("palette-info-dark")),se(S.Alert,"successFilledBg",R("palette-success-dark")),se(S.Alert,"warningFilledBg",R("palette-warning-dark")),se(S.Alert,"errorFilledColor",Ko(()=>S.getContrastText(S.error.dark))),se(S.Alert,"infoFilledColor",Ko(()=>S.getContrastText(S.info.dark))),se(S.Alert,"successFilledColor",Ko(()=>S.getContrastText(S.success.dark))),se(S.Alert,"warningFilledColor",Ko(()=>S.getContrastText(S.warning.dark))),se(S.Alert,"errorStandardBg",Tt(S.error.light,.9)),se(S.Alert,"infoStandardBg",Tt(S.info.light,.9)),se(S.Alert,"successStandardBg",Tt(S.success.light,.9)),se(S.Alert,"warningStandardBg",Tt(S.warning.light,.9)),se(S.Alert,"errorIconColor",R("palette-error-main")),se(S.Alert,"infoIconColor",R("palette-info-main")),se(S.Alert,"successIconColor",R("palette-success-main")),se(S.Alert,"warningIconColor",R("palette-warning-main")),se(S.AppBar,"defaultBg",R("palette-grey-900")),se(S.AppBar,"darkBg",R("palette-background-paper")),se(S.AppBar,"darkColor",R("palette-text-primary")),se(S.Avatar,"defaultBg",R("palette-grey-600")),se(S.Button,"inheritContainedBg",R("palette-grey-800")),se(S.Button,"inheritContainedHoverBg",R("palette-grey-700")),se(S.Chip,"defaultBorder",R("palette-grey-700")),se(S.Chip,"defaultAvatarColor",R("palette-grey-300")),se(S.Chip,"defaultIconColor",R("palette-grey-300")),se(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(S.LinearProgress,"primaryBg",Tt(S.primary.main,.5)),se(S.LinearProgress,"secondaryBg",Tt(S.secondary.main,.5)),se(S.LinearProgress,"errorBg",Tt(S.error.main,.5)),se(S.LinearProgress,"infoBg",Tt(S.info.main,.5)),se(S.LinearProgress,"successBg",Tt(S.success.main,.5)),se(S.LinearProgress,"warningBg",Tt(S.warning.main,.5)),se(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),se(S.Slider,"primaryTrack",Tt(S.primary.main,.5)),se(S.Slider,"secondaryTrack",Tt(S.secondary.main,.5)),se(S.Slider,"errorTrack",Tt(S.error.main,.5)),se(S.Slider,"infoTrack",Tt(S.info.main,.5)),se(S.Slider,"successTrack",Tt(S.success.main,.5)),se(S.Slider,"warningTrack",Tt(S.warning.main,.5));const O=Wp(S.background.default,.98);se(S.SnackbarContent,"bg",O),se(S.SnackbarContent,"color",Ko(()=>S.getContrastText(O))),se(S.SpeedDialAction,"fabHoverBg",Wp(S.background.paper,.15)),se(S.StepConnector,"border",R("palette-grey-600")),se(S.StepContent,"border",R("palette-grey-600")),se(S.Switch,"defaultColor",R("palette-grey-300")),se(S.Switch,"defaultDisabledColor",R("palette-grey-600")),se(S.Switch,"primaryDisabledColor",Tt(S.primary.main,.55)),se(S.Switch,"secondaryDisabledColor",Tt(S.secondary.main,.55)),se(S.Switch,"errorDisabledColor",Tt(S.error.main,.55)),se(S.Switch,"infoDisabledColor",Tt(S.info.main,.55)),se(S.Switch,"successDisabledColor",Tt(S.success.main,.55)),se(S.Switch,"warningDisabledColor",Tt(S.warning.main,.55)),se(S.TableCell,"border",Tt(Gp(S.divider,1),.68)),se(S.Tooltip,"bg",Gp(S.grey[700],.92))}Pi(S.background,"default"),Pi(S.background,"paper"),Pi(S.common,"background"),Pi(S.common,"onBackground"),Pi(S,"divider"),Object.keys(S).forEach(O=>{const A=S[O];A&&typeof A=="object"&&(A.main&&se(S[O],"mainChannel",vd(yd(A.main))),A.light&&se(S[O],"lightChannel",vd(yd(A.light))),A.dark&&se(S[O],"darkChannel",vd(yd(A.dark))),A.contrastText&&se(S[O],"contrastTextChannel",vd(yd(A.contrastText))),O==="text"&&(Pi(S[O],"primary"),Pi(S[O],"secondary")),O==="action"&&(A.active&&Pi(S[O],"active"),A.selected&&Pi(S[O],"selected")))})}),x=t.reduce((k,S)=>Un(k,S),x);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:R6(x)},{vars:I,generateThemeVars:T,generateStyleSheets:M}=JV(x,P);return x.vars=I,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([k,S])=>{x[k]=S}),x.generateThemeVars=T,x.generateStyleSheets=M,x.generateSpacing=function(){return l_(c.spacing,zx(this))},x.getColorSchemeSelector=ZV(a),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=s,x.unstable_sxConfig={...qf,...c==null?void 0:c.unstable_sxConfig},x.unstable_sx=function(S){return Qa({sx:S,theme:this})},x.toRuntimeSource=T_,x}function ck(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Qx({...n===!0?{}:n.palette,mode:t})})}function M_(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return fw(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=fw({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},ck(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},ck(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),D6({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const pv=M_(),xu="$$material";function Su(){const e=uv(pv);return e[xu]||e}function L6(e){return v.jsx(wV,{...e,defaultTheme:pv,themeId:xu})}function Jx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lr=e=>Jx(e)&&e!=="classes",ne=p_({themeId:xu,defaultTheme:pv,rootShouldForwardProp:lr});function F6(e){return function(n){return v.jsx(L6,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function j6(){return H$}const _e=qV;function He(e){return KV(e)}function N6(e){return typeof e.main=="string"}function B6(e,t=[]){if(!N6(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ut(e=[]){return([,t])=>t&&B6(t,e)}function z6(e){return Ne("MuiPaper",e)}je("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 H6=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(i,z6,o)},V6=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(_e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Pr=p.forwardRef(function(t,n){var h;const r=He({props:t,name:"MuiPaper"}),o=Su(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:s,elevation:a,square:l,variant:c},f=H6(d);return v.jsx(V6,{as:s,ownerState:d,className:ie(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(h=o.vars.overlays)==null?void 0:h[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${We("#fff",pw(a))}, ${We("#fff",pw(a))})`}},...u.style}})});function U6(e){return Ne("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const G6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${re(t)}`,`position${re(n)}`]};return ve(o,U6,r)},uk=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,W6=ne(Pr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${re(n.position)}`],t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?uk(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?uk(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),K6=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:i,position:a,enableColorOnDark:s},u=G6(c);return v.jsx(W6,{square:!0,component:"header",ownerState:c,elevation:4,className:ie(u.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function q6(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Y6(e){return parseFloat(e)}function X6({props:e,name:t}){return m_({props:e,name:t,defaultTheme:pv,themeId:xu})}const Q6=je("MuiBox",["root"]),J6=M_(),Qe=xV({themeId:xu,defaultTheme:J6,defaultClassName:Q6.root,generateClassName:u_.generate});function Z6(e){return Ne("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const eU=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ve({root:["root",!n&&"gutters",r]},Z6,t)},tU=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(_e(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),R_=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:i,disableGutters:s,variant:a},u=eU(c);return v.jsx(tU,{as:i,className:ie(u.root,o),ref:n,ownerState:c,...l})});class xm{constructor(){Vu(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xm}static use(){const t=Vo(xm.create).current,[n,r]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=r,p.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=rU(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function nU(){return xm.use()}function rU(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function xe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hw(e,t)}function $_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hw(e,t)}const dk={disabled:!1},Sm=lo.createContext(null);var oU=function(t){return t.scrollTop},bd="unmounted",Ca="exited",xa="entering",Vl="entered",mw="exiting",wi=function(e){$_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Ca,i.appearStatus=xa):l=Vl:r.unmountOnExit||r.mountOnEnter?l=bd:l=Ca,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===bd?{status:Ca}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==xa&&s!==Vl&&(i=xa):(s===xa||s===Vl)&&(i=mw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===xa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Vp.findDOMNode(this);s&&oU(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ca&&this.setState({status:bd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Vp.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||dk.disabled){this.safeSetState({status:Vl},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:xa},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Vl},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Vp.findDOMNode(this);if(!i||dk.disabled){this.safeSetState({status:Ca},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:mw},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ca},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Vp.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===bd)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=xe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lo.createElement(Sm.Provider,{value:null},typeof s=="function"?s(o,a):lo.cloneElement(lo.Children.only(s),a))},t}(lo.Component);wi.contextType=Sm;wi.propTypes={};function _l(){}wi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_l,onEntering:_l,onEntered:_l,onExit:_l,onExiting:_l,onExited:_l};wi.UNMOUNTED=bd;wi.EXITED=Ca;wi.ENTERING=xa;wi.ENTERED=Vl;wi.EXITING=mw;function iU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zx(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function sU(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s{if(!a&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),v.jsx("span",{className:f,style:h,children:v.jsx("span",{className:m})})}const no=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gw=550,fU=80,pU=bi` +export default theme;`}function pw(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;if(e.vars)throw new Error(Ji(20));const u=Zx(i),d=uv(e);let f=Un(d,{mixins:m6(d.breakpoints,r),palette:u,shadows:C6.slice(),typography:v6(u,a),transitions:I6(s),zIndex:{...k6}});return f=Un(f,c),f=t.reduce((h,m)=>Un(h,m),f),f.unstable_sxConfig={...qf,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(m){return Qa({sx:m,theme:this})},f.toRuntimeSource=O_,f}function hw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const E6=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=hw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function M_(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function R_(e){return e==="dark"?E6:[]}function O6(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Zx(t);return{palette:i,opacity:{...M_(i.mode),...n},overlays:r||R_(i.mode),...o}}function M6(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const R6=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$6=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return R6(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function _6(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function se(e,t,n){!e[t]&&n&&(e[t]=n)}function yd(e){return!e||!e.startsWith("hsl")?e:w_(e)}function Pi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=vd(yd(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function A6(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ko=e=>{try{return e()}catch{}},D6=(e="mui")=>XV(e);function ob(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=O6({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=pw({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...M_(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||R_(o)},s}function L6(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=M6,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=D6(i),{[d]:h,light:m,dark:y,...C}=n,w={...C};let b=h;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ji(21,d));const g=ob(w,b,c,d);m&&!w.light&&ob(w,m,void 0,"light"),y&&!w.dark&&ob(w,y,void 0,"dark");let x={defaultColorScheme:d,...g,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:w,font:{...h6(g.typography),...g.font},spacing:A6(c.spacing)};Object.keys(x.colorSchemes).forEach(k=>{const S=x.colorSchemes[k].palette,R=O=>{const A=O.split("-"),D=A[1],_=A[2];return f(O,S[D][_])};if(S.mode==="light"&&(se(S.common,"background","#fff"),se(S.common,"onBackground","#000")),S.mode==="dark"&&(se(S.common,"background","#000"),se(S.common,"onBackground","#fff")),_6(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){se(S.Alert,"errorColor",Et(S.error.light,.6)),se(S.Alert,"infoColor",Et(S.info.light,.6)),se(S.Alert,"successColor",Et(S.success.light,.6)),se(S.Alert,"warningColor",Et(S.warning.light,.6)),se(S.Alert,"errorFilledBg",R("palette-error-main")),se(S.Alert,"infoFilledBg",R("palette-info-main")),se(S.Alert,"successFilledBg",R("palette-success-main")),se(S.Alert,"warningFilledBg",R("palette-warning-main")),se(S.Alert,"errorFilledColor",Ko(()=>S.getContrastText(S.error.main))),se(S.Alert,"infoFilledColor",Ko(()=>S.getContrastText(S.info.main))),se(S.Alert,"successFilledColor",Ko(()=>S.getContrastText(S.success.main))),se(S.Alert,"warningFilledColor",Ko(()=>S.getContrastText(S.warning.main))),se(S.Alert,"errorStandardBg",Ot(S.error.light,.9)),se(S.Alert,"infoStandardBg",Ot(S.info.light,.9)),se(S.Alert,"successStandardBg",Ot(S.success.light,.9)),se(S.Alert,"warningStandardBg",Ot(S.warning.light,.9)),se(S.Alert,"errorIconColor",R("palette-error-main")),se(S.Alert,"infoIconColor",R("palette-info-main")),se(S.Alert,"successIconColor",R("palette-success-main")),se(S.Alert,"warningIconColor",R("palette-warning-main")),se(S.AppBar,"defaultBg",R("palette-grey-100")),se(S.Avatar,"defaultBg",R("palette-grey-400")),se(S.Button,"inheritContainedBg",R("palette-grey-300")),se(S.Button,"inheritContainedHoverBg",R("palette-grey-A100")),se(S.Chip,"defaultBorder",R("palette-grey-400")),se(S.Chip,"defaultAvatarColor",R("palette-grey-700")),se(S.Chip,"defaultIconColor",R("palette-grey-700")),se(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(S.LinearProgress,"primaryBg",Ot(S.primary.main,.62)),se(S.LinearProgress,"secondaryBg",Ot(S.secondary.main,.62)),se(S.LinearProgress,"errorBg",Ot(S.error.main,.62)),se(S.LinearProgress,"infoBg",Ot(S.info.main,.62)),se(S.LinearProgress,"successBg",Ot(S.success.main,.62)),se(S.LinearProgress,"warningBg",Ot(S.warning.main,.62)),se(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),se(S.Slider,"primaryTrack",Ot(S.primary.main,.62)),se(S.Slider,"secondaryTrack",Ot(S.secondary.main,.62)),se(S.Slider,"errorTrack",Ot(S.error.main,.62)),se(S.Slider,"infoTrack",Ot(S.info.main,.62)),se(S.Slider,"successTrack",Ot(S.success.main,.62)),se(S.Slider,"warningTrack",Ot(S.warning.main,.62));const O=Wp(S.background.default,.8);se(S.SnackbarContent,"bg",O),se(S.SnackbarContent,"color",Ko(()=>S.getContrastText(O))),se(S.SpeedDialAction,"fabHoverBg",Wp(S.background.paper,.15)),se(S.StepConnector,"border",R("palette-grey-400")),se(S.StepContent,"border",R("palette-grey-400")),se(S.Switch,"defaultColor",R("palette-common-white")),se(S.Switch,"defaultDisabledColor",R("palette-grey-100")),se(S.Switch,"primaryDisabledColor",Ot(S.primary.main,.62)),se(S.Switch,"secondaryDisabledColor",Ot(S.secondary.main,.62)),se(S.Switch,"errorDisabledColor",Ot(S.error.main,.62)),se(S.Switch,"infoDisabledColor",Ot(S.info.main,.62)),se(S.Switch,"successDisabledColor",Ot(S.success.main,.62)),se(S.Switch,"warningDisabledColor",Ot(S.warning.main,.62)),se(S.TableCell,"border",Ot(Gp(S.divider,1),.88)),se(S.Tooltip,"bg",Gp(S.grey[700],.92))}if(S.mode==="dark"){se(S.Alert,"errorColor",Ot(S.error.light,.6)),se(S.Alert,"infoColor",Ot(S.info.light,.6)),se(S.Alert,"successColor",Ot(S.success.light,.6)),se(S.Alert,"warningColor",Ot(S.warning.light,.6)),se(S.Alert,"errorFilledBg",R("palette-error-dark")),se(S.Alert,"infoFilledBg",R("palette-info-dark")),se(S.Alert,"successFilledBg",R("palette-success-dark")),se(S.Alert,"warningFilledBg",R("palette-warning-dark")),se(S.Alert,"errorFilledColor",Ko(()=>S.getContrastText(S.error.dark))),se(S.Alert,"infoFilledColor",Ko(()=>S.getContrastText(S.info.dark))),se(S.Alert,"successFilledColor",Ko(()=>S.getContrastText(S.success.dark))),se(S.Alert,"warningFilledColor",Ko(()=>S.getContrastText(S.warning.dark))),se(S.Alert,"errorStandardBg",Et(S.error.light,.9)),se(S.Alert,"infoStandardBg",Et(S.info.light,.9)),se(S.Alert,"successStandardBg",Et(S.success.light,.9)),se(S.Alert,"warningStandardBg",Et(S.warning.light,.9)),se(S.Alert,"errorIconColor",R("palette-error-main")),se(S.Alert,"infoIconColor",R("palette-info-main")),se(S.Alert,"successIconColor",R("palette-success-main")),se(S.Alert,"warningIconColor",R("palette-warning-main")),se(S.AppBar,"defaultBg",R("palette-grey-900")),se(S.AppBar,"darkBg",R("palette-background-paper")),se(S.AppBar,"darkColor",R("palette-text-primary")),se(S.Avatar,"defaultBg",R("palette-grey-600")),se(S.Button,"inheritContainedBg",R("palette-grey-800")),se(S.Button,"inheritContainedHoverBg",R("palette-grey-700")),se(S.Chip,"defaultBorder",R("palette-grey-700")),se(S.Chip,"defaultAvatarColor",R("palette-grey-300")),se(S.Chip,"defaultIconColor",R("palette-grey-300")),se(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(S.LinearProgress,"primaryBg",Et(S.primary.main,.5)),se(S.LinearProgress,"secondaryBg",Et(S.secondary.main,.5)),se(S.LinearProgress,"errorBg",Et(S.error.main,.5)),se(S.LinearProgress,"infoBg",Et(S.info.main,.5)),se(S.LinearProgress,"successBg",Et(S.success.main,.5)),se(S.LinearProgress,"warningBg",Et(S.warning.main,.5)),se(S.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),se(S.Slider,"primaryTrack",Et(S.primary.main,.5)),se(S.Slider,"secondaryTrack",Et(S.secondary.main,.5)),se(S.Slider,"errorTrack",Et(S.error.main,.5)),se(S.Slider,"infoTrack",Et(S.info.main,.5)),se(S.Slider,"successTrack",Et(S.success.main,.5)),se(S.Slider,"warningTrack",Et(S.warning.main,.5));const O=Wp(S.background.default,.98);se(S.SnackbarContent,"bg",O),se(S.SnackbarContent,"color",Ko(()=>S.getContrastText(O))),se(S.SpeedDialAction,"fabHoverBg",Wp(S.background.paper,.15)),se(S.StepConnector,"border",R("palette-grey-600")),se(S.StepContent,"border",R("palette-grey-600")),se(S.Switch,"defaultColor",R("palette-grey-300")),se(S.Switch,"defaultDisabledColor",R("palette-grey-600")),se(S.Switch,"primaryDisabledColor",Et(S.primary.main,.55)),se(S.Switch,"secondaryDisabledColor",Et(S.secondary.main,.55)),se(S.Switch,"errorDisabledColor",Et(S.error.main,.55)),se(S.Switch,"infoDisabledColor",Et(S.info.main,.55)),se(S.Switch,"successDisabledColor",Et(S.success.main,.55)),se(S.Switch,"warningDisabledColor",Et(S.warning.main,.55)),se(S.TableCell,"border",Et(Gp(S.divider,1),.68)),se(S.Tooltip,"bg",Gp(S.grey[700],.92))}Pi(S.background,"default"),Pi(S.background,"paper"),Pi(S.common,"background"),Pi(S.common,"onBackground"),Pi(S,"divider"),Object.keys(S).forEach(O=>{const A=S[O];A&&typeof A=="object"&&(A.main&&se(S[O],"mainChannel",vd(yd(A.main))),A.light&&se(S[O],"lightChannel",vd(yd(A.light))),A.dark&&se(S[O],"darkChannel",vd(yd(A.dark))),A.contrastText&&se(S[O],"contrastTextChannel",vd(yd(A.contrastText))),O==="text"&&(Pi(S[O],"primary"),Pi(S[O],"secondary")),O==="action"&&(A.active&&Pi(S[O],"active"),A.selected&&Pi(S[O],"selected")))})}),x=t.reduce((k,S)=>Un(k,S),x);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:$6(x)},{vars:I,generateThemeVars:T,generateStyleSheets:M}=ZV(x,P);return x.vars=I,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([k,S])=>{x[k]=S}),x.generateThemeVars=T,x.generateStyleSheets=M,x.generateSpacing=function(){return u_(c.spacing,Vx(this))},x.getColorSchemeSelector=e6(a),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=s,x.unstable_sxConfig={...qf,...c==null?void 0:c.unstable_sxConfig},x.unstable_sx=function(S){return Qa({sx:S,theme:this})},x.toRuntimeSource=O_,x}function dk(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zx({...n===!0?{}:n.palette,mode:t})})}function $_(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return pw(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=pw({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},dk(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},dk(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),L6({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const hv=$_(),xu="$$material";function Su(){const e=dv(hv);return e[xu]||e}function F6(e){return v.jsx(CV,{...e,defaultTheme:hv,themeId:xu})}function eS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lr=e=>eS(e)&&e!=="classes",ne=m_({themeId:xu,defaultTheme:hv,rootShouldForwardProp:lr});function j6(e){return function(n){return v.jsx(F6,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function N6(){return U$}const _e=YV;function He(e){return qV(e)}function B6(e){return typeof e.main=="string"}function z6(e,t=[]){if(!B6(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ut(e=[]){return([,t])=>t&&z6(t,e)}function H6(e){return Ne("MuiPaper",e)}Fe("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 V6=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,H6,o)},U6=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(_e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Pr=p.forwardRef(function(t,n){var h;const r=He({props:t,name:"MuiPaper"}),o=Su(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:s,elevation:a,square:l,variant:c},f=V6(d);return v.jsx(U6,{as:s,ownerState:d,className:ie(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(h=o.vars.overlays)==null?void 0:h[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${We("#fff",hw(a))}, ${We("#fff",hw(a))})`}},...u.style}})});function G6(e){return Ne("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const W6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${re(t)}`,`position${re(n)}`]};return ye(o,G6,r)},fk=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,K6=ne(Pr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${re(n.position)}`],t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?fk(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?fk(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),q6=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:i,position:a,enableColorOnDark:s},u=W6(c);return v.jsx(K6,{square:!0,component:"header",ownerState:c,elevation:4,className:ie(u.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function Y6(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function X6(e){return parseFloat(e)}function Q6({props:e,name:t}){return v_({props:e,name:t,defaultTheme:hv,themeId:xu})}const J6=Fe("MuiBox",["root"]),Z6=$_(),Qe=SV({themeId:xu,defaultTheme:Z6,defaultClassName:J6.root,generateClassName:f_.generate});function eU(e){return Ne("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const tU=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},eU,t)},nU=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(_e(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),__=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:i,disableGutters:s,variant:a},u=tU(c);return v.jsx(nU,{as:i,className:ie(u.root,o),ref:n,ownerState:c,...l})});class Sm{constructor(){Vu(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Sm}static use(){const t=Vo(Sm.create).current,[n,r]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=r,p.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=oU(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function rU(){return Sm.use()}function oU(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function xe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function mw(e,t){return mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mw(e,t)}function A_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mw(e,t)}const pk={disabled:!1},Pm=lo.createContext(null);var iU=function(t){return t.scrollTop},bd="unmounted",xa="exited",Sa="entering",Vl="entered",gw="exiting",wi=function(e){A_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=xa,i.appearStatus=Sa):l=Vl:r.unmountOnExit||r.mountOnEnter?l=bd:l=xa,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===bd?{status:xa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Sa&&s!==Vl&&(i=Sa):(s===Sa||s===Vl)&&(i=gw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Sa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Vp.findDOMNode(this);s&&iU(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xa&&this.setState({status:bd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Vp.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||pk.disabled){this.safeSetState({status:Vl},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Sa},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Vl},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Vp.findDOMNode(this);if(!i||pk.disabled){this.safeSetState({status:xa},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:gw},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:xa},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Vp.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===bd)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=xe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lo.createElement(Pm.Provider,{value:null},typeof s=="function"?s(o,a):lo.cloneElement(lo.Children.only(s),a))},t}(lo.Component);wi.contextType=Pm;wi.propTypes={};function _l(){}wi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_l,onEntering:_l,onEntered:_l,onExit:_l,onExiting:_l,onExited:_l};wi.UNMOUNTED=bd;wi.EXITED=xa;wi.ENTERING=Sa;wi.ENTERED=Vl;wi.EXITING=gw;function sU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tS(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function aU(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s{if(!a&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),v.jsx("span",{className:f,style:h,children:v.jsx("span",{className:m})})}const no=Fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vw=550,pU=80,hU=bi` 0% { transform: scale(0); opacity: 0.1; @@ -95,7 +95,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann transform: scale(1); opacity: 0.3; } -`,hU=bi` +`,mU=bi` 0% { opacity: 1; } @@ -103,7 +103,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 0; } -`,mU=bi` +`,gU=bi` 0% { transform: scale(1); } @@ -115,15 +115,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: scale(1); } -`,gU=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vU=ne(dU,{name:"MuiTouchRipple",slot:"Ripple"})` +`,vU=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yU=ne(fU,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${no.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${pU}; - animation-duration: ${gw}ms; + animation-name: ${hU}; + animation-duration: ${vw}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -142,8 +142,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann & .${no.childLeaving} { opacity: 0; - animation-name: ${hU}; - animation-duration: ${gw}ms; + animation-name: ${mU}; + animation-duration: ${vw}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -152,13 +152,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann /* @noflip */ left: 0px; top: 0; - animation-name: ${mU}; + animation-name: ${gU}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,yU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=p.useState([]),u=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),h=uo(),m=p.useRef(null),y=p.useRef(null),C=p.useCallback(x=>{const{pulsate:P,rippleX:I,rippleY:T,rippleSize:M,cb:k}=x;c(S=>[...S,v.jsx(vU,{classes:{ripple:ie(i.ripple,no.ripple),rippleVisible:ie(i.rippleVisible,no.rippleVisible),ripplePulsate:ie(i.ripplePulsate,no.ripplePulsate),child:ie(i.child,no.child),childLeaving:ie(i.childLeaving,no.childLeaving),childPulsate:ie(i.childPulsate,no.childPulsate)},timeout:gw,pulsate:P,rippleX:I,rippleY:T,rippleSize:M},u.current)]),u.current+=1,d.current=k},[i]),w=p.useCallback((x={},P={},I=()=>{})=>{const{pulsate:T=!1,center:M=o||P.pulsate,fakeElement:k=!1}=P;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const S=k?null:y.current,R=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,A,D;if(M||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)O=Math.round(R.width/2),A=Math.round(R.height/2);else{const{clientX:_,clientY:$}=x.touches&&x.touches.length>0?x.touches[0]:x;O=Math.round(_-R.left),A=Math.round($-R.top)}if(M)D=Math.sqrt((2*R.width**2+R.height**2)/3),D%2===0&&(D+=1);else{const _=Math.max(Math.abs((S?S.clientWidth:0)-O),O)*2+2,$=Math.max(Math.abs((S?S.clientHeight:0)-A),A)*2+2;D=Math.sqrt(_**2+$**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{C({pulsate:T,rippleX:O,rippleY:A,rippleSize:D,cb:I})},h.start(fU,()=>{m.current&&(m.current(),m.current=null)})):C({pulsate:T,rippleX:O,rippleY:A,rippleSize:D,cb:I})},[o,C,h]),b=p.useCallback(()=>{w({},{pulsate:!0})},[w]),g=p.useCallback((x,P)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{g(x,P)});return}m.current=null,c(I=>I.length>0?I.slice(1):I),d.current=P},[h]);return p.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:g}),[b,w,g]),v.jsx(gU,{className:ie(no.root,i.root,s),ref:y,...a,children:v.jsx(eS,{component:null,exit:!0,children:l})})});function bU(e){return Ne("MuiButtonBase",e)}const wU=je("MuiButtonBase",["root","disabled","focusVisible"]),CU=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ve({root:["root",t&&"disabled",n&&"focusVisible"]},bU,o);return n&&r&&(s.root+=` ${r}`),s},xU=ne("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"},[`&.${wU.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:y,onClick:C,onContextMenu:w,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:P,onKeyUp:I,onMouseDown:T,onMouseLeave:M,onMouseUp:k,onTouchEnd:S,onTouchMove:R,onTouchStart:O,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:_,type:$,...L}=r,F=p.useRef(null),j=nU(),N=ht(j.ref,_),[z,V]=p.useState(!1);c&&z&&V(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),F.current.focus()}}),[]);const K=j.shouldMount&&!u&&!c;p.useEffect(()=>{z&&f&&!u&&j.pulsate()},[u,f,z,j]);function H(te,oe,de=d){return nt(ge=>(oe&&oe(ge),de||j[te](ge),!0))}const G=H("start",T),Y=H("stop",w),ee=H("stop",b),W=H("stop",k),Q=H("stop",te=>{z&&te.preventDefault(),M&&M(te)}),U=H("start",O),J=H("stop",S),Z=H("stop",R),le=H("stop",te=>{Gc(te.target)||V(!1),y&&y(te)},!1),he=nt(te=>{F.current||(F.current=te.currentTarget),Gc(te.target)&&(V(!0),x&&x(te)),g&&g(te)}),ye=()=>{const te=F.current;return l&&l!=="button"&&!(te.tagName==="A"&&te.href)},pe=nt(te=>{f&&!te.repeat&&z&&te.key===" "&&j.stop(te,()=>{j.start(te)}),te.target===te.currentTarget&&ye()&&te.key===" "&&te.preventDefault(),P&&P(te),te.target===te.currentTarget&&ye()&&te.key==="Enter"&&!c&&(te.preventDefault(),C&&C(te))}),Fe=nt(te=>{f&&te.key===" "&&z&&!te.defaultPrevented&&j.stop(te,()=>{j.pulsate(te)}),I&&I(te),C&&te.target===te.currentTarget&&ye()&&te.key===" "&&!te.defaultPrevented&&C(te)});let me=l;me==="button"&&(L.href||L.to)&&(me=m);const Ae={};me==="button"?(Ae.type=$===void 0?"button":$,Ae.disabled=c):(!L.href&&!L.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Ve=ht(n,F),De={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:A,focusVisible:z},X=CU(De);return v.jsxs(xU,{as:me,className:ie(X.root,a),ownerState:De,onBlur:le,onClick:C,onContextMenu:Y,onFocus:he,onKeyDown:pe,onKeyUp:Fe,onMouseDown:G,onMouseLeave:Q,onMouseUp:W,onDragLeave:ee,onTouchEnd:J,onTouchMove:Z,onTouchStart:U,ref:Ve,tabIndex:c?-1:A,type:$,...Ae,...L,children:[s,K?v.jsx(yU,{ref:N,center:i,...D}):null]})});function SU(e){return Ne("MuiIconButton",e)}const PU=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),IU=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${re(r)}`,o&&`edge${re(o)}`,`size${re(i)}`]};return ve(s,SU,t)},kU=ne(Wc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${re(n.color)}`],n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})(_e(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${PU.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),an=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,size:u},h=IU(f);return v.jsx(kU,{className:ie(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})});function TU(e){return Ne("MuiTypography",e)}const fk=je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),EU={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},OU=j6(),MU=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(a,TU,s)},RU=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(_e(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${re(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),pk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Be=p.forwardRef(function(t,n){const{color:r,...o}=He({props:t,name:"MuiTypography"}),i=!EU[r],s=OU({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:m=pk,...y}=s,C={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:m},w=c||(f?"p":m[h]||pk[h])||"span",b=MU(C);return v.jsx(RU,{as:w,ref:n,className:ie(b.root,l),...y,ownerState:C,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});var kt={};/** +`,bU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=p.useState([]),u=p.useRef(0),d=p.useRef(null);p.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=p.useRef(!1),h=uo(),m=p.useRef(null),y=p.useRef(null),C=p.useCallback(x=>{const{pulsate:P,rippleX:I,rippleY:T,rippleSize:M,cb:k}=x;c(S=>[...S,v.jsx(yU,{classes:{ripple:ie(i.ripple,no.ripple),rippleVisible:ie(i.rippleVisible,no.rippleVisible),ripplePulsate:ie(i.ripplePulsate,no.ripplePulsate),child:ie(i.child,no.child),childLeaving:ie(i.childLeaving,no.childLeaving),childPulsate:ie(i.childPulsate,no.childPulsate)},timeout:vw,pulsate:P,rippleX:I,rippleY:T,rippleSize:M},u.current)]),u.current+=1,d.current=k},[i]),w=p.useCallback((x={},P={},I=()=>{})=>{const{pulsate:T=!1,center:M=o||P.pulsate,fakeElement:k=!1}=P;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const S=k?null:y.current,R=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,A,D;if(M||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)O=Math.round(R.width/2),A=Math.round(R.height/2);else{const{clientX:_,clientY:$}=x.touches&&x.touches.length>0?x.touches[0]:x;O=Math.round(_-R.left),A=Math.round($-R.top)}if(M)D=Math.sqrt((2*R.width**2+R.height**2)/3),D%2===0&&(D+=1);else{const _=Math.max(Math.abs((S?S.clientWidth:0)-O),O)*2+2,$=Math.max(Math.abs((S?S.clientHeight:0)-A),A)*2+2;D=Math.sqrt(_**2+$**2)}x!=null&&x.touches?m.current===null&&(m.current=()=>{C({pulsate:T,rippleX:O,rippleY:A,rippleSize:D,cb:I})},h.start(pU,()=>{m.current&&(m.current(),m.current=null)})):C({pulsate:T,rippleX:O,rippleY:A,rippleSize:D,cb:I})},[o,C,h]),b=p.useCallback(()=>{w({},{pulsate:!0})},[w]),g=p.useCallback((x,P)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{g(x,P)});return}m.current=null,c(I=>I.length>0?I.slice(1):I),d.current=P},[h]);return p.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:g}),[b,w,g]),v.jsx(vU,{className:ie(no.root,i.root,s),ref:y,...a,children:v.jsx(nS,{component:null,exit:!0,children:l})})});function wU(e){return Ne("MuiButtonBase",e)}const CU=Fe("MuiButtonBase",["root","disabled","focusVisible"]),xU=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ye({root:["root",t&&"disabled",n&&"focusVisible"]},wU,o);return n&&r&&(s.root+=` ${r}`),s},SU=ne("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"},[`&.${CU.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:y,onClick:C,onContextMenu:w,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:P,onKeyUp:I,onMouseDown:T,onMouseLeave:M,onMouseUp:k,onTouchEnd:S,onTouchMove:R,onTouchStart:O,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:_,type:$,...L}=r,F=p.useRef(null),j=rU(),N=mt(j.ref,_),[z,V]=p.useState(!1);c&&z&&V(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),F.current.focus()}}),[]);const K=j.shouldMount&&!u&&!c;p.useEffect(()=>{z&&f&&!u&&j.pulsate()},[u,f,z,j]);function H(te,oe,de=d){return nt(ve=>(oe&&oe(ve),de||j[te](ve),!0))}const G=H("start",T),q=H("stop",w),ee=H("stop",b),W=H("stop",k),Z=H("stop",te=>{z&&te.preventDefault(),M&&M(te)}),U=H("start",O),J=H("stop",S),X=H("stop",R),ae=H("stop",te=>{Gc(te.target)||V(!1),y&&y(te)},!1),fe=nt(te=>{F.current||(F.current=te.currentTarget),Gc(te.target)&&(V(!0),x&&x(te)),g&&g(te)}),me=()=>{const te=F.current;return l&&l!=="button"&&!(te.tagName==="A"&&te.href)},he=nt(te=>{f&&!te.repeat&&z&&te.key===" "&&j.stop(te,()=>{j.start(te)}),te.target===te.currentTarget&&me()&&te.key===" "&&te.preventDefault(),P&&P(te),te.target===te.currentTarget&&me()&&te.key==="Enter"&&!c&&(te.preventDefault(),C&&C(te))}),je=nt(te=>{f&&te.key===" "&&z&&!te.defaultPrevented&&j.stop(te,()=>{j.pulsate(te)}),I&&I(te),C&&te.target===te.currentTarget&&me()&&te.key===" "&&!te.defaultPrevented&&C(te)});let ge=l;ge==="button"&&(L.href||L.to)&&(ge=m);const Ae={};ge==="button"?(Ae.type=$===void 0?"button":$,Ae.disabled=c):(!L.href&&!L.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Ve=mt(n,F),De={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:A,focusVisible:z},Q=xU(De);return v.jsxs(SU,{as:ge,className:ie(Q.root,a),ownerState:De,onBlur:ae,onClick:C,onContextMenu:q,onFocus:fe,onKeyDown:he,onKeyUp:je,onMouseDown:G,onMouseLeave:Z,onMouseUp:W,onDragLeave:ee,onTouchEnd:J,onTouchMove:X,onTouchStart:U,ref:Ve,tabIndex:c?-1:A,type:$,...Ae,...L,children:[s,K?v.jsx(bU,{ref:N,center:i,...D}):null]})});function PU(e){return Ne("MuiIconButton",e)}const IU=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),kU=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${re(r)}`,o&&`edge${re(o)}`,`size${re(i)}`]};return ye(s,PU,t)},TU=ne(Wc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${re(n.color)}`],n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})(_e(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${IU.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),an=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,size:u},h=kU(f);return v.jsx(TU,{className:ie(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})});function EU(e){return Ne("MuiTypography",e)}const hk=Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),OU={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MU=N6(),RU=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(a,EU,s)},$U=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(_e(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${re(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),mk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Be=p.forwardRef(function(t,n){const{color:r,...o}=He({props:t,name:"MuiTypography"}),i=!OU[r],s=MU({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:m=mk,...y}=s,C={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:m},w=c||(f?"p":m[h]||mk[h])||"span",b=RU(C);return v.jsx($U,{as:w,ref:n,className:ie(b.root,l),...y,ownerState:C,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});var Tt={};/** * @license React * react-is.production.min.js * @@ -166,7 +166,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tS=Symbol.for("react.element"),nS=Symbol.for("react.portal"),hv=Symbol.for("react.fragment"),mv=Symbol.for("react.strict_mode"),gv=Symbol.for("react.profiler"),vv=Symbol.for("react.provider"),yv=Symbol.for("react.context"),$U=Symbol.for("react.server_context"),bv=Symbol.for("react.forward_ref"),wv=Symbol.for("react.suspense"),Cv=Symbol.for("react.suspense_list"),xv=Symbol.for("react.memo"),Sv=Symbol.for("react.lazy"),_U=Symbol.for("react.offscreen"),__;__=Symbol.for("react.module.reference");function So(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tS:switch(e=e.type,e){case hv:case gv:case mv:case wv:case Cv:return e;default:switch(e=e&&e.$$typeof,e){case $U:case yv:case bv:case Sv:case xv:case vv:return e;default:return t}}case nS:return t}}}kt.ContextConsumer=yv;kt.ContextProvider=vv;kt.Element=tS;kt.ForwardRef=bv;kt.Fragment=hv;kt.Lazy=Sv;kt.Memo=xv;kt.Portal=nS;kt.Profiler=gv;kt.StrictMode=mv;kt.Suspense=wv;kt.SuspenseList=Cv;kt.isAsyncMode=function(){return!1};kt.isConcurrentMode=function(){return!1};kt.isContextConsumer=function(e){return So(e)===yv};kt.isContextProvider=function(e){return So(e)===vv};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tS};kt.isForwardRef=function(e){return So(e)===bv};kt.isFragment=function(e){return So(e)===hv};kt.isLazy=function(e){return So(e)===Sv};kt.isMemo=function(e){return So(e)===xv};kt.isPortal=function(e){return So(e)===nS};kt.isProfiler=function(e){return So(e)===gv};kt.isStrictMode=function(e){return So(e)===mv};kt.isSuspense=function(e){return So(e)===wv};kt.isSuspenseList=function(e){return So(e)===Cv};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hv||e===gv||e===mv||e===wv||e===Cv||e===_U||typeof e=="object"&&e!==null&&(e.$$typeof===Sv||e.$$typeof===xv||e.$$typeof===vv||e.$$typeof===yv||e.$$typeof===bv||e.$$typeof===__||e.getModuleId!==void 0)};kt.typeOf=So;const Cf=p.createContext({});function AU(e){return Ne("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const DU=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},AU,t)},LU=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),FU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=p.useMemo(()=>({dense:a}),[a]),f={...r,component:s,dense:a,disablePadding:l},h=DU(f);return v.jsx(Cf.Provider,{value:d,children:v.jsxs(LU,{as:s,className:ie(h.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function jU(e){return Ne("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const NU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(n)}`]};return ve(o,jU,r)},BU=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${re(n.color)}`],t[`fontSize${re(n.fontSize)}`]]}})(_e(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var C,w;return{props:{color:y},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C[y])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Pm=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=r,m=p.isValidElement(o)&&o.type==="svg",y={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},C={};u||(C.viewBox=f);const w=NU(y);return v.jsxs(BU,{as:a,className:ie(w.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...h,...m&&o.props,ownerState:y,children:[m?o.props.children:o,d?v.jsx("title",{children:d}):null]})});Pm&&(Pm.muiName="SvgIcon");function Te(e,t){function n(r,o){return v.jsx(Pm,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Pm.muiName,p.memo(p.forwardRef(n))}function ob(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A_(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ed(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!A_(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const rS=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,h=p.useRef(null),m=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pt(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(g,{direction:x})=>{const P=!h.current.style.width;if(g.clientHeight{const x=h.current,P=g.key;if(g.ctrlKey||g.metaKey||g.altKey){u&&u(g);return}const T=Wt(x).activeElement;if(P==="ArrowDown")g.preventDefault(),ed(x,T,c,l,ob);else if(P==="ArrowUp")g.preventDefault(),ed(x,T,c,l,hk);else if(P==="Home")g.preventDefault(),ed(x,null,c,l,ob);else if(P==="End")g.preventDefault(),ed(x,null,c,l,hk);else if(P.length===1){const M=m.current,k=P.toLowerCase(),S=performance.now();M.keys.length>0&&(S-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&k!==M.keys[0]&&(M.repeating=!1)),M.lastTime=S,M.keys.push(k);const R=T&&!M.repeating&&A_(T,M);M.previousKeyMatched&&(R||ed(x,T,!1,l,ob,M))?g.preventDefault():M.previousKeyMatched=!1}u&&u(g)},C=ht(h,n);let w=-1;p.Children.forEach(s,(g,x)=>{if(!p.isValidElement(g)){w===x&&(w+=1,w>=s.length&&(w=-1));return}g.props.disabled||(d==="selectedMenu"&&g.props.selected||w===-1)&&(w=x),w===x&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=p.Children.map(s,(g,x)=>{if(x===w){const P={};return i&&(P.autoFocus=!0),g.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),p.cloneElement(g,P)}return g});return v.jsx(FU,{role:"menu",ref:C,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:b})});function Im(e){return typeof e=="string"}const D_=e=>e.scrollTop;function km(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function vw(e){return`scale(${e}, ${e**2})`}const zU={entering:{opacity:1,transform:vw(1)},entered:{opacity:1,transform:"none"}},ib=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xf=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:m,timeout:y="auto",TransitionComponent:C=wi,...w}=t,b=uo(),g=p.useRef(),x=Su(),P=p.useRef(null),I=ht(P,fl(i),n),T=_=>$=>{if(_){const L=P.current;$===void 0?_(L):_(L,$)}},M=T(u),k=T((_,$)=>{D_(_);const{duration:L,delay:F,easing:j}=km({style:m,timeout:y,easing:s},{mode:"enter"});let N;y==="auto"?(N=x.transitions.getAutoHeightDuration(_.clientHeight),g.current=N):N=L,_.style.transition=[x.transitions.create("opacity",{duration:N,delay:F}),x.transitions.create("transform",{duration:ib?N:N*.666,delay:F,easing:j})].join(","),l&&l(_,$)}),S=T(c),R=T(h),O=T(_=>{const{duration:$,delay:L,easing:F}=km({style:m,timeout:y,easing:s},{mode:"exit"});let j;y==="auto"?(j=x.transitions.getAutoHeightDuration(_.clientHeight),g.current=j):j=$,_.style.transition=[x.transitions.create("opacity",{duration:j,delay:L}),x.transitions.create("transform",{duration:ib?j:j*.666,delay:ib?L:L||j*.333,easing:F})].join(","),_.style.opacity=0,_.style.transform=vw(.75),d&&d(_)}),A=T(f),D=_=>{y==="auto"&&b.start(g.current||0,_),r&&r(P.current,_)};return v.jsx(C,{appear:o,in:a,nodeRef:P,onEnter:k,onEntered:S,onEntering:M,onExit:O,onExited:A,onExiting:R,addEndListener:D,timeout:y==="auto"?null:y,...w,children:(_,$)=>p.cloneElement(i,{style:{opacity:0,transform:vw(.75),visibility:_==="exited"&&!a?"hidden":void 0,...zU[_],...m,...i.props.style},ref:I,...$})})});xf&&(xf.muiSupportAuto=!0);function HU(e){const t=Wt(e);return t.body===e?hi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mk(e){return parseInt(hi(e).getComputedStyle(e).paddingRight,10)||0}function VU(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function gk(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=!i.includes(s),l=!VU(s);a&&l&&Dd(s,o)})}function sb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UU(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(HU(r)){const s=w_(hi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mk(r)+s}px`;const a=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${mk(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const s=r.parentElement,a=hi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function GU(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class WU{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dd(t.modalRef,!1);const o=GU(n);gk(n,t.mount,t.modalRef,o,!0);const i=sb(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=sb(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=UU(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=sb(this.containers,s=>s.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dd(t.modalRef,n),gk(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Dd(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const KU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qU(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 YU(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function XU(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||YU(e))}function QU(e){const t=[],n=[];return Array.from(e.querySelectorAll(KU)).forEach((r,o)=>{const i=qU(r);i===-1||!XU(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function JU(){return!0}function L_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=QU,isEnabled:s=JU,open:a}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),m=p.useRef(null),y=ht(fl(t),m),C=p.useRef(null);p.useEffect(()=>{!a||!m.current||(h.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!m.current)return;const g=Wt(m.current);return m.current.contains(g.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),p.useEffect(()=>{if(!a||!m.current)return;const g=Wt(m.current),x=T=>{C.current=T,!(r||!s()||T.key!=="Tab")&&g.activeElement===m.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{var k,S;const T=m.current;if(T===null)return;if(!g.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(g.activeElement)||r&&g.activeElement!==c.current&&g.activeElement!==u.current)return;if(g.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let M=[];if((g.activeElement===c.current||g.activeElement===u.current)&&(M=i(m.current)),M.length>0){const R=!!((k=C.current)!=null&&k.shiftKey&&((S=C.current)==null?void 0:S.key)==="Tab"),O=M[0],A=M[M.length-1];typeof O!="string"&&typeof A!="string"&&(R?A.focus():O.focus())}else T.focus()};g.addEventListener("focusin",P),g.addEventListener("keydown",x,!0);const I=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(I),g.removeEventListener("focusin",P),g.removeEventListener("keydown",x,!0)}},[n,r,o,s,a,i]);const w=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,f.current=g.target;const x=t.props.onFocus;x&&x(g)},b=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return v.jsxs(p.Fragment,{children:[v.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:y,onFocus:w}),v.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function ZU(e){return typeof e=="function"?e():e}const F_=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=ht(p.isValidElement(r)?fl(r):null,n);if(pt(()=>{i||a(ZU(o)||document.body)},[o,i]),pt(()=>{if(s&&!i)return Cm(n,s),()=>{Cm(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return v.jsx(p.Fragment,{children:r})}return v.jsx(p.Fragment,{children:s&&Ng.createPortal(r,s)})});function hn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,h=u[e]||r,m=P_(d[e],o),{props:{component:y,...C},internalRef:w}=S_({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),b=ht(w,m==null?void 0:m.ref,t.ref),g=s?s(C):{},x={...o,...g},P=e==="root"?y||c:y,I=C_(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...C,...P&&{as:P},ref:b},x);return Object.keys(g).forEach(T=>{delete I[T]}),[h,I]}const e8={entering:{opacity:1},entered:{opacity:1}},oS=p.forwardRef(function(t,n){const r=Su(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:y,style:C,timeout:w=o,TransitionComponent:b=wi,...g}=t,x=p.useRef(null),P=ht(x,fl(a),n),I=D=>_=>{if(D){const $=x.current;_===void 0?D($):D($,_)}},T=I(f),M=I((D,_)=>{D_(D);const $=km({style:C,timeout:w,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",$),D.style.transition=r.transitions.create("opacity",$),u&&u(D,_)}),k=I(d),S=I(y),R=I(D=>{const _=km({style:C,timeout:w,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",_),D.style.transition=r.transitions.create("opacity",_),h&&h(D)}),O=I(m),A=D=>{i&&i(x.current,D)};return v.jsx(b,{appear:s,in:c,nodeRef:x,onEnter:M,onEntered:k,onEntering:T,onExit:R,onExited:O,onExiting:S,addEndListener:A,timeout:w,...g,children:(D,_)=>p.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...e8[D],...C,...a.props.style},ref:P,..._})})});function t8(e){return Ne("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const n8=e=>{const{ownerState:t,...n}=e;return n},r8=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},t8,t)},o8=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),j_=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:h,transitionDuration:m,...y}=r,C={...r,component:s,invisible:a},w=r8(C),b={transition:h,root:c.Root,...f},g={...u,...d},x={slots:b,slotProps:g},[P,I]=hn("root",{elementType:o8,externalForwardedProps:x,className:ie(w.root,i),ownerState:C}),[T,M]=hn("transition",{elementType:oS,externalForwardedProps:x,ownerState:C}),k=n8(M);return v.jsx(T,{in:l,timeout:m,...y,...k,children:v.jsx(P,{"aria-hidden":!0,...I,classes:w,ref:n,children:o})})});function i8(e){return typeof e=="function"?e():e}function s8(e){return e?e.props.hasOwnProperty("in"):!1}const Kp=new WU;function a8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,d=p.useRef({}),f=p.useRef(null),h=p.useRef(null),m=ht(h,u),[y,C]=p.useState(!c),w=s8(a);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const g=()=>Wt(f.current),x=()=>(d.current.modalRef=h.current,d.current.mount=f.current,d.current),P=()=>{Kp.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},I=nt(()=>{const _=i8(t)||g().body;Kp.add(x(),_),h.current&&P()}),T=()=>Kp.isTopModal(x()),M=nt(_=>{f.current=_,_&&(c&&T()?P():h.current&&Dd(h.current,b))}),k=p.useCallback(()=>{Kp.remove(x(),b)},[b]);p.useEffect(()=>()=>{k()},[k]),p.useEffect(()=>{c?I():(!w||!o)&&k()},[c,k,w,o,I]);const S=_=>$=>{var L;(L=_.onKeyDown)==null||L.call(_,$),!($.key!=="Escape"||$.which===229||!T())&&(n||($.stopPropagation(),l&&l($,"escapeKeyDown")))},R=_=>$=>{var L;(L=_.onClick)==null||L.call(_,$),$.target===$.currentTarget&&l&&l($,"backdropClick")};return{getRootProps:(_={})=>{const $=x_(e);delete $.onTransitionEnter,delete $.onTransitionExited;const L={...$,..._};return{role:"presentation",...L,onKeyDown:S(L),ref:m}},getBackdropProps:(_={})=>{const $=_;return{"aria-hidden":!0,...$,onClick:R($),open:c}},getTransitionProps:()=>{const _=()=>{C(!1),i&&i()},$=()=>{C(!0),s&&s(),o&&k()};return{onEnter:QI(_,a==null?void 0:a.props.onEnter),onExited:QI($,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:M,isTopModal:T,exited:y,hasTransition:w}}function l8(e){return Ne("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const c8=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},l8,r)},u8=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(_e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),d8=ne(j_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Qf=p.forwardRef(function(t,n){const r=He({name:"MuiModal",props:t}),{BackdropComponent:o=d8,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:b=!1,disableScrollLock:g=!1,hideBackdrop:x=!1,keepMounted:P=!1,onBackdropClick:I,onClose:T,onTransitionEnter:M,onTransitionExited:k,open:S,slotProps:R={},slots:O={},theme:A,...D}=r,_={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:b,disableScrollLock:g,hideBackdrop:x,keepMounted:P},{getRootProps:$,getBackdropProps:L,getTransitionProps:F,portalRef:j,isTopModal:N,exited:z,hasTransition:V}=a8({..._,rootRef:n}),K={..._,exited:z},H=c8(K),G={};if(c.props.tabIndex===void 0&&(G.tabIndex="-1"),V){const{onEnter:Z,onExited:le}=F();G.onEnter=Z,G.onExited=le}const Y={...D,slots:{root:f.Root,backdrop:f.Backdrop,...O},slotProps:{...h,...R}},[ee,W]=hn("root",{elementType:u8,externalForwardedProps:Y,getSlotProps:$,additionalProps:{ref:n,as:d},ownerState:K,className:ie(a,H==null?void 0:H.root,!K.open&&K.exited&&(H==null?void 0:H.hidden))}),[Q,U]=hn("backdrop",{elementType:o,externalForwardedProps:Y,additionalProps:i,getSlotProps:Z=>L({...Z,onClick:le=>{I&&I(le),Z!=null&&Z.onClick&&Z.onClick(le)}}),className:ie(i==null?void 0:i.className,H==null?void 0:H.backdrop),ownerState:K}),J=ht(i==null?void 0:i.ref,U.ref);return!P&&!S&&(!V||z)?null:v.jsx(F_,{ref:j,container:u,disablePortal:w,children:v.jsxs(ee,{...W,children:[!x&&o?v.jsx(Q,{...U,ref:J}):null,v.jsx(L_,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:b,isEnabled:N,open:S,children:p.cloneElement(c,G)})]})})});function f8(e){return Ne("MuiPopover",e)}je("MuiPopover",["root","paper"]);function vk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function yk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function bk(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ab(e){return typeof e=="function"?e():e}const p8=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},f8,t)},h8=ne(Qf,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N_=ne(Pr,{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}),m8=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:m,PaperProps:y={},slots:C={},slotProps:w={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:g=xf,transitionDuration:x="auto",TransitionProps:{onEntering:P,...I}={},disableScrollLock:T=!1,...M}=r,k=(w==null?void 0:w.paper)??y,S=p.useRef(),R={...r,anchorOrigin:s,anchorReference:l,elevation:f,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:b,TransitionComponent:g,transitionDuration:x,TransitionProps:I},O=p8(R),A=p.useCallback(()=>{if(l==="anchorPosition")return a;const U=ab(i),Z=(U&&U.nodeType===1?U:Wt(S.current).body).getBoundingClientRect();return{top:Z.top+vk(Z,s.vertical),left:Z.left+yk(Z,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),D=p.useCallback(U=>({vertical:vk(U,b.vertical),horizontal:yk(U,b.horizontal)}),[b.horizontal,b.vertical]),_=p.useCallback(U=>{const J={width:U.offsetWidth,height:U.offsetHeight},Z=D(J);if(l==="none")return{top:null,left:null,transformOrigin:bk(Z)};const le=A();let he=le.top-Z.vertical,ye=le.left-Z.horizontal;const pe=he+J.height,Fe=ye+J.width,me=hi(ab(i)),Ae=me.innerHeight-h,Ve=me.innerWidth-h;if(h!==null&&heAe){const De=pe-Ae;he-=De,Z.vertical+=De}if(h!==null&&yeVe){const De=Fe-Ve;ye-=De,Z.horizontal+=De}return{top:`${Math.round(he)}px`,left:`${Math.round(ye)}px`,transformOrigin:bk(Z)}},[i,l,A,D,h]),[$,L]=p.useState(m),F=p.useCallback(()=>{const U=S.current;if(!U)return;const J=_(U);J.top!==null&&U.style.setProperty("top",J.top),J.left!==null&&(U.style.left=J.left),U.style.transformOrigin=J.transformOrigin,L(!0)},[_]);p.useEffect(()=>(T&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,T,F]);const j=(U,J)=>{P&&P(U,J),F()},N=()=>{L(!1)};p.useEffect(()=>{m&&F()}),p.useImperativeHandle(o,()=>m?{updatePosition:()=>{F()}}:null,[m,F]),p.useEffect(()=>{if(!m)return;const U=b_(()=>{F()}),J=hi(i);return J.addEventListener("resize",U),()=>{U.clear(),J.removeEventListener("resize",U)}},[i,m,F]);let z=x;x==="auto"&&!g.muiSupportAuto&&(z=void 0);const V=d||(i?Wt(ab(i)).body:void 0),K={slots:C,slotProps:{...w,paper:k}},[H,G]=hn("paper",{elementType:N_,externalForwardedProps:K,additionalProps:{elevation:f,className:ie(O.paper,k==null?void 0:k.className),style:$?k.style:{...k.style,opacity:0}},ownerState:R}),[Y,{slotProps:ee,...W}]=hn("root",{elementType:h8,externalForwardedProps:K,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:V,open:m},ownerState:R,className:ie(O.root,u)}),Q=ht(S,G.ref);return v.jsx(Y,{...W,...!Im(Y)&&{slotProps:ee,disableScrollLock:T},...M,ref:n,children:v.jsx(g,{appear:!0,in:m,onEntering:j,onExited:N,timeout:z,...I,children:v.jsx(H,{...G,ref:Q,children:c})})})});function g8(e){return Ne("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const v8={vertical:"top",horizontal:"right"},y8={vertical:"top",horizontal:"left"},b8=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},g8,t)},w8=ne(m8,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C8=ne(N_,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),x8=ne(rS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tm=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m,...y}={},variant:C="selectedMenu",slots:w={},slotProps:b={},...g}=r,x=Ir(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:h,TransitionProps:y,variant:C},I=b8(P),T=o&&!a&&u,M=p.useRef(null),k=($,L)=>{M.current&&M.current.adjustStyleForScrollbar($,{direction:x?"rtl":"ltr"}),m&&m($,L)},S=$=>{$.key==="Tab"&&($.preventDefault(),c&&c($,"tabKeyDown"))};let R=-1;p.Children.map(i,($,L)=>{p.isValidElement($)&&($.props.disabled||(C==="selectedMenu"&&$.props.selected||R===-1)&&(R=L))});const O=w.paper??C8,A=b.paper??d,D=bf({elementType:w.root,externalSlotProps:b.root,ownerState:P,className:[I.root,s]}),_=bf({elementType:O,externalSlotProps:A,ownerState:P,className:I.paper});return v.jsx(w8,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?v8:y8,slots:{paper:O,root:w.root},slotProps:{root:D,paper:_},open:u,ref:n,transitionDuration:h,TransitionProps:{onEntering:k,...y},ownerState:P,...g,classes:f,children:v.jsx(x8,{onKeyDown:S,actions:M,autoFocus:o&&(R===-1||a),autoFocusItem:T,variant:C,...l,className:ie(I.list,l.className),children:i})})}),S8=Te(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Kc=o6({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})});function P8(e){return Ne("MuiButton",e)}const Al=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),I8=p.createContext({}),k8=p.createContext(void 0),T8=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${re(t)}`,`size${re(o)}`,`${i}Size${re(o)}`,`color${re(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`]},l=ve(a,P8,s);return{...s,...l}},B_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],E8=ne(Wc,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${re(n.color)}`],t[`size${re(n.size)}`],t[`${n.variant}Size${re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Al.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Al.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Al.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Al.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:We(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Al.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Al.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),O8=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${re(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...B_]}),M8=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${re(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...B_]}),mr=p.forwardRef(function(t,n){const r=p.useContext(I8),o=p.useContext(k8),i=Uc(r,t),s=He({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:y,fullWidth:C=!1,size:w="medium",startIcon:b,type:g,variant:x="text",...P}=s,I={...s,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:C,size:w,type:g,variant:x},T=T8(I),M=b&&v.jsx(O8,{className:T.startIcon,ownerState:I,children:b}),k=m&&v.jsx(M8,{className:T.endIcon,ownerState:I,children:m}),S=o||"";return v.jsxs(E8,{ownerState:I,className:ie(r.className,T.root,u,S),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:ie(T.focusVisible,y),ref:n,type:g,...P,classes:T,children:[M,a,k]})});function R8(e){return Ne("MuiDivider",e)}const wk=je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$8=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ve({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},R8,r)},_8=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(_e(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:We(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),A8=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(_e(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ja=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,orientation:a="horizontal",component:l=i||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth",...m}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:h},C=$8(y);return v.jsx(_8,{as:l,className:ie(C.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...m,children:i?v.jsx(A8,{className:C.wrapper,ownerState:y,children:i}):null})});Ja&&(Ja.muiSkipListHighlight=!0);function D8(e){return Ne("MuiListItemIcon",e)}const Ck=je("MuiListItemIcon",["root","alignItemsFlexStart"]),L8=e=>{const{alignItems:t,classes:n}=e;return ve({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},D8,n)},F8=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(_e(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Pc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,s=p.useContext(Cf),a={...r,alignItems:s.alignItems},l=L8(a);return v.jsx(F8,{className:ie(l.root,o),ownerState:a,ref:n,...i})});function j8(e){return Ne("MuiListItemText",e)}const sc=je("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),N8=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ve({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},j8,t)},B8=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sc.primary}`]:t.primary},{[`& .${sc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${fk.root}:where(& .${sc.primary})`]:{display:"block"},[`.${fk.root}:where(& .${sc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ic=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,...f}=r,{dense:h}=p.useContext(Cf);let m=l??o,y=u;const C={...r,disableTypography:s,inset:a,primary:!!m,secondary:!!y,dense:h},w=N8(C);return m!=null&&m.type!==Be&&!s&&(m=v.jsx(Be,{variant:h?"body2":"body1",className:w.primary,component:c!=null&&c.variant?void 0:"span",...c,children:m})),y!=null&&y.type!==Be&&!s&&(y=v.jsx(Be,{variant:"body2",className:w.secondary,color:"textSecondary",...d,children:y})),v.jsxs(B8,{className:ie(w.root,i),ownerState:C,ref:n,...f,children:[m,y]})});function z8(e){return Ne("MuiMenuItem",e)}const td=je("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),H8=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},V8=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ve({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},z8,s);return{...s,...l}},U8=ne(Wc,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:H8})(_e(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${td.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${td.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${td.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(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})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${td.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${td.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wk.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wk.inset}`]:{marginLeft:52},[`& .${sc.root}`]:{marginTop:0,marginBottom:0},[`& .${sc.inset}`]:{paddingLeft:36},[`& .${Ck.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Ck.root} svg`]:{fontSize:"1.25rem"}}}]}))),On=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...h}=r,m=p.useContext(Cf),y=p.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),C=p.useRef(null);pt(()=>{o&&C.current&&C.current.focus()},[o]);const w={...r,dense:y.dense,divider:a,disableGutters:l},b=V8(r),g=ht(C,n);let x;return r.disabled||(x=d!==void 0?d:-1),v.jsx(Cf.Provider,{value:y,children:v.jsx(U8,{ref:g,role:u,tabIndex:x,component:i,focusVisibleClassName:ie(b.focusVisible,c),className:ie(b.root,f),...h,ownerState:w,classes:b})})}),yw=Te(v.jsx("path",{d:"M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9M5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25M12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5M3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9"}),"LocalFlorist"),bw={dark:{header:{backgroundColor:"rgba(81, 45, 168, 0.9)"},mainContent:{backgroundColor:"black"},footer:{backgroundColor:"#242424"},text:{primary:"rgba(255, 255, 255, 0.87)",secondary:"rgba(255, 255, 255, 0.60)",disabled:"rgba(255, 255, 255, 0.38)"},action:{active:"rgba(255, 255, 255, 0.54)",hover:"rgba(255, 255, 255, 0.04)",selected:"rgba(255, 255, 255, 0.08)",disabled:"rgba(255, 255, 255, 0.26)",disabledBackground:"rgba(255, 255, 255, 0.12)"},divider:"rgba(255, 255, 255, 0.12)",elevation:{1:"0px 2px 1px -1px rgba(255,255,255,0.2),0px 1px 1px 0px rgba(255,255,255,0.14),0px 1px 3px 0px rgba(255,255,255,0.12)",2:"0px 3px 1px -2px rgba(255,255,255,0.2),0px 2px 2px 0px rgba(255,255,255,0.14),0px 1px 5px 0px rgba(255,255,255,0.12)",3:"0px 3px 3px -2px rgba(255,255,255,0.2),0px 3px 4px 0px rgba(255,255,255,0.14),0px 1px 8px 0px rgba(255,255,255,0.12)"},card:{backgroundColor:"#1e1e1e",color:"rgba(255, 255, 255, 0.87)"},icon:{color:"#bb86fc"},button:{primary:"#bb86fc",hover:"#c39dff"},chip:{backgroundColor:"#3f3f3f",color:"rgba(255, 255, 255, 0.87)",borderColor:"#bb86fc"},error:{main:"#cf6679"}},light:{header:{backgroundColor:"rgba(156, 39, 176, 0.8)"},mainContent:{backgroundColor:"#f3e5f5"},footer:{backgroundColor:"white",color:"black"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.60)",disabled:"rgba(0, 0, 0, 0.38)"},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",selected:"rgba(0, 0, 0, 0.08)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0, 0, 0, 0.12)",elevation:{1:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)"},card:{backgroundColor:"#ffffff",color:"rgba(0, 0, 0, 0.87)"},icon:{color:"#6200ee"},button:{primary:"#6200ee",hover:"#7722ff"},chip:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)",borderColor:"#6200ee"},error:{main:"#b00020"}}},G8={light:!1,theme:bw.light,toggle:()=>{}},Po=lo.createContext(G8);function W8({children:e}){const[t,n]=p.useState(!1);p.useEffect(()=>{const i=localStorage.getItem("light")==="true";n(i)},[t]);const r=()=>{const i=!t;localStorage.setItem("light",JSON.stringify(i)),n(i)},o=t?bw.light:bw.dark;return v.jsx(Po.Provider,{value:{theme:o,light:t,toggle:r},children:e})}const Pv=p.createContext(void 0);function ss(){return p.useContext(Pv)}function K8(e){return Ne("PrivateSwitchBase",e)}je("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const q8=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${re(o)}`],input:["input"]};return ve(i,K8,t)},Y8=ne(Wc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),X8=ne("input",{shouldForwardProp:lr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),z_=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:h,inputRef:m,name:y,onBlur:C,onChange:w,onFocus:b,readOnly:g,required:x=!1,tabIndex:P,type:I,value:T,...M}=t,[k,S]=Gs({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),R=ss(),O=j=>{b&&b(j),R&&R.onFocus&&R.onFocus(j)},A=j=>{C&&C(j),R&&R.onBlur&&R.onBlur(j)},D=j=>{if(j.nativeEvent.defaultPrevented)return;const N=j.target.checked;S(N),w&&w(j,N)};let _=l;R&&typeof _>"u"&&(_=R.disabled);const $=I==="checkbox"||I==="radio",L={...t,checked:k,disabled:_,disableFocusRipple:c,edge:u},F=q8(L);return v.jsxs(Y8,{component:"span",className:ie(F.root,s),centerRipple:!0,focusRipple:!c,disabled:_,tabIndex:null,role:void 0,onFocus:O,onBlur:A,ownerState:L,ref:n,...M,children:[v.jsx(X8,{autoFocus:r,checked:o,defaultChecked:a,className:F.input,disabled:_,id:$?f:void 0,name:y,onChange:D,readOnly:g,ref:m,required:x,ownerState:L,tabIndex:P,type:I,...I==="checkbox"&&T===void 0?{}:{value:T},...h}),k?i:d]})});function Q8(e){return Ne("MuiSwitch",e)}const er=je("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J8=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${re(n)}`,`size${re(r)}`],switchBase:["switchBase",`color${re(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ve(a,Q8,t);return{...t,...l}},Z8=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${er.thumb}`]:{width:16,height:16},[`& .${er.switchBase}`]:{padding:4,[`&.${er.checked}`]:{transform:"translateX(16px)"}}}}]}),e9=ne(z_,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${er.input}`]:t.input},n.color!=="default"&&t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${er.checked}`]:{transform:"translateX(20px)"},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${er.checked} + .${er.track}`]:{opacity:.5},[`&.${er.disabled} + .${er.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${er.input}`]:{left:"-100%",width:"300%"}})),_e(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ut(["light"])).map(([t])=>({props:{color:t},style:{[`&.${er.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?dl(e.palette[t].main,.62):ul(e.palette[t].main,.55)}`}},[`&.${er.checked} + .${er.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),t9=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(_e(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),n9=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(_e(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),H_=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l,...c}=r,u={...r,color:i,edge:s,size:a},d=J8(u),f=v.jsx(n9,{className:d.thumb,ownerState:u});return v.jsxs(Z8,{className:ie(d.root,o),sx:l,ownerState:u,children:[v.jsx(e9,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),v.jsx(t9,{className:d.track,ownerState:u})]})}),r9=Te([v.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),o9=Te(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),i9=Te(v.jsx("path",{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12c1.02 1.01 2.37 1.57 3.82 1.57 2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37"}),"AllInclusive"),s9=Te(v.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),a9=Te(v.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),l9=Te(v.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),V_=Te([v.jsx("path",{d:"m12 2-5.5 9h11z"},"0"),v.jsx("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),v.jsx("path",{d:"M3 13.5h8v8H3z"},"2")],"Category"),c9=Te(v.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"),u9=Te(v.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),d9=Te(v.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"ColorLens"),f9=Te(v.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),p9=Te(v.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),h9=Te(v.jsx("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7m2 16h-4v-1h4zm0-2h-4v-1h4zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71z"}),"EmojiObjects"),m9=Te(v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"}),"Engineering"),U_=Te(v.jsx("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook"),G_=Te(v.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),W_=Te(v.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),g9=Te(v.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),iS=Te(v.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),v9=Te(v.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login"),y9=Te(v.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),b9=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),w9=Te([v.jsx("path",{d:"M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15 1.67.48 2.9 2.02 2.9 3.85 0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41"},"0"),v.jsx("path",{d:"M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2"},"1")],"NightsStay"),C9=Te(v.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone"),x9=Te(v.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),S9=Te(v.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),P9=Te(v.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share"),xk=Te(v.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),I9=Te(v.jsx("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"}),"WbSunny");function k9(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function Iv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ww=e=>Array.isArray(e);function K_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function sS(e,t,n,r){if(typeof t=="function"){const[o,i]=Sk(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Sk(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function kv(e,t,n){const r=e.getProps();return sS(r,t,n!==void 0?n:r.custom,e)}const aS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lS=["initial",...aS],Jf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pl=new Set(Jf),zi=e=>e*1e3,Hi=e=>e/1e3,T9={type:"spring",stiffness:500,damping:25,restSpeed:10},E9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O9={type:"keyframes",duration:.8},M9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R9=(e,{keyframes:t})=>t.length>2?O9:pl.has(e)?e.startsWith("scale")?E9(t[1]):T9:M9;function cS(e,t){return e?e[t]||e.default||e:void 0}const $9={skipAnimations:!1,useManualTiming:!1},_9=e=>e!==null;function Tv(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(_9),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Gn=e=>e;function A9(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(c))}};return l}const qp=["read","resolveKeyframes","update","preRender","render","postRender"],D9=40;function q_(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=qp.reduce((w,b)=>(w[b]=A9(i),w),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const w=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,D9),1),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},m=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:qp.reduce((w,b)=>{const g=s[b];return w[b]=(x,P=!1,I=!1)=>(n||m(),g.schedule(x,P,I)),w},{}),cancel:w=>{for(let b=0;b(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,L9=1e-7,F9=12;function j9(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Y_(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>L9&&++aj9(i,0,1,e,n);return i=>i===0||i===1?i:Y_(o(i),t,r)}const X_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q_=e=>t=>1-e(1-t),J_=Zf(.33,1.53,.69,.99),uS=Q_(J_),Z_=X_(uS),eA=e=>(e*=2)<1?.5*uS(e):.5*(2-Math.pow(2,-10*(e-1))),dS=e=>1-Math.sin(Math.acos(e)),tA=Q_(dS),nA=X_(dS),rA=e=>/^0[^.\s]+$/u.test(e);function N9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rA(e):!0}let Cw=Gn;const oA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),iA=e=>t=>typeof t=="string"&&t.startsWith(e),sA=iA("--"),B9=iA("var(--"),fS=e=>B9(e)?z9.test(e.split("/*")[0].trim()):!1,z9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V9(e){const t=H9.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function aA(e,t,n=1){const[r,o]=V9(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return oA(s)?parseFloat(s):s}return fS(o)?aA(o,t,n+1):o}const Js=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Pf={...Pu,transform:e=>Js(0,1,e)},Yp={...Pu,default:1},ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vs=ep("deg"),si=ep("%"),Ge=ep("px"),U9=ep("vh"),G9=ep("vw"),Pk={...si,parse:e=>si.parse(e)/100,transform:e=>si.transform(e*100)},W9=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ik=e=>e===Pu||e===Ge,kk=(e,t)=>parseFloat(e.split(", ")[t]),Tk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return kk(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?kk(i[1],e):0}},K9=new Set(["x","y","z"]),q9=Jf.filter(e=>!K9.has(e));function Y9(e){const t=[];return q9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Tk(4,13),y:Tk(5,14)};qc.translateX=qc.x;qc.translateY=qc.y;const lA=e=>t=>t.test(e),X9={test:e=>e==="auto",parse:e=>e},cA=[Pu,Ge,si,vs,G9,U9,X9],Ek=e=>cA.find(lA(e)),Na=new Set;let xw=!1,Sw=!1;function uA(){if(Sw){const e=Array.from(Na).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Y9(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sw=!1,xw=!1,Na.forEach(e=>e.complete()),Na.clear()}function dA(){Na.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sw=!0)})}function Q9(){dA(),uA()}class pS{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Na.add(this),xw||(xw=!0,It.read(dA),It.resolveKeyframes(uA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,hS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function J9(e){return e==null}const Z9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mS=(e,t)=>n=>!!(typeof n=="string"&&Z9.test(n)&&n.startsWith(e)||t&&!J9(n)&&Object.prototype.hasOwnProperty.call(n,t)),fA=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(hS);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},eG=e=>Js(0,255,e),cb={...Pu,transform:e=>Math.round(eG(e))},$a={test:mS("rgb","red"),parse:fA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cb.transform(e)+", "+cb.transform(t)+", "+cb.transform(n)+", "+Ld(Pf.transform(r))+")"};function tG(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Pw={test:mS("#"),parse:tG,transform:$a.transform},ac={test:mS("hsl","hue"),parse:fA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+si.transform(Ld(t))+", "+si.transform(Ld(n))+", "+Ld(Pf.transform(r))+")"},Nn={test:e=>$a.test(e)||Pw.test(e)||ac.test(e),parse:e=>$a.test(e)?$a.parse(e):ac.test(e)?ac.parse(e):Pw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$a.transform(e):ac.transform(e)},nG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hS))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(nG))===null||n===void 0?void 0:n.length)||0)>0}const pA="number",hA="color",oG="var",iG="var(",Ok="${}",sG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function If(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(sG,l=>(Nn.test(l)?(r.color.push(i),o.push(hA),n.push(Nn.parse(l))):l.startsWith(iG)?(r.var.push(i),o.push(oG),n.push(l)):(r.number.push(i),o.push(pA),n.push(parseFloat(l))),++i,Ok)).split(Ok);return{values:n,split:a,indexes:r,types:o}}function mA(e){return If(e).values}function gA(e){const{split:t,types:n}=If(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function lG(e){const t=mA(e);return gA(e)(t.map(aG))}const Zs={test:rG,parse:mA,createTransformer:gA,getAnimatableNone:lG},cG=new Set(["brightness","contrast","saturate","opacity"]);function uG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hS)||[];if(!r)return e;const o=n.replace(r,"");let i=cG.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dG=/\b([a-z-]*)\(.*?\)/gu,Iw={...Zs,getAnimatableNone:e=>{const t=e.match(dG);return t?t.map(uG).join(" "):e}},fG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},pG={rotate:vs,rotateX:vs,rotateY:vs,rotateZ:vs,scale:Yp,scaleX:Yp,scaleY:Yp,scaleZ:Yp,skew:vs,skewX:vs,skewY:vs,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Pf,originX:Pk,originY:Pk,originZ:Ge},Mk={...Pu,transform:Math.round},gS={...fG,...pG,zIndex:Mk,size:Ge,fillOpacity:Pf,strokeOpacity:Pf,numOctaves:Mk},hG={...gS,color:Nn,backgroundColor:Nn,outlineColor:Nn,fill:Nn,stroke:Nn,borderColor:Nn,borderTopColor:Nn,borderRightColor:Nn,borderBottomColor:Nn,borderLeftColor:Nn,filter:Iw,WebkitFilter:Iw},vS=e=>hG[e];function vA(e,t){let n=vS(e);return n!==Iw&&(n=Zs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mG=new Set(["auto","none","0"]);function gG(e,t,n){let r=0,o;for(;r{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function yS(e){return typeof e=="function"}let Mh;function vG(){Mh=void 0}const ai={now:()=>(Mh===void 0&&ai.set(kn.isProcessing||$9.useManualTiming?kn.timestamp:performance.now()),Mh),set:e=>{Mh=e,queueMicrotask(vG)}},Rk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zs.test(e)||e==="0")&&!e.startsWith("url("));function yG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nwG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Q9(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!bG(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(Tv(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function wA(e,t){return t?e*(1e3/t):0}const CG=5;function CA(e,t,n){const r=Math.max(t-CG,0);return wA(n-e(r),t-r)}const ub=.001,xG=.01,SG=10,PG=.05,IG=1;function kG({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Js(PG,IG,s),e=Js(xG,SG,Hi(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=kw(c,s),m=Math.exp(-d);return ub-f/h*m},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=kw(Math.pow(c,2),s);return(-o(c)+ub>0?-1:1)*((f-h)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-ub+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=EG(o,i,a);if(e=zi(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const TG=12;function EG(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function RG(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!$k(e,MG)&&$k(e,OG)){const n=kG(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function xA({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=RG({...r,velocity:-Hi(r.velocity||0)}),h=d||0,m=l/(2*Math.sqrt(a*c)),y=i-o,C=Hi(Math.sqrt(a/c)),w=Math.abs(y)<5;n||(n=w?.01:2),t||(t=w?.005:.5);let b;if(m<1){const g=kw(C,m);b=x=>{const P=Math.exp(-m*C*x);return i-P*((h+m*C*y)/g*Math.sin(g*x)+y*Math.cos(g*x))}}else if(m===1)b=g=>i-Math.exp(-C*g)*(y+(h+C*y)*g);else{const g=C*Math.sqrt(m*m-1);b=x=>{const P=Math.exp(-m*C*x),I=Math.min(g*x,300);return i-P*((h+m*C*y)*Math.sinh(I)+g*y*Math.cosh(I))/g}}return{calculatedDuration:f&&u||null,next:g=>{const x=b(g);if(f)s.done=g>=u;else{let P=0;m<1&&(P=g===0?zi(h):CA(b,g,x));const I=Math.abs(P)<=n,T=Math.abs(i-x)<=t;s.done=I&&T}return s.value=s.done?i:x,s}}}function _k({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&Ml,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)-y*Math.exp(-M/r),g=M=>w+b(M),x=M=>{const k=b(M),S=g(M);f.done=Math.abs(k)<=c,f.value=f.done?w:S};let P,I;const T=M=>{h(f.value)&&(P=M,I=xA({keyframes:[f.value,m(f.value)],velocity:CA(g,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:M=>{let k=!1;return!I&&P===void 0&&(k=!0,x(M),T(M)),P!==void 0&&M>=P?I.next(M-P):(!k&&x(M),f)}}}const $G=Zf(.42,0,1,1),_G=Zf(0,0,.58,1),SA=Zf(.42,0,.58,1),AG=e=>Array.isArray(e)&&typeof e[0]!="number",bS=e=>Array.isArray(e)&&typeof e[0]=="number",Ak={linear:Gn,easeIn:$G,easeInOut:SA,easeOut:_G,circIn:dS,circInOut:nA,circOut:tA,backIn:uS,backInOut:Z_,backOut:J_,anticipate:eA},Dk=e=>{if(bS(e)){Cw(e.length===4);const[t,n,r,o]=e;return Zf(t,n,r,o)}else if(typeof e=="string")return Cw(Ak[e]!==void 0),Ak[e];return e},DG=(e,t)=>n=>t(e(n)),Vi=(...e)=>e.reduce(DG),Yc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Vt=(e,t,n)=>e+(t-e)*n;function db(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=db(l,a,e+1/3),i=db(l,a,e),s=db(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Em(e,t){return n=>n>0?t:e}const fb=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},FG=[Pw,$a,ac],jG=e=>FG.find(t=>t.test(e));function Lk(e){const t=jG(e);if(!t)return!1;let n=t.parse(e);return t===ac&&(n=LG(n)),n}const Fk=(e,t)=>{const n=Lk(e),r=Lk(t);if(!n||!r)return Em(e,t);const o={...n};return i=>(o.red=fb(n.red,r.red,i),o.green=fb(n.green,r.green,i),o.blue=fb(n.blue,r.blue,i),o.alpha=Vt(n.alpha,r.alpha,i),$a.transform(o))},Tw=new Set(["none","hidden"]);function NG(e,t){return Tw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function BG(e,t){return n=>Vt(e,t,n)}function wS(e){return typeof e=="number"?BG:typeof e=="string"?fS(e)?Em:Nn.test(e)?Fk:VG:Array.isArray(e)?PA:typeof e=="object"?Nn.test(e)?Fk:zG:Em}function PA(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>wS(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function HG(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Zs.createTransformer(t),r=If(e),o=If(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Tw.has(e)&&!o.values.length||Tw.has(t)&&!r.values.length?NG(e,t):Vi(PA(HG(r,o),o.values),n):Em(e,t)};function IA(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vt(e,t,n):wS(e)(e,t)}function UG(e,t,n){const r=[],o=n||IA,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=UG(t,r,o),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(Js(e[0],e[i-1],c)):l}function WG(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yc(0,t,r);e.push(Vt(n,1,o))}}function KG(e){const t=[0];return WG(t,e.length-1),t}function qG(e,t){return e.map(n=>n*t)}function YG(e,t){return e.map(()=>t||SA).splice(0,e.length-1)}function Om({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=AG(r)?r.map(Dk):Dk(r),i={done:!1,value:t[0]},s=qG(n&&n.length===t.length?n:KG(t),e),a=GG(s,t,{ease:Array.isArray(o)?o:YG(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const jk=2e4;function XG(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=jk?1/0:t}const QG=e=>{const t=({timestamp:n})=>e(n);return{start:()=>It.update(t,!0),stop:()=>Qs(t),now:()=>kn.isProcessing?kn.timestamp:ai.now()}},JG={decay:_k,inertia:_k,tween:Om,keyframes:Om,spring:xA},ZG=e=>e/100;class CS extends bA{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||pS,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=yS(n)?n:JG[n]||Om;let l,c;a!==Om&&typeof t[0]!="number"&&(l=Vi(ZG,IA(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=XG(u));const{calculatedDuration:d}=u,f=d+o,h=f*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?w<0:w>u;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,x=i;if(h){const M=Math.min(this.currentTime,u)/d;let k=Math.floor(M),S=M%1;!S&&M>=1&&(S=1),S===1&&k--,k=Math.min(k,h+1),!!(k%2)&&(m==="reverse"?(S=1-S,y&&(S-=y/d)):m==="mirror"&&(x=s)),g=Js(0,1,S)*d}const P=b?{done:!1,value:l[0]}:x.next(g);a&&(P.value=a(P.value));let{done:I}=P;!b&&c!==null&&(I=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return T&&o!==void 0&&(P.value=Tv(l,this.options,o)),C&&C(P.value),T&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Hi(t.calculatedDuration):0}get time(){return Hi(this.currentTime)}set time(t){t=zi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=QG,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const eW=new Set(["opacity","clipPath","filter","transform"]),tW=10,nW=(e,t)=>{let n="";const r=Math.max(Math.round(t/tW),2);for(let o=0;o(t===void 0&&(t=e()),t)}const rW={linearEasing:void 0};function oW(e,t){const n=xS(e);return()=>{var r;return(r=rW[t])!==null&&r!==void 0?r:n()}}const Mm=oW(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function kA(e){return!!(typeof e=="function"&&Mm()||!e||typeof e=="string"&&(e in Ew||Mm())||bS(e)||Array.isArray(e)&&e.every(kA))}const wd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ew={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wd([0,.65,.55,1]),circOut:wd([.55,0,1,.45]),backIn:wd([.31,.01,.66,-.59]),backOut:wd([.33,1.53,.69,.99])};function TA(e,t){if(e)return typeof e=="function"&&Mm()?nW(e,t):bS(e)?wd(e):Array.isArray(e)?e.map(n=>TA(n,t)||Ew.easeOut):Ew[e]}function iW(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=TA(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Nk(e,t){e.timeline=t,e.onfinish=null}const sW=xS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rm=10,aW=2e4;function lW(e){return yS(e.type)||e.type==="spring"||!kA(e.ease)}function cW(e,t){const n=new CS({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Mm()&&uW(s)&&(s=EA[s]),lW(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...C}=this.options,w=cW(t,C);t=w.keyframes,t.length===1&&(t[1]=t[0]),o=w.duration,i=w.times,s=w.ease,a="keyframes"}const d=iW(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Nk(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Tv(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Gn;const{animation:r}=n;Nk(r,t)}return Gn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...h}=this.options,m=new CS({...h,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=zi(this.time);c.setWithVelocity(m.sample(y-Rm).value,m.sample(y).value,Rm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return sW()&&r&&eW.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const dW=xS(()=>window.ScrollTimeline!==void 0);class fW{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rdW()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function pW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const SS=(e,t,n,r={},o,i)=>s=>{const a=cS(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-zi(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};pW(a)||(u={...u,...R9(e,u)}),u.duration&&(u.duration=zi(u.duration)),u.repeatDelay&&(u.repeatDelay=zi(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Tv(u.keyframes,a);if(f!==void 0)return It.update(()=>{u.onUpdate(f),u.onComplete()}),new fW([])}return!i&&Bk.supports(u)?new Bk(u):new CS(u)},hW=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mW=e=>ww(e)?e[e.length-1]||0:e;function PS(e,t){e.indexOf(t)===-1&&e.push(t)}function IS(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kS{constructor(){this.subscriptions=[]}add(t){return PS(this.subscriptions,t),()=>IS(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class vW{constructor(t,n={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=ai.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new kS);const r=this.events[t].add(n);return t==="change"?()=>{r(),It.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zk);return wA(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kf(e,t){return new vW(e,t)}function yW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kf(n))}function bW(e,t){const n=kv(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=mW(i[s]);yW(e,s,a)}}const TS=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),wW="framerAppearId",OA="data-"+TS(wW);function MA(e){return e.props[OA]}const Vn=e=>!!(e&&e.getVelocity);function CW(e){return!!(Vn(e)&&e.add)}function Ow(e,t){const n=e.getValue("willChange");if(CW(n))return n.add(t)}function xW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function RA(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=l[d];if(h===void 0||u&&xW(u,d))continue;const m={delay:n,...cS(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const w=MA(e);if(w){const b=window.MotionHandoffAnimation(w,d,It);b!==null&&(m.startTime=b,y=!0)}}Ow(e,d),f.start(SS(d,f,h,e.shouldReduceMotion&&pl.has(d)?{type:!1}:m,e,y));const C=f.animation;C&&c.push(C)}return a&&Promise.all(c).then(()=>{It.update(()=>{a&&bW(e,a)})}),c}function Mw(e,t,n={}){var r;const o=kv(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(RA(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return SW(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function SW(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(PW).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Mw(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function PW(e,t){return e.sortNodePosition(t)}function IW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Mw(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Mw(e,t,n);else{const o=typeof t=="function"?kv(e,t,n.custom):t;r=Promise.all(RA(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const kW=lS.length;function $A(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$A(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>IW(e,n,r)))}function MW(e){let t=OW(e),n=Hk(),r=!0;const o=l=>(c,u)=>{var d;const f=kv(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...y}=f;c={...c,...y,...m}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=$A(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let C=0;Cm&&x,k=!1;const S=Array.isArray(g)?g:[g];let R=S.reduce(o(w),{});P===!1&&(R={});const{prevResolvedValues:O={}}=b,A={...O,...R},D=L=>{M=!0,f.has(L)&&(k=!0,f.delete(L)),b.needsAnimating[L]=!0;const F=e.getValue(L);F&&(F.liveStyle=!1)};for(const L in A){const F=R[L],j=O[L];if(h.hasOwnProperty(L))continue;let N=!1;ww(F)&&ww(j)?N=!K_(F,j):N=F!==j,N?F!=null?D(L):f.add(L):F!==void 0&&f.has(L)?D(L):b.protectedKeys[L]=!0}b.prevProp=g,b.prevResolvedValues=R,b.isActive&&(h={...h,...R}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(I&&T)||k)&&d.push(...S.map(L=>({animation:L,options:{type:w}})))}if(f.size){const C={};f.forEach(w=>{const b=e.getBaseTarget(w),g=e.getValue(w);g&&(g.liveStyle=!0),C[w]=b??null}),d.push({animation:C})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Hk(),r=!0}}}function RW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K_(t,e):!1}function ga(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hk(){return{animate:ga(!0),whileInView:ga(),whileHover:ga(),whileTap:ga(),whileDrag:ga(),whileFocus:ga(),exit:ga()}}class la{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $W extends la{constructor(t){super(t),t.animationState||(t.animationState=MW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Iv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _W=0;class AW extends la{constructor(){super(...arguments),this.id=_W++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const DW={animation:{Feature:$W},exit:{Feature:AW}},_A=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ev(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const LW=e=>t=>_A(t)&&e(t,Ev(t));function Ai(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ui(e,t,n,r){return Ai(e,t,LW(n),r)}const Vk=(e,t)=>Math.abs(e-t);function FW(e,t){const n=Vk(e.x,t.x),r=Vk(e.y,t.y);return Math.sqrt(n**2+r**2)}class AA{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=hb(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=FW(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=kn;this.history.push({...m,timestamp:y});const{onStart:C,onMove:w}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=pb(f,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=hb(d.type==="pointercancel"?this.lastMoveEventInfo:pb(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,C),m&&m(d,C)},!_A(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ev(t),a=pb(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=kn;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,hb(a,this.history)),this.removeListeners=Vi(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qs(this.updatePoint)}}function pb(e,t){return t?{point:t(e.point)}:e}function Uk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hb({point:e},t){return{point:e,delta:Uk(e,DA(t)),offset:Uk(e,jW(t)),velocity:NW(t,.1)}}function jW(e){return e[0]}function DA(e){return e[e.length-1]}function NW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=DA(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zi(t)));)n--;if(!r)return{x:0,y:0};const i=Hi(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function LA(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gk=LA("dragHorizontal"),Wk=LA("dragVertical");function FA(e){let t=!1;if(e==="y")t=Wk();else if(e==="x")t=Gk();else{const n=Gk(),r=Wk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function jA(){const e=FA(!0);return e?(e(),!1):!0}function lc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const NA=1e-4,BW=1-NA,zW=1+NA,BA=.01,HW=0-BA,VW=0+BA;function Ur(e){return e.max-e.min}function UW(e,t,n){return Math.abs(e-t)<=n}function Kk(e,t,n,r=.5){e.origin=r,e.originPoint=Vt(t.min,t.max,e.origin),e.scale=Ur(n)/Ur(t),e.translate=Vt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=BW&&e.scale<=zW||isNaN(e.scale))&&(e.scale=1),(e.translate>=HW&&e.translate<=VW||isNaN(e.translate))&&(e.translate=0)}function Fd(e,t,n,r){Kk(e.x,t.x,n.x,r?r.originX:void 0),Kk(e.y,t.y,n.y,r?r.originY:void 0)}function qk(e,t,n){e.min=n.min+t.min,e.max=e.min+Ur(t)}function GW(e,t,n){qk(e.x,t.x,n.x),qk(e.y,t.y,n.y)}function Yk(e,t,n){e.min=t.min-n.min,e.max=e.min+Ur(t)}function jd(e,t,n){Yk(e.x,t.x,n.x),Yk(e.y,t.y,n.y)}function WW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Vt(n,e,r.max):Math.min(e,n)),e}function Xk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function KW(e,{top:t,left:n,bottom:r,right:o}){return{x:Xk(e.x,n,o),y:Xk(e.y,t,r)}}function Qk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Yc(t.min,t.max-r,e.min):r>o&&(n=Yc(e.min,e.max-o,t.min)),Js(0,1,n)}function XW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Rw=.35;function QW(e=Rw){return e===!1?e=0:e===!0&&(e=Rw),{x:Jk(e,"left","right"),y:Jk(e,"top","bottom")}}function Jk(e,t,n){return{min:Zk(e,t),max:Zk(e,n)}}function Zk(e,t){return typeof e=="number"?e:e[t]||0}const eT=()=>({translate:0,scale:1,origin:0,originPoint:0}),cc=()=>({x:eT(),y:eT()}),tT=()=>({min:0,max:0}),rn=()=>({x:tT(),y:tT()});function Jr(e){return[e("x"),e("y")]}function zA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function JW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mb(e){return e===void 0||e===1}function $w({scale:e,scaleX:t,scaleY:n}){return!mb(e)||!mb(t)||!mb(n)}function Sa(e){return $w(e)||HA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function HA(e){return nT(e.x)||nT(e.y)}function nT(e){return e&&e!=="0%"}function $m(e,t,n){const r=e-n,o=t*r;return n+o}function rT(e,t,n,r,o){return o!==void 0&&(e=$m(e,o,r)),$m(e,n,r)+t}function _w(e,t=0,n=1,r,o){e.min=rT(e.min,t,n,r,o),e.max=rT(e.max,t,n,r,o)}function VA(e,{x:t,y:n}){_w(e.x,t.translate,t.scale,t.originPoint),_w(e.y,n.translate,n.scale,n.originPoint)}const oT=.999999999999,iT=1.0000000000001;function e7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aoT&&(t.x=1),t.yoT&&(t.y=1)}function uc(e,t){e.min=e.min+t,e.max=e.max+t}function sT(e,t,n,r,o=.5){const i=Vt(e.min,e.max,o);_w(e,t,n,i,r)}function dc(e,t){sT(e.x,t.x,t.scaleX,t.scale,t.originX),sT(e.y,t.y,t.scaleY,t.scale,t.originY)}function UA(e,t){return zA(ZW(e.getBoundingClientRect(),t))}function t7(e,t,n){const r=UA(e,n),{scroll:o}=t;return o&&(uc(r.x,o.offset.x),uc(r.y,o.offset.y)),r}const GA=({current:e})=>e?e.ownerDocument.defaultView:null,n7=new WeakMap;class r7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ev(u,"page").point)},i=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=FA(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jr(C=>{let w=this.getAxisMotionValue(C).get()||0;if(si.test(w)){const{projection:b}=this.visualElement;if(b&&b.layout){const g=b.layout.layoutBox[C];g&&(w=Ur(g)*(parseFloat(w)/100))}}this.originPoint[C]=w}),m&&It.postRender(()=>m(u,d)),Ow(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(h&&this.currentDirection===null){this.currentDirection=o7(C),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),y&&y(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Jr(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new AA(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:GA(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&It.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Xp(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=WW(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&lc(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=KW(o.layoutBox,n):this.constraints=!1,this.elastic=QW(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Jr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=XW(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!lc(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=t7(r,o.root,this.visualElement.getTransformPagePoint());let s=qW(o.layout.layoutBox,i);if(n){const a=n(JW(s));this.hasMutatedConstraints=!!a,a&&(s=zA(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Jr(u=>{if(!Xp(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ow(this.visualElement,t),r.start(SS(t,r,0,n,this.visualElement,!1))}stopAnimation(){Jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Jr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Jr(n=>{const{drag:r}=this.getProps();if(!Xp(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Vt(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!lc(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Jr(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=YW({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Jr(s=>{if(!Xp(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Vt(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;n7.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();lc(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),It.read(r);const s=Ai(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Jr(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Rw,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Xp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function o7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class i7 extends la{constructor(t){super(t),this.removeGroupControls=Gn,this.removeListeners=Gn,this.controls=new r7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const aT=e=>(t,n)=>{e&&It.postRender(()=>e(t,n))};class s7 extends la{constructor(){super(...arguments),this.removePointerDownListener=Gn}onPointerDown(t){this.session=new AA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:GA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:aT(t),onStart:aT(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&It.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ov=p.createContext(null);function a7(){const e=p.useContext(Ov);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=p.useId();p.useEffect(()=>r(o),[]);const i=p.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const ES=p.createContext({}),WA=p.createContext({}),Rh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const nd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=lT(e,t.target.x),r=lT(e,t.target.y);return`${n}% ${r}%`}},l7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Zs.parse(e);if(o.length>5)return r;const i=Zs.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Vt(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},_m={};function c7(e){Object.assign(_m,e)}const{schedule:OS,cancel:D1e}=q_(queueMicrotask,!1);class u7 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;c7(d7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Rh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||It.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),OS.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function KA(e){const[t,n]=a7(),r=p.useContext(ES);return v.jsx(u7,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(WA),isPresent:t,safeToRemove:n})}const d7={borderRadius:{...nd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nd,borderTopRightRadius:nd,borderBottomLeftRadius:nd,borderBottomRightRadius:nd,boxShadow:l7},qA=["TopLeft","TopRight","BottomLeft","BottomRight"],f7=qA.length,cT=e=>typeof e=="string"?parseFloat(e):e,uT=e=>typeof e=="number"||Ge.test(e);function p7(e,t,n,r,o,i){o?(e.opacity=Vt(0,n.opacity!==void 0?n.opacity:1,h7(r)),e.opacityExit=Vt(t.opacity!==void 0?t.opacity:1,0,m7(r))):i&&(e.opacity=Vt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Yc(e,t,r))}function fT(e,t){e.min=t.min,e.max=t.max}function Xr(e,t){fT(e.x,t.x),fT(e.y,t.y)}function pT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hT(e,t,n,r,o){return e-=t,e=$m(e,1/n,r),o!==void 0&&(e=$m(e,1/o,r)),e}function g7(e,t=0,n=1,r=.5,o,i=e,s=e){if(si.test(t)&&(t=parseFloat(t),t=Vt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Vt(i.min,i.max,r);e===i&&(a-=t),e.min=hT(e.min,t,n,a,o),e.max=hT(e.max,t,n,a,o)}function mT(e,t,[n,r,o],i,s){g7(e,t[n],t[r],t[o],t.scale,i,s)}const v7=["x","scaleX","originX"],y7=["y","scaleY","originY"];function gT(e,t,n,r){mT(e.x,t,v7,n?n.x:void 0,r?r.x:void 0),mT(e.y,t,y7,n?n.y:void 0,r?r.y:void 0)}function vT(e){return e.translate===0&&e.scale===1}function XA(e){return vT(e.x)&&vT(e.y)}function yT(e,t){return e.min===t.min&&e.max===t.max}function b7(e,t){return yT(e.x,t.x)&&yT(e.y,t.y)}function bT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function QA(e,t){return bT(e.x,t.x)&&bT(e.y,t.y)}function wT(e){return Ur(e.x)/Ur(e.y)}function CT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class w7{constructor(){this.members=[]}add(t){PS(this.members,t),t.scheduleRender()}remove(t){if(IS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function C7(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const x7=(e,t)=>e.depth-t.depth;class S7{constructor(){this.children=[],this.isDirty=!1}add(t){PS(this.children,t),this.isDirty=!0}remove(t){IS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(x7),this.isDirty=!1,this.children.forEach(t)}}function $h(e){const t=Vn(e)?e.get():e;return hW(t)?t.toValue():t}function P7(e,t){const n=ai.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Qs(r),e(i-t))};return It.read(r,!0),()=>Qs(r)}function I7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function k7(e,t,n){const r=Vn(e)?e:kf(e);return r.start(SS("",r,t,n)),r.animation}const Pa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Cd=typeof window<"u"&&window.MotionDebug!==void 0,gb=["","X","Y","Z"],T7={visibility:"hidden"},xT=1e3;let E7=0;function vb(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function JA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=MA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",It,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&JA(r)}function ZA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=E7++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Cd&&(Pa.totalNodes=Pa.resolvedTargetDeltas=Pa.recalculatedProjection=0),this.nodes.forEach(R7),this.nodes.forEach(L7),this.nodes.forEach(F7),this.nodes.forEach($7),Cd&&window.MotionDebug.record(Pa)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=P7(f,250),Rh.hasAnimatedSinceResize&&(Rh.hasAnimatedSinceResize=!1,this.nodes.forEach(PT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||H7,{onLayoutAnimationStart:C,onLayoutAnimationComplete:w}=u.getProps(),b=!this.targetLayout||!QA(this.targetLayout,m)||h,g=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const x={...cS(y,"layout"),onPlay:C,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||PT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(j7),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&JA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=x/1e3;IT(d.x,s.x,P),IT(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jd(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),B7(this.relativeTarget,this.relativeTargetOrigin,f,P),g&&b7(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=rn()),Xr(g,this.relativeTarget)),y&&(this.animationValues=u,p7(u,c,this.latestValues,P,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=It.update(()=>{Rh.hasAnimatedSinceResize=!0,this.currentAnimation=k7(0,xT,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&eD(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||rn();const d=Ur(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ur(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Xr(a,l),dc(a,u),Fd(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new w7),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&vb("z",s,c,this.animationValues);for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ST),this.root.sharedNodes.clear()}}}function O7(e){e.updateLayout()}function M7(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Jr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ur(f);f.min=r[d].min,f.max=f.min+h}):eD(i,n.layoutBox,r)&&Jr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ur(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=cc();Fd(a,r,n.layoutBox);const l=cc();s?Fd(l,e.applyTransform(o,!0),n.measuredBox):Fd(l,r,n.layoutBox);const c=!XA(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=rn();jd(m,n.layoutBox,f.layoutBox);const y=rn();jd(y,r,h.layoutBox),QA(m,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function R7(e){Cd&&Pa.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _7(e){e.clearSnapshot()}function ST(e){e.clearMeasurements()}function A7(e){e.isLayoutDirty=!1}function D7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function PT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function L7(e){e.resolveTargetDelta()}function F7(e){e.calcProjection()}function j7(e){e.resetSkewAndRotation()}function N7(e){e.removeLeadSnapshot()}function IT(e,t,n){e.translate=Vt(t.translate,0,n),e.scale=Vt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kT(e,t,n,r){e.min=Vt(t.min,n.min,r),e.max=Vt(t.max,n.max,r)}function B7(e,t,n,r){kT(e.x,t.x,n.x,r),kT(e.y,t.y,n.y,r)}function z7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const H7={duration:.45,ease:[.4,0,.1,1]},TT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ET=TT("applewebkit/")&&!TT("chrome/")?Math.round:Gn;function OT(e){e.min=ET(e.min),e.max=ET(e.max)}function V7(e){OT(e.x),OT(e.y)}function eD(e,t,n){return e==="position"||e==="preserve-aspect"&&!UW(wT(t),wT(n),.2)}function U7(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const G7=ZA({attachResizeListener:(e,t)=>Ai(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),yb={current:void 0},tD=ZA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yb.current){const e=new G7({});e.mount(window),e.setOptions({layoutScroll:!0}),yb.current=e}return yb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),W7={pan:{Feature:s7},drag:{Feature:i7,ProjectionNode:tD,MeasureLayout:KA}};function MT(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||jA())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&It.postRender(()=>l(i,s))};return Ui(e.current,n,o,{passive:!e.getProps()[r]})}class K7 extends la{mount(){this.unmount=Vi(MT(this.node,!0),MT(this.node,!1))}unmount(){}}class q7 extends la{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vi(Ai(this.node.current,"focus",()=>this.onFocus()),Ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const nD=(e,t)=>t?e===t?!0:nD(e,t.parentElement):!1;function bb(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ev(n))}class Y7 extends la{constructor(){super(...arguments),this.removeStartListeners=Gn,this.removeEndListeners=Gn,this.removeAccessibleListeners=Gn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Ui(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),f=!d&&!nD(this.node.current,a.target)?u:c;f&&It.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Ui(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Vi(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||bb("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&It.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Ai(this.node.current,"keyup",s),bb("down",(a,l)=>{this.startPress(a,l)})},n=Ai(this.node.current,"keydown",t),r=()=>{this.isPressing&&bb("cancel",(i,s)=>this.cancelPress(i,s))},o=Ai(this.node.current,"blur",r);this.removeAccessibleListeners=Vi(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&It.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!jA()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&It.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ui(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ai(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Vi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Aw=new WeakMap,wb=new WeakMap,X7=e=>{const t=Aw.get(e.target);t&&t(e)},Q7=e=>{e.forEach(X7)};function J7({root:e,...t}){const n=e||document;wb.has(n)||wb.set(n,{});const r=wb.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Q7,{root:e,...t})),r[o]}function Z7(e,t,n){const r=J7(t);return Aw.set(e,n),r.observe(e),()=>{Aw.delete(e),r.unobserve(e)}}const eK={some:0,all:1};class tK extends la{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:eK[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Z7(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nK(t,n))&&this.startObserver()}unmount(){}}function nK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rK={inView:{Feature:tK},tap:{Feature:Y7},focus:{Feature:q7},hover:{Feature:K7}},oK={layout:{ProjectionNode:tD,MeasureLayout:KA}},MS=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Mv=p.createContext({}),RS=typeof window<"u",rD=RS?p.useLayoutEffect:p.useEffect,oD=p.createContext({strict:!1});function iK(e,t,n,r,o){var i,s;const{visualElement:a}=p.useContext(Mv),l=p.useContext(oD),c=p.useContext(Ov),u=p.useContext(MS).reducedMotion,d=p.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=p.useContext(WA);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&sK(d.current,n,o,h),p.useInsertionEffect(()=>{f&&f.update(n,c)});const m=n[OA],y=p.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,m)));return rD(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),OS.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),p.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)===null||C===void 0||C.call(window,m)}),y.current=!1))}),f}function sK(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:iD(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&lc(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function iD(e){if(e)return e.options.allowProjection!==!1?e.projection:iD(e.parent)}function aK(e,t,n){return p.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):lc(n)&&(n.current=r))},[t])}function Rv(e){return Iv(e.animate)||lS.some(t=>Sf(e[t]))}function sD(e){return!!(Rv(e)||e.variants)}function lK(e,t){if(Rv(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function cK(e){const{initial:t,animate:n}=lK(e,p.useContext(Mv));return p.useMemo(()=>({initial:t,animate:n}),[RT(t),RT(n)])}function RT(e){return Array.isArray(e)?e.join(" "):e}const $T={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xc={};for(const e in $T)Xc[e]={isEnabled:t=>$T[e].some(n=>!!t[n])};function uK(e){for(const t in e)Xc[t]={...Xc[t],...e[t]}}const dK=Symbol.for("motionComponentSymbol");function fK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&uK(e);function i(a,l){let c;const u={...p.useContext(MS),...a,layoutId:pK(a)},{isStatic:d}=u,f=cK(a),h=r(a,d);if(!d&&RS){hK();const m=mK(u);c=m.MeasureLayout,f.visualElement=iK(o,h,u,t,m.ProjectionNode)}return v.jsxs(Mv.Provider,{value:f,children:[c&&f.visualElement?v.jsx(c,{visualElement:f.visualElement,...u}):null,n(o,a,aK(h,f.visualElement,l),h,d,f.visualElement)]})}const s=p.forwardRef(i);return s[dK]=o,s}function pK({layoutId:e}){const t=p.useContext(ES).id;return t&&e!==void 0?t+"-"+e:e}function hK(e,t){p.useContext(oD).strict}function mK(e){const{drag:t,layout:n}=Xc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const gK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $S(e){return typeof e!="string"||e.includes("-")?!1:!!(gK.indexOf(e)>-1||/[A-Z]/u.test(e))}function aD(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const lD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cD(e,t,n,r){aD(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(lD.has(o)?o:TS(o),t.attrs[o])}function uD(e,{layout:t,layoutId:n}){return pl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_m[e]||e==="opacity")}function _S(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Vn(o[s])||t.style&&Vn(t.style[s])||uD(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function dD(e,t,n){const r=_S(e,t,n);for(const o in e)if(Vn(e[o])||Vn(t[o])){const i=Jf.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function AS(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}function vK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:yK(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const fD=e=>(t,n)=>{const r=p.useContext(Mv),o=p.useContext(Ov),i=()=>vK(e,t,r,o);return n?i():AS(i)};function yK(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=$h(i[f]);let{initial:s,animate:a}=e;const l=Rv(e),c=sD(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Iv(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h({style:{},transform:{},transformOrigin:{},vars:{}}),pD=()=>({...DS(),attrs:{}}),hD=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wK=Jf.length;function CK(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",kK={useVisualState:fD({scrapeMotionValuesFromProps:dD,createRenderState:pD,onMount:(e,t,{renderState:n,latestValues:r})=>{It.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),It.render(()=>{FS(n,r,jS(t.tagName),e.transformTemplate),cD(t,n)})}})},TK={useVisualState:fD({scrapeMotionValuesFromProps:_S,createRenderState:DS})};function mD(e,t,n){for(const r in t)!Vn(t[r])&&!uD(r,n)&&(e[r]=t[r])}function EK({transformTemplate:e},t){return p.useMemo(()=>{const n=DS();return LS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function OK(e,t){const n=e.style||{},r={};return mD(r,n,e),Object.assign(r,EK(e,t)),r}function MK(e,t){const n={},r=OK(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Am(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RK.has(e)}let gD=e=>!Am(e);function $K(e){e&&(gD=t=>t.startsWith("on")?!Am(t):e(t))}try{$K(require("@emotion/is-prop-valid").default)}catch{}function _K(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(gD(o)||n===!0&&Am(o)||!t&&!Am(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function AK(e,t,n,r){const o=p.useMemo(()=>{const i=pD();return FS(i,t,jS(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};mD(i,e.style,e),o.style={...i,...o.style}}return o}function DK(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=($S(n)?AK:MK)(r,i,s,n),c=_K(r,typeof n=="string",e),u=n!==p.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=p.useMemo(()=>Vn(d)?d.get():d,[d]);return p.createElement(n,{...u,children:f})}}function LK(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...$S(r)?kK:TK,preloadedFeatures:e,useRender:DK(o),createVisualElement:t,Component:r};return fK(s)}}const Dw={current:null},vD={current:!1};function FK(){if(vD.current=!0,!!RS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dw.current=e.matches;e.addListener(t),t()}else Dw.current=!1}function jK(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Vn(o))e.addValue(r,o);else if(Vn(i))e.addValue(r,kf(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,kf(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const AT=new WeakMap,NK=[...cA,Nn,Zs],BK=e=>NK.find(lA(e)),DT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ai.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),vD.current||FK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){AT.delete(this.current),this.projection&&this.projection.unmount(),Qs(this.notifyUpdate),Qs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=pl.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&It.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xc){const n=Xc[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=kf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(oA(o)||rA(o))?o=parseFloat(o):!BK(o)&&Zs.test(n)&&(o=vA(t,n)),this.setBaseTarget(t,Vn(o)?o.get():o)),Vn(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=sS(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Vn(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kS),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yD extends zK{constructor(){super(...arguments),this.KeyframeResolver=yA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function HK(e){return window.getComputedStyle(e)}class VK extends yD{constructor(){super(...arguments),this.type="html",this.renderInstance=aD}readValueFromInstance(t,n){if(pl.has(n)){const r=vS(n);return r&&r.default||0}else{const r=HK(t),o=(sA(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return UA(t,n)}build(t,n,r){LS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _S(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class UK extends yD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(pl.has(n)){const r=vS(n);return r&&r.default||0}return n=lD.has(n)?n:TS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dD(t,n,r)}build(t,n,r){FS(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){cD(t,n,r,o)}mount(t){this.isSVGTag=jS(t.tagName),super.mount(t)}}const GK=(e,t)=>$S(e)?new UK(t):new VK(t,{allowProjection:e!==p.Fragment}),WK=LK({...DW,...rK,...W7,...oK},GK),zr=k9(WK);class KK extends p.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function qK({children:e,isPresent:t}){const n=p.useId(),r=p.useRef(null),o=p.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=p.useContext(MS);return p.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + */var rS=Symbol.for("react.element"),oS=Symbol.for("react.portal"),mv=Symbol.for("react.fragment"),gv=Symbol.for("react.strict_mode"),vv=Symbol.for("react.profiler"),yv=Symbol.for("react.provider"),bv=Symbol.for("react.context"),_U=Symbol.for("react.server_context"),wv=Symbol.for("react.forward_ref"),Cv=Symbol.for("react.suspense"),xv=Symbol.for("react.suspense_list"),Sv=Symbol.for("react.memo"),Pv=Symbol.for("react.lazy"),AU=Symbol.for("react.offscreen"),D_;D_=Symbol.for("react.module.reference");function So(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rS:switch(e=e.type,e){case mv:case vv:case gv:case Cv:case xv:return e;default:switch(e=e&&e.$$typeof,e){case _U:case bv:case wv:case Pv:case Sv:case yv:return e;default:return t}}case oS:return t}}}Tt.ContextConsumer=bv;Tt.ContextProvider=yv;Tt.Element=rS;Tt.ForwardRef=wv;Tt.Fragment=mv;Tt.Lazy=Pv;Tt.Memo=Sv;Tt.Portal=oS;Tt.Profiler=vv;Tt.StrictMode=gv;Tt.Suspense=Cv;Tt.SuspenseList=xv;Tt.isAsyncMode=function(){return!1};Tt.isConcurrentMode=function(){return!1};Tt.isContextConsumer=function(e){return So(e)===bv};Tt.isContextProvider=function(e){return So(e)===yv};Tt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rS};Tt.isForwardRef=function(e){return So(e)===wv};Tt.isFragment=function(e){return So(e)===mv};Tt.isLazy=function(e){return So(e)===Pv};Tt.isMemo=function(e){return So(e)===Sv};Tt.isPortal=function(e){return So(e)===oS};Tt.isProfiler=function(e){return So(e)===vv};Tt.isStrictMode=function(e){return So(e)===gv};Tt.isSuspense=function(e){return So(e)===Cv};Tt.isSuspenseList=function(e){return So(e)===xv};Tt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mv||e===vv||e===gv||e===Cv||e===xv||e===AU||typeof e=="object"&&e!==null&&(e.$$typeof===Pv||e.$$typeof===Sv||e.$$typeof===yv||e.$$typeof===bv||e.$$typeof===wv||e.$$typeof===D_||e.getModuleId!==void 0)};Tt.typeOf=So;const Cf=p.createContext({});function DU(e){return Ne("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const LU=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},DU,t)},FU=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),jU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=p.useMemo(()=>({dense:a}),[a]),f={...r,component:s,dense:a,disablePadding:l},h=LU(f);return v.jsx(Cf.Provider,{value:d,children:v.jsxs(FU,{as:s,className:ie(h.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function NU(e){return Ne("MuiSvgIcon",e)}Fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const BU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(n)}`]};return ye(o,NU,r)},zU=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${re(n.color)}`],t[`fontSize${re(n.fontSize)}`]]}})(_e(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var C,w;return{props:{color:y},style:{color:(w=(C=(e.vars??e).palette)==null?void 0:C[y])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Im=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=r,m=p.isValidElement(o)&&o.type==="svg",y={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m},C={};u||(C.viewBox=f);const w=BU(y);return v.jsxs(zU,{as:a,className:ie(w.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...h,...m&&o.props,ownerState:y,children:[m?o.props.children:o,d?v.jsx("title",{children:d}):null]})});Im&&(Im.muiName="SvgIcon");function Te(e,t){function n(r,o){return v.jsx(Im,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Im.muiName,p.memo(p.forwardRef(n))}function ib(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function L_(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ed(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!L_(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const iS=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,h=p.useRef(null),m=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ht(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(g,{direction:x})=>{const P=!h.current.style.width;if(g.clientHeight{const x=h.current,P=g.key;if(g.ctrlKey||g.metaKey||g.altKey){u&&u(g);return}const T=Wt(x).activeElement;if(P==="ArrowDown")g.preventDefault(),ed(x,T,c,l,ib);else if(P==="ArrowUp")g.preventDefault(),ed(x,T,c,l,gk);else if(P==="Home")g.preventDefault(),ed(x,null,c,l,ib);else if(P==="End")g.preventDefault(),ed(x,null,c,l,gk);else if(P.length===1){const M=m.current,k=P.toLowerCase(),S=performance.now();M.keys.length>0&&(S-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&k!==M.keys[0]&&(M.repeating=!1)),M.lastTime=S,M.keys.push(k);const R=T&&!M.repeating&&L_(T,M);M.previousKeyMatched&&(R||ed(x,T,!1,l,ib,M))?g.preventDefault():M.previousKeyMatched=!1}u&&u(g)},C=mt(h,n);let w=-1;p.Children.forEach(s,(g,x)=>{if(!p.isValidElement(g)){w===x&&(w+=1,w>=s.length&&(w=-1));return}g.props.disabled||(d==="selectedMenu"&&g.props.selected||w===-1)&&(w=x),w===x&&(g.props.disabled||g.props.muiSkipListHighlight||g.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=p.Children.map(s,(g,x)=>{if(x===w){const P={};return i&&(P.autoFocus=!0),g.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),p.cloneElement(g,P)}return g});return v.jsx(jU,{role:"menu",ref:C,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:b})});function km(e){return typeof e=="string"}const F_=e=>e.scrollTop;function Tm(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function yw(e){return`scale(${e}, ${e**2})`}const HU={entering:{opacity:1,transform:yw(1)},entered:{opacity:1,transform:"none"}},sb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xf=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:m,timeout:y="auto",TransitionComponent:C=wi,...w}=t,b=uo(),g=p.useRef(),x=Su(),P=p.useRef(null),I=mt(P,fl(i),n),T=_=>$=>{if(_){const L=P.current;$===void 0?_(L):_(L,$)}},M=T(u),k=T((_,$)=>{F_(_);const{duration:L,delay:F,easing:j}=Tm({style:m,timeout:y,easing:s},{mode:"enter"});let N;y==="auto"?(N=x.transitions.getAutoHeightDuration(_.clientHeight),g.current=N):N=L,_.style.transition=[x.transitions.create("opacity",{duration:N,delay:F}),x.transitions.create("transform",{duration:sb?N:N*.666,delay:F,easing:j})].join(","),l&&l(_,$)}),S=T(c),R=T(h),O=T(_=>{const{duration:$,delay:L,easing:F}=Tm({style:m,timeout:y,easing:s},{mode:"exit"});let j;y==="auto"?(j=x.transitions.getAutoHeightDuration(_.clientHeight),g.current=j):j=$,_.style.transition=[x.transitions.create("opacity",{duration:j,delay:L}),x.transitions.create("transform",{duration:sb?j:j*.666,delay:sb?L:L||j*.333,easing:F})].join(","),_.style.opacity=0,_.style.transform=yw(.75),d&&d(_)}),A=T(f),D=_=>{y==="auto"&&b.start(g.current||0,_),r&&r(P.current,_)};return v.jsx(C,{appear:o,in:a,nodeRef:P,onEnter:k,onEntered:S,onEntering:M,onExit:O,onExited:A,onExiting:R,addEndListener:D,timeout:y==="auto"?null:y,...w,children:(_,$)=>p.cloneElement(i,{style:{opacity:0,transform:yw(.75),visibility:_==="exited"&&!a?"hidden":void 0,...HU[_],...m,...i.props.style},ref:I,...$})})});xf&&(xf.muiSupportAuto=!0);function VU(e){const t=Wt(e);return t.body===e?hi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vk(e){return parseInt(hi(e).getComputedStyle(e).paddingRight,10)||0}function UU(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function yk(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=!i.includes(s),l=!UU(s);a&&l&&Dd(s,o)})}function ab(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function GU(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(VU(r)){const s=x_(hi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${vk(r)+s}px`;const a=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${vk(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const s=r.parentElement,a=hi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function WU(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class KU{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dd(t.modalRef,!1);const o=WU(n);yk(n,t.mount,t.modalRef,o,!0);const i=ab(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ab(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=GU(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ab(this.containers,s=>s.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dd(t.modalRef,n),yk(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Dd(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const qU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function YU(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 XU(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function QU(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||XU(e))}function JU(e){const t=[],n=[];return Array.from(e.querySelectorAll(qU)).forEach((r,o)=>{const i=YU(r);i===-1||!QU(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function ZU(){return!0}function j_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=JU,isEnabled:s=ZU,open:a}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),m=p.useRef(null),y=mt(fl(t),m),C=p.useRef(null);p.useEffect(()=>{!a||!m.current||(h.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!m.current)return;const g=Wt(m.current);return m.current.contains(g.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),p.useEffect(()=>{if(!a||!m.current)return;const g=Wt(m.current),x=T=>{C.current=T,!(r||!s()||T.key!=="Tab")&&g.activeElement===m.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{var k,S;const T=m.current;if(T===null)return;if(!g.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(g.activeElement)||r&&g.activeElement!==c.current&&g.activeElement!==u.current)return;if(g.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let M=[];if((g.activeElement===c.current||g.activeElement===u.current)&&(M=i(m.current)),M.length>0){const R=!!((k=C.current)!=null&&k.shiftKey&&((S=C.current)==null?void 0:S.key)==="Tab"),O=M[0],A=M[M.length-1];typeof O!="string"&&typeof A!="string"&&(R?A.focus():O.focus())}else T.focus()};g.addEventListener("focusin",P),g.addEventListener("keydown",x,!0);const I=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(I),g.removeEventListener("focusin",P),g.removeEventListener("keydown",x,!0)}},[n,r,o,s,a,i]);const w=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,f.current=g.target;const x=t.props.onFocus;x&&x(g)},b=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return v.jsxs(p.Fragment,{children:[v.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:y,onFocus:w}),v.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function e8(e){return typeof e=="function"?e():e}const N_=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=mt(p.isValidElement(r)?fl(r):null,n);if(ht(()=>{i||a(e8(o)||document.body)},[o,i]),ht(()=>{if(s&&!i)return xm(n,s),()=>{xm(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return v.jsx(p.Fragment,{children:r})}return v.jsx(p.Fragment,{children:s&&Bg.createPortal(r,s)})});function hn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,h=u[e]||r,m=k_(d[e],o),{props:{component:y,...C},internalRef:w}=I_({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),b=mt(w,m==null?void 0:m.ref,t.ref),g=s?s(C):{},x={...o,...g},P=e==="root"?y||c:y,I=S_(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...C,...P&&{as:P},ref:b},x);return Object.keys(g).forEach(T=>{delete I[T]}),[h,I]}const t8={entering:{opacity:1},entered:{opacity:1}},sS=p.forwardRef(function(t,n){const r=Su(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:y,style:C,timeout:w=o,TransitionComponent:b=wi,...g}=t,x=p.useRef(null),P=mt(x,fl(a),n),I=D=>_=>{if(D){const $=x.current;_===void 0?D($):D($,_)}},T=I(f),M=I((D,_)=>{F_(D);const $=Tm({style:C,timeout:w,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",$),D.style.transition=r.transitions.create("opacity",$),u&&u(D,_)}),k=I(d),S=I(y),R=I(D=>{const _=Tm({style:C,timeout:w,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",_),D.style.transition=r.transitions.create("opacity",_),h&&h(D)}),O=I(m),A=D=>{i&&i(x.current,D)};return v.jsx(b,{appear:s,in:c,nodeRef:x,onEnter:M,onEntered:k,onEntering:T,onExit:R,onExited:O,onExiting:S,addEndListener:A,timeout:w,...g,children:(D,_)=>p.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...t8[D],...C,...a.props.style},ref:P,..._})})});function n8(e){return Ne("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const r8=e=>{const{ownerState:t,...n}=e;return n},o8=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},n8,t)},i8=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),B_=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:h,transitionDuration:m,...y}=r,C={...r,component:s,invisible:a},w=o8(C),b={transition:h,root:c.Root,...f},g={...u,...d},x={slots:b,slotProps:g},[P,I]=hn("root",{elementType:i8,externalForwardedProps:x,className:ie(w.root,i),ownerState:C}),[T,M]=hn("transition",{elementType:sS,externalForwardedProps:x,ownerState:C}),k=r8(M);return v.jsx(T,{in:l,timeout:m,...y,...k,children:v.jsx(P,{"aria-hidden":!0,...I,classes:w,ref:n,children:o})})});function s8(e){return typeof e=="function"?e():e}function a8(e){return e?e.props.hasOwnProperty("in"):!1}const Kp=new KU;function l8(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,d=p.useRef({}),f=p.useRef(null),h=p.useRef(null),m=mt(h,u),[y,C]=p.useState(!c),w=a8(a);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const g=()=>Wt(f.current),x=()=>(d.current.modalRef=h.current,d.current.mount=f.current,d.current),P=()=>{Kp.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},I=nt(()=>{const _=s8(t)||g().body;Kp.add(x(),_),h.current&&P()}),T=()=>Kp.isTopModal(x()),M=nt(_=>{f.current=_,_&&(c&&T()?P():h.current&&Dd(h.current,b))}),k=p.useCallback(()=>{Kp.remove(x(),b)},[b]);p.useEffect(()=>()=>{k()},[k]),p.useEffect(()=>{c?I():(!w||!o)&&k()},[c,k,w,o,I]);const S=_=>$=>{var L;(L=_.onKeyDown)==null||L.call(_,$),!($.key!=="Escape"||$.which===229||!T())&&(n||($.stopPropagation(),l&&l($,"escapeKeyDown")))},R=_=>$=>{var L;(L=_.onClick)==null||L.call(_,$),$.target===$.currentTarget&&l&&l($,"backdropClick")};return{getRootProps:(_={})=>{const $=P_(e);delete $.onTransitionEnter,delete $.onTransitionExited;const L={...$,..._};return{role:"presentation",...L,onKeyDown:S(L),ref:m}},getBackdropProps:(_={})=>{const $=_;return{"aria-hidden":!0,...$,onClick:R($),open:c}},getTransitionProps:()=>{const _=()=>{C(!1),i&&i()},$=()=>{C(!0),s&&s(),o&&k()};return{onEnter:ZI(_,a==null?void 0:a.props.onEnter),onExited:ZI($,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:M,isTopModal:T,exited:y,hasTransition:w}}function c8(e){return Ne("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const u8=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},c8,r)},d8=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(_e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),f8=ne(B_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Qf=p.forwardRef(function(t,n){const r=He({name:"MuiModal",props:t}),{BackdropComponent:o=f8,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:b=!1,disableScrollLock:g=!1,hideBackdrop:x=!1,keepMounted:P=!1,onBackdropClick:I,onClose:T,onTransitionEnter:M,onTransitionExited:k,open:S,slotProps:R={},slots:O={},theme:A,...D}=r,_={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:b,disableScrollLock:g,hideBackdrop:x,keepMounted:P},{getRootProps:$,getBackdropProps:L,getTransitionProps:F,portalRef:j,isTopModal:N,exited:z,hasTransition:V}=l8({..._,rootRef:n}),K={..._,exited:z},H=u8(K),G={};if(c.props.tabIndex===void 0&&(G.tabIndex="-1"),V){const{onEnter:X,onExited:ae}=F();G.onEnter=X,G.onExited=ae}const q={...D,slots:{root:f.Root,backdrop:f.Backdrop,...O},slotProps:{...h,...R}},[ee,W]=hn("root",{elementType:d8,externalForwardedProps:q,getSlotProps:$,additionalProps:{ref:n,as:d},ownerState:K,className:ie(a,H==null?void 0:H.root,!K.open&&K.exited&&(H==null?void 0:H.hidden))}),[Z,U]=hn("backdrop",{elementType:o,externalForwardedProps:q,additionalProps:i,getSlotProps:X=>L({...X,onClick:ae=>{I&&I(ae),X!=null&&X.onClick&&X.onClick(ae)}}),className:ie(i==null?void 0:i.className,H==null?void 0:H.backdrop),ownerState:K}),J=mt(i==null?void 0:i.ref,U.ref);return!P&&!S&&(!V||z)?null:v.jsx(N_,{ref:j,container:u,disablePortal:w,children:v.jsxs(ee,{...W,children:[!x&&o?v.jsx(Z,{...U,ref:J}):null,v.jsx(j_,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:b,isEnabled:N,open:S,children:p.cloneElement(c,G)})]})})});function p8(e){return Ne("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);function bk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function wk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ck(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lb(e){return typeof e=="function"?e():e}const h8=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},p8,t)},m8=ne(Qf,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z_=ne(Pr,{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}),g8=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:m,PaperProps:y={},slots:C={},slotProps:w={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:g=xf,transitionDuration:x="auto",TransitionProps:{onEntering:P,...I}={},disableScrollLock:T=!1,...M}=r,k=(w==null?void 0:w.paper)??y,S=p.useRef(),R={...r,anchorOrigin:s,anchorReference:l,elevation:f,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:b,TransitionComponent:g,transitionDuration:x,TransitionProps:I},O=h8(R),A=p.useCallback(()=>{if(l==="anchorPosition")return a;const U=lb(i),X=(U&&U.nodeType===1?U:Wt(S.current).body).getBoundingClientRect();return{top:X.top+bk(X,s.vertical),left:X.left+wk(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),D=p.useCallback(U=>({vertical:bk(U,b.vertical),horizontal:wk(U,b.horizontal)}),[b.horizontal,b.vertical]),_=p.useCallback(U=>{const J={width:U.offsetWidth,height:U.offsetHeight},X=D(J);if(l==="none")return{top:null,left:null,transformOrigin:Ck(X)};const ae=A();let fe=ae.top-X.vertical,me=ae.left-X.horizontal;const he=fe+J.height,je=me+J.width,ge=hi(lb(i)),Ae=ge.innerHeight-h,Ve=ge.innerWidth-h;if(h!==null&&feAe){const De=he-Ae;fe-=De,X.vertical+=De}if(h!==null&&meVe){const De=je-Ve;me-=De,X.horizontal+=De}return{top:`${Math.round(fe)}px`,left:`${Math.round(me)}px`,transformOrigin:Ck(X)}},[i,l,A,D,h]),[$,L]=p.useState(m),F=p.useCallback(()=>{const U=S.current;if(!U)return;const J=_(U);J.top!==null&&U.style.setProperty("top",J.top),J.left!==null&&(U.style.left=J.left),U.style.transformOrigin=J.transformOrigin,L(!0)},[_]);p.useEffect(()=>(T&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,T,F]);const j=(U,J)=>{P&&P(U,J),F()},N=()=>{L(!1)};p.useEffect(()=>{m&&F()}),p.useImperativeHandle(o,()=>m?{updatePosition:()=>{F()}}:null,[m,F]),p.useEffect(()=>{if(!m)return;const U=C_(()=>{F()}),J=hi(i);return J.addEventListener("resize",U),()=>{U.clear(),J.removeEventListener("resize",U)}},[i,m,F]);let z=x;x==="auto"&&!g.muiSupportAuto&&(z=void 0);const V=d||(i?Wt(lb(i)).body:void 0),K={slots:C,slotProps:{...w,paper:k}},[H,G]=hn("paper",{elementType:z_,externalForwardedProps:K,additionalProps:{elevation:f,className:ie(O.paper,k==null?void 0:k.className),style:$?k.style:{...k.style,opacity:0}},ownerState:R}),[q,{slotProps:ee,...W}]=hn("root",{elementType:m8,externalForwardedProps:K,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:V,open:m},ownerState:R,className:ie(O.root,u)}),Z=mt(S,G.ref);return v.jsx(q,{...W,...!km(q)&&{slotProps:ee,disableScrollLock:T},...M,ref:n,children:v.jsx(g,{appear:!0,in:m,onEntering:j,onExited:N,timeout:z,...I,children:v.jsx(H,{...G,ref:Z,children:c})})})});function v8(e){return Ne("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const y8={vertical:"top",horizontal:"right"},b8={vertical:"top",horizontal:"left"},w8=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},v8,t)},C8=ne(g8,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x8=ne(z_,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S8=ne(iS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Em=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m,...y}={},variant:C="selectedMenu",slots:w={},slotProps:b={},...g}=r,x=Ir(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:h,TransitionProps:y,variant:C},I=w8(P),T=o&&!a&&u,M=p.useRef(null),k=($,L)=>{M.current&&M.current.adjustStyleForScrollbar($,{direction:x?"rtl":"ltr"}),m&&m($,L)},S=$=>{$.key==="Tab"&&($.preventDefault(),c&&c($,"tabKeyDown"))};let R=-1;p.Children.map(i,($,L)=>{p.isValidElement($)&&($.props.disabled||(C==="selectedMenu"&&$.props.selected||R===-1)&&(R=L))});const O=w.paper??x8,A=b.paper??d,D=bf({elementType:w.root,externalSlotProps:b.root,ownerState:P,className:[I.root,s]}),_=bf({elementType:O,externalSlotProps:A,ownerState:P,className:I.paper});return v.jsx(C8,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?y8:b8,slots:{paper:O,root:w.root},slotProps:{root:D,paper:_},open:u,ref:n,transitionDuration:h,TransitionProps:{onEntering:k,...y},ownerState:P,...g,classes:f,children:v.jsx(S8,{onKeyDown:S,actions:M,autoFocus:o&&(R===-1||a),autoFocusItem:T,variant:C,...l,className:ie(I.list,l.className),children:i})})}),P8=Te(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Kc=i6({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})});function I8(e){return Ne("MuiButton",e)}const Al=Fe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),k8=p.createContext({}),T8=p.createContext(void 0),E8=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${re(t)}`,`size${re(o)}`,`${i}Size${re(o)}`,`color${re(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`]},l=ye(a,I8,s);return{...s,...l}},H_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],O8=ne(Wc,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${re(n.color)}`],t[`size${re(n.size)}`],t[`${n.variant}Size${re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Al.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Al.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Al.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Al.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:We(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Al.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Al.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),M8=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${re(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...H_]}),R8=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${re(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...H_]}),mr=p.forwardRef(function(t,n){const r=p.useContext(k8),o=p.useContext(T8),i=Uc(r,t),s=He({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:y,fullWidth:C=!1,size:w="medium",startIcon:b,type:g,variant:x="text",...P}=s,I={...s,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:C,size:w,type:g,variant:x},T=E8(I),M=b&&v.jsx(M8,{className:T.startIcon,ownerState:I,children:b}),k=m&&v.jsx(R8,{className:T.endIcon,ownerState:I,children:m}),S=o||"";return v.jsxs(O8,{ownerState:I,className:ie(r.className,T.root,u,S),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:ie(T.focusVisible,y),ref:n,type:g,...P,classes:T,children:[M,a,k]})});function $8(e){return Ne("MuiDivider",e)}const xk=Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_8=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ye({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},$8,r)},A8=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(_e(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:We(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),D8=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(_e(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ja=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,orientation:a="horizontal",component:l=i||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth",...m}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:h},C=_8(y);return v.jsx(A8,{as:l,className:ie(C.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...m,children:i?v.jsx(D8,{className:C.wrapper,ownerState:y,children:i}):null})});Ja&&(Ja.muiSkipListHighlight=!0);function L8(e){return Ne("MuiListItemIcon",e)}const Sk=Fe("MuiListItemIcon",["root","alignItemsFlexStart"]),F8=e=>{const{alignItems:t,classes:n}=e;return ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},L8,n)},j8=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(_e(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Pc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,s=p.useContext(Cf),a={...r,alignItems:s.alignItems},l=F8(a);return v.jsx(j8,{className:ie(l.root,o),ownerState:a,ref:n,...i})});function N8(e){return Ne("MuiListItemText",e)}const sc=Fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),B8=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ye({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},N8,t)},z8=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sc.primary}`]:t.primary},{[`& .${sc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${hk.root}:where(& .${sc.primary})`]:{display:"block"},[`.${hk.root}:where(& .${sc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ic=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,...f}=r,{dense:h}=p.useContext(Cf);let m=l??o,y=u;const C={...r,disableTypography:s,inset:a,primary:!!m,secondary:!!y,dense:h},w=B8(C);return m!=null&&m.type!==Be&&!s&&(m=v.jsx(Be,{variant:h?"body2":"body1",className:w.primary,component:c!=null&&c.variant?void 0:"span",...c,children:m})),y!=null&&y.type!==Be&&!s&&(y=v.jsx(Be,{variant:"body2",className:w.secondary,color:"textSecondary",...d,children:y})),v.jsxs(z8,{className:ie(w.root,i),ownerState:C,ref:n,...f,children:[m,y]})});function H8(e){return Ne("MuiMenuItem",e)}const td=Fe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),V8=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},U8=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},H8,s);return{...s,...l}},G8=ne(Wc,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:V8})(_e(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${td.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${td.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${td.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(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})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${td.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${td.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xk.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xk.inset}`]:{marginLeft:52},[`& .${sc.root}`]:{marginTop:0,marginBottom:0},[`& .${sc.inset}`]:{paddingLeft:36},[`& .${Sk.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Sk.root} svg`]:{fontSize:"1.25rem"}}}]}))),Mn=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...h}=r,m=p.useContext(Cf),y=p.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),C=p.useRef(null);ht(()=>{o&&C.current&&C.current.focus()},[o]);const w={...r,dense:y.dense,divider:a,disableGutters:l},b=U8(r),g=mt(C,n);let x;return r.disabled||(x=d!==void 0?d:-1),v.jsx(Cf.Provider,{value:y,children:v.jsx(G8,{ref:g,role:u,tabIndex:x,component:i,focusVisibleClassName:ie(b.focusVisible,c),className:ie(b.root,f),...h,ownerState:w,classes:b})})}),bw=Te(v.jsx("path",{d:"M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9M5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25M12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5M3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9"}),"LocalFlorist"),ww={dark:{header:{backgroundColor:"rgba(81, 45, 168, 0.9)"},mainContent:{backgroundColor:"black"},footer:{backgroundColor:"#242424"},text:{primary:"rgba(255, 255, 255, 0.87)",secondary:"rgba(255, 255, 255, 0.60)",disabled:"rgba(255, 255, 255, 0.38)"},action:{active:"rgba(255, 255, 255, 0.54)",hover:"rgba(255, 255, 255, 0.04)",selected:"rgba(255, 255, 255, 0.08)",disabled:"rgba(255, 255, 255, 0.26)",disabledBackground:"rgba(255, 255, 255, 0.12)"},divider:"rgba(255, 255, 255, 0.12)",elevation:{1:"0px 2px 1px -1px rgba(255,255,255,0.2),0px 1px 1px 0px rgba(255,255,255,0.14),0px 1px 3px 0px rgba(255,255,255,0.12)",2:"0px 3px 1px -2px rgba(255,255,255,0.2),0px 2px 2px 0px rgba(255,255,255,0.14),0px 1px 5px 0px rgba(255,255,255,0.12)",3:"0px 3px 3px -2px rgba(255,255,255,0.2),0px 3px 4px 0px rgba(255,255,255,0.14),0px 1px 8px 0px rgba(255,255,255,0.12)"},card:{backgroundColor:"#1e1e1e",color:"rgba(255, 255, 255, 0.87)"},icon:{color:"#bb86fc"},button:{primary:"#bb86fc",hover:"#c39dff"},chip:{backgroundColor:"#3f3f3f",color:"rgba(255, 255, 255, 0.87)",borderColor:"#bb86fc"},error:{main:"#cf6679"}},light:{header:{backgroundColor:"rgba(156, 39, 176, 0.8)"},mainContent:{backgroundColor:"#f3e5f5"},footer:{backgroundColor:"white",color:"black"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.60)",disabled:"rgba(0, 0, 0, 0.38)"},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",selected:"rgba(0, 0, 0, 0.08)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0, 0, 0, 0.12)",elevation:{1:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)"},card:{backgroundColor:"#ffffff",color:"rgba(0, 0, 0, 0.87)"},icon:{color:"#6200ee"},button:{primary:"#6200ee",hover:"#7722ff"},chip:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)",borderColor:"#6200ee"},error:{main:"#b00020"}}},W8={light:!1,theme:ww.light,toggle:()=>{}},Po=lo.createContext(W8);function K8({children:e}){const[t,n]=p.useState(!1);p.useEffect(()=>{const i=localStorage.getItem("light")==="true";n(i)},[t]);const r=()=>{const i=!t;localStorage.setItem("light",JSON.stringify(i)),n(i)},o=t?ww.light:ww.dark;return v.jsx(Po.Provider,{value:{theme:o,light:t,toggle:r},children:e})}const Iv=p.createContext(void 0);function as(){return p.useContext(Iv)}function q8(e){return Ne("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y8=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${re(o)}`],input:["input"]};return ye(i,q8,t)},X8=ne(Wc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Q8=ne("input",{shouldForwardProp:lr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),V_=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:h,inputRef:m,name:y,onBlur:C,onChange:w,onFocus:b,readOnly:g,required:x=!1,tabIndex:P,type:I,value:T,...M}=t,[k,S]=Ks({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),R=as(),O=j=>{b&&b(j),R&&R.onFocus&&R.onFocus(j)},A=j=>{C&&C(j),R&&R.onBlur&&R.onBlur(j)},D=j=>{if(j.nativeEvent.defaultPrevented)return;const N=j.target.checked;S(N),w&&w(j,N)};let _=l;R&&typeof _>"u"&&(_=R.disabled);const $=I==="checkbox"||I==="radio",L={...t,checked:k,disabled:_,disableFocusRipple:c,edge:u},F=Y8(L);return v.jsxs(X8,{component:"span",className:ie(F.root,s),centerRipple:!0,focusRipple:!c,disabled:_,tabIndex:null,role:void 0,onFocus:O,onBlur:A,ownerState:L,ref:n,...M,children:[v.jsx(Q8,{autoFocus:r,checked:o,defaultChecked:a,className:F.input,disabled:_,id:$?f:void 0,name:y,onChange:D,readOnly:g,ref:m,required:x,ownerState:L,tabIndex:P,type:I,...I==="checkbox"&&T===void 0?{}:{value:T},...h}),k?i:d]})});function J8(e){return Ne("MuiSwitch",e)}const er=Fe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Z8=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${re(n)}`,`size${re(r)}`],switchBase:["switchBase",`color${re(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ye(a,J8,t);return{...t,...l}},e9=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${er.thumb}`]:{width:16,height:16},[`& .${er.switchBase}`]:{padding:4,[`&.${er.checked}`]:{transform:"translateX(16px)"}}}}]}),t9=ne(V_,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${er.input}`]:t.input},n.color!=="default"&&t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${er.checked}`]:{transform:"translateX(20px)"},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${er.checked} + .${er.track}`]:{opacity:.5},[`&.${er.disabled} + .${er.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${er.input}`]:{left:"-100%",width:"300%"}})),_e(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ut(["light"])).map(([t])=>({props:{color:t},style:{[`&.${er.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${er.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?dl(e.palette[t].main,.62):ul(e.palette[t].main,.55)}`}},[`&.${er.checked} + .${er.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),n9=ne("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(_e(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),r9=ne("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(_e(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),U_=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l,...c}=r,u={...r,color:i,edge:s,size:a},d=Z8(u),f=v.jsx(r9,{className:d.thumb,ownerState:u});return v.jsxs(e9,{className:ie(d.root,o),sx:l,ownerState:u,children:[v.jsx(t9,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),v.jsx(n9,{className:d.track,ownerState:u})]})}),o9=Te([v.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),i9=Te(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),s9=Te(v.jsx("path",{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12c1.02 1.01 2.37 1.57 3.82 1.57 2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37"}),"AllInclusive"),a9=Te(v.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),l9=Te(v.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),c9=Te(v.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),G_=Te([v.jsx("path",{d:"m12 2-5.5 9h11z"},"0"),v.jsx("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),v.jsx("path",{d:"M3 13.5h8v8H3z"},"2")],"Category"),u9=Te(v.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"),d9=Te(v.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),f9=Te(v.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"ColorLens"),p9=Te(v.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),h9=Te(v.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),m9=Te(v.jsx("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7m2 16h-4v-1h4zm0-2h-4v-1h4zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71z"}),"EmojiObjects"),g9=Te(v.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"}),"Engineering"),W_=Te(v.jsx("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook"),K_=Te(v.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),q_=Te(v.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),v9=Te(v.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),aS=Te(v.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),y9=Te(v.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login"),b9=Te(v.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),w9=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),C9=Te([v.jsx("path",{d:"M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15 1.67.48 2.9 2.02 2.9 3.85 0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41"},"0"),v.jsx("path",{d:"M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2"},"1")],"NightsStay"),x9=Te(v.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"}),"Phone"),S9=Te(v.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),P9=Te(v.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),I9=Te(v.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share"),Pk=Te(v.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),k9=Te(v.jsx("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"}),"WbSunny");function T9(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function kv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cw=e=>Array.isArray(e);function Y_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function lS(e,t,n,r){if(typeof t=="function"){const[o,i]=Ik(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ik(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Tv(e,t,n){const r=e.getProps();return lS(r,t,n!==void 0?n:r.custom,e)}const cS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uS=["initial",...cS],Jf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pl=new Set(Jf),zi=e=>e*1e3,Hi=e=>e/1e3,E9={type:"spring",stiffness:500,damping:25,restSpeed:10},O9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),M9={type:"keyframes",duration:.8},R9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$9=(e,{keyframes:t})=>t.length>2?M9:pl.has(e)?e.startsWith("scale")?O9(t[1]):E9:R9;function dS(e,t){return e?e[t]||e.default||e:void 0}const _9={skipAnimations:!1,useManualTiming:!1},A9=e=>e!==null;function Ev(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(A9),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Gn=e=>e;function D9(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(c))}};return l}const qp=["read","resolveKeyframes","update","preRender","render","postRender"],L9=40;function X_(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=qp.reduce((w,b)=>(w[b]=D9(i),w),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const w=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,L9),1),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},m=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:qp.reduce((w,b)=>{const g=s[b];return w[b]=(x,P=!1,I=!1)=>(n||m(),g.schedule(x,P,I)),w},{}),cancel:w=>{for(let b=0;b(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F9=1e-7,j9=12;function N9(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Q_(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>F9&&++aN9(i,0,1,e,n);return i=>i===0||i===1?i:Q_(o(i),t,r)}const J_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Z_=e=>t=>1-e(1-t),eA=Zf(.33,1.53,.69,.99),fS=Z_(eA),tA=J_(fS),nA=e=>(e*=2)<1?.5*fS(e):.5*(2-Math.pow(2,-10*(e-1))),pS=e=>1-Math.sin(Math.acos(e)),rA=Z_(pS),oA=J_(pS),iA=e=>/^0[^.\s]+$/u.test(e);function B9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||iA(e):!0}let xw=Gn;const sA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),aA=e=>t=>typeof t=="string"&&t.startsWith(e),lA=aA("--"),z9=aA("var(--"),hS=e=>z9(e)?H9.test(e.split("/*")[0].trim()):!1,H9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,V9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function U9(e){const t=V9.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function cA(e,t,n=1){const[r,o]=U9(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return sA(s)?parseFloat(s):s}return hS(o)?cA(o,t,n+1):o}const ea=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Pf={...Pu,transform:e=>ea(0,1,e)},Yp={...Pu,default:1},ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ys=ep("deg"),si=ep("%"),Ge=ep("px"),G9=ep("vh"),W9=ep("vw"),kk={...si,parse:e=>si.parse(e)/100,transform:e=>si.transform(e*100)},K9=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Tk=e=>e===Pu||e===Ge,Ek=(e,t)=>parseFloat(e.split(", ")[t]),Ok=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Ek(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Ek(i[1],e):0}},q9=new Set(["x","y","z"]),Y9=Jf.filter(e=>!q9.has(e));function X9(e){const t=[];return Y9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ok(4,13),y:Ok(5,14)};qc.translateX=qc.x;qc.translateY=qc.y;const uA=e=>t=>t.test(e),Q9={test:e=>e==="auto",parse:e=>e},dA=[Pu,Ge,si,ys,W9,G9,Q9],Mk=e=>dA.find(uA(e)),Na=new Set;let Sw=!1,Pw=!1;function fA(){if(Pw){const e=Array.from(Na).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=X9(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pw=!1,Sw=!1,Na.forEach(e=>e.complete()),Na.clear()}function pA(){Na.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pw=!0)})}function J9(){pA(),fA()}class mS{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Na.add(this),Sw||(Sw=!0,kt.read(pA),kt.resolveKeyframes(fA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,gS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z9(e){return e==null}const eG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vS=(e,t)=>n=>!!(typeof n=="string"&&eG.test(n)&&n.startsWith(e)||t&&!Z9(n)&&Object.prototype.hasOwnProperty.call(n,t)),hA=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(gS);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},tG=e=>ea(0,255,e),ub={...Pu,transform:e=>Math.round(tG(e))},_a={test:vS("rgb","red"),parse:hA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ub.transform(e)+", "+ub.transform(t)+", "+ub.transform(n)+", "+Ld(Pf.transform(r))+")"};function nG(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Iw={test:vS("#"),parse:nG,transform:_a.transform},ac={test:vS("hsl","hue"),parse:hA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+si.transform(Ld(t))+", "+si.transform(Ld(n))+", "+Ld(Pf.transform(r))+")"},Bn={test:e=>_a.test(e)||Iw.test(e)||ac.test(e),parse:e=>_a.test(e)?_a.parse(e):ac.test(e)?ac.parse(e):Iw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_a.transform(e):ac.transform(e)},rG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function oG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(gS))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(rG))===null||n===void 0?void 0:n.length)||0)>0}const mA="number",gA="color",iG="var",sG="var(",Rk="${}",aG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function If(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(aG,l=>(Bn.test(l)?(r.color.push(i),o.push(gA),n.push(Bn.parse(l))):l.startsWith(sG)?(r.var.push(i),o.push(iG),n.push(l)):(r.number.push(i),o.push(mA),n.push(parseFloat(l))),++i,Rk)).split(Rk);return{values:n,split:a,indexes:r,types:o}}function vA(e){return If(e).values}function yA(e){const{split:t,types:n}=If(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function cG(e){const t=vA(e);return yA(e)(t.map(lG))}const ta={test:oG,parse:vA,createTransformer:yA,getAnimatableNone:cG},uG=new Set(["brightness","contrast","saturate","opacity"]);function dG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gS)||[];if(!r)return e;const o=n.replace(r,"");let i=uG.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const fG=/\b([a-z-]*)\(.*?\)/gu,kw={...ta,getAnimatableNone:e=>{const t=e.match(fG);return t?t.map(dG).join(" "):e}},pG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},hG={rotate:ys,rotateX:ys,rotateY:ys,rotateZ:ys,scale:Yp,scaleX:Yp,scaleY:Yp,scaleZ:Yp,skew:ys,skewX:ys,skewY:ys,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Pf,originX:kk,originY:kk,originZ:Ge},$k={...Pu,transform:Math.round},yS={...pG,...hG,zIndex:$k,size:Ge,fillOpacity:Pf,strokeOpacity:Pf,numOctaves:$k},mG={...yS,color:Bn,backgroundColor:Bn,outlineColor:Bn,fill:Bn,stroke:Bn,borderColor:Bn,borderTopColor:Bn,borderRightColor:Bn,borderBottomColor:Bn,borderLeftColor:Bn,filter:kw,WebkitFilter:kw},bS=e=>mG[e];function bA(e,t){let n=bS(e);return n!==kw&&(n=ta),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gG=new Set(["auto","none","0"]);function vG(e,t,n){let r=0,o;for(;r{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function wS(e){return typeof e=="function"}let Mh;function yG(){Mh=void 0}const ai={now:()=>(Mh===void 0&&ai.set(Tn.isProcessing||_9.useManualTiming?Tn.timestamp:performance.now()),Mh),set:e=>{Mh=e,queueMicrotask(yG)}},_k=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ta.test(e)||e==="0")&&!e.startsWith("url("));function bG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nCG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&J9(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!wG(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(Ev(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function xA(e,t){return t?e*(1e3/t):0}const xG=5;function SA(e,t,n){const r=Math.max(t-xG,0);return xA(n-e(r),t-r)}const db=.001,SG=.01,PG=10,IG=.05,kG=1;function TG({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=ea(IG,kG,s),e=ea(SG,PG,Hi(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=Tw(c,s),m=Math.exp(-d);return db-f/h*m},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),y=Tw(Math.pow(c,2),s);return(-o(c)+db>0?-1:1)*((f-h)*m)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-db+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=OG(o,i,a);if(e=zi(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const EG=12;function OG(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function $G(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ak(e,RG)&&Ak(e,MG)){const n=TG(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function PA({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=$G({...r,velocity:-Hi(r.velocity||0)}),h=d||0,m=l/(2*Math.sqrt(a*c)),y=i-o,C=Hi(Math.sqrt(a/c)),w=Math.abs(y)<5;n||(n=w?.01:2),t||(t=w?.005:.5);let b;if(m<1){const g=Tw(C,m);b=x=>{const P=Math.exp(-m*C*x);return i-P*((h+m*C*y)/g*Math.sin(g*x)+y*Math.cos(g*x))}}else if(m===1)b=g=>i-Math.exp(-C*g)*(y+(h+C*y)*g);else{const g=C*Math.sqrt(m*m-1);b=x=>{const P=Math.exp(-m*C*x),I=Math.min(g*x,300);return i-P*((h+m*C*y)*Math.sinh(I)+g*y*Math.cosh(I))/g}}return{calculatedDuration:f&&u||null,next:g=>{const x=b(g);if(f)s.done=g>=u;else{let P=0;m<1&&(P=g===0?zi(h):SA(b,g,x));const I=Math.abs(P)<=n,T=Math.abs(i-x)<=t;s.done=I&&T}return s.value=s.done?i:x,s}}}function Dk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&Ml,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)-y*Math.exp(-M/r),g=M=>w+b(M),x=M=>{const k=b(M),S=g(M);f.done=Math.abs(k)<=c,f.value=f.done?w:S};let P,I;const T=M=>{h(f.value)&&(P=M,I=PA({keyframes:[f.value,m(f.value)],velocity:SA(g,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:M=>{let k=!1;return!I&&P===void 0&&(k=!0,x(M),T(M)),P!==void 0&&M>=P?I.next(M-P):(!k&&x(M),f)}}}const _G=Zf(.42,0,1,1),AG=Zf(0,0,.58,1),IA=Zf(.42,0,.58,1),DG=e=>Array.isArray(e)&&typeof e[0]!="number",CS=e=>Array.isArray(e)&&typeof e[0]=="number",Lk={linear:Gn,easeIn:_G,easeInOut:IA,easeOut:AG,circIn:pS,circInOut:oA,circOut:rA,backIn:fS,backInOut:tA,backOut:eA,anticipate:nA},Fk=e=>{if(CS(e)){xw(e.length===4);const[t,n,r,o]=e;return Zf(t,n,r,o)}else if(typeof e=="string")return xw(Lk[e]!==void 0),Lk[e];return e},LG=(e,t)=>n=>t(e(n)),Vi=(...e)=>e.reduce(LG),Yc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Vt=(e,t,n)=>e+(t-e)*n;function fb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function FG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=fb(l,a,e+1/3),i=fb(l,a,e),s=fb(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Om(e,t){return n=>n>0?t:e}const pb=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},jG=[Iw,_a,ac],NG=e=>jG.find(t=>t.test(e));function jk(e){const t=NG(e);if(!t)return!1;let n=t.parse(e);return t===ac&&(n=FG(n)),n}const Nk=(e,t)=>{const n=jk(e),r=jk(t);if(!n||!r)return Om(e,t);const o={...n};return i=>(o.red=pb(n.red,r.red,i),o.green=pb(n.green,r.green,i),o.blue=pb(n.blue,r.blue,i),o.alpha=Vt(n.alpha,r.alpha,i),_a.transform(o))},Ew=new Set(["none","hidden"]);function BG(e,t){return Ew.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zG(e,t){return n=>Vt(e,t,n)}function xS(e){return typeof e=="number"?zG:typeof e=="string"?hS(e)?Om:Bn.test(e)?Nk:UG:Array.isArray(e)?kA:typeof e=="object"?Bn.test(e)?Nk:HG:Om}function kA(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>xS(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function VG(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ta.createTransformer(t),r=If(e),o=If(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ew.has(e)&&!o.values.length||Ew.has(t)&&!r.values.length?BG(e,t):Vi(kA(VG(r,o),o.values),n):Om(e,t)};function TA(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vt(e,t,n):xS(e)(e,t)}function GG(e,t,n){const r=[],o=n||TA,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=GG(t,r,o),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(ea(e[0],e[i-1],c)):l}function KG(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Yc(0,t,r);e.push(Vt(n,1,o))}}function qG(e){const t=[0];return KG(t,e.length-1),t}function YG(e,t){return e.map(n=>n*t)}function XG(e,t){return e.map(()=>t||IA).splice(0,e.length-1)}function Mm({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=DG(r)?r.map(Fk):Fk(r),i={done:!1,value:t[0]},s=YG(n&&n.length===t.length?n:qG(t),e),a=WG(s,t,{ease:Array.isArray(o)?o:XG(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Bk=2e4;function QG(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Bk?1/0:t}const JG=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kt.update(t,!0),stop:()=>Zs(t),now:()=>Tn.isProcessing?Tn.timestamp:ai.now()}},ZG={decay:Dk,inertia:Dk,tween:Mm,keyframes:Mm,spring:PA},eW=e=>e/100;class SS extends CA{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||mS,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=wS(n)?n:ZG[n]||Mm;let l,c;a!==Mm&&typeof t[0]!="number"&&(l=Vi(eW,TA(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=QG(u));const{calculatedDuration:d}=u,f=d+o,h=f*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?w<0:w>u;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,x=i;if(h){const M=Math.min(this.currentTime,u)/d;let k=Math.floor(M),S=M%1;!S&&M>=1&&(S=1),S===1&&k--,k=Math.min(k,h+1),!!(k%2)&&(m==="reverse"?(S=1-S,y&&(S-=y/d)):m==="mirror"&&(x=s)),g=ea(0,1,S)*d}const P=b?{done:!1,value:l[0]}:x.next(g);a&&(P.value=a(P.value));let{done:I}=P;!b&&c!==null&&(I=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return T&&o!==void 0&&(P.value=Ev(l,this.options,o)),C&&C(P.value),T&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Hi(t.calculatedDuration):0}get time(){return Hi(this.currentTime)}set time(t){t=zi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=JG,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const tW=new Set(["opacity","clipPath","filter","transform"]),nW=10,rW=(e,t)=>{let n="";const r=Math.max(Math.round(t/nW),2);for(let o=0;o(t===void 0&&(t=e()),t)}const oW={linearEasing:void 0};function iW(e,t){const n=PS(e);return()=>{var r;return(r=oW[t])!==null&&r!==void 0?r:n()}}const Rm=iW(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function EA(e){return!!(typeof e=="function"&&Rm()||!e||typeof e=="string"&&(e in Ow||Rm())||CS(e)||Array.isArray(e)&&e.every(EA))}const wd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ow={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wd([0,.65,.55,1]),circOut:wd([.55,0,1,.45]),backIn:wd([.31,.01,.66,-.59]),backOut:wd([.33,1.53,.69,.99])};function OA(e,t){if(e)return typeof e=="function"&&Rm()?rW(e,t):CS(e)?wd(e):Array.isArray(e)?e.map(n=>OA(n,t)||Ow.easeOut):Ow[e]}function sW(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=OA(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function zk(e,t){e.timeline=t,e.onfinish=null}const aW=PS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$m=10,lW=2e4;function cW(e){return wS(e.type)||e.type==="spring"||!EA(e.ease)}function uW(e,t){const n=new SS({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Rm()&&dW(s)&&(s=MA[s]),cW(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...C}=this.options,w=uW(t,C);t=w.keyframes,t.length===1&&(t[1]=t[0]),o=w.duration,i=w.times,s=w.ease,a="keyframes"}const d=sW(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(zk(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ev(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Gn;const{animation:r}=n;zk(r,t)}return Gn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...h}=this.options,m=new SS({...h,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=zi(this.time);c.setWithVelocity(m.sample(y-$m).value,m.sample(y).value,$m)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return aW()&&r&&tW.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const fW=PS(()=>window.ScrollTimeline!==void 0);class pW{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rfW()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function hW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const IS=(e,t,n,r={},o,i)=>s=>{const a=dS(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-zi(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};hW(a)||(u={...u,...$9(e,u)}),u.duration&&(u.duration=zi(u.duration)),u.repeatDelay&&(u.repeatDelay=zi(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Ev(u.keyframes,a);if(f!==void 0)return kt.update(()=>{u.onUpdate(f),u.onComplete()}),new pW([])}return!i&&Hk.supports(u)?new Hk(u):new SS(u)},mW=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),gW=e=>Cw(e)?e[e.length-1]||0:e;function kS(e,t){e.indexOf(t)===-1&&e.push(t)}function TS(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ES{constructor(){this.subscriptions=[]}add(t){return kS(this.subscriptions,t),()=>TS(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class yW{constructor(t,n={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=ai.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ES);const r=this.events[t].add(n);return t==="change"?()=>{r(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Vk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vk);return xA(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kf(e,t){return new yW(e,t)}function bW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kf(n))}function wW(e,t){const n=Tv(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=gW(i[s]);bW(e,s,a)}}const OS=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),CW="framerAppearId",RA="data-"+OS(CW);function $A(e){return e.props[RA]}const Vn=e=>!!(e&&e.getVelocity);function xW(e){return!!(Vn(e)&&e.add)}function Mw(e,t){const n=e.getValue("willChange");if(xW(n))return n.add(t)}function SW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _A(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=l[d];if(h===void 0||u&&SW(u,d))continue;const m={delay:n,...dS(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const w=$A(e);if(w){const b=window.MotionHandoffAnimation(w,d,kt);b!==null&&(m.startTime=b,y=!0)}}Mw(e,d),f.start(IS(d,f,h,e.shouldReduceMotion&&pl.has(d)?{type:!1}:m,e,y));const C=f.animation;C&&c.push(C)}return a&&Promise.all(c).then(()=>{kt.update(()=>{a&&wW(e,a)})}),c}function Rw(e,t,n={}){var r;const o=Tv(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(_A(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return PW(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function PW(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(IW).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Rw(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function IW(e,t){return e.sortNodePosition(t)}function kW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Rw(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Rw(e,t,n);else{const o=typeof t=="function"?Tv(e,t,n.custom):t;r=Promise.all(_A(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const TW=uS.length;function AA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?AA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>kW(e,n,r)))}function RW(e){let t=MW(e),n=Uk(),r=!0;const o=l=>(c,u)=>{var d;const f=Tv(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:m,...y}=f;c={...c,...y,...m}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=AA(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let C=0;Cm&&x,k=!1;const S=Array.isArray(g)?g:[g];let R=S.reduce(o(w),{});P===!1&&(R={});const{prevResolvedValues:O={}}=b,A={...O,...R},D=L=>{M=!0,f.has(L)&&(k=!0,f.delete(L)),b.needsAnimating[L]=!0;const F=e.getValue(L);F&&(F.liveStyle=!1)};for(const L in A){const F=R[L],j=O[L];if(h.hasOwnProperty(L))continue;let N=!1;Cw(F)&&Cw(j)?N=!Y_(F,j):N=F!==j,N?F!=null?D(L):f.add(L):F!==void 0&&f.has(L)?D(L):b.protectedKeys[L]=!0}b.prevProp=g,b.prevResolvedValues=R,b.isActive&&(h={...h,...R}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(I&&T)||k)&&d.push(...S.map(L=>({animation:L,options:{type:w}})))}if(f.size){const C={};f.forEach(w=>{const b=e.getBaseTarget(w),g=e.getValue(w);g&&(g.liveStyle=!0),C[w]=b??null}),d.push({animation:C})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Uk(),r=!0}}}function $W(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Y_(t,e):!1}function va(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uk(){return{animate:va(!0),whileInView:va(),whileHover:va(),whileTap:va(),whileDrag:va(),whileFocus:va(),exit:va()}}class ca{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _W extends ca{constructor(t){super(t),t.animationState||(t.animationState=RW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let AW=0;class DW extends ca{constructor(){super(...arguments),this.id=AW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const LW={animation:{Feature:_W},exit:{Feature:DW}},DA=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ov(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const FW=e=>t=>DA(t)&&e(t,Ov(t));function Ai(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ui(e,t,n,r){return Ai(e,t,FW(n),r)}const Gk=(e,t)=>Math.abs(e-t);function jW(e,t){const n=Gk(e.x,t.x),r=Gk(e.y,t.y);return Math.sqrt(n**2+r**2)}class LA{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=mb(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=jW(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=Tn;this.history.push({...m,timestamp:y});const{onStart:C,onMove:w}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=hb(f,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=mb(d.type==="pointercancel"?this.lastMoveEventInfo:hb(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,C),m&&m(d,C)},!DA(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ov(t),a=hb(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Tn;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,mb(a,this.history)),this.removeListeners=Vi(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zs(this.updatePoint)}}function hb(e,t){return t?{point:t(e.point)}:e}function Wk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mb({point:e},t){return{point:e,delta:Wk(e,FA(t)),offset:Wk(e,NW(t)),velocity:BW(t,.1)}}function NW(e){return e[0]}function FA(e){return e[e.length-1]}function BW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=FA(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zi(t)));)n--;if(!r)return{x:0,y:0};const i=Hi(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function jA(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Kk=jA("dragHorizontal"),qk=jA("dragVertical");function NA(e){let t=!1;if(e==="y")t=qk();else if(e==="x")t=Kk();else{const n=Kk(),r=qk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function BA(){const e=NA(!0);return e?(e(),!1):!0}function lc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const zA=1e-4,zW=1-zA,HW=1+zA,HA=.01,VW=0-HA,UW=0+HA;function Ur(e){return e.max-e.min}function GW(e,t,n){return Math.abs(e-t)<=n}function Yk(e,t,n,r=.5){e.origin=r,e.originPoint=Vt(t.min,t.max,e.origin),e.scale=Ur(n)/Ur(t),e.translate=Vt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zW&&e.scale<=HW||isNaN(e.scale))&&(e.scale=1),(e.translate>=VW&&e.translate<=UW||isNaN(e.translate))&&(e.translate=0)}function Fd(e,t,n,r){Yk(e.x,t.x,n.x,r?r.originX:void 0),Yk(e.y,t.y,n.y,r?r.originY:void 0)}function Xk(e,t,n){e.min=n.min+t.min,e.max=e.min+Ur(t)}function WW(e,t,n){Xk(e.x,t.x,n.x),Xk(e.y,t.y,n.y)}function Qk(e,t,n){e.min=t.min-n.min,e.max=e.min+Ur(t)}function jd(e,t,n){Qk(e.x,t.x,n.x),Qk(e.y,t.y,n.y)}function KW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Vt(n,e,r.max):Math.min(e,n)),e}function Jk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function qW(e,{top:t,left:n,bottom:r,right:o}){return{x:Jk(e.x,n,o),y:Jk(e.y,t,r)}}function Zk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Yc(t.min,t.max-r,e.min):r>o&&(n=Yc(e.min,e.max-o,t.min)),ea(0,1,n)}function QW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $w=.35;function JW(e=$w){return e===!1?e=0:e===!0&&(e=$w),{x:eT(e,"left","right"),y:eT(e,"top","bottom")}}function eT(e,t,n){return{min:tT(e,t),max:tT(e,n)}}function tT(e,t){return typeof e=="number"?e:e[t]||0}const nT=()=>({translate:0,scale:1,origin:0,originPoint:0}),cc=()=>({x:nT(),y:nT()}),rT=()=>({min:0,max:0}),rn=()=>({x:rT(),y:rT()});function Jr(e){return[e("x"),e("y")]}function VA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function e7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gb(e){return e===void 0||e===1}function _w({scale:e,scaleX:t,scaleY:n}){return!gb(e)||!gb(t)||!gb(n)}function Pa(e){return _w(e)||UA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function UA(e){return oT(e.x)||oT(e.y)}function oT(e){return e&&e!=="0%"}function _m(e,t,n){const r=e-n,o=t*r;return n+o}function iT(e,t,n,r,o){return o!==void 0&&(e=_m(e,o,r)),_m(e,n,r)+t}function Aw(e,t=0,n=1,r,o){e.min=iT(e.min,t,n,r,o),e.max=iT(e.max,t,n,r,o)}function GA(e,{x:t,y:n}){Aw(e.x,t.translate,t.scale,t.originPoint),Aw(e.y,n.translate,n.scale,n.originPoint)}const sT=.999999999999,aT=1.0000000000001;function t7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;asT&&(t.x=1),t.ysT&&(t.y=1)}function uc(e,t){e.min=e.min+t,e.max=e.max+t}function lT(e,t,n,r,o=.5){const i=Vt(e.min,e.max,o);Aw(e,t,n,i,r)}function dc(e,t){lT(e.x,t.x,t.scaleX,t.scale,t.originX),lT(e.y,t.y,t.scaleY,t.scale,t.originY)}function WA(e,t){return VA(e7(e.getBoundingClientRect(),t))}function n7(e,t,n){const r=WA(e,n),{scroll:o}=t;return o&&(uc(r.x,o.offset.x),uc(r.y,o.offset.y)),r}const KA=({current:e})=>e?e.ownerDocument.defaultView:null,r7=new WeakMap;class o7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ov(u,"page").point)},i=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=NA(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jr(C=>{let w=this.getAxisMotionValue(C).get()||0;if(si.test(w)){const{projection:b}=this.visualElement;if(b&&b.layout){const g=b.layout.layoutBox[C];g&&(w=Ur(g)*(parseFloat(w)/100))}}this.originPoint[C]=w}),m&&kt.postRender(()=>m(u,d)),Mw(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(h&&this.currentDirection===null){this.currentDirection=i7(C),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),y&&y(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Jr(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new LA(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:KA(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&kt.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Xp(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=KW(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&lc(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=qW(o.layoutBox,n):this.constraints=!1,this.elastic=JW(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Jr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=QW(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!lc(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=n7(r,o.root,this.visualElement.getTransformPagePoint());let s=YW(o.layout.layoutBox,i);if(n){const a=n(ZW(s));this.hasMutatedConstraints=!!a,a&&(s=VA(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Jr(u=>{if(!Xp(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Mw(this.visualElement,t),r.start(IS(t,r,0,n,this.visualElement,!1))}stopAnimation(){Jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Jr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Jr(n=>{const{drag:r}=this.getProps();if(!Xp(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Vt(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!lc(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Jr(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=XW({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Jr(s=>{if(!Xp(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Vt(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;r7.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();lc(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),kt.read(r);const s=Ai(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Jr(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=$w,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Xp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function i7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class s7 extends ca{constructor(t){super(t),this.removeGroupControls=Gn,this.removeListeners=Gn,this.controls=new o7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const cT=e=>(t,n)=>{e&&kt.postRender(()=>e(t,n))};class a7 extends ca{constructor(){super(...arguments),this.removePointerDownListener=Gn}onPointerDown(t){this.session=new LA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:cT(t),onStart:cT(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&kt.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Mv=p.createContext(null);function l7(){const e=p.useContext(Mv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=p.useId();p.useEffect(()=>r(o),[]);const i=p.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const MS=p.createContext({}),qA=p.createContext({}),Rh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const nd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=uT(e,t.target.x),r=uT(e,t.target.y);return`${n}% ${r}%`}},c7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ta.parse(e);if(o.length>5)return r;const i=ta.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Vt(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Am={};function u7(e){Object.assign(Am,e)}const{schedule:RS,cancel:L1e}=X_(queueMicrotask,!1);class d7 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;u7(f7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Rh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||kt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),RS.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function YA(e){const[t,n]=l7(),r=p.useContext(MS);return v.jsx(d7,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(qA),isPresent:t,safeToRemove:n})}const f7={borderRadius:{...nd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nd,borderTopRightRadius:nd,borderBottomLeftRadius:nd,borderBottomRightRadius:nd,boxShadow:c7},XA=["TopLeft","TopRight","BottomLeft","BottomRight"],p7=XA.length,dT=e=>typeof e=="string"?parseFloat(e):e,fT=e=>typeof e=="number"||Ge.test(e);function h7(e,t,n,r,o,i){o?(e.opacity=Vt(0,n.opacity!==void 0?n.opacity:1,m7(r)),e.opacityExit=Vt(t.opacity!==void 0?t.opacity:1,0,g7(r))):i&&(e.opacity=Vt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Yc(e,t,r))}function hT(e,t){e.min=t.min,e.max=t.max}function Xr(e,t){hT(e.x,t.x),hT(e.y,t.y)}function mT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gT(e,t,n,r,o){return e-=t,e=_m(e,1/n,r),o!==void 0&&(e=_m(e,1/o,r)),e}function v7(e,t=0,n=1,r=.5,o,i=e,s=e){if(si.test(t)&&(t=parseFloat(t),t=Vt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Vt(i.min,i.max,r);e===i&&(a-=t),e.min=gT(e.min,t,n,a,o),e.max=gT(e.max,t,n,a,o)}function vT(e,t,[n,r,o],i,s){v7(e,t[n],t[r],t[o],t.scale,i,s)}const y7=["x","scaleX","originX"],b7=["y","scaleY","originY"];function yT(e,t,n,r){vT(e.x,t,y7,n?n.x:void 0,r?r.x:void 0),vT(e.y,t,b7,n?n.y:void 0,r?r.y:void 0)}function bT(e){return e.translate===0&&e.scale===1}function JA(e){return bT(e.x)&&bT(e.y)}function wT(e,t){return e.min===t.min&&e.max===t.max}function w7(e,t){return wT(e.x,t.x)&&wT(e.y,t.y)}function CT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ZA(e,t){return CT(e.x,t.x)&&CT(e.y,t.y)}function xT(e){return Ur(e.x)/Ur(e.y)}function ST(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class C7{constructor(){this.members=[]}add(t){kS(this.members,t),t.scheduleRender()}remove(t){if(TS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function x7(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const S7=(e,t)=>e.depth-t.depth;class P7{constructor(){this.children=[],this.isDirty=!1}add(t){kS(this.children,t),this.isDirty=!0}remove(t){TS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(S7),this.isDirty=!1,this.children.forEach(t)}}function $h(e){const t=Vn(e)?e.get():e;return mW(t)?t.toValue():t}function I7(e,t){const n=ai.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Zs(r),e(i-t))};return kt.read(r,!0),()=>Zs(r)}function k7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function T7(e,t,n){const r=Vn(e)?e:kf(e);return r.start(IS("",r,t,n)),r.animation}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Cd=typeof window<"u"&&window.MotionDebug!==void 0,vb=["","X","Y","Z"],E7={visibility:"hidden"},PT=1e3;let O7=0;function yb(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eD(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$A(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",kt,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eD(r)}function tD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=O7++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Cd&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach($7),this.nodes.forEach(F7),this.nodes.forEach(j7),this.nodes.forEach(_7),Cd&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=I7(f,250),Rh.hasAnimatedSinceResize&&(Rh.hasAnimatedSinceResize=!1,this.nodes.forEach(kT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||V7,{onLayoutAnimationStart:C,onLayoutAnimationComplete:w}=u.getProps(),b=!this.targetLayout||!ZA(this.targetLayout,m)||h,g=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const x={...dS(y,"layout"),onPlay:C,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||kT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(N7),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=x/1e3;TT(d.x,s.x,P),TT(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jd(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z7(this.relativeTarget,this.relativeTargetOrigin,f,P),g&&w7(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=rn()),Xr(g,this.relativeTarget)),y&&(this.animationValues=u,h7(u,c,this.latestValues,P,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Zs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{Rh.hasAnimatedSinceResize=!0,this.currentAnimation=T7(0,PT,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&nD(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||rn();const d=Ur(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ur(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Xr(a,l),dc(a,u),Fd(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new C7),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&yb("z",s,c,this.animationValues);for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(IT),this.root.sharedNodes.clear()}}}function M7(e){e.updateLayout()}function R7(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Jr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ur(f);f.min=r[d].min,f.max=f.min+h}):nD(i,n.layoutBox,r)&&Jr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ur(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=cc();Fd(a,r,n.layoutBox);const l=cc();s?Fd(l,e.applyTransform(o,!0),n.measuredBox):Fd(l,r,n.layoutBox);const c=!JA(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=rn();jd(m,n.layoutBox,f.layoutBox);const y=rn();jd(y,r,h.layoutBox),ZA(m,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $7(e){Cd&&Ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function A7(e){e.clearSnapshot()}function IT(e){e.clearMeasurements()}function D7(e){e.isLayoutDirty=!1}function L7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function F7(e){e.resolveTargetDelta()}function j7(e){e.calcProjection()}function N7(e){e.resetSkewAndRotation()}function B7(e){e.removeLeadSnapshot()}function TT(e,t,n){e.translate=Vt(t.translate,0,n),e.scale=Vt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ET(e,t,n,r){e.min=Vt(t.min,n.min,r),e.max=Vt(t.max,n.max,r)}function z7(e,t,n,r){ET(e.x,t.x,n.x,r),ET(e.y,t.y,n.y,r)}function H7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V7={duration:.45,ease:[.4,0,.1,1]},OT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),MT=OT("applewebkit/")&&!OT("chrome/")?Math.round:Gn;function RT(e){e.min=MT(e.min),e.max=MT(e.max)}function U7(e){RT(e.x),RT(e.y)}function nD(e,t,n){return e==="position"||e==="preserve-aspect"&&!GW(xT(t),xT(n),.2)}function G7(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W7=tD({attachResizeListener:(e,t)=>Ai(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bb={current:void 0},rD=tD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bb.current){const e=new W7({});e.mount(window),e.setOptions({layoutScroll:!0}),bb.current=e}return bb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),K7={pan:{Feature:a7},drag:{Feature:s7,ProjectionNode:rD,MeasureLayout:YA}};function $T(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||BA())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&kt.postRender(()=>l(i,s))};return Ui(e.current,n,o,{passive:!e.getProps()[r]})}class q7 extends ca{mount(){this.unmount=Vi($T(this.node,!0),$T(this.node,!1))}unmount(){}}class Y7 extends ca{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vi(Ai(this.node.current,"focus",()=>this.onFocus()),Ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const oD=(e,t)=>t?e===t?!0:oD(e,t.parentElement):!1;function wb(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ov(n))}class X7 extends ca{constructor(){super(...arguments),this.removeStartListeners=Gn,this.removeEndListeners=Gn,this.removeAccessibleListeners=Gn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Ui(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),f=!d&&!oD(this.node.current,a.target)?u:c;f&&kt.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Ui(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Vi(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||wb("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&kt.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Ai(this.node.current,"keyup",s),wb("down",(a,l)=>{this.startPress(a,l)})},n=Ai(this.node.current,"keydown",t),r=()=>{this.isPressing&&wb("cancel",(i,s)=>this.cancelPress(i,s))},o=Ai(this.node.current,"blur",r);this.removeAccessibleListeners=Vi(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&kt.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!BA()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&kt.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ui(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ai(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Vi(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Dw=new WeakMap,Cb=new WeakMap,Q7=e=>{const t=Dw.get(e.target);t&&t(e)},J7=e=>{e.forEach(Q7)};function Z7({root:e,...t}){const n=e||document;Cb.has(n)||Cb.set(n,{});const r=Cb.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(J7,{root:e,...t})),r[o]}function eK(e,t,n){const r=Z7(t);return Dw.set(e,n),r.observe(e),()=>{Dw.delete(e),r.unobserve(e)}}const tK={some:0,all:1};class nK extends ca{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tK[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return eK(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rK(t,n))&&this.startObserver()}unmount(){}}function rK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oK={inView:{Feature:nK},tap:{Feature:X7},focus:{Feature:Y7},hover:{Feature:q7}},iK={layout:{ProjectionNode:rD,MeasureLayout:YA}},$S=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Rv=p.createContext({}),_S=typeof window<"u",iD=_S?p.useLayoutEffect:p.useEffect,sD=p.createContext({strict:!1});function sK(e,t,n,r,o){var i,s;const{visualElement:a}=p.useContext(Rv),l=p.useContext(sD),c=p.useContext(Mv),u=p.useContext($S).reducedMotion,d=p.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=p.useContext(qA);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&aK(d.current,n,o,h),p.useInsertionEffect(()=>{f&&f.update(n,c)});const m=n[RA],y=p.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,m)));return iD(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),RS.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),p.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)===null||C===void 0||C.call(window,m)}),y.current=!1))}),f}function aK(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:aD(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&lc(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function aD(e){if(e)return e.options.allowProjection!==!1?e.projection:aD(e.parent)}function lK(e,t,n){return p.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):lc(n)&&(n.current=r))},[t])}function $v(e){return kv(e.animate)||uS.some(t=>Sf(e[t]))}function lD(e){return!!($v(e)||e.variants)}function cK(e,t){if($v(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sf(n)?n:void 0,animate:Sf(r)?r:void 0}}return e.inherit!==!1?t:{}}function uK(e){const{initial:t,animate:n}=cK(e,p.useContext(Rv));return p.useMemo(()=>({initial:t,animate:n}),[_T(t),_T(n)])}function _T(e){return Array.isArray(e)?e.join(" "):e}const AT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xc={};for(const e in AT)Xc[e]={isEnabled:t=>AT[e].some(n=>!!t[n])};function dK(e){for(const t in e)Xc[t]={...Xc[t],...e[t]}}const fK=Symbol.for("motionComponentSymbol");function pK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&dK(e);function i(a,l){let c;const u={...p.useContext($S),...a,layoutId:hK(a)},{isStatic:d}=u,f=uK(a),h=r(a,d);if(!d&&_S){mK();const m=gK(u);c=m.MeasureLayout,f.visualElement=sK(o,h,u,t,m.ProjectionNode)}return v.jsxs(Rv.Provider,{value:f,children:[c&&f.visualElement?v.jsx(c,{visualElement:f.visualElement,...u}):null,n(o,a,lK(h,f.visualElement,l),h,d,f.visualElement)]})}const s=p.forwardRef(i);return s[fK]=o,s}function hK({layoutId:e}){const t=p.useContext(MS).id;return t&&e!==void 0?t+"-"+e:e}function mK(e,t){p.useContext(sD).strict}function gK(e){const{drag:t,layout:n}=Xc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function AS(e){return typeof e!="string"||e.includes("-")?!1:!!(vK.indexOf(e)>-1||/[A-Z]/u.test(e))}function cD(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const uD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function dD(e,t,n,r){cD(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(uD.has(o)?o:OS(o),t.attrs[o])}function fD(e,{layout:t,layoutId:n}){return pl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Am[e]||e==="opacity")}function DS(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Vn(o[s])||t.style&&Vn(t.style[s])||fD(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function pD(e,t,n){const r=DS(e,t,n);for(const o in e)if(Vn(e[o])||Vn(t[o])){const i=Jf.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function LS(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}function yK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:bK(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const hD=e=>(t,n)=>{const r=p.useContext(Rv),o=p.useContext(Mv),i=()=>yK(e,t,r,o);return n?i():LS(i)};function bK(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=$h(i[f]);let{initial:s,animate:a}=e;const l=$v(e),c=lD(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!kv(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h({style:{},transform:{},transformOrigin:{},vars:{}}),mD=()=>({...FS(),attrs:{}}),gD=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CK=Jf.length;function xK(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",TK={useVisualState:hD({scrapeMotionValuesFromProps:pD,createRenderState:mD,onMount:(e,t,{renderState:n,latestValues:r})=>{kt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),kt.render(()=>{NS(n,r,BS(t.tagName),e.transformTemplate),dD(t,n)})}})},EK={useVisualState:hD({scrapeMotionValuesFromProps:DS,createRenderState:FS})};function vD(e,t,n){for(const r in t)!Vn(t[r])&&!fD(r,n)&&(e[r]=t[r])}function OK({transformTemplate:e},t){return p.useMemo(()=>{const n=FS();return jS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MK(e,t){const n=e.style||{},r={};return vD(r,n,e),Object.assign(r,OK(e,t)),r}function RK(e,t){const n={},r=MK(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const $K=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$K.has(e)}let yD=e=>!Dm(e);function _K(e){e&&(yD=t=>t.startsWith("on")?!Dm(t):e(t))}try{_K(require("@emotion/is-prop-valid").default)}catch{}function AK(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(yD(o)||n===!0&&Dm(o)||!t&&!Dm(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function DK(e,t,n,r){const o=p.useMemo(()=>{const i=mD();return NS(i,t,BS(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};vD(i,e.style,e),o.style={...i,...o.style}}return o}function LK(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(AS(n)?DK:RK)(r,i,s,n),c=AK(r,typeof n=="string",e),u=n!==p.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=p.useMemo(()=>Vn(d)?d.get():d,[d]);return p.createElement(n,{...u,children:f})}}function FK(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...AS(r)?TK:EK,preloadedFeatures:e,useRender:LK(o),createVisualElement:t,Component:r};return pK(s)}}const Lw={current:null},bD={current:!1};function jK(){if(bD.current=!0,!!_S)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lw.current=e.matches;e.addListener(t),t()}else Lw.current=!1}function NK(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Vn(o))e.addValue(r,o);else if(Vn(i))e.addValue(r,kf(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,kf(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LT=new WeakMap,BK=[...dA,Bn,ta],zK=e=>BK.find(uA(e)),FT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class HK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ai.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),bD.current||jK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LT.delete(this.current),this.projection&&this.projection.unmount(),Zs(this.notifyUpdate),Zs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=pl.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&kt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xc){const n=Xc[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=kf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(sA(o)||iA(o))?o=parseFloat(o):!zK(o)&&ta.test(n)&&(o=bA(t,n)),this.setBaseTarget(t,Vn(o)?o.get():o)),Vn(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=lS(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Vn(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ES),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class wD extends HK{constructor(){super(...arguments),this.KeyframeResolver=wA}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function VK(e){return window.getComputedStyle(e)}class UK extends wD{constructor(){super(...arguments),this.type="html",this.renderInstance=cD}readValueFromInstance(t,n){if(pl.has(n)){const r=bS(n);return r&&r.default||0}else{const r=VK(t),o=(lA(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return WA(t,n)}build(t,n,r){jS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return DS(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class GK extends wD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(pl.has(n)){const r=bS(n);return r&&r.default||0}return n=uD.has(n)?n:OS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return pD(t,n,r)}build(t,n,r){NS(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){dD(t,n,r,o)}mount(t){this.isSVGTag=BS(t.tagName),super.mount(t)}}const WK=(e,t)=>AS(e)?new GK(t):new UK(t,{allowProjection:e!==p.Fragment}),KK=FK({...LW,...oK,...K7,...iK},WK),zr=T9(KK);class qK extends p.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function YK({children:e,isPresent:t}){const n=p.useId(),r=p.useRef(null),o=p.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=p.useContext($S);return p.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -174,7 +174,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann top: ${l}px !important; left: ${c}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),v.jsx(KK,{isPresent:t,childRef:r,sizeRef:o,children:p.cloneElement(e,{ref:r})})}const YK=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=AS(XK),l=p.useId(),c=p.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),u=p.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),c]:[n,c]);return p.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),p.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(qK,{isPresent:n,children:e})),v.jsx(Ov.Provider,{value:u,children:e})};function XK(){return new Map}const Qp=e=>e.key||"";function LT(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const QK=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=p.useMemo(()=>LT(e),[e]),l=a.map(Qp),c=p.useRef(!0),u=p.useRef(a),d=AS(()=>new Map),[f,h]=p.useState(a),[m,y]=p.useState(a);rD(()=>{c.current=!1,u.current=a;for(let b=0;b{const g=Qp(b),x=a===m||l.includes(g),P=()=>{if(d.has(g))d.set(g,!0);else return;let I=!0;d.forEach(T=>{T||(I=!1)}),I&&(w==null||w(),y(u.current),o&&o())};return v.jsx(YK,{isPresent:x,initial:!c.current||r?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:x?void 0:P,children:b},g)})})},JK=ne(H_)(({theme:e})=>({width:62,height:34,padding:7,"& .MuiSwitch-switchBase":{margin:1,padding:0,transform:"translateX(6px)","&.Mui-checked":{color:"#fff",transform:"translateX(22px)","& .MuiSwitch-thumb:before":{backgroundImage:`url('data:image/svg+xml;utf8,')`},"& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#8796A5":"#aab4be"}}},"& .MuiSwitch-thumb":{backgroundColor:e.palette.mode==="dark"?"#003892":"#001e3c",width:32,height:32,"&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,')`}},"& .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#8796A5":"#aab4be",borderRadius:20/2}})),FT=ne("div")({display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24});function ZK(){const{light:e,toggle:t}=p.useContext(Po);return v.jsxs(zr.div,{whileHover:{scale:1.05},whileTap:{scale:.95},style:{display:"flex",alignItems:"center"},children:[v.jsx(FT,{children:v.jsx(I9,{style:{color:e?"#FFD700":"#A9A9A9"}})}),v.jsx(JK,{checked:!e,onChange:t,inputProps:{"aria-label":"toggle theme"}}),v.jsx(FT,{children:v.jsx(w9,{style:{color:e?"#A9A9A9":"#4169E1"}})})]})}const eq=Te(v.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 tq(e){return Ne("MuiAvatar",e)}je("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const nq=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ve({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},tq,t)},rq=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(_e(({theme: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",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),oq=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),iq=ne(eq,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function sq({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const NS=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:h,variant:m="circular",...y}=r;let C=null;const w=sq({...u,src:f,srcSet:h}),b=f||h,g=b&&w!=="error",x={...r,colorDefault:!g,component:a,variant:m};delete x.ownerState;const P=nq(x),[I,T]=hn("img",{className:P.img,elementType:oq,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:h,sizes:d},ownerState:x});return g?C=v.jsx(I,{...T}):i||i===0?C=i:b&&o?C=o[0]:C=v.jsx(iq,{ownerState:x,className:P.fallback}),v.jsx(rq,{as:a,className:ie(P.root,s),ref:n,...y,ownerState:x,children:C})});var jT={};/** + `),()=>{document.head.removeChild(u)}},[t]),v.jsx(qK,{isPresent:t,childRef:r,sizeRef:o,children:p.cloneElement(e,{ref:r})})}const XK=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=LS(QK),l=p.useId(),c=p.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),u=p.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),c]:[n,c]);return p.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),p.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(YK,{isPresent:n,children:e})),v.jsx(Mv.Provider,{value:u,children:e})};function QK(){return new Map}const Qp=e=>e.key||"";function jT(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const JK=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=p.useMemo(()=>jT(e),[e]),l=a.map(Qp),c=p.useRef(!0),u=p.useRef(a),d=LS(()=>new Map),[f,h]=p.useState(a),[m,y]=p.useState(a);iD(()=>{c.current=!1,u.current=a;for(let b=0;b{const g=Qp(b),x=a===m||l.includes(g),P=()=>{if(d.has(g))d.set(g,!0);else return;let I=!0;d.forEach(T=>{T||(I=!1)}),I&&(w==null||w(),y(u.current),o&&o())};return v.jsx(XK,{isPresent:x,initial:!c.current||r?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:x?void 0:P,children:b},g)})})},ZK=ne(U_)(({theme:e})=>({width:62,height:34,padding:7,"& .MuiSwitch-switchBase":{margin:1,padding:0,transform:"translateX(6px)","&.Mui-checked":{color:"#fff",transform:"translateX(22px)","& .MuiSwitch-thumb:before":{backgroundImage:`url('data:image/svg+xml;utf8,')`},"& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#8796A5":"#aab4be"}}},"& .MuiSwitch-thumb":{backgroundColor:e.palette.mode==="dark"?"#003892":"#001e3c",width:32,height:32,"&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,')`}},"& .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#8796A5":"#aab4be",borderRadius:20/2}})),NT=ne("div")({display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24});function eq(){const{light:e,toggle:t}=p.useContext(Po);return v.jsxs(zr.div,{whileHover:{scale:1.05},whileTap:{scale:.95},style:{display:"flex",alignItems:"center"},children:[v.jsx(NT,{children:v.jsx(k9,{style:{color:e?"#FFD700":"#A9A9A9"}})}),v.jsx(ZK,{checked:!e,onChange:t,inputProps:{"aria-label":"toggle theme"}}),v.jsx(NT,{children:v.jsx(C9,{style:{color:e?"#A9A9A9":"#4169E1"}})})]})}const tq=Te(v.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 nq(e){return Ne("MuiAvatar",e)}Fe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rq=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ye({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nq,t)},oq=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(_e(({theme: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",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),iq=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sq=ne(tq,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function aq({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const zS=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:h,variant:m="circular",...y}=r;let C=null;const w=aq({...u,src:f,srcSet:h}),b=f||h,g=b&&w!=="error",x={...r,colorDefault:!g,component:a,variant:m};delete x.ownerState;const P=rq(x),[I,T]=hn("img",{className:P.img,elementType:iq,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:h,sizes:d},ownerState:x});return g?C=v.jsx(I,{...T}):i||i===0?C=i:b&&o?C=o[0]:C=v.jsx(sq,{ownerState:x,className:P.fallback}),v.jsx(oq,{as:a,className:ie(P.root,s),ref:n,...y,ownerState:x,children:C})});var BT={};/** * @license * Copyright 2017 Google LLC * @@ -189,7 +189,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const bD=function(e){const t=[];let n=0;for(let r=0;r>6|192,t[n++]=o&63|128):(o&64512)===55296&&r+1>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},aq=function(e){const t=[];let n=0,r=0;for(;n191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((o&31)<<6|i&63)}else if(o>239&&o<365){const i=e[n++],s=e[n++],a=e[n++],l=((o&7)<<18|(i&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const i=e[n++],s=e[n++];t[r++]=String.fromCharCode((o&15)<<12|(i&63)<<6|s&63)}}return t.join("")},wD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o>2,d=(i&3)<<4|a>>4;let f=(a&15)<<2|c>>6,h=c&63;l||(h=64,s||(f=64)),r.push(n[u],n[d],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(bD(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):aq(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o>4;if(r.push(f),c!==64){const h=a<<4&240|c>>2;if(r.push(h),d!==64){const m=c<<6&192|d;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class lq extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const cq=function(e){const t=bD(e);return wD.encodeByteArray(t,!0)},Dm=function(e){return cq(e).replace(/\./g,"")},CD=function(e){try{return wD.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** + */const CD=function(e){const t=[];let n=0;for(let r=0;r>6|192,t[n++]=o&63|128):(o&64512)===55296&&r+1>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},lq=function(e){const t=[];let n=0,r=0;for(;n191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((o&31)<<6|i&63)}else if(o>239&&o<365){const i=e[n++],s=e[n++],a=e[n++],l=((o&7)<<18|(i&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const i=e[n++],s=e[n++];t[r++]=String.fromCharCode((o&15)<<12|(i&63)<<6|s&63)}}return t.join("")},xD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o>2,d=(i&3)<<4|a>>4;let f=(a&15)<<2|c>>6,h=c&63;l||(h=64,s||(f=64)),r.push(n[u],n[d],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(CD(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):lq(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o>4;if(r.push(f),c!==64){const h=a<<4&240|c>>2;if(r.push(h),d!==64){const m=c<<6&192|d;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class cq extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const uq=function(e){const t=CD(e);return xD.encodeByteArray(t,!0)},Lm=function(e){return uq(e).replace(/\./g,"")},SD=function(e){try{return xD.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** * @license * Copyright 2022 Google LLC * @@ -204,7 +204,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function uq(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** + */function dq(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** * @license * Copyright 2022 Google LLC * @@ -219,7 +219,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const dq=()=>uq().__FIREBASE_DEFAULTS__,fq=()=>{if(typeof process>"u"||typeof jT>"u")return;const e=jT.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},pq=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&CD(e[1]);return t&&JSON.parse(t)},BS=()=>{try{return dq()||fq()||pq()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},xD=e=>{var t,n;return(n=(t=BS())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},hq=e=>{const t=xD(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},SD=()=>{var e;return(e=BS())===null||e===void 0?void 0:e.config},PD=e=>{var t;return(t=BS())===null||t===void 0?void 0:t[`_${e}`]};/** + */const fq=()=>dq().__FIREBASE_DEFAULTS__,pq=()=>{if(typeof process>"u"||typeof BT>"u")return;const e=BT.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},hq=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&SD(e[1]);return t&&JSON.parse(t)},HS=()=>{try{return fq()||pq()||hq()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},PD=e=>{var t,n;return(n=(t=HS())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},mq=e=>{const t=PD(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},ID=()=>{var e;return(e=HS())===null||e===void 0?void 0:e.config},kD=e=>{var t;return(t=HS())===null||t===void 0?void 0:t[`_${e}`]};/** * @license * Copyright 2017 Google LLC * @@ -234,7 +234,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class mq{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** + */class gq{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** * @license * Copyright 2021 Google LLC * @@ -249,7 +249,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function gq(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",o=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:o,exp:o+3600,auth_time:o,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Dm(JSON.stringify(n)),Dm(JSON.stringify(s)),""].join(".")}/** + */function vq(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",o=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:o,exp:o+3600,auth_time:o,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Lm(JSON.stringify(n)),Lm(JSON.stringify(s)),""].join(".")}/** * @license * Copyright 2017 Google LLC * @@ -264,7 +264,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ir(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function vq(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ir())}function yq(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function ID(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function bq(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function wq(){const e=ir();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function kD(){try{return typeof indexedDB=="object"}catch{return!1}}function TD(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var i;t(((i=o.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){t(n)}})}function Cq(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** + */function ir(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function yq(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ir())}function bq(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function TD(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function wq(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Cq(){const e=ir();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function ED(){try{return typeof indexedDB=="object"}catch{return!1}}function OD(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var i;t(((i=o.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){t(n)}})}function xq(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** * @license * Copyright 2017 Google LLC * @@ -279,7 +279,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const xq="FirebaseError";class Uo extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=xq,Object.setPrototypeOf(this,Uo.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,hl.prototype.create)}}class hl{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},o=`${this.service}/${t}`,i=this.errors[t],s=i?Sq(i,r):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new Uo(o,a,r)}}function Sq(e,t){return e.replace(Pq,(n,r)=>{const o=t[r];return o!=null?String(o):`<${r}?>`})}const Pq=/\{\$([^}]+)}/g;function Iq(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Tf(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const i=e[o],s=t[o];if(NT(i)&&NT(s)){if(!Tf(i,s))return!1}else if(i!==s)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function NT(e){return e!==null&&typeof e=="object"}/** + */const Sq="FirebaseError";class Uo extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Sq,Object.setPrototypeOf(this,Uo.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,hl.prototype.create)}}class hl{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},o=`${this.service}/${t}`,i=this.errors[t],s=i?Pq(i,r):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new Uo(o,a,r)}}function Pq(e,t){return e.replace(Iq,(n,r)=>{const o=t[r];return o!=null?String(o):`<${r}?>`})}const Iq=/\{\$([^}]+)}/g;function kq(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Tf(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const i=e[o],s=t[o];if(zT(i)&&zT(s)){if(!Tf(i,s))return!1}else if(i!==s)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function zT(e){return e!==null&&typeof e=="object"}/** * @license * Copyright 2017 Google LLC * @@ -294,7 +294,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function tp(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(o=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function kq(e,t){const n=new Tq(e,t);return n.subscribe.bind(n)}class Tq{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let o;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Eq(t,["next","error","complete"])?o=t:o={next:t,error:n,complete:r},o.next===void 0&&(o.next=Cb),o.error===void 0&&(o.error=Cb),o.complete===void 0&&(o.complete=Cb);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),i}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Eq(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Cb(){}/** + */function tp(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(o=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Tq(e,t){const n=new Eq(e,t);return n.subscribe.bind(n)}class Eq{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let o;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Oq(t,["next","error","complete"])?o=t:o={next:t,error:n,complete:r},o.next===void 0&&(o.next=xb),o.error===void 0&&(o.error=xb),o.complete===void 0&&(o.complete=xb);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),i}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Oq(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function xb(){}/** * @license * Copyright 2019 Google LLC * @@ -309,7 +309,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Oq=1e3,Mq=2,Rq=4*60*60*1e3,$q=.5;function BT(e,t=Oq,n=Mq){const r=t*Math.pow(n,e),o=Math.round($q*r*(Math.random()-.5)*2);return Math.min(Rq,r+o)}/** + */const Mq=1e3,Rq=2,$q=4*60*60*1e3,_q=.5;function HT(e,t=Mq,n=Rq){const r=t*Math.pow(n,e),o=Math.round(_q*r*(Math.random()-.5)*2);return Math.min($q,r+o)}/** * @license * Copyright 2021 Google LLC * @@ -339,7 +339,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Ia="[DEFAULT]";/** + */const ka="[DEFAULT]";/** * @license * Copyright 2019 Google LLC * @@ -354,7 +354,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class _q{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new mq;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&r.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(o)return null;throw i}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Dq(t))try{this.getOrInitializeService({instanceIdentifier:Ia})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:o});r.resolve(i)}catch{}}}}clearInstance(t=Ia){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ia){return this.instances.has(t)}getOptions(t=Ia){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&s.resolve(o)}return o}onInit(t,n){var r;const o=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(o))!==null&&r!==void 0?r:new Set;i.add(t),this.onInitCallbacks.set(o,i);const s=this.instances.get(o);return s&&t(s,o),()=>{i.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const o of r)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Aq(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ia){return this.component?this.component.multipleInstances?t:Ia:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Aq(e){return e===Ia?void 0:e}function Dq(e){return e.instantiationMode==="EAGER"}/** + */class Aq{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new gq;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&r.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(o)return null;throw i}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Lq(t))try{this.getOrInitializeService({instanceIdentifier:ka})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:o});r.resolve(i)}catch{}}}}clearInstance(t=ka){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=ka){return this.instances.has(t)}getOptions(t=ka){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&s.resolve(o)}return o}onInit(t,n){var r;const o=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(o))!==null&&r!==void 0?r:new Set;i.add(t),this.onInitCallbacks.set(o,i);const s=this.instances.get(o);return s&&t(s,o),()=>{i.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const o of r)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Dq(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=ka){return this.component?this.component.multipleInstances?t:ka:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Dq(e){return e===ka?void 0:e}function Lq(e){return e.instantiationMode==="EAGER"}/** * @license * Copyright 2019 Google LLC * @@ -369,7 +369,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Lq{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new _q(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** + */class Fq{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Aq(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** * @license * Copyright 2017 Google LLC * @@ -384,7 +384,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var Mt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Mt||(Mt={}));const Fq={debug:Mt.DEBUG,verbose:Mt.VERBOSE,info:Mt.INFO,warn:Mt.WARN,error:Mt.ERROR,silent:Mt.SILENT},jq=Mt.INFO,Nq={[Mt.DEBUG]:"log",[Mt.VERBOSE]:"log",[Mt.INFO]:"info",[Mt.WARN]:"warn",[Mt.ERROR]:"error"},Bq=(e,t,...n)=>{if(tt.some(n=>e instanceof n);let zT,HT;function Hq(){return zT||(zT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Vq(){return HT||(HT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ED=new WeakMap,Lw=new WeakMap,OD=new WeakMap,xb=new WeakMap,HS=new WeakMap;function Uq(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(Ws(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&ED.set(n,e)}).catch(()=>{}),HS.set(t,e),t}function Gq(e){if(Lw.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});Lw.set(e,t)}let Fw={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Lw.get(e);if(t==="objectStoreNames")return e.objectStoreNames||OD.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ws(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Wq(e){Fw=e(Fw)}function Kq(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Sb(this),t,...n);return OD.set(r,t.sort?t.sort():[t]),Ws(r)}:Vq().includes(e)?function(...t){return e.apply(Sb(this),t),Ws(ED.get(this))}:function(...t){return Ws(e.apply(Sb(this),t))}}function qq(e){return typeof e=="function"?Kq(e):(e instanceof IDBTransaction&&Gq(e),zq(e,Hq())?new Proxy(e,Fw):e)}function Ws(e){if(e instanceof IDBRequest)return Uq(e);if(xb.has(e))return xb.get(e);const t=qq(e);return t!==e&&(xb.set(e,t),HS.set(t,e)),t}const Sb=e=>HS.get(e);function MD(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=Ws(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Ws(s.result),l.oldVersion,l.newVersion,Ws(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const Yq=["get","getKey","getAll","getAllKeys","count"],Xq=["put","add","delete","clear"],Pb=new Map;function VT(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Pb.get(t))return Pb.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Xq.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||Yq.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Pb.set(t,i),i}Wq(e=>({...e,get:(t,n,r)=>VT(t,n)||e.get(t,n,r),has:(t,n)=>!!VT(t,n)||e.has(t,n)}));/** + */var Mt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Mt||(Mt={}));const jq={debug:Mt.DEBUG,verbose:Mt.VERBOSE,info:Mt.INFO,warn:Mt.WARN,error:Mt.ERROR,silent:Mt.SILENT},Nq=Mt.INFO,Bq={[Mt.DEBUG]:"log",[Mt.VERBOSE]:"log",[Mt.INFO]:"info",[Mt.WARN]:"warn",[Mt.ERROR]:"error"},zq=(e,t,...n)=>{if(tt.some(n=>e instanceof n);let VT,UT;function Vq(){return VT||(VT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Uq(){return UT||(UT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const MD=new WeakMap,Fw=new WeakMap,RD=new WeakMap,Sb=new WeakMap,US=new WeakMap;function Gq(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(qs(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&MD.set(n,e)}).catch(()=>{}),US.set(t,e),t}function Wq(e){if(Fw.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});Fw.set(e,t)}let jw={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Fw.get(e);if(t==="objectStoreNames")return e.objectStoreNames||RD.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return qs(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Kq(e){jw=e(jw)}function qq(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Pb(this),t,...n);return RD.set(r,t.sort?t.sort():[t]),qs(r)}:Uq().includes(e)?function(...t){return e.apply(Pb(this),t),qs(MD.get(this))}:function(...t){return qs(e.apply(Pb(this),t))}}function Yq(e){return typeof e=="function"?qq(e):(e instanceof IDBTransaction&&Wq(e),Hq(e,Vq())?new Proxy(e,jw):e)}function qs(e){if(e instanceof IDBRequest)return Gq(e);if(Sb.has(e))return Sb.get(e);const t=Yq(e);return t!==e&&(Sb.set(e,t),US.set(t,e)),t}const Pb=e=>US.get(e);function $D(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=qs(s);return r&&s.addEventListener("upgradeneeded",l=>{r(qs(s.result),l.oldVersion,l.newVersion,qs(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const Xq=["get","getKey","getAll","getAllKeys","count"],Qq=["put","add","delete","clear"],Ib=new Map;function GT(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ib.get(t))return Ib.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Qq.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||Xq.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),o&&l.done]))[0]};return Ib.set(t,i),i}Kq(e=>({...e,get:(t,n,r)=>GT(t,n)||e.get(t,n,r),has:(t,n)=>!!GT(t,n)||e.has(t,n)}));/** * @license * Copyright 2019 Google LLC * @@ -399,7 +399,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Qq{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Jq(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Jq(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const jw="@firebase/app",UT="0.10.15";/** + */class Jq{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Zq(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Zq(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Nw="@firebase/app",WT="0.10.15";/** * @license * Copyright 2019 Google LLC * @@ -414,7 +414,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Zi=new zS("@firebase/app"),Zq="@firebase/app-compat",eY="@firebase/analytics-compat",tY="@firebase/analytics",nY="@firebase/app-check-compat",rY="@firebase/app-check",oY="@firebase/auth",iY="@firebase/auth-compat",sY="@firebase/database",aY="@firebase/data-connect",lY="@firebase/database-compat",cY="@firebase/functions",uY="@firebase/functions-compat",dY="@firebase/installations",fY="@firebase/installations-compat",pY="@firebase/messaging",hY="@firebase/messaging-compat",mY="@firebase/performance",gY="@firebase/performance-compat",vY="@firebase/remote-config",yY="@firebase/remote-config-compat",bY="@firebase/storage",wY="@firebase/storage-compat",CY="@firebase/firestore",xY="@firebase/vertexai",SY="@firebase/firestore-compat",PY="firebase",IY="11.0.1";/** + */const es=new VS("@firebase/app"),eY="@firebase/app-compat",tY="@firebase/analytics-compat",nY="@firebase/analytics",rY="@firebase/app-check-compat",oY="@firebase/app-check",iY="@firebase/auth",sY="@firebase/auth-compat",aY="@firebase/database",lY="@firebase/data-connect",cY="@firebase/database-compat",uY="@firebase/functions",dY="@firebase/functions-compat",fY="@firebase/installations",pY="@firebase/installations-compat",hY="@firebase/messaging",mY="@firebase/messaging-compat",gY="@firebase/performance",vY="@firebase/performance-compat",yY="@firebase/remote-config",bY="@firebase/remote-config-compat",wY="@firebase/storage",CY="@firebase/storage-compat",xY="@firebase/firestore",SY="@firebase/vertexai",PY="@firebase/firestore-compat",IY="firebase",kY="11.0.1";/** * @license * Copyright 2019 Google LLC * @@ -429,7 +429,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Nw="[DEFAULT]",kY={[jw]:"fire-core",[Zq]:"fire-core-compat",[tY]:"fire-analytics",[eY]:"fire-analytics-compat",[rY]:"fire-app-check",[nY]:"fire-app-check-compat",[oY]:"fire-auth",[iY]:"fire-auth-compat",[sY]:"fire-rtdb",[aY]:"fire-data-connect",[lY]:"fire-rtdb-compat",[cY]:"fire-fn",[uY]:"fire-fn-compat",[dY]:"fire-iid",[fY]:"fire-iid-compat",[pY]:"fire-fcm",[hY]:"fire-fcm-compat",[mY]:"fire-perf",[gY]:"fire-perf-compat",[vY]:"fire-rc",[yY]:"fire-rc-compat",[bY]:"fire-gcs",[wY]:"fire-gcs-compat",[CY]:"fire-fst",[SY]:"fire-fst-compat",[xY]:"fire-vertex","fire-js":"fire-js",[PY]:"fire-js-all"};/** + */const Bw="[DEFAULT]",TY={[Nw]:"fire-core",[eY]:"fire-core-compat",[nY]:"fire-analytics",[tY]:"fire-analytics-compat",[oY]:"fire-app-check",[rY]:"fire-app-check-compat",[iY]:"fire-auth",[sY]:"fire-auth-compat",[aY]:"fire-rtdb",[lY]:"fire-data-connect",[cY]:"fire-rtdb-compat",[uY]:"fire-fn",[dY]:"fire-fn-compat",[fY]:"fire-iid",[pY]:"fire-iid-compat",[hY]:"fire-fcm",[mY]:"fire-fcm-compat",[gY]:"fire-perf",[vY]:"fire-perf-compat",[yY]:"fire-rc",[bY]:"fire-rc-compat",[wY]:"fire-gcs",[CY]:"fire-gcs-compat",[xY]:"fire-fst",[PY]:"fire-fst-compat",[SY]:"fire-vertex","fire-js":"fire-js",[IY]:"fire-js-all"};/** * @license * Copyright 2019 Google LLC * @@ -444,7 +444,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Lm=new Map,TY=new Map,Bw=new Map;function GT(e,t){try{e.container.addComponent(t)}catch(n){Zi.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function mi(e){const t=e.name;if(Bw.has(t))return Zi.debug(`There were multiple attempts to register component ${t}.`),!1;Bw.set(t,e);for(const n of Lm.values())GT(n,e);for(const n of TY.values())GT(n,e);return!0}function ml(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Di(e){return e.settings!==void 0}/** + */const Fm=new Map,EY=new Map,zw=new Map;function KT(e,t){try{e.container.addComponent(t)}catch(n){es.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function mi(e){const t=e.name;if(zw.has(t))return es.debug(`There were multiple attempts to register component ${t}.`),!1;zw.set(t,e);for(const n of Fm.values())KT(n,e);for(const n of EY.values())KT(n,e);return!0}function ml(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Di(e){return e.settings!==void 0}/** * @license * Copyright 2019 Google LLC * @@ -459,7 +459,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const EY={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ks=new hl("app","Firebase",EY);/** + */const OY={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ys=new hl("app","Firebase",OY);/** * @license * Copyright 2019 Google LLC * @@ -474,7 +474,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class OY{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Ho("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ks.create("app-deleted",{appName:this._name})}}/** + */class MY{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Ho("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ys.create("app-deleted",{appName:this._name})}}/** * @license * Copyright 2019 Google LLC * @@ -489,7 +489,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Iu=IY;function RD(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Nw,automaticDataCollectionEnabled:!1},t),o=r.name;if(typeof o!="string"||!o)throw Ks.create("bad-app-name",{appName:String(o)});if(n||(n=SD()),!n)throw Ks.create("no-options");const i=Lm.get(o);if(i){if(Tf(n,i.options)&&Tf(r,i.config))return i;throw Ks.create("duplicate-app",{appName:o})}const s=new Lq(o);for(const l of Bw.values())s.addComponent(l);const a=new OY(n,r,s);return Lm.set(o,a),a}function VS(e=Nw){const t=Lm.get(e);if(!t&&e===Nw&&SD())return RD();if(!t)throw Ks.create("no-app",{appName:e});return t}function ho(e,t,n){var r;let o=(r=kY[e])!==null&&r!==void 0?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const a=[`Unable to register library "${o}" with version "${t}":`];i&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Zi.warn(a.join(" "));return}mi(new Ho(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/** + */const Iu=kY;function _D(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Bw,automaticDataCollectionEnabled:!1},t),o=r.name;if(typeof o!="string"||!o)throw Ys.create("bad-app-name",{appName:String(o)});if(n||(n=ID()),!n)throw Ys.create("no-options");const i=Fm.get(o);if(i){if(Tf(n,i.options)&&Tf(r,i.config))return i;throw Ys.create("duplicate-app",{appName:o})}const s=new Fq(o);for(const l of zw.values())s.addComponent(l);const a=new MY(n,r,s);return Fm.set(o,a),a}function GS(e=Bw){const t=Fm.get(e);if(!t&&e===Bw&&ID())return _D();if(!t)throw Ys.create("no-app",{appName:e});return t}function ho(e,t,n){var r;let o=(r=TY[e])!==null&&r!==void 0?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const a=[`Unable to register library "${o}" with version "${t}":`];i&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),es.warn(a.join(" "));return}mi(new Ho(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/** * @license * Copyright 2021 Google LLC * @@ -504,7 +504,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const MY="firebase-heartbeat-database",RY=1,Ef="firebase-heartbeat-store";let Ib=null;function $D(){return Ib||(Ib=MD(MY,RY,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ef)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ks.create("idb-open",{originalErrorMessage:e.message})})),Ib}async function $Y(e){try{const n=(await $D()).transaction(Ef),r=await n.objectStore(Ef).get(_D(e));return await n.done,r}catch(t){if(t instanceof Uo)Zi.warn(t.message);else{const n=Ks.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Zi.warn(n.message)}}}async function WT(e,t){try{const r=(await $D()).transaction(Ef,"readwrite");await r.objectStore(Ef).put(t,_D(e)),await r.done}catch(n){if(n instanceof Uo)Zi.warn(n.message);else{const r=Ks.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Zi.warn(r.message)}}}function _D(e){return`${e.name}!${e.options.appId}`}/** + */const RY="firebase-heartbeat-database",$Y=1,Ef="firebase-heartbeat-store";let kb=null;function AD(){return kb||(kb=$D(RY,$Y,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ef)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ys.create("idb-open",{originalErrorMessage:e.message})})),kb}async function _Y(e){try{const n=(await AD()).transaction(Ef),r=await n.objectStore(Ef).get(DD(e));return await n.done,r}catch(t){if(t instanceof Uo)es.warn(t.message);else{const n=Ys.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});es.warn(n.message)}}}async function qT(e,t){try{const r=(await AD()).transaction(Ef,"readwrite");await r.objectStore(Ef).put(t,DD(e)),await r.done}catch(n){if(n instanceof Uo)es.warn(n.message);else{const r=Ys.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});es.warn(r.message)}}}function DD(e){return`${e.name}!${e.options.appId}`}/** * @license * Copyright 2021 Google LLC * @@ -519,7 +519,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const _Y=1024,AY=30*24*60*60*1e3;class DY{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new FY(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=KT();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(s=>s.date===i)?void 0:(this._heartbeatsCache.heartbeats.push({date:i,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=AY}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Zi.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=KT(),{heartbeatsToSend:r,unsentEntries:o}=LY(this._heartbeatsCache.heartbeats),i=Dm(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return Zi.warn(n),""}}}function KT(){return new Date().toISOString().substring(0,10)}function LY(e,t=_Y){const n=[];let r=e.slice();for(const o of e){const i=n.find(s=>s.agent===o.agent);if(i){if(i.dates.push(o.date),qT(n)>t){i.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),qT(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class FY{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return kD()?TD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await $Y(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return WT(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return WT(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function qT(e){return Dm(JSON.stringify({version:2,heartbeats:e})).length}/** + */const AY=1024,DY=30*24*60*60*1e3;class LY{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new jY(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=YT();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(s=>s.date===i)?void 0:(this._heartbeatsCache.heartbeats.push({date:i,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=DY}),this._storage.overwrite(this._heartbeatsCache))}catch(r){es.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=YT(),{heartbeatsToSend:r,unsentEntries:o}=FY(this._heartbeatsCache.heartbeats),i=Lm(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return es.warn(n),""}}}function YT(){return new Date().toISOString().substring(0,10)}function FY(e,t=AY){const n=[];let r=e.slice();for(const o of e){const i=n.find(s=>s.agent===o.agent);if(i){if(i.dates.push(o.date),XT(n)>t){i.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),XT(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class jY{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return ED()?OD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await _Y(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return qT(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return qT(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function XT(e){return Lm(JSON.stringify({version:2,heartbeats:e})).length}/** * @license * Copyright 2019 Google LLC * @@ -534,7 +534,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function jY(e){mi(new Ho("platform-logger",t=>new Qq(t),"PRIVATE")),mi(new Ho("heartbeat",t=>new DY(t),"PRIVATE")),ho(jw,UT,e),ho(jw,UT,"esm2017"),ho("fire-js","")}jY("");function US(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);onew Jq(t),"PRIVATE")),mi(new Ho("heartbeat",t=>new LY(t),"PRIVATE")),ho(Nw,WT,e),ho(Nw,WT,"esm2017"),ho("fire-js","")}NY("");function WS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** + */function UY(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(VY()||TD()||"connection"in navigator)?navigator.onLine:!0}function GY(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** * @license * Copyright 2020 Google LLC * @@ -609,7 +609,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class np{constructor(t,n){this.shortDelay=t,this.longDelay=n,es(n>t,"Short delay should be less than long delay!"),this.isMobile=vq()||bq()}get(){return VY()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** + */class np{constructor(t,n){this.shortDelay=t,this.longDelay=n,ts(n>t,"Short delay should be less than long delay!"),this.isMobile=yq()||wq()}get(){return UY()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** * @license * Copyright 2020 Google LLC * @@ -624,7 +624,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function KS(e,t){es(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/** + */function YS(e,t){ts(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/** * @license * Copyright 2020 Google LLC * @@ -639,7 +639,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class LD{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Li("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Li("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Li("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** + */class jD{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Li("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Li("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Li("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** * @license * Copyright 2020 Google LLC * @@ -654,7 +654,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const GY={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** + */const WY={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** * @license * Copyright 2020 Google LLC * @@ -669,7 +669,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const WY=new np(3e4,6e4);function qS(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function ku(e,t,n,r,o={}){return FD(e,o,async()=>{let i={},s={};r&&(t==="GET"?s=r:i={body:JSON.stringify(r)});const a=tp(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const c=Object.assign({method:t,headers:l},i);return yq()||(c.referrerPolicy="no-referrer"),LD.fetch()(jD(e,e.config.apiHost,n,a),c)})}async function FD(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},GY),t);try{const o=new qY(e),i=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw Jp(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const a=i.ok?s.errorMessage:s.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Jp(e,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Jp(e,"email-already-in-use",s);if(l==="USER_DISABLED")throw Jp(e,"user-disabled",s);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw GS(e,u,c);gi(e,u)}}catch(o){if(o instanceof Uo)throw o;gi(e,"network-request-failed",{message:String(o)})}}async function KY(e,t,n,r,o={}){const i=await ku(e,t,n,r,o);return"mfaPendingCredential"in i&&gi(e,"multi-factor-auth-required",{_serverResponse:i}),i}function jD(e,t,n,r){const o=`${t}${n}?${r}`;return e.config.emulator?KS(e.config,o):`${e.config.apiScheme}://${o}`}class qY{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(jo(this.auth,"network-request-failed")),WY.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Jp(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=jo(e,t,r);return o.customData._tokenResponse=n,o}/** + */const KY=new np(3e4,6e4);function XS(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function ku(e,t,n,r,o={}){return ND(e,o,async()=>{let i={},s={};r&&(t==="GET"?s=r:i={body:JSON.stringify(r)});const a=tp(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const c=Object.assign({method:t,headers:l},i);return bq()||(c.referrerPolicy="no-referrer"),jD.fetch()(BD(e,e.config.apiHost,n,a),c)})}async function ND(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},WY),t);try{const o=new YY(e),i=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw Jp(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const a=i.ok?s.errorMessage:s.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Jp(e,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Jp(e,"email-already-in-use",s);if(l==="USER_DISABLED")throw Jp(e,"user-disabled",s);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw KS(e,u,c);gi(e,u)}}catch(o){if(o instanceof Uo)throw o;gi(e,"network-request-failed",{message:String(o)})}}async function qY(e,t,n,r,o={}){const i=await ku(e,t,n,r,o);return"mfaPendingCredential"in i&&gi(e,"multi-factor-auth-required",{_serverResponse:i}),i}function BD(e,t,n,r){const o=`${t}${n}?${r}`;return e.config.emulator?YS(e.config,o):`${e.config.apiScheme}://${o}`}class YY{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(jo(this.auth,"network-request-failed")),KY.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Jp(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=jo(e,t,r);return o.customData._tokenResponse=n,o}/** * @license * Copyright 2020 Google LLC * @@ -684,7 +684,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function YY(e,t){return ku(e,"POST","/v1/accounts:delete",t)}async function ND(e,t){return ku(e,"POST","/v1/accounts:lookup",t)}/** + */async function XY(e,t){return ku(e,"POST","/v1/accounts:delete",t)}async function zD(e,t){return ku(e,"POST","/v1/accounts:lookup",t)}/** * @license * Copyright 2020 Google LLC * @@ -699,7 +699,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Nd(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function XY(e,t=!1){const n=kr(e),r=await n.getIdToken(t),o=YS(r);Ye(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const i=typeof o.firebase=="object"?o.firebase:void 0,s=i==null?void 0:i.sign_in_provider;return{claims:o,token:r,authTime:Nd(kb(o.auth_time)),issuedAtTime:Nd(kb(o.iat)),expirationTime:Nd(kb(o.exp)),signInProvider:s||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function kb(e){return Number(e)*1e3}function YS(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return _h("JWT malformed, contained fewer than 3 sections"),null;try{const o=CD(n);return o?JSON.parse(o):(_h("Failed to decode base64 JWT payload"),null)}catch(o){return _h("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function XT(e){const t=YS(e);return Ye(t,"internal-error"),Ye(typeof t.exp<"u","internal-error"),Ye(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** + */function Nd(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function QY(e,t=!1){const n=kr(e),r=await n.getIdToken(t),o=QS(r);Ye(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const i=typeof o.firebase=="object"?o.firebase:void 0,s=i==null?void 0:i.sign_in_provider;return{claims:o,token:r,authTime:Nd(Tb(o.auth_time)),issuedAtTime:Nd(Tb(o.iat)),expirationTime:Nd(Tb(o.exp)),signInProvider:s||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function Tb(e){return Number(e)*1e3}function QS(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return _h("JWT malformed, contained fewer than 3 sections"),null;try{const o=SD(n);return o?JSON.parse(o):(_h("Failed to decode base64 JWT payload"),null)}catch(o){return _h("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function JT(e){const t=QS(e);return Ye(t,"internal-error"),Ye(typeof t.exp<"u","internal-error"),Ye(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** * @license * Copyright 2020 Google LLC * @@ -714,7 +714,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function Of(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Uo&&QY(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function QY({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** + */async function Of(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Uo&&JY(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function JY({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** * @license * Copyright 2020 Google LLC * @@ -729,7 +729,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class JY{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const o=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,o)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** + */class ZY{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const o=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,o)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** * @license * Copyright 2020 Google LLC * @@ -744,7 +744,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Hw{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Nd(this.lastLoginAt),this.creationTime=Nd(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** + */class Vw{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Nd(this.lastLoginAt),this.creationTime=Nd(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** * @license * Copyright 2019 Google LLC * @@ -759,7 +759,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function jm(e){var t;const n=e.auth,r=await e.getIdToken(),o=await Of(e,ND(n,{idToken:r}));Ye(o==null?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=!((t=i.providerUserInfo)===null||t===void 0)&&t.length?BD(i.providerUserInfo):[],a=eX(e.providerData,s),l=e.isAnonymous,c=!(e.email&&i.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new Hw(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function ZY(e){const t=kr(e);await jm(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function eX(e,t){return[...e.filter(r=>!t.some(o=>o.providerId===r.providerId)),...t]}function BD(e){return e.map(t=>{var{providerId:n}=t,r=US(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** + */async function Nm(e){var t;const n=e.auth,r=await e.getIdToken(),o=await Of(e,zD(n,{idToken:r}));Ye(o==null?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=!((t=i.providerUserInfo)===null||t===void 0)&&t.length?HD(i.providerUserInfo):[],a=tX(e.providerData,s),l=e.isAnonymous,c=!(e.email&&i.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new Vw(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function eX(e){const t=kr(e);await Nm(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function tX(e,t){return[...e.filter(r=>!t.some(o=>o.providerId===r.providerId)),...t]}function HD(e){return e.map(t=>{var{providerId:n}=t,r=WS(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** * @license * Copyright 2020 Google LLC * @@ -774,7 +774,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function tX(e,t){const n=await FD(e,{},async()=>{const r=tp({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:i}=e.config,s=jD(e,o,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",LD.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function nX(e,t){return ku(e,"POST","/v2/accounts:revokeToken",qS(e,t))}/** + */async function nX(e,t){const n=await ND(e,{},async()=>{const r=tp({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:i}=e.config,s=BD(e,o,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",jD.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function rX(e,t){return ku(e,"POST","/v2/accounts:revokeToken",XS(e,t))}/** * @license * Copyright 2020 Google LLC * @@ -789,7 +789,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class kc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Ye(t.idToken,"internal-error"),Ye(typeof t.idToken<"u","internal-error"),Ye(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):XT(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Ye(t.length!==0,"internal-error");const n=XT(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Ye(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:o,expiresIn:i}=await tX(t,n);this.updateTokensAndExpiration(r,o,Number(i))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:o,expirationTime:i}=n,s=new kc;return r&&(Ye(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),o&&(Ye(typeof o=="string","internal-error",{appName:t}),s.accessToken=o),i&&(Ye(typeof i=="number","internal-error",{appName:t}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new kc,this.toJSON())}_performRefresh(){return Li("not implemented")}}/** + */class kc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Ye(t.idToken,"internal-error"),Ye(typeof t.idToken<"u","internal-error"),Ye(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):JT(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Ye(t.length!==0,"internal-error");const n=JT(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Ye(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:o,expiresIn:i}=await nX(t,n);this.updateTokensAndExpiration(r,o,Number(i))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:o,expirationTime:i}=n,s=new kc;return r&&(Ye(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),o&&(Ye(typeof o=="string","internal-error",{appName:t}),s.accessToken=o),i&&(Ye(typeof i=="number","internal-error",{appName:t}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new kc,this.toJSON())}_performRefresh(){return Li("not implemented")}}/** * @license * Copyright 2020 Google LLC * @@ -804,7 +804,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ps(e,t){Ye(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class Fi{constructor(t){var{uid:n,auth:r,stsTokenManager:o}=t,i=US(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new JY(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=o,this.accessToken=o.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Hw(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await Of(this,this.stsTokenManager.getToken(this.auth,t));return Ye(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return XY(this,t)}reload(){return ZY(this)}_assign(t){this!==t&&(Ye(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new Fi(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Ye(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await jm(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Di(this.auth.app))return Promise.reject(Ba(this.auth));const t=await this.getIdToken();return await Of(this,YY(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,o,i,s,a,l,c,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(o=n.email)!==null&&o!==void 0?o:void 0,h=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,m=(s=n.photoURL)!==null&&s!==void 0?s:void 0,y=(a=n.tenantId)!==null&&a!==void 0?a:void 0,C=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,w=(c=n.createdAt)!==null&&c!==void 0?c:void 0,b=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:g,emailVerified:x,isAnonymous:P,providerData:I,stsTokenManager:T}=n;Ye(g&&T,t,"internal-error");const M=kc.fromJSON(this.name,T);Ye(typeof g=="string",t,"internal-error"),ps(d,t.name),ps(f,t.name),Ye(typeof x=="boolean",t,"internal-error"),Ye(typeof P=="boolean",t,"internal-error"),ps(h,t.name),ps(m,t.name),ps(y,t.name),ps(C,t.name),ps(w,t.name),ps(b,t.name);const k=new Fi({uid:g,auth:t,email:f,emailVerified:x,displayName:d,isAnonymous:P,photoURL:m,phoneNumber:h,tenantId:y,stsTokenManager:M,createdAt:w,lastLoginAt:b});return I&&Array.isArray(I)&&(k.providerData=I.map(S=>Object.assign({},S))),C&&(k._redirectEventId=C),k}static async _fromIdTokenResponse(t,n,r=!1){const o=new kc;o.updateFromServerResponse(n);const i=new Fi({uid:n.localId,auth:t,stsTokenManager:o,isAnonymous:r});return await jm(i),i}static async _fromGetAccountInfoResponse(t,n,r){const o=n.users[0];Ye(o.localId!==void 0,"internal-error");const i=o.providerUserInfo!==void 0?BD(o.providerUserInfo):[],s=!(o.email&&o.passwordHash)&&!(i!=null&&i.length),a=new kc;a.updateFromIdToken(r);const l=new Fi({uid:o.localId,auth:t,stsTokenManager:a,isAnonymous:s}),c={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:i,metadata:new Hw(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(i!=null&&i.length)};return Object.assign(l,c),l}}/** + */function hs(e,t){Ye(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class Fi{constructor(t){var{uid:n,auth:r,stsTokenManager:o}=t,i=WS(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new ZY(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=o,this.accessToken=o.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Vw(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await Of(this,this.stsTokenManager.getToken(this.auth,t));return Ye(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return QY(this,t)}reload(){return eX(this)}_assign(t){this!==t&&(Ye(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new Fi(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Ye(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await Nm(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Di(this.auth.app))return Promise.reject(Ba(this.auth));const t=await this.getIdToken();return await Of(this,XY(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,o,i,s,a,l,c,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(o=n.email)!==null&&o!==void 0?o:void 0,h=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,m=(s=n.photoURL)!==null&&s!==void 0?s:void 0,y=(a=n.tenantId)!==null&&a!==void 0?a:void 0,C=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,w=(c=n.createdAt)!==null&&c!==void 0?c:void 0,b=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:g,emailVerified:x,isAnonymous:P,providerData:I,stsTokenManager:T}=n;Ye(g&&T,t,"internal-error");const M=kc.fromJSON(this.name,T);Ye(typeof g=="string",t,"internal-error"),hs(d,t.name),hs(f,t.name),Ye(typeof x=="boolean",t,"internal-error"),Ye(typeof P=="boolean",t,"internal-error"),hs(h,t.name),hs(m,t.name),hs(y,t.name),hs(C,t.name),hs(w,t.name),hs(b,t.name);const k=new Fi({uid:g,auth:t,email:f,emailVerified:x,displayName:d,isAnonymous:P,photoURL:m,phoneNumber:h,tenantId:y,stsTokenManager:M,createdAt:w,lastLoginAt:b});return I&&Array.isArray(I)&&(k.providerData=I.map(S=>Object.assign({},S))),C&&(k._redirectEventId=C),k}static async _fromIdTokenResponse(t,n,r=!1){const o=new kc;o.updateFromServerResponse(n);const i=new Fi({uid:n.localId,auth:t,stsTokenManager:o,isAnonymous:r});return await Nm(i),i}static async _fromGetAccountInfoResponse(t,n,r){const o=n.users[0];Ye(o.localId!==void 0,"internal-error");const i=o.providerUserInfo!==void 0?HD(o.providerUserInfo):[],s=!(o.email&&o.passwordHash)&&!(i!=null&&i.length),a=new kc;a.updateFromIdToken(r);const l=new Fi({uid:o.localId,auth:t,stsTokenManager:a,isAnonymous:s}),c={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:i,metadata:new Vw(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(i!=null&&i.length)};return Object.assign(l,c),l}}/** * @license * Copyright 2020 Google LLC * @@ -819,7 +819,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const QT=new Map;function ji(e){es(e instanceof Function,"Expected a class definition");let t=QT.get(e);return t?(es(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,QT.set(e,t),t)}/** + */const ZT=new Map;function ji(e){ts(e instanceof Function,"Expected a class definition");let t=ZT.get(e);return t?(ts(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,ZT.set(e,t),t)}/** * @license * Copyright 2019 Google LLC * @@ -834,7 +834,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class zD{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}zD.type="NONE";const JT=zD;/** + */class VD{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}VD.type="NONE";const eE=VD;/** * @license * Copyright 2019 Google LLC * @@ -849,7 +849,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Ah(e,t,n){return`firebase:${e}:${t}:${n}`}class Tc{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:o,name:i}=this.auth;this.fullUserKey=Ah(this.userKey,o.apiKey,i),this.fullPersistenceKey=Ah("persistence",o.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?Fi._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new Tc(ji(JT),t,r);const o=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=o[0]||ji(JT);const s=Ah(r,t.config.apiKey,t.name);let a=null;for(const c of n)try{const u=await c._get(s);if(u){const d=Fi._fromJSON(t,u);c!==i&&(a=d),i=c;break}}catch{}const l=o.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new Tc(i,t,r):(i=l[0],a&&await i._set(s,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==i)try{await c._remove(s)}catch{}})),new Tc(i,t,r))}}/** + */function Ah(e,t,n){return`firebase:${e}:${t}:${n}`}class Tc{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:o,name:i}=this.auth;this.fullUserKey=Ah(this.userKey,o.apiKey,i),this.fullPersistenceKey=Ah("persistence",o.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?Fi._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new Tc(ji(eE),t,r);const o=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=o[0]||ji(eE);const s=Ah(r,t.config.apiKey,t.name);let a=null;for(const c of n)try{const u=await c._get(s);if(u){const d=Fi._fromJSON(t,u);c!==i&&(a=d),i=c;break}}catch{}const l=o.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new Tc(i,t,r):(i=l[0],a&&await i._set(s,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==i)try{await c._remove(s)}catch{}})),new Tc(i,t,r))}}/** * @license * Copyright 2020 Google LLC * @@ -864,7 +864,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ZT(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(GD(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(HD(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(KD(t))return"Blackberry";if(qD(t))return"Webos";if(VD(t))return"Safari";if((t.includes("chrome/")||UD(t))&&!t.includes("edge/"))return"Chrome";if(WD(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function HD(e=ir()){return/firefox\//i.test(e)}function VD(e=ir()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function UD(e=ir()){return/crios\//i.test(e)}function GD(e=ir()){return/iemobile/i.test(e)}function WD(e=ir()){return/android/i.test(e)}function KD(e=ir()){return/blackberry/i.test(e)}function qD(e=ir()){return/webos/i.test(e)}function XS(e=ir()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function rX(e=ir()){var t;return XS(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function oX(){return wq()&&document.documentMode===10}function YD(e=ir()){return XS(e)||WD(e)||qD(e)||KD(e)||/windows phone/i.test(e)||GD(e)}/** + */function tE(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(KD(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(UD(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(YD(t))return"Blackberry";if(XD(t))return"Webos";if(GD(t))return"Safari";if((t.includes("chrome/")||WD(t))&&!t.includes("edge/"))return"Chrome";if(qD(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function UD(e=ir()){return/firefox\//i.test(e)}function GD(e=ir()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function WD(e=ir()){return/crios\//i.test(e)}function KD(e=ir()){return/iemobile/i.test(e)}function qD(e=ir()){return/android/i.test(e)}function YD(e=ir()){return/blackberry/i.test(e)}function XD(e=ir()){return/webos/i.test(e)}function JS(e=ir()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function oX(e=ir()){var t;return JS(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function iX(){return Cq()&&document.documentMode===10}function QD(e=ir()){return JS(e)||qD(e)||XD(e)||YD(e)||/windows phone/i.test(e)||KD(e)}/** * @license * Copyright 2020 Google LLC * @@ -879,7 +879,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function XD(e,t=[]){let n;switch(e){case"Browser":n=ZT(ir());break;case"Worker":n=`${ZT(ir())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Iu}/${r}`}/** + */function JD(e,t=[]){let n;switch(e){case"Browser":n=tE(ir());break;case"Worker":n=`${tE(ir())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Iu}/${r}`}/** * @license * Copyright 2022 Google LLC * @@ -894,7 +894,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class iX{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=i=>new Promise((s,a)=>{try{const l=t(i);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const o of n)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** + */class sX{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=i=>new Promise((s,a)=>{try{const l=t(i);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const o of n)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** * @license * Copyright 2023 Google LLC * @@ -909,7 +909,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function sX(e,t={}){return ku(e,"GET","/v2/passwordPolicy",qS(e,t))}/** + */async function aX(e,t={}){return ku(e,"GET","/v2/passwordPolicy",XS(e,t))}/** * @license * Copyright 2023 Google LLC * @@ -924,7 +924,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const aX=6;class lX{constructor(t){var n,r,o,i;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:aX,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(i=t.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,o,i,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(o=l.containsLowercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),o&&(n.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let o=0;o="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,o,i){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=i))}}/** + */const lX=6;class cX{constructor(t){var n,r,o,i;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:lX,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(i=t.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,o,i,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(o=l.containsLowercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),o&&(n.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let o=0;o="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,o,i){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=i))}}/** * @license * Copyright 2020 Google LLC * @@ -939,7 +939,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class cX{constructor(t,n,r,o){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new eE(this),this.idTokenSubscription=new eE(this),this.beforeStateQueue=new iX(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=DD,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=ji(n)),this._initializationPromise=this.queue(async()=>{var r,o;if(!this._deleted&&(this.persistenceManager=await Tc.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((o=this.currentUser)===null||o===void 0?void 0:o.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await ND(this,{idToken:t}),r=await Fi._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Di(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let o=r,i=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=o==null?void 0:o._redirectEventId,l=await this.tryRedirectSignIn(t);(!s||s===a)&&(l!=null&&l.user)&&(o=l.user,i=!0)}if(!o)return this.directlySetCurrentUser(null);if(!o._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(o)}catch(s){o=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return Ye(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await jm(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=UY()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Di(this.app))return Promise.reject(Ba(this));const n=t?kr(t):null;return n&&Ye(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Ye(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Di(this.app)?Promise.reject(Ba(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Di(this.app)?Promise.reject(Ba(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ji(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await sX(this),n=new lX(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new hl("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await nX(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&ji(t)||this._popupRedirectResolver;Ye(n,this,"argument-error"),this.redirectPersistenceManager=await Tc.create(this,[ji(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,o){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ye(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,o);return()=>{s=!0,l()}}else{const l=t.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Ye(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=XD(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const o=await this._getAppCheckToken();return o&&(n["X-Firebase-AppCheck"]=o),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&BY(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function $v(e){return kr(e)}class eE{constructor(t){this.auth=t,this.observer=null,this.addObserver=kq(n=>this.observer=n)}get next(){return Ye(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** + */class uX{constructor(t,n,r,o){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new nE(this),this.idTokenSubscription=new nE(this),this.beforeStateQueue=new sX(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=FD,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=ji(n)),this._initializationPromise=this.queue(async()=>{var r,o;if(!this._deleted&&(this.persistenceManager=await Tc.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((o=this.currentUser)===null||o===void 0?void 0:o.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await zD(this,{idToken:t}),r=await Fi._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Di(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let o=r,i=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=o==null?void 0:o._redirectEventId,l=await this.tryRedirectSignIn(t);(!s||s===a)&&(l!=null&&l.user)&&(o=l.user,i=!0)}if(!o)return this.directlySetCurrentUser(null);if(!o._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(o)}catch(s){o=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return Ye(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await Nm(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=GY()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Di(this.app))return Promise.reject(Ba(this));const n=t?kr(t):null;return n&&Ye(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Ye(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Di(this.app)?Promise.reject(Ba(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Di(this.app)?Promise.reject(Ba(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ji(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await aX(this),n=new cX(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new hl("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await rX(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&ji(t)||this._popupRedirectResolver;Ye(n,this,"argument-error"),this.redirectPersistenceManager=await Tc.create(this,[ji(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,o){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ye(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,o);return()=>{s=!0,l()}}else{const l=t.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Ye(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=JD(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const o=await this._getAppCheckToken();return o&&(n["X-Firebase-AppCheck"]=o),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&zY(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function _v(e){return kr(e)}class nE{constructor(t){this.auth=t,this.observer=null,this.addObserver=Tq(n=>this.observer=n)}get next(){return Ye(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** * @license * Copyright 2020 Google LLC * @@ -954,7 +954,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let QS={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function uX(e){QS=e}function dX(e){return QS.loadJS(e)}function fX(){return QS.gapiScript}function pX(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/** + */let ZS={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function dX(e){ZS=e}function fX(e){return ZS.loadJS(e)}function pX(){return ZS.gapiScript}function hX(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/** * @license * Copyright 2020 Google LLC * @@ -969,7 +969,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function hX(e,t){const n=ml(e,"auth");if(n.isInitialized()){const o=n.getImmediate(),i=n.getOptions();if(Tf(i,t??{}))return o;gi(o,"already-initialized")}return n.initialize({options:t})}function mX(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(ji);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function gX(e,t,n){const r=$v(e);Ye(r._canInitEmulator,r,"emulator-config-failed"),Ye(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!1,i=QD(t),{host:s,port:a}=vX(t),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),yX()}function QD(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function vX(e){const t=QD(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const i=o[1];return{host:i,port:tE(r.substr(i.length+1))}}else{const[i,s]=r.split(":");return{host:i,port:tE(s)}}}function tE(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function yX(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** + */function mX(e,t){const n=ml(e,"auth");if(n.isInitialized()){const o=n.getImmediate(),i=n.getOptions();if(Tf(i,t??{}))return o;gi(o,"already-initialized")}return n.initialize({options:t})}function gX(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(ji);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function vX(e,t,n){const r=_v(e);Ye(r._canInitEmulator,r,"emulator-config-failed"),Ye(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!1,i=ZD(t),{host:s,port:a}=yX(t),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),bX()}function ZD(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function yX(e){const t=ZD(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const i=o[1];return{host:i,port:rE(r.substr(i.length+1))}}else{const[i,s]=r.split(":");return{host:i,port:rE(s)}}}function rE(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function bX(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** * @license * Copyright 2020 Google LLC * @@ -984,7 +984,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class JD{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Li("not implemented")}_getIdTokenResponse(t){return Li("not implemented")}_linkToIdToken(t,n){return Li("not implemented")}_getReauthenticationResolver(t){return Li("not implemented")}}/** + */class eL{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Li("not implemented")}_getIdTokenResponse(t){return Li("not implemented")}_linkToIdToken(t,n){return Li("not implemented")}_getReauthenticationResolver(t){return Li("not implemented")}}/** * @license * Copyright 2020 Google LLC * @@ -999,7 +999,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function Ec(e,t){return KY(e,"POST","/v1/accounts:signInWithIdp",qS(e,t))}/** + */async function Ec(e,t){return qY(e,"POST","/v1/accounts:signInWithIdp",XS(e,t))}/** * @license * Copyright 2020 Google LLC * @@ -1014,7 +1014,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const bX="http://localhost";class Za extends JD{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new Za(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):gi("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:o}=n,i=US(n,["providerId","signInMethod"]);if(!r||!o)return null;const s=new Za(r,o);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(t){const n=this.buildRequest();return Ec(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Ec(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Ec(t,n)}buildRequest(){const t={requestUri:bX,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=tp(n)}return t}}/** + */const wX="http://localhost";class Za extends eL{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new Za(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):gi("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:o}=n,i=WS(n,["providerId","signInMethod"]);if(!r||!o)return null;const s=new Za(r,o);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(t){const n=this.buildRequest();return Ec(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Ec(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Ec(t,n)}buildRequest(){const t={requestUri:wX,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=tp(n)}return t}}/** * @license * Copyright 2020 Google LLC * @@ -1029,7 +1029,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class JS{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** + */class e1{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** * @license * Copyright 2019 Google LLC * @@ -1044,7 +1044,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class rp extends JS{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** + */class rp extends e1{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** * @license * Copyright 2020 Google LLC * @@ -1059,7 +1059,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ks extends rp{constructor(){super("facebook.com")}static credential(t){return Za._fromParams({providerId:ks.PROVIDER_ID,signInMethod:ks.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return ks.credentialFromTaggedObject(t)}static credentialFromError(t){return ks.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return ks.credential(t.oauthAccessToken)}catch{return null}}}ks.FACEBOOK_SIGN_IN_METHOD="facebook.com";ks.PROVIDER_ID="facebook.com";/** + */class Ts extends rp{constructor(){super("facebook.com")}static credential(t){return Za._fromParams({providerId:Ts.PROVIDER_ID,signInMethod:Ts.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Ts.credentialFromTaggedObject(t)}static credentialFromError(t){return Ts.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Ts.credential(t.oauthAccessToken)}catch{return null}}}Ts.FACEBOOK_SIGN_IN_METHOD="facebook.com";Ts.PROVIDER_ID="facebook.com";/** * @license * Copyright 2020 Google LLC * @@ -1089,7 +1089,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Ts extends rp{constructor(){super("github.com")}static credential(t){return Za._fromParams({providerId:Ts.PROVIDER_ID,signInMethod:Ts.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Ts.credentialFromTaggedObject(t)}static credentialFromError(t){return Ts.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Ts.credential(t.oauthAccessToken)}catch{return null}}}Ts.GITHUB_SIGN_IN_METHOD="github.com";Ts.PROVIDER_ID="github.com";/** + */class Es extends rp{constructor(){super("github.com")}static credential(t){return Za._fromParams({providerId:Es.PROVIDER_ID,signInMethod:Es.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Es.credentialFromTaggedObject(t)}static credentialFromError(t){return Es.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Es.credential(t.oauthAccessToken)}catch{return null}}}Es.GITHUB_SIGN_IN_METHOD="github.com";Es.PROVIDER_ID="github.com";/** * @license * Copyright 2020 Google LLC * @@ -1104,7 +1104,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Es extends rp{constructor(){super("twitter.com")}static credential(t,n){return Za._fromParams({providerId:Es.PROVIDER_ID,signInMethod:Es.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Es.credentialFromTaggedObject(t)}static credentialFromError(t){return Es.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Es.credential(n,r)}catch{return null}}}Es.TWITTER_SIGN_IN_METHOD="twitter.com";Es.PROVIDER_ID="twitter.com";/** + */class Os extends rp{constructor(){super("twitter.com")}static credential(t,n){return Za._fromParams({providerId:Os.PROVIDER_ID,signInMethod:Os.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Os.credentialFromTaggedObject(t)}static credentialFromError(t){return Os.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Os.credential(n,r)}catch{return null}}}Os.TWITTER_SIGN_IN_METHOD="twitter.com";Os.PROVIDER_ID="twitter.com";/** * @license * Copyright 2020 Google LLC * @@ -1119,7 +1119,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Qc{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,o=!1){const i=await Fi._fromIdTokenResponse(t,r,o),s=nE(r);return new Qc({user:i,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const o=nE(r);return new Qc({user:t,providerId:o,_tokenResponse:r,operationType:n})}}function nE(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** + */class Qc{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,o=!1){const i=await Fi._fromIdTokenResponse(t,r,o),s=oE(r);return new Qc({user:i,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const o=oE(r);return new Qc({user:t,providerId:o,_tokenResponse:r,operationType:n})}}function oE(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** * @license * Copyright 2020 Google LLC * @@ -1134,7 +1134,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Nm extends Uo{constructor(t,n,r,o){var i;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,Nm.prototype),this.customData={appName:t.name,tenantId:(i=t.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,o){return new Nm(t,n,r,o)}}function ZD(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Nm._fromErrorAndOperation(e,i,t,r):i})}async function wX(e,t,n=!1){const r=await Of(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Qc._forOperation(e,"link",r)}/** + */class Bm extends Uo{constructor(t,n,r,o){var i;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,Bm.prototype),this.customData={appName:t.name,tenantId:(i=t.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,o){return new Bm(t,n,r,o)}}function tL(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Bm._fromErrorAndOperation(e,i,t,r):i})}async function CX(e,t,n=!1){const r=await Of(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Qc._forOperation(e,"link",r)}/** * @license * Copyright 2019 Google LLC * @@ -1149,7 +1149,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function CX(e,t,n=!1){const{auth:r}=e;if(Di(r.app))return Promise.reject(Ba(r));const o="reauthenticate";try{const i=await Of(e,ZD(r,o,t,e),n);Ye(i.idToken,r,"internal-error");const s=YS(i.idToken);Ye(s,r,"internal-error");const{sub:a}=s;return Ye(e.uid===a,r,"user-mismatch"),Qc._forOperation(e,o,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&gi(r,"user-mismatch"),i}}/** + */async function xX(e,t,n=!1){const{auth:r}=e;if(Di(r.app))return Promise.reject(Ba(r));const o="reauthenticate";try{const i=await Of(e,tL(r,o,t,e),n);Ye(i.idToken,r,"internal-error");const s=QS(i.idToken);Ye(s,r,"internal-error");const{sub:a}=s;return Ye(e.uid===a,r,"user-mismatch"),Qc._forOperation(e,o,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&gi(r,"user-mismatch"),i}}/** * @license * Copyright 2020 Google LLC * @@ -1164,7 +1164,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function xX(e,t,n=!1){if(Di(e.app))return Promise.reject(Ba(e));const r="signIn",o=await ZD(e,r,t),i=await Qc._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}function SX(e,t,n,r){return kr(e).onIdTokenChanged(t,n,r)}function PX(e,t,n){return kr(e).beforeAuthStateChanged(t,n)}function IX(e,t,n,r){return kr(e).onAuthStateChanged(t,n,r)}function kX(e){return kr(e).signOut()}const Bm="__sak";/** + */async function SX(e,t,n=!1){if(Di(e.app))return Promise.reject(Ba(e));const r="signIn",o=await tL(e,r,t),i=await Qc._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}function PX(e,t,n,r){return kr(e).onIdTokenChanged(t,n,r)}function IX(e,t,n){return kr(e).beforeAuthStateChanged(t,n)}function kX(e,t,n,r){return kr(e).onAuthStateChanged(t,n,r)}function TX(e){return kr(e).signOut()}const zm="__sak";/** * @license * Copyright 2019 Google LLC * @@ -1179,7 +1179,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class eL{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Bm,"1"),this.storage.removeItem(Bm),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** + */class nL{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(zm,"1"),this.storage.removeItem(zm),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** * @license * Copyright 2020 Google LLC * @@ -1194,7 +1194,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const TX=1e3,EX=10;class tL extends eL{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=YD(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),o=this.localCache[n];r!==o&&t(n,o,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=t.key;n?this.detachListener():this.stopPolling();const o=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},i=this.storage.getItem(r);oX()&&i!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,EX):o()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},TX)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}tL.type="LOCAL";const OX=tL;/** + */const EX=1e3,OX=10;class rL extends nL{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=QD(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),o=this.localCache[n];r!==o&&t(n,o,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=t.key;n?this.detachListener():this.stopPolling();const o=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},i=this.storage.getItem(r);iX()&&i!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,OX):o()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},EX)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}rL.type="LOCAL";const MX=rL;/** * @license * Copyright 2020 Google LLC * @@ -1209,7 +1209,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class nL extends eL{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}nL.type="SESSION";const rL=nL;/** + */class oL extends nL{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}oL.type="SESSION";const iL=oL;/** * @license * Copyright 2019 Google LLC * @@ -1224,7 +1224,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function MX(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/** + */function RX(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/** * @license * Copyright 2019 Google LLC * @@ -1239,7 +1239,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class _v{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(o=>o.isListeningto(t));if(n)return n;const r=new _v(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:o,data:i}=n.data,s=this.handlersMap[o];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:o});const a=Array.from(s).map(async c=>c(n.origin,i)),l=await MX(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}_v.receivers=[];/** + */class Av{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(o=>o.isListeningto(t));if(n)return n;const r=new Av(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:o,data:i}=n.data,s=this.handlersMap[o];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:o});const a=Array.from(s).map(async c=>c(n.origin,i)),l=await RX(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Av.receivers=[];/** * @license * Copyright 2020 Google LLC * @@ -1254,7 +1254,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ZS(e="",t=10){let n="";for(let r=0;r{const c=ZS("",20);o.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:o,onMessage(d){const f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(s),o.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:t,eventId:c,data:n},[o.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/** + */class $X{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let i,s;return new Promise((a,l)=>{const c=t1("",20);o.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:o,onMessage(d){const f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(s),o.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:t,eventId:c,data:n},[o.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/** * @license * Copyright 2020 Google LLC * @@ -1284,7 +1284,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function li(){return window}function $X(e){li().location.href=e}/** + */function li(){return window}function _X(e){li().location.href=e}/** * @license * Copyright 2020 Google LLC. * @@ -1299,7 +1299,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function oL(){return typeof li().WorkerGlobalScope<"u"&&typeof li().importScripts=="function"}async function _X(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function AX(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function DX(){return oL()?self:null}/** + */function sL(){return typeof li().WorkerGlobalScope<"u"&&typeof li().importScripts=="function"}async function AX(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function DX(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function LX(){return sL()?self:null}/** * @license * Copyright 2019 Google LLC * @@ -1314,7 +1314,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const iL="firebaseLocalStorageDb",LX=1,zm="firebaseLocalStorage",sL="fbase_key";class op{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Av(e,t){return e.transaction([zm],t?"readwrite":"readonly").objectStore(zm)}function FX(){const e=indexedDB.deleteDatabase(iL);return new op(e).toPromise()}function Vw(){const e=indexedDB.open(iL,LX);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(zm,{keyPath:sL})}catch(o){n(o)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(zm)?t(r):(r.close(),await FX(),t(await Vw()))})})}async function rE(e,t,n){const r=Av(e,!0).put({[sL]:t,value:n});return new op(r).toPromise()}async function jX(e,t){const n=Av(e,!1).get(t),r=await new op(n).toPromise();return r===void 0?null:r.value}function oE(e,t){const n=Av(e,!0).delete(t);return new op(n).toPromise()}const NX=800,BX=3;class aL{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Vw(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>BX)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return oL()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=_v._getInstance(DX()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await _X(),!this.activeServiceWorker)return;this.sender=new RX(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||AX()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Vw();return await rE(t,Bm,"1"),await oE(t,Bm),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>rE(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>jX(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>oE(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const i=Av(o,!1).getAll();return new op(i).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:o,value:i}of t)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(i)&&(this.notifyListeners(o,i),n.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),n.push(o));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),NX)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}aL.type="LOCAL";const zX=aL;new np(3e4,6e4);/** + */const aL="firebaseLocalStorageDb",FX=1,Hm="firebaseLocalStorage",lL="fbase_key";class op{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Dv(e,t){return e.transaction([Hm],t?"readwrite":"readonly").objectStore(Hm)}function jX(){const e=indexedDB.deleteDatabase(aL);return new op(e).toPromise()}function Uw(){const e=indexedDB.open(aL,FX);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(Hm,{keyPath:lL})}catch(o){n(o)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(Hm)?t(r):(r.close(),await jX(),t(await Uw()))})})}async function iE(e,t,n){const r=Dv(e,!0).put({[lL]:t,value:n});return new op(r).toPromise()}async function NX(e,t){const n=Dv(e,!1).get(t),r=await new op(n).toPromise();return r===void 0?null:r.value}function sE(e,t){const n=Dv(e,!0).delete(t);return new op(n).toPromise()}const BX=800,zX=3;class cL{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Uw(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>zX)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return sL()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Av._getInstance(LX()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await AX(),!this.activeServiceWorker)return;this.sender=new $X(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||DX()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Uw();return await iE(t,zm,"1"),await sE(t,zm),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>iE(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>NX(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>sE(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const i=Dv(o,!1).getAll();return new op(i).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:o,value:i}of t)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(i)&&(this.notifyListeners(o,i),n.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),n.push(o));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),BX)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}cL.type="LOCAL";const HX=cL;new np(3e4,6e4);/** * @license * Copyright 2021 Google LLC * @@ -1329,7 +1329,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function lL(e,t){return t?ji(t):(Ye(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** + */function uL(e,t){return t?ji(t):(Ye(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** * @license * Copyright 2019 Google LLC * @@ -1344,7 +1344,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class e1 extends JD{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Ec(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Ec(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Ec(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function HX(e){return xX(e.auth,new e1(e),e.bypassAuthState)}function VX(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),CX(n,new e1(e),e.bypassAuthState)}async function UX(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),wX(n,new e1(e),e.bypassAuthState)}/** + */class n1 extends eL{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Ec(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Ec(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Ec(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function VX(e){return SX(e.auth,new n1(e),e.bypassAuthState)}function UX(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),xX(n,new n1(e),e.bypassAuthState)}async function GX(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),CX(n,new n1(e),e.bypassAuthState)}/** * @license * Copyright 2020 Google LLC * @@ -1359,7 +1359,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class cL{constructor(t,n,r,o,i=!1){this.auth=t,this.resolver=r,this.user=o,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:o,tenantId:i,error:s,type:a}=t;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return HX;case"linkViaPopup":case"linkViaRedirect":return UX;case"reauthViaPopup":case"reauthViaRedirect":return VX;default:gi(this.auth,"internal-error")}}resolve(t){es(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){es(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** + */class dL{constructor(t,n,r,o,i=!1){this.auth=t,this.resolver=r,this.user=o,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:o,tenantId:i,error:s,type:a}=t;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return VX;case"linkViaPopup":case"linkViaRedirect":return GX;case"reauthViaPopup":case"reauthViaRedirect":return UX;default:gi(this.auth,"internal-error")}}resolve(t){ts(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){ts(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** * @license * Copyright 2020 Google LLC * @@ -1374,7 +1374,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const GX=new np(2e3,1e4);async function WX(e,t,n){if(Di(e.app))return Promise.reject(jo(e,"operation-not-supported-in-this-environment"));const r=$v(e);zY(e,t,JS);const o=lL(r,n);return new _a(r,"signInViaPopup",t,o).executeNotNull()}class _a extends cL{constructor(t,n,r,o,i){super(t,n,o,i),this.provider=r,this.authWindow=null,this.pollId=null,_a.currentPopupAction&&_a.currentPopupAction.cancel(),_a.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Ye(t,this.auth,"internal-error"),t}async onExecution(){es(this.filter.length===1,"Popup operations only handle one event");const t=ZS();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(jo(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(jo(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,_a.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(jo(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,GX.get())};t()}}_a.currentPopupAction=null;/** + */const WX=new np(2e3,1e4);async function KX(e,t,n){if(Di(e.app))return Promise.reject(jo(e,"operation-not-supported-in-this-environment"));const r=_v(e);HY(e,t,e1);const o=uL(r,n);return new Aa(r,"signInViaPopup",t,o).executeNotNull()}class Aa extends dL{constructor(t,n,r,o,i){super(t,n,o,i),this.provider=r,this.authWindow=null,this.pollId=null,Aa.currentPopupAction&&Aa.currentPopupAction.cancel(),Aa.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Ye(t,this.auth,"internal-error"),t}async onExecution(){ts(this.filter.length===1,"Popup operations only handle one event");const t=t1();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(jo(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(jo(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Aa.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(jo(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,WX.get())};t()}}Aa.currentPopupAction=null;/** * @license * Copyright 2020 Google LLC * @@ -1389,7 +1389,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const KX="pendingRedirect",Dh=new Map;class qX extends cL{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Dh.get(this.auth._key());if(!t){try{const r=await YX(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Dh.set(this.auth._key(),t)}return this.bypassAuthState||Dh.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function YX(e,t){const n=JX(t),r=QX(e);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function XX(e,t){Dh.set(e._key(),t)}function QX(e){return ji(e._redirectPersistence)}function JX(e){return Ah(KX,e.config.apiKey,e.name)}async function ZX(e,t,n=!1){if(Di(e.app))return Promise.reject(Ba(e));const r=$v(e),o=lL(r,t),s=await new qX(r,o,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}/** + */const qX="pendingRedirect",Dh=new Map;class YX extends dL{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Dh.get(this.auth._key());if(!t){try{const r=await XX(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Dh.set(this.auth._key(),t)}return this.bypassAuthState||Dh.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function XX(e,t){const n=ZX(t),r=JX(e);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function QX(e,t){Dh.set(e._key(),t)}function JX(e){return ji(e._redirectPersistence)}function ZX(e){return Ah(qX,e.config.apiKey,e.name)}async function eQ(e,t,n=!1){if(Di(e.app))return Promise.reject(Ba(e));const r=_v(e),o=uL(r,t),s=await new YX(r,o,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}/** * @license * Copyright 2020 Google LLC * @@ -1404,7 +1404,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const eQ=10*60*1e3;class tQ{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!nQ(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!uL(t)){const o=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(jo(this.auth,o))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=eQ&&this.cachedEventUids.clear(),this.cachedEventUids.has(iE(t))}saveEventToCache(t){this.cachedEventUids.add(iE(t)),this.lastProcessedEventTime=Date.now()}}function iE(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function uL({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function nQ(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return uL(e);default:return!1}}/** + */const tQ=10*60*1e3;class nQ{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!rQ(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!fL(t)){const o=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(jo(this.auth,o))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=tQ&&this.cachedEventUids.clear(),this.cachedEventUids.has(aE(t))}saveEventToCache(t){this.cachedEventUids.add(aE(t)),this.lastProcessedEventTime=Date.now()}}function aE(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function fL({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function rQ(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return fL(e);default:return!1}}/** * @license * Copyright 2020 Google LLC * @@ -1419,7 +1419,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function rQ(e,t={}){return ku(e,"GET","/v1/projects",t)}/** + */async function oQ(e,t={}){return ku(e,"GET","/v1/projects",t)}/** * @license * Copyright 2020 Google LLC * @@ -1434,7 +1434,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const oQ=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,iQ=/^https?/;async function sQ(e){if(e.config.emulator)return;const{authorizedDomains:t}=await rQ(e);for(const n of t)try{if(aQ(n))return}catch{}gi(e,"unauthorized-domain")}function aQ(e){const t=zw(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const s=new URL(e);return s.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!iQ.test(n))return!1;if(oQ.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/** + */const iQ=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,sQ=/^https?/;async function aQ(e){if(e.config.emulator)return;const{authorizedDomains:t}=await oQ(e);for(const n of t)try{if(lQ(n))return}catch{}gi(e,"unauthorized-domain")}function lQ(e){const t=Hw(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const s=new URL(e);return s.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!sQ.test(n))return!1;if(iQ.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/** * @license * Copyright 2020 Google LLC. * @@ -1449,7 +1449,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const lQ=new np(3e4,6e4);function sE(){const e=li().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n{var r,o,i;function s(){sE(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{sE(),n(jo(e,"network-request-failed"))},timeout:lQ.get()})}if(!((o=(r=li().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((i=li().gapi)===null||i===void 0)&&i.load)s();else{const a=pX("iframefcb");return li()[a]=()=>{gapi.load?s():n(jo(e,"network-request-failed"))},dX(`${fX()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw Lh=null,t})}let Lh=null;function uQ(e){return Lh=Lh||cQ(e),Lh}/** + */const cQ=new np(3e4,6e4);function lE(){const e=li().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n{var r,o,i;function s(){lE(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{lE(),n(jo(e,"network-request-failed"))},timeout:cQ.get()})}if(!((o=(r=li().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((i=li().gapi)===null||i===void 0)&&i.load)s();else{const a=hX("iframefcb");return li()[a]=()=>{gapi.load?s():n(jo(e,"network-request-failed"))},fX(`${pX()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw Lh=null,t})}let Lh=null;function dQ(e){return Lh=Lh||uQ(e),Lh}/** * @license * Copyright 2020 Google LLC. * @@ -1464,7 +1464,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const dQ=new np(5e3,15e3),fQ="__/auth/iframe",pQ="emulator/auth/iframe",hQ={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},mQ=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function gQ(e){const t=e.config;Ye(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?KS(t,pQ):`https://${e.config.authDomain}/${fQ}`,r={apiKey:t.apiKey,appName:e.name,v:Iu},o=mQ.get(e.config.apiHost);o&&(r.eid=o);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${tp(r).slice(1)}`}async function vQ(e){const t=await uQ(e),n=li().gapi;return Ye(n,e,"internal-error"),t.open({where:document.body,url:gQ(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:hQ,dontclear:!0},r=>new Promise(async(o,i)=>{await r.restyle({setHideOnLeave:!1});const s=jo(e,"network-request-failed"),a=li().setTimeout(()=>{i(s)},dQ.get());function l(){li().clearTimeout(a),o(r)}r.ping(l).then(l,()=>{i(s)})}))}/** + */const fQ=new np(5e3,15e3),pQ="__/auth/iframe",hQ="emulator/auth/iframe",mQ={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},gQ=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function vQ(e){const t=e.config;Ye(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?YS(t,hQ):`https://${e.config.authDomain}/${pQ}`,r={apiKey:t.apiKey,appName:e.name,v:Iu},o=gQ.get(e.config.apiHost);o&&(r.eid=o);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${tp(r).slice(1)}`}async function yQ(e){const t=await dQ(e),n=li().gapi;return Ye(n,e,"internal-error"),t.open({where:document.body,url:vQ(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:mQ,dontclear:!0},r=>new Promise(async(o,i)=>{await r.restyle({setHideOnLeave:!1});const s=jo(e,"network-request-failed"),a=li().setTimeout(()=>{i(s)},fQ.get());function l(){li().clearTimeout(a),o(r)}r.ping(l).then(l,()=>{i(s)})}))}/** * @license * Copyright 2020 Google LLC. * @@ -1479,7 +1479,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const yQ={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},bQ=500,wQ=600,CQ="_blank",xQ="http://localhost";class aE{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function SQ(e,t,n,r=bQ,o=wQ){const i=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},yQ),{width:r.toString(),height:o.toString(),top:i,left:s}),c=ir().toLowerCase();n&&(a=UD(c)?CQ:n),HD(c)&&(t=t||xQ,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[h,m])=>`${f}${h}=${m},`,"");if(rX(c)&&a!=="_self")return PQ(t||"",a),new aE(null);const d=window.open(t||"",a,u);Ye(d,e,"popup-blocked");try{d.focus()}catch{}return new aE(d)}function PQ(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** + */const bQ={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},wQ=500,CQ=600,xQ="_blank",SQ="http://localhost";class cE{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function PQ(e,t,n,r=wQ,o=CQ){const i=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},bQ),{width:r.toString(),height:o.toString(),top:i,left:s}),c=ir().toLowerCase();n&&(a=WD(c)?xQ:n),UD(c)&&(t=t||SQ,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[h,m])=>`${f}${h}=${m},`,"");if(oX(c)&&a!=="_self")return IQ(t||"",a),new cE(null);const d=window.open(t||"",a,u);Ye(d,e,"popup-blocked");try{d.focus()}catch{}return new cE(d)}function IQ(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** * @license * Copyright 2021 Google LLC * @@ -1494,7 +1494,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const IQ="__/auth/handler",kQ="emulator/auth/handler",TQ=encodeURIComponent("fac");async function lE(e,t,n,r,o,i){Ye(e.config.authDomain,e,"auth-domain-config-required"),Ye(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Iu,eventId:o};if(t instanceof JS){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",Iq(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(t instanceof rp){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${TQ}=${encodeURIComponent(l)}`:"";return`${EQ(e)}?${tp(a).slice(1)}${c}`}function EQ({config:e}){return e.emulator?KS(e,kQ):`https://${e.authDomain}/${IQ}`}/** + */const kQ="__/auth/handler",TQ="emulator/auth/handler",EQ=encodeURIComponent("fac");async function uE(e,t,n,r,o,i){Ye(e.config.authDomain,e,"auth-domain-config-required"),Ye(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Iu,eventId:o};if(t instanceof e1){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",kq(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(t instanceof rp){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${EQ}=${encodeURIComponent(l)}`:"";return`${OQ(e)}?${tp(a).slice(1)}${c}`}function OQ({config:e}){return e.emulator?YS(e,TQ):`https://${e.authDomain}/${kQ}`}/** * @license * Copyright 2020 Google LLC * @@ -1509,7 +1509,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Tb="webStorageSupport";class OQ{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=rL,this._completeRedirectFn=ZX,this._overrideRedirectResult=XX}async _openPopup(t,n,r,o){var i;es((i=this.eventManagers[t._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const s=await lE(t,n,r,zw(),o);return SQ(t,s,ZS())}async _openRedirect(t,n,r,o){await this._originValidation(t);const i=await lE(t,n,r,zw(),o);return $X(i),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:o,promise:i}=this.eventManagers[n];return o?Promise.resolve(o):(es(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await vQ(t),r=new tQ(t);return n.register("authEvent",o=>(Ye(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:r.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(Tb,{type:Tb},o=>{var i;const s=(i=o==null?void 0:o[0])===null||i===void 0?void 0:i[Tb];s!==void 0&&n(!!s),gi(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=sQ(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return YD()||VD()||XS()}}const MQ=OQ;var cE="@firebase/auth",uE="1.8.0";/** + */const Eb="webStorageSupport";class MQ{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=iL,this._completeRedirectFn=eQ,this._overrideRedirectResult=QX}async _openPopup(t,n,r,o){var i;ts((i=this.eventManagers[t._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const s=await uE(t,n,r,Hw(),o);return PQ(t,s,t1())}async _openRedirect(t,n,r,o){await this._originValidation(t);const i=await uE(t,n,r,Hw(),o);return _X(i),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:o,promise:i}=this.eventManagers[n];return o?Promise.resolve(o):(ts(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await yQ(t),r=new nQ(t);return n.register("authEvent",o=>(Ye(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:r.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(Eb,{type:Eb},o=>{var i;const s=(i=o==null?void 0:o[0])===null||i===void 0?void 0:i[Eb];s!==void 0&&n(!!s),gi(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=aQ(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return QD()||GD()||JS()}}const RQ=MQ;var dE="@firebase/auth",fE="1.8.0";/** * @license * Copyright 2020 Google LLC * @@ -1524,7 +1524,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class RQ{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ye(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** + */class $Q{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ye(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** * @license * Copyright 2020 Google LLC * @@ -1539,7 +1539,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function $Q(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function _Q(e){mi(new Ho("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),i=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ye(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:XD(e)},c=new cX(r,o,i,l);return mX(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),mi(new Ho("auth-internal",t=>{const n=$v(t.getProvider("auth").getImmediate());return(r=>new RQ(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ho(cE,uE,$Q(e)),ho(cE,uE,"esm2017")}/** + */function _Q(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function AQ(e){mi(new Ho("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),i=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ye(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:JD(e)},c=new uX(r,o,i,l);return gX(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),mi(new Ho("auth-internal",t=>{const n=_v(t.getProvider("auth").getImmediate());return(r=>new $Q(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ho(dE,fE,_Q(e)),ho(dE,fE,"esm2017")}/** * @license * Copyright 2021 Google LLC * @@ -1554,7 +1554,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const AQ=5*60,DQ=PD("authIdTokenMaxAge")||AQ;let dE=null;const LQ=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>DQ)return;const o=n==null?void 0:n.token;dE!==o&&(dE=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function FQ(e=VS()){const t=ml(e,"auth");if(t.isInitialized())return t.getImmediate();const n=hX(e,{popupRedirectResolver:MQ,persistence:[zX,OX,rL]}),r=PD("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const s=LQ(i.toString());PX(n,s,()=>s(n.currentUser)),SX(n,a=>s(a))}}const o=xD("auth");return o&&gX(n,`http://${o}`),n}function jQ(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}uX({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=o=>{const i=jo("internal-error");i.customData=o,n(i)},r.type="text/javascript",r.charset="UTF-8",jQ().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});_Q("Browser");var NQ="firebase",BQ="11.0.1";/** + */const DQ=5*60,LQ=kD("authIdTokenMaxAge")||DQ;let pE=null;const FQ=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>LQ)return;const o=n==null?void 0:n.token;pE!==o&&(pE=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function jQ(e=GS()){const t=ml(e,"auth");if(t.isInitialized())return t.getImmediate();const n=mX(e,{popupRedirectResolver:RQ,persistence:[HX,MX,iL]}),r=kD("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const s=FQ(i.toString());IX(n,s,()=>s(n.currentUser)),PX(n,a=>s(a))}}const o=PD("auth");return o&&vX(n,`http://${o}`),n}function NQ(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}dX({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=o=>{const i=jo("internal-error");i.customData=o,n(i)},r.type="text/javascript",r.charset="UTF-8",NQ().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});AQ("Browser");var BQ="firebase",zQ="11.0.1";/** * @license * Copyright 2020 Google LLC * @@ -1569,7 +1569,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ho(NQ,BQ,"app");const dL="@firebase/installations",t1="0.6.10";/** + */ho(BQ,zQ,"app");const pL="@firebase/installations",r1="0.6.10";/** * @license * Copyright 2019 Google LLC * @@ -1584,7 +1584,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const fL=1e4,pL=`w:${t1}`,hL="FIS_v2",zQ="https://firebaseinstallations.googleapis.com/v1",HQ=60*60*1e3,VQ="installations",UQ="Installations";/** + */const hL=1e4,mL=`w:${r1}`,gL="FIS_v2",HQ="https://firebaseinstallations.googleapis.com/v1",VQ=60*60*1e3,UQ="installations",GQ="Installations";/** * @license * Copyright 2019 Google LLC * @@ -1599,7 +1599,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const GQ={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},el=new hl(VQ,UQ,GQ);function mL(e){return e instanceof Uo&&e.code.includes("request-failed")}/** + */const WQ={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},el=new hl(UQ,GQ,WQ);function vL(e){return e instanceof Uo&&e.code.includes("request-failed")}/** * @license * Copyright 2019 Google LLC * @@ -1614,7 +1614,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function gL({projectId:e}){return`${zQ}/projects/${e}/installations`}function vL(e){return{token:e.token,requestStatus:2,expiresIn:KQ(e.expiresIn),creationTime:Date.now()}}async function yL(e,t){const r=(await t.json()).error;return el.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function bL({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function WQ(e,{refreshToken:t}){const n=bL(e);return n.append("Authorization",qQ(t)),n}async function wL(e){const t=await e();return t.status>=500&&t.status<600?e():t}function KQ(e){return Number(e.replace("s","000"))}function qQ(e){return`${hL} ${e}`}/** + */function yL({projectId:e}){return`${HQ}/projects/${e}/installations`}function bL(e){return{token:e.token,requestStatus:2,expiresIn:qQ(e.expiresIn),creationTime:Date.now()}}async function wL(e,t){const r=(await t.json()).error;return el.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function CL({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function KQ(e,{refreshToken:t}){const n=CL(e);return n.append("Authorization",YQ(t)),n}async function xL(e){const t=await e();return t.status>=500&&t.status<600?e():t}function qQ(e){return Number(e.replace("s","000"))}function YQ(e){return`${gL} ${e}`}/** * @license * Copyright 2019 Google LLC * @@ -1629,7 +1629,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function YQ({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=gL(e),o=bL(e),i=t.getImmediate({optional:!0});if(i){const c=await i.getHeartbeatsHeader();c&&o.append("x-firebase-client",c)}const s={fid:n,authVersion:hL,appId:e.appId,sdkVersion:pL},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await wL(()=>fetch(r,a));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:vL(c.authToken)}}else throw await yL("Create Installation",l)}/** + */async function XQ({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=yL(e),o=CL(e),i=t.getImmediate({optional:!0});if(i){const c=await i.getHeartbeatsHeader();c&&o.append("x-firebase-client",c)}const s={fid:n,authVersion:gL,appId:e.appId,sdkVersion:mL},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await xL(()=>fetch(r,a));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:bL(c.authToken)}}else throw await wL("Create Installation",l)}/** * @license * Copyright 2019 Google LLC * @@ -1644,7 +1644,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function CL(e){return new Promise(t=>{setTimeout(t,e)})}/** + */function SL(e){return new Promise(t=>{setTimeout(t,e)})}/** * @license * Copyright 2019 Google LLC * @@ -1659,7 +1659,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function XQ(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/** + */function QQ(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/** * @license * Copyright 2019 Google LLC * @@ -1674,7 +1674,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const QQ=/^[cdef][\w-]{21}$/,Uw="";function JQ(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=ZQ(e);return QQ.test(n)?n:Uw}catch{return Uw}}function ZQ(e){return XQ(e).substr(0,22)}/** + */const JQ=/^[cdef][\w-]{21}$/,Gw="";function ZQ(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=eJ(e);return JQ.test(n)?n:Gw}catch{return Gw}}function eJ(e){return QQ(e).substr(0,22)}/** * @license * Copyright 2019 Google LLC * @@ -1689,7 +1689,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Dv(e){return`${e.appName}!${e.appId}`}/** + */function Lv(e){return`${e.appName}!${e.appId}`}/** * @license * Copyright 2019 Google LLC * @@ -1704,7 +1704,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const xL=new Map;function SL(e,t){const n=Dv(e);PL(n,t),eJ(n,t)}function PL(e,t){const n=xL.get(e);if(n)for(const r of n)r(t)}function eJ(e,t){const n=tJ();n&&n.postMessage({key:e,fid:t}),nJ()}let Aa=null;function tJ(){return!Aa&&"BroadcastChannel"in self&&(Aa=new BroadcastChannel("[Firebase] FID Change"),Aa.onmessage=e=>{PL(e.data.key,e.data.fid)}),Aa}function nJ(){xL.size===0&&Aa&&(Aa.close(),Aa=null)}/** + */const PL=new Map;function IL(e,t){const n=Lv(e);kL(n,t),tJ(n,t)}function kL(e,t){const n=PL.get(e);if(n)for(const r of n)r(t)}function tJ(e,t){const n=nJ();n&&n.postMessage({key:e,fid:t}),rJ()}let Da=null;function nJ(){return!Da&&"BroadcastChannel"in self&&(Da=new BroadcastChannel("[Firebase] FID Change"),Da.onmessage=e=>{kL(e.data.key,e.data.fid)}),Da}function rJ(){PL.size===0&&Da&&(Da.close(),Da=null)}/** * @license * Copyright 2019 Google LLC * @@ -1719,7 +1719,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const rJ="firebase-installations-database",oJ=1,tl="firebase-installations-store";let Eb=null;function n1(){return Eb||(Eb=MD(rJ,oJ,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(tl)}}})),Eb}async function Hm(e,t){const n=Dv(e),o=(await n1()).transaction(tl,"readwrite"),i=o.objectStore(tl),s=await i.get(n);return await i.put(t,n),await o.done,(!s||s.fid!==t.fid)&&SL(e,t.fid),t}async function IL(e){const t=Dv(e),r=(await n1()).transaction(tl,"readwrite");await r.objectStore(tl).delete(t),await r.done}async function Lv(e,t){const n=Dv(e),o=(await n1()).transaction(tl,"readwrite"),i=o.objectStore(tl),s=await i.get(n),a=t(s);return a===void 0?await i.delete(n):await i.put(a,n),await o.done,a&&(!s||s.fid!==a.fid)&&SL(e,a.fid),a}/** + */const oJ="firebase-installations-database",iJ=1,tl="firebase-installations-store";let Ob=null;function o1(){return Ob||(Ob=$D(oJ,iJ,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(tl)}}})),Ob}async function Vm(e,t){const n=Lv(e),o=(await o1()).transaction(tl,"readwrite"),i=o.objectStore(tl),s=await i.get(n);return await i.put(t,n),await o.done,(!s||s.fid!==t.fid)&&IL(e,t.fid),t}async function TL(e){const t=Lv(e),r=(await o1()).transaction(tl,"readwrite");await r.objectStore(tl).delete(t),await r.done}async function Fv(e,t){const n=Lv(e),o=(await o1()).transaction(tl,"readwrite"),i=o.objectStore(tl),s=await i.get(n),a=t(s);return a===void 0?await i.delete(n):await i.put(a,n),await o.done,a&&(!s||s.fid!==a.fid)&&IL(e,a.fid),a}/** * @license * Copyright 2019 Google LLC * @@ -1734,7 +1734,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function r1(e){let t;const n=await Lv(e.appConfig,r=>{const o=iJ(r),i=sJ(e,o);return t=i.registrationPromise,i.installationEntry});return n.fid===Uw?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function iJ(e){const t=e||{fid:JQ(),registrationStatus:0};return kL(t)}function sJ(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(el.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=aJ(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:lJ(e)}:{installationEntry:t}}async function aJ(e,t){try{const n=await YQ(e,t);return Hm(e.appConfig,n)}catch(n){throw mL(n)&&n.customData.serverCode===409?await IL(e.appConfig):await Hm(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function lJ(e){let t=await fE(e.appConfig);for(;t.registrationStatus===1;)await CL(100),t=await fE(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await r1(e);return r||n}return t}function fE(e){return Lv(e,t=>{if(!t)throw el.create("installation-not-found");return kL(t)})}function kL(e){return cJ(e)?{fid:e.fid,registrationStatus:0}:e}function cJ(e){return e.registrationStatus===1&&e.registrationTime+fL{const o=sJ(r),i=aJ(e,o);return t=i.registrationPromise,i.installationEntry});return n.fid===Gw?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function sJ(e){const t=e||{fid:ZQ(),registrationStatus:0};return EL(t)}function aJ(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(el.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=lJ(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:cJ(e)}:{installationEntry:t}}async function lJ(e,t){try{const n=await XQ(e,t);return Vm(e.appConfig,n)}catch(n){throw vL(n)&&n.customData.serverCode===409?await TL(e.appConfig):await Vm(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function cJ(e){let t=await hE(e.appConfig);for(;t.registrationStatus===1;)await SL(100),t=await hE(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await i1(e);return r||n}return t}function hE(e){return Fv(e,t=>{if(!t)throw el.create("installation-not-found");return EL(t)})}function EL(e){return uJ(e)?{fid:e.fid,registrationStatus:0}:e}function uJ(e){return e.registrationStatus===1&&e.registrationTime+hLfetch(r,a));if(l.ok){const c=await l.json();return vL(c)}else throw await yL("Generate Auth Token",l)}function dJ(e,{fid:t}){return`${gL(e)}/${t}/authTokens:generate`}/** + */async function dJ({appConfig:e,heartbeatServiceProvider:t},n){const r=fJ(e,n),o=KQ(e,n),i=t.getImmediate({optional:!0});if(i){const c=await i.getHeartbeatsHeader();c&&o.append("x-firebase-client",c)}const s={installation:{sdkVersion:mL,appId:e.appId}},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await xL(()=>fetch(r,a));if(l.ok){const c=await l.json();return bL(c)}else throw await wL("Generate Auth Token",l)}function fJ(e,{fid:t}){return`${yL(e)}/${t}/authTokens:generate`}/** * @license * Copyright 2019 Google LLC * @@ -1764,7 +1764,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function o1(e,t=!1){let n;const r=await Lv(e.appConfig,i=>{if(!TL(i))throw el.create("not-registered");const s=i.authToken;if(!t&&hJ(s))return i;if(s.requestStatus===1)return n=fJ(e,t),i;{if(!navigator.onLine)throw el.create("app-offline");const a=gJ(i);return n=pJ(e,a),a}});return n?await n:r.authToken}async function fJ(e,t){let n=await pE(e.appConfig);for(;n.authToken.requestStatus===1;)await CL(100),n=await pE(e.appConfig);const r=n.authToken;return r.requestStatus===0?o1(e,t):r}function pE(e){return Lv(e,t=>{if(!TL(t))throw el.create("not-registered");const n=t.authToken;return vJ(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function pJ(e,t){try{const n=await uJ(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Hm(e.appConfig,r),n}catch(n){if(mL(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await IL(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Hm(e.appConfig,r)}throw n}}function TL(e){return e!==void 0&&e.registrationStatus===2}function hJ(e){return e.requestStatus===2&&!mJ(e)}function mJ(e){const t=Date.now();return t{if(!OL(i))throw el.create("not-registered");const s=i.authToken;if(!t&&mJ(s))return i;if(s.requestStatus===1)return n=pJ(e,t),i;{if(!navigator.onLine)throw el.create("app-offline");const a=vJ(i);return n=hJ(e,a),a}});return n?await n:r.authToken}async function pJ(e,t){let n=await mE(e.appConfig);for(;n.authToken.requestStatus===1;)await SL(100),n=await mE(e.appConfig);const r=n.authToken;return r.requestStatus===0?s1(e,t):r}function mE(e){return Fv(e,t=>{if(!OL(t))throw el.create("not-registered");const n=t.authToken;return yJ(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function hJ(e,t){try{const n=await dJ(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Vm(e.appConfig,r),n}catch(n){if(vL(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await TL(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Vm(e.appConfig,r)}throw n}}function OL(e){return e!==void 0&&e.registrationStatus===2}function mJ(e){return e.requestStatus===2&&!gJ(e)}function gJ(e){const t=Date.now();return t{const t=e.getProvider("app").getImmediate(),n=CJ(t),r=ml(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},PJ=e=>{const t=e.getProvider("app").getImmediate(),n=ml(t,EL).getImmediate();return{getId:()=>yJ(n),getToken:o=>bJ(n,o)}};function IJ(){mi(new Ho(EL,SJ,"PUBLIC")),mi(new Ho(xJ,PJ,"PRIVATE"))}IJ();ho(dL,t1);ho(dL,t1,"esm2017");/** + */const ML="installations",SJ="installations-internal",PJ=e=>{const t=e.getProvider("app").getImmediate(),n=xJ(t),r=ml(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},IJ=e=>{const t=e.getProvider("app").getImmediate(),n=ml(t,ML).getImmediate();return{getId:()=>bJ(n),getToken:o=>wJ(n,o)}};function kJ(){mi(new Ho(ML,PJ,"PUBLIC")),mi(new Ho(SJ,IJ,"PRIVATE"))}kJ();ho(pL,r1);ho(pL,r1,"esm2017");/** * @license * Copyright 2019 Google LLC * @@ -1839,7 +1839,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Vm="analytics",kJ="firebase_id",TJ="origin",EJ=60*1e3,OJ="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",i1="https://www.googletagmanager.com/gtag/js";/** + */const Um="analytics",TJ="firebase_id",EJ="origin",OJ=60*1e3,MJ="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",a1="https://www.googletagmanager.com/gtag/js";/** * @license * Copyright 2019 Google LLC * @@ -1854,7 +1854,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const wr=new zS("@firebase/analytics");/** + */const wr=new VS("@firebase/analytics");/** * @license * Copyright 2019 Google LLC * @@ -1869,7 +1869,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const MJ={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},Hr=new hl("analytics","Analytics",MJ);/** + */const RJ={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},Hr=new hl("analytics","Analytics",RJ);/** * @license * Copyright 2019 Google LLC * @@ -1884,7 +1884,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function RJ(e){if(!e.startsWith(i1)){const t=Hr.create("invalid-gtag-resource",{gtagURL:e});return wr.warn(t.message),""}return e}function OL(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function $J(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function _J(e,t){const n=$J("firebase-js-sdk-policy",{createScriptURL:RJ}),r=document.createElement("script"),o=`${i1}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function AJ(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function DJ(e,t,n,r,o,i){const s=r[o];try{if(s)await t[s];else{const l=(await OL(n)).find(c=>c.measurementId===o);l&&await t[l.appId]}}catch(a){wr.error(a)}e("config",o,i)}async function LJ(e,t,n,r,o){try{let i=[];if(o&&o.send_to){let s=o.send_to;Array.isArray(s)||(s=[s]);const a=await OL(n);for(const l of s){const c=a.find(d=>d.measurementId===l),u=c&&t[c.appId];if(u)i.push(u);else{i=[];break}}}i.length===0&&(i=Object.values(t)),await Promise.all(i),e("event",r,o||{})}catch(i){wr.error(i)}}function FJ(e,t,n,r){async function o(i,...s){try{if(i==="event"){const[a,l]=s;await LJ(e,t,n,a,l)}else if(i==="config"){const[a,l]=s;await DJ(e,t,n,r,a,l)}else if(i==="consent"){const[a,l]=s;e("consent",a,l)}else if(i==="get"){const[a,l,c]=s;e("get",a,l,c)}else if(i==="set"){const[a]=s;e("set",a)}else e(i,...s)}catch(a){wr.error(a)}}return o}function jJ(e,t,n,r,o){let i=function(...s){window[r].push(arguments)};return window[o]&&typeof window[o]=="function"&&(i=window[o]),window[o]=FJ(i,e,t,n),{gtagCore:i,wrappedGtag:window[o]}}function NJ(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(i1)&&n.src.includes(e))return n;return null}/** + */function $J(e){if(!e.startsWith(a1)){const t=Hr.create("invalid-gtag-resource",{gtagURL:e});return wr.warn(t.message),""}return e}function RL(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function _J(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function AJ(e,t){const n=_J("firebase-js-sdk-policy",{createScriptURL:$J}),r=document.createElement("script"),o=`${a1}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function DJ(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function LJ(e,t,n,r,o,i){const s=r[o];try{if(s)await t[s];else{const l=(await RL(n)).find(c=>c.measurementId===o);l&&await t[l.appId]}}catch(a){wr.error(a)}e("config",o,i)}async function FJ(e,t,n,r,o){try{let i=[];if(o&&o.send_to){let s=o.send_to;Array.isArray(s)||(s=[s]);const a=await RL(n);for(const l of s){const c=a.find(d=>d.measurementId===l),u=c&&t[c.appId];if(u)i.push(u);else{i=[];break}}}i.length===0&&(i=Object.values(t)),await Promise.all(i),e("event",r,o||{})}catch(i){wr.error(i)}}function jJ(e,t,n,r){async function o(i,...s){try{if(i==="event"){const[a,l]=s;await FJ(e,t,n,a,l)}else if(i==="config"){const[a,l]=s;await LJ(e,t,n,r,a,l)}else if(i==="consent"){const[a,l]=s;e("consent",a,l)}else if(i==="get"){const[a,l,c]=s;e("get",a,l,c)}else if(i==="set"){const[a]=s;e("set",a)}else e(i,...s)}catch(a){wr.error(a)}}return o}function NJ(e,t,n,r,o){let i=function(...s){window[r].push(arguments)};return window[o]&&typeof window[o]=="function"&&(i=window[o]),window[o]=jJ(i,e,t,n),{gtagCore:i,wrappedGtag:window[o]}}function BJ(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(a1)&&n.src.includes(e))return n;return null}/** * @license * Copyright 2020 Google LLC * @@ -1899,7 +1899,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const BJ=30,zJ=1e3;class HJ{constructor(t={},n=zJ){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}const ML=new HJ;function VJ(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function UJ(e){var t;const{appId:n,apiKey:r}=e,o={method:"GET",headers:VJ(r)},i=OJ.replace("{app-id}",n),s=await fetch(i,o);if(s.status!==200&&s.status!==304){let a="";try{const l=await s.json();!((t=l.error)===null||t===void 0)&&t.message&&(a=l.error.message)}catch{}throw Hr.create("config-fetch-failed",{httpStatus:s.status,responseMessage:a})}return s.json()}async function GJ(e,t=ML,n){const{appId:r,apiKey:o,measurementId:i}=e.options;if(!r)throw Hr.create("no-app-id");if(!o){if(i)return{measurementId:i,appId:r};throw Hr.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new qJ;return setTimeout(async()=>{a.abort()},EJ),RL({appId:r,apiKey:o,measurementId:i},s,a,t)}async function RL(e,{throttleEndTimeMillis:t,backoffCount:n},r,o=ML){var i;const{appId:s,measurementId:a}=e;try{await WJ(r,t)}catch(l){if(a)return wr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${l==null?void 0:l.message}]`),{appId:s,measurementId:a};throw l}try{const l=await UJ(e);return o.deleteThrottleMetadata(s),l}catch(l){const c=l;if(!KJ(c)){if(o.deleteThrottleMetadata(s),a)return wr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${c==null?void 0:c.message}]`),{appId:s,measurementId:a};throw l}const u=Number((i=c==null?void 0:c.customData)===null||i===void 0?void 0:i.httpStatus)===503?BT(n,o.intervalMillis,BJ):BT(n,o.intervalMillis),d={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return o.setThrottleMetadata(s,d),wr.debug(`Calling attemptFetch again in ${u} millis`),RL(e,d,r,o)}}function WJ(e,t){return new Promise((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener(()=>{clearTimeout(i),r(Hr.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function KJ(e){if(!(e instanceof Uo)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class qJ{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function YJ(e,t,n,r,o){if(o&&o.global){e("event",n,r);return}else{const i=await t,s=Object.assign(Object.assign({},r),{send_to:i});e("event",n,s)}}/** + */const zJ=30,HJ=1e3;class VJ{constructor(t={},n=HJ){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}const $L=new VJ;function UJ(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function GJ(e){var t;const{appId:n,apiKey:r}=e,o={method:"GET",headers:UJ(r)},i=MJ.replace("{app-id}",n),s=await fetch(i,o);if(s.status!==200&&s.status!==304){let a="";try{const l=await s.json();!((t=l.error)===null||t===void 0)&&t.message&&(a=l.error.message)}catch{}throw Hr.create("config-fetch-failed",{httpStatus:s.status,responseMessage:a})}return s.json()}async function WJ(e,t=$L,n){const{appId:r,apiKey:o,measurementId:i}=e.options;if(!r)throw Hr.create("no-app-id");if(!o){if(i)return{measurementId:i,appId:r};throw Hr.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new YJ;return setTimeout(async()=>{a.abort()},OJ),_L({appId:r,apiKey:o,measurementId:i},s,a,t)}async function _L(e,{throttleEndTimeMillis:t,backoffCount:n},r,o=$L){var i;const{appId:s,measurementId:a}=e;try{await KJ(r,t)}catch(l){if(a)return wr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${l==null?void 0:l.message}]`),{appId:s,measurementId:a};throw l}try{const l=await GJ(e);return o.deleteThrottleMetadata(s),l}catch(l){const c=l;if(!qJ(c)){if(o.deleteThrottleMetadata(s),a)return wr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${c==null?void 0:c.message}]`),{appId:s,measurementId:a};throw l}const u=Number((i=c==null?void 0:c.customData)===null||i===void 0?void 0:i.httpStatus)===503?HT(n,o.intervalMillis,zJ):HT(n,o.intervalMillis),d={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return o.setThrottleMetadata(s,d),wr.debug(`Calling attemptFetch again in ${u} millis`),_L(e,d,r,o)}}function KJ(e,t){return new Promise((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener(()=>{clearTimeout(i),r(Hr.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function qJ(e){if(!(e instanceof Uo)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class YJ{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function XJ(e,t,n,r,o){if(o&&o.global){e("event",n,r);return}else{const i=await t,s=Object.assign(Object.assign({},r),{send_to:i});e("event",n,s)}}/** * @license * Copyright 2020 Google LLC * @@ -1914,7 +1914,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function XJ(){if(kD())try{await TD()}catch(e){return wr.warn(Hr.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return wr.warn(Hr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function QJ(e,t,n,r,o,i,s){var a;const l=GJ(e);l.then(h=>{n[h.measurementId]=h.appId,e.options.measurementId&&h.measurementId!==e.options.measurementId&&wr.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${h.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(h=>wr.error(h)),t.push(l);const c=XJ().then(h=>{if(h)return r.getId()}),[u,d]=await Promise.all([l,c]);NJ(i)||_J(i,u.measurementId),o("js",new Date);const f=(a=s==null?void 0:s.config)!==null&&a!==void 0?a:{};return f[TJ]="firebase",f.update=!0,d!=null&&(f[kJ]=d),o("config",u.measurementId,f),u.measurementId}/** + */async function QJ(){if(ED())try{await OD()}catch(e){return wr.warn(Hr.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return wr.warn(Hr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function JJ(e,t,n,r,o,i,s){var a;const l=WJ(e);l.then(h=>{n[h.measurementId]=h.appId,e.options.measurementId&&h.measurementId!==e.options.measurementId&&wr.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${h.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(h=>wr.error(h)),t.push(l);const c=QJ().then(h=>{if(h)return r.getId()}),[u,d]=await Promise.all([l,c]);BJ(i)||AJ(i,u.measurementId),o("js",new Date);const f=(a=s==null?void 0:s.config)!==null&&a!==void 0?a:{};return f[EJ]="firebase",f.update=!0,d!=null&&(f[TJ]=d),o("config",u.measurementId,f),u.measurementId}/** * @license * Copyright 2019 Google LLC * @@ -1929,7 +1929,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class JJ{constructor(t){this.app=t}_delete(){return delete Bd[this.app.options.appId],Promise.resolve()}}let Bd={},hE=[];const mE={};let Mb="dataLayer",ZJ="gtag",gE,$L,vE=!1;function eZ(){const e=[];if(ID()&&e.push("This is a browser extension environment."),Cq()||e.push("Cookies are not available."),e.length>0){const t=e.map((r,o)=>`(${o+1}) ${r}`).join(" "),n=Hr.create("invalid-analytics-context",{errorInfo:t});wr.warn(n.message)}}function tZ(e,t,n){eZ();const r=e.options.appId;if(!r)throw Hr.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)wr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw Hr.create("no-api-key");if(Bd[r]!=null)throw Hr.create("already-exists",{id:r});if(!vE){AJ(Mb);const{wrappedGtag:i,gtagCore:s}=jJ(Bd,hE,mE,Mb,ZJ);$L=i,gE=s,vE=!0}return Bd[r]=QJ(e,hE,mE,t,gE,Mb,n),new JJ(e)}function nZ(e=VS()){e=kr(e);const t=ml(e,Vm);return t.isInitialized()?t.getImmediate():rZ(e)}function rZ(e,t={}){const n=ml(e,Vm);if(n.isInitialized()){const o=n.getImmediate();if(Tf(t,n.getOptions()))return o;throw Hr.create("already-initialized")}return n.initialize({options:t})}function oZ(e,t,n,r){e=kr(e),YJ($L,Bd[e.app.options.appId],t,n,r).catch(o=>wr.error(o))}const yE="@firebase/analytics",bE="0.10.9";function iZ(){mi(new Ho(Vm,(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("installations-internal").getImmediate();return tZ(r,o,n)},"PUBLIC")),mi(new Ho("analytics-internal",e,"PRIVATE")),ho(yE,bE),ho(yE,bE,"esm2017");function e(t){try{const n=t.getProvider(Vm).getImmediate();return{logEvent:(r,o,i)=>oZ(n,r,o,i)}}catch(n){throw Hr.create("interop-component-reg-failed",{reason:n})}}}iZ();/** + */class ZJ{constructor(t){this.app=t}_delete(){return delete Bd[this.app.options.appId],Promise.resolve()}}let Bd={},gE=[];const vE={};let Rb="dataLayer",eZ="gtag",yE,AL,bE=!1;function tZ(){const e=[];if(TD()&&e.push("This is a browser extension environment."),xq()||e.push("Cookies are not available."),e.length>0){const t=e.map((r,o)=>`(${o+1}) ${r}`).join(" "),n=Hr.create("invalid-analytics-context",{errorInfo:t});wr.warn(n.message)}}function nZ(e,t,n){tZ();const r=e.options.appId;if(!r)throw Hr.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)wr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw Hr.create("no-api-key");if(Bd[r]!=null)throw Hr.create("already-exists",{id:r});if(!bE){DJ(Rb);const{wrappedGtag:i,gtagCore:s}=NJ(Bd,gE,vE,Rb,eZ);AL=i,yE=s,bE=!0}return Bd[r]=JJ(e,gE,vE,t,yE,Rb,n),new ZJ(e)}function rZ(e=GS()){e=kr(e);const t=ml(e,Um);return t.isInitialized()?t.getImmediate():oZ(e)}function oZ(e,t={}){const n=ml(e,Um);if(n.isInitialized()){const o=n.getImmediate();if(Tf(t,n.getOptions()))return o;throw Hr.create("already-initialized")}return n.initialize({options:t})}function iZ(e,t,n,r){e=kr(e),XJ(AL,Bd[e.app.options.appId],t,n,r).catch(o=>wr.error(o))}const wE="@firebase/analytics",CE="0.10.9";function sZ(){mi(new Ho(Um,(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("installations-internal").getImmediate();return nZ(r,o,n)},"PUBLIC")),mi(new Ho("analytics-internal",e,"PRIVATE")),ho(wE,CE),ho(wE,CE,"esm2017");function e(t){try{const n=t.getProvider(Um).getImmediate();return{logEvent:(r,o,i)=>iZ(n,r,o,i)}}catch(n){throw Hr.create("interop-component-reg-failed",{reason:n})}}}sZ();/** * @license * Copyright 2017 Google LLC * @@ -1944,7 +1944,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const _L="firebasestorage.googleapis.com",AL="storageBucket",sZ=2*60*1e3,aZ=10*60*1e3;/** + */const DL="firebasestorage.googleapis.com",LL="storageBucket",aZ=2*60*1e3,lZ=10*60*1e3;/** * @license * Copyright 2017 Google LLC * @@ -1959,8 +1959,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class nn extends Uo{constructor(t,n,r=0){super(Rb(t),`Firebase Storage: ${n} (${Rb(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,nn.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return Rb(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} -${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(tn||(tn={}));function Rb(e){return"storage/"+e}function s1(){const e="An unknown error occurred, please check the error payload for server response.";return new nn(tn.UNKNOWN,e)}function lZ(e){return new nn(tn.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function cZ(e){return new nn(tn.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function uZ(){const e="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new nn(tn.UNAUTHENTICATED,e)}function dZ(){return new nn(tn.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function fZ(e){return new nn(tn.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function pZ(){return new nn(tn.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function hZ(){return new nn(tn.CANCELED,"User canceled the upload/download.")}function mZ(e){return new nn(tn.INVALID_URL,"Invalid URL '"+e+"'.")}function gZ(e){return new nn(tn.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function vZ(){return new nn(tn.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+AL+"' property when initializing the app?")}function yZ(){return new nn(tn.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function bZ(){return new nn(tn.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function wZ(e){return new nn(tn.UNSUPPORTED_ENVIRONMENT,`${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function Gw(e){return new nn(tn.INVALID_ARGUMENT,e)}function DL(){return new nn(tn.APP_DELETED,"The Firebase app was deleted.")}function CZ(e){return new nn(tn.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function zd(e,t){return new nn(tn.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function rd(e){throw new nn(tn.INTERNAL_ERROR,"Internal error: "+e)}/** + */class nn extends Uo{constructor(t,n,r=0){super($b(t),`Firebase Storage: ${n} (${$b(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,nn.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return $b(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} +${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(tn||(tn={}));function $b(e){return"storage/"+e}function l1(){const e="An unknown error occurred, please check the error payload for server response.";return new nn(tn.UNKNOWN,e)}function cZ(e){return new nn(tn.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function uZ(e){return new nn(tn.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function dZ(){const e="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new nn(tn.UNAUTHENTICATED,e)}function fZ(){return new nn(tn.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function pZ(e){return new nn(tn.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function hZ(){return new nn(tn.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function mZ(){return new nn(tn.CANCELED,"User canceled the upload/download.")}function gZ(e){return new nn(tn.INVALID_URL,"Invalid URL '"+e+"'.")}function vZ(e){return new nn(tn.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function yZ(){return new nn(tn.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+LL+"' property when initializing the app?")}function bZ(){return new nn(tn.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function wZ(){return new nn(tn.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function CZ(e){return new nn(tn.UNSUPPORTED_ENVIRONMENT,`${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function Ww(e){return new nn(tn.INVALID_ARGUMENT,e)}function FL(){return new nn(tn.APP_DELETED,"The Firebase app was deleted.")}function xZ(e){return new nn(tn.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function zd(e,t){return new nn(tn.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function rd(e){throw new nn(tn.INTERNAL_ERROR,"Internal error: "+e)}/** * @license * Copyright 2017 Google LLC * @@ -1975,7 +1975,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Lr{constructor(t,n){this.bucket=t,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,n){let r;try{r=Lr.makeFromUrl(t,n)}catch{return new Lr(t,"")}if(r.path==="")return r;throw gZ(t)}static makeFromUrl(t,n){let r=null;const o="([A-Za-z0-9.\\-_]+)";function i(x){x.path.charAt(x.path.length-1)==="/"&&(x.path_=x.path_.slice(0,-1))}const s="(/(.*))?$",a=new RegExp("^gs://"+o+s,"i"),l={bucket:1,path:3};function c(x){x.path_=decodeURIComponent(x.path)}const u="v[A-Za-z0-9_]+",d=n.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",h=new RegExp(`^https?://${d}/${u}/b/${o}/o${f}`,"i"),m={bucket:1,path:3},y=n===_L?"(?:storage.googleapis.com|storage.cloud.google.com)":n,C="([^?#]*)",w=new RegExp(`^https?://${y}/${o}/${C}`,"i"),g=[{regex:a,indices:l,postModify:i},{regex:h,indices:m,postModify:c},{regex:w,indices:{bucket:1,path:2},postModify:c}];for(let x=0;x{o=null,e(h,l())},C)}function f(){i&&clearTimeout(i)}function h(C,...w){if(c){f();return}if(C){f(),u.call(null,C,...w);return}if(l()||s){f(),u.call(null,C,...w);return}r<64&&(r*=2);let g;a===1?(a=2,g=0):g=(r+Math.random())*1e3,d(g)}let m=!1;function y(C){m||(m=!0,f(),!c&&(o!==null?(C||(a=2),clearTimeout(o),d(0)):C||(a=1)))}return d(0),i=setTimeout(()=>{s=!0,y(!0)},n),y}function PZ(e){e(!1)}/** + */function PZ(e,t,n){let r=1,o=null,i=null,s=!1,a=0;function l(){return a===2}let c=!1;function u(...C){c||(c=!0,t.apply(null,C))}function d(C){o=setTimeout(()=>{o=null,e(h,l())},C)}function f(){i&&clearTimeout(i)}function h(C,...w){if(c){f();return}if(C){f(),u.call(null,C,...w);return}if(l()||s){f(),u.call(null,C,...w);return}r<64&&(r*=2);let g;a===1?(a=2,g=0):g=(r+Math.random())*1e3,d(g)}let m=!1;function y(C){m||(m=!0,f(),!c&&(o!==null?(C||(a=2),clearTimeout(o),d(0)):C||(a=1)))}return d(0),i=setTimeout(()=>{s=!0,y(!0)},n),y}function IZ(e){e(!1)}/** * @license * Copyright 2017 Google LLC * @@ -2005,7 +2005,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function IZ(e){return e!==void 0}function kZ(e){return typeof e=="object"&&!Array.isArray(e)}function a1(e){return typeof e=="string"||e instanceof String}function wE(e){return l1()&&e instanceof Blob}function l1(){return typeof Blob<"u"}function CE(e,t,n,r){if(rn)throw Gw(`Invalid value for '${e}'. Expected ${n} or less.`)}/** + */function kZ(e){return e!==void 0}function TZ(e){return typeof e=="object"&&!Array.isArray(e)}function c1(e){return typeof e=="string"||e instanceof String}function xE(e){return u1()&&e instanceof Blob}function u1(){return typeof Blob<"u"}function SE(e,t,n,r){if(rn)throw Ww(`Invalid value for '${e}'. Expected ${n} or less.`)}/** * @license * Copyright 2017 Google LLC * @@ -2020,7 +2020,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function c1(e,t,n){let r=t;return n==null&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function LL(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){const o=t(r)+"="+t(e[r]);n=n+o+"&"}return n=n.slice(0,-1),n}var za;(function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"})(za||(za={}));/** + */function d1(e,t,n){let r=t;return n==null&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function jL(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){const o=t(r)+"="+t(e[r]);n=n+o+"&"}return n=n.slice(0,-1),n}var za;(function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"})(za||(za={}));/** * @license * Copyright 2022 Google LLC * @@ -2035,7 +2035,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function TZ(e,t){const n=e>=500&&e<600,o=[408,429].indexOf(e)!==-1,i=t.indexOf(e)!==-1;return n||o||i}/** + */function EZ(e,t){const n=e>=500&&e<600,o=[408,429].indexOf(e)!==-1,i=t.indexOf(e)!==-1;return n||o||i}/** * @license * Copyright 2017 Google LLC * @@ -2050,7 +2050,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class EZ{constructor(t,n,r,o,i,s,a,l,c,u,d,f=!0){this.url_=t,this.method_=n,this.headers_=r,this.body_=o,this.successCodes_=i,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((h,m)=>{this.resolve_=h,this.reject_=m,this.start_()})}start_(){const t=(r,o)=>{if(o){r(!1,new Zp(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const s=a=>{const l=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&i.addUploadProgressListener(s),i.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(s),this.pendingConnection_=null;const a=i.getErrorCode()===za.NO_ERROR,l=i.getStatus();if(!a||TZ(l,this.additionalRetryCodes_)&&this.retry){const u=i.getErrorCode()===za.ABORT;r(!1,new Zp(!1,null,u));return}const c=this.successCodes_.indexOf(l)!==-1;r(!0,new Zp(c,i))})},n=(r,o)=>{const i=this.resolve_,s=this.reject_,a=o.connection;if(o.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());IZ(l)?i(l):i()}catch(l){s(l)}else if(a!==null){const l=s1();l.serverResponse=a.getErrorText(),this.errorCallback_?s(this.errorCallback_(a,l)):s(l)}else if(o.canceled){const l=this.appDelete_?DL():hZ();s(l)}else{const l=pZ();s(l)}};this.canceled_?n(!1,new Zp(!1,null,!0)):this.backoffId_=SZ(t,n,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&PZ(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class Zp{constructor(t,n,r){this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}}function OZ(e,t){t!==null&&t.length>0&&(e.Authorization="Firebase "+t)}function MZ(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function RZ(e,t){t&&(e["X-Firebase-GMPID"]=t)}function $Z(e,t){t!==null&&(e["X-Firebase-AppCheck"]=t)}function _Z(e,t,n,r,o,i,s=!0){const a=LL(e.urlParams),l=e.url+a,c=Object.assign({},e.headers);return RZ(c,t),OZ(c,n),MZ(c,i),$Z(c,r),new EZ(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,s)}/** + */class OZ{constructor(t,n,r,o,i,s,a,l,c,u,d,f=!0){this.url_=t,this.method_=n,this.headers_=r,this.body_=o,this.successCodes_=i,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((h,m)=>{this.resolve_=h,this.reject_=m,this.start_()})}start_(){const t=(r,o)=>{if(o){r(!1,new Zp(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const s=a=>{const l=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&i.addUploadProgressListener(s),i.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(s),this.pendingConnection_=null;const a=i.getErrorCode()===za.NO_ERROR,l=i.getStatus();if(!a||EZ(l,this.additionalRetryCodes_)&&this.retry){const u=i.getErrorCode()===za.ABORT;r(!1,new Zp(!1,null,u));return}const c=this.successCodes_.indexOf(l)!==-1;r(!0,new Zp(c,i))})},n=(r,o)=>{const i=this.resolve_,s=this.reject_,a=o.connection;if(o.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());kZ(l)?i(l):i()}catch(l){s(l)}else if(a!==null){const l=l1();l.serverResponse=a.getErrorText(),this.errorCallback_?s(this.errorCallback_(a,l)):s(l)}else if(o.canceled){const l=this.appDelete_?FL():mZ();s(l)}else{const l=hZ();s(l)}};this.canceled_?n(!1,new Zp(!1,null,!0)):this.backoffId_=PZ(t,n,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&IZ(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class Zp{constructor(t,n,r){this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}}function MZ(e,t){t!==null&&t.length>0&&(e.Authorization="Firebase "+t)}function RZ(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function $Z(e,t){t&&(e["X-Firebase-GMPID"]=t)}function _Z(e,t){t!==null&&(e["X-Firebase-AppCheck"]=t)}function AZ(e,t,n,r,o,i,s=!0){const a=jL(e.urlParams),l=e.url+a,c=Object.assign({},e.headers);return $Z(c,t),MZ(c,n),RZ(c,i),_Z(c,r),new OZ(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,s)}/** * @license * Copyright 2017 Google LLC * @@ -2065,7 +2065,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function AZ(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function DZ(...e){const t=AZ();if(t!==void 0){const n=new t;for(let r=0;r"u")throw wZ("base-64");return atob(e)}/** + */function jZ(e){if(typeof atob>"u")throw CZ("base-64");return atob(e)}/** * @license * Copyright 2017 Google LLC * @@ -2095,7 +2095,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ni={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class $b{constructor(t,n){this.data=t,this.contentType=n||null}}function jZ(e,t){switch(e){case ni.RAW:return new $b(FL(t));case ni.BASE64:case ni.BASE64URL:return new $b(jL(e,t));case ni.DATA_URL:return new $b(BZ(t),zZ(t))}throw s1()}function FL(e){const t=[];for(let n=0;n>6,128|r&63);else if((r&64512)===55296)if(!(n>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function NZ(e){let t;try{t=decodeURIComponent(e)}catch{throw zd(ni.DATA_URL,"Malformed data URL.")}return FL(t)}function jL(e,t){switch(e){case ni.BASE64:{const o=t.indexOf("-")!==-1,i=t.indexOf("_")!==-1;if(o||i)throw zd(e,"Invalid character '"+(o?"-":"_")+"' found: is it base64url encoded?");break}case ni.BASE64URL:{const o=t.indexOf("+")!==-1,i=t.indexOf("/")!==-1;if(o||i)throw zd(e,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=FZ(t)}catch(o){throw o.message.includes("polyfill")?o:zd(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let o=0;o][;base64],");const r=n[1]||null;r!=null&&(this.base64=HZ(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}}function BZ(e){const t=new NL(e);return t.base64?jL(ni.BASE64,t.rest):NZ(t.rest)}function zZ(e){return new NL(e).contentType}function HZ(e,t){return e.length>=t.length?e.substring(e.length-t.length)===t:!1}/** + */const ni={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class _b{constructor(t,n){this.data=t,this.contentType=n||null}}function NZ(e,t){switch(e){case ni.RAW:return new _b(NL(t));case ni.BASE64:case ni.BASE64URL:return new _b(BL(e,t));case ni.DATA_URL:return new _b(zZ(t),HZ(t))}throw l1()}function NL(e){const t=[];for(let n=0;n>6,128|r&63);else if((r&64512)===55296)if(!(n>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function BZ(e){let t;try{t=decodeURIComponent(e)}catch{throw zd(ni.DATA_URL,"Malformed data URL.")}return NL(t)}function BL(e,t){switch(e){case ni.BASE64:{const o=t.indexOf("-")!==-1,i=t.indexOf("_")!==-1;if(o||i)throw zd(e,"Invalid character '"+(o?"-":"_")+"' found: is it base64url encoded?");break}case ni.BASE64URL:{const o=t.indexOf("+")!==-1,i=t.indexOf("/")!==-1;if(o||i)throw zd(e,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=jZ(t)}catch(o){throw o.message.includes("polyfill")?o:zd(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let o=0;o][;base64],");const r=n[1]||null;r!=null&&(this.base64=VZ(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}}function zZ(e){const t=new zL(e);return t.base64?BL(ni.BASE64,t.rest):BZ(t.rest)}function HZ(e){return new zL(e).contentType}function VZ(e,t){return e.length>=t.length?e.substring(e.length-t.length)===t:!1}/** * @license * Copyright 2017 Google LLC * @@ -2110,7 +2110,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Os{constructor(t,n){let r=0,o="";wE(t)?(this.data_=t,r=t.size,o=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=o}size(){return this.size_}type(){return this.type_}slice(t,n){if(wE(this.data_)){const r=this.data_,o=LZ(r,t,n);return o===null?null:new Os(o)}else{const r=new Uint8Array(this.data_.buffer,t,n-t);return new Os(r,!0)}}static getBlob(...t){if(l1()){const n=t.map(r=>r instanceof Os?r.data_:r);return new Os(DZ.apply(null,n))}else{const n=t.map(s=>a1(s)?jZ(ni.RAW,s).data:s.data_);let r=0;n.forEach(s=>{r+=s.byteLength});const o=new Uint8Array(r);let i=0;return n.forEach(s=>{for(let a=0;ar instanceof Ms?r.data_:r);return new Ms(LZ.apply(null,n))}else{const n=t.map(s=>c1(s)?NZ(ni.RAW,s).data:s.data_);let r=0;n.forEach(s=>{r+=s.byteLength});const o=new Uint8Array(r);let i=0;return n.forEach(s=>{for(let a=0;ar.length>0).join("/");return e.length===0?n:e+"/"+n}function zL(e){const t=e.lastIndexOf("/",e.length-2);return t===-1?e:e.slice(t+1)}/** + */function UZ(e){if(e.length===0)return null;const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function GZ(e,t){const n=t.split("/").filter(r=>r.length>0).join("/");return e.length===0?n:e+"/"+n}function VL(e){const t=e.lastIndexOf("/",e.length-2);return t===-1?e:e.slice(t+1)}/** * @license * Copyright 2017 Google LLC * @@ -2155,7 +2155,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var tn;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function GZ(e,t){return t}class Jn{constructor(t,n,r,o){this.server=t,this.local=n||t,this.writable=!!r,this.xform=o||GZ}}let eh=null;function WZ(e){return!a1(e)||e.length<2?e:zL(e)}function HL(){if(eh)return eh;const e=[];e.push(new Jn("bucket")),e.push(new Jn("generation")),e.push(new Jn("metageneration")),e.push(new Jn("name","fullPath",!0));function t(i,s){return WZ(s)}const n=new Jn("name");n.xform=t,e.push(n);function r(i,s){return s!==void 0?Number(s):s}const o=new Jn("size");return o.xform=r,e.push(o),e.push(new Jn("timeCreated")),e.push(new Jn("updated")),e.push(new Jn("md5Hash",null,!0)),e.push(new Jn("cacheControl",null,!0)),e.push(new Jn("contentDisposition",null,!0)),e.push(new Jn("contentEncoding",null,!0)),e.push(new Jn("contentLanguage",null,!0)),e.push(new Jn("contentType",null,!0)),e.push(new Jn("metadata","customMetadata",!0)),eh=e,eh}function KZ(e,t){function n(){const r=e.bucket,o=e.fullPath,i=new Lr(r,o);return t._makeStorageReference(i)}Object.defineProperty(e,"ref",{get:n})}function qZ(e,t,n){const r={};r.type="file";const o=n.length;for(let i=0;i{const u=e.bucket,d=e.fullPath,f="/b/"+s(u)+"/o/"+s(d),h=c1(f,n,r),m=LL({alt:"media",token:c});return h+m})[0]}function XZ(e,t){const n={},r=t.length;for(let o=0;o{const u=e.bucket,d=e.fullPath,f="/b/"+s(u)+"/o/"+s(d),h=d1(f,n,r),m=jL({alt:"media",token:c});return h+m})[0]}function QZ(e,t){const n={},r=t.length;for(let o=0;o{this.xhr_.addEventListener("abort",()=>{this.errorCode_=za.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=za.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,n,r,o){if(this.sent_)throw rd("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(n,t,!0),o!==void 0)for(const i in o)o.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,o[i].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw rd("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw rd("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw rd("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw rd("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",t)}}class iee extends oee{initXhr(){this.xhr_.responseType="text"}}function KL(){return new iee}/** +--`+l+"--",h=Ms.getBlob(d,r,f);if(h===null)throw bZ();const m={name:c.fullPath},y=d1(i,e.host,e._protocol),C="POST",w=e.maxUploadRetryTime,b=new WL(y,C,JZ(e,n),w);return b.urlParams=m,b.headers=s,b.body=h.uploadData(),b.errorHandler=qL(t),b}class iee{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=za.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=za.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=za.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,n,r,o){if(this.sent_)throw rd("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(n,t,!0),o!==void 0)for(const i in o)o.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,o[i].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw rd("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw rd("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw rd("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw rd("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",t)}}class see extends iee{initXhr(){this.xhr_.responseType="text"}}function YL(){return new see}/** * @license * Copyright 2019 Google LLC * @@ -2193,7 +2193,7 @@ Content-Type: `+c.contentType+`\r * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let Fv=class Ww{constructor(t,n){this._service=t,n instanceof Lr?this._location=n:this._location=Lr.makeFromUrl(n,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,n){return new Ww(t,n)}get root(){const t=new Lr(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return zL(this._location.path)}get storage(){return this._service}get parent(){const t=VZ(this._location.path);if(t===null)return null;const n=new Lr(this._location.bucket,t);return new Ww(this._service,n)}_throwIfRoot(t){if(this._location.path==="")throw CZ(t)}};function see(e,t,n){e._throwIfRoot("uploadBytes");const r=ree(e.storage,e._location,HL(),new Os(t,!0),n);return e.storage.makeRequestWithTokens(r,KL).then(o=>({metadata:o,ref:e}))}function aee(e){e._throwIfRoot("getDownloadURL");const t=eee(e.storage,e._location,HL());return e.storage.makeRequestWithTokens(t,KL).then(n=>{if(n===null)throw bZ();return n})}function lee(e,t){const n=UZ(e._location.path,t),r=new Lr(e._location.bucket,n);return new Fv(e.storage,r)}/** + */let jv=class Kw{constructor(t,n){this._service=t,n instanceof Lr?this._location=n:this._location=Lr.makeFromUrl(n,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,n){return new Kw(t,n)}get root(){const t=new Lr(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return VL(this._location.path)}get storage(){return this._service}get parent(){const t=UZ(this._location.path);if(t===null)return null;const n=new Lr(this._location.bucket,t);return new Kw(this._service,n)}_throwIfRoot(t){if(this._location.path==="")throw xZ(t)}};function aee(e,t,n){e._throwIfRoot("uploadBytes");const r=oee(e.storage,e._location,UL(),new Ms(t,!0),n);return e.storage.makeRequestWithTokens(r,YL).then(o=>({metadata:o,ref:e}))}function lee(e){e._throwIfRoot("getDownloadURL");const t=tee(e.storage,e._location,UL());return e.storage.makeRequestWithTokens(t,YL).then(n=>{if(n===null)throw wZ();return n})}function cee(e,t){const n=GZ(e._location.path,t),r=new Lr(e._location.bucket,n);return new jv(e.storage,r)}/** * @license * Copyright 2017 Google LLC * @@ -2208,7 +2208,7 @@ Content-Type: `+c.contentType+`\r * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function cee(e){return/^[A-Za-z]+:\/\//.test(e)}function uee(e,t){return new Fv(e,t)}function qL(e,t){if(e instanceof u1){const n=e;if(n._bucket==null)throw vZ();const r=new Fv(n,n._bucket);return t!=null?qL(r,t):r}else return t!==void 0?lee(e,t):e}function dee(e,t){if(t&&cee(t)){if(e instanceof u1)return uee(e,t);throw Gw("To use ref(service, url), the first argument must be a Storage instance.")}else return qL(e,t)}function xE(e,t){const n=t==null?void 0:t[AL];return n==null?null:Lr.makeFromBucketSpec(n,e)}function fee(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:o}=r;o&&(e._overrideAuthToken=typeof o=="string"?o:gq(o,e.app.options.projectId))}class u1{constructor(t,n,r,o,i){this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=o,this._firebaseVersion=i,this._bucket=null,this._host=_L,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=sZ,this._maxUploadRetryTime=aZ,this._requests=new Set,o!=null?this._bucket=Lr.makeFromBucketSpec(o,this._host):this._bucket=xE(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=Lr.makeFromBucketSpec(this._url,t):this._bucket=xE(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){CE("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){CE("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const t=this._authProvider.getImmediate({optional:!0});if(t){const n=await t.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const t=this._appCheckProvider.getImmediate({optional:!0});return t?(await t.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new Fv(this,t)}_makeRequest(t,n,r,o,i=!0){if(this._deleted)return new xZ(DL());{const s=_Z(t,this._appId,r,o,n,this._firebaseVersion,i);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(t,n){const[r,o]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,n,r,o).getPromise()}}const SE="@firebase/storage",PE="0.13.3";/** + */function uee(e){return/^[A-Za-z]+:\/\//.test(e)}function dee(e,t){return new jv(e,t)}function XL(e,t){if(e instanceof f1){const n=e;if(n._bucket==null)throw yZ();const r=new jv(n,n._bucket);return t!=null?XL(r,t):r}else return t!==void 0?cee(e,t):e}function fee(e,t){if(t&&uee(t)){if(e instanceof f1)return dee(e,t);throw Ww("To use ref(service, url), the first argument must be a Storage instance.")}else return XL(e,t)}function PE(e,t){const n=t==null?void 0:t[LL];return n==null?null:Lr.makeFromBucketSpec(n,e)}function pee(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:o}=r;o&&(e._overrideAuthToken=typeof o=="string"?o:vq(o,e.app.options.projectId))}class f1{constructor(t,n,r,o,i){this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=o,this._firebaseVersion=i,this._bucket=null,this._host=DL,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=aZ,this._maxUploadRetryTime=lZ,this._requests=new Set,o!=null?this._bucket=Lr.makeFromBucketSpec(o,this._host):this._bucket=PE(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=Lr.makeFromBucketSpec(this._url,t):this._bucket=PE(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){SE("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){SE("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const t=this._authProvider.getImmediate({optional:!0});if(t){const n=await t.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const t=this._appCheckProvider.getImmediate({optional:!0});return t?(await t.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new jv(this,t)}_makeRequest(t,n,r,o,i=!0){if(this._deleted)return new SZ(FL());{const s=AZ(t,this._appId,r,o,n,this._firebaseVersion,i);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(t,n){const[r,o]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,n,r,o).getPromise()}}const IE="@firebase/storage",kE="0.13.3";/** * @license * Copyright 2020 Google LLC * @@ -2223,8 +2223,8 @@ Content-Type: `+c.contentType+`\r * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const YL="storage";function pee(e,t,n){return e=kr(e),see(e,t,n)}function hee(e){return e=kr(e),aee(e)}function mee(e,t){return e=kr(e),dee(e,t)}function gee(e=VS(),t){e=kr(e);const r=ml(e,YL).getImmediate({identifier:t}),o=hq("storage");return o&&vee(r,...o),r}function vee(e,t,n,r={}){fee(e,t,n,r)}function yee(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new u1(n,r,o,t,Iu)}function bee(){mi(new Ho(YL,yee,"PUBLIC").setMultipleInstances(!0)),ho(SE,PE,""),ho(SE,PE,"esm2017")}bee();const wee={apiKey:"AIzaSyCGYw_TG3UpZOox8SlioWPcj6wej07onVA",authDomain:"fer-lab-da8b3.firebaseapp.com",projectId:"fer-lab-da8b3",storageBucket:"fer-lab-da8b3.appspot.com",messagingSenderId:"625078386291",appId:"1:625078386291:web:f1ce015a2d380b2cbbf406",measurementId:"G-642HVRZF5W"},XL=RD(wee);nZ(XL);const _b=FQ(),Cee=gee(XL),Da="https://firebasestorage.googleapis.com/v0/b/fer-lab-da8b3.appspot.com/o/default%2Fimage.jpg?alt=media&token=2f5d8998-9a0f-46e3-a770-ca62b25ac3ca",QL=p.createContext(),xee=({children:e})=>{const[t,n]=p.useState({}),r=()=>{const i=new Ri;WX(_b,i)},o=()=>{kX(_b)};return p.useEffect(()=>{const i=IX(_b,s=>{n(s)});return()=>{i()}},[]),v.jsx(QL.Provider,{value:{googleSignIn:r,logOut:o,user:t},children:e})},JL=()=>p.useContext(QL),See=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function IE(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function ZL(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=IE(u));const d=u?a.filter(f=>{let h=(i||c)(f);return n&&(h=h.toLowerCase()),t&&(h=IE(h)),o==="start"?h.startsWith(u):h.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const Pee=ZL(),kE=5,Iee=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},kee=[];function Tee(e){const{unstable_isActiveElementInListbox:t=Iee,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?kee:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:C=Pee,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:g,getOptionKey:x,getOptionLabel:P=ce=>ce.label??ce,groupBy:I,handleHomeEndKeys:T=!e.freeSolo,id:M,includeInputInList:k=!1,inputValue:S,isOptionEqualToValue:R=(ce,ae)=>ce===ae,multiple:O=!1,onChange:A,onClose:D,onHighlightChange:_,onInputChange:$,onOpen:L,open:F,openOnFocus:j=!1,options:N,readOnly:z=!1,selectOnFocus:V=!e.freeSolo,value:K}=e,H=yt(M);let G=P;G=ce=>{const ae=P(ce);return typeof ae!="string"?String(ae):ae};const Y=p.useRef(!1),ee=p.useRef(!0),W=p.useRef(null),Q=p.useRef(null),[U,J]=p.useState(null),[Z,le]=p.useState(-1),he=o?0:-1,ye=p.useRef(he),[pe,Fe]=Gs({controlled:K,default:u,name:c}),[me,Ae]=Gs({controlled:S,default:"",name:c,state:"inputValue"}),[Ve,De]=p.useState(!1),X=p.useCallback((ce,ae,Re)=>{if(!(O?pe.length!(w&&(O?pe:[pe]).some(ae=>ae!==null&&R(ce,ae)))),{inputValue:Se&&de?"":me,getOptionLabel:G}):[],Ce=Xx({filteredOptions:Oe,value:pe,inputValue:me});p.useEffect(()=>{const ce=pe!==Ce.value;Ve&&!ce||b&&!ce||X(null,pe,"reset")},[pe,X,Ve,Ce.value,b]);const we=te&&Oe.length>0&&!z,Le=nt(ce=>{ce===-1?W.current.focus():U.querySelector(`[data-tag-index="${ce}"]`).focus()});p.useEffect(()=>{O&&Z>pe.length-1&&(le(-1),Le(-1))},[pe,O,Z,Le]);function lt(ce,ae){if(!Q.current||ce<0||ce>=Oe.length)return-1;let Re=ce;for(;;){const Je=Q.current.querySelector(`[data-option-index="${Re}"]`),tt=m?!1:!Je||Je.disabled||Je.getAttribute("aria-disabled")==="true";if(Je&&Je.hasAttribute("tabindex")&&!tt)return Re;if(ae==="next"?Re=(Re+1)%Oe.length:Re=(Re-1+Oe.length)%Oe.length,Re===ce)return-1}}const fe=nt(({event:ce,index:ae,reason:Re="auto"})=>{if(ye.current=ae,ae===-1?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${H}-option-${ae}`),_&&_(ce,ae===-1?null:Oe[ae],Re),!Q.current)return;const Je=Q.current.querySelector(`[role="option"].${n}-focused`);Je&&(Je.classList.remove(`${n}-focused`),Je.classList.remove(`${n}-focusVisible`));let tt=Q.current;if(Q.current.getAttribute("role")!=="listbox"&&(tt=Q.current.parentElement.querySelector('[role="listbox"]')),!tt)return;if(ae===-1){tt.scrollTop=0;return}const qt=Q.current.querySelector(`[data-option-index="${ae}"]`);if(qt&&(qt.classList.add(`${n}-focused`),Re==="keyboard"&&qt.classList.add(`${n}-focusVisible`),tt.scrollHeight>tt.clientHeight&&Re!=="mouse"&&Re!=="touch")){const gt=qt,Eo=tt.clientHeight+tt.scrollTop,Cp=gt.offsetTop+gt.offsetHeight;Cp>Eo?tt.scrollTop=Cp-tt.clientHeight:gt.offsetTop-gt.offsetHeight*(I?1.3:0){if(!Ee)return;const qt=lt((()=>{const gt=Oe.length-1;if(ae==="reset")return he;if(ae==="start")return 0;if(ae==="end")return gt;const Eo=ye.current+ae;return Eo<0?Eo===-1&&k?-1:y&&ye.current!==-1||Math.abs(ae)>1?0:gt:Eo>gt?Eo===gt+1&&k?-1:y||Math.abs(ae)>1?gt:0:Eo})(),Re);if(fe({index:qt,reason:Je,event:ce}),r&&ae!=="reset")if(qt===-1)W.current.value=me;else{const gt=G(Oe[qt]);W.current.value=gt,gt.toLowerCase().indexOf(me.toLowerCase())===0&&me.length>0&&W.current.setSelectionRange(me.length,gt.length)}}),Ke=()=>{const ce=(ae,Re)=>{const Je=ae?G(ae):"",tt=Re?G(Re):"";return Je===tt};if(ye.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Oe.length&&Ce.inputValue===me&&(O?pe.length===Ce.value.length&&Ce.value.every((ae,Re)=>G(pe[Re])===G(ae)):ce(Ce.value,pe))){const ae=Ce.filteredOptions[ye.current];if(ae)return Oe.findIndex(Re=>G(Re)===G(ae))}return-1},mt=p.useCallback(()=>{if(!Ee)return;const ce=Ke();if(ce!==-1){ye.current=ce;return}const ae=O?pe[0]:pe;if(Oe.length===0||ae==null){ke({diff:"reset"});return}if(Q.current){if(ae!=null){const Re=Oe[ye.current];if(O&&Re&&pe.findIndex(tt=>R(Re,tt))!==-1)return;const Je=Oe.findIndex(tt=>R(tt,ae));Je===-1?ke({diff:"reset"}):fe({index:Je});return}if(ye.current>=Oe.length-1){fe({index:Oe.length-1});return}fe({index:ye.current})}},[Oe.length,O?!1:pe,w,ke,fe,Ee,me,O]),Kn=nt(ce=>{Cm(Q,ce),ce&&mt()});p.useEffect(()=>{mt()},[mt]);const qn=ce=>{te||(oe(!0),ge(!0),L&&L(ce))},_n=(ce,ae)=>{te&&(oe(!1),D&&D(ce,ae))},Yn=(ce,ae,Re,Je)=>{if(O){if(pe.length===ae.length&&pe.every((tt,qt)=>tt===ae[qt]))return}else if(pe===ae)return;A&&A(ce,ae,Re,Je),Fe(ae)},Tr=p.useRef(!1),cr=(ce,ae,Re="selectOption",Je="options")=>{let tt=Re,qt=ae;if(O){qt=Array.isArray(pe)?pe.slice():[];const gt=qt.findIndex(Eo=>R(ae,Eo));gt===-1?qt.push(ae):Je!=="freeSolo"&&(qt.splice(gt,1),tt="removeOption")}X(ce,qt,tt),Yn(ce,qt,tt,{option:ae}),!f&&(!ce||!ce.ctrlKey&&!ce.metaKey)&&_n(ce,tt),(s===!0||s==="touch"&&Tr.current||s==="mouse"&&!Tr.current)&&W.current.blur()};function Xn(ce,ae){if(ce===-1)return-1;let Re=ce;for(;;){if(ae==="next"&&Re===pe.length||ae==="previous"&&Re===-1)return-1;const Je=U.querySelector(`[data-tag-index="${Re}"]`);if(!Je||!Je.hasAttribute("tabindex")||Je.disabled||Je.getAttribute("aria-disabled")==="true")Re+=ae==="next"?1:-1;else return Re}}const Yr=(ce,ae)=>{if(!O)return;me===""&&_n(ce,"toggleInput");let Re=Z;Z===-1?me===""&&ae==="previous"&&(Re=pe.length-1):(Re+=ae==="next"?1:-1,Re<0&&(Re=0),Re===pe.length&&(Re=-1)),Re=Xn(Re,ae),le(Re),Le(Re)},xi=ce=>{Y.current=!0,Ae(""),$&&$(ce,"","clear"),Yn(ce,O?[]:null,"clear")},qe=ce=>ae=>{if(ce.onKeyDown&&ce.onKeyDown(ae),!ae.defaultMuiPrevented&&(Z!==-1&&!["ArrowLeft","ArrowRight"].includes(ae.key)&&(le(-1),Le(-1)),ae.which!==229))switch(ae.key){case"Home":Ee&&T&&(ae.preventDefault(),ke({diff:"start",direction:"next",reason:"keyboard",event:ae}));break;case"End":Ee&&T&&(ae.preventDefault(),ke({diff:"end",direction:"previous",reason:"keyboard",event:ae}));break;case"PageUp":ae.preventDefault(),ke({diff:-kE,direction:"previous",reason:"keyboard",event:ae}),qn(ae);break;case"PageDown":ae.preventDefault(),ke({diff:kE,direction:"next",reason:"keyboard",event:ae}),qn(ae);break;case"ArrowDown":ae.preventDefault(),ke({diff:1,direction:"next",reason:"keyboard",event:ae}),qn(ae);break;case"ArrowUp":ae.preventDefault(),ke({diff:-1,direction:"previous",reason:"keyboard",event:ae}),qn(ae);break;case"ArrowLeft":Yr(ae,"previous");break;case"ArrowRight":Yr(ae,"next");break;case"Enter":if(ye.current!==-1&&Ee){const Re=Oe[ye.current],Je=g?g(Re):!1;if(ae.preventDefault(),Je)return;cr(ae,Re,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else b&&me!==""&&Se===!1&&(O&&ae.preventDefault(),cr(ae,me,"createOption","freeSolo"));break;case"Escape":Ee?(ae.preventDefault(),ae.stopPropagation(),_n(ae,"escape")):l&&(me!==""||O&&pe.length>0)&&(ae.preventDefault(),ae.stopPropagation(),xi(ae));break;case"Backspace":if(O&&!z&&me===""&&pe.length>0){const Re=Z===-1?pe.length-1:Z,Je=pe.slice();Je.splice(Re,1),Yn(ae,Je,"removeOption",{option:pe[Re]})}break;case"Delete":if(O&&!z&&me===""&&pe.length>0&&Z!==-1){const Re=Z,Je=pe.slice();Je.splice(Re,1),Yn(ae,Je,"removeOption",{option:pe[Re]})}break}},Qn=ce=>{De(!0),j&&!Y.current&&qn(ce)},ma=ce=>{if(t(Q)){W.current.focus();return}De(!1),ee.current=!0,Y.current=!1,i&&ye.current!==-1&&Ee?cr(ce,Oe[ye.current],"blur"):i&&b&&me!==""?cr(ce,me,"blur","freeSolo"):a&&X(ce,pe,"blur"),_n(ce,"blur")},kl=ce=>{const ae=ce.target.value;me!==ae&&(Ae(ae),ge(!1),$&&$(ce,ae,"input")),ae===""?!d&&!O&&Yn(ce,null,"clear"):qn(ce)},Nu=ce=>{const ae=Number(ce.currentTarget.getAttribute("data-option-index"));ye.current!==ae&&fe({event:ce,index:ae,reason:"mouse"})},Bu=ce=>{fe({event:ce,index:Number(ce.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Tr.current=!0},Sy=ce=>{const ae=Number(ce.currentTarget.getAttribute("data-option-index"));cr(ce,Oe[ae],"selectOption"),Tr.current=!1},Py=ce=>ae=>{const Re=pe.slice();Re.splice(ce,1),Yn(ae,Re,"removeOption",{option:pe[ce]})},wp=ce=>{te?_n(ce,"toggleInput"):qn(ce)},gP=ce=>{ce.currentTarget.contains(ce.target)&&ce.target.getAttribute("id")!==H&&ce.preventDefault()},zu=ce=>{ce.currentTarget.contains(ce.target)&&(W.current.focus(),V&&ee.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),ee.current=!1)},An=ce=>{!h&&(me===""||!te)&&wp(ce)};let dn=b&&me.length>0;dn=dn||(O?pe.length>0:pe!==null);let Si=Oe;return I&&(Si=Oe.reduce((ce,ae,Re)=>{const Je=I(ae);return ce.length>0&&ce[ce.length-1].group===Je?ce[ce.length-1].options.push(ae):ce.push({key:Re,index:Re,group:Je,options:[ae]}),ce},[])),h&&Ve&&ma(),{getRootProps:(ce={})=>({"aria-owns":we?`${H}-listbox`:null,...ce,onKeyDown:qe(ce),onMouseDown:gP,onClick:zu}),getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:me,onBlur:ma,onFocus:Qn,onChange:kl,onMouseDown:An,"aria-activedescendant":Ee?"":null,"aria-autocomplete":r?"both":"list","aria-controls":we?`${H}-listbox`:void 0,"aria-expanded":we,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:xi}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wp}),getTagProps:({index:ce})=>({key:ce,"data-tag-index":ce,tabIndex:-1,...!z&&{onDelete:Py(ce)}}),getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:Kn,onMouseDown:ce=>{ce.preventDefault()}}),getOptionProps:({index:ce,option:ae})=>{const Re=(O?pe:[pe]).some(tt=>tt!=null&&R(ae,tt)),Je=g?g(ae):!1;return{key:(x==null?void 0:x(ae))??G(ae),tabIndex:-1,role:"option",id:`${H}-option-${ce}`,onMouseMove:Nu,onClick:Sy,onTouchStart:Bu,"data-option-index":ce,"aria-disabled":Je,"aria-selected":Re}},id:H,inputValue:me,value:pe,dirty:dn,expanded:Ee&&U,popupOpen:Ee,focused:Ve||Z!==-1,anchorEl:U,setAnchorEl:J,focusedTag:Z,groupedOptions:Si}}var Cr="top",bo="bottom",wo="right",xr="left",d1="auto",ip=[Cr,bo,wo,xr],Jc="start",Mf="end",Eee="clippingParents",eF="viewport",od="popper",Oee="reference",TE=ip.reduce(function(e,t){return e.concat([t+"-"+Jc,t+"-"+Mf])},[]),tF=[].concat(ip,[d1]).reduce(function(e,t){return e.concat([t,t+"-"+Jc,t+"-"+Mf])},[]),Mee="beforeRead",Ree="read",$ee="afterRead",_ee="beforeMain",Aee="main",Dee="afterMain",Lee="beforeWrite",Fee="write",jee="afterWrite",Nee=[Mee,Ree,$ee,_ee,Aee,Dee,Lee,Fee,jee];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function Gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=Gr(e).Element;return e instanceof t||e instanceof Element}function mo(e){var t=Gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function f1(e){if(typeof ShadowRoot>"u")return!1;var t=Gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!mo(i)||!vi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function zee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!mo(o)||!vi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Hee={name:"applyStyles",enabled:!0,phase:"write",fn:Bee,effect:zee,requires:["computeStyles"]};function ci(e){return e.split("-")[0]}var Ha=Math.max,Um=Math.min,Zc=Math.round;function Kw(){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 nF(){return!/^((?!chrome|android).)*safari/i.test(Kw())}function eu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&mo(e)&&(o=e.offsetWidth>0&&Zc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Zc(r.height)/e.offsetHeight||1);var s=nl(e)?Gr(e):window,a=s.visualViewport,l=!nF()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function p1(e){var t=eu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return Gr(e).getComputedStyle(e)}function Vee(e){return["table","td","th"].indexOf(vi(e))>=0}function ca(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function jv(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(f1(e)?e.host:null)||ca(e)}function EE(e){return!mo(e)||ts(e).position==="fixed"?null:e.offsetParent}function Uee(e){var t=/firefox/i.test(Kw()),n=/Trident/i.test(Kw());if(n&&mo(e)){var r=ts(e);if(r.position==="fixed")return null}var o=jv(e);for(f1(o)&&(o=o.host);mo(o)&&["html","body"].indexOf(vi(o))<0;){var i=ts(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function sp(e){for(var t=Gr(e),n=EE(e);n&&Vee(n)&&ts(n).position==="static";)n=EE(n);return n&&(vi(n)==="html"||vi(n)==="body"&&ts(n).position==="static")?t:n||Uee(e)||t}function h1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hd(e,t,n){return Ha(e,Um(t,n))}function Gee(e,t,n){var r=Hd(e,t,n);return r>n?n:r}function oF(){return{top:0,right:0,bottom:0,left:0}}function iF(e){return Object.assign({},oF(),e)}function sF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iF(typeof t!="number"?t:sF(t,ip))};function Kee(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ci(n.placement),l=h1(a),c=[xr,wo].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=Wee(o.padding,n),f=p1(i),h=l==="y"?Cr:xr,m=l==="y"?bo:wo,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],C=s[l]-n.rects.reference[l],w=sp(i),b=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,g=y/2-C/2,x=d[h],P=b-f[u]-d[m],I=b/2-f[u]/2+g,T=Hd(x,I,P),M=l;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-I,t)}}function qee(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||rF(t.elements.popper,o)&&(t.elements.arrow=o))}const Yee={name:"arrow",enabled:!0,phase:"main",fn:Kee,effect:qee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tu(e){return e.split("-")[1]}var Xee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Zc(n*o)/o||0,y:Zc(r*o)/o||0}}function OE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,y=m===void 0?0:m,C=typeof u=="function"?u({x:h,y}):{x:h,y};h=C.x,y=C.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),g=xr,x=Cr,P=window;if(c){var I=sp(n),T="clientHeight",M="clientWidth";if(I===Gr(n)&&(I=ca(n),ts(I).position!=="static"&&a==="absolute"&&(T="scrollHeight",M="scrollWidth")),I=I,o===Cr||(o===xr||o===wo)&&i===Mf){x=bo;var k=d&&I===P&&P.visualViewport?P.visualViewport.height:I[T];y-=k-r.height,y*=l?1:-1}if(o===xr||(o===Cr||o===bo)&&i===Mf){g=wo;var S=d&&I===P&&P.visualViewport?P.visualViewport.width:I[M];h-=S-r.width,h*=l?1:-1}}var R=Object.assign({position:a},c&&Xee),O=u===!0?Qee({x:h,y},Gr(n)):{x:h,y};if(h=O.x,y=O.y,l){var A;return Object.assign({},R,(A={},A[x]=b?"0":"",A[g]=w?"0":"",A.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",A))}return Object.assign({},R,(t={},t[x]=b?y+"px":"",t[g]=w?h+"px":"",t.transform="",t))}function Jee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:ci(t.placement),variation:tu(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,OE(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OE(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jee,data:{}};var th={passive:!0};function ete(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Gr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,th)}),a&&l.addEventListener("resize",n.update,th),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,th)}),a&&l.removeEventListener("resize",n.update,th)}}const tte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ete,data:{}};var nte={left:"right",right:"left",bottom:"top",top:"bottom"};function Fh(e){return e.replace(/left|right|bottom|top/g,function(t){return nte[t]})}var rte={start:"end",end:"start"};function ME(e){return e.replace(/start|end/g,function(t){return rte[t]})}function m1(e){var t=Gr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function g1(e){return eu(ca(e)).left+m1(e).scrollLeft}function ote(e,t){var n=Gr(e),r=ca(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=nF();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+g1(e),y:l}}function ite(e){var t,n=ca(e),r=m1(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ha(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ha(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+g1(e),l=-r.scrollTop;return ts(o||n).direction==="rtl"&&(a+=Ha(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function v1(e){var t=ts(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function aF(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:mo(e)&&v1(e)?e:aF(jv(e))}function Vd(e,t){var n;t===void 0&&(t=[]);var r=aF(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Gr(r),s=o?[i].concat(i.visualViewport||[],v1(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Vd(jv(s)))}function qw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ste(e,t){var n=eu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function RE(e,t,n){return t===eF?qw(ote(e,n)):nl(t)?ste(t,n):qw(ite(ca(e)))}function ate(e){var t=Vd(jv(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&mo(e)?sp(e):e;return nl(r)?t.filter(function(o){return nl(o)&&rF(o,r)&&vi(o)!=="body"}):[]}function lte(e,t,n,r){var o=t==="clippingParents"?ate(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=RE(e,c,r);return l.top=Ha(u.top,l.top),l.right=Um(u.right,l.right),l.bottom=Um(u.bottom,l.bottom),l.left=Ha(u.left,l.left),l},RE(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function lF(e){var t=e.reference,n=e.element,r=e.placement,o=r?ci(r):null,i=r?tu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Cr:l={x:s,y:t.y-n.height};break;case bo:l={x:s,y:t.y+t.height};break;case wo:l={x:t.x+t.width,y:a};break;case xr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?h1(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Jc:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Mf:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Rf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Eee:a,c=n.rootBoundary,u=c===void 0?eF:c,d=n.elementContext,f=d===void 0?od:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,C=y===void 0?0:y,w=iF(typeof C!="number"?C:sF(C,ip)),b=f===od?Oee:od,g=e.rects.popper,x=e.elements[m?b:f],P=lte(nl(x)?x:x.contextElement||ca(e.elements.popper),l,u,s),I=eu(e.elements.reference),T=lF({reference:I,element:g,strategy:"absolute",placement:o}),M=qw(Object.assign({},g,T)),k=f===od?M:I,S={top:P.top-k.top+w.top,bottom:k.bottom-P.bottom+w.bottom,left:P.left-k.left+w.left,right:k.right-P.right+w.right},R=e.modifiersData.offset;if(f===od&&R){var O=R[o];Object.keys(S).forEach(function(A){var D=[wo,bo].indexOf(A)>=0?1:-1,_=[Cr,bo].indexOf(A)>=0?"y":"x";S[A]+=O[_]*D})}return S}function cte(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?tF:l,u=tu(r),d=u?a?TE:TE.filter(function(m){return tu(m)===u}):ip,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,y){return m[y]=Rf(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[ci(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function ute(e){if(ci(e)===d1)return[];var t=Fh(e);return[ME(e),t,ME(t)]}function dte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,w=ci(C),b=w===C,g=l||(b||!m?[Fh(C)]:ute(C)),x=[C].concat(g).reduce(function(H,G){return H.concat(ci(G)===d1?cte(t,{placement:G,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):G)},[]),P=t.rects.reference,I=t.rects.popper,T=new Map,M=!0,k=x[0],S=0;S=0,_=D?"width":"height",$=Rf(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),L=D?A?wo:xr:A?bo:Cr;P[_]>I[_]&&(L=Fh(L));var F=Fh(L),j=[];if(i&&j.push($[O]<=0),a&&j.push($[L]<=0,$[F]<=0),j.every(function(H){return H})){k=R,M=!1;break}T.set(R,j)}if(M)for(var N=m?3:1,z=function(G){var Y=x.find(function(ee){var W=T.get(ee);if(W)return W.slice(0,G).every(function(Q){return Q})});if(Y)return k=Y,"break"},V=N;V>0;V--){var K=z(V);if(K==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const fte={name:"flip",enabled:!0,phase:"main",fn:dte,requiresIfExists:["offset"],data:{_skip:!1}};function $E(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _E(e){return[Cr,wo,bo,xr].some(function(t){return e[t]>=0})}function pte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Rf(t,{elementContext:"reference"}),a=Rf(t,{altBoundary:!0}),l=$E(s,r),c=$E(a,o,i),u=_E(l),d=_E(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pte};function mte(e,t,n){var r=ci(e),o=[xr,Cr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[xr,wo].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function gte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=tF.reduce(function(u,d){return u[d]=mte(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const vte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gte};function yte(e){var t=e.state,n=e.name;t.modifiersData[n]=lF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bte={name:"popperOffsets",enabled:!0,phase:"read",fn:yte,data:{}};function wte(e){return e==="x"?"y":"x"}function Cte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,C=Rf(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=ci(t.placement),b=tu(t.placement),g=!b,x=h1(w),P=wte(x),I=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,k=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,S=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(I){if(i){var A,D=x==="y"?Cr:xr,_=x==="y"?bo:wo,$=x==="y"?"height":"width",L=I[x],F=L+C[D],j=L-C[_],N=h?-M[$]/2:0,z=b===Jc?T[$]:M[$],V=b===Jc?-M[$]:-T[$],K=t.elements.arrow,H=h&&K?p1(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oF(),Y=G[D],ee=G[_],W=Hd(0,T[$],H[$]),Q=g?T[$]/2-N-W-Y-S.mainAxis:z-W-Y-S.mainAxis,U=g?-T[$]/2+N+W+ee+S.mainAxis:V+W+ee+S.mainAxis,J=t.elements.arrow&&sp(t.elements.arrow),Z=J?x==="y"?J.clientTop||0:J.clientLeft||0:0,le=(A=R==null?void 0:R[x])!=null?A:0,he=L+Q-le-Z,ye=L+U-le,pe=Hd(h?Um(F,he):F,L,h?Ha(j,ye):j);I[x]=pe,O[x]=pe-L}if(a){var Fe,me=x==="x"?Cr:xr,Ae=x==="x"?bo:wo,Ve=I[P],De=P==="y"?"height":"width",X=Ve+C[me],te=Ve-C[Ae],oe=[Cr,xr].indexOf(w)!==-1,de=(Fe=R==null?void 0:R[P])!=null?Fe:0,ge=oe?X:Ve-T[De]-M[De]-de+S.altAxis,Se=oe?Ve+T[De]+M[De]-de-S.altAxis:te,Ee=h&&oe?Gee(ge,Ve,Se):Hd(h?ge:X,Ve,h?Se:te);I[P]=Ee,O[P]=Ee-Ve}t.modifiersData[r]=O}}const xte={name:"preventOverflow",enabled:!0,phase:"main",fn:Cte,requiresIfExists:["offset"]};function Ste(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pte(e){return e===Gr(e)||!mo(e)?m1(e):Ste(e)}function Ite(e){var t=e.getBoundingClientRect(),n=Zc(t.width)/e.offsetWidth||1,r=Zc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kte(e,t,n){n===void 0&&(n=!1);var r=mo(t),o=mo(t)&&Ite(t),i=ca(t),s=eu(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vi(t)!=="body"||v1(i))&&(a=Pte(t)),mo(t)?(l=eu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=g1(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Tte(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Ete(e){var t=Tte(e);return Nee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ote(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mte(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var AE={placement:"bottom",modifiers:[],strategy:"absolute"};function DE(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return ve({root:["root"]},Ate,t)},jte={},Nte=p.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:m,ownerState:y,...C}=t,w=p.useRef(null),b=ht(w,n),g=p.useRef(null),x=ht(g,d),P=p.useRef(x);pt(()=>{P.current=x},[x]),p.useImperativeHandle(d,()=>g.current,[]);const I=Dte(c,i),[T,M]=p.useState(I),[k,S]=p.useState(Yw(r));p.useEffect(()=>{g.current&&g.current.forceUpdate()}),p.useEffect(()=>{r&&S(Yw(r))},[r]),pt(()=>{if(!k||!l)return;const _=F=>{M(F.placement)};let $=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{_(F)}}];a!=null&&($=$.concat(a)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const L=_te(k,w.current,{placement:I,...u,modifiers:$});return P.current(L),()=>{L.destroy(),P.current(null)}},[k,s,a,l,u,I]);const R={placement:T};m!==null&&(R.TransitionProps=m);const O=Fte(t),A=h.root??"div",D=bf({elementType:A,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:O.root});return v.jsx(A,{...D,children:typeof o=="function"?o(R):o})}),Bte=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=jte,popperRef:h,style:m,transition:y=!1,slotProps:C={},slots:w={},...b}=t,[g,x]=p.useState(!0),P=()=>{x(!1)},I=()=>{x(!0)};if(!l&&!u&&(!y||g))return null;let T;if(i)T=i;else if(r){const S=Yw(r);T=S&&Lte(S)?Wt(S).body:Wt(null).body}const M=!u&&l&&(!y||g)?"none":void 0,k=y?{in:u,onEnter:P,onExited:I}:void 0;return v.jsx(F_,{disablePortal:a,container:T,children:v.jsx(Nte,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:y?!g:u,placement:d,popperOptions:f,popperRef:h,slotProps:C,slots:w,...b,style:{position:"fixed",top:0,left:0,display:M,...m},TransitionProps:k,children:o})})}),zte=ne(Bte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gl=p.forwardRef(function(t,n){const r=Ir(),o=He({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:m,popperOptions:y,popperRef:C,transition:w,slots:b,slotProps:g,...x}=o,P=(b==null?void 0:b.root)??(a==null?void 0:a.Root),I={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:m,popperOptions:y,popperRef:C,transition:w,...x};return v.jsx(zte,{as:s,direction:r?"rtl":"ltr",slots:{root:P},slotProps:g??l,...I,ref:n})});function Hte(e){return Ne("MuiListSubheader",e)}je("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Vte=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${re(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ve(s,Hte,t)},Ute=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${re(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(_e(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Xw=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:i,component:s,disableGutters:a,disableSticky:l,inset:c},f=Vte(d);return v.jsx(Ute,{as:s,className:ie(f.root,o),ref:n,ownerState:d,...u})});Xw&&(Xw.muiSkipListHighlight=!0);const Gte=Te(v.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 Wte(e){return Ne("MuiChip",e)}const ot=je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Kte=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${re(r)}`,`color${re(o)}`,a&&"clickable",a&&`clickableColor${re(o)}`,s&&"deletable",s&&`deletableColor${re(o)}`,`${l}${re(o)}`],label:["label",`label${re(r)}`],avatar:["avatar",`avatar${re(r)}`,`avatarColor${re(o)}`],icon:["icon",`icon${re(r)}`,`iconColor${re(i)}`],deleteIcon:["deleteIcon",`deleteIcon${re(r)}`,`deleteIconColor${re(o)}`,`deleteIcon${re(l)}Color${re(o)}`]};return ve(c,Wte,t)},qte=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${ot.avatar}`]:t.avatar},{[`& .${ot.avatar}`]:t[`avatar${re(a)}`]},{[`& .${ot.avatar}`]:t[`avatarColor${re(r)}`]},{[`& .${ot.icon}`]:t.icon},{[`& .${ot.icon}`]:t[`icon${re(a)}`]},{[`& .${ot.icon}`]:t[`iconColor${re(o)}`]},{[`& .${ot.deleteIcon}`]:t.deleteIcon},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${re(a)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIconColor${re(r)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${re(l)}Color${re(r)}`]},t.root,t[`size${re(a)}`],t[`color${re(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${re(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${re(r)}`],t[l],t[`${l}${re(r)}`]]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ot.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ot.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ot.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ot.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ot.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ot.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ot.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:We(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)`:We(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ot.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ot.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:We(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ot.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ot.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ut(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ot.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ut(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ot.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ot.avatar}`]:{marginLeft:4},[`& .${ot.avatarSmall}`]:{marginLeft:2},[`& .${ot.icon}`]:{marginLeft:4},[`& .${ot.iconSmall}`]:{marginLeft:2},[`& .${ot.deleteIcon}`]:{marginRight:5},[`& .${ot.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:We(e.palette[n].main,.7)}`,[`&.${ot.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:We(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:We(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Yte=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function LE(e){return e.key==="Backspace"||e.key==="Delete"}const Ni=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:m,onKeyDown:y,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:g,skipFocusWhenDisabled:x=!1,...P}=r,I=p.useRef(null),T=ht(I,n),M=j=>{j.stopPropagation(),m&&m(j)},k=j=>{j.currentTarget===j.target&&LE(j)&&j.preventDefault(),y&&y(j)},S=j=>{j.currentTarget===j.target&&m&&LE(j)&&m(j),C&&C(j)},R=s!==!1&&h?!0:s,O=R||m?Wc:l||"div",A={...r,component:O,disabled:u,size:w,color:a,iconColor:p.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:R,variant:b},D=Kte(A),_=O===Wc?{component:l||"div",focusVisibleClassName:D.focusVisible,...m&&{disableRipple:!0}}:{};let $=null;m&&($=c&&p.isValidElement(c)?p.cloneElement(c,{className:ie(c.props.className,D.deleteIcon),onClick:M}):v.jsx(Gte,{className:ie(D.deleteIcon),onClick:M}));let L=null;o&&p.isValidElement(o)&&(L=p.cloneElement(o,{className:ie(D.avatar,o.props.className)}));let F=null;return d&&p.isValidElement(d)&&(F=p.cloneElement(d,{className:ie(D.icon,d.props.className)})),v.jsxs(qte,{as:O,className:ie(D.root,i),disabled:R&&u?!0:void 0,onClick:h,onKeyDown:k,onKeyUp:S,ref:T,tabIndex:x&&u?-1:g,ownerState:A,..._,...P,children:[L||F,v.jsx(Yte,{className:ie(D.label),ownerState:A,children:f}),$]})});function nh(e){return parseInt(e,10)||0}const Xte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Qte(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Jte=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=t,{current:c}=p.useRef(a!=null),u=p.useRef(null),d=ht(n,u),f=p.useRef(null),h=p.useRef(null),m=p.useCallback(()=>{const w=u.current,g=hi(w).getComputedStyle(w);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=g.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===` -`&&(x.value+=" ");const P=g.boxSizing,I=nh(g.paddingBottom)+nh(g.paddingTop),T=nh(g.borderBottomWidth)+nh(g.borderTopWidth),M=x.scrollHeight;x.value="x";const k=x.scrollHeight;let S=M;i&&(S=Math.max(Number(i)*k,S)),o&&(S=Math.min(Number(o)*k,S)),S=Math.max(S,k);const R=S+(P==="border-box"?I+T:0),O=Math.abs(S-M)<=1;return{outerHeightStyle:R,overflowing:O}},[o,i,t.placeholder]),y=p.useCallback(()=>{const w=m();if(Qte(w))return;const b=w.outerHeightStyle,g=u.current;f.current!==b&&(f.current=b,g.style.height=`${b}px`),g.style.overflow=w.overflowing?"hidden":""},[m]);pt(()=>{const w=()=>{y()};let b;const g=b_(w),x=u.current,P=hi(x);P.addEventListener("resize",g);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(w),I.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),P.removeEventListener("resize",g),I&&I.disconnect()}},[m,y]),pt(()=>{y()});const C=w=>{c||y(),r&&r(w)};return v.jsxs(p.Fragment,{children:[v.jsx("textarea",{value:a,onChange:C,ref:d,rows:i,style:s,...l}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...Xte.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function vl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function FE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Gm(e,t=!1){return e&&(FE(e.value)&&e.value!==""||t&&FE(e.defaultValue)&&e.defaultValue!=="")}function Zte(e){return e.startAdornment}function ene(e){return Ne("MuiInputBase",e)}const Rr=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var jE;const Nv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${re(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Bv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},tne=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:h,type:m}=e,y={root:["root",`color${re(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${re(f)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ve(y,ene,t)},zv=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nv})(_e(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Hv=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Bv})(_e(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Rr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Rr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),NE=F6({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Tu=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:m,error:y,fullWidth:C=!1,id:w,inputComponent:b="input",inputProps:g={},inputRef:x,margin:P,maxRows:I,minRows:T,multiline:M=!1,name:k,onBlur:S,onChange:R,onClick:O,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:$,readOnly:L,renderSuffix:F,rows:j,size:N,slotProps:z={},slots:V={},startAdornment:K,type:H="text",value:G,...Y}=r,ee=g.value!=null?g.value:G,{current:W}=p.useRef(ee!=null),Q=p.useRef(),U=p.useCallback(we=>{},[]),J=ht(Q,x,g.ref,U),[Z,le]=p.useState(!1),he=ss(),ye=vl({props:r,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=he?he.focused:Z,p.useEffect(()=>{!he&&f&&Z&&(le(!1),S&&S())},[he,f,Z,S]);const pe=he&&he.onFilled,Fe=he&&he.onEmpty,me=p.useCallback(we=>{Gm(we)?pe&&pe():Fe&&Fe()},[pe,Fe]);pt(()=>{W&&me({value:ee})},[ee,me,W]);const Ae=we=>{A&&A(we),g.onFocus&&g.onFocus(we),he&&he.onFocus?he.onFocus(we):le(!0)},Ve=we=>{S&&S(we),g.onBlur&&g.onBlur(we),he&&he.onBlur?he.onBlur(we):le(!1)},De=(we,...Le)=>{if(!W){const lt=we.target||Q.current;if(lt==null)throw new Error(Qi(1));me({value:lt.value})}g.onChange&&g.onChange(we,...Le),R&&R(we,...Le)};p.useEffect(()=>{me(Q.current)},[]);const X=we=>{Q.current&&we.currentTarget===we.target&&Q.current.focus(),O&&O(we)};let te=b,oe=g;M&&te==="input"&&(j?oe={type:void 0,minRows:j,maxRows:j,...oe}:oe={type:void 0,maxRows:I,minRows:T,...oe},te=Jte);const de=we=>{me(we.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};p.useEffect(()=>{he&&he.setAdornedStart(!!K)},[he,K]);const ge={...r,color:ye.color||"primary",disabled:ye.disabled,endAdornment:m,error:ye.error,focused:ye.focused,formControl:he,fullWidth:C,hiddenLabel:ye.hiddenLabel,multiline:M,size:ye.size,startAdornment:K,type:H},Se=tne(ge),Ee=V.root||c.Root||zv,Oe=z.root||u.root||{},Ce=V.input||c.Input||Hv;return oe={...oe,...z.input??u.input},v.jsxs(p.Fragment,{children:[!h&&typeof NE=="function"&&(jE||(jE=v.jsx(NE,{}))),v.jsxs(Ee,{...Oe,ref:n,onClick:X,...Y,...!Im(Ee)&&{ownerState:{...ge,...Oe.ownerState}},className:ie(Se.root,Oe.className,a,L&&"MuiInputBase-readOnly"),children:[K,v.jsx(Pv.Provider,{value:null,children:v.jsx(Ce,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:ye.disabled,id:w,onAnimationStart:de,name:k,placeholder:$,readOnly:L,required:ye.required,rows:j,value:ee,onKeyDown:D,onKeyUp:_,type:H,...oe,...!Im(Ce)&&{as:te,ownerState:{...ge,...oe.ownerState}},ref:J,className:ie(Se.input,oe.className,L&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:De,onFocus:Ae})}),m,F?F({...ye,startAdornment:K}):null]})]})});function nne(e){return Ne("MuiInput",e)}const Ms={...Rr,...je("MuiInput",["root","underline","input"])};function rne(e){return Ne("MuiOutlinedInput",e)}const Zr={...Rr,...je("MuiOutlinedInput",["root","notchedOutline","input"])};function one(e){return Ne("MuiFilledInput",e)}const $r={...Rr,...je("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},cF=Te(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ine(e){return Ne("MuiAutocomplete",e)}const Ze=je("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var BE,zE;const sne=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${re(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ve(d,ine,t)},ane=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Ze.tag}`]:t.tag},{[`& .${Ze.tag}`]:t[`tagSize${re(a)}`]},{[`& .${Ze.inputRoot}`]:t.inputRoot},{[`& .${Ze.input}`]:t.input},{[`& .${Ze.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Ze.focused} .${Ze.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ze.clearIndicator}`]:{visibility:"visible"}},[`& .${Ze.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ze.inputRoot}`]:{[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:30},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:56},[`& .${Ze.input}`]:{width:0,minWidth:30}},[`& .${Ms.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ms.root}.${Rr.sizeSmall}`]:{[`& .${Ms.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Zr.root}`]:{padding:9,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${Ze.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${Zr.root}.${Rr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ze.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${$r.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${$r.input}`]:{padding:"7px 4px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${$r.root}.${Rr.sizeSmall}`]:{paddingBottom:1,[`& .${$r.input}`]:{padding:"2.5px 4px"}},[`& .${Rr.hiddenLabel}`]:{paddingTop:8},[`& .${$r.root}.${Rr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ze.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${$r.root}.${Rr.hiddenLabel}.${Rr.sizeSmall}`]:{[`& .${Ze.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ze.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ze.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ze.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ze.inputRoot}`]:{flexWrap:"wrap"}}}]}),lne=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),cne=ne(an,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),une=ne(an,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),dne=ne(gl,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ze.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(_e(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),fne=ne(Pr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(_e(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),pne=ne("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),hne=ne("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),mne=ne("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(_e(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ze.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ze.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ze.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),gne=ne(Xw,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(_e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),vne=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ze.option}`]:{paddingLeft:24}}),uF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=BE||(BE=v.jsx(See,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:h="Clear",closeText:m="Close",componentsProps:y,defaultValue:C=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:b=!1,disabled:g=!1,disabledItemsFocusable:x=!1,disableListWrap:P=!1,disablePortal:I=!1,filterOptions:T,filterSelectedOptions:M=!1,forcePopupIcon:k="auto",freeSolo:S=!1,fullWidth:R=!1,getLimitTagsText:O=ct=>`+${ct}`,getOptionDisabled:A,getOptionKey:D,getOptionLabel:_,isOptionEqualToValue:$,groupBy:L,handleHomeEndKeys:F=!r.freeSolo,id:j,includeInputInList:N=!1,inputValue:z,limitTags:V=-1,ListboxComponent:K,ListboxProps:H,loading:G=!1,loadingText:Y="Loading…",multiple:ee=!1,noOptionsText:W="No options",onChange:Q,onClose:U,onHighlightChange:J,onInputChange:Z,onOpen:le,open:he,openOnFocus:ye=!1,openText:pe="Open",options:Fe,PaperComponent:me,PopperComponent:Ae,popupIcon:Ve=zE||(zE=v.jsx(cF,{})),readOnly:De=!1,renderGroup:X,renderInput:te,renderOption:oe,renderTags:de,selectOnFocus:ge=!r.freeSolo,size:Se="medium",slots:Ee={},slotProps:Oe={},value:Ce,...we}=r,{getRootProps:Le,getInputProps:lt,getInputLabelProps:fe,getPopupIndicatorProps:ke,getClearProps:Ke,getTagProps:mt,getListboxProps:Kn,getOptionProps:qn,value:_n,dirty:Yn,expanded:Tr,id:cr,popupOpen:Xn,focused:Yr,focusedTag:xi,anchorEl:qe,setAnchorEl:Qn,inputValue:ma,groupedOptions:kl}=Tee({...r,componentName:"Autocomplete"}),Nu=!w&&!g&&Yn&&!De,Bu=(!S||k===!0)&&k!==!1,{onMouseDown:Sy}=lt(),{ref:Py,...wp}=Kn(),zu=_||(ct=>ct.label??ct),An={...r,disablePortal:I,expanded:Tr,focused:Yr,fullWidth:R,getOptionLabel:zu,hasClearIcon:Nu,hasPopupIcon:Bu,inputFocused:xi===-1,popupOpen:Xn,size:Se},dn=sne(An),Si={slots:{paper:me,popper:Ae,...Ee},slotProps:{chip:l,listbox:H,...y,...Oe}},[ce,ae]=hn("listbox",{elementType:mne,externalForwardedProps:Si,ownerState:An,className:dn.listbox,additionalProps:wp,ref:Py}),[Re,Je]=hn("paper",{elementType:Pr,externalForwardedProps:Si,ownerState:An,className:dn.paper}),[tt,qt]=hn("popper",{elementType:gl,externalForwardedProps:Si,ownerState:An,className:dn.popper,additionalProps:{disablePortal:I,style:{width:qe?qe.clientWidth:null},role:"presentation",anchorEl:qe,open:Xn}});let gt;if(ee&&_n.length>0){const ct=Go=>({className:dn.tag,disabled:g,...mt(Go)});de?gt=de(_n,ct,An):gt=_n.map((Go,ds)=>{const{key:Hu,...MN}=ct({index:ds});return v.jsx(Ni,{label:zu(Go),size:Se,...MN,...Si.slotProps.chip},Hu)})}if(V>-1&&Array.isArray(gt)){const ct=gt.length-V;!Yr&&ct>0&&(gt=gt.splice(0,V),gt.push(v.jsx("span",{className:dn.tag,children:O(ct)},gt.length)))}const Cp=X||(ct=>v.jsxs("li",{children:[v.jsx(gne,{className:dn.groupLabel,ownerState:An,component:"div",children:ct.group}),v.jsx(vne,{className:dn.groupUl,ownerState:An,children:ct.children})]},ct.key)),ON=oe||((ct,Go)=>{const{key:ds,...Hu}=ct;return v.jsx("li",{...Hu,children:zu(Go)},ds)}),vP=(ct,Go)=>{const ds=qn({option:ct,index:Go});return ON({...ds,className:dn.option},ct,{selected:ds["aria-selected"],index:Go,inputValue:ma},An)},xp=Si.slotProps.clearIndicator,Sp=Si.slotProps.popupIndicator,Iy=ct=>v.jsx(dne,{as:tt,...qt,children:v.jsx(fne,{as:Re,...Je,children:ct})});let Pp=null;return kl.length>0?Pp=Iy(v.jsx(ce,{as:K,...ae,children:kl.map((ct,Go)=>L?Cp({key:ct.key,group:ct.group,children:ct.options.map((ds,Hu)=>vP(ds,ct.index+Hu))}):vP(ct,Go))})):G&&kl.length===0?Pp=Iy(v.jsx(pne,{className:dn.loading,ownerState:An,children:Y})):kl.length===0&&!S&&!G&&(Pp=Iy(v.jsx(hne,{className:dn.noOptions,ownerState:An,role:"presentation",onMouseDown:ct=>{ct.preventDefault()},children:W}))),v.jsxs(p.Fragment,{children:[v.jsx(ane,{ref:n,className:ie(dn.root,c),ownerState:An,...Le(we),children:te({id:cr,disabled:g,fullWidth:!0,size:Se==="small"?"small":void 0,InputLabelProps:fe(),InputProps:{ref:Qn,className:dn.inputRoot,startAdornment:gt,onMouseDown:ct=>{ct.target===ct.currentTarget&&Sy(ct)},...(Nu||Bu)&&{endAdornment:v.jsxs(lne,{className:dn.endAdornment,ownerState:An,children:[Nu?v.jsx(cne,{...Ke(),"aria-label":h,title:h,ownerState:An,...xp,className:ie(dn.clearIndicator,xp==null?void 0:xp.className),children:u}):null,Bu?v.jsx(une,{...ke(),disabled:g,"aria-label":Xn?m:pe,title:Xn?m:pe,ownerState:An,...Sp,className:ie(dn.popupIndicator,Sp==null?void 0:Sp.className),children:Ve}):null]})}},inputProps:{className:dn.input,disabled:g,readOnly:De,...lt()}})}),qe?Pp:null]})});function yne(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Xx({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}function bne(e){return Ne("MuiBadge",e)}const hs=je("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ab=10,Db=4,wne=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${re(n.vertical)}${re(n.horizontal)}`,`anchorOrigin${re(n.vertical)}${re(n.horizontal)}${re(o)}`,`overlap${re(o)}`,t!=="default"&&`color${re(t)}`]};return ve(a,bne,s)},Cne=ne("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),xne=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${re(n.anchorOrigin.vertical)}${re(n.anchorOrigin.horizontal)}${re(n.overlap)}`],n.color!=="default"&&t[`color${re(n.color)}`],n.invisible&&t.invisible]}})(_e(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ab*2,lineHeight:1,padding:"0 6px",height:Ab*2,borderRadius:Ab,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Db,height:Db*2,minWidth:Db*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${hs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function HE(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const Sne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:s,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:h=!1,max:m=99,badgeContent:y,slots:C,slotProps:w,showZero:b=!1,variant:g="standard",...x}=r,{badgeContent:P,invisible:I,max:T,displayValue:M}=yne({max:m,invisible:h,badgeContent:y,showZero:b}),k=Xx({anchorOrigin:HE(o),color:f,overlap:d,variant:g,badgeContent:y}),S=I||P==null&&g!=="dot",{color:R=f,overlap:O=d,anchorOrigin:A,variant:D=g}=S?k:r,_=HE(A),$=D!=="dot"?M:void 0,L={...r,badgeContent:P,invisible:S,max:T,displayValue:$,showZero:b,anchorOrigin:_,color:R,overlap:O,variant:D},F=wne(L),j=(C==null?void 0:C.root)??l.Root??Cne,N=(C==null?void 0:C.badge)??l.Badge??xne,z=(w==null?void 0:w.root)??c.root,V=(w==null?void 0:w.badge)??c.badge,K=bf({elementType:j,externalSlotProps:z,externalForwardedProps:x,additionalProps:{ref:n,as:a},ownerState:L,className:ie(z==null?void 0:z.className,F.root,i)}),H=bf({elementType:N,externalSlotProps:V,ownerState:L,className:ie(F.badge,V==null?void 0:V.className)});return v.jsxs(j,{...K,children:[u,v.jsx(N,{...H,children:$})]})});function Pne(e){return Ne("MuiCard",e)}je("MuiCard",["root"]);const Ine=e=>{const{classes:t}=e;return ve({root:["root"]},Pne,t)},kne=ne(Pr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),dF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...s}=r,a={...r,raised:i},l=Ine(a);return v.jsx(kne,{className:ie(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a,...s})});function Tne(e){return Ne("MuiCardContent",e)}je("MuiCardContent",["root"]);const Ene=e=>{const{classes:t}=e;return ve({root:["root"]},Tne,t)},One=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),fF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=Ene(a);return v.jsx(One,{as:i,className:ie(l.root,o),ownerState:a,ref:n,...s})});function Mne(e){return Ne("MuiCardMedia",e)}je("MuiCardMedia",["root","media","img"]);const Rne=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ve({root:["root",n&&"media",r&&"img"]},Mne,t)},$ne=ne("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),_ne=["video","audio","picture","iframe","img"],Ane=["picture","img"],Dne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:c,...u}=r,d=_ne.includes(s),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,h={...r,component:s,isMediaComponent:d,isImageComponent:Ane.includes(s)},m=Rne(h);return v.jsx($ne,{className:ie(m.root,i),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:h,src:d?a||l:void 0,...u,children:o})}),Lne=Te(v.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"),Fne=Te(v.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"),jne=Te(v.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 Nne(e){return Ne("MuiCheckbox",e)}const Lb=je("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bne=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${re(r)}`,`size${re(o)}`]},s=ve(i,Nne,t);return{...t,...s}},zne=ne(z_,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${re(n.size)}`],n.color!=="default"&&t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{[`&.${Lb.checked}, &.${Lb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Lb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Hne=v.jsx(Fne,{}),Vne=v.jsx(Lne,{}),Une=v.jsx(jne,{}),Gne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Hne,color:i="primary",icon:s=Vne,indeterminate:a=!1,indeterminateIcon:l=Une,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...h}=r,m=a?l:s,y=a?l:o,C={...r,disableRipple:d,color:i,indeterminate:a,size:u},w=Bne(C);return v.jsx(zne,{type:"checkbox",inputProps:{"data-indeterminate":a,...c},icon:p.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:p.cloneElement(y,{fontSize:y.props.fontSize??u}),ownerState:C,ref:n,className:ie(w.root,f),disableRipple:d,...h,classes:w})});function Wne(e){return Ne("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ms=44,Qw=bi` + */const QL="storage";function hee(e,t,n){return e=kr(e),aee(e,t,n)}function mee(e){return e=kr(e),lee(e)}function gee(e,t){return e=kr(e),fee(e,t)}function vee(e=GS(),t){e=kr(e);const r=ml(e,QL).getImmediate({identifier:t}),o=mq("storage");return o&&yee(r,...o),r}function yee(e,t,n,r={}){pee(e,t,n,r)}function bee(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new f1(n,r,o,t,Iu)}function wee(){mi(new Ho(QL,bee,"PUBLIC").setMultipleInstances(!0)),ho(IE,kE,""),ho(IE,kE,"esm2017")}wee();const Cee={apiKey:"AIzaSyCGYw_TG3UpZOox8SlioWPcj6wej07onVA",authDomain:"fer-lab-da8b3.firebaseapp.com",projectId:"fer-lab-da8b3",storageBucket:"fer-lab-da8b3.appspot.com",messagingSenderId:"625078386291",appId:"1:625078386291:web:f1ce015a2d380b2cbbf406",measurementId:"G-642HVRZF5W"},JL=_D(Cee);rZ(JL);const Ab=jQ(),xee=vee(JL),La="https://firebasestorage.googleapis.com/v0/b/fer-lab-da8b3.appspot.com/o/default%2Fimage.jpg?alt=media&token=2f5d8998-9a0f-46e3-a770-ca62b25ac3ca",ZL=p.createContext(),See=({children:e})=>{const[t,n]=p.useState({}),r=()=>{const i=new Ri;KX(Ab,i)},o=()=>{TX(Ab)};return p.useEffect(()=>{const i=kX(Ab,s=>{n(s)});return()=>{i()}},[]),v.jsx(ZL.Provider,{value:{googleSignIn:r,logOut:o,user:t},children:e})},eF=()=>p.useContext(ZL),Pee=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function TE(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function tF(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=TE(u));const d=u?a.filter(f=>{let h=(i||c)(f);return n&&(h=h.toLowerCase()),t&&(h=TE(h)),o==="start"?h.startsWith(u):h.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const Iee=tF(),EE=5,kee=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Tee=[];function Eee(e){const{unstable_isActiveElementInListbox:t=kee,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?Tee:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:C=Iee,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:g,getOptionKey:x,getOptionLabel:P=ce=>ce.label??ce,groupBy:I,handleHomeEndKeys:T=!e.freeSolo,id:M,includeInputInList:k=!1,inputValue:S,isOptionEqualToValue:R=(ce,le)=>ce===le,multiple:O=!1,onChange:A,onClose:D,onHighlightChange:_,onInputChange:$,onOpen:L,open:F,openOnFocus:j=!1,options:N,readOnly:z=!1,selectOnFocus:V=!e.freeSolo,value:K}=e,H=yt(M);let G=P;G=ce=>{const le=P(ce);return typeof le!="string"?String(le):le};const q=p.useRef(!1),ee=p.useRef(!0),W=p.useRef(null),Z=p.useRef(null),[U,J]=p.useState(null),[X,ae]=p.useState(-1),fe=o?0:-1,me=p.useRef(fe),[he,je]=Ks({controlled:K,default:u,name:c}),[ge,Ae]=Ks({controlled:S,default:"",name:c,state:"inputValue"}),[Ve,De]=p.useState(!1),Q=p.useCallback((ce,le,Re)=>{if(!(O?he.length!(w&&(O?he:[he]).some(le=>le!==null&&R(ce,le)))),{inputValue:Se&&de?"":ge,getOptionLabel:G}):[],Ce=Jx({filteredOptions:Oe,value:he,inputValue:ge});p.useEffect(()=>{const ce=he!==Ce.value;Ve&&!ce||b&&!ce||Q(null,he,"reset")},[he,Q,Ve,Ce.value,b]);const we=te&&Oe.length>0&&!z,Le=nt(ce=>{ce===-1?W.current.focus():U.querySelector(`[data-tag-index="${ce}"]`).focus()});p.useEffect(()=>{O&&X>he.length-1&&(ae(-1),Le(-1))},[he,O,X,Le]);function lt(ce,le){if(!Z.current||ce<0||ce>=Oe.length)return-1;let Re=ce;for(;;){const Je=Z.current.querySelector(`[data-option-index="${Re}"]`),tt=m?!1:!Je||Je.disabled||Je.getAttribute("aria-disabled")==="true";if(Je&&Je.hasAttribute("tabindex")&&!tt)return Re;if(le==="next"?Re=(Re+1)%Oe.length:Re=(Re-1+Oe.length)%Oe.length,Re===ce)return-1}}const pe=nt(({event:ce,index:le,reason:Re="auto"})=>{if(me.current=le,le===-1?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${H}-option-${le}`),_&&_(ce,le===-1?null:Oe[le],Re),!Z.current)return;const Je=Z.current.querySelector(`[role="option"].${n}-focused`);Je&&(Je.classList.remove(`${n}-focused`),Je.classList.remove(`${n}-focusVisible`));let tt=Z.current;if(Z.current.getAttribute("role")!=="listbox"&&(tt=Z.current.parentElement.querySelector('[role="listbox"]')),!tt)return;if(le===-1){tt.scrollTop=0;return}const qt=Z.current.querySelector(`[data-option-index="${le}"]`);if(qt&&(qt.classList.add(`${n}-focused`),Re==="keyboard"&&qt.classList.add(`${n}-focusVisible`),tt.scrollHeight>tt.clientHeight&&Re!=="mouse"&&Re!=="touch")){const vt=qt,Eo=tt.clientHeight+tt.scrollTop,Cp=vt.offsetTop+vt.offsetHeight;Cp>Eo?tt.scrollTop=Cp-tt.clientHeight:vt.offsetTop-vt.offsetHeight*(I?1.3:0){if(!Ee)return;const qt=lt((()=>{const vt=Oe.length-1;if(le==="reset")return fe;if(le==="start")return 0;if(le==="end")return vt;const Eo=me.current+le;return Eo<0?Eo===-1&&k?-1:y&&me.current!==-1||Math.abs(le)>1?0:vt:Eo>vt?Eo===vt+1&&k?-1:y||Math.abs(le)>1?vt:0:Eo})(),Re);if(pe({index:qt,reason:Je,event:ce}),r&&le!=="reset")if(qt===-1)W.current.value=ge;else{const vt=G(Oe[qt]);W.current.value=vt,vt.toLowerCase().indexOf(ge.toLowerCase())===0&&ge.length>0&&W.current.setSelectionRange(ge.length,vt.length)}}),Ke=()=>{const ce=(le,Re)=>{const Je=le?G(le):"",tt=Re?G(Re):"";return Je===tt};if(me.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==Oe.length&&Ce.inputValue===ge&&(O?he.length===Ce.value.length&&Ce.value.every((le,Re)=>G(he[Re])===G(le)):ce(Ce.value,he))){const le=Ce.filteredOptions[me.current];if(le)return Oe.findIndex(Re=>G(Re)===G(le))}return-1},gt=p.useCallback(()=>{if(!Ee)return;const ce=Ke();if(ce!==-1){me.current=ce;return}const le=O?he[0]:he;if(Oe.length===0||le==null){ke({diff:"reset"});return}if(Z.current){if(le!=null){const Re=Oe[me.current];if(O&&Re&&he.findIndex(tt=>R(Re,tt))!==-1)return;const Je=Oe.findIndex(tt=>R(tt,le));Je===-1?ke({diff:"reset"}):pe({index:Je});return}if(me.current>=Oe.length-1){pe({index:Oe.length-1});return}pe({index:me.current})}},[Oe.length,O?!1:he,w,ke,pe,Ee,ge,O]),Kn=nt(ce=>{xm(Z,ce),ce&>()});p.useEffect(()=>{gt()},[gt]);const qn=ce=>{te||(oe(!0),ve(!0),L&&L(ce))},An=(ce,le)=>{te&&(oe(!1),D&&D(ce,le))},Yn=(ce,le,Re,Je)=>{if(O){if(he.length===le.length&&he.every((tt,qt)=>tt===le[qt]))return}else if(he===le)return;A&&A(ce,le,Re,Je),je(le)},Tr=p.useRef(!1),cr=(ce,le,Re="selectOption",Je="options")=>{let tt=Re,qt=le;if(O){qt=Array.isArray(he)?he.slice():[];const vt=qt.findIndex(Eo=>R(le,Eo));vt===-1?qt.push(le):Je!=="freeSolo"&&(qt.splice(vt,1),tt="removeOption")}Q(ce,qt,tt),Yn(ce,qt,tt,{option:le}),!f&&(!ce||!ce.ctrlKey&&!ce.metaKey)&&An(ce,tt),(s===!0||s==="touch"&&Tr.current||s==="mouse"&&!Tr.current)&&W.current.blur()};function Xn(ce,le){if(ce===-1)return-1;let Re=ce;for(;;){if(le==="next"&&Re===he.length||le==="previous"&&Re===-1)return-1;const Je=U.querySelector(`[data-tag-index="${Re}"]`);if(!Je||!Je.hasAttribute("tabindex")||Je.disabled||Je.getAttribute("aria-disabled")==="true")Re+=le==="next"?1:-1;else return Re}}const Yr=(ce,le)=>{if(!O)return;ge===""&&An(ce,"toggleInput");let Re=X;X===-1?ge===""&&le==="previous"&&(Re=he.length-1):(Re+=le==="next"?1:-1,Re<0&&(Re=0),Re===he.length&&(Re=-1)),Re=Xn(Re,le),ae(Re),Le(Re)},xi=ce=>{q.current=!0,Ae(""),$&&$(ce,"","clear"),Yn(ce,O?[]:null,"clear")},qe=ce=>le=>{if(ce.onKeyDown&&ce.onKeyDown(le),!le.defaultMuiPrevented&&(X!==-1&&!["ArrowLeft","ArrowRight"].includes(le.key)&&(ae(-1),Le(-1)),le.which!==229))switch(le.key){case"Home":Ee&&T&&(le.preventDefault(),ke({diff:"start",direction:"next",reason:"keyboard",event:le}));break;case"End":Ee&&T&&(le.preventDefault(),ke({diff:"end",direction:"previous",reason:"keyboard",event:le}));break;case"PageUp":le.preventDefault(),ke({diff:-EE,direction:"previous",reason:"keyboard",event:le}),qn(le);break;case"PageDown":le.preventDefault(),ke({diff:EE,direction:"next",reason:"keyboard",event:le}),qn(le);break;case"ArrowDown":le.preventDefault(),ke({diff:1,direction:"next",reason:"keyboard",event:le}),qn(le);break;case"ArrowUp":le.preventDefault(),ke({diff:-1,direction:"previous",reason:"keyboard",event:le}),qn(le);break;case"ArrowLeft":Yr(le,"previous");break;case"ArrowRight":Yr(le,"next");break;case"Enter":if(me.current!==-1&&Ee){const Re=Oe[me.current],Je=g?g(Re):!1;if(le.preventDefault(),Je)return;cr(le,Re,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else b&&ge!==""&&Se===!1&&(O&&le.preventDefault(),cr(le,ge,"createOption","freeSolo"));break;case"Escape":Ee?(le.preventDefault(),le.stopPropagation(),An(le,"escape")):l&&(ge!==""||O&&he.length>0)&&(le.preventDefault(),le.stopPropagation(),xi(le));break;case"Backspace":if(O&&!z&&ge===""&&he.length>0){const Re=X===-1?he.length-1:X,Je=he.slice();Je.splice(Re,1),Yn(le,Je,"removeOption",{option:he[Re]})}break;case"Delete":if(O&&!z&&ge===""&&he.length>0&&X!==-1){const Re=X,Je=he.slice();Je.splice(Re,1),Yn(le,Je,"removeOption",{option:he[Re]})}break}},Qn=ce=>{De(!0),j&&!q.current&&qn(ce)},ga=ce=>{if(t(Z)){W.current.focus();return}De(!1),ee.current=!0,q.current=!1,i&&me.current!==-1&&Ee?cr(ce,Oe[me.current],"blur"):i&&b&&ge!==""?cr(ce,ge,"blur","freeSolo"):a&&Q(ce,he,"blur"),An(ce,"blur")},kl=ce=>{const le=ce.target.value;ge!==le&&(Ae(le),ve(!1),$&&$(ce,le,"input")),le===""?!d&&!O&&Yn(ce,null,"clear"):qn(ce)},Nu=ce=>{const le=Number(ce.currentTarget.getAttribute("data-option-index"));me.current!==le&&pe({event:ce,index:le,reason:"mouse"})},Bu=ce=>{pe({event:ce,index:Number(ce.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Tr.current=!0},Py=ce=>{const le=Number(ce.currentTarget.getAttribute("data-option-index"));cr(ce,Oe[le],"selectOption"),Tr.current=!1},Iy=ce=>le=>{const Re=he.slice();Re.splice(ce,1),Yn(le,Re,"removeOption",{option:he[ce]})},wp=ce=>{te?An(ce,"toggleInput"):qn(ce)},yP=ce=>{ce.currentTarget.contains(ce.target)&&ce.target.getAttribute("id")!==H&&ce.preventDefault()},zu=ce=>{ce.currentTarget.contains(ce.target)&&(W.current.focus(),V&&ee.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),ee.current=!1)},Dn=ce=>{!h&&(ge===""||!te)&&wp(ce)};let dn=b&&ge.length>0;dn=dn||(O?he.length>0:he!==null);let Si=Oe;return I&&(Si=Oe.reduce((ce,le,Re)=>{const Je=I(le);return ce.length>0&&ce[ce.length-1].group===Je?ce[ce.length-1].options.push(le):ce.push({key:Re,index:Re,group:Je,options:[le]}),ce},[])),h&&Ve&&ga(),{getRootProps:(ce={})=>({"aria-owns":we?`${H}-listbox`:null,...ce,onKeyDown:qe(ce),onMouseDown:yP,onClick:zu}),getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:ge,onBlur:ga,onFocus:Qn,onChange:kl,onMouseDown:Dn,"aria-activedescendant":Ee?"":null,"aria-autocomplete":r?"both":"list","aria-controls":we?`${H}-listbox`:void 0,"aria-expanded":we,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:xi}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wp}),getTagProps:({index:ce})=>({key:ce,"data-tag-index":ce,tabIndex:-1,...!z&&{onDelete:Iy(ce)}}),getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:Kn,onMouseDown:ce=>{ce.preventDefault()}}),getOptionProps:({index:ce,option:le})=>{const Re=(O?he:[he]).some(tt=>tt!=null&&R(le,tt)),Je=g?g(le):!1;return{key:(x==null?void 0:x(le))??G(le),tabIndex:-1,role:"option",id:`${H}-option-${ce}`,onMouseMove:Nu,onClick:Py,onTouchStart:Bu,"data-option-index":ce,"aria-disabled":Je,"aria-selected":Re}},id:H,inputValue:ge,value:he,dirty:dn,expanded:Ee&&U,popupOpen:Ee,focused:Ve||X!==-1,anchorEl:U,setAnchorEl:J,focusedTag:X,groupedOptions:Si}}var Cr="top",bo="bottom",wo="right",xr="left",p1="auto",ip=[Cr,bo,wo,xr],Jc="start",Mf="end",Oee="clippingParents",nF="viewport",od="popper",Mee="reference",OE=ip.reduce(function(e,t){return e.concat([t+"-"+Jc,t+"-"+Mf])},[]),rF=[].concat(ip,[p1]).reduce(function(e,t){return e.concat([t,t+"-"+Jc,t+"-"+Mf])},[]),Ree="beforeRead",$ee="read",_ee="afterRead",Aee="beforeMain",Dee="main",Lee="afterMain",Fee="beforeWrite",jee="write",Nee="afterWrite",Bee=[Ree,$ee,_ee,Aee,Dee,Lee,Fee,jee,Nee];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function Gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=Gr(e).Element;return e instanceof t||e instanceof Element}function mo(e){var t=Gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function h1(e){if(typeof ShadowRoot>"u")return!1;var t=Gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!mo(i)||!vi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Hee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!mo(o)||!vi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Vee={name:"applyStyles",enabled:!0,phase:"write",fn:zee,effect:Hee,requires:["computeStyles"]};function ci(e){return e.split("-")[0]}var Ha=Math.max,Gm=Math.min,Zc=Math.round;function qw(){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 oF(){return!/^((?!chrome|android).)*safari/i.test(qw())}function eu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&mo(e)&&(o=e.offsetWidth>0&&Zc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Zc(r.height)/e.offsetHeight||1);var s=nl(e)?Gr(e):window,a=s.visualViewport,l=!oF()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function m1(e){var t=eu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ns(e){return Gr(e).getComputedStyle(e)}function Uee(e){return["table","td","th"].indexOf(vi(e))>=0}function ua(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nv(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(h1(e)?e.host:null)||ua(e)}function ME(e){return!mo(e)||ns(e).position==="fixed"?null:e.offsetParent}function Gee(e){var t=/firefox/i.test(qw()),n=/Trident/i.test(qw());if(n&&mo(e)){var r=ns(e);if(r.position==="fixed")return null}var o=Nv(e);for(h1(o)&&(o=o.host);mo(o)&&["html","body"].indexOf(vi(o))<0;){var i=ns(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function sp(e){for(var t=Gr(e),n=ME(e);n&&Uee(n)&&ns(n).position==="static";)n=ME(n);return n&&(vi(n)==="html"||vi(n)==="body"&&ns(n).position==="static")?t:n||Gee(e)||t}function g1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hd(e,t,n){return Ha(e,Gm(t,n))}function Wee(e,t,n){var r=Hd(e,t,n);return r>n?n:r}function sF(){return{top:0,right:0,bottom:0,left:0}}function aF(e){return Object.assign({},sF(),e)}function lF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Kee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aF(typeof t!="number"?t:lF(t,ip))};function qee(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ci(n.placement),l=g1(a),c=[xr,wo].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=Kee(o.padding,n),f=m1(i),h=l==="y"?Cr:xr,m=l==="y"?bo:wo,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],C=s[l]-n.rects.reference[l],w=sp(i),b=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,g=y/2-C/2,x=d[h],P=b-f[u]-d[m],I=b/2-f[u]/2+g,T=Hd(x,I,P),M=l;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-I,t)}}function Yee(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||iF(t.elements.popper,o)&&(t.elements.arrow=o))}const Xee={name:"arrow",enabled:!0,phase:"main",fn:qee,effect:Yee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tu(e){return e.split("-")[1]}var Qee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Zc(n*o)/o||0,y:Zc(r*o)/o||0}}function RE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,y=m===void 0?0:m,C=typeof u=="function"?u({x:h,y}):{x:h,y};h=C.x,y=C.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),g=xr,x=Cr,P=window;if(c){var I=sp(n),T="clientHeight",M="clientWidth";if(I===Gr(n)&&(I=ua(n),ns(I).position!=="static"&&a==="absolute"&&(T="scrollHeight",M="scrollWidth")),I=I,o===Cr||(o===xr||o===wo)&&i===Mf){x=bo;var k=d&&I===P&&P.visualViewport?P.visualViewport.height:I[T];y-=k-r.height,y*=l?1:-1}if(o===xr||(o===Cr||o===bo)&&i===Mf){g=wo;var S=d&&I===P&&P.visualViewport?P.visualViewport.width:I[M];h-=S-r.width,h*=l?1:-1}}var R=Object.assign({position:a},c&&Qee),O=u===!0?Jee({x:h,y},Gr(n)):{x:h,y};if(h=O.x,y=O.y,l){var A;return Object.assign({},R,(A={},A[x]=b?"0":"",A[g]=w?"0":"",A.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",A))}return Object.assign({},R,(t={},t[x]=b?y+"px":"",t[g]=w?h+"px":"",t.transform="",t))}function Zee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:ci(t.placement),variation:tu(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,RE(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,RE(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ete={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zee,data:{}};var th={passive:!0};function tte(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Gr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,th)}),a&&l.addEventListener("resize",n.update,th),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,th)}),a&&l.removeEventListener("resize",n.update,th)}}const nte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tte,data:{}};var rte={left:"right",right:"left",bottom:"top",top:"bottom"};function Fh(e){return e.replace(/left|right|bottom|top/g,function(t){return rte[t]})}var ote={start:"end",end:"start"};function $E(e){return e.replace(/start|end/g,function(t){return ote[t]})}function v1(e){var t=Gr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function y1(e){return eu(ua(e)).left+v1(e).scrollLeft}function ite(e,t){var n=Gr(e),r=ua(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=oF();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+y1(e),y:l}}function ste(e){var t,n=ua(e),r=v1(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ha(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ha(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+y1(e),l=-r.scrollTop;return ns(o||n).direction==="rtl"&&(a+=Ha(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function b1(e){var t=ns(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cF(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:mo(e)&&b1(e)?e:cF(Nv(e))}function Vd(e,t){var n;t===void 0&&(t=[]);var r=cF(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Gr(r),s=o?[i].concat(i.visualViewport||[],b1(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Vd(Nv(s)))}function Yw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ate(e,t){var n=eu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _E(e,t,n){return t===nF?Yw(ite(e,n)):nl(t)?ate(t,n):Yw(ste(ua(e)))}function lte(e){var t=Vd(Nv(e)),n=["absolute","fixed"].indexOf(ns(e).position)>=0,r=n&&mo(e)?sp(e):e;return nl(r)?t.filter(function(o){return nl(o)&&iF(o,r)&&vi(o)!=="body"}):[]}function cte(e,t,n,r){var o=t==="clippingParents"?lte(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=_E(e,c,r);return l.top=Ha(u.top,l.top),l.right=Gm(u.right,l.right),l.bottom=Gm(u.bottom,l.bottom),l.left=Ha(u.left,l.left),l},_E(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uF(e){var t=e.reference,n=e.element,r=e.placement,o=r?ci(r):null,i=r?tu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Cr:l={x:s,y:t.y-n.height};break;case bo:l={x:s,y:t.y+t.height};break;case wo:l={x:t.x+t.width,y:a};break;case xr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?g1(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Jc:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Mf:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Rf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Oee:a,c=n.rootBoundary,u=c===void 0?nF:c,d=n.elementContext,f=d===void 0?od:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,C=y===void 0?0:y,w=aF(typeof C!="number"?C:lF(C,ip)),b=f===od?Mee:od,g=e.rects.popper,x=e.elements[m?b:f],P=cte(nl(x)?x:x.contextElement||ua(e.elements.popper),l,u,s),I=eu(e.elements.reference),T=uF({reference:I,element:g,strategy:"absolute",placement:o}),M=Yw(Object.assign({},g,T)),k=f===od?M:I,S={top:P.top-k.top+w.top,bottom:k.bottom-P.bottom+w.bottom,left:P.left-k.left+w.left,right:k.right-P.right+w.right},R=e.modifiersData.offset;if(f===od&&R){var O=R[o];Object.keys(S).forEach(function(A){var D=[wo,bo].indexOf(A)>=0?1:-1,_=[Cr,bo].indexOf(A)>=0?"y":"x";S[A]+=O[_]*D})}return S}function ute(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?rF:l,u=tu(r),d=u?a?OE:OE.filter(function(m){return tu(m)===u}):ip,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,y){return m[y]=Rf(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[ci(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function dte(e){if(ci(e)===p1)return[];var t=Fh(e);return[$E(e),t,$E(t)]}function fte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,w=ci(C),b=w===C,g=l||(b||!m?[Fh(C)]:dte(C)),x=[C].concat(g).reduce(function(H,G){return H.concat(ci(G)===p1?ute(t,{placement:G,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):G)},[]),P=t.rects.reference,I=t.rects.popper,T=new Map,M=!0,k=x[0],S=0;S=0,_=D?"width":"height",$=Rf(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),L=D?A?wo:xr:A?bo:Cr;P[_]>I[_]&&(L=Fh(L));var F=Fh(L),j=[];if(i&&j.push($[O]<=0),a&&j.push($[L]<=0,$[F]<=0),j.every(function(H){return H})){k=R,M=!1;break}T.set(R,j)}if(M)for(var N=m?3:1,z=function(G){var q=x.find(function(ee){var W=T.get(ee);if(W)return W.slice(0,G).every(function(Z){return Z})});if(q)return k=q,"break"},V=N;V>0;V--){var K=z(V);if(K==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const pte={name:"flip",enabled:!0,phase:"main",fn:fte,requiresIfExists:["offset"],data:{_skip:!1}};function AE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function DE(e){return[Cr,wo,bo,xr].some(function(t){return e[t]>=0})}function hte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Rf(t,{elementContext:"reference"}),a=Rf(t,{altBoundary:!0}),l=AE(s,r),c=AE(a,o,i),u=DE(l),d=DE(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const mte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hte};function gte(e,t,n){var r=ci(e),o=[xr,Cr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[xr,wo].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function vte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=rF.reduce(function(u,d){return u[d]=gte(d,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const yte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vte};function bte(e){var t=e.state,n=e.name;t.modifiersData[n]=uF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const wte={name:"popperOffsets",enabled:!0,phase:"read",fn:bte,data:{}};function Cte(e){return e==="x"?"y":"x"}function xte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,C=Rf(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=ci(t.placement),b=tu(t.placement),g=!b,x=g1(w),P=Cte(x),I=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,k=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,S=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(I){if(i){var A,D=x==="y"?Cr:xr,_=x==="y"?bo:wo,$=x==="y"?"height":"width",L=I[x],F=L+C[D],j=L-C[_],N=h?-M[$]/2:0,z=b===Jc?T[$]:M[$],V=b===Jc?-M[$]:-T[$],K=t.elements.arrow,H=h&&K?m1(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sF(),q=G[D],ee=G[_],W=Hd(0,T[$],H[$]),Z=g?T[$]/2-N-W-q-S.mainAxis:z-W-q-S.mainAxis,U=g?-T[$]/2+N+W+ee+S.mainAxis:V+W+ee+S.mainAxis,J=t.elements.arrow&&sp(t.elements.arrow),X=J?x==="y"?J.clientTop||0:J.clientLeft||0:0,ae=(A=R==null?void 0:R[x])!=null?A:0,fe=L+Z-ae-X,me=L+U-ae,he=Hd(h?Gm(F,fe):F,L,h?Ha(j,me):j);I[x]=he,O[x]=he-L}if(a){var je,ge=x==="x"?Cr:xr,Ae=x==="x"?bo:wo,Ve=I[P],De=P==="y"?"height":"width",Q=Ve+C[ge],te=Ve-C[Ae],oe=[Cr,xr].indexOf(w)!==-1,de=(je=R==null?void 0:R[P])!=null?je:0,ve=oe?Q:Ve-T[De]-M[De]-de+S.altAxis,Se=oe?Ve+T[De]+M[De]-de-S.altAxis:te,Ee=h&&oe?Wee(ve,Ve,Se):Hd(h?ve:Q,Ve,h?Se:te);I[P]=Ee,O[P]=Ee-Ve}t.modifiersData[r]=O}}const Ste={name:"preventOverflow",enabled:!0,phase:"main",fn:xte,requiresIfExists:["offset"]};function Pte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ite(e){return e===Gr(e)||!mo(e)?v1(e):Pte(e)}function kte(e){var t=e.getBoundingClientRect(),n=Zc(t.width)/e.offsetWidth||1,r=Zc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tte(e,t,n){n===void 0&&(n=!1);var r=mo(t),o=mo(t)&&kte(t),i=ua(t),s=eu(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vi(t)!=="body"||b1(i))&&(a=Ite(t)),mo(t)?(l=eu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=y1(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ete(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Ote(e){var t=Ete(e);return Bee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Mte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Rte(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var LE={placement:"bottom",modifiers:[],strategy:"absolute"};function FE(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return ye({root:["root"]},Dte,t)},Nte={},Bte=p.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:m,ownerState:y,...C}=t,w=p.useRef(null),b=mt(w,n),g=p.useRef(null),x=mt(g,d),P=p.useRef(x);ht(()=>{P.current=x},[x]),p.useImperativeHandle(d,()=>g.current,[]);const I=Lte(c,i),[T,M]=p.useState(I),[k,S]=p.useState(Xw(r));p.useEffect(()=>{g.current&&g.current.forceUpdate()}),p.useEffect(()=>{r&&S(Xw(r))},[r]),ht(()=>{if(!k||!l)return;const _=F=>{M(F.placement)};let $=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{_(F)}}];a!=null&&($=$.concat(a)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const L=Ate(k,w.current,{placement:I,...u,modifiers:$});return P.current(L),()=>{L.destroy(),P.current(null)}},[k,s,a,l,u,I]);const R={placement:T};m!==null&&(R.TransitionProps=m);const O=jte(t),A=h.root??"div",D=bf({elementType:A,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:O.root});return v.jsx(A,{...D,children:typeof o=="function"?o(R):o})}),zte=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Nte,popperRef:h,style:m,transition:y=!1,slotProps:C={},slots:w={},...b}=t,[g,x]=p.useState(!0),P=()=>{x(!1)},I=()=>{x(!0)};if(!l&&!u&&(!y||g))return null;let T;if(i)T=i;else if(r){const S=Xw(r);T=S&&Fte(S)?Wt(S).body:Wt(null).body}const M=!u&&l&&(!y||g)?"none":void 0,k=y?{in:u,onEnter:P,onExited:I}:void 0;return v.jsx(N_,{disablePortal:a,container:T,children:v.jsx(Bte,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:y?!g:u,placement:d,popperOptions:f,popperRef:h,slotProps:C,slots:w,...b,style:{position:"fixed",top:0,left:0,display:M,...m},TransitionProps:k,children:o})})}),Hte=ne(zte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gl=p.forwardRef(function(t,n){const r=Ir(),o=He({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:m,popperOptions:y,popperRef:C,transition:w,slots:b,slotProps:g,...x}=o,P=(b==null?void 0:b.root)??(a==null?void 0:a.Root),I={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:m,popperOptions:y,popperRef:C,transition:w,...x};return v.jsx(Hte,{as:s,direction:r?"rtl":"ltr",slots:{root:P},slotProps:g??l,...I,ref:n})});function Vte(e){return Ne("MuiListSubheader",e)}Fe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ute=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${re(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ye(s,Vte,t)},Gte=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${re(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(_e(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Qw=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:i,component:s,disableGutters:a,disableSticky:l,inset:c},f=Ute(d);return v.jsx(Gte,{as:s,className:ie(f.root,o),ref:n,ownerState:d,...u})});Qw&&(Qw.muiSkipListHighlight=!0);const Wte=Te(v.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 Kte(e){return Ne("MuiChip",e)}const ot=Fe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qte=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${re(r)}`,`color${re(o)}`,a&&"clickable",a&&`clickableColor${re(o)}`,s&&"deletable",s&&`deletableColor${re(o)}`,`${l}${re(o)}`],label:["label",`label${re(r)}`],avatar:["avatar",`avatar${re(r)}`,`avatarColor${re(o)}`],icon:["icon",`icon${re(r)}`,`iconColor${re(i)}`],deleteIcon:["deleteIcon",`deleteIcon${re(r)}`,`deleteIconColor${re(o)}`,`deleteIcon${re(l)}Color${re(o)}`]};return ye(c,Kte,t)},Yte=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${ot.avatar}`]:t.avatar},{[`& .${ot.avatar}`]:t[`avatar${re(a)}`]},{[`& .${ot.avatar}`]:t[`avatarColor${re(r)}`]},{[`& .${ot.icon}`]:t.icon},{[`& .${ot.icon}`]:t[`icon${re(a)}`]},{[`& .${ot.icon}`]:t[`iconColor${re(o)}`]},{[`& .${ot.deleteIcon}`]:t.deleteIcon},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${re(a)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIconColor${re(r)}`]},{[`& .${ot.deleteIcon}`]:t[`deleteIcon${re(l)}Color${re(r)}`]},t.root,t[`size${re(a)}`],t[`color${re(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${re(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${re(r)}`],t[l],t[`${l}${re(r)}`]]}})(_e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ot.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ot.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ot.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ot.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ot.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ot.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ot.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:We(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)`:We(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ot.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ot.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:We(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ot.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ot.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ut(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ot.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ut(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ot.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ot.avatar}`]:{marginLeft:4},[`& .${ot.avatarSmall}`]:{marginLeft:2},[`& .${ot.icon}`]:{marginLeft:4},[`& .${ot.iconSmall}`]:{marginLeft:2},[`& .${ot.deleteIcon}`]:{marginRight:5},[`& .${ot.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:We(e.palette[n].main,.7)}`,[`&.${ot.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:We(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ot.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:We(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Xte=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function jE(e){return e.key==="Backspace"||e.key==="Delete"}const Ni=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:m,onKeyDown:y,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:g,skipFocusWhenDisabled:x=!1,...P}=r,I=p.useRef(null),T=mt(I,n),M=j=>{j.stopPropagation(),m&&m(j)},k=j=>{j.currentTarget===j.target&&jE(j)&&j.preventDefault(),y&&y(j)},S=j=>{j.currentTarget===j.target&&m&&jE(j)&&m(j),C&&C(j)},R=s!==!1&&h?!0:s,O=R||m?Wc:l||"div",A={...r,component:O,disabled:u,size:w,color:a,iconColor:p.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:R,variant:b},D=qte(A),_=O===Wc?{component:l||"div",focusVisibleClassName:D.focusVisible,...m&&{disableRipple:!0}}:{};let $=null;m&&($=c&&p.isValidElement(c)?p.cloneElement(c,{className:ie(c.props.className,D.deleteIcon),onClick:M}):v.jsx(Wte,{className:ie(D.deleteIcon),onClick:M}));let L=null;o&&p.isValidElement(o)&&(L=p.cloneElement(o,{className:ie(D.avatar,o.props.className)}));let F=null;return d&&p.isValidElement(d)&&(F=p.cloneElement(d,{className:ie(D.icon,d.props.className)})),v.jsxs(Yte,{as:O,className:ie(D.root,i),disabled:R&&u?!0:void 0,onClick:h,onKeyDown:k,onKeyUp:S,ref:T,tabIndex:x&&u?-1:g,ownerState:A,..._,...P,children:[L||F,v.jsx(Xte,{className:ie(D.label),ownerState:A,children:f}),$]})});function nh(e){return parseInt(e,10)||0}const Qte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Jte(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Zte=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=t,{current:c}=p.useRef(a!=null),u=p.useRef(null),d=mt(n,u),f=p.useRef(null),h=p.useRef(null),m=p.useCallback(()=>{const w=u.current,g=hi(w).getComputedStyle(w);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=g.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const P=g.boxSizing,I=nh(g.paddingBottom)+nh(g.paddingTop),T=nh(g.borderBottomWidth)+nh(g.borderTopWidth),M=x.scrollHeight;x.value="x";const k=x.scrollHeight;let S=M;i&&(S=Math.max(Number(i)*k,S)),o&&(S=Math.min(Number(o)*k,S)),S=Math.max(S,k);const R=S+(P==="border-box"?I+T:0),O=Math.abs(S-M)<=1;return{outerHeightStyle:R,overflowing:O}},[o,i,t.placeholder]),y=p.useCallback(()=>{const w=m();if(Jte(w))return;const b=w.outerHeightStyle,g=u.current;f.current!==b&&(f.current=b,g.style.height=`${b}px`),g.style.overflow=w.overflowing?"hidden":""},[m]);ht(()=>{const w=()=>{y()};let b;const g=C_(w),x=u.current,P=hi(x);P.addEventListener("resize",g);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(w),I.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),P.removeEventListener("resize",g),I&&I.disconnect()}},[m,y]),ht(()=>{y()});const C=w=>{c||y(),r&&r(w)};return v.jsxs(p.Fragment,{children:[v.jsx("textarea",{value:a,onChange:C,ref:d,rows:i,style:s,...l}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...Qte.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function vl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wm(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function ene(e){return e.startAdornment}function tne(e){return Ne("MuiInputBase",e)}const Rr=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var BE;const Bv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${re(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},nne=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:h,type:m}=e,y={root:["root",`color${re(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${re(f)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ye(y,tne,t)},Hv=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bv})(_e(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Vv=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zv})(_e(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Rr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Rr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),zE=j6({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Tu=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:m,error:y,fullWidth:C=!1,id:w,inputComponent:b="input",inputProps:g={},inputRef:x,margin:P,maxRows:I,minRows:T,multiline:M=!1,name:k,onBlur:S,onChange:R,onClick:O,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:$,readOnly:L,renderSuffix:F,rows:j,size:N,slotProps:z={},slots:V={},startAdornment:K,type:H="text",value:G,...q}=r,ee=g.value!=null?g.value:G,{current:W}=p.useRef(ee!=null),Z=p.useRef(),U=p.useCallback(we=>{},[]),J=mt(Z,x,g.ref,U),[X,ae]=p.useState(!1),fe=as(),me=vl({props:r,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=fe?fe.focused:X,p.useEffect(()=>{!fe&&f&&X&&(ae(!1),S&&S())},[fe,f,X,S]);const he=fe&&fe.onFilled,je=fe&&fe.onEmpty,ge=p.useCallback(we=>{Wm(we)?he&&he():je&&je()},[he,je]);ht(()=>{W&&ge({value:ee})},[ee,ge,W]);const Ae=we=>{A&&A(we),g.onFocus&&g.onFocus(we),fe&&fe.onFocus?fe.onFocus(we):ae(!0)},Ve=we=>{S&&S(we),g.onBlur&&g.onBlur(we),fe&&fe.onBlur?fe.onBlur(we):ae(!1)},De=(we,...Le)=>{if(!W){const lt=we.target||Z.current;if(lt==null)throw new Error(Ji(1));ge({value:lt.value})}g.onChange&&g.onChange(we,...Le),R&&R(we,...Le)};p.useEffect(()=>{ge(Z.current)},[]);const Q=we=>{Z.current&&we.currentTarget===we.target&&Z.current.focus(),O&&O(we)};let te=b,oe=g;M&&te==="input"&&(j?oe={type:void 0,minRows:j,maxRows:j,...oe}:oe={type:void 0,maxRows:I,minRows:T,...oe},te=Zte);const de=we=>{ge(we.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};p.useEffect(()=>{fe&&fe.setAdornedStart(!!K)},[fe,K]);const ve={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:m,error:me.error,focused:me.focused,formControl:fe,fullWidth:C,hiddenLabel:me.hiddenLabel,multiline:M,size:me.size,startAdornment:K,type:H},Se=nne(ve),Ee=V.root||c.Root||Hv,Oe=z.root||u.root||{},Ce=V.input||c.Input||Vv;return oe={...oe,...z.input??u.input},v.jsxs(p.Fragment,{children:[!h&&typeof zE=="function"&&(BE||(BE=v.jsx(zE,{}))),v.jsxs(Ee,{...Oe,ref:n,onClick:Q,...q,...!km(Ee)&&{ownerState:{...ve,...Oe.ownerState}},className:ie(Se.root,Oe.className,a,L&&"MuiInputBase-readOnly"),children:[K,v.jsx(Iv.Provider,{value:null,children:v.jsx(Ce,{"aria-invalid":me.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:me.disabled,id:w,onAnimationStart:de,name:k,placeholder:$,readOnly:L,required:me.required,rows:j,value:ee,onKeyDown:D,onKeyUp:_,type:H,...oe,...!km(Ce)&&{as:te,ownerState:{...ve,...oe.ownerState}},ref:J,className:ie(Se.input,oe.className,L&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:De,onFocus:Ae})}),m,F?F({...me,startAdornment:K}):null]})]})});function rne(e){return Ne("MuiInput",e)}const Rs={...Rr,...Fe("MuiInput",["root","underline","input"])};function one(e){return Ne("MuiOutlinedInput",e)}const Zr={...Rr,...Fe("MuiOutlinedInput",["root","notchedOutline","input"])};function ine(e){return Ne("MuiFilledInput",e)}const $r={...Rr,...Fe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},dF=Te(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function sne(e){return Ne("MuiAutocomplete",e)}const Ze=Fe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var HE,VE;const ane=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${re(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ye(d,sne,t)},lne=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Ze.tag}`]:t.tag},{[`& .${Ze.tag}`]:t[`tagSize${re(a)}`]},{[`& .${Ze.inputRoot}`]:t.inputRoot},{[`& .${Ze.input}`]:t.input},{[`& .${Ze.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Ze.focused} .${Ze.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ze.clearIndicator}`]:{visibility:"visible"}},[`& .${Ze.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ze.inputRoot}`]:{[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:30},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:56},[`& .${Ze.input}`]:{width:0,minWidth:30}},[`& .${Rs.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Rs.root}.${Rr.sizeSmall}`]:{[`& .${Rs.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Zr.root}`]:{padding:9,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${Ze.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${Zr.root}.${Rr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ze.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${$r.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${$r.input}`]:{padding:"7px 4px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${$r.root}.${Rr.sizeSmall}`]:{paddingBottom:1,[`& .${$r.input}`]:{padding:"2.5px 4px"}},[`& .${Rr.hiddenLabel}`]:{paddingTop:8},[`& .${$r.root}.${Rr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ze.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${$r.root}.${Rr.hiddenLabel}.${Rr.sizeSmall}`]:{[`& .${Ze.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ze.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ze.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ze.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ze.inputRoot}`]:{flexWrap:"wrap"}}}]}),cne=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),une=ne(an,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dne=ne(an,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),fne=ne(gl,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ze.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(_e(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),pne=ne(Pr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(_e(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),hne=ne("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),mne=ne("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),gne=ne("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(_e(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ze.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ze.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ze.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),vne=ne(Qw,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(_e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),yne=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ze.option}`]:{paddingLeft:24}}),fF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=HE||(HE=v.jsx(Pee,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:h="Clear",closeText:m="Close",componentsProps:y,defaultValue:C=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:b=!1,disabled:g=!1,disabledItemsFocusable:x=!1,disableListWrap:P=!1,disablePortal:I=!1,filterOptions:T,filterSelectedOptions:M=!1,forcePopupIcon:k="auto",freeSolo:S=!1,fullWidth:R=!1,getLimitTagsText:O=ct=>`+${ct}`,getOptionDisabled:A,getOptionKey:D,getOptionLabel:_,isOptionEqualToValue:$,groupBy:L,handleHomeEndKeys:F=!r.freeSolo,id:j,includeInputInList:N=!1,inputValue:z,limitTags:V=-1,ListboxComponent:K,ListboxProps:H,loading:G=!1,loadingText:q="Loading…",multiple:ee=!1,noOptionsText:W="No options",onChange:Z,onClose:U,onHighlightChange:J,onInputChange:X,onOpen:ae,open:fe,openOnFocus:me=!1,openText:he="Open",options:je,PaperComponent:ge,PopperComponent:Ae,popupIcon:Ve=VE||(VE=v.jsx(dF,{})),readOnly:De=!1,renderGroup:Q,renderInput:te,renderOption:oe,renderTags:de,selectOnFocus:ve=!r.freeSolo,size:Se="medium",slots:Ee={},slotProps:Oe={},value:Ce,...we}=r,{getRootProps:Le,getInputProps:lt,getInputLabelProps:pe,getPopupIndicatorProps:ke,getClearProps:Ke,getTagProps:gt,getListboxProps:Kn,getOptionProps:qn,value:An,dirty:Yn,expanded:Tr,id:cr,popupOpen:Xn,focused:Yr,focusedTag:xi,anchorEl:qe,setAnchorEl:Qn,inputValue:ga,groupedOptions:kl}=Eee({...r,componentName:"Autocomplete"}),Nu=!w&&!g&&Yn&&!De,Bu=(!S||k===!0)&&k!==!1,{onMouseDown:Py}=lt(),{ref:Iy,...wp}=Kn(),zu=_||(ct=>ct.label??ct),Dn={...r,disablePortal:I,expanded:Tr,focused:Yr,fullWidth:R,getOptionLabel:zu,hasClearIcon:Nu,hasPopupIcon:Bu,inputFocused:xi===-1,popupOpen:Xn,size:Se},dn=ane(Dn),Si={slots:{paper:ge,popper:Ae,...Ee},slotProps:{chip:l,listbox:H,...y,...Oe}},[ce,le]=hn("listbox",{elementType:gne,externalForwardedProps:Si,ownerState:Dn,className:dn.listbox,additionalProps:wp,ref:Iy}),[Re,Je]=hn("paper",{elementType:Pr,externalForwardedProps:Si,ownerState:Dn,className:dn.paper}),[tt,qt]=hn("popper",{elementType:gl,externalForwardedProps:Si,ownerState:Dn,className:dn.popper,additionalProps:{disablePortal:I,style:{width:qe?qe.clientWidth:null},role:"presentation",anchorEl:qe,open:Xn}});let vt;if(ee&&An.length>0){const ct=Go=>({className:dn.tag,disabled:g,...gt(Go)});de?vt=de(An,ct,Dn):vt=An.map((Go,fs)=>{const{key:Hu,...RN}=ct({index:fs});return v.jsx(Ni,{label:zu(Go),size:Se,...RN,...Si.slotProps.chip},Hu)})}if(V>-1&&Array.isArray(vt)){const ct=vt.length-V;!Yr&&ct>0&&(vt=vt.splice(0,V),vt.push(v.jsx("span",{className:dn.tag,children:O(ct)},vt.length)))}const Cp=Q||(ct=>v.jsxs("li",{children:[v.jsx(vne,{className:dn.groupLabel,ownerState:Dn,component:"div",children:ct.group}),v.jsx(yne,{className:dn.groupUl,ownerState:Dn,children:ct.children})]},ct.key)),MN=oe||((ct,Go)=>{const{key:fs,...Hu}=ct;return v.jsx("li",{...Hu,children:zu(Go)},fs)}),bP=(ct,Go)=>{const fs=qn({option:ct,index:Go});return MN({...fs,className:dn.option},ct,{selected:fs["aria-selected"],index:Go,inputValue:ga},Dn)},xp=Si.slotProps.clearIndicator,Sp=Si.slotProps.popupIndicator,ky=ct=>v.jsx(fne,{as:tt,...qt,children:v.jsx(pne,{as:Re,...Je,children:ct})});let Pp=null;return kl.length>0?Pp=ky(v.jsx(ce,{as:K,...le,children:kl.map((ct,Go)=>L?Cp({key:ct.key,group:ct.group,children:ct.options.map((fs,Hu)=>bP(fs,ct.index+Hu))}):bP(ct,Go))})):G&&kl.length===0?Pp=ky(v.jsx(hne,{className:dn.loading,ownerState:Dn,children:q})):kl.length===0&&!S&&!G&&(Pp=ky(v.jsx(mne,{className:dn.noOptions,ownerState:Dn,role:"presentation",onMouseDown:ct=>{ct.preventDefault()},children:W}))),v.jsxs(p.Fragment,{children:[v.jsx(lne,{ref:n,className:ie(dn.root,c),ownerState:Dn,...Le(we),children:te({id:cr,disabled:g,fullWidth:!0,size:Se==="small"?"small":void 0,InputLabelProps:pe(),InputProps:{ref:Qn,className:dn.inputRoot,startAdornment:vt,onMouseDown:ct=>{ct.target===ct.currentTarget&&Py(ct)},...(Nu||Bu)&&{endAdornment:v.jsxs(cne,{className:dn.endAdornment,ownerState:Dn,children:[Nu?v.jsx(une,{...Ke(),"aria-label":h,title:h,ownerState:Dn,...xp,className:ie(dn.clearIndicator,xp==null?void 0:xp.className),children:u}):null,Bu?v.jsx(dne,{...ke(),disabled:g,"aria-label":Xn?m:he,title:Xn?m:he,ownerState:Dn,...Sp,className:ie(dn.popupIndicator,Sp==null?void 0:Sp.className),children:Ve}):null]})}},inputProps:{className:dn.input,disabled:g,readOnly:De,...lt()}})}),qe?Pp:null]})});function bne(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Jx({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}function wne(e){return Ne("MuiBadge",e)}const ms=Fe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Db=10,Lb=4,Cne=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${re(n.vertical)}${re(n.horizontal)}`,`anchorOrigin${re(n.vertical)}${re(n.horizontal)}${re(o)}`,`overlap${re(o)}`,t!=="default"&&`color${re(t)}`]};return ye(a,wne,s)},xne=ne("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Sne=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${re(n.anchorOrigin.vertical)}${re(n.anchorOrigin.horizontal)}${re(n.overlap)}`],n.color!=="default"&&t[`color${re(n.color)}`],n.invisible&&t.invisible]}})(_e(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Db*2,lineHeight:1,padding:"0 6px",height:Db*2,borderRadius:Db,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ut(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Lb,height:Lb*2,minWidth:Lb*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ms.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function UE(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const Pne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:s,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:h=!1,max:m=99,badgeContent:y,slots:C,slotProps:w,showZero:b=!1,variant:g="standard",...x}=r,{badgeContent:P,invisible:I,max:T,displayValue:M}=bne({max:m,invisible:h,badgeContent:y,showZero:b}),k=Jx({anchorOrigin:UE(o),color:f,overlap:d,variant:g,badgeContent:y}),S=I||P==null&&g!=="dot",{color:R=f,overlap:O=d,anchorOrigin:A,variant:D=g}=S?k:r,_=UE(A),$=D!=="dot"?M:void 0,L={...r,badgeContent:P,invisible:S,max:T,displayValue:$,showZero:b,anchorOrigin:_,color:R,overlap:O,variant:D},F=Cne(L),j=(C==null?void 0:C.root)??l.Root??xne,N=(C==null?void 0:C.badge)??l.Badge??Sne,z=(w==null?void 0:w.root)??c.root,V=(w==null?void 0:w.badge)??c.badge,K=bf({elementType:j,externalSlotProps:z,externalForwardedProps:x,additionalProps:{ref:n,as:a},ownerState:L,className:ie(z==null?void 0:z.className,F.root,i)}),H=bf({elementType:N,externalSlotProps:V,ownerState:L,className:ie(F.badge,V==null?void 0:V.className)});return v.jsxs(j,{...K,children:[u,v.jsx(N,{...H,children:$})]})});function Ine(e){return Ne("MuiCard",e)}Fe("MuiCard",["root"]);const kne=e=>{const{classes:t}=e;return ye({root:["root"]},Ine,t)},Tne=ne(Pr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),pF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...s}=r,a={...r,raised:i},l=kne(a);return v.jsx(Tne,{className:ie(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a,...s})});function Ene(e){return Ne("MuiCardContent",e)}Fe("MuiCardContent",["root"]);const One=e=>{const{classes:t}=e;return ye({root:["root"]},Ene,t)},Mne=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),hF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=One(a);return v.jsx(Mne,{as:i,className:ie(l.root,o),ownerState:a,ref:n,...s})});function Rne(e){return Ne("MuiCardMedia",e)}Fe("MuiCardMedia",["root","media","img"]);const $ne=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ye({root:["root",n&&"media",r&&"img"]},Rne,t)},_ne=ne("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Ane=["video","audio","picture","iframe","img"],Dne=["picture","img"],Lne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:c,...u}=r,d=Ane.includes(s),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,h={...r,component:s,isMediaComponent:d,isImageComponent:Dne.includes(s)},m=$ne(h);return v.jsx(_ne,{className:ie(m.root,i),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:h,src:d?a||l:void 0,...u,children:o})}),Fne=Te(v.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"),jne=Te(v.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"),Nne=Te(v.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 Bne(e){return Ne("MuiCheckbox",e)}const Fb=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zne=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${re(r)}`,`size${re(o)}`]},s=ye(i,Bne,t);return{...t,...s}},Hne=ne(V_,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${re(n.size)}`],n.color!=="default"&&t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{[`&.${Fb.checked}, &.${Fb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Fb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Vne=v.jsx(jne,{}),Une=v.jsx(Fne,{}),Gne=v.jsx(Nne,{}),Wne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Vne,color:i="primary",icon:s=Une,indeterminate:a=!1,indeterminateIcon:l=Gne,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...h}=r,m=a?l:s,y=a?l:o,C={...r,disableRipple:d,color:i,indeterminate:a,size:u},w=zne(C);return v.jsx(Hne,{type:"checkbox",inputProps:{"data-indeterminate":a,...c},icon:p.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:p.cloneElement(y,{fontSize:y.props.fontSize??u}),ownerState:C,ref:n,className:ie(w.root,f),disableRipple:d,...h,classes:w})});function Kne(e){return Ne("MuiCircularProgress",e)}Fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gs=44,Jw=bi` 0% { transform: rotate(0deg); } @@ -2232,7 +2232,7 @@ Content-Type: `+c.contentType+`\r 100% { transform: rotate(360deg); } -`,Jw=bi` +`,Zw=bi` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -2247,11 +2247,11 @@ Content-Type: `+c.contentType+`\r stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`,Kne=typeof Qw!="string"?aa` - animation: ${Qw} 1.4s linear infinite; - `:null,qne=typeof Jw!="string"?aa` - animation: ${Jw} 1.4s ease-in-out infinite; - `:null,Yne=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${re(r)}`],svg:["svg"],circle:["circle",`circle${re(n)}`,o&&"circleDisableShrink"]};return ve(i,Wne,t)},Xne=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Kne||{animation:`${Qw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Qne=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Jne=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${re(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(_e(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:qne||{animation:`${Jw} 1.4s ease-in-out infinite`}}]}))),Zne=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,h={...r,color:i,disableShrink:s,size:a,thickness:c,value:u,variant:d},m=Yne(h),y={},C={},w={};if(d==="determinate"){const b=2*Math.PI*((ms-c)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return v.jsx(Xne,{className:ie(m.root,o),style:{width:a,height:a,...C,...l},ownerState:h,ref:n,role:"progressbar",...w,...f,children:v.jsx(Qne,{className:m.svg,ownerState:h,viewBox:`${ms/2} ${ms/2} ${ms} ${ms}`,children:v.jsx(Jne,{className:m.circle,style:y,ownerState:h,cx:ms,cy:ms,r:(ms-c)/2,fill:"none",strokeWidth:c})})})});function VE(e){return e.substring(2).toLowerCase()}function ere(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=ht(fl(t),a),d=nt(m=>{const y=c.current;c.current=!1;const C=Wt(a.current);if(!l.current||!a.current||"clientX"in m&&ere(m,C))return;if(s.current){s.current=!1;return}let w;m.composedPath?w=m.composedPath().includes(a.current):w=!C.documentElement.contains(m.target)||a.current.contains(m.target),!w&&(n||!y)&&o(m)}),f=m=>y=>{c.current=!0;const C=t.props[m];C&&C(y)},h={ref:u};return i!==!1&&(h[i]=f(i)),p.useEffect(()=>{if(i!==!1){const m=VE(i),y=Wt(a.current),C=()=>{s.current=!0};return y.addEventListener(m,d),y.addEventListener("touchmove",C),()=>{y.removeEventListener(m,d),y.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(h[r]=f(r)),p.useEffect(()=>{if(r!==!1){const m=VE(r),y=Wt(a.current);return y.addEventListener(m,d),()=>{y.removeEventListener(m,d)}}},[d,r]),v.jsx(p.Fragment,{children:p.cloneElement(t,h)})}function tre(e){return Ne("MuiDialog",e)}const Fb=je("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hF=p.createContext({}),nre=ne(j_,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rre=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${re(n)}`],paper:["paper",`paperScroll${re(n)}`,`paperWidth${re(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ve(s,tre,t)},ore=ne(Qf,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ire=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${re(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sre=ne(Pr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${re(n.scroll)}`],t[`paperWidth${re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(_e(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Fb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Fb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Fb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),are=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialog"}),o=Su(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:C="sm",onBackdropClick:w,onClick:b,onClose:g,open:x,PaperComponent:P=Pr,PaperProps:I={},scroll:T="paper",TransitionComponent:M=oS,transitionDuration:k=i,TransitionProps:S,...R}=r,O={...r,disableEscapeKeyDown:h,fullScreen:m,fullWidth:y,maxWidth:C,scroll:T},A=rre(O),D=p.useRef(),_=j=>{D.current=j.target===j.currentTarget},$=j=>{b&&b(j),D.current&&(D.current=null,w&&w(j),g&&g(j,"backdropClick"))},L=yt(a),F=p.useMemo(()=>({titleId:L}),[L]);return v.jsx(ore,{className:ie(A.root,f),closeAfterTransition:!0,components:{Backdrop:nre},componentsProps:{backdrop:{transitionDuration:k,as:c,...u}},disableEscapeKeyDown:h,onClose:g,open:x,ref:n,onClick:$,ownerState:O,...R,children:v.jsx(M,{appear:!0,in:x,timeout:k,role:"presentation",...S,children:v.jsx(ire,{className:ie(A.container),onMouseDown:_,ownerState:O,children:v.jsx(sre,{as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L,"aria-modal":l,...I,className:ie(A.paper,I.className),ownerState:O,children:v.jsx(hF.Provider,{value:F,children:d})})})})})});function lre(e){return Ne("MuiDialogActions",e)}je("MuiDialogActions",["root","spacing"]);const cre=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},lre,t)},ure=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),dre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=cre(a);return v.jsx(ure,{className:ie(l.root,o),ownerState:a,ref:n,...s})});function fre(e){return Ne("MuiDialogContent",e)}je("MuiDialogContent",["root","dividers"]);function pre(e){return Ne("MuiDialogTitle",e)}const hre=je("MuiDialogTitle",["root"]),mre=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},fre,t)},gre=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(_e(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${hre.root} + &`]:{paddingTop:0}}}]}))),vre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=mre(a);return v.jsx(gre,{className:ie(l.root,o),ownerState:a,ref:n,...s})});function yre(e){return Ne("MuiDialogContentText",e)}je("MuiDialogContentText",["root"]);const bre=e=>{const{classes:t}=e,r=ve({root:["root"]},yre,t);return{...t,...r}},wre=ne(Be,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContentText"}),{children:o,className:i,...s}=r,a=bre(s);return v.jsx(wre,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:ie(a.root,i),...r,classes:a})}),xre=e=>{const{classes:t}=e;return ve({root:["root"]},pre,t)},Sre=ne(Be,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Pre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...s}=r,a=r,l=xre(a),{titleId:c=i}=p.useContext(hF);return v.jsx(Sre,{component:"h2",className:ie(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c,...s})}),Ire=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${re(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=ve(l,one,t);return{...t,...c}},kre=ne(zv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nv(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${$r.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${$r.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$r.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ut()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[s])==null?void 0:a.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Tre=ne(Hv,{name:"MuiFilledInput",slot:"Input",overridesResolver:Bv})(_e(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Wm=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...m}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:h},C=Ire(r),w={root:{ownerState:y},input:{ownerState:y}},b=d??s?Un(w,d??s):w,g=f.root??i.Root??kre,x=f.input??i.Input??Tre;return v.jsx(Tu,{slots:{root:g,input:x},componentsProps:b,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...m,classes:C})});Wm&&(Wm.muiName="Input");function Ere(e){return Ne("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ore=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${re(n)}`,r&&"fullWidth"]};return ve(o,Ere,t)},Mre=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${re(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),fc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:m=!1,size:y="medium",variant:C="outlined",...w}=r,b={...r,color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:h,required:m,size:y,variant:C},g=Ore(b),[x,P]=p.useState(()=>{let A=!1;return o&&p.Children.forEach(o,D=>{if(!tb(D,["Input","Select"]))return;const _=tb(D,["Select"])?D.props.input:D;_&&Zte(_.props)&&(A=!0)}),A}),[I,T]=p.useState(()=>{let A=!1;return o&&p.Children.forEach(o,D=>{tb(D,["Input","Select"])&&(Gm(D.props,!0)||Gm(D.props.inputProps,!0))&&(A=!0)}),A}),[M,k]=p.useState(!1);l&&M&&k(!1);const S=u!==void 0&&!l?u:M;let R;p.useRef(!1);const O=p.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:s,disabled:l,error:c,filled:I,focused:S,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{k(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{k(!0)},registerEffect:R,required:m,variant:C}),[x,s,l,c,I,S,d,f,R,m,y,C]);return v.jsx(Pv.Provider,{value:O,children:v.jsx(Mre,{as:a,ownerState:b,className:ie(g.root,i),ref:n,...w,children:o})})});function Rre(e){return Ne("MuiFormControlLabel",e)}const xd=je("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$re=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${re(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ve(s,Rre,t)},_re=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xd.label}`]:t.label},t.root,t[`labelPlacement${re(n.labelPlacement)}`]]}})(_e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${xd.disabled}`]:{cursor:"default"},[`& .${xd.label}`]:{[`&.${xd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Are=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(_e(({theme:e})=>({[`&.${xd.error}`]:{color:(e.vars||e).palette.error.main}}))),Zw=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:s={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:h,onChange:m,required:y,slots:C={},slotProps:w={},value:b,...g}=r,x=ss(),P=l??a.props.disabled??(x==null?void 0:x.disabled),I=y??a.props.required,T={disabled:P,required:I};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]>"u"&&typeof r[_]<"u"&&(T[_]=r[_])});const M=vl({props:r,muiFormControl:x,states:["error"]}),k={...r,disabled:P,labelPlacement:f,required:I,error:M.error},S=$re(k),R={slots:C,slotProps:{...s,...w}},[O,A]=hn("typography",{elementType:Be,externalForwardedProps:R,ownerState:k});let D=d;return D!=null&&D.type!==Be&&!c&&(D=v.jsx(O,{component:"span",...A,className:ie(S.label,A==null?void 0:A.className),children:D})),v.jsxs(_re,{className:ie(S.root,i),ownerState:k,ref:n,...g,children:[p.cloneElement(a,T),I?v.jsxs("div",{children:[D,v.jsxs(Are,{ownerState:k,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):D]})});function Dre(e){return Ne("MuiFormHelperText",e)}const UE=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var GE;const Lre=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${re(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ve(c,Dre,t)},Fre=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${UE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${UE.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),jre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:f,variant:h,...m}=r,y=ss(),C=vl({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:s,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete w.ownerState;const b=Lre(w);return v.jsx(Fre,{as:s,className:ie(b.root,i),ref:n,...m,ownerState:w,children:o===" "?GE||(GE=v.jsx("span",{className:"notranslate",children:"​"})):o})});function Nre(e){return Ne("MuiFormLabel",e)}const Ud=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Bre=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${re(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ve(l,Nre,t)},zre=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{[`&.${Ud.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Hre=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(_e(({theme:e})=>({[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}}))),Vre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:c,filled:u,focused:d,required:f,...h}=r,m=ss(),y=vl({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},w=Bre(C);return v.jsxs(zre,{as:a,ownerState:C,className:ie(w.root,i),ref:n,...h,children:[o,y.required&&v.jsxs(Hre,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})}),Ure=AV({themeId:xu}),Gre=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},nne,t);return{...t,...o}},Wre=ne(zv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nv(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ms.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ms.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(.${Ms.disabled}, .${Ms.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ms.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ut()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Kre=ne(Hv,{name:"MuiInput",slot:"Input",overridesResolver:Bv})({}),Km=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...h}=r,m=Gre(r),C={root:{ownerState:{disableUnderline:o}}},w=u??s?Un(u??s,C):C,b=d.root??i.Root??Wre,g=d.input??i.Input??Kre;return v.jsx(Tu,{slots:{root:b,input:g},slotProps:w,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...h,classes:m})});Km&&(Km.muiName="Input");function qre(e){return Ne("MuiInputAdornment",e)}const WE=je("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var KE;const Yre=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${re(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Xre=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${re(o)}`,s,r&&"hiddenLabel",i&&`size${re(i)}`]};return ve(a,qre,t)},Qre=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Yre})(_e(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${WE.positionStart}&:not(.${WE.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Jre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=ss()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:h},y=Xre(m);return v.jsx(Pv.Provider,{value:null,children:v.jsx(Qre,{as:s,ownerState:m,className:ie(y.root,i),ref:n,...d,children:typeof o=="string"&&!l?v.jsx(Be,{color:"textSecondary",children:o}):v.jsxs(p.Fragment,{children:[c==="start"?KE||(KE=v.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})});function Zre(e){return Ne("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eoe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${re(r)}`,s],asterisk:[a&&"asterisk"]},c=ve(l,Zre,t);return{...t,...c}},toe=ne(Vre,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ud.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(_e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),qm=p.forwardRef(function(t,n){const r=He({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...c}=r,u=ss();let d=s;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=vl({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=eoe(h);return v.jsx(toe,{"data-shrink":d,ref:n,className:ie(m.root,l),...c,ownerState:h,classes:m})});function noe(e){return Ne("MuiLinearProgress",e)}je("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const eC=4,tC=bi` +`,qne=typeof Jw!="string"?la` + animation: ${Jw} 1.4s linear infinite; + `:null,Yne=typeof Zw!="string"?la` + animation: ${Zw} 1.4s ease-in-out infinite; + `:null,Xne=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${re(r)}`],svg:["svg"],circle:["circle",`circle${re(n)}`,o&&"circleDisableShrink"]};return ye(i,Kne,t)},Qne=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${re(n.color)}`]]}})(_e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:qne||{animation:`${Jw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Jne=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Zne=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${re(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(_e(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Yne||{animation:`${Zw} 1.4s ease-in-out infinite`}}]}))),ere=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...f}=r,h={...r,color:i,disableShrink:s,size:a,thickness:c,value:u,variant:d},m=Xne(h),y={},C={},w={};if(d==="determinate"){const b=2*Math.PI*((gs-c)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return v.jsx(Qne,{className:ie(m.root,o),style:{width:a,height:a,...C,...l},ownerState:h,ref:n,role:"progressbar",...w,...f,children:v.jsx(Jne,{className:m.svg,ownerState:h,viewBox:`${gs/2} ${gs/2} ${gs} ${gs}`,children:v.jsx(Zne,{className:m.circle,style:y,ownerState:h,cx:gs,cy:gs,r:(gs-c)/2,fill:"none",strokeWidth:c})})})});function GE(e){return e.substring(2).toLowerCase()}function tre(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=mt(fl(t),a),d=nt(m=>{const y=c.current;c.current=!1;const C=Wt(a.current);if(!l.current||!a.current||"clientX"in m&&tre(m,C))return;if(s.current){s.current=!1;return}let w;m.composedPath?w=m.composedPath().includes(a.current):w=!C.documentElement.contains(m.target)||a.current.contains(m.target),!w&&(n||!y)&&o(m)}),f=m=>y=>{c.current=!0;const C=t.props[m];C&&C(y)},h={ref:u};return i!==!1&&(h[i]=f(i)),p.useEffect(()=>{if(i!==!1){const m=GE(i),y=Wt(a.current),C=()=>{s.current=!0};return y.addEventListener(m,d),y.addEventListener("touchmove",C),()=>{y.removeEventListener(m,d),y.removeEventListener("touchmove",C)}}},[d,i]),r!==!1&&(h[r]=f(r)),p.useEffect(()=>{if(r!==!1){const m=GE(r),y=Wt(a.current);return y.addEventListener(m,d),()=>{y.removeEventListener(m,d)}}},[d,r]),v.jsx(p.Fragment,{children:p.cloneElement(t,h)})}function nre(e){return Ne("MuiDialog",e)}const jb=Fe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gF=p.createContext({}),rre=ne(B_,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ore=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${re(n)}`],paper:["paper",`paperScroll${re(n)}`,`paperWidth${re(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ye(s,nre,t)},ire=ne(Qf,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sre=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${re(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),are=ne(Pr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${re(n.scroll)}`],t[`paperWidth${re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(_e(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${jb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${jb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),lre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialog"}),o=Su(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:C="sm",onBackdropClick:w,onClick:b,onClose:g,open:x,PaperComponent:P=Pr,PaperProps:I={},scroll:T="paper",TransitionComponent:M=sS,transitionDuration:k=i,TransitionProps:S,...R}=r,O={...r,disableEscapeKeyDown:h,fullScreen:m,fullWidth:y,maxWidth:C,scroll:T},A=ore(O),D=p.useRef(),_=j=>{D.current=j.target===j.currentTarget},$=j=>{b&&b(j),D.current&&(D.current=null,w&&w(j),g&&g(j,"backdropClick"))},L=yt(a),F=p.useMemo(()=>({titleId:L}),[L]);return v.jsx(ire,{className:ie(A.root,f),closeAfterTransition:!0,components:{Backdrop:rre},componentsProps:{backdrop:{transitionDuration:k,as:c,...u}},disableEscapeKeyDown:h,onClose:g,open:x,ref:n,onClick:$,ownerState:O,...R,children:v.jsx(M,{appear:!0,in:x,timeout:k,role:"presentation",...S,children:v.jsx(sre,{className:ie(A.container),onMouseDown:_,ownerState:O,children:v.jsx(are,{as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L,"aria-modal":l,...I,className:ie(A.paper,I.className),ownerState:O,children:v.jsx(gF.Provider,{value:F,children:d})})})})})});function cre(e){return Ne("MuiDialogActions",e)}Fe("MuiDialogActions",["root","spacing"]);const ure=e=>{const{classes:t,disableSpacing:n}=e;return ye({root:["root",!n&&"spacing"]},cre,t)},dre=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),fre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=ure(a);return v.jsx(dre,{className:ie(l.root,o),ownerState:a,ref:n,...s})});function pre(e){return Ne("MuiDialogContent",e)}Fe("MuiDialogContent",["root","dividers"]);function hre(e){return Ne("MuiDialogTitle",e)}const mre=Fe("MuiDialogTitle",["root"]),gre=e=>{const{classes:t,dividers:n}=e;return ye({root:["root",n&&"dividers"]},pre,t)},vre=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(_e(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${mre.root} + &`]:{paddingTop:0}}}]}))),yre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=gre(a);return v.jsx(vre,{className:ie(l.root,o),ownerState:a,ref:n,...s})});function bre(e){return Ne("MuiDialogContentText",e)}Fe("MuiDialogContentText",["root"]);const wre=e=>{const{classes:t}=e,r=ye({root:["root"]},bre,t);return{...t,...r}},Cre=ne(Be,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContentText"}),{children:o,className:i,...s}=r,a=wre(s);return v.jsx(Cre,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:ie(a.root,i),...r,classes:a})}),Sre=e=>{const{classes:t}=e;return ye({root:["root"]},hre,t)},Pre=ne(Be,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ire=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...s}=r,a=r,l=Sre(a),{titleId:c=i}=p.useContext(gF);return v.jsx(Pre,{component:"h2",className:ie(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c,...s})}),kre=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${re(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=ye(l,ine,t);return{...t,...c}},Tre=ne(Hv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bv(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${$r.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${$r.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$r.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ut()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[s])==null?void 0:a.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Ere=ne(Vv,{name:"MuiFilledInput",slot:"Input",overridesResolver:zv})(_e(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Km=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...m}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:h},C=kre(r),w={root:{ownerState:y},input:{ownerState:y}},b=d??s?Un(w,d??s):w,g=f.root??i.Root??Tre,x=f.input??i.Input??Ere;return v.jsx(Tu,{slots:{root:g,input:x},componentsProps:b,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...m,classes:C})});Km&&(Km.muiName="Input");function Ore(e){return Ne("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mre=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${re(n)}`,r&&"fullWidth"]};return ye(o,Ore,t)},Rre=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${re(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),fc=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:m=!1,size:y="medium",variant:C="outlined",...w}=r,b={...r,color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:h,required:m,size:y,variant:C},g=Mre(b),[x,P]=p.useState(()=>{let A=!1;return o&&p.Children.forEach(o,D=>{if(!nb(D,["Input","Select"]))return;const _=nb(D,["Select"])?D.props.input:D;_&&ene(_.props)&&(A=!0)}),A}),[I,T]=p.useState(()=>{let A=!1;return o&&p.Children.forEach(o,D=>{nb(D,["Input","Select"])&&(Wm(D.props,!0)||Wm(D.props.inputProps,!0))&&(A=!0)}),A}),[M,k]=p.useState(!1);l&&M&&k(!1);const S=u!==void 0&&!l?u:M;let R;p.useRef(!1);const O=p.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:s,disabled:l,error:c,filled:I,focused:S,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{k(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{k(!0)},registerEffect:R,required:m,variant:C}),[x,s,l,c,I,S,d,f,R,m,y,C]);return v.jsx(Iv.Provider,{value:O,children:v.jsx(Rre,{as:a,ownerState:b,className:ie(g.root,i),ref:n,...w,children:o})})});function $re(e){return Ne("MuiFormControlLabel",e)}const xd=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_re=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${re(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ye(s,$re,t)},Are=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xd.label}`]:t.label},t.root,t[`labelPlacement${re(n.labelPlacement)}`]]}})(_e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${xd.disabled}`]:{cursor:"default"},[`& .${xd.label}`]:{[`&.${xd.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Dre=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(_e(({theme:e})=>({[`&.${xd.error}`]:{color:(e.vars||e).palette.error.main}}))),eC=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:s={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:h,onChange:m,required:y,slots:C={},slotProps:w={},value:b,...g}=r,x=as(),P=l??a.props.disabled??(x==null?void 0:x.disabled),I=y??a.props.required,T={disabled:P,required:I};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]>"u"&&typeof r[_]<"u"&&(T[_]=r[_])});const M=vl({props:r,muiFormControl:x,states:["error"]}),k={...r,disabled:P,labelPlacement:f,required:I,error:M.error},S=_re(k),R={slots:C,slotProps:{...s,...w}},[O,A]=hn("typography",{elementType:Be,externalForwardedProps:R,ownerState:k});let D=d;return D!=null&&D.type!==Be&&!c&&(D=v.jsx(O,{component:"span",...A,className:ie(S.label,A==null?void 0:A.className),children:D})),v.jsxs(Are,{className:ie(S.root,i),ownerState:k,ref:n,...g,children:[p.cloneElement(a,T),I?v.jsxs("div",{children:[D,v.jsxs(Dre,{ownerState:k,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):D]})});function Lre(e){return Ne("MuiFormHelperText",e)}const WE=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var KE;const Fre=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${re(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ye(c,Lre,t)},jre=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WE.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Nre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:f,variant:h,...m}=r,y=as(),C=vl({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:s,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete w.ownerState;const b=Fre(w);return v.jsx(jre,{as:s,className:ie(b.root,i),ref:n,...m,ownerState:w,children:o===" "?KE||(KE=v.jsx("span",{className:"notranslate",children:"​"})):o})});function Bre(e){return Ne("MuiFormLabel",e)}const Ud=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zre=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${re(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ye(l,Bre,t)},Hre=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(_e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{[`&.${Ud.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ud.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Vre=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(_e(({theme:e})=>({[`&.${Ud.error}`]:{color:(e.vars||e).palette.error.main}}))),Ure=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:c,filled:u,focused:d,required:f,...h}=r,m=as(),y=vl({props:r,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},w=zre(C);return v.jsxs(Hre,{as:a,ownerState:C,className:ie(w.root,i),ref:n,...h,children:[o,y.required&&v.jsxs(Vre,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})}),Gre=DV({themeId:xu}),Wre=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},rne,t);return{...t,...o}},Kre=ne(Hv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Bv(e,t),!n.disableUnderline&&t.underline]}})(_e(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Rs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rs.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(.${Rs.disabled}, .${Rs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Rs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ut()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),qre=ne(Vv,{name:"MuiInput",slot:"Input",overridesResolver:zv})({}),qm=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...h}=r,m=Wre(r),C={root:{ownerState:{disableUnderline:o}}},w=u??s?Un(u??s,C):C,b=d.root??i.Root??Kre,g=d.input??i.Input??qre;return v.jsx(Tu,{slots:{root:b,input:g},slotProps:w,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...h,classes:m})});qm&&(qm.muiName="Input");function Yre(e){return Ne("MuiInputAdornment",e)}const qE=Fe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var YE;const Xre=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${re(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Qre=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${re(o)}`,s,r&&"hiddenLabel",i&&`size${re(i)}`]};return ye(a,Yre,t)},Jre=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Xre})(_e(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${qE.positionStart}&:not(.${qE.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Zre=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=as()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:h},y=Qre(m);return v.jsx(Iv.Provider,{value:null,children:v.jsx(Jre,{as:s,ownerState:m,className:ie(y.root,i),ref:n,...d,children:typeof o=="string"&&!l?v.jsx(Be,{color:"textSecondary",children:o}):v.jsxs(p.Fragment,{children:[c==="start"?YE||(YE=v.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})});function eoe(e){return Ne("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const toe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${re(r)}`,s],asterisk:[a&&"asterisk"]},c=ye(l,eoe,t);return{...t,...c}},noe=ne(Ure,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ud.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(_e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ym=p.forwardRef(function(t,n){const r=He({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...c}=r,u=as();let d=s;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=vl({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},m=toe(h);return v.jsx(noe,{"data-shrink":d,ref:n,className:ie(m.root,l),...c,ownerState:h,classes:m})});function roe(e){return Ne("MuiLinearProgress",e)}Fe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const tC=4,nC=bi` 0% { left: -35%; right: 100%; @@ -2266,9 +2266,9 @@ Content-Type: `+c.contentType+`\r left: 100%; right: -90%; } -`,roe=typeof tC!="string"?aa` - animation: ${tC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,nC=bi` +`,ooe=typeof nC!="string"?la` + animation: ${nC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,rC=bi` 0% { left: -200%; right: 100%; @@ -2283,9 +2283,9 @@ Content-Type: `+c.contentType+`\r left: 107%; right: -8%; } -`,ooe=typeof nC!="string"?aa` - animation: ${nC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,rC=bi` +`,ioe=typeof rC!="string"?la` + animation: ${rC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,oC=bi` 0% { opacity: 1; background-position: 0 -23px; @@ -2300,9 +2300,9 @@ Content-Type: `+c.contentType+`\r opacity: 1; background-position: -200px -23px; } -`,ioe=typeof rC!="string"?aa` - animation: ${rC} 3s infinite linear; - `:null,soe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${re(r)}`,n],dashed:["dashed",`dashedColor${re(r)}`],bar1:["bar",`barColor${re(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${re(r)}`,n==="buffer"&&`color${re(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ve(o,noe,t)},y1=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?dl(e.palette[t].main,.62):ul(e.palette[t].main,.5),aoe=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${re(n.color)}`],t[n.variant]]}})(_e(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{backgroundColor:y1(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),loe=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${re(n.color)}`]]}})(_e(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>{const n=y1(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),ioe||{animation:`${rC} 3s infinite linear`}),coe=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(_e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${eC}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${eC}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:roe||{animation:`${tC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),uoe=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(_e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:y1(e,t),transition:`transform .${eC}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ooe||{animation:`${nC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),doe=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},d=soe(u),f=Ir(),h={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let y=s-100;f&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&a!==void 0){let y=(a||0)-100;f&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return v.jsxs(aoe,{className:ie(d.root,o),ownerState:u,role:"progressbar",...h,ref:n,...c,children:[l==="buffer"?v.jsx(loe,{className:d.dashed,ownerState:u}):null,v.jsx(coe,{className:d.bar1,ownerState:u,style:m.bar1}),l==="determinate"?null:v.jsx(uoe,{className:d.bar2,ownerState:u,style:m.bar2})]})});function foe(e){return Ne("MuiNativeSelect",e)}const b1=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),poe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${re(n)}`,i&&"iconOpen",r&&"disabled"]};return ve(a,foe,t)},mF=ne("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${b1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),hoe=ne(mF,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:lr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b1.multiple}`]:t.multiple}]}})({}),gF=ne("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${b1.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),moe=ne(gF,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),goe=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=poe(u);return v.jsxs(p.Fragment,{children:[v.jsx(hoe,{ownerState:u,className:ie(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:v.jsx(moe,{as:s,ownerState:u,className:d.icon})]})});var qE;const voe=ne("fieldset",{shouldForwardProp:lr})({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%"}),yoe=ne("legend",{shouldForwardProp:lr})(_e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function boe(e){const{children:t,classes:n,className:r,label:o,notched:i,...s}=e,a=o!=null&&o!=="",l={...e,notched:i,withLabel:a};return v.jsx(voe,{"aria-hidden":!0,className:r,ownerState:l,...s,children:v.jsx(yoe,{ownerState:l,children:a?v.jsx("span",{children:o}):qE||(qE=v.jsx("span",{className:"notranslate",children:"​"}))})})}const woe=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rne,t);return{...t,...r}},Coe=ne(zv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nv})(_e(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Zr.focused} .${Zr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{color:n},style:{[`&.${Zr.focused} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Zr.error} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zr.disabled} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),xoe=ne(boe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(_e(({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}})),Soe=ne(Hv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bv})(_e(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ym=p.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...h}=o,m=woe(o),y=ss(),C=vl({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:y,fullWidth:s,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},b=d.root??i.Root??Coe,g=d.input??i.Input??Soe;return v.jsx(Tu,{slots:{root:b,input:g},renderSuffix:x=>v.jsx(xoe,{ownerState:w,className:m.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=v.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f,...h,classes:{...m,notchedOutline:null}})});Ym&&(Ym.muiName="Input");const Poe=Te(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ioe=Te(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),koe=Te(v.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Toe=Te(v.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Eoe(e){return Ne("MuiRating",e)}const id=je("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function Ooe(e){const t=e.toString().split(".")[1];return t?t.length:0}function jb(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(Ooe(t)))}const Moe=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${re(n)}`,o&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return ve(a,Eoe,t)},Roe=ne("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${id.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${re(n.size)}`],n.readOnly&&t.readOnly]}})(_e(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${id.focusVisible} .${id.iconActive}`]:{outline:"1px solid #999"},[`& .${id.visuallyHidden}`]:HV,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),vF=ne("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),$oe=ne("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(_e(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),_oe=ne("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Jx(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Aoe(e){const{value:t,...n}=e;return v.jsx("span",{...n})}function YE(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:d,labelProps:f,name:h,onBlur:m,onChange:y,onClick:C,onFocus:w,readOnly:b,ownerState:g,ratingValue:x,ratingValueRounded:P}=e,I=s?d===x:d<=x,T=d<=a,M=d<=o,k=d===P,S=`${h}-${yt()}`,R=v.jsx($oe,{as:c,value:d,className:ie(t.icon,I?t.iconFilled:t.iconEmpty,T&&t.iconHover,M&&t.iconFocus,u&&t.iconActive),ownerState:{...g,iconEmpty:!I,iconFilled:I,iconHover:T,iconFocus:M,iconActive:u},children:r&&!I?r:l});return b?v.jsx("span",{...f,children:R}):v.jsxs(p.Fragment,{children:[v.jsxs(vF,{ownerState:{...g,emptyValueFocused:void 0},htmlFor:S,...f,children:[R,v.jsx("span",{className:t.visuallyHidden,children:i(d)})]}),v.jsx("input",{className:t.visuallyHidden,onFocus:w,onBlur:m,onChange:y,onClick:C,disabled:n,value:d,id:S,type:"radio",name:h,checked:k})]})}const Doe=v.jsx(koe,{fontSize:"inherit"}),Loe=v.jsx(Toe,{fontSize:"inherit"});function Foe(e){return`${e||"0"} Star${e!==1?"s":""}`}const Xm=p.forwardRef(function(t,n){const r=He({name:"MuiRating",props:t}),{component:o="span",className:i,defaultValue:s=null,disabled:a=!1,emptyIcon:l=Loe,emptyLabelText:c="Empty",getLabelText:u=Foe,highlightSelectedOnly:d=!1,icon:f=Doe,IconContainerComponent:h=Aoe,max:m=5,name:y,onChange:C,onChangeActive:w,onMouseLeave:b,onMouseMove:g,precision:x=1,readOnly:P=!1,size:I="medium",value:T,...M}=r,k=yt(y),[S,R]=Gs({controlled:T,default:s,name:"Rating"}),O=jb(S,x),A=Ir(),[{hover:D,focus:_},$]=p.useState({hover:-1,focus:-1});let L=O;D!==-1&&(L=D),_!==-1&&(L=_);const[F,j]=p.useState(!1),N=p.useRef(),z=ht(N,n),V=Z=>{g&&g(Z);const le=N.current,{right:he,left:ye,width:pe}=le.getBoundingClientRect();let Fe;A?Fe=(he-Z.clientX)/pe:Fe=(Z.clientX-ye)/pe;let me=jb(m*Fe+x/2,x);me=v_(me,x,m),$(Ae=>Ae.hover===me&&Ae.focus===me?Ae:{hover:me,focus:me}),j(!1),w&&D!==me&&w(Z,me)},K=Z=>{b&&b(Z);const le=-1;$({hover:le,focus:le}),w&&D!==le&&w(Z,le)},H=Z=>{let le=Z.target.value===""?null:parseFloat(Z.target.value);D!==-1&&(le=D),R(le),C&&C(Z,le)},G=Z=>{Z.clientX===0&&Z.clientY===0||($({hover:-1,focus:-1}),R(null),C&&parseFloat(Z.target.value)===O&&C(Z,null))},Y=Z=>{Gc(Z.target)&&j(!0);const le=parseFloat(Z.target.value);$(he=>({hover:he.hover,focus:le}))},ee=Z=>{if(D!==-1)return;Gc(Z.target)||j(!1);const le=-1;$(he=>({hover:he.hover,focus:le}))},[W,Q]=p.useState(!1),U={...r,component:o,defaultValue:s,disabled:a,emptyIcon:l,emptyLabelText:c,emptyValueFocused:W,focusVisible:F,getLabelText:u,icon:f,IconContainerComponent:h,max:m,precision:x,readOnly:P,size:I},J=Moe(U);return v.jsxs(Roe,{as:o,ref:z,onMouseMove:V,onMouseLeave:K,className:ie(J.root,i,P&&"MuiRating-readOnly"),ownerState:U,role:P?"img":null,"aria-label":P?u(L):null,...M,children:[Array.from(new Array(m)).map((Z,le)=>{const he=le+1,ye={classes:J,disabled:a,emptyIcon:l,focus:_,getLabelText:u,highlightSelectedOnly:d,hover:D,icon:f,IconContainerComponent:h,name:k,onBlur:ee,onChange:H,onClick:G,onFocus:Y,ratingValue:L,ratingValueRounded:O,readOnly:P,ownerState:U},pe=he===Math.ceil(L)&&(D!==-1||_!==-1);if(x<1){const Fe=Array.from(new Array(1/x));return v.jsx(_oe,{className:ie(J.decimal,pe&&J.iconActive),ownerState:U,iconActive:pe,children:Fe.map((me,Ae)=>{const Ve=jb(he-1+(Ae+1)*x,x);return v.jsx(YE,{...ye,isActive:!1,itemValue:Ve,labelProps:{style:Fe.length-1===Ae?{}:{width:Ve===L?`${(Ae+1)*x*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Ve)})},he)}return v.jsx(YE,{...ye,isActive:pe,itemValue:he},he)}),!P&&!a&&v.jsxs(vF,{className:ie(J.label,J.labelEmptyValue),ownerState:U,children:[v.jsx("input",{className:J.visuallyHidden,value:"",id:`${k}-empty`,type:"radio",name:k,checked:O==null,onFocus:()=>Q(!0),onBlur:()=>Q(!1),onChange:H}),v.jsx("span",{className:J.visuallyHidden,children:c})]})]})});function joe(e){return Ne("MuiSelect",e)}const sd=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var XE;const Noe=ne(mF,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sd.select}`]:t.select},{[`&.${sd.select}`]:t[n.variant]},{[`&.${sd.error}`]:t.error},{[`&.${sd.multiple}`]:t.multiple}]}})({[`&.${sd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Boe=ne(gF,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),zoe=ne("input",{shouldForwardProp:e=>Jx(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 QE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Hoe(e){return e==null||typeof e=="string"&&!e.trim()}const Voe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${re(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(a,joe,t)},Uoe=p.forwardRef(function(t,n){var lt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:y,labelId:C,MenuProps:w={},multiple:b,name:g,onBlur:x,onChange:P,onClose:I,onFocus:T,onOpen:M,open:k,readOnly:S,renderValue:R,SelectDisplayProps:O={},tabIndex:A,type:D,value:_,variant:$="standard",...L}=t,[F,j]=Gs({controlled:_,default:u,name:"Select"}),[N,z]=Gs({controlled:k,default:c,name:"Select"}),V=p.useRef(null),K=p.useRef(null),[H,G]=p.useState(null),{current:Y}=p.useRef(k!=null),[ee,W]=p.useState(),Q=ht(n,y),U=p.useCallback(fe=>{K.current=fe,fe&&G(fe)},[]),J=H==null?void 0:H.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{K.current.focus()},node:V.current,value:F}),[F]),p.useEffect(()=>{c&&N&&H&&!Y&&(W(s?null:J.clientWidth),K.current.focus())},[H,s]),p.useEffect(()=>{i&&K.current.focus()},[i]),p.useEffect(()=>{if(!C)return;const fe=Wt(K.current).getElementById(C);if(fe){const ke=()=>{getSelection().isCollapsed&&K.current.focus()};return fe.addEventListener("click",ke),()=>{fe.removeEventListener("click",ke)}}},[C]);const Z=(fe,ke)=>{fe?M&&M(ke):I&&I(ke),Y||(W(s?null:J.clientWidth),z(fe))},le=fe=>{fe.button===0&&(fe.preventDefault(),K.current.focus(),Z(!0,fe))},he=fe=>{Z(!1,fe)},ye=p.Children.toArray(a),pe=fe=>{const ke=ye.find(Ke=>Ke.props.value===fe.target.value);ke!==void 0&&(j(ke.props.value),P&&P(fe,ke))},Fe=fe=>ke=>{let Ke;if(ke.currentTarget.hasAttribute("tabindex")){if(b){Ke=Array.isArray(F)?F.slice():[];const mt=F.indexOf(fe.props.value);mt===-1?Ke.push(fe.props.value):Ke.splice(mt,1)}else Ke=fe.props.value;if(fe.props.onClick&&fe.props.onClick(ke),F!==Ke&&(j(Ke),P)){const mt=ke.nativeEvent||ke,Kn=new mt.constructor(mt.type,mt);Object.defineProperty(Kn,"target",{writable:!0,value:{value:Ke,name:g}}),P(Kn,fe)}b||Z(!1,ke)}},me=fe=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(fe.key)&&(fe.preventDefault(),Z(!0,fe))},Ae=H!==null&&N,Ve=fe=>{!Ae&&x&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:F,name:g}}),x(fe))};delete L["aria-invalid"];let De,X;const te=[];let oe=!1;(Gm({value:F})||f)&&(R?De=R(F):oe=!0);const de=ye.map(fe=>{if(!p.isValidElement(fe))return null;let ke;if(b){if(!Array.isArray(F))throw new Error(Qi(2));ke=F.some(Ke=>QE(Ke,fe.props.value)),ke&&oe&&te.push(fe.props.children)}else ke=QE(F,fe.props.value),ke&&oe&&(X=fe.props.children);return p.cloneElement(fe,{"aria-selected":ke?"true":"false",onClick:Fe(fe),onKeyUp:Ke=>{Ke.key===" "&&Ke.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(Ke)},role:"option",selected:ke,value:void 0,"data-value":fe.props.value})});oe&&(b?te.length===0?De=null:De=te.reduce((fe,ke,Ke)=>(fe.push(ke),Ke{const{classes:t}=e;return t},w1={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lr(e)&&e!=="variant",slot:"Root"},Woe=ne(Km,w1)(""),Koe=ne(Ym,w1)(""),qoe=ne(Wm,w1)(""),nu=p.forwardRef(function(t,n){const r=He({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=cF,id:d,input:f,inputProps:h,label:m,labelId:y,MenuProps:C,multiple:w=!1,native:b=!1,onClose:g,onOpen:x,open:P,renderValue:I,SelectDisplayProps:T,variant:M="outlined",...k}=r,S=b?goe:Uoe,R=ss(),O=vl({props:r,muiFormControl:R,states:["variant","error"]}),A=O.variant||M,D={...r,variant:A,classes:s},_=Goe(D),{root:$,...L}=_,F=f||{standard:v.jsx(Woe,{ownerState:D}),outlined:v.jsx(Koe,{label:m,ownerState:D}),filled:v.jsx(qoe,{ownerState:D})}[A],j=ht(n,fl(F));return v.jsx(p.Fragment,{children:p.cloneElement(F,{inputComponent:S,inputProps:{children:i,error:O.error,IconComponent:u,variant:A,type:void 0,multiple:w,...b?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:C,onClose:g,onOpen:x,open:P,renderValue:I,SelectDisplayProps:{id:d,...T}},...h,classes:h?Un(L,h.classes):L,...f?f.props.inputProps:{}},...(w&&b||c)&&A==="outlined"?{notched:!0}:{},ref:j,className:ie(F.props.className,a,_.root),...!f&&{variant:A},...k})})});nu.muiName="Select";function Yoe(e){return Ne("MuiSkeleton",e)}je("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Xoe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return ve({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},Yoe,t)},oC=bi` +`,soe=typeof oC!="string"?la` + animation: ${oC} 3s infinite linear; + `:null,aoe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${re(r)}`,n],dashed:["dashed",`dashedColor${re(r)}`],bar1:["bar",`barColor${re(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${re(r)}`,n==="buffer"&&`color${re(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ye(o,roe,t)},w1=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?dl(e.palette[t].main,.62):ul(e.palette[t].main,.5),loe=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${re(n.color)}`],t[n.variant]]}})(_e(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{backgroundColor:w1(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),coe=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${re(n.color)}`]]}})(_e(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>{const n=w1(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),soe||{animation:`${oC} 3s infinite linear`}),uoe=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(_e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${tC}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${tC}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ooe||{animation:`${nC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),doe=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(_e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Ut()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:w1(e,t),transition:`transform .${tC}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ioe||{animation:`${rC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),foe=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},d=aoe(u),f=Ir(),h={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let y=s-100;f&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&a!==void 0){let y=(a||0)-100;f&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return v.jsxs(loe,{className:ie(d.root,o),ownerState:u,role:"progressbar",...h,ref:n,...c,children:[l==="buffer"?v.jsx(coe,{className:d.dashed,ownerState:u}):null,v.jsx(uoe,{className:d.bar1,ownerState:u,style:m.bar1}),l==="determinate"?null:v.jsx(doe,{className:d.bar2,ownerState:u,style:m.bar2})]})});function poe(e){return Ne("MuiNativeSelect",e)}const C1=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hoe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${re(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(a,poe,t)},vF=ne("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${C1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),moe=ne(vF,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:lr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${C1.multiple}`]:t.multiple}]}})({}),yF=ne("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${C1.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),goe=ne(yF,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),voe=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=hoe(u);return v.jsxs(p.Fragment,{children:[v.jsx(moe,{ownerState:u,className:ie(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:v.jsx(goe,{as:s,ownerState:u,className:d.icon})]})});var XE;const yoe=ne("fieldset",{shouldForwardProp:lr})({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%"}),boe=ne("legend",{shouldForwardProp:lr})(_e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function woe(e){const{children:t,classes:n,className:r,label:o,notched:i,...s}=e,a=o!=null&&o!=="",l={...e,notched:i,withLabel:a};return v.jsx(yoe,{"aria-hidden":!0,className:r,ownerState:l,...s,children:v.jsx(boe,{ownerState:l,children:a?v.jsx("span",{children:o}):XE||(XE=v.jsx("span",{className:"notranslate",children:"​"}))})})}const Coe=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},one,t);return{...t,...r}},xoe=ne(Hv,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bv})(_e(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Zr.focused} .${Zr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ut()).map(([n])=>({props:{color:n},style:{[`&.${Zr.focused} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Zr.error} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zr.disabled} .${Zr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Soe=ne(woe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(_e(({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}})),Poe=ne(Vv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zv})(_e(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Xm=p.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...h}=o,m=Coe(o),y=as(),C=vl({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:y,fullWidth:s,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},b=d.root??i.Root??xoe,g=d.input??i.Input??Poe;return v.jsx(Tu,{slots:{root:b,input:g},renderSuffix:x=>v.jsx(Soe,{ownerState:w,className:m.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=v.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f,...h,classes:{...m,notchedOutline:null}})});Xm&&(Xm.muiName="Input");const Ioe=Te(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),koe=Te(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Toe=Te(v.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Eoe=Te(v.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Ooe(e){return Ne("MuiRating",e)}const id=Fe("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function Moe(e){const t=e.toString().split(".")[1];return t?t.length:0}function Nb(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(Moe(t)))}const Roe=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${re(n)}`,o&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return ye(a,Ooe,t)},$oe=ne("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${id.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${re(n.size)}`],n.readOnly&&t.readOnly]}})(_e(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${id.focusVisible} .${id.iconActive}`]:{outline:"1px solid #999"},[`& .${id.visuallyHidden}`]:VV,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),bF=ne("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),_oe=ne("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(_e(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),Aoe=ne("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>eS(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Doe(e){const{value:t,...n}=e;return v.jsx("span",{...n})}function QE(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:d,labelProps:f,name:h,onBlur:m,onChange:y,onClick:C,onFocus:w,readOnly:b,ownerState:g,ratingValue:x,ratingValueRounded:P}=e,I=s?d===x:d<=x,T=d<=a,M=d<=o,k=d===P,S=`${h}-${yt()}`,R=v.jsx(_oe,{as:c,value:d,className:ie(t.icon,I?t.iconFilled:t.iconEmpty,T&&t.iconHover,M&&t.iconFocus,u&&t.iconActive),ownerState:{...g,iconEmpty:!I,iconFilled:I,iconHover:T,iconFocus:M,iconActive:u},children:r&&!I?r:l});return b?v.jsx("span",{...f,children:R}):v.jsxs(p.Fragment,{children:[v.jsxs(bF,{ownerState:{...g,emptyValueFocused:void 0},htmlFor:S,...f,children:[R,v.jsx("span",{className:t.visuallyHidden,children:i(d)})]}),v.jsx("input",{className:t.visuallyHidden,onFocus:w,onBlur:m,onChange:y,onClick:C,disabled:n,value:d,id:S,type:"radio",name:h,checked:k})]})}const Loe=v.jsx(Toe,{fontSize:"inherit"}),Foe=v.jsx(Eoe,{fontSize:"inherit"});function joe(e){return`${e||"0"} Star${e!==1?"s":""}`}const Qm=p.forwardRef(function(t,n){const r=He({name:"MuiRating",props:t}),{component:o="span",className:i,defaultValue:s=null,disabled:a=!1,emptyIcon:l=Foe,emptyLabelText:c="Empty",getLabelText:u=joe,highlightSelectedOnly:d=!1,icon:f=Loe,IconContainerComponent:h=Doe,max:m=5,name:y,onChange:C,onChangeActive:w,onMouseLeave:b,onMouseMove:g,precision:x=1,readOnly:P=!1,size:I="medium",value:T,...M}=r,k=yt(y),[S,R]=Ks({controlled:T,default:s,name:"Rating"}),O=Nb(S,x),A=Ir(),[{hover:D,focus:_},$]=p.useState({hover:-1,focus:-1});let L=O;D!==-1&&(L=D),_!==-1&&(L=_);const[F,j]=p.useState(!1),N=p.useRef(),z=mt(N,n),V=X=>{g&&g(X);const ae=N.current,{right:fe,left:me,width:he}=ae.getBoundingClientRect();let je;A?je=(fe-X.clientX)/he:je=(X.clientX-me)/he;let ge=Nb(m*je+x/2,x);ge=b_(ge,x,m),$(Ae=>Ae.hover===ge&&Ae.focus===ge?Ae:{hover:ge,focus:ge}),j(!1),w&&D!==ge&&w(X,ge)},K=X=>{b&&b(X);const ae=-1;$({hover:ae,focus:ae}),w&&D!==ae&&w(X,ae)},H=X=>{let ae=X.target.value===""?null:parseFloat(X.target.value);D!==-1&&(ae=D),R(ae),C&&C(X,ae)},G=X=>{X.clientX===0&&X.clientY===0||($({hover:-1,focus:-1}),R(null),C&&parseFloat(X.target.value)===O&&C(X,null))},q=X=>{Gc(X.target)&&j(!0);const ae=parseFloat(X.target.value);$(fe=>({hover:fe.hover,focus:ae}))},ee=X=>{if(D!==-1)return;Gc(X.target)||j(!1);const ae=-1;$(fe=>({hover:fe.hover,focus:ae}))},[W,Z]=p.useState(!1),U={...r,component:o,defaultValue:s,disabled:a,emptyIcon:l,emptyLabelText:c,emptyValueFocused:W,focusVisible:F,getLabelText:u,icon:f,IconContainerComponent:h,max:m,precision:x,readOnly:P,size:I},J=Roe(U);return v.jsxs($oe,{as:o,ref:z,onMouseMove:V,onMouseLeave:K,className:ie(J.root,i,P&&"MuiRating-readOnly"),ownerState:U,role:P?"img":null,"aria-label":P?u(L):null,...M,children:[Array.from(new Array(m)).map((X,ae)=>{const fe=ae+1,me={classes:J,disabled:a,emptyIcon:l,focus:_,getLabelText:u,highlightSelectedOnly:d,hover:D,icon:f,IconContainerComponent:h,name:k,onBlur:ee,onChange:H,onClick:G,onFocus:q,ratingValue:L,ratingValueRounded:O,readOnly:P,ownerState:U},he=fe===Math.ceil(L)&&(D!==-1||_!==-1);if(x<1){const je=Array.from(new Array(1/x));return v.jsx(Aoe,{className:ie(J.decimal,he&&J.iconActive),ownerState:U,iconActive:he,children:je.map((ge,Ae)=>{const Ve=Nb(fe-1+(Ae+1)*x,x);return v.jsx(QE,{...me,isActive:!1,itemValue:Ve,labelProps:{style:je.length-1===Ae?{}:{width:Ve===L?`${(Ae+1)*x*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Ve)})},fe)}return v.jsx(QE,{...me,isActive:he,itemValue:fe},fe)}),!P&&!a&&v.jsxs(bF,{className:ie(J.label,J.labelEmptyValue),ownerState:U,children:[v.jsx("input",{className:J.visuallyHidden,value:"",id:`${k}-empty`,type:"radio",name:k,checked:O==null,onFocus:()=>Z(!0),onBlur:()=>Z(!1),onChange:H}),v.jsx("span",{className:J.visuallyHidden,children:c})]})]})});function Noe(e){return Ne("MuiSelect",e)}const sd=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var JE;const Boe=ne(vF,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sd.select}`]:t.select},{[`&.${sd.select}`]:t[n.variant]},{[`&.${sd.error}`]:t.error},{[`&.${sd.multiple}`]:t.multiple}]}})({[`&.${sd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zoe=ne(yF,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),Hoe=ne("input",{shouldForwardProp:e=>eS(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 ZE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Voe(e){return e==null||typeof e=="string"&&!e.trim()}const Uoe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${re(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(a,Noe,t)},Goe=p.forwardRef(function(t,n){var lt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:y,labelId:C,MenuProps:w={},multiple:b,name:g,onBlur:x,onChange:P,onClose:I,onFocus:T,onOpen:M,open:k,readOnly:S,renderValue:R,SelectDisplayProps:O={},tabIndex:A,type:D,value:_,variant:$="standard",...L}=t,[F,j]=Ks({controlled:_,default:u,name:"Select"}),[N,z]=Ks({controlled:k,default:c,name:"Select"}),V=p.useRef(null),K=p.useRef(null),[H,G]=p.useState(null),{current:q}=p.useRef(k!=null),[ee,W]=p.useState(),Z=mt(n,y),U=p.useCallback(pe=>{K.current=pe,pe&&G(pe)},[]),J=H==null?void 0:H.parentNode;p.useImperativeHandle(Z,()=>({focus:()=>{K.current.focus()},node:V.current,value:F}),[F]),p.useEffect(()=>{c&&N&&H&&!q&&(W(s?null:J.clientWidth),K.current.focus())},[H,s]),p.useEffect(()=>{i&&K.current.focus()},[i]),p.useEffect(()=>{if(!C)return;const pe=Wt(K.current).getElementById(C);if(pe){const ke=()=>{getSelection().isCollapsed&&K.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[C]);const X=(pe,ke)=>{pe?M&&M(ke):I&&I(ke),q||(W(s?null:J.clientWidth),z(pe))},ae=pe=>{pe.button===0&&(pe.preventDefault(),K.current.focus(),X(!0,pe))},fe=pe=>{X(!1,pe)},me=p.Children.toArray(a),he=pe=>{const ke=me.find(Ke=>Ke.props.value===pe.target.value);ke!==void 0&&(j(ke.props.value),P&&P(pe,ke))},je=pe=>ke=>{let Ke;if(ke.currentTarget.hasAttribute("tabindex")){if(b){Ke=Array.isArray(F)?F.slice():[];const gt=F.indexOf(pe.props.value);gt===-1?Ke.push(pe.props.value):Ke.splice(gt,1)}else Ke=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),F!==Ke&&(j(Ke),P)){const gt=ke.nativeEvent||ke,Kn=new gt.constructor(gt.type,gt);Object.defineProperty(Kn,"target",{writable:!0,value:{value:Ke,name:g}}),P(Kn,pe)}b||X(!1,ke)}},ge=pe=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),X(!0,pe))},Ae=H!==null&&N,Ve=pe=>{!Ae&&x&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:F,name:g}}),x(pe))};delete L["aria-invalid"];let De,Q;const te=[];let oe=!1;(Wm({value:F})||f)&&(R?De=R(F):oe=!0);const de=me.map(pe=>{if(!p.isValidElement(pe))return null;let ke;if(b){if(!Array.isArray(F))throw new Error(Ji(2));ke=F.some(Ke=>ZE(Ke,pe.props.value)),ke&&oe&&te.push(pe.props.children)}else ke=ZE(F,pe.props.value),ke&&oe&&(Q=pe.props.children);return p.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:je(pe),onKeyUp:Ke=>{Ke.key===" "&&Ke.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Ke)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});oe&&(b?te.length===0?De=null:De=te.reduce((pe,ke,Ke)=>(pe.push(ke),Ke{const{classes:t}=e;return t},x1={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lr(e)&&e!=="variant",slot:"Root"},Koe=ne(qm,x1)(""),qoe=ne(Xm,x1)(""),Yoe=ne(Km,x1)(""),nu=p.forwardRef(function(t,n){const r=He({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=dF,id:d,input:f,inputProps:h,label:m,labelId:y,MenuProps:C,multiple:w=!1,native:b=!1,onClose:g,onOpen:x,open:P,renderValue:I,SelectDisplayProps:T,variant:M="outlined",...k}=r,S=b?voe:Goe,R=as(),O=vl({props:r,muiFormControl:R,states:["variant","error"]}),A=O.variant||M,D={...r,variant:A,classes:s},_=Woe(D),{root:$,...L}=_,F=f||{standard:v.jsx(Koe,{ownerState:D}),outlined:v.jsx(qoe,{label:m,ownerState:D}),filled:v.jsx(Yoe,{ownerState:D})}[A],j=mt(n,fl(F));return v.jsx(p.Fragment,{children:p.cloneElement(F,{inputComponent:S,inputProps:{children:i,error:O.error,IconComponent:u,variant:A,type:void 0,multiple:w,...b?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:C,onClose:g,onOpen:x,open:P,renderValue:I,SelectDisplayProps:{id:d,...T}},...h,classes:h?Un(L,h.classes):L,...f?f.props.inputProps:{}},...(w&&b||c)&&A==="outlined"?{notched:!0}:{},ref:j,className:ie(F.props.className,a,_.root),...!f&&{variant:A},...k})})});nu.muiName="Select";function Xoe(e){return Ne("MuiSkeleton",e)}Fe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Qoe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return ye({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},Xoe,t)},iC=bi` 0% { opacity: 1; } @@ -2314,7 +2314,7 @@ Content-Type: `+c.contentType+`\r 100% { opacity: 1; } -`,iC=bi` +`,sC=bi` 0% { transform: translateX(-100%); } @@ -2327,23 +2327,23 @@ Content-Type: `+c.contentType+`\r 100% { transform: translateX(100%); } -`,Qoe=typeof oC!="string"?aa` - animation: ${oC} 2s ease-in-out 0.5s infinite; - `:null,Joe=typeof iC!="string"?aa` +`,Joe=typeof iC!="string"?la` + animation: ${iC} 2s ease-in-out 0.5s infinite; + `:null,Zoe=typeof sC!="string"?la` &::after { - animation: ${iC} 2s linear 0.5s infinite; + animation: ${sC} 2s linear 0.5s infinite; } - `:null,Zoe=ne("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(_e(({theme:e})=>{const t=q6(e.shape.borderRadius)||"px",n=Y6(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:We(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Qoe||{animation:`${oC} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + `:null,eie=ne("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(_e(({theme:e})=>{const t=Y6(e.shape.borderRadius)||"px",n=X6(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:We(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Joe||{animation:`${iC} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 90deg, transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Joe||{"&::after":{animation:`${iC} 2s linear 0.5s infinite`}}}]}})),eie=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:s,variant:c,hasChildren:!!d.children},h=Xoe(f);return v.jsx(Zoe,{as:s,ref:n,className:ie(h.root,i),ownerState:f,...d,style:{width:u,height:a,...l}})});function tie(e){return Ne("MuiTooltip",e)}const Zt=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function nie(e){return Math.round(e*1e5)/1e5}const rie=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${re(i.split("-")[0])}`],arrow:["arrow"]};return ve(s,tie,t)},oie=ne(gl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(_e(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Zt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),iie=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${re(n.placement.split("-")[0])}`]]}})(_e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:We(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,[`.${Zt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Zt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${nie(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),sie=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(_e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:We(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rh=!1;const JE=new fv;let ad={x:0,y:0};function oh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const yF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:y=0,enterTouchDelay:C=700,followCursor:w=!1,id:b,leaveDelay:g=0,leaveTouchDelay:x=1500,onClose:P,onOpen:I,open:T,placement:M="bottom",PopperComponent:k,PopperProps:S={},slotProps:R={},slots:O={},title:A,TransitionComponent:D,TransitionProps:_,...$}=r,L=p.isValidElement(i)?i:v.jsx("span",{children:i}),F=Su(),j=Ir(),[N,z]=p.useState(),[V,K]=p.useState(null),H=p.useRef(!1),G=f||w,Y=uo(),ee=uo(),W=uo(),Q=uo(),[U,J]=Gs({controlled:T,default:!1,name:"Tooltip",state:"open"});let Z=U;const le=yt(b),he=p.useRef(),ye=nt(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),Q.clear()});p.useEffect(()=>ye,[ye]);const pe=qe=>{JE.clear(),rh=!0,J(!0),I&&!Z&&I(qe)},Fe=nt(qe=>{JE.start(800+g,()=>{rh=!1}),J(!1),P&&Z&&P(qe),Y.start(F.transitions.duration.shortest,()=>{H.current=!1})}),me=qe=>{H.current&&qe.type!=="touchstart"||(N&&N.removeAttribute("title"),ee.clear(),W.clear(),m||rh&&y?ee.start(rh?y:m,()=>{pe(qe)}):pe(qe))},Ae=qe=>{ee.clear(),W.start(g,()=>{Fe(qe)})},[,Ve]=p.useState(!1),De=qe=>{Gc(qe.target)||(Ve(!1),Ae(qe))},X=qe=>{N||z(qe.currentTarget),Gc(qe.target)&&(Ve(!0),me(qe))},te=qe=>{H.current=!0;const Qn=L.props;Qn.onTouchStart&&Qn.onTouchStart(qe)},oe=qe=>{te(qe),W.clear(),Y.clear(),ye(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Q.start(C,()=>{document.body.style.WebkitUserSelect=he.current,me(qe)})},de=qe=>{L.props.onTouchEnd&&L.props.onTouchEnd(qe),ye(),W.start(x,()=>{Fe(qe)})};p.useEffect(()=>{if(!Z)return;function qe(Qn){Qn.key==="Escape"&&Fe(Qn)}return document.addEventListener("keydown",qe),()=>{document.removeEventListener("keydown",qe)}},[Fe,Z]);const ge=ht(fl(L),z,n);!A&&A!==0&&(Z=!1);const Se=p.useRef(),Ee=qe=>{const Qn=L.props;Qn.onMouseMove&&Qn.onMouseMove(qe),ad={x:qe.clientX,y:qe.clientY},Se.current&&Se.current.update()},Oe={},Ce=typeof A=="string";c?(Oe.title=!Z&&Ce&&!d?A:null,Oe["aria-describedby"]=Z?le:null):(Oe["aria-label"]=Ce?A:null,Oe["aria-labelledby"]=Z&&!Ce?le:null);const we={...Oe,...$,...L.props,className:ie($.className,L.props.className),onTouchStart:te,ref:ge,...w?{onMouseMove:Ee}:{}},Le={};h||(we.onTouchStart=oe,we.onTouchEnd=de),d||(we.onMouseOver=oh(me,we.onMouseOver),we.onMouseLeave=oh(Ae,we.onMouseLeave),G||(Le.onMouseOver=me,Le.onMouseLeave=Ae)),u||(we.onFocus=oh(X,we.onFocus),we.onBlur=oh(De,we.onBlur),G||(Le.onFocus=X,Le.onBlur=De));const lt={...r,isRtl:j,arrow:o,disableInteractive:G,placement:M,PopperComponentProp:k,touch:H.current},fe=typeof R.popper=="function"?R.popper(lt):R.popper,ke=p.useMemo(()=>{var Qn,ma;let qe=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return(Qn=S.popperOptions)!=null&&Qn.modifiers&&(qe=qe.concat(S.popperOptions.modifiers)),(ma=fe==null?void 0:fe.popperOptions)!=null&&ma.modifiers&&(qe=qe.concat(fe.popperOptions.modifiers)),{...S.popperOptions,...fe==null?void 0:fe.popperOptions,modifiers:qe}},[V,S.popperOptions,fe==null?void 0:fe.popperOptions]),Ke=rie(lt),mt=typeof R.transition=="function"?R.transition(lt):R.transition,Kn={slots:{popper:a.Popper,transition:a.Transition??D,tooltip:a.Tooltip,arrow:a.Arrow,...O},slotProps:{arrow:R.arrow??l.arrow,popper:{...S,...fe??l.popper},tooltip:R.tooltip??l.tooltip,transition:{..._,...mt??l.transition}}},[qn,_n]=hn("popper",{elementType:oie,externalForwardedProps:Kn,ownerState:lt,className:ie(Ke.popper,S==null?void 0:S.className)}),[Yn,Tr]=hn("transition",{elementType:xf,externalForwardedProps:Kn,ownerState:lt}),[cr,Xn]=hn("tooltip",{elementType:iie,className:Ke.tooltip,externalForwardedProps:Kn,ownerState:lt}),[Yr,xi]=hn("arrow",{elementType:sie,className:Ke.arrow,externalForwardedProps:Kn,ownerState:lt,ref:K});return v.jsxs(p.Fragment,{children:[p.cloneElement(L,we),v.jsx(qn,{as:k??gl,placement:M,anchorEl:w?{getBoundingClientRect:()=>({top:ad.y,left:ad.x,right:ad.x,bottom:ad.y,width:0,height:0})}:N,popperRef:Se,open:N?Z:!1,id:le,transition:!0,...Le,..._n,popperOptions:ke,children:({TransitionProps:qe})=>v.jsx(Yn,{timeout:F.transitions.duration.shorter,...qe,...Tr,children:v.jsxs(cr,{...Xn,children:[A,o?v.jsx(Yr,{...xi}):null]})})})]})}),aie=p.createContext(),lie=p.createContext();function cie(e){return Ne("MuiTableCell",e)}const uie=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),die=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${re(r)}`,o!=="normal"&&`padding${re(o)}`,`size${re(i)}`]};return ve(a,cie,t)},fie=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${re(n.size)}`],n.padding!=="normal"&&t[`padding${re(n.padding)}`],n.align!=="inherit"&&t[`align${re(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(_e(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?dl(We(e.palette.divider,1),.88):ul(We(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${uie.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),sC=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d,...f}=r,h=p.useContext(aie),m=p.useContext(lie),y=m&&m.variant==="head";let C;s?C=s:C=y?"th":"td";let w=l;C==="td"?w=void 0:!w&&y&&(w="col");const b=d||m&&m.variant,g={...r,align:o,component:C,padding:a||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&h&&h.stickyHeader,variant:b},x=die(g);let P=null;return u&&(P=u==="asc"?"ascending":"descending"),v.jsx(fie,{as:C,ref:n,className:ie(x.root,i),"aria-sort":P,scope:w,ownerState:g,...f})}),pie=Te(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hie=Te(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),mie=p.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:s,nextIconButtonProps:a,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:h={},slotProps:m={},...y}=t,C=Ir(),w=z=>{l(z,0)},b=z=>{l(z,c-1)},g=z=>{l(z,c+1)},x=z=>{l(z,Math.max(0,Math.ceil(o/u)-1))},P=h.firstButton??an,I=h.lastButton??an,T=h.nextButton??an,M=h.previousButton??an,k=h.firstButtonIcon??Poe,S=h.lastButtonIcon??Ioe,R=h.nextButtonIcon??hie,O=h.previousButtonIcon??pie,A=C?I:P,D=C?T:M,_=C?M:T,$=C?P:I,L=C?m.lastButton:m.firstButton,F=C?m.nextButton:m.previousButton,j=C?m.previousButton:m.nextButton,N=C?m.firstButton:m.lastButton;return v.jsxs("div",{ref:n,...y,children:[d&&v.jsx(A,{onClick:w,disabled:i||c===0,"aria-label":s("first",c),title:s("first",c),...L,children:C?v.jsx(S,{...m.lastButtonIcon}):v.jsx(k,{...m.firstButtonIcon})}),v.jsx(D,{onClick:b,disabled:i||c===0,color:"inherit","aria-label":s("previous",c),title:s("previous",c),...F??r,children:C?v.jsx(R,{...m.nextButtonIcon}):v.jsx(O,{...m.previousButtonIcon})}),v.jsx(_,{onClick:g,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":s("next",c),title:s("next",c),...j??a,children:C?v.jsx(O,{...m.previousButtonIcon}):v.jsx(R,{...m.nextButtonIcon})}),f&&v.jsx($,{onClick:x,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":s("last",c),title:s("last",c),...N,children:C?v.jsx(k,{...m.firstButtonIcon}):v.jsx(S,{...m.lastButtonIcon})})]})});function gie(e){return Ne("MuiTablePagination",e)}const Va=je("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var ZE;const vie=ne(sC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(_e(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),yie=ne(R_,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Va.actions}`]:t.actions,...t.toolbar})})(_e(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Va.actions}`]:{flexShrink:0,marginLeft:20}}))),bie=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),wie=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(_e(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Cie=ne(nu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Va.selectIcon}`]:t.selectIcon,[`& .${Va.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Va.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),xie=ne(On,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Sie=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(_e(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Pie({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Iie(e){return`Go to ${e} page`}const kie=e=>{const{classes:t}=e;return ve({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},gie,t)},Tie=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=mie,backIconButtonProps:i,className:s,colSpan:a,component:l=sC,count:c,disabled:u=!1,getItemAriaLabel:d=Iie,labelDisplayedRows:f=Pie,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:y,onRowsPerPageChange:C,page:w,rowsPerPage:b,rowsPerPageOptions:g=[10,25,50,100],SelectProps:x={},showFirstButton:P=!1,showLastButton:I=!1,slotProps:T={},slots:M={},...k}=r,S=r,R=kie(S),O=(T==null?void 0:T.select)??x,A=O.native?"option":xie;let D;(l===sC||l==="td")&&(D=a||1e3);const _=yt(O.id),$=yt(O.labelId),L=()=>c===-1?(w+1)*b:b===-1?c:Math.min(c,(w+1)*b);return v.jsx(vie,{colSpan:D,ref:n,as:l,ownerState:S,className:ie(R.root,s),...k,children:v.jsxs(yie,{className:R.toolbar,children:[v.jsx(bie,{className:R.spacer}),g.length>1&&v.jsx(wie,{className:R.selectLabel,id:$,children:h}),g.length>1&&v.jsx(Cie,{variant:"standard",...!O.variant&&{input:ZE||(ZE=v.jsx(Tu,{}))},value:b,onChange:C,id:_,labelId:$,...O,classes:{...O.classes,root:ie(R.input,R.selectRoot,(O.classes||{}).root),select:ie(R.select,(O.classes||{}).select),icon:ie(R.selectIcon,(O.classes||{}).icon)},disabled:u,children:g.map(F=>p.createElement(A,{...!Im(A)&&{ownerState:S},className:R.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),v.jsx(Sie,{className:R.displayedRows,children:f({from:c===0?0:w*b+1,to:L(),count:c===-1?-1:c,page:w})}),v.jsx(o,{className:R.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:y,page:w,rowsPerPage:b,showFirstButton:P,showLastButton:I,slotProps:T.actions,slots:M.actions,getItemAriaLabel:d,disabled:u})]})})});function Eie(e){return Ne("MuiTextField",e)}je("MuiTextField",["root"]);const Oie={standard:Km,filled:Wm,outlined:Ym},Mie=e=>{const{classes:t}=e;return ve({root:["root"]},Eie,t)},Rie=ne(fc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ds=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:m,id:y,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:g,label:x,maxRows:P,minRows:I,multiline:T=!1,name:M,onBlur:k,onChange:S,onFocus:R,placeholder:O,required:A=!1,rows:D,select:_=!1,SelectProps:$,slots:L={},slotProps:F={},type:j,value:N,variant:z="outlined",...V}=r,K={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:h,multiline:T,required:A,select:_,variant:z},H=Mie(K),G=yt(y),Y=m&&G?`${G}-helper-text`:void 0,ee=x&&G?`${G}-label`:void 0,W=Oie[z],Q={slots:L,slotProps:{input:b,inputLabel:C,htmlInput:w,formHelperText:f,select:$,...F}},U={},J=Q.slotProps.inputLabel;z==="outlined"&&(J&&typeof J.shrink<"u"&&(U.notched=J.shrink),U.label=x),_&&((!$||!$.native)&&(U.id=void 0),U["aria-describedby"]=void 0);const[Z,le]=hn("input",{elementType:W,externalForwardedProps:Q,additionalProps:U,ownerState:K}),[he,ye]=hn("inputLabel",{elementType:qm,externalForwardedProps:Q,ownerState:K}),[pe,Fe]=hn("htmlInput",{elementType:"input",externalForwardedProps:Q,ownerState:K}),[me,Ae]=hn("formHelperText",{elementType:jre,externalForwardedProps:Q,ownerState:K}),[Ve,De]=hn("select",{elementType:nu,externalForwardedProps:Q,ownerState:K}),X=v.jsx(Z,{"aria-describedby":Y,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:h,multiline:T,name:M,rows:D,maxRows:P,minRows:I,type:j,value:N,id:G,inputRef:g,onBlur:k,onChange:S,onFocus:R,placeholder:O,inputProps:Fe,slots:{input:L.htmlInput?pe:void 0},...le});return v.jsxs(Rie,{className:ie(H.root,a),disabled:u,error:d,fullWidth:h,ref:n,required:A,color:l,variant:z,ownerState:K,...V,children:[x!=null&&x!==""&&v.jsx(he,{htmlFor:G,id:ee,...ye,children:x}),_?v.jsx(Ve,{"aria-describedby":Y,id:G,labelId:ee,value:N,input:X,...De,children:s}):X,m&&v.jsx(me,{id:Y,...Ae,children:m})]})}),e2=[{name:"Home",path:"/fer-lab1/"},{name:"Special",path:"/fer-lab1/natural"},{name:"News",path:"/fer-lab1/news"},{name:"About",path:"/fer-lab1/about"},{name:"Contact",path:"/fer-lab1/contact"}],$ie=[{name:"Dashboard",icon:v.jsx(f9,{}),path:"/fer-lab1/dashboard"},{name:"Logout",icon:v.jsx(y9,{})}];function _ie(){const[e,t]=p.useState(null),[n,r]=p.useState(null),{theme:o,light:i}=p.useContext(Po),s=wu(),[a,l]=p.useState(!1),{googleSignIn:c,user:u,logOut:d}=JL(),f=Gf(),h=p.useCallback(()=>{const I=window.scrollY>10;I!==a&&l(I)},[a]);p.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[h]);const m=I=>{t(I.currentTarget)},y=I=>{r(I.currentTarget)},C=()=>{t(null)},w=()=>{r(null)},b=()=>i?a?"white":"#333333":"white",g=async()=>{try{await c()}catch(I){console.log(I)}},x=async()=>{try{await d(),w()}catch(I){console.log(I)}},P=I=>{I.name==="Logout"?x():I.path&&f(I.path),w()};return v.jsx(K6,{position:"fixed",sx:{backgroundColor:a?o.header.backgroundColor:"transparent",boxShadow:a?3:0,transition:"all 0.3s ease-in-out"},children:v.jsx(Kc,{maxWidth:"xl",children:v.jsxs(R_,{disableGutters:!0,children:[v.jsx(zr.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.5},children:v.jsx(yw,{sx:{display:{xs:"none",md:"flex"},mr:1,fontSize:40,color:b()}})}),v.jsx(Qo,{to:"/fer-lab1/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:v.jsx(Be,{variant:"h6",noWrap:!0,sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:b(),textDecoration:"none"},children:"ORCHID HAVEN"})}),v.jsxs(Qe,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[v.jsx(an,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:m,sx:{color:b()},children:v.jsx(S8,{})}),v.jsxs(Tm,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:C,sx:{display:{xs:"block",md:"none"},"& .MuiPaper-root":{backgroundColor:o.card.backgroundColor,color:o.card.color}},disableScrollLock:!0,children:[e2.map(I=>v.jsx(On,{onClick:C,component:Qo,to:I.path,children:v.jsx(Be,{textAlign:"center",children:I.name})},I.name)),!u&&v.jsx(On,{onClick:g,children:v.jsx(Be,{textAlign:"center",children:"Login"})})]})]}),v.jsx(yw,{sx:{display:{xs:"flex",md:"none"},mr:1,fontSize:32,color:b()}}),v.jsx(Be,{variant:"h5",noWrap:!0,component:Qo,to:"/fer-lab1/",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:b(),textDecoration:"none"},children:"ORCHID HAVEN"}),v.jsx(Qe,{sx:{flexGrow:1,display:{xs:"none",md:"flex"},justifyContent:"center"},children:e2.map(I=>v.jsx(mr,{component:Qo,to:I.path,onClick:C,sx:{my:2,mx:1,color:b(),display:"block",fontFamily:"Poppins, sans-serif",fontWeight:500,position:"relative","&::after":{content:'""',position:"absolute",width:"100%",height:"2px",bottom:0,left:0,backgroundColor:b(),transform:s.pathname===I.path?"scaleX(1)":"scaleX(0)",transition:"transform 0.3s ease-in-out"},"&:hover::after":{transform:"scaleX(1)"}},children:I.name},I.name))}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",gap:2},children:[v.jsx(QK,{children:u?v.jsx(zr.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:v.jsx(yF,{title:"Open settings",children:v.jsx(an,{onClick:y,sx:{p:0},children:v.jsx(NS,{alt:u.displayName,src:u.photoURL,sx:{width:40,height:40,border:`2px solid ${b()}`}})})})}):v.jsx(zr.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:v.jsx(mr,{variant:"outlined",startIcon:v.jsx(v9,{}),onClick:g,sx:{color:b(),borderColor:b(),"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},display:{xs:"none",md:"flex"}},children:"Login"})})}),v.jsx(Tm,{sx:{mt:"45px","& .MuiPaper-root":{backgroundColor:o.card.backgroundColor,color:o.card.color}},id:"menu-appbar",anchorEl:n,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!n,onClose:w,disableScrollLock:!0,children:$ie.map(I=>v.jsxs(On,{onClick:()=>P(I),children:[I.icon,v.jsx(Be,{sx:{ml:1},children:I.name})]},I.name))}),v.jsx(ZK,{})]})]})})})}const ld={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},bF="$$joy";function aC(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Rs(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wF(e){if(!Rs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=wF(e[n])}),t}function Gi(e,t,n={clone:!0}){const r=n.clone?E({},e):e;return Rs(e)&&Rs(t)&&Object.keys(t).forEach(o=>{Rs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rs(e[o])?r[o]=Gi(e[o],t[o],n):n.clone?r[o]=Rs(t[o])?wF(t[o]):t[o]:r[o]=t[o]}),r}const Lie=["values","unit","step"],Fie=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>E({},n,{[r.key]:r.val}),{})};function CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=xe(e,Lie),i=Fie(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,h){const m=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${C1[e]}px)`};function ns(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||t2;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||t2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||C1).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Nie(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Bie(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ui(e){if(typeof e!="string")throw new Error(aC(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vv(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Qm(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vv(e,n)||r,t&&(o=t(o,r,e)),o}function un(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Vv(l,r)||{};return ns(s,a,d=>{let f=Qm(c,o,d);return d===f&&typeof d=="string"&&(f=Qm(c,o,`${t}${d==="default"?"":ui(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function zie(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Hie={m:"margin",p:"padding"},Vie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},n2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uie=zie(e=>{if(e.length>2)if(n2[e])e=n2[e];else return[e];const[t,n]=e.split(""),r=Hie[t],o=Vie[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),x1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],S1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...x1,...S1];function ap(e,t,n,r){var o;const i=(o=Vv(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function xF(e){return ap(e,"spacing",8)}function lp(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Gie(e,t){return n=>e.reduce((r,o)=>(r[o]=lp(t,n),r),{})}function Wie(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Uie(n),i=Gie(o,r),s=e[n];return ns(e,s,i)}function SF(e,t){const n=xF(e.theme);return Object.keys(e).map(r=>Wie(e,t,r,n)).reduce(Gd,{})}function Qt(e){return SF(e,x1)}Qt.propTypes={};Qt.filterProps=x1;function Jt(e){return SF(e,S1)}Jt.propTypes={};Jt.filterProps=S1;function PF(e=8){if(e.mui)return e;const t=xF({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Uv(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Gd(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function so(e){return typeof e!="number"?e:`${e}px solid`}function Io(e,t){return un({prop:e,themeKey:"borders",transform:t})}const Kie=Io("border",so),qie=Io("borderTop",so),Yie=Io("borderRight",so),Xie=Io("borderBottom",so),Qie=Io("borderLeft",so),Jie=Io("borderColor"),Zie=Io("borderTopColor"),ese=Io("borderRightColor"),tse=Io("borderBottomColor"),nse=Io("borderLeftColor"),rse=Io("outline",so),ose=Io("outlineColor"),Gv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ap(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:lp(t,r)});return ns(e,e.borderRadius,n)}return null};Gv.propTypes={};Gv.filterProps=["borderRadius"];Uv(Kie,qie,Yie,Xie,Qie,Jie,Zie,ese,tse,nse,Gv,rse,ose);const Wv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ap(e.theme,"spacing",8),n=r=>({gap:lp(t,r)});return ns(e,e.gap,n)}return null};Wv.propTypes={};Wv.filterProps=["gap"];const Kv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({columnGap:lp(t,r)});return ns(e,e.columnGap,n)}return null};Kv.propTypes={};Kv.filterProps=["columnGap"];const qv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({rowGap:lp(t,r)});return ns(e,e.rowGap,n)}return null};qv.propTypes={};qv.filterProps=["rowGap"];const ise=un({prop:"gridColumn"}),sse=un({prop:"gridRow"}),ase=un({prop:"gridAutoFlow"}),lse=un({prop:"gridAutoColumns"}),cse=un({prop:"gridAutoRows"}),use=un({prop:"gridTemplateColumns"}),dse=un({prop:"gridTemplateRows"}),fse=un({prop:"gridTemplateAreas"}),pse=un({prop:"gridArea"});Uv(Wv,Kv,qv,ise,sse,ase,lse,cse,use,dse,fse,pse);function Oc(e,t){return t==="grey"?t:e}const hse=un({prop:"color",themeKey:"palette",transform:Oc}),mse=un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),gse=un({prop:"backgroundColor",themeKey:"palette",transform:Oc});Uv(hse,mse,gse);function Ar(e){return e<=1&&e!==0?`${e*100}%`:e}const vse=un({prop:"width",transform:Ar}),P1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||C1[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ar(n)}};return ns(e,e.maxWidth,t)}return null};P1.filterProps=["maxWidth"];const yse=un({prop:"minWidth",transform:Ar}),bse=un({prop:"height",transform:Ar}),wse=un({prop:"maxHeight",transform:Ar}),Cse=un({prop:"minHeight",transform:Ar});un({prop:"size",cssProperty:"width",transform:Ar});un({prop:"size",cssProperty:"height",transform:Ar});const xse=un({prop:"boxSizing"});Uv(vse,P1,yse,bse,wse,Cse,xse);const Yv={border:{themeKey:"borders",transform:so},borderTop:{themeKey:"borders",transform:so},borderRight:{themeKey:"borders",transform:so},borderBottom:{themeKey:"borders",transform:so},borderLeft:{themeKey:"borders",transform:so},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:so},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gv},color:{themeKey:"palette",transform:Oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oc},backgroundColor:{themeKey:"palette",transform:Oc},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},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:Wv},rowGap:{style:qv},columnGap:{style:Kv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ar},maxWidth:{style:P1},minWidth:{transform:Ar},height:{transform:Ar},maxHeight:{transform:Ar},minHeight:{transform:Ar},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Sse(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Pse(e,t){return typeof e=="function"?e(t):e}function Ise(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Vv(o,c)||{};return d?d(s):ns(s,r,m=>{let y=Qm(f,u,m);return m===y&&typeof m=="string"&&(y=Qm(f,u,`${n}${m==="default"?"":ui(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Yv;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Nie(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(h=>{const m=Pse(c[h],i);if(m!=null)if(typeof m=="object")if(s[h])f=Gd(f,e(h,m,i,s));else{const y=ns({theme:i},m,C=>({[h]:C}));Sse(y,m)?f[h]=t({sx:m,theme:i}):f=Gd(f,y)}else f=Gd(f,e(h,m,i,s))}),Bie(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Xv=Ise();Xv.filterProps=["sx"];function IF(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const kse=["breakpoints","palette","spacing","shape"];function I1(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=xe(e,kse),a=CF(n),l=PF(o);let c=Gi({breakpoints:a,direction:"ltr",components:{},palette:E({mode:"light"},r),spacing:l,shape:E({},jie,i)},s);return c.applyStyles=IF,c=t.reduce((u,d)=>Gi(u,d),c),c.unstable_sxConfig=E({},Yv,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Xv({sx:d,theme:this})},c}function Tse(e){return Object.keys(e).length===0}function Ese(e=null){const t=p.useContext(lv);return!t||Tse(t)?e:t}const Ose=I1();function kF(e=Ose){return Ese(e)}const Mse=["sx"],Rse=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Yv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function $se(e){const{sx:t}=e,n=xe(e,Mse),{systemProps:r,otherProps:o}=Rse(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Rs(a)?E({},r,a):r}:i=E({},r,t),E({},o,{sx:i})}const r2=e=>e,_se=()=>{let e=r2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r2}}},Ase=_se(),Dse={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 k1(e,t,n="Mui"){const r=Dse[t];return r?`${n}-${r}`:`${Ase.generate(e)}-${t}`}function Lse(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=k1(e,o,n)}),r}const Fse=["ownerState"],jse=["variants"],Nse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bse(e){return Object.keys(e).length===0}function zse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hse=I1(),Vse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ih({defaultTheme:e,theme:t,themeId:n}){return Bse(t)?e:t[n]||t}function Use(e){return e?(t,n)=>n[e]:null}function jh(e,t){let{ownerState:n}=t,r=xe(t,Fse);const o=typeof e=="function"?e(E({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>jh(i,E({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=xe(o,jse);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(E({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(E({ownerState:n},r,n)):l.style))}),a}return o}function TF(e={}){const{themeId:t,defaultTheme:n=Hse,rootShouldForwardProp:r=Nb,slotShouldForwardProp:o=Nb}=e,i=s=>Xv(E({},s,{theme:ih(E({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Die(s,P=>P.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Use(Vse(c))}=a,h=xe(a,Nse),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let C,w=Nb;c==="Root"||c==="root"?w=r:c?w=o:zse(s)&&(w=void 0);const b=Aie(s,E({shouldForwardProp:w,label:C},h)),g=P=>typeof P=="function"&&P.__emotion_real!==P||Rs(P)?I=>jh(P,E({},I,{theme:ih({theme:I.theme,defaultTheme:n,themeId:t})})):P,x=(P,...I)=>{let T=g(P);const M=I?I.map(g):[];l&&f&&M.push(R=>{const O=ih(E({},R,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[l]||!O.components[l].styleOverrides)return null;const A=O.components[l].styleOverrides,D={};return Object.entries(A).forEach(([_,$])=>{D[_]=jh($,E({},R,{theme:O}))}),f(R,D)}),l&&!m&&M.push(R=>{var O;const A=ih(E({},R,{defaultTheme:n,themeId:t})),D=A==null||(O=A.components)==null||(O=O[l])==null?void 0:O.variants;return jh({variants:D},E({},R,{theme:A}))}),y||M.push(i);const k=M.length-I.length;if(Array.isArray(P)&&k>0){const R=new Array(k).fill("");T=[...P,...R],T.raw=[...P.raw,...R]}const S=b(T,...M);return s.muiName&&(S.muiName=s.muiName),S};return b.withConfig&&(x.withConfig=b.withConfig),x}}const Gse=TF();function EF(e,t){const n=E({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=E({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=E({},i),Object.keys(o).forEach(s=>{n[r][s]=EF(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Wse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:EF(t.components[n].defaultProps,r)}function OF({props:e,name:t,defaultTheme:n,themeId:r}){let o=kF(n);return r&&(o=o[r]||o),Wse({theme:o,name:t,props:e})}function Kse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function MF(e){if(e.type)return e;if(e.charAt(0)==="#")return MF(Kse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(aC(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(aC(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const va=e=>{const t=MF(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function RF(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function qse(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Yse(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qse(n,t)})},e)}function Xse(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function T1(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const o2=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Qse=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},Jse=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Bb(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return Qse(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(o,{[u]:Jse(a,l)}),o2(i,a,`var(${u})`,c),o2(s,a,`var(${u}, ${l})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function Zse(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ru(e){var t=Zse(e,"string");return $f(t)=="symbol"?t:t+""}const eae=["colorSchemes","components","defaultColorScheme"];function tae(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=xe(e,eae),{vars:i,css:s,varsWithDefaults:a}=Bb(o,t);let l=a;const c={},{[r]:u}=n,d=xe(n,[r].map(ru));if(Object.entries(d||{}).forEach(([h,m])=>{const{vars:y,css:C,varsWithDefaults:w}=Bb(m,t);l=Gi(l,w),c[h]={css:C,vars:y}}),u){const{css:h,vars:m,varsWithDefaults:y}=Bb(u,t);l=Gi(l,y),c[r]={css:h,vars:m}}return{vars:l,generateCssVars:h=>{var m;if(!h){var y;const w=E({},s);return{css:w,vars:i,selector:(t==null||(y=t.getSelector)==null?void 0:y.call(t,h,w))||":root"}}const C=E({},c[h].css);return{css:C,vars:c[h].vars,selector:(t==null||(m=t.getSelector)==null?void 0:m.call(t,h,C))||":root"}}}}const nae=(e,t)=>e.filter(n=>t.includes(n)),Eu=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((s,a)=>{i<=e.keys.length-1&&(i===0?Object.assign(s,a):s[e.up(e.keys[i])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:nae(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const s=t[i];s!==void 0&&n((a,l)=>{r===i?Object.assign(a,l):a[e.up(i)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function rs(e){return e?`Level${e}`:""}function cp(e){return e.unstable_level>0&&e.container}function $F(e){return function(n){return`var(--Grid-${n}Spacing${rs(e.unstable_level)})`}}function E1(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${rs(e.unstable_level-1)})`}}function O1(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${rs(e.unstable_level-1)})`}const rae=({theme:e,ownerState:t})=>{const n=$F(t),r={};return Eu(e.breakpoints,t.gridSize,(o,i)=>{let s={};i===!0&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${O1(t)}${cp(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},oae=({theme:e,ownerState:t})=>{const n={};return Eu(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${O1(t)})`}),r(n,i)}),n},iae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cp(t)?{[`--Grid-columns${rs(t.unstable_level)}`]:O1(t)}:{"--Grid-columns":12};return Eu(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${rs(t.unstable_level)}`]:o})}),n},sae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=E1(t),r=cp(t)?{[`--Grid-rowSpacing${rs(t.unstable_level)}`]:n("row")}:{};return Eu(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${rs(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},aae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=E1(t),r=cp(t)?{[`--Grid-columnSpacing${rs(t.unstable_level)}`]:n("column")}:{};return Eu(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${rs(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},lae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Eu(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},cae=({ownerState:e})=>{const t=$F(e),n=E1(e);return E({minWidth:0,boxSizing:"border-box"},e.container&&E({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||cp(e))&&E({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},uae=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},dae=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},fae=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],pae=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],hae=I1(),mae=Gse("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function gae(e){return OF({props:e,name:"MuiGrid",defaultTheme:hae})}function vae(e={}){const{createStyledComponent:t=mae,useThemeProps:n=gae,componentName:r="MuiGrid"}=e,o=p.createContext(void 0),i=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:h,gridSize:m}=l,y={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...fae(d),...uae(m),...u?dae(f,c.breakpoints.keys[0]):[]]};return Xse(y,C=>k1(r,C),{})},s=t(iae,aae,sae,rae,lae,cae,oae),a=p.forwardRef(function(c,u){var d,f,h,m,y,C,w,b;const g=kF(),x=n(c),P=$se(x),I=p.useContext(o),{className:T,children:M,columns:k=12,container:S=!1,component:R="div",direction:O="row",wrap:A="wrap",spacing:D=0,rowSpacing:_=D,columnSpacing:$=D,disableEqualOverflow:L,unstable_level:F=0}=P,j=xe(P,pae);let N=L;F&&L!==void 0&&(N=c.disableEqualOverflow);const z={},V={},K={};Object.entries(j).forEach(([J,Z])=>{g.breakpoints.values[J]!==void 0?z[J]=Z:g.breakpoints.values[J.replace("Offset","")]!==void 0?V[J.replace("Offset","")]=Z:K[J]=Z});const H=(d=c.columns)!=null?d:F?void 0:k,G=(f=c.spacing)!=null?f:F?void 0:D,Y=(h=(m=c.rowSpacing)!=null?m:c.spacing)!=null?h:F?void 0:_,ee=(y=(C=c.columnSpacing)!=null?C:c.spacing)!=null?y:F?void 0:$,W=E({},P,{level:F,columns:H,container:S,direction:O,wrap:A,spacing:G,rowSpacing:Y,columnSpacing:ee,gridSize:z,gridOffset:V,disableEqualOverflow:(w=(b=N)!=null?b:I)!=null?w:!1,parentDisableEqualOverflow:I}),Q=i(W,g);let U=v.jsx(s,E({ref:u,as:R,ownerState:W,className:ie(Q.root,T)},K,{children:p.Children.map(M,J=>{if(p.isValidElement(J)&&RF(J,["Grid"])){var Z;return p.cloneElement(J,{unstable_level:(Z=J.props.unstable_level)!=null?Z:F+1})}return J})}));return N!==void 0&&N!==(I??!1)&&(U=v.jsx(o.Provider,{value:N,children:U})),U});return a.muiName="Grid",a}const yae=E({},Yv,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function bae(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const Ou=(e,t)=>k1(e,t,"Mui"),yl=(e,t)=>Lse(e,t,"Mui"),wae=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var n;return(n=t.match)==null?void 0:n.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),i2=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},s2=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach(([o,i])=>{if(o.match(new RegExp(`${e}(color|bg|border)`,"i"))&&i){const s=n?n(o):i;o.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),o.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),o.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),i2(r,o,s)}}),r},Fn=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach(i=>{const[s,a]=i;wae(a)&&typeof a=="object"&&(n=E({},n,{[s]:s2(e,a,l=>`var(--variant-${l}, ${r(`palette-${s}-${l}`,o[s][l])})`)}))})}return n.context=s2(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},Cae=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],xae=["colorSchemes"],Sae=(e="joy")=>T1(e);function Pae(e){var t,n,r,o,i,s,a,l,c,u;const d={},{cssVarPrefix:f="joy",breakpoints:h,spacing:m,components:y,variants:C,shouldSkipGeneratingVar:w=bae}=d,b=xe(d,Cae),g=Sae(f),x={primary:ld.blue,neutral:ld.grey,danger:ld.red,success:ld.green,warning:ld.yellow,common:{white:"#FFF",black:"#000"}},P=W=>{var Q;const U=W.split("-"),J=U[1],Z=U[2];return g(W,(Q=x[J])==null?void 0:Q[Z])},I=W=>({plainColor:P(`palette-${W}-500`),plainHoverBg:P(`palette-${W}-100`),plainActiveBg:P(`palette-${W}-200`),plainDisabledColor:P("palette-neutral-400"),outlinedColor:P(`palette-${W}-500`),outlinedBorder:P(`palette-${W}-300`),outlinedHoverBg:P(`palette-${W}-100`),outlinedActiveBg:P(`palette-${W}-200`),outlinedDisabledColor:P("palette-neutral-400"),outlinedDisabledBorder:P("palette-neutral-200"),softColor:P(`palette-${W}-700`),softBg:P(`palette-${W}-100`),softHoverBg:P(`palette-${W}-200`),softActiveColor:P(`palette-${W}-800`),softActiveBg:P(`palette-${W}-300`),softDisabledColor:P("palette-neutral-400"),softDisabledBg:P("palette-neutral-50"),solidColor:P("palette-common-white"),solidBg:P(`palette-${W}-500`),solidHoverBg:P(`palette-${W}-600`),solidActiveBg:P(`palette-${W}-700`),solidDisabledColor:P("palette-neutral-400"),solidDisabledBg:P("palette-neutral-100")}),T=W=>({plainColor:P(`palette-${W}-300`),plainHoverBg:P(`palette-${W}-800`),plainActiveBg:P(`palette-${W}-700`),plainDisabledColor:P("palette-neutral-500"),outlinedColor:P(`palette-${W}-200`),outlinedBorder:P(`palette-${W}-700`),outlinedHoverBg:P(`palette-${W}-800`),outlinedActiveBg:P(`palette-${W}-700`),outlinedDisabledColor:P("palette-neutral-500"),outlinedDisabledBorder:P("palette-neutral-800"),softColor:P(`palette-${W}-200`),softBg:P(`palette-${W}-800`),softHoverBg:P(`palette-${W}-700`),softActiveColor:P(`palette-${W}-100`),softActiveBg:P(`palette-${W}-600`),softDisabledColor:P("palette-neutral-500"),softDisabledBg:P("palette-neutral-800"),solidColor:P("palette-common-white"),solidBg:P(`palette-${W}-500`),solidHoverBg:P(`palette-${W}-600`),solidActiveBg:P(`palette-${W}-700`),solidDisabledColor:P("palette-neutral-500"),solidDisabledBg:P("palette-neutral-800")}),M={palette:{mode:"light",primary:E({},x.primary,I("primary")),neutral:E({},x.neutral,I("neutral"),{plainColor:P("palette-neutral-700"),plainHoverColor:P("palette-neutral-900"),outlinedColor:P("palette-neutral-700")}),danger:E({},x.danger,I("danger")),success:E({},x.success,I("success")),warning:E({},x.warning,I("warning")),common:{white:"#FFF",black:"#000"},text:{primary:P("palette-neutral-800"),secondary:P("palette-neutral-700"),tertiary:P("palette-neutral-600"),icon:P("palette-neutral-500")},background:{body:P("palette-common-white"),surface:P("palette-neutral-50"),popup:P("palette-common-white"),level1:P("palette-neutral-100"),level2:P("palette-neutral-200"),level3:P("palette-neutral-300"),tooltip:P("palette-neutral-500"),backdrop:`rgba(${g("palette-neutral-darkChannel",va(x.neutral[900]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",va(x.neutral[500]))} / 0.2)`,focusVisible:P("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},k={palette:{mode:"dark",primary:E({},x.primary,T("primary")),neutral:E({},x.neutral,T("neutral"),{plainColor:P("palette-neutral-300"),plainHoverColor:P("palette-neutral-300")}),danger:E({},x.danger,T("danger")),success:E({},x.success,T("success")),warning:E({},x.warning,T("warning")),common:{white:"#FFF",black:"#000"},text:{primary:P("palette-neutral-100"),secondary:P("palette-neutral-300"),tertiary:P("palette-neutral-400"),icon:P("palette-neutral-400")},background:{body:P("palette-common-black"),surface:P("palette-neutral-900"),popup:P("palette-common-black"),level1:P("palette-neutral-800"),level2:P("palette-neutral-700"),level3:P("palette-neutral-600"),tooltip:P("palette-neutral-600"),backdrop:`rgba(${g("palette-neutral-darkChannel",va(x.neutral[50]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",va(x.neutral[500]))} / 0.16)`,focusVisible:P("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},S='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',R=E({body:`"Inter", ${g(`fontFamily-fallback, ${S}`)}`,display:`"Inter", ${g(`fontFamily-fallback, ${S}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:S},b.fontFamily),O=E({sm:300,md:500,lg:600,xl:700},b.fontWeight),A=E({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),D=E({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),_=(t=(n=b.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:M.shadowRing,$=(r=(o=b.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowChannel)!=null?r:M.shadowChannel,L=(i=(s=b.colorSchemes)==null||(s=s.light)==null?void 0:s.shadowOpacity)!=null?i:M.shadowOpacity,F={colorSchemes:{light:M,dark:k},fontSize:A,fontFamily:R,fontWeight:O,focus:{thickness:"2px",selector:`&.${Ou("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${g("focus-thickness",(a=(l=b.focus)==null?void 0:l.thickness)!=null?a:"2px")})`,outline:`${g("focus-thickness",(c=(u=b.focus)==null?void 0:u.thickness)!=null?c:"2px")} solid ${g("palette-focusVisible",x.primary[500])}`}},lineHeight:D,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${g("shadowRing",_)}, 0px 1px 2px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,sm:`${g("shadowRing",_)}, 0px 1px 2px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 2px 4px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,md:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 6px 12px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,lg:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 12px 16px -4px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,xl:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 20px 24px -4px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-xl, ${O.xl}`),fontSize:g(`fontSize-xl4, ${A.xl4}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h2:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-xl, ${O.xl}`),fontSize:g(`fontSize-xl3, ${A.xl3}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h3:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-xl2, ${A.xl2}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h4:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-xl, ${A.xl}`),lineHeight:g(`lineHeight-md, ${D.md}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-lg":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-lg, ${A.lg}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-md":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-md, ${A.md}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-sm":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-sm, ${A.sm}`),lineHeight:g(`lineHeight-sm, ${D.sm}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"body-lg":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-lg, ${A.lg}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-secondary, ${M.palette.text.secondary}`)},"body-md":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-md, ${A.md}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-secondary, ${M.palette.text.secondary}`)},"body-sm":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-sm, ${A.sm}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-tertiary, ${M.palette.text.tertiary}`)},"body-xs":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-xs, ${A.xs}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-tertiary, ${M.palette.text.tertiary}`)}}},j=b?Gi(F,b):F,{colorSchemes:N}=j,z=xe(j,xae),V=E({colorSchemes:N},z,{breakpoints:CF(h??{}),components:Gi({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:W,theme:Q})=>{var U;const J=W.instanceFontSize;return E({margin:"var(--Icon-margin)"},W.fontSize&&W.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${Q.vars.fontSize[W.fontSize]})`},!W.htmlColor&&E({color:`var(--Icon-color, ${V.vars.palette.text.icon})`},W.color&&W.color!=="inherit"&&Q.vars.palette[W.color]&&{color:`rgba(${(U=Q.vars.palette[W.color])==null?void 0:U.mainChannel} / 1)`}),J&&J!=="inherit"&&{"--Icon-fontSize":Q.vars.fontSize[J]})}}}},y),cssVarPrefix:f,getCssVar:g,spacing:PF(m)});function K(W,Q){Object.keys(Q).forEach(U=>{const J={main:"500",light:"200",dark:"700"};W==="dark"&&(J.main=400),!Q[U].mainChannel&&Q[U][J.main]&&(Q[U].mainChannel=va(Q[U][J.main])),!Q[U].lightChannel&&Q[U][J.light]&&(Q[U].lightChannel=va(Q[U][J.light])),!Q[U].darkChannel&&Q[U][J.dark]&&(Q[U].darkChannel=va(Q[U][J.dark]))})}Object.entries(V.colorSchemes).forEach(([W,Q])=>{K(W,Q.palette)});const H={prefix:f,shouldSkipGeneratingVar:w},{vars:G,generateCssVars:Y}=tae(E({colorSchemes:N},z),H);V.vars=G,V.generateCssVars=Y,V.unstable_sxConfig=E({},yae,void 0),V.unstable_sx=function(Q){return Xv({sx:Q,theme:this})},V.getColorSchemeSelector=W=>W==="light"?"&":`&[data-joy-color-scheme="${W}"], [data-joy-color-scheme="${W}"] &`;const ee={getCssVar:g,palette:V.colorSchemes.light.palette};return V.variants=Gi({plain:Fn("plain",ee),plainHover:Fn("plainHover",ee),plainActive:Fn("plainActive",ee),plainDisabled:Fn("plainDisabled",ee),outlined:Fn("outlined",ee),outlinedHover:Fn("outlinedHover",ee),outlinedActive:Fn("outlinedActive",ee),outlinedDisabled:Fn("outlinedDisabled",ee),soft:Fn("soft",ee),softHover:Fn("softHover",ee),softActive:Fn("softActive",ee),softDisabled:Fn("softDisabled",ee),solid:Fn("solid",ee),solidHover:Fn("solidHover",ee),solidActive:Fn("solidActive",ee),solidDisabled:Fn("solidDisabled",ee)},C),V.palette=E({},V.colorSchemes.light.palette,{colorScheme:"light"}),V.shouldSkipGeneratingVar=w,V.applyStyles=IF,V}const _F=Pae(),as=TF({defaultTheme:_F,themeId:bF});function Mu({props:e,name:t}){return OF({props:e,name:t,defaultTheme:E({},_F,{components:{}}),themeId:bF})}function Iae(e){return typeof e=="string"}function kae(e,t,n){return e===void 0||Iae(e)?t:E({},t,{ownerState:E({},t.ownerState,n)})}function Tae(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Eae(e,t,n){return typeof e=="function"?e(t,n):e}function up(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function a2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Oae(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ie(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m=E({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=E({},n,o,r);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Tae(E({},o,r)),a=a2(r),l=a2(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=E({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=E({},c,n,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Mae=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Rae=["component","slots","slotProps"],$ae=["component"];function ou(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=xe(t,Mae),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=xe(i,Rae),h=u[e]||r,m=Eae(d[e],o),y=Oae(E({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m})),{props:{component:C},internalRef:w}=y,b=xe(y.props,$ae),g=Yse(w,m==null?void 0:m.ref,t.ref),x=s?s(b):{},P=E({},o,x),I=e==="root"?C||c:C,T=kae(h,E({},e==="root"&&!c&&!u[e]&&a,e!=="root"&&!u[e]&&a,b,I&&{as:I},{ref:g}),P);return Object.keys(x).forEach(M=>{delete T[M]}),[h,T]}const _ae=({theme:e,ownerState:t},n)=>{let r={};function o(i){if(typeof i=="function"){const s=i(e);o(s)}else Array.isArray(i)?i.forEach(s=>{typeof s!="boolean"&&o(s)}):typeof i=="object"&&(r=E({},r,i))}return t.sx&&(o(t.sx),n.forEach(i=>{const s=r[i];if(typeof s=="string"||typeof s=="number")if(i==="borderRadius")if(typeof s=="number")r[i]=`${s}px`;else{var a;r[i]=((a=e.vars)==null?void 0:a.radius[s])||s}else["p","padding","m","margin"].indexOf(i)!==-1&&typeof s=="number"?r[i]=e.spacing(s):r[i]=s;else typeof s=="function"?r[i]=s(e):r[i]=void 0})),r},M1=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Jm="data-skip-inverted-colors",AF=`& :not([${Jm}], [${Jm}] *)`,DF=e=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,m,y,C,w,b,g,x,P,I;const T=M1(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[T("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[T("--palette-background-body")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.body} !important`,[T("--palette-background-surface")]:`${(r=e.colorSchemes.light)==null?void 0:r.palette.background.surface} !important`,[T("--palette-background-popup")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.popup} !important`,[T("--palette-background-level1")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.level1} !important`,[T("--palette-background-level2")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level2} !important`,[T("--palette-background-level3")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.level3} !important`,[T("--palette-text-primary")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[T("--palette-text-secondary")]:`${(c=e.colorSchemes.light)==null?void 0:c.palette.text.secondary} !important`,[T("--palette-text-tertiary")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.text.tertiary} !important`,[T("--palette-divider")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[T("--palette-focusVisible")]:`${(f=e.colorSchemes.dark)==null?void 0:f.palette.focusVisible} !important`,[T("--palette-background-body")]:`${(h=e.colorSchemes.dark)==null?void 0:h.palette.background.body} !important`,[T("--palette-background-surface")]:`${(m=e.colorSchemes.dark)==null?void 0:m.palette.background.surface} !important`,[T("--palette-background-popup")]:`${(y=e.colorSchemes.dark)==null?void 0:y.palette.background.popup} !important`,[T("--palette-background-level1")]:`${(C=e.colorSchemes.dark)==null?void 0:C.palette.background.level1} !important`,[T("--palette-background-level2")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.level2} !important`,[T("--palette-background-level3")]:`${(b=e.colorSchemes.dark)==null?void 0:b.palette.background.level3} !important`,[T("--palette-text-primary")]:`${(g=e.colorSchemes.dark)==null?void 0:g.palette.text.primary} !important`,[T("--palette-text-secondary")]:`${(x=e.colorSchemes.dark)==null?void 0:x.palette.text.secondary} !important`,[T("--palette-text-tertiary")]:`${(P=e.colorSchemes.dark)==null?void 0:P.palette.text.tertiary} !important`,[T("--palette-divider")]:`${(I=e.colorSchemes.dark)==null?void 0:I.palette.divider} !important`}}};function Aae(e){return e.theme!==void 0}const Dae=e=>t=>{const n=Aae(t)?t.theme:t,r=T1(n.cssVarPrefix),o=M1(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[AF]:{"--Badge-ringColor":i(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:i(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:i(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:i("palette-common-white"),[o("--palette-text-secondary")]:i(`palette-${e}-200`),[o("--palette-text-tertiary")]:i(`palette-${e}-300`),[o("--palette-text-icon")]:i(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":i(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":i(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${i(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":i(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":i("palette-common-white"),"--variant-softHoverColor":i("palette-common-white"),"--variant-softBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":i(`palette-${e}-${e==="neutral"?"600":"500"}`),"--variant-solidBg":i("palette-common-white"),"--variant-solidHoverBg":i("palette-common-white"),"--variant-solidActiveBg":i(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Jm}]`]:DF(n)}},Lae=e=>t=>{const{theme:n=t}=t,r=T1(n.cssVarPrefix),o=M1(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[AF]:{"--Badge-ringColor":i(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:i(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:i(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${i(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":i(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${i(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":i(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":i(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":i(`palette-${e}-200`),"--variant-softBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":i(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":i(`palette-${e}-600`),"--variant-solidActiveBg":i(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:i(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:i(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:i(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${i(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${i(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${i(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":i(`palette-${e}-600`),"--variant-outlinedHoverBorder":i(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":i(`palette-${e}-600`),"--variant-softBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":i(`palette-${e}-700`),"--variant-softHoverBg":i(`palette-${e}-200`),"--variant-softActiveBg":i(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":i("palette-common-white"),"--variant-solidBg":i(`palette-${e}-${e==="neutral"?"700":"500"}`),"--variant-solidHoverColor":i("palette-common-white"),"--variant-solidHoverBg":i(`palette-${e}-600`),"--variant-solidActiveBg":i(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Jm}]`]:DF(n)}};function Fae(e){return Ou("MuiAspectRatio",e)}yl("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const jae=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","flex","slots","slotProps"],Nae=e=>{const{variant:t,color:n}=e,r={root:["root"],content:["content",t&&`variant${ui(t)}`,n&&`color${ui(n)}`]};return up(r,Fae,{})},Bae=as("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{const n=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight,r=typeof e.maxHeight=="number"?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":r||"9999px","--AspectRatio-minHeight":n||"0px","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,borderRadius:"var(--AspectRatio-radius)",display:e.flex?"flex":"block",flex:e.flex?1:"initial",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),zae=as("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return E({flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},e.typography["body-md"],(n=e.variants[t.variant])==null?void 0:n[t.color])}),Zm=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyAspectRatio"}),{children:o,ratio:i="16 / 9",minHeight:s,maxHeight:a,objectFit:l="cover",color:c="neutral",variant:u="soft",component:d,flex:f=!1,slots:h={},slotProps:m={}}=r,y=xe(r,jae),C=E({},r,{flex:f,minHeight:s,maxHeight:a,objectFit:l,ratio:i,color:c,variant:u}),w=Nae(C),b=E({},y,{component:d,slots:h,slotProps:m}),[g,x]=ou("root",{ref:n,className:w.root,elementType:Bae,externalForwardedProps:b,ownerState:C}),[P,I]=ou("content",{className:w.content,elementType:zae,externalForwardedProps:b,ownerState:C});return v.jsx(g,E({},x,{children:v.jsx(P,E({},I,{children:p.Children.map(o,(T,M)=>M===0&&p.isValidElement(T)?p.cloneElement(T,{"data-first-child":""}):T)}))}))}),l2=yl("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);function Hae(e){return Ou("MuiCard",e)}const Dl=yl("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),Vae=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],Uae=e=>{const{size:t,variant:n,color:r,orientation:o}=e,i={root:["root",o,n&&`variant${ui(n)}`,r&&`color${ui(r)}`,t&&`size${ui(t)}`]};return up(i,Hae,{})},Gae=as("div")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:i}=_ae({theme:e,ownerState:t},["p","padding","borderRadius"]);return[E({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},t.size==="sm"&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},t.size==="md"&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},t.size==="lg"&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},e.typography[`body-${t.size}`],t.variant==="solid"&&t.color&&t.invertedColors&&Dae(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&Lae(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color]),r!==void 0&&{"--Card-padding":r},o!==void 0&&{"--Card-padding":o},i!==void 0&&{"--Card-radius":i}]}),Wae=as(Gae,{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LF=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCard"}),{className:o,color:i="neutral",component:s="div",invertedColors:a=!1,size:l="md",variant:c="outlined",children:u,orientation:d="vertical",slots:f={},slotProps:h={}}=r,m=xe(r,Vae),y=E({},r,{color:i,component:s,orientation:d,size:l,variant:c,invertedColors:a}),C=Uae(y),w=E({},m,{component:s,slots:f,slotProps:h}),[b,g]=ou("root",{ref:n,className:ie(C.root,o),elementType:Wae,externalForwardedProps:w,ownerState:y});return v.jsx(b,E({},g,{children:p.Children.map(u,(x,P)=>{if(!p.isValidElement(x))return x;const I={};if(RF(x,["Divider"])){I.inset="inset"in x.props?x.props.inset:"context";const T=d==="vertical"?"horizontal":"vertical";I.orientation="orientation"in x.props?x.props.orientation:T}return P===0&&(I["data-first-child"]=""),P===p.Children.count(u)-1&&(I["data-last-child"]=""),p.cloneElement(x,I)})}))});function Kae(e){return Ou("MuiCardOverflow",e)}const qae=yl("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function Yae(e){return Ou("MuiDivider",e)}yl("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);function Xae(e){return Ou("MuiCardContent",e)}yl("MuiCardContent",["root"]);const Qae=["className","component","children","orientation","slots","slotProps"],Jae=()=>up({root:["root"]},Xae,{}),Zae=as("div")(({ownerState:e})=>({display:"flex",flexDirection:e.orientation==="horizontal"?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${qae.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),ele=as(Zae,{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({}),c2=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCardContent"}),{className:o,component:i="div",children:s,orientation:a="vertical",slots:l={},slotProps:c={}}=r,u=xe(r,Qae),d=E({},u,{component:i,slots:l,slotProps:c}),f=E({},r,{component:i,orientation:a}),h=Jae(),[m,y]=ou("root",{ref:n,className:ie(h.root,o),elementType:ele,externalForwardedProps:d,ownerState:f});return v.jsx(m,E({},y,{children:s}))}),tle=yl("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]),nle=["className","component","children","color","variant","slots","slotProps"],rle=e=>{const{variant:t,color:n}=e,r={root:["root",t&&`variant${ui(t)}`,n&&`color${ui(n)}`]};return up(r,Kae,{})},ole=as("div",{name:"JoyCardOverflow",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;const r="calc(var(--CardOverflow-radius) - var(--variant-borderWidth, 0px))";return E({alignSelf:"stretch",position:"relative",display:"flex",flexDirection:"var(--_CardOverflow-flexDirection)",margin:"var(--_CardOverflow-margin)",borderRadius:"var(--_CardOverflow-radius)",padding:"var(--_CardOverflow-padding)",[`.${Dl.vertical} &, .${Dl.horizontal} .${Dl.vertical} &, .${tle.root} &`]:{"--_CardOverflow-flexDirection":"column","--AspectRatio-margin":"0 calc(-1 * var(--Card-padding))","--_CardOverflow-margin":"0 var(--CardOverflow-offset)","--_CardOverflow-padding":"0 var(--Card-padding)","&[data-first-child]":{"--AspectRatio-radius":`${r} ${r} 0 0`,"--_CardOverflow-radius":"var(--CardOverflow-radius) var(--CardOverflow-radius) 0 0","--_CardOverflow-margin":"var(--CardOverflow-offset) var(--CardOverflow-offset) 0"},"&[data-last-child]":{"--AspectRatio-radius":`0 0 ${r} ${r}`,"--_CardOverflow-radius":"0 0 var(--CardOverflow-radius) var(--CardOverflow-radius)","--_CardOverflow-margin":"0 var(--CardOverflow-offset) var(--CardOverflow-offset)"},"&[data-last-child][data-first-child]":{"--AspectRatio-radius":r,"--_CardOverflow-margin":"var(--CardOverflow-offset)"},[`& > .${l2.root}:only-child`]:{zIndex:1,width:"calc(100% + -2 * var(--CardOverflow-offset))","--Button-margin":"0 var(--CardOverflow-offset)","--Button-radius":"0 0 var(--CardOverflow-radius) var(--CardOverflow-radius)"}},[`.${Dl.horizontal} &, .${Dl.vertical} .${Dl.horizontal} &`]:{"--_CardOverflow-flexDirection":"row","--AspectRatio-margin":"calc(-1 * var(--Card-padding)) 0px","--_CardOverflow-margin":"var(--CardOverflow-offset) 0px","--_CardOverflow-padding":"var(--Card-padding) 0px","&[data-first-child]":{"--AspectRatio-radius":`${r} 0 0 ${r}`,"--_CardOverflow-radius":"var(--CardOverflow-radius) 0 0 var(--CardOverflow-radius)","--_CardOverflow-margin":"var(--CardOverflow-offset) 0px var(--CardOverflow-offset) var(--CardOverflow-offset)"},"&[data-last-child]":{"--AspectRatio-radius":`0 ${r} ${r} 0`,"--_CardOverflow-radius":"0 var(--CardOverflow-radius) var(--CardOverflow-radius) 0","--_CardOverflow-margin":"var(--CardOverflow-offset) var(--CardOverflow-offset) var(--CardOverflow-offset) 0px"},"&[data-last-child][data-first-child]":{"--AspectRatio-radius":r,"--_CardOverflow-margin":"var(--CardOverflow-offset)"},[`& > .${l2.root}:only-child`]:{height:"calc(100% + -2 * var(--CardOverflow-offset))","--Button-margin":"var(--CardOverflow-offset) 0","--Button-radius":"0 var(--CardOverflow-radius) var(--CardOverflow-radius) 0"}}},(n=e.variants[t.variant])==null?void 0:n[t.color])}),Nh=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCardOverflow"}),{className:o,component:i="div",children:s,color:a="neutral",variant:l="plain",slots:c={},slotProps:u={}}=r,d=xe(r,nle),f=E({},r,{component:i,color:a,variant:l}),h=rle(f),m=E({},d,{component:i,slots:c,slotProps:u}),[y,C]=ou("root",{ref:n,className:ie(h.root,o),elementType:ole,externalForwardedProps:m,ownerState:f});return v.jsx(y,E({},C,{children:s}))});Nh.muiName="CardOverflow";const ile=["className","children","component","inset","orientation","role","slots","slotProps"],sle=e=>{const{orientation:t,inset:n}=e,r={root:["root",t,n&&`inset${ui(n)}`]};return up(r,Yae,{})},ale=as("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>E({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},t.inset==="none"&&{"--_Divider-inset":"0px"},t.inset==="context"&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:t.orientation==="vertical"?"initial":"var(--_Divider-inset)",marginBlock:t.orientation==="vertical"?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},t.children?E({"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:t.orientation==="vertical"?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0},e.typography["body-sm"],{"&::before, &::after":{position:"relative",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:t.orientation==="vertical"?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:t.orientation==="vertical"?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:t.orientation==="vertical"?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:t.orientation==="vertical"?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}):{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)"})),FF=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyDivider"}),{className:o,children:i,component:s=i!=null?"div":"hr",inset:a,orientation:l="horizontal",role:c=s!=="hr"?"separator":void 0,slots:u={},slotProps:d={}}=r,f=xe(r,ile),h=E({},r,{inset:a,role:c,orientation:l,component:s}),m=sle(h),y=E({},f,{component:s,slots:u,slotProps:d}),[C,w]=ou("root",{ref:n,className:ie(m.root,o),elementType:ale,externalForwardedProps:y,ownerState:h,additionalProps:E({as:s,role:c},c==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return v.jsx(C,E({},w,{children:i}))});FF.muiName="Divider";const Ht=vae({createStyledComponent:as("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Mu({props:e,name:"JoyGrid"})});function lle(){const{theme:e}=p.useContext(Po),t={color:e.text.secondary,textDecoration:"none",display:"block",padding:"8px 0",transition:"color 0.3s ease","&:hover":{color:e.text.primary}};return v.jsx(Qe,{component:"footer",sx:{py:6,px:2,backgroundColor:e.footer.backgroundColor,color:e.text.secondary,borderTop:`1px solid ${e.divider}`},children:v.jsxs(Kc,{maxWidth:"lg",children:[v.jsxs(Ht,{container:!0,spacing:4,justifyContent:"space-between",children:[v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(yw,{sx:{fontSize:40,mr:1,color:e.icon.color}}),v.jsx(Be,{variant:"h5",color:e.text.primary,sx:{fontWeight:"bold"},children:"Orchid Haven"})]}),v.jsx(Be,{variant:"body2",color:e.text.secondary,children:"Discover the beauty and diversity of orchids. Our passion is to share knowledge and inspire orchid enthusiasts worldwide."})]}),v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsx(Be,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Quick Links"}),v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column"},children:[v.jsx(Qo,{to:"/fer-lab1/",style:t,children:"Home"}),v.jsx(Qo,{to:"/fer-lab1/natural",style:t,children:"Special Orchid"}),v.jsx(Qo,{to:"/fer-lab1/news",style:t,children:"Orchid News"}),v.jsx(Qo,{to:"/fer-lab1/contact",style:t,children:"Contact Us"})]})]}),v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsx(Be,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Stay Connected"}),v.jsx(Be,{variant:"body2",color:e.text.secondary,gutterBottom:!0,children:"Follow us on social media for daily orchid inspiration and tips."}),v.jsxs(Qe,{children:[v.jsx(an,{color:"inherit","aria-label":"Facebook",href:"https://www.facebook.com/hoangnguyen.c1002/",children:v.jsx(U_,{})}),v.jsx(an,{color:"inherit","aria-label":"Twitter",href:"https://www.linkedin.com/in/hoang-nguyen-c1002/",children:v.jsx(g9,{})}),v.jsx(an,{color:"inherit","aria-label":"Instagram",href:"https://www.instagram.com/__hoang.nguyeen__/",children:v.jsx(W_,{})}),v.jsx(an,{color:"inherit","aria-label":"Github",href:"https://github.com/Hoang-Nguyen-Huy",children:v.jsx(G_,{})})]})]})]}),v.jsx(Ja,{sx:{my:4,backgroundColor:e.divider}}),v.jsxs(Qe,{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center",children:[v.jsxs(Be,{variant:"body2",color:e.text.secondary,children:["© ",new Date().getFullYear()," Orchid Haven. All rights reserved."]}),v.jsxs(Qe,{children:[v.jsx(Qo,{to:"#",style:{...t,display:"inline",marginRight:"16px"},children:"Privacy Policy"}),v.jsx(Qo,{to:"#",style:{...t,display:"inline"},children:"Terms of Service"})]})]})]})})}function cle(){const[e,t]=p.useState(!1),[n,r]=p.useState(null);return{isVisible:e,detail:n,showModal:s=>{r(s),t(!0)},hideModal:()=>t(!1)}}const ule=zr(LF);function R1({orchid:e}){const{isVisible:t,showModal:n,hideModal:r}=cle(),o=Gf(),{theme:i}=p.useContext(Po),s=()=>{o(`/fer-lab1/${e.Id}`)};return v.jsxs(v.Fragment,{children:[v.jsxs(ule,{variant:"outlined",sx:{bgcolor:i.card.backgroundColor,color:i.card.color,borderColor:i.divider},whileHover:{scale:1.05,boxShadow:i.elevation[3],transition:{duration:.3}},children:[v.jsx(Nh,{children:v.jsx(Zm,{variant:"outlined",ratio:"2",onClick:()=>n(e),children:v.jsx(zr.img,{src:e.image+"?auto=format&fit=crop&w=318"||Da+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x"||Da+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name,whileHover:{scale:1.1},transition:{duration:.3}})})}),v.jsxs(c2,{children:[v.jsx(Be,{level:"title-md",sx:{color:i.text.primary,fontWeight:"bold",mb:.5},children:e.name}),v.jsxs(Qe,{children:[v.jsxs(Be,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[v.jsx(iS,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.origin]}),v.jsxs(Be,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[v.jsx(V_,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.category]})]})]}),v.jsxs(Nh,{variant:"soft",sx:{bgcolor:i.action.hover},children:[v.jsx(FF,{inset:"context",sx:{bgcolor:i.divider}}),v.jsxs(c2,{orientation:"horizontal",sx:{justifyContent:"space-between"},children:[v.jsx(Xm,{name:"read-only",value:Number(e.rating),readOnly:!0}),v.jsx(zr.div,{whileHover:{scale:1.1},whileTap:{scale:.95},children:v.jsx(mr,{variant:"outlined",onClick:s,sx:{color:i.button.primary,borderColor:i.button.primary,"&:hover":{backgroundColor:i.button.hover,borderColor:i.button.hover}},children:"Detail"})})]})]})]}),v.jsx(Qf,{open:t,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:i.card.backgroundColor,border:`2px solid ${i.divider}`,boxShadow:24,p:4,color:i.card.color},children:[v.jsx(LF,{children:v.jsx(Nh,{children:v.jsx(Zm,{ratio:"2",children:v.jsx("img",{src:e.image+"?auto=format&fit=crop&w=318"||Da+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x"||Da+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name})})})}),v.jsx(Be,{id:"modal-modal-description",sx:{mt:2,color:i.text.primary},children:e.detail})]})})]})}const Ru="https://670f54e33e71518616575e20.mockapi.io/orchids-lab",jF=async()=>{try{const e=await fetch(`${Ru}`);if(!e.ok)throw new Error("Network response was not ok");return await e.json()}catch(e){throw console.error("Error fetching orchids:",e),e}},dle=async()=>{try{const e=await fetch(`${Ru}?isSpecial=true`);if(!e.ok)throw new Error("Network response was not ok");return await e.json()}catch(e){throw console.error("Error fetching orchids:",e),e}},fle=async e=>{try{const t=await fetch(`${Ru}?Id=${e}`);if(!t.ok)throw new Error("Network response was not ok");return(await t.json())[0]}catch(t){throw console.error("Error fetching orchids:",t),t}},ple=async e=>{try{const t=await fetch(`${Ru}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"same-origin"});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(t){throw console.error("Error creating orchid: ",t),t}},hle=async(e,t)=>{try{const n=await fetch(`${Ru}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),credentials:"same-origin"});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(n){throw console.error("Error updating orchid: ",n),n}},mle=async e=>{try{const t=await fetch(`${Ru}/${e}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(t){throw console.error("Error deleting orchid: ",t),t}};function gle(){const{theme:e}=p.useContext(Po),[t,n]=p.useState([]);return p.useEffect(()=>{(async()=>{try{const o=await jF();n(o.reverse())}catch(o){console.error("Failed to fetch orchids:",o)}})()},[]),v.jsx(Qe,{sx:{width:"100%"},children:v.jsx(Ht,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:t.map(r=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsx(R1,{orchid:r},r.Id)},r.Id))})})}var NF={},BF={},Qv={},zF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(zF);var vle="Expected a function",u2=NaN,yle="[object Symbol]",ble=/^\s+|\s+$/g,wle=/^[-+]0x[0-9a-f]+$/i,Cle=/^0b[01]+$/i,xle=/^0o[0-7]+$/i,Sle=parseInt,Ple=typeof Ip=="object"&&Ip&&Ip.Object===Object&&Ip,Ile=typeof self=="object"&&self&&self.Object===Object&&self,kle=Ple||Ile||Function("return this")(),Tle=Object.prototype,Ele=Tle.toString,Ole=Math.max,Mle=Math.min,zb=function(){return kle.Date.now()};function Rle(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(vle);t=d2(t)||0,lC(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Ole(d2(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(I){var T=r,M=o;return r=o=void 0,c=I,s=e.apply(M,T),s}function m(I){return c=I,a=setTimeout(w,t),u?h(I):s}function y(I){var T=I-l,M=I-c,k=t-T;return d?Mle(k,i-M):k}function C(I){var T=I-l,M=I-c;return l===void 0||T>=t||T<0||d&&M>=i}function w(){var I=zb();if(C(I))return b(I);a=setTimeout(w,y(I))}function b(I){return a=void 0,f&&r?h(I):(r=o=void 0,s)}function g(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function x(){return a===void 0?s:b(zb())}function P(){var I=zb(),T=C(I);if(r=arguments,o=this,l=I,T){if(a===void 0)return m(l);if(d)return a=setTimeout(w,t),h(l)}return a===void 0&&(a=setTimeout(w,t)),s}return P.cancel=g,P.flush=x,P}function lC(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $le(e){return!!e&&typeof e=="object"}function _le(e){return typeof e=="symbol"||$le(e)&&Ele.call(e)==yle}function d2(e){if(typeof e=="number")return e;if(_le(e))return u2;if(lC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(ble,"");var n=Cle.test(e);return n||xle.test(e)?Sle(e.slice(2),n?2:8):wle.test(e)?u2:+e}var Ale=Rle,HF={exports:{}};/*! + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Zoe||{"&::after":{animation:`${sC} 2s linear 0.5s infinite`}}}]}})),tie=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:o,component:s,variant:c,hasChildren:!!d.children},h=Qoe(f);return v.jsx(eie,{as:s,ref:n,className:ie(h.root,i),ownerState:f,...d,style:{width:u,height:a,...l}})});function nie(e){return Ne("MuiTooltip",e)}const Zt=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function rie(e){return Math.round(e*1e5)/1e5}const oie=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${re(i.split("-")[0])}`],arrow:["arrow"]};return ye(s,nie,t)},iie=ne(gl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(_e(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Zt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Zt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),sie=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${re(n.placement.split("-")[0])}`]]}})(_e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:We(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,[`.${Zt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Zt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rie(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Zt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Zt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Zt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aie=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(_e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:We(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rh=!1;const e2=new pv;let ad={x:0,y:0};function oh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const wF=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:y=0,enterTouchDelay:C=700,followCursor:w=!1,id:b,leaveDelay:g=0,leaveTouchDelay:x=1500,onClose:P,onOpen:I,open:T,placement:M="bottom",PopperComponent:k,PopperProps:S={},slotProps:R={},slots:O={},title:A,TransitionComponent:D,TransitionProps:_,...$}=r,L=p.isValidElement(i)?i:v.jsx("span",{children:i}),F=Su(),j=Ir(),[N,z]=p.useState(),[V,K]=p.useState(null),H=p.useRef(!1),G=f||w,q=uo(),ee=uo(),W=uo(),Z=uo(),[U,J]=Ks({controlled:T,default:!1,name:"Tooltip",state:"open"});let X=U;const ae=yt(b),fe=p.useRef(),me=nt(()=>{fe.current!==void 0&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),Z.clear()});p.useEffect(()=>me,[me]);const he=qe=>{e2.clear(),rh=!0,J(!0),I&&!X&&I(qe)},je=nt(qe=>{e2.start(800+g,()=>{rh=!1}),J(!1),P&&X&&P(qe),q.start(F.transitions.duration.shortest,()=>{H.current=!1})}),ge=qe=>{H.current&&qe.type!=="touchstart"||(N&&N.removeAttribute("title"),ee.clear(),W.clear(),m||rh&&y?ee.start(rh?y:m,()=>{he(qe)}):he(qe))},Ae=qe=>{ee.clear(),W.start(g,()=>{je(qe)})},[,Ve]=p.useState(!1),De=qe=>{Gc(qe.target)||(Ve(!1),Ae(qe))},Q=qe=>{N||z(qe.currentTarget),Gc(qe.target)&&(Ve(!0),ge(qe))},te=qe=>{H.current=!0;const Qn=L.props;Qn.onTouchStart&&Qn.onTouchStart(qe)},oe=qe=>{te(qe),W.clear(),q.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Z.start(C,()=>{document.body.style.WebkitUserSelect=fe.current,ge(qe)})},de=qe=>{L.props.onTouchEnd&&L.props.onTouchEnd(qe),me(),W.start(x,()=>{je(qe)})};p.useEffect(()=>{if(!X)return;function qe(Qn){Qn.key==="Escape"&&je(Qn)}return document.addEventListener("keydown",qe),()=>{document.removeEventListener("keydown",qe)}},[je,X]);const ve=mt(fl(L),z,n);!A&&A!==0&&(X=!1);const Se=p.useRef(),Ee=qe=>{const Qn=L.props;Qn.onMouseMove&&Qn.onMouseMove(qe),ad={x:qe.clientX,y:qe.clientY},Se.current&&Se.current.update()},Oe={},Ce=typeof A=="string";c?(Oe.title=!X&&Ce&&!d?A:null,Oe["aria-describedby"]=X?ae:null):(Oe["aria-label"]=Ce?A:null,Oe["aria-labelledby"]=X&&!Ce?ae:null);const we={...Oe,...$,...L.props,className:ie($.className,L.props.className),onTouchStart:te,ref:ve,...w?{onMouseMove:Ee}:{}},Le={};h||(we.onTouchStart=oe,we.onTouchEnd=de),d||(we.onMouseOver=oh(ge,we.onMouseOver),we.onMouseLeave=oh(Ae,we.onMouseLeave),G||(Le.onMouseOver=ge,Le.onMouseLeave=Ae)),u||(we.onFocus=oh(Q,we.onFocus),we.onBlur=oh(De,we.onBlur),G||(Le.onFocus=Q,Le.onBlur=De));const lt={...r,isRtl:j,arrow:o,disableInteractive:G,placement:M,PopperComponentProp:k,touch:H.current},pe=typeof R.popper=="function"?R.popper(lt):R.popper,ke=p.useMemo(()=>{var Qn,ga;let qe=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return(Qn=S.popperOptions)!=null&&Qn.modifiers&&(qe=qe.concat(S.popperOptions.modifiers)),(ga=pe==null?void 0:pe.popperOptions)!=null&&ga.modifiers&&(qe=qe.concat(pe.popperOptions.modifiers)),{...S.popperOptions,...pe==null?void 0:pe.popperOptions,modifiers:qe}},[V,S.popperOptions,pe==null?void 0:pe.popperOptions]),Ke=oie(lt),gt=typeof R.transition=="function"?R.transition(lt):R.transition,Kn={slots:{popper:a.Popper,transition:a.Transition??D,tooltip:a.Tooltip,arrow:a.Arrow,...O},slotProps:{arrow:R.arrow??l.arrow,popper:{...S,...pe??l.popper},tooltip:R.tooltip??l.tooltip,transition:{..._,...gt??l.transition}}},[qn,An]=hn("popper",{elementType:iie,externalForwardedProps:Kn,ownerState:lt,className:ie(Ke.popper,S==null?void 0:S.className)}),[Yn,Tr]=hn("transition",{elementType:xf,externalForwardedProps:Kn,ownerState:lt}),[cr,Xn]=hn("tooltip",{elementType:sie,className:Ke.tooltip,externalForwardedProps:Kn,ownerState:lt}),[Yr,xi]=hn("arrow",{elementType:aie,className:Ke.arrow,externalForwardedProps:Kn,ownerState:lt,ref:K});return v.jsxs(p.Fragment,{children:[p.cloneElement(L,we),v.jsx(qn,{as:k??gl,placement:M,anchorEl:w?{getBoundingClientRect:()=>({top:ad.y,left:ad.x,right:ad.x,bottom:ad.y,width:0,height:0})}:N,popperRef:Se,open:N?X:!1,id:ae,transition:!0,...Le,...An,popperOptions:ke,children:({TransitionProps:qe})=>v.jsx(Yn,{timeout:F.transitions.duration.shorter,...qe,...Tr,children:v.jsxs(cr,{...Xn,children:[A,o?v.jsx(Yr,{...xi}):null]})})})]})}),lie=p.createContext(),cie=p.createContext();function uie(e){return Ne("MuiTableCell",e)}const die=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),fie=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${re(r)}`,o!=="normal"&&`padding${re(o)}`,`size${re(i)}`]};return ye(a,uie,t)},pie=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${re(n.size)}`],n.padding!=="normal"&&t[`padding${re(n.padding)}`],n.align!=="inherit"&&t[`align${re(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(_e(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?dl(We(e.palette.divider,1),.88):ul(We(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${die.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),aC=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d,...f}=r,h=p.useContext(lie),m=p.useContext(cie),y=m&&m.variant==="head";let C;s?C=s:C=y?"th":"td";let w=l;C==="td"?w=void 0:!w&&y&&(w="col");const b=d||m&&m.variant,g={...r,align:o,component:C,padding:a||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&h&&h.stickyHeader,variant:b},x=fie(g);let P=null;return u&&(P=u==="asc"?"ascending":"descending"),v.jsx(pie,{as:C,ref:n,className:ie(x.root,i),"aria-sort":P,scope:w,ownerState:g,...f})}),hie=Te(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mie=Te(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),gie=p.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:s,nextIconButtonProps:a,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:h={},slotProps:m={},...y}=t,C=Ir(),w=z=>{l(z,0)},b=z=>{l(z,c-1)},g=z=>{l(z,c+1)},x=z=>{l(z,Math.max(0,Math.ceil(o/u)-1))},P=h.firstButton??an,I=h.lastButton??an,T=h.nextButton??an,M=h.previousButton??an,k=h.firstButtonIcon??Ioe,S=h.lastButtonIcon??koe,R=h.nextButtonIcon??mie,O=h.previousButtonIcon??hie,A=C?I:P,D=C?T:M,_=C?M:T,$=C?P:I,L=C?m.lastButton:m.firstButton,F=C?m.nextButton:m.previousButton,j=C?m.previousButton:m.nextButton,N=C?m.firstButton:m.lastButton;return v.jsxs("div",{ref:n,...y,children:[d&&v.jsx(A,{onClick:w,disabled:i||c===0,"aria-label":s("first",c),title:s("first",c),...L,children:C?v.jsx(S,{...m.lastButtonIcon}):v.jsx(k,{...m.firstButtonIcon})}),v.jsx(D,{onClick:b,disabled:i||c===0,color:"inherit","aria-label":s("previous",c),title:s("previous",c),...F??r,children:C?v.jsx(R,{...m.nextButtonIcon}):v.jsx(O,{...m.previousButtonIcon})}),v.jsx(_,{onClick:g,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":s("next",c),title:s("next",c),...j??a,children:C?v.jsx(O,{...m.previousButtonIcon}):v.jsx(R,{...m.nextButtonIcon})}),f&&v.jsx($,{onClick:x,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":s("last",c),title:s("last",c),...N,children:C?v.jsx(k,{...m.firstButtonIcon}):v.jsx(S,{...m.lastButtonIcon})})]})});function vie(e){return Ne("MuiTablePagination",e)}const Va=Fe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var t2;const yie=ne(aC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(_e(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),bie=ne(__,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Va.actions}`]:t.actions,...t.toolbar})})(_e(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Va.actions}`]:{flexShrink:0,marginLeft:20}}))),wie=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Cie=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(_e(({theme:e})=>({...e.typography.body2,flexShrink:0}))),xie=ne(nu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Va.selectIcon}`]:t.selectIcon,[`& .${Va.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Va.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Sie=ne(Mn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Pie=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(_e(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Iie({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function kie(e){return`Go to ${e} page`}const Tie=e=>{const{classes:t}=e;return ye({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},vie,t)},Eie=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=gie,backIconButtonProps:i,className:s,colSpan:a,component:l=aC,count:c,disabled:u=!1,getItemAriaLabel:d=kie,labelDisplayedRows:f=Iie,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:y,onRowsPerPageChange:C,page:w,rowsPerPage:b,rowsPerPageOptions:g=[10,25,50,100],SelectProps:x={},showFirstButton:P=!1,showLastButton:I=!1,slotProps:T={},slots:M={},...k}=r,S=r,R=Tie(S),O=(T==null?void 0:T.select)??x,A=O.native?"option":Sie;let D;(l===aC||l==="td")&&(D=a||1e3);const _=yt(O.id),$=yt(O.labelId),L=()=>c===-1?(w+1)*b:b===-1?c:Math.min(c,(w+1)*b);return v.jsx(yie,{colSpan:D,ref:n,as:l,ownerState:S,className:ie(R.root,s),...k,children:v.jsxs(bie,{className:R.toolbar,children:[v.jsx(wie,{className:R.spacer}),g.length>1&&v.jsx(Cie,{className:R.selectLabel,id:$,children:h}),g.length>1&&v.jsx(xie,{variant:"standard",...!O.variant&&{input:t2||(t2=v.jsx(Tu,{}))},value:b,onChange:C,id:_,labelId:$,...O,classes:{...O.classes,root:ie(R.input,R.selectRoot,(O.classes||{}).root),select:ie(R.select,(O.classes||{}).select),icon:ie(R.selectIcon,(O.classes||{}).icon)},disabled:u,children:g.map(F=>p.createElement(A,{...!km(A)&&{ownerState:S},className:R.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),v.jsx(Pie,{className:R.displayedRows,children:f({from:c===0?0:w*b+1,to:L(),count:c===-1?-1:c,page:w})}),v.jsx(o,{className:R.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:y,page:w,rowsPerPage:b,showFirstButton:P,showLastButton:I,slotProps:T.actions,slots:M.actions,getItemAriaLabel:d,disabled:u})]})})});function Oie(e){return Ne("MuiTextField",e)}Fe("MuiTextField",["root"]);const Mie={standard:qm,filled:Km,outlined:Xm},Rie=e=>{const{classes:t}=e;return ye({root:["root"]},Oie,t)},$ie=ne(fc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ls=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:m,id:y,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:g,label:x,maxRows:P,minRows:I,multiline:T=!1,name:M,onBlur:k,onChange:S,onFocus:R,placeholder:O,required:A=!1,rows:D,select:_=!1,SelectProps:$,slots:L={},slotProps:F={},type:j,value:N,variant:z="outlined",...V}=r,K={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:h,multiline:T,required:A,select:_,variant:z},H=Rie(K),G=yt(y),q=m&&G?`${G}-helper-text`:void 0,ee=x&&G?`${G}-label`:void 0,W=Mie[z],Z={slots:L,slotProps:{input:b,inputLabel:C,htmlInput:w,formHelperText:f,select:$,...F}},U={},J=Z.slotProps.inputLabel;z==="outlined"&&(J&&typeof J.shrink<"u"&&(U.notched=J.shrink),U.label=x),_&&((!$||!$.native)&&(U.id=void 0),U["aria-describedby"]=void 0);const[X,ae]=hn("input",{elementType:W,externalForwardedProps:Z,additionalProps:U,ownerState:K}),[fe,me]=hn("inputLabel",{elementType:Ym,externalForwardedProps:Z,ownerState:K}),[he,je]=hn("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:K}),[ge,Ae]=hn("formHelperText",{elementType:Nre,externalForwardedProps:Z,ownerState:K}),[Ve,De]=hn("select",{elementType:nu,externalForwardedProps:Z,ownerState:K}),Q=v.jsx(X,{"aria-describedby":q,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:h,multiline:T,name:M,rows:D,maxRows:P,minRows:I,type:j,value:N,id:G,inputRef:g,onBlur:k,onChange:S,onFocus:R,placeholder:O,inputProps:je,slots:{input:L.htmlInput?he:void 0},...ae});return v.jsxs($ie,{className:ie(H.root,a),disabled:u,error:d,fullWidth:h,ref:n,required:A,color:l,variant:z,ownerState:K,...V,children:[x!=null&&x!==""&&v.jsx(fe,{htmlFor:G,id:ee,...me,children:x}),_?v.jsx(Ve,{"aria-describedby":q,id:G,labelId:ee,value:N,input:Q,...De,children:s}):Q,m&&v.jsx(ge,{id:q,...Ae,children:m})]})}),n2=[{name:"Home",path:"/fer-lab1/"},{name:"Special",path:"/fer-lab1/natural"},{name:"News",path:"/fer-lab1/news"},{name:"About",path:"/fer-lab1/about"},{name:"Contact",path:"/fer-lab1/contact"}],_ie=[{name:"Dashboard",icon:v.jsx(p9,{}),path:"/fer-lab1/dashboard"},{name:"Logout",icon:v.jsx(b9,{})}];function Aie(){const[e,t]=p.useState(null),[n,r]=p.useState(null),{theme:o,light:i}=p.useContext(Po),s=wu(),[a,l]=p.useState(!1),{googleSignIn:c,user:u,logOut:d}=eF(),f=Gf(),h=p.useCallback(()=>{const I=window.scrollY>10;I!==a&&l(I)},[a]);p.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[h]);const m=I=>{t(I.currentTarget)},y=I=>{r(I.currentTarget)},C=()=>{t(null)},w=()=>{r(null)},b=()=>i?a?"white":"#333333":"white",g=async()=>{try{await c()}catch(I){console.log(I)}},x=async()=>{try{await d(),w()}catch(I){console.log(I)}},P=I=>{I.name==="Logout"?x():I.path&&f(I.path),w()};return v.jsx(q6,{position:"fixed",sx:{backgroundColor:a?o.header.backgroundColor:"transparent",boxShadow:a?3:0,transition:"all 0.3s ease-in-out"},children:v.jsx(Kc,{maxWidth:"xl",children:v.jsxs(__,{disableGutters:!0,children:[v.jsx(zr.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.5},children:v.jsx(bw,{sx:{display:{xs:"none",md:"flex"},mr:1,fontSize:40,color:b()}})}),v.jsx(Qo,{to:"/fer-lab1/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:v.jsx(Be,{variant:"h6",noWrap:!0,sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:b(),textDecoration:"none"},children:"ORCHID HAVEN"})}),v.jsxs(Qe,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[v.jsx(an,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:m,sx:{color:b()},children:v.jsx(P8,{})}),v.jsxs(Em,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:C,sx:{display:{xs:"block",md:"none"},"& .MuiPaper-root":{backgroundColor:o.card.backgroundColor,color:o.card.color}},disableScrollLock:!0,children:[n2.map(I=>v.jsx(Mn,{onClick:C,component:Qo,to:I.path,children:v.jsx(Be,{textAlign:"center",children:I.name})},I.name)),!u&&v.jsx(Mn,{onClick:g,children:v.jsx(Be,{textAlign:"center",children:"Login"})})]})]}),v.jsx(bw,{sx:{display:{xs:"flex",md:"none"},mr:1,fontSize:32,color:b()}}),v.jsx(Be,{variant:"h5",noWrap:!0,component:Qo,to:"/fer-lab1/",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:b(),textDecoration:"none"},children:"ORCHID HAVEN"}),v.jsx(Qe,{sx:{flexGrow:1,display:{xs:"none",md:"flex"},justifyContent:"center"},children:n2.map(I=>v.jsx(mr,{component:Qo,to:I.path,onClick:C,sx:{my:2,mx:1,color:b(),display:"block",fontFamily:"Poppins, sans-serif",fontWeight:500,position:"relative","&::after":{content:'""',position:"absolute",width:"100%",height:"2px",bottom:0,left:0,backgroundColor:b(),transform:s.pathname===I.path?"scaleX(1)":"scaleX(0)",transition:"transform 0.3s ease-in-out"},"&:hover::after":{transform:"scaleX(1)"}},children:I.name},I.name))}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",gap:2},children:[v.jsx(JK,{children:u?v.jsx(zr.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:v.jsx(wF,{title:"Open settings",children:v.jsx(an,{onClick:y,sx:{p:0},children:v.jsx(zS,{alt:u.displayName,src:u.photoURL,sx:{width:40,height:40,border:`2px solid ${b()}`}})})})}):v.jsx(zr.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:v.jsx(mr,{variant:"outlined",startIcon:v.jsx(y9,{}),onClick:g,sx:{color:b(),borderColor:b(),"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},display:{xs:"none",md:"flex"}},children:"Login"})})}),v.jsx(Em,{sx:{mt:"45px","& .MuiPaper-root":{backgroundColor:o.card.backgroundColor,color:o.card.color}},id:"menu-appbar",anchorEl:n,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:!!n,onClose:w,disableScrollLock:!0,children:_ie.map(I=>v.jsxs(Mn,{onClick:()=>P(I),children:[I.icon,v.jsx(Be,{sx:{ml:1},children:I.name})]},I.name))}),v.jsx(eq,{})]})]})})})}const ld={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},CF="$$joy";function lC(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function $s(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xF(e){if(!$s(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xF(e[n])}),t}function Gi(e,t,n={clone:!0}){const r=n.clone?E({},e):e;return $s(e)&&$s(t)&&Object.keys(t).forEach(o=>{$s(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&$s(e[o])?r[o]=Gi(e[o],t[o],n):n.clone?r[o]=$s(t[o])?xF(t[o]):t[o]:r[o]=t[o]}),r}const Fie=["values","unit","step"],jie=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>E({},n,{[r.key]:r.val}),{})};function SF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=xe(e,Fie),i=jie(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,h){const m=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${S1[e]}px)`};function rs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||r2;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||r2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||S1).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Bie(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function zie(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ui(e){if(typeof e!="string")throw new Error(lC(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Uv(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Jm(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Uv(e,n)||r,t&&(o=t(o,r,e)),o}function un(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Uv(l,r)||{};return rs(s,a,d=>{let f=Jm(c,o,d);return d===f&&typeof d=="string"&&(f=Jm(c,o,`${t}${d==="default"?"":ui(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Hie(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Vie={m:"margin",p:"padding"},Uie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},o2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gie=Hie(e=>{if(e.length>2)if(o2[e])e=o2[e];else return[e];const[t,n]=e.split(""),r=Vie[t],o=Uie[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),P1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],I1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...P1,...I1];function ap(e,t,n,r){var o;const i=(o=Uv(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function PF(e){return ap(e,"spacing",8)}function lp(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Wie(e,t){return n=>e.reduce((r,o)=>(r[o]=lp(t,n),r),{})}function Kie(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Gie(n),i=Wie(o,r),s=e[n];return rs(e,s,i)}function IF(e,t){const n=PF(e.theme);return Object.keys(e).map(r=>Kie(e,t,r,n)).reduce(Gd,{})}function Qt(e){return IF(e,P1)}Qt.propTypes={};Qt.filterProps=P1;function Jt(e){return IF(e,I1)}Jt.propTypes={};Jt.filterProps=I1;function kF(e=8){if(e.mui)return e;const t=PF({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Gv(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Gd(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function so(e){return typeof e!="number"?e:`${e}px solid`}function Io(e,t){return un({prop:e,themeKey:"borders",transform:t})}const qie=Io("border",so),Yie=Io("borderTop",so),Xie=Io("borderRight",so),Qie=Io("borderBottom",so),Jie=Io("borderLeft",so),Zie=Io("borderColor"),ese=Io("borderTopColor"),tse=Io("borderRightColor"),nse=Io("borderBottomColor"),rse=Io("borderLeftColor"),ose=Io("outline",so),ise=Io("outlineColor"),Wv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ap(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:lp(t,r)});return rs(e,e.borderRadius,n)}return null};Wv.propTypes={};Wv.filterProps=["borderRadius"];Gv(qie,Yie,Xie,Qie,Jie,Zie,ese,tse,nse,rse,Wv,ose,ise);const Kv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ap(e.theme,"spacing",8),n=r=>({gap:lp(t,r)});return rs(e,e.gap,n)}return null};Kv.propTypes={};Kv.filterProps=["gap"];const qv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({columnGap:lp(t,r)});return rs(e,e.columnGap,n)}return null};qv.propTypes={};qv.filterProps=["columnGap"];const Yv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ap(e.theme,"spacing",8),n=r=>({rowGap:lp(t,r)});return rs(e,e.rowGap,n)}return null};Yv.propTypes={};Yv.filterProps=["rowGap"];const sse=un({prop:"gridColumn"}),ase=un({prop:"gridRow"}),lse=un({prop:"gridAutoFlow"}),cse=un({prop:"gridAutoColumns"}),use=un({prop:"gridAutoRows"}),dse=un({prop:"gridTemplateColumns"}),fse=un({prop:"gridTemplateRows"}),pse=un({prop:"gridTemplateAreas"}),hse=un({prop:"gridArea"});Gv(Kv,qv,Yv,sse,ase,lse,cse,use,dse,fse,pse,hse);function Oc(e,t){return t==="grey"?t:e}const mse=un({prop:"color",themeKey:"palette",transform:Oc}),gse=un({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),vse=un({prop:"backgroundColor",themeKey:"palette",transform:Oc});Gv(mse,gse,vse);function Ar(e){return e<=1&&e!==0?`${e*100}%`:e}const yse=un({prop:"width",transform:Ar}),k1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||S1[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ar(n)}};return rs(e,e.maxWidth,t)}return null};k1.filterProps=["maxWidth"];const bse=un({prop:"minWidth",transform:Ar}),wse=un({prop:"height",transform:Ar}),Cse=un({prop:"maxHeight",transform:Ar}),xse=un({prop:"minHeight",transform:Ar});un({prop:"size",cssProperty:"width",transform:Ar});un({prop:"size",cssProperty:"height",transform:Ar});const Sse=un({prop:"boxSizing"});Gv(yse,k1,bse,wse,Cse,xse,Sse);const Xv={border:{themeKey:"borders",transform:so},borderTop:{themeKey:"borders",transform:so},borderRight:{themeKey:"borders",transform:so},borderBottom:{themeKey:"borders",transform:so},borderLeft:{themeKey:"borders",transform:so},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:so},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wv},color:{themeKey:"palette",transform:Oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oc},backgroundColor:{themeKey:"palette",transform:Oc},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},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:Kv},rowGap:{style:Yv},columnGap:{style:qv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ar},maxWidth:{style:k1},minWidth:{transform:Ar},height:{transform:Ar},maxHeight:{transform:Ar},minHeight:{transform:Ar},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Pse(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ise(e,t){return typeof e=="function"?e(t):e}function kse(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Uv(o,c)||{};return d?d(s):rs(s,r,m=>{let y=Jm(f,u,m);return m===y&&typeof m=="string"&&(y=Jm(f,u,`${n}${m==="default"?"":ui(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Xv;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Bie(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(h=>{const m=Ise(c[h],i);if(m!=null)if(typeof m=="object")if(s[h])f=Gd(f,e(h,m,i,s));else{const y=rs({theme:i},m,C=>({[h]:C}));Pse(y,m)?f[h]=t({sx:m,theme:i}):f=Gd(f,y)}else f=Gd(f,e(h,m,i,s))}),zie(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Qv=kse();Qv.filterProps=["sx"];function TF(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Tse=["breakpoints","palette","spacing","shape"];function T1(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=xe(e,Tse),a=SF(n),l=kF(o);let c=Gi({breakpoints:a,direction:"ltr",components:{},palette:E({mode:"light"},r),spacing:l,shape:E({},Nie,i)},s);return c.applyStyles=TF,c=t.reduce((u,d)=>Gi(u,d),c),c.unstable_sxConfig=E({},Xv,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Qv({sx:d,theme:this})},c}function Ese(e){return Object.keys(e).length===0}function Ose(e=null){const t=p.useContext(cv);return!t||Ese(t)?e:t}const Mse=T1();function EF(e=Mse){return Ose(e)}const Rse=["sx"],$se=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Xv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function _se(e){const{sx:t}=e,n=xe(e,Rse),{systemProps:r,otherProps:o}=$se(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return $s(a)?E({},r,a):r}:i=E({},r,t),E({},o,{sx:i})}const i2=e=>e,Ase=()=>{let e=i2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i2}}},Dse=Ase(),Lse={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 E1(e,t,n="Mui"){const r=Lse[t];return r?`${n}-${r}`:`${Dse.generate(e)}-${t}`}function Fse(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=E1(e,o,n)}),r}const jse=["ownerState"],Nse=["variants"],Bse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zse(e){return Object.keys(e).length===0}function Hse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vse=T1(),Use=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ih({defaultTheme:e,theme:t,themeId:n}){return zse(t)?e:t[n]||t}function Gse(e){return e?(t,n)=>n[e]:null}function jh(e,t){let{ownerState:n}=t,r=xe(t,jse);const o=typeof e=="function"?e(E({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>jh(i,E({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=xe(o,Nse);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(E({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(E({ownerState:n},r,n)):l.style))}),a}return o}function OF(e={}){const{themeId:t,defaultTheme:n=Vse,rootShouldForwardProp:r=Bb,slotShouldForwardProp:o=Bb}=e,i=s=>Qv(E({},s,{theme:ih(E({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Lie(s,P=>P.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Gse(Use(c))}=a,h=xe(a,Bse),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let C,w=Bb;c==="Root"||c==="root"?w=r:c?w=o:Hse(s)&&(w=void 0);const b=Die(s,E({shouldForwardProp:w,label:C},h)),g=P=>typeof P=="function"&&P.__emotion_real!==P||$s(P)?I=>jh(P,E({},I,{theme:ih({theme:I.theme,defaultTheme:n,themeId:t})})):P,x=(P,...I)=>{let T=g(P);const M=I?I.map(g):[];l&&f&&M.push(R=>{const O=ih(E({},R,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[l]||!O.components[l].styleOverrides)return null;const A=O.components[l].styleOverrides,D={};return Object.entries(A).forEach(([_,$])=>{D[_]=jh($,E({},R,{theme:O}))}),f(R,D)}),l&&!m&&M.push(R=>{var O;const A=ih(E({},R,{defaultTheme:n,themeId:t})),D=A==null||(O=A.components)==null||(O=O[l])==null?void 0:O.variants;return jh({variants:D},E({},R,{theme:A}))}),y||M.push(i);const k=M.length-I.length;if(Array.isArray(P)&&k>0){const R=new Array(k).fill("");T=[...P,...R],T.raw=[...P.raw,...R]}const S=b(T,...M);return s.muiName&&(S.muiName=s.muiName),S};return b.withConfig&&(x.withConfig=b.withConfig),x}}const Wse=OF();function MF(e,t){const n=E({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=E({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=E({},i),Object.keys(o).forEach(s=>{n[r][s]=MF(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Kse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:MF(t.components[n].defaultProps,r)}function RF({props:e,name:t,defaultTheme:n,themeId:r}){let o=EF(n);return r&&(o=o[r]||o),Kse({theme:o,name:t,props:e})}function qse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function $F(e){if(e.type)return e;if(e.charAt(0)==="#")return $F(qse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(lC(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(lC(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ya=e=>{const t=$F(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function _F(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Yse(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Xse(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Yse(n,t)})},e)}function Qse(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function O1(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const s2=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Jse=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},Zse=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function zb(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return Jse(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(o,{[u]:Zse(a,l)}),s2(i,a,`var(${u})`,c),s2(s,a,`var(${u}, ${l})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function eae(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ru(e){var t=eae(e,"string");return $f(t)=="symbol"?t:t+""}const tae=["colorSchemes","components","defaultColorScheme"];function nae(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=xe(e,tae),{vars:i,css:s,varsWithDefaults:a}=zb(o,t);let l=a;const c={},{[r]:u}=n,d=xe(n,[r].map(ru));if(Object.entries(d||{}).forEach(([h,m])=>{const{vars:y,css:C,varsWithDefaults:w}=zb(m,t);l=Gi(l,w),c[h]={css:C,vars:y}}),u){const{css:h,vars:m,varsWithDefaults:y}=zb(u,t);l=Gi(l,y),c[r]={css:h,vars:m}}return{vars:l,generateCssVars:h=>{var m;if(!h){var y;const w=E({},s);return{css:w,vars:i,selector:(t==null||(y=t.getSelector)==null?void 0:y.call(t,h,w))||":root"}}const C=E({},c[h].css);return{css:C,vars:c[h].vars,selector:(t==null||(m=t.getSelector)==null?void 0:m.call(t,h,C))||":root"}}}}const rae=(e,t)=>e.filter(n=>t.includes(n)),Eu=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((s,a)=>{i<=e.keys.length-1&&(i===0?Object.assign(s,a):s[e.up(e.keys[i])]=a)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:rae(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const s=t[i];s!==void 0&&n((a,l)=>{r===i?Object.assign(a,l):a[e.up(i)]=l},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function os(e){return e?`Level${e}`:""}function cp(e){return e.unstable_level>0&&e.container}function AF(e){return function(n){return`var(--Grid-${n}Spacing${os(e.unstable_level)})`}}function M1(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${os(e.unstable_level-1)})`}}function R1(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${os(e.unstable_level-1)})`}const oae=({theme:e,ownerState:t})=>{const n=AF(t),r={};return Eu(e.breakpoints,t.gridSize,(o,i)=>{let s={};i===!0&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${R1(t)}${cp(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},iae=({theme:e,ownerState:t})=>{const n={};return Eu(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${R1(t)})`}),r(n,i)}),n},sae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cp(t)?{[`--Grid-columns${os(t.unstable_level)}`]:R1(t)}:{"--Grid-columns":12};return Eu(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${os(t.unstable_level)}`]:o})}),n},aae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=M1(t),r=cp(t)?{[`--Grid-rowSpacing${os(t.unstable_level)}`]:n("row")}:{};return Eu(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${os(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},lae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=M1(t),r=cp(t)?{[`--Grid-columnSpacing${os(t.unstable_level)}`]:n("column")}:{};return Eu(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${os(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},cae=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Eu(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},uae=({ownerState:e})=>{const t=AF(e),n=M1(e);return E({minWidth:0,boxSizing:"border-box"},e.container&&E({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||cp(e))&&E({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},dae=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},fae=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},pae=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],hae=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],mae=T1(),gae=Wse("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function vae(e){return RF({props:e,name:"MuiGrid",defaultTheme:mae})}function yae(e={}){const{createStyledComponent:t=gae,useThemeProps:n=vae,componentName:r="MuiGrid"}=e,o=p.createContext(void 0),i=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:h,gridSize:m}=l,y={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...pae(d),...dae(m),...u?fae(f,c.breakpoints.keys[0]):[]]};return Qse(y,C=>E1(r,C),{})},s=t(sae,lae,aae,oae,cae,uae,iae),a=p.forwardRef(function(c,u){var d,f,h,m,y,C,w,b;const g=EF(),x=n(c),P=_se(x),I=p.useContext(o),{className:T,children:M,columns:k=12,container:S=!1,component:R="div",direction:O="row",wrap:A="wrap",spacing:D=0,rowSpacing:_=D,columnSpacing:$=D,disableEqualOverflow:L,unstable_level:F=0}=P,j=xe(P,hae);let N=L;F&&L!==void 0&&(N=c.disableEqualOverflow);const z={},V={},K={};Object.entries(j).forEach(([J,X])=>{g.breakpoints.values[J]!==void 0?z[J]=X:g.breakpoints.values[J.replace("Offset","")]!==void 0?V[J.replace("Offset","")]=X:K[J]=X});const H=(d=c.columns)!=null?d:F?void 0:k,G=(f=c.spacing)!=null?f:F?void 0:D,q=(h=(m=c.rowSpacing)!=null?m:c.spacing)!=null?h:F?void 0:_,ee=(y=(C=c.columnSpacing)!=null?C:c.spacing)!=null?y:F?void 0:$,W=E({},P,{level:F,columns:H,container:S,direction:O,wrap:A,spacing:G,rowSpacing:q,columnSpacing:ee,gridSize:z,gridOffset:V,disableEqualOverflow:(w=(b=N)!=null?b:I)!=null?w:!1,parentDisableEqualOverflow:I}),Z=i(W,g);let U=v.jsx(s,E({ref:u,as:R,ownerState:W,className:ie(Z.root,T)},K,{children:p.Children.map(M,J=>{if(p.isValidElement(J)&&_F(J,["Grid"])){var X;return p.cloneElement(J,{unstable_level:(X=J.props.unstable_level)!=null?X:F+1})}return J})}));return N!==void 0&&N!==(I??!1)&&(U=v.jsx(o.Provider,{value:N,children:U})),U});return a.muiName="Grid",a}const bae=E({},Xv,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function wae(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const Ou=(e,t)=>E1(e,t,"Mui"),yl=(e,t)=>Fse(e,t,"Mui"),Cae=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var n;return(n=t.match)==null?void 0:n.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a2=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l2=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach(([o,i])=>{if(o.match(new RegExp(`${e}(color|bg|border)`,"i"))&&i){const s=n?n(o):i;o.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),o.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),o.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),a2(r,o,s)}}),r},jn=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach(i=>{const[s,a]=i;Cae(a)&&typeof a=="object"&&(n=E({},n,{[s]:l2(e,a,l=>`var(--variant-${l}, ${r(`palette-${s}-${l}`,o[s][l])})`)}))})}return n.context=l2(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},xae=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Sae=["colorSchemes"],Pae=(e="joy")=>O1(e);function Iae(e){var t,n,r,o,i,s,a,l,c,u;const d={},{cssVarPrefix:f="joy",breakpoints:h,spacing:m,components:y,variants:C,shouldSkipGeneratingVar:w=wae}=d,b=xe(d,xae),g=Pae(f),x={primary:ld.blue,neutral:ld.grey,danger:ld.red,success:ld.green,warning:ld.yellow,common:{white:"#FFF",black:"#000"}},P=W=>{var Z;const U=W.split("-"),J=U[1],X=U[2];return g(W,(Z=x[J])==null?void 0:Z[X])},I=W=>({plainColor:P(`palette-${W}-500`),plainHoverBg:P(`palette-${W}-100`),plainActiveBg:P(`palette-${W}-200`),plainDisabledColor:P("palette-neutral-400"),outlinedColor:P(`palette-${W}-500`),outlinedBorder:P(`palette-${W}-300`),outlinedHoverBg:P(`palette-${W}-100`),outlinedActiveBg:P(`palette-${W}-200`),outlinedDisabledColor:P("palette-neutral-400"),outlinedDisabledBorder:P("palette-neutral-200"),softColor:P(`palette-${W}-700`),softBg:P(`palette-${W}-100`),softHoverBg:P(`palette-${W}-200`),softActiveColor:P(`palette-${W}-800`),softActiveBg:P(`palette-${W}-300`),softDisabledColor:P("palette-neutral-400"),softDisabledBg:P("palette-neutral-50"),solidColor:P("palette-common-white"),solidBg:P(`palette-${W}-500`),solidHoverBg:P(`palette-${W}-600`),solidActiveBg:P(`palette-${W}-700`),solidDisabledColor:P("palette-neutral-400"),solidDisabledBg:P("palette-neutral-100")}),T=W=>({plainColor:P(`palette-${W}-300`),plainHoverBg:P(`palette-${W}-800`),plainActiveBg:P(`palette-${W}-700`),plainDisabledColor:P("palette-neutral-500"),outlinedColor:P(`palette-${W}-200`),outlinedBorder:P(`palette-${W}-700`),outlinedHoverBg:P(`palette-${W}-800`),outlinedActiveBg:P(`palette-${W}-700`),outlinedDisabledColor:P("palette-neutral-500"),outlinedDisabledBorder:P("palette-neutral-800"),softColor:P(`palette-${W}-200`),softBg:P(`palette-${W}-800`),softHoverBg:P(`palette-${W}-700`),softActiveColor:P(`palette-${W}-100`),softActiveBg:P(`palette-${W}-600`),softDisabledColor:P("palette-neutral-500"),softDisabledBg:P("palette-neutral-800"),solidColor:P("palette-common-white"),solidBg:P(`palette-${W}-500`),solidHoverBg:P(`palette-${W}-600`),solidActiveBg:P(`palette-${W}-700`),solidDisabledColor:P("palette-neutral-500"),solidDisabledBg:P("palette-neutral-800")}),M={palette:{mode:"light",primary:E({},x.primary,I("primary")),neutral:E({},x.neutral,I("neutral"),{plainColor:P("palette-neutral-700"),plainHoverColor:P("palette-neutral-900"),outlinedColor:P("palette-neutral-700")}),danger:E({},x.danger,I("danger")),success:E({},x.success,I("success")),warning:E({},x.warning,I("warning")),common:{white:"#FFF",black:"#000"},text:{primary:P("palette-neutral-800"),secondary:P("palette-neutral-700"),tertiary:P("palette-neutral-600"),icon:P("palette-neutral-500")},background:{body:P("palette-common-white"),surface:P("palette-neutral-50"),popup:P("palette-common-white"),level1:P("palette-neutral-100"),level2:P("palette-neutral-200"),level3:P("palette-neutral-300"),tooltip:P("palette-neutral-500"),backdrop:`rgba(${g("palette-neutral-darkChannel",ya(x.neutral[900]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",ya(x.neutral[500]))} / 0.2)`,focusVisible:P("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},k={palette:{mode:"dark",primary:E({},x.primary,T("primary")),neutral:E({},x.neutral,T("neutral"),{plainColor:P("palette-neutral-300"),plainHoverColor:P("palette-neutral-300")}),danger:E({},x.danger,T("danger")),success:E({},x.success,T("success")),warning:E({},x.warning,T("warning")),common:{white:"#FFF",black:"#000"},text:{primary:P("palette-neutral-100"),secondary:P("palette-neutral-300"),tertiary:P("palette-neutral-400"),icon:P("palette-neutral-400")},background:{body:P("palette-common-black"),surface:P("palette-neutral-900"),popup:P("palette-common-black"),level1:P("palette-neutral-800"),level2:P("palette-neutral-700"),level3:P("palette-neutral-600"),tooltip:P("palette-neutral-600"),backdrop:`rgba(${g("palette-neutral-darkChannel",ya(x.neutral[50]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",ya(x.neutral[500]))} / 0.16)`,focusVisible:P("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},S='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',R=E({body:`"Inter", ${g(`fontFamily-fallback, ${S}`)}`,display:`"Inter", ${g(`fontFamily-fallback, ${S}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:S},b.fontFamily),O=E({sm:300,md:500,lg:600,xl:700},b.fontWeight),A=E({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),D=E({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),_=(t=(n=b.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:M.shadowRing,$=(r=(o=b.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowChannel)!=null?r:M.shadowChannel,L=(i=(s=b.colorSchemes)==null||(s=s.light)==null?void 0:s.shadowOpacity)!=null?i:M.shadowOpacity,F={colorSchemes:{light:M,dark:k},fontSize:A,fontFamily:R,fontWeight:O,focus:{thickness:"2px",selector:`&.${Ou("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${g("focus-thickness",(a=(l=b.focus)==null?void 0:l.thickness)!=null?a:"2px")})`,outline:`${g("focus-thickness",(c=(u=b.focus)==null?void 0:u.thickness)!=null?c:"2px")} solid ${g("palette-focusVisible",x.primary[500])}`}},lineHeight:D,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${g("shadowRing",_)}, 0px 1px 2px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,sm:`${g("shadowRing",_)}, 0px 1px 2px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 2px 4px 0px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,md:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 6px 12px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,lg:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 12px 16px -4px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`,xl:`${g("shadowRing",_)}, 0px 2px 8px -2px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)}), 0px 20px 24px -4px rgba(${g("shadowChannel",$)} / ${g("shadowOpacity",L)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-xl, ${O.xl}`),fontSize:g(`fontSize-xl4, ${A.xl4}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h2:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-xl, ${O.xl}`),fontSize:g(`fontSize-xl3, ${A.xl3}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h3:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-xl2, ${A.xl2}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},h4:{fontFamily:g(`fontFamily-display, ${R.display}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-xl, ${A.xl}`),lineHeight:g(`lineHeight-md, ${D.md}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-lg":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-lg, ${O.lg}`),fontSize:g(`fontSize-lg, ${A.lg}`),lineHeight:g(`lineHeight-xs, ${D.xs}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-md":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-md, ${A.md}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"title-sm":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-sm, ${A.sm}`),lineHeight:g(`lineHeight-sm, ${D.sm}`),color:g(`palette-text-primary, ${M.palette.text.primary}`)},"body-lg":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-lg, ${A.lg}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-secondary, ${M.palette.text.secondary}`)},"body-md":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-md, ${A.md}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-secondary, ${M.palette.text.secondary}`)},"body-sm":{fontFamily:g(`fontFamily-body, ${R.body}`),fontSize:g(`fontSize-sm, ${A.sm}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-tertiary, ${M.palette.text.tertiary}`)},"body-xs":{fontFamily:g(`fontFamily-body, ${R.body}`),fontWeight:g(`fontWeight-md, ${O.md}`),fontSize:g(`fontSize-xs, ${A.xs}`),lineHeight:g(`lineHeight-md, ${D.md}`),color:g(`palette-text-tertiary, ${M.palette.text.tertiary}`)}}},j=b?Gi(F,b):F,{colorSchemes:N}=j,z=xe(j,Sae),V=E({colorSchemes:N},z,{breakpoints:SF(h??{}),components:Gi({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:W,theme:Z})=>{var U;const J=W.instanceFontSize;return E({margin:"var(--Icon-margin)"},W.fontSize&&W.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${Z.vars.fontSize[W.fontSize]})`},!W.htmlColor&&E({color:`var(--Icon-color, ${V.vars.palette.text.icon})`},W.color&&W.color!=="inherit"&&Z.vars.palette[W.color]&&{color:`rgba(${(U=Z.vars.palette[W.color])==null?void 0:U.mainChannel} / 1)`}),J&&J!=="inherit"&&{"--Icon-fontSize":Z.vars.fontSize[J]})}}}},y),cssVarPrefix:f,getCssVar:g,spacing:kF(m)});function K(W,Z){Object.keys(Z).forEach(U=>{const J={main:"500",light:"200",dark:"700"};W==="dark"&&(J.main=400),!Z[U].mainChannel&&Z[U][J.main]&&(Z[U].mainChannel=ya(Z[U][J.main])),!Z[U].lightChannel&&Z[U][J.light]&&(Z[U].lightChannel=ya(Z[U][J.light])),!Z[U].darkChannel&&Z[U][J.dark]&&(Z[U].darkChannel=ya(Z[U][J.dark]))})}Object.entries(V.colorSchemes).forEach(([W,Z])=>{K(W,Z.palette)});const H={prefix:f,shouldSkipGeneratingVar:w},{vars:G,generateCssVars:q}=nae(E({colorSchemes:N},z),H);V.vars=G,V.generateCssVars=q,V.unstable_sxConfig=E({},bae,void 0),V.unstable_sx=function(Z){return Qv({sx:Z,theme:this})},V.getColorSchemeSelector=W=>W==="light"?"&":`&[data-joy-color-scheme="${W}"], [data-joy-color-scheme="${W}"] &`;const ee={getCssVar:g,palette:V.colorSchemes.light.palette};return V.variants=Gi({plain:jn("plain",ee),plainHover:jn("plainHover",ee),plainActive:jn("plainActive",ee),plainDisabled:jn("plainDisabled",ee),outlined:jn("outlined",ee),outlinedHover:jn("outlinedHover",ee),outlinedActive:jn("outlinedActive",ee),outlinedDisabled:jn("outlinedDisabled",ee),soft:jn("soft",ee),softHover:jn("softHover",ee),softActive:jn("softActive",ee),softDisabled:jn("softDisabled",ee),solid:jn("solid",ee),solidHover:jn("solidHover",ee),solidActive:jn("solidActive",ee),solidDisabled:jn("solidDisabled",ee)},C),V.palette=E({},V.colorSchemes.light.palette,{colorScheme:"light"}),V.shouldSkipGeneratingVar=w,V.applyStyles=TF,V}const DF=Iae(),ls=OF({defaultTheme:DF,themeId:CF});function Mu({props:e,name:t}){return RF({props:e,name:t,defaultTheme:E({},DF,{components:{}}),themeId:CF})}function kae(e){return typeof e=="string"}function Tae(e,t,n){return e===void 0||kae(e)?t:E({},t,{ownerState:E({},t.ownerState,n)})}function Eae(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Oae(e,t,n){return typeof e=="function"?e(t,n):e}function up(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function c2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Mae(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ie(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m=E({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=E({},n,o,r);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const s=Eae(E({},o,r)),a=c2(r),l=c2(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=E({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=E({},c,n,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Rae=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],$ae=["component","slots","slotProps"],_ae=["component"];function ou(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=xe(t,Rae),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=xe(i,$ae),h=u[e]||r,m=Oae(d[e],o),y=Mae(E({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m})),{props:{component:C},internalRef:w}=y,b=xe(y.props,_ae),g=Xse(w,m==null?void 0:m.ref,t.ref),x=s?s(b):{},P=E({},o,x),I=e==="root"?C||c:C,T=Tae(h,E({},e==="root"&&!c&&!u[e]&&a,e!=="root"&&!u[e]&&a,b,I&&{as:I},{ref:g}),P);return Object.keys(x).forEach(M=>{delete T[M]}),[h,T]}const Aae=({theme:e,ownerState:t},n)=>{let r={};function o(i){if(typeof i=="function"){const s=i(e);o(s)}else Array.isArray(i)?i.forEach(s=>{typeof s!="boolean"&&o(s)}):typeof i=="object"&&(r=E({},r,i))}return t.sx&&(o(t.sx),n.forEach(i=>{const s=r[i];if(typeof s=="string"||typeof s=="number")if(i==="borderRadius")if(typeof s=="number")r[i]=`${s}px`;else{var a;r[i]=((a=e.vars)==null?void 0:a.radius[s])||s}else["p","padding","m","margin"].indexOf(i)!==-1&&typeof s=="number"?r[i]=e.spacing(s):r[i]=s;else typeof s=="function"?r[i]=s(e):r[i]=void 0})),r},$1=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Zm="data-skip-inverted-colors",LF=`& :not([${Zm}], [${Zm}] *)`,FF=e=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,m,y,C,w,b,g,x,P,I;const T=$1(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[T("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[T("--palette-background-body")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.body} !important`,[T("--palette-background-surface")]:`${(r=e.colorSchemes.light)==null?void 0:r.palette.background.surface} !important`,[T("--palette-background-popup")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.popup} !important`,[T("--palette-background-level1")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.level1} !important`,[T("--palette-background-level2")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level2} !important`,[T("--palette-background-level3")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.level3} !important`,[T("--palette-text-primary")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[T("--palette-text-secondary")]:`${(c=e.colorSchemes.light)==null?void 0:c.palette.text.secondary} !important`,[T("--palette-text-tertiary")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.text.tertiary} !important`,[T("--palette-divider")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[T("--palette-focusVisible")]:`${(f=e.colorSchemes.dark)==null?void 0:f.palette.focusVisible} !important`,[T("--palette-background-body")]:`${(h=e.colorSchemes.dark)==null?void 0:h.palette.background.body} !important`,[T("--palette-background-surface")]:`${(m=e.colorSchemes.dark)==null?void 0:m.palette.background.surface} !important`,[T("--palette-background-popup")]:`${(y=e.colorSchemes.dark)==null?void 0:y.palette.background.popup} !important`,[T("--palette-background-level1")]:`${(C=e.colorSchemes.dark)==null?void 0:C.palette.background.level1} !important`,[T("--palette-background-level2")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.level2} !important`,[T("--palette-background-level3")]:`${(b=e.colorSchemes.dark)==null?void 0:b.palette.background.level3} !important`,[T("--palette-text-primary")]:`${(g=e.colorSchemes.dark)==null?void 0:g.palette.text.primary} !important`,[T("--palette-text-secondary")]:`${(x=e.colorSchemes.dark)==null?void 0:x.palette.text.secondary} !important`,[T("--palette-text-tertiary")]:`${(P=e.colorSchemes.dark)==null?void 0:P.palette.text.tertiary} !important`,[T("--palette-divider")]:`${(I=e.colorSchemes.dark)==null?void 0:I.palette.divider} !important`}}};function Dae(e){return e.theme!==void 0}const Lae=e=>t=>{const n=Dae(t)?t.theme:t,r=O1(n.cssVarPrefix),o=$1(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[LF]:{"--Badge-ringColor":i(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:i(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:i(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:i("palette-common-white"),[o("--palette-text-secondary")]:i(`palette-${e}-200`),[o("--palette-text-tertiary")]:i(`palette-${e}-300`),[o("--palette-text-icon")]:i(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":i(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":i(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${i(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":i(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":i("palette-common-white"),"--variant-softHoverColor":i("palette-common-white"),"--variant-softBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":i(`palette-${e}-${e==="neutral"?"600":"500"}`),"--variant-solidBg":i("palette-common-white"),"--variant-solidHoverBg":i("palette-common-white"),"--variant-solidActiveBg":i(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Zm}]`]:FF(n)}},Fae=e=>t=>{const{theme:n=t}=t,r=O1(n.cssVarPrefix),o=$1(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[LF]:{"--Badge-ringColor":i(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:i(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:i(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${i(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${i(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":i(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${i(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":i(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":i(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":i(`palette-${e}-200`),"--variant-softBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":i(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":i(`palette-${e}-600`),"--variant-solidActiveBg":i(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:i(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:i(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${i(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:i(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${i(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${i(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${i(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${i(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":i(`palette-${e}-600`),"--variant-outlinedHoverBorder":i(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${i(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":i(`palette-${e}-600`),"--variant-softBg":`rgba(${i(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":i(`palette-${e}-700`),"--variant-softHoverBg":i(`palette-${e}-200`),"--variant-softActiveBg":i(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":i("palette-common-white"),"--variant-solidBg":i(`palette-${e}-${e==="neutral"?"700":"500"}`),"--variant-solidHoverColor":i("palette-common-white"),"--variant-solidHoverBg":i(`palette-${e}-600`),"--variant-solidActiveBg":i(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${i(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${i(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Zm}]`]:FF(n)}};function jae(e){return Ou("MuiAspectRatio",e)}yl("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const Nae=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","flex","slots","slotProps"],Bae=e=>{const{variant:t,color:n}=e,r={root:["root"],content:["content",t&&`variant${ui(t)}`,n&&`color${ui(n)}`]};return up(r,jae,{})},zae=ls("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{const n=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight,r=typeof e.maxHeight=="number"?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":r||"9999px","--AspectRatio-minHeight":n||"0px","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,borderRadius:"var(--AspectRatio-radius)",display:e.flex?"flex":"block",flex:e.flex?1:"initial",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),Hae=ls("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return E({flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},e.typography["body-md"],(n=e.variants[t.variant])==null?void 0:n[t.color])}),eg=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyAspectRatio"}),{children:o,ratio:i="16 / 9",minHeight:s,maxHeight:a,objectFit:l="cover",color:c="neutral",variant:u="soft",component:d,flex:f=!1,slots:h={},slotProps:m={}}=r,y=xe(r,Nae),C=E({},r,{flex:f,minHeight:s,maxHeight:a,objectFit:l,ratio:i,color:c,variant:u}),w=Bae(C),b=E({},y,{component:d,slots:h,slotProps:m}),[g,x]=ou("root",{ref:n,className:w.root,elementType:zae,externalForwardedProps:b,ownerState:C}),[P,I]=ou("content",{className:w.content,elementType:Hae,externalForwardedProps:b,ownerState:C});return v.jsx(g,E({},x,{children:v.jsx(P,E({},I,{children:p.Children.map(o,(T,M)=>M===0&&p.isValidElement(T)?p.cloneElement(T,{"data-first-child":""}):T)}))}))}),u2=yl("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);function Vae(e){return Ou("MuiCard",e)}const Dl=yl("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),Uae=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],Gae=e=>{const{size:t,variant:n,color:r,orientation:o}=e,i={root:["root",o,n&&`variant${ui(n)}`,r&&`color${ui(r)}`,t&&`size${ui(t)}`]};return up(i,Vae,{})},Wae=ls("div")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:i}=Aae({theme:e,ownerState:t},["p","padding","borderRadius"]);return[E({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},t.size==="sm"&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},t.size==="md"&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},t.size==="lg"&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},e.typography[`body-${t.size}`],t.variant==="solid"&&t.color&&t.invertedColors&&Lae(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&Fae(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color]),r!==void 0&&{"--Card-padding":r},o!==void 0&&{"--Card-padding":o},i!==void 0&&{"--Card-radius":i}]}),Kae=ls(Wae,{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jF=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCard"}),{className:o,color:i="neutral",component:s="div",invertedColors:a=!1,size:l="md",variant:c="outlined",children:u,orientation:d="vertical",slots:f={},slotProps:h={}}=r,m=xe(r,Uae),y=E({},r,{color:i,component:s,orientation:d,size:l,variant:c,invertedColors:a}),C=Gae(y),w=E({},m,{component:s,slots:f,slotProps:h}),[b,g]=ou("root",{ref:n,className:ie(C.root,o),elementType:Kae,externalForwardedProps:w,ownerState:y});return v.jsx(b,E({},g,{children:p.Children.map(u,(x,P)=>{if(!p.isValidElement(x))return x;const I={};if(_F(x,["Divider"])){I.inset="inset"in x.props?x.props.inset:"context";const T=d==="vertical"?"horizontal":"vertical";I.orientation="orientation"in x.props?x.props.orientation:T}return P===0&&(I["data-first-child"]=""),P===p.Children.count(u)-1&&(I["data-last-child"]=""),p.cloneElement(x,I)})}))});function qae(e){return Ou("MuiCardOverflow",e)}const Yae=yl("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function Xae(e){return Ou("MuiDivider",e)}yl("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);function Qae(e){return Ou("MuiCardContent",e)}yl("MuiCardContent",["root"]);const Jae=["className","component","children","orientation","slots","slotProps"],Zae=()=>up({root:["root"]},Qae,{}),ele=ls("div")(({ownerState:e})=>({display:"flex",flexDirection:e.orientation==="horizontal"?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${Yae.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),tle=ls(ele,{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d2=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCardContent"}),{className:o,component:i="div",children:s,orientation:a="vertical",slots:l={},slotProps:c={}}=r,u=xe(r,Jae),d=E({},u,{component:i,slots:l,slotProps:c}),f=E({},r,{component:i,orientation:a}),h=Zae(),[m,y]=ou("root",{ref:n,className:ie(h.root,o),elementType:tle,externalForwardedProps:d,ownerState:f});return v.jsx(m,E({},y,{children:s}))}),nle=yl("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]),rle=["className","component","children","color","variant","slots","slotProps"],ole=e=>{const{variant:t,color:n}=e,r={root:["root",t&&`variant${ui(t)}`,n&&`color${ui(n)}`]};return up(r,qae,{})},ile=ls("div",{name:"JoyCardOverflow",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;const r="calc(var(--CardOverflow-radius) - var(--variant-borderWidth, 0px))";return E({alignSelf:"stretch",position:"relative",display:"flex",flexDirection:"var(--_CardOverflow-flexDirection)",margin:"var(--_CardOverflow-margin)",borderRadius:"var(--_CardOverflow-radius)",padding:"var(--_CardOverflow-padding)",[`.${Dl.vertical} &, .${Dl.horizontal} .${Dl.vertical} &, .${nle.root} &`]:{"--_CardOverflow-flexDirection":"column","--AspectRatio-margin":"0 calc(-1 * var(--Card-padding))","--_CardOverflow-margin":"0 var(--CardOverflow-offset)","--_CardOverflow-padding":"0 var(--Card-padding)","&[data-first-child]":{"--AspectRatio-radius":`${r} ${r} 0 0`,"--_CardOverflow-radius":"var(--CardOverflow-radius) var(--CardOverflow-radius) 0 0","--_CardOverflow-margin":"var(--CardOverflow-offset) var(--CardOverflow-offset) 0"},"&[data-last-child]":{"--AspectRatio-radius":`0 0 ${r} ${r}`,"--_CardOverflow-radius":"0 0 var(--CardOverflow-radius) var(--CardOverflow-radius)","--_CardOverflow-margin":"0 var(--CardOverflow-offset) var(--CardOverflow-offset)"},"&[data-last-child][data-first-child]":{"--AspectRatio-radius":r,"--_CardOverflow-margin":"var(--CardOverflow-offset)"},[`& > .${u2.root}:only-child`]:{zIndex:1,width:"calc(100% + -2 * var(--CardOverflow-offset))","--Button-margin":"0 var(--CardOverflow-offset)","--Button-radius":"0 0 var(--CardOverflow-radius) var(--CardOverflow-radius)"}},[`.${Dl.horizontal} &, .${Dl.vertical} .${Dl.horizontal} &`]:{"--_CardOverflow-flexDirection":"row","--AspectRatio-margin":"calc(-1 * var(--Card-padding)) 0px","--_CardOverflow-margin":"var(--CardOverflow-offset) 0px","--_CardOverflow-padding":"var(--Card-padding) 0px","&[data-first-child]":{"--AspectRatio-radius":`${r} 0 0 ${r}`,"--_CardOverflow-radius":"var(--CardOverflow-radius) 0 0 var(--CardOverflow-radius)","--_CardOverflow-margin":"var(--CardOverflow-offset) 0px var(--CardOverflow-offset) var(--CardOverflow-offset)"},"&[data-last-child]":{"--AspectRatio-radius":`0 ${r} ${r} 0`,"--_CardOverflow-radius":"0 var(--CardOverflow-radius) var(--CardOverflow-radius) 0","--_CardOverflow-margin":"var(--CardOverflow-offset) var(--CardOverflow-offset) var(--CardOverflow-offset) 0px"},"&[data-last-child][data-first-child]":{"--AspectRatio-radius":r,"--_CardOverflow-margin":"var(--CardOverflow-offset)"},[`& > .${u2.root}:only-child`]:{height:"calc(100% + -2 * var(--CardOverflow-offset))","--Button-margin":"var(--CardOverflow-offset) 0","--Button-radius":"0 var(--CardOverflow-radius) var(--CardOverflow-radius) 0"}}},(n=e.variants[t.variant])==null?void 0:n[t.color])}),Nh=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyCardOverflow"}),{className:o,component:i="div",children:s,color:a="neutral",variant:l="plain",slots:c={},slotProps:u={}}=r,d=xe(r,rle),f=E({},r,{component:i,color:a,variant:l}),h=ole(f),m=E({},d,{component:i,slots:c,slotProps:u}),[y,C]=ou("root",{ref:n,className:ie(h.root,o),elementType:ile,externalForwardedProps:m,ownerState:f});return v.jsx(y,E({},C,{children:s}))});Nh.muiName="CardOverflow";const sle=["className","children","component","inset","orientation","role","slots","slotProps"],ale=e=>{const{orientation:t,inset:n}=e,r={root:["root",t,n&&`inset${ui(n)}`]};return up(r,Xae,{})},lle=ls("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>E({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},t.inset==="none"&&{"--_Divider-inset":"0px"},t.inset==="context"&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:t.orientation==="vertical"?"initial":"var(--_Divider-inset)",marginBlock:t.orientation==="vertical"?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},t.children?E({"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:t.orientation==="vertical"?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0},e.typography["body-sm"],{"&::before, &::after":{position:"relative",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:t.orientation==="vertical"?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:t.orientation==="vertical"?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:t.orientation==="vertical"?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:t.orientation==="vertical"?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}):{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:t.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:t.orientation==="vertical"?"initial":"var(--Divider-thickness)"})),NF=p.forwardRef(function(t,n){const r=Mu({props:t,name:"JoyDivider"}),{className:o,children:i,component:s=i!=null?"div":"hr",inset:a,orientation:l="horizontal",role:c=s!=="hr"?"separator":void 0,slots:u={},slotProps:d={}}=r,f=xe(r,sle),h=E({},r,{inset:a,role:c,orientation:l,component:s}),m=ale(h),y=E({},f,{component:s,slots:u,slotProps:d}),[C,w]=ou("root",{ref:n,className:ie(m.root,o),elementType:lle,externalForwardedProps:y,ownerState:h,additionalProps:E({as:s,role:c},c==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return v.jsx(C,E({},w,{children:i}))});NF.muiName="Divider";const Ht=yae({createStyledComponent:ls("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Mu({props:e,name:"JoyGrid"})});function cle(){const{theme:e}=p.useContext(Po),t={color:e.text.secondary,textDecoration:"none",display:"block",padding:"8px 0",transition:"color 0.3s ease","&:hover":{color:e.text.primary}};return v.jsx(Qe,{component:"footer",sx:{py:6,px:2,backgroundColor:e.footer.backgroundColor,color:e.text.secondary,borderTop:`1px solid ${e.divider}`},children:v.jsxs(Kc,{maxWidth:"lg",children:[v.jsxs(Ht,{container:!0,spacing:4,justifyContent:"space-between",children:[v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(bw,{sx:{fontSize:40,mr:1,color:e.icon.color}}),v.jsx(Be,{variant:"h5",color:e.text.primary,sx:{fontWeight:"bold"},children:"Orchid Haven"})]}),v.jsx(Be,{variant:"body2",color:e.text.secondary,children:"Discover the beauty and diversity of orchids. Our passion is to share knowledge and inspire orchid enthusiasts worldwide."})]}),v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsx(Be,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Quick Links"}),v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column"},children:[v.jsx(Qo,{to:"/fer-lab1/",style:t,children:"Home"}),v.jsx(Qo,{to:"/fer-lab1/natural",style:t,children:"Special Orchid"}),v.jsx(Qo,{to:"/fer-lab1/news",style:t,children:"Orchid News"}),v.jsx(Qo,{to:"/fer-lab1/contact",style:t,children:"Contact Us"})]})]}),v.jsxs(Ht,{item:!0,xs:12,sm:4,children:[v.jsx(Be,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Stay Connected"}),v.jsx(Be,{variant:"body2",color:e.text.secondary,gutterBottom:!0,children:"Follow us on social media for daily orchid inspiration and tips."}),v.jsxs(Qe,{children:[v.jsx(an,{color:"inherit","aria-label":"Facebook",href:"https://www.facebook.com/hoangnguyen.c1002/",children:v.jsx(W_,{})}),v.jsx(an,{color:"inherit","aria-label":"Twitter",href:"https://www.linkedin.com/in/hoang-nguyen-c1002/",children:v.jsx(v9,{})}),v.jsx(an,{color:"inherit","aria-label":"Instagram",href:"https://www.instagram.com/__hoang.nguyeen__/",children:v.jsx(q_,{})}),v.jsx(an,{color:"inherit","aria-label":"Github",href:"https://github.com/Hoang-Nguyen-Huy",children:v.jsx(K_,{})})]})]})]}),v.jsx(Ja,{sx:{my:4,backgroundColor:e.divider}}),v.jsxs(Qe,{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center",children:[v.jsxs(Be,{variant:"body2",color:e.text.secondary,children:["© ",new Date().getFullYear()," Orchid Haven. All rights reserved."]}),v.jsxs(Qe,{children:[v.jsx(Qo,{to:"#",style:{...t,display:"inline",marginRight:"16px"},children:"Privacy Policy"}),v.jsx(Qo,{to:"#",style:{...t,display:"inline"},children:"Terms of Service"})]})]})]})})}function ule(){const[e,t]=p.useState(!1),[n,r]=p.useState(null);return{isVisible:e,detail:n,showModal:s=>{r(s),t(!0)},hideModal:()=>t(!1)}}const dle=zr(jF);function _1({orchid:e}){const{isVisible:t,showModal:n,hideModal:r}=ule(),o=Gf(),{theme:i}=p.useContext(Po),s=()=>{o(`/fer-lab1/${e.Id}`)};return v.jsxs(v.Fragment,{children:[v.jsxs(dle,{variant:"outlined",sx:{bgcolor:i.card.backgroundColor,color:i.card.color,borderColor:i.divider},whileHover:{scale:1.05,boxShadow:i.elevation[3],transition:{duration:.3}},children:[v.jsx(Nh,{children:v.jsx(eg,{variant:"outlined",ratio:"2",onClick:()=>n(e),children:v.jsx(zr.img,{src:e.image+"?auto=format&fit=crop&w=318"||La+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x"||La+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name,whileHover:{scale:1.1},transition:{duration:.3}})})}),v.jsxs(d2,{children:[v.jsx(Be,{level:"title-md",sx:{color:i.text.primary,fontWeight:"bold",mb:.5},children:e.name}),v.jsxs(Qe,{children:[v.jsxs(Be,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[v.jsx(aS,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.origin]}),v.jsxs(Be,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[v.jsx(G_,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.category]})]})]}),v.jsxs(Nh,{variant:"soft",sx:{bgcolor:i.action.hover},children:[v.jsx(NF,{inset:"context",sx:{bgcolor:i.divider}}),v.jsxs(d2,{orientation:"horizontal",sx:{justifyContent:"space-between"},children:[v.jsx(Qm,{name:"read-only",value:Number(e.rating),readOnly:!0}),v.jsx(zr.div,{whileHover:{scale:1.1},whileTap:{scale:.95},children:v.jsx(mr,{variant:"outlined",onClick:s,sx:{color:i.button.primary,borderColor:i.button.primary,"&:hover":{backgroundColor:i.button.hover,borderColor:i.button.hover}},children:"Detail"})})]})]})]}),v.jsx(Qf,{open:t,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:i.card.backgroundColor,border:`2px solid ${i.divider}`,boxShadow:24,p:4,color:i.card.color},children:[v.jsx(jF,{children:v.jsx(Nh,{children:v.jsx(eg,{ratio:"2",children:v.jsx("img",{src:e.image+"?auto=format&fit=crop&w=318"||La+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x"||La+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name})})})}),v.jsx(Be,{id:"modal-modal-description",sx:{mt:2,color:i.text.primary},children:e.detail})]})})]})}const Ru="https://670f54e33e71518616575e20.mockapi.io/orchids-lab",BF=async()=>{try{const e=await fetch(`${Ru}`);if(!e.ok)throw new Error("Network response was not ok");return await e.json()}catch(e){throw console.error("Error fetching orchids:",e),e}},fle=async()=>{try{const e=await fetch(`${Ru}?isSpecial=true`);if(!e.ok)throw new Error("Network response was not ok");return await e.json()}catch(e){throw console.error("Error fetching orchids:",e),e}},ple=async e=>{try{const t=await fetch(`${Ru}?Id=${e}`);if(!t.ok)throw new Error("Network response was not ok");return(await t.json())[0]}catch(t){throw console.error("Error fetching orchids:",t),t}},hle=async e=>{try{const t=await fetch(`${Ru}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"same-origin"});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(t){throw console.error("Error creating orchid: ",t),t}},mle=async(e,t)=>{try{const n=await fetch(`${Ru}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),credentials:"same-origin"});if(!n.ok)throw new Error("Network response was not ok");return await n.json()}catch(n){throw console.error("Error updating orchid: ",n),n}},gle=async e=>{try{const t=await fetch(`${Ru}/${e}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error("Network response was not ok");return await t.json()}catch(t){throw console.error("Error deleting orchid: ",t),t}};function vle(){const{theme:e}=p.useContext(Po),[t,n]=p.useState([]);return p.useEffect(()=>{(async()=>{try{const o=await BF();n(o.reverse())}catch(o){console.error("Failed to fetch orchids:",o)}})()},[]),v.jsx(Qe,{sx:{width:"100%"},children:v.jsx(Ht,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:t.map(r=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsx(_1,{orchid:r},r.Id)},r.Id))})})}var zF={},HF={},Jv={},VF={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(VF);var yle="Expected a function",f2=NaN,ble="[object Symbol]",wle=/^\s+|\s+$/g,Cle=/^[-+]0x[0-9a-f]+$/i,xle=/^0b[01]+$/i,Sle=/^0o[0-7]+$/i,Ple=parseInt,Ile=typeof Ip=="object"&&Ip&&Ip.Object===Object&&Ip,kle=typeof self=="object"&&self&&self.Object===Object&&self,Tle=Ile||kle||Function("return this")(),Ele=Object.prototype,Ole=Ele.toString,Mle=Math.max,Rle=Math.min,Hb=function(){return Tle.Date.now()};function $le(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(yle);t=p2(t)||0,cC(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Mle(p2(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(I){var T=r,M=o;return r=o=void 0,c=I,s=e.apply(M,T),s}function m(I){return c=I,a=setTimeout(w,t),u?h(I):s}function y(I){var T=I-l,M=I-c,k=t-T;return d?Rle(k,i-M):k}function C(I){var T=I-l,M=I-c;return l===void 0||T>=t||T<0||d&&M>=i}function w(){var I=Hb();if(C(I))return b(I);a=setTimeout(w,y(I))}function b(I){return a=void 0,f&&r?h(I):(r=o=void 0,s)}function g(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function x(){return a===void 0?s:b(Hb())}function P(){var I=Hb(),T=C(I);if(r=arguments,o=this,l=I,T){if(a===void 0)return m(l);if(d)return a=setTimeout(w,t),h(l)}return a===void 0&&(a=setTimeout(w,t)),s}return P.cancel=g,P.flush=x,P}function cC(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _le(e){return!!e&&typeof e=="object"}function Ale(e){return typeof e=="symbol"||_le(e)&&Ole.call(e)==ble}function p2(e){if(typeof e=="number")return e;if(Ale(e))return f2;if(cC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wle,"");var n=xle.test(e);return n||Sle.test(e)?Ple(e.slice(2),n?2:8):Cle.test(e)?f2:+e}var Dle=$le,UF={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 n(){for(var i="",s=0;s0?1:0):0},zle=Pe.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},cC=Pe.getWidth=function(t){return t&&t.offsetWidth||0},qF=Pe.getHeight=function(t){return t&&t.offsetHeight||0},YF=Pe.getSwipeDirection=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,o,i,s;return r=t.startX-t.curX,o=t.startY-t.curY,i=Math.atan2(o,r),s=Math.round(i*180/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":n===!0?s>=35&&s<=135?"up":"down":"vertical"},XF=Pe.canGoNext=function(t){var n=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(n=!1),n};Pe.extractObject=function(t,n){var r={};return n.forEach(function(o){return r[o]=t[o]}),r};Pe.initializedState=function(t){var n=Dle.default.Children.count(t.children),r=t.listRef,o=Math.ceil(cC(r)),i=t.trackRef&&t.trackRef.node,s=Math.ceil(cC(i)),a;if(t.vertical)a=o;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=o/100),a=Math.ceil((o-l)/t.slidesToShow)}var c=r&&qF(r.querySelector('[data-index="0"]')),u=c*t.slidesToShow,d=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(d=n-1-t.initialSlide);var f=t.lazyLoadedList||[],h=GF(jt(jt({},t),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(h);var m={slideCount:n,slideWidth:a,listWidth:o,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:f};return t.autoplaying===null&&t.autoplay&&(m.autoplaying="playing"),m};Pe.slideHandler=function(t){var n=t.waitForAnimate,r=t.animating,o=t.fade,i=t.infinite,s=t.index,a=t.slideCount,l=t.lazyLoad,c=t.currentSlide,u=t.centerMode,d=t.slidesToScroll,f=t.slidesToShow,h=t.useCSS,m=t.lazyLoadedList;if(n&&r)return{};var y=s,C,w,b,g={},x={},P=i?s:UF(s,0,a-1);if(o){if(!i&&(s<0||s>=a))return{};s<0?y=s+a:s>=a&&(y=s-a),l&&m.indexOf(y)<0&&(m=m.concat(y)),g={animating:!0,currentSlide:y,lazyLoadedList:m,targetSlide:y},x={animating:!1,targetSlide:y}}else C=y,y<0?(C=y+a,i?a%d!==0&&(C=a-a%d):C=0):!XF(t)&&y>c?y=C=c:u&&y>=a?(y=i?a:a-1,C=i?0:a-1):y>=a&&(C=y-a,i?a%d!==0&&(C=0):C=a-f),!i&&y+f>=a&&(C=a-f),w=tg(jt(jt({},t),{},{slideIndex:y})),b=tg(jt(jt({},t),{},{slideIndex:C})),i||(w===b&&(y=C),w=b),l&&(m=m.concat(GF(jt(jt({},t),{},{currentSlide:y})))),h?(g={animating:!0,currentSlide:C,trackStyle:QF(jt(jt({},t),{},{left:w})),lazyLoadedList:m,targetSlide:P},x={animating:!1,currentSlide:C,trackStyle:eg(jt(jt({},t),{},{left:b})),swipeLeft:null,targetSlide:P}):g={currentSlide:C,trackStyle:eg(jt(jt({},t),{},{left:b})),lazyLoadedList:m,targetSlide:P};return{state:g,nextState:x}};Pe.changeSlide=function(t,n){var r,o,i,s,a,l=t.slidesToScroll,c=t.slidesToShow,u=t.slideCount,d=t.currentSlide,f=t.targetSlide,h=t.lazyLoad,m=t.infinite;if(s=u%l!==0,r=s?0:(u-d)%l,n.message==="previous")i=r===0?l:c-r,a=d-i,h&&!m&&(o=d-i,a=o===-1?u-1:o),m||(a=f-l);else if(n.message==="next")i=r===0?l:r,a=d+i,h&&!m&&(a=(d+l)%u+r),m||(a=f+l);else if(n.message==="dots")a=n.index*n.slidesToScroll;else if(n.message==="children"){if(a=n.index,m){var y=Gle(jt(jt({},t),{},{targetSlide:a}));a>n.currentSlide&&y==="left"?a=a-u:a10)return{scrolling:!0};a&&(b.swipeLength=k);var S=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(S=b.curY>b.startY?1:-1);var R=Math.ceil(y/C),O=YF(n.touchObject,a),A=b.swipeLength;return w||(c===0&&(O==="right"||O==="down")||c+1>=R&&(O==="left"||O==="up")||!XF(n)&&(O==="left"||O==="up"))&&(A=b.swipeLength*u,d===!1&&f&&(f(O),T.edgeDragged=!0)),!h&&g&&(g(O),T.swiped=!0),i?I=M+A*(x/P)*S:l?I=M-A*S:I=M+A*S,a&&(I=M+A*S),T=jt(jt({},T),{},{touchObject:b,swipeLeft:I,trackStyle:eg(jt(jt({},n),{},{left:I}))}),Math.abs(b.curX-b.startX)10&&(T.swiping=!0,Mc(t)),T}};Pe.swipeEnd=function(t,n){var r=n.dragging,o=n.swipe,i=n.touchObject,s=n.listWidth,a=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,u=n.swipeToSlide,d=n.scrolling,f=n.onSwipe,h=n.targetSlide,m=n.currentSlide,y=n.infinite;if(!r)return o&&Mc(t),{};var C=l?c/a:s/a,w=YF(i,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return b;if(i.swipeLength>C){Mc(t),f&&f(w);var g,x,P=y?m:h;switch(w){case"left":case"up":x=P+h2(n),g=u?p2(n,x):x,b.currentDirection=0;break;case"right":case"down":x=P-h2(n),g=u?p2(n,x):x,b.currentDirection=1;break;default:g=P}b.triggerSlideHandler=g}else{var I=tg(n);b.trackStyle=QF(jt(jt({},n),{},{left:I}))}return b};var Hle=Pe.getNavigableIndexes=function(t){for(var n=t.infinite?t.slideCount*2:t.slideCount,r=t.infinite?t.slidesToShow*-1:0,o=t.infinite?t.slidesToShow*-1:0,i=[];rr[r.length-1])n=r[r.length-1];else for(var i in r){if(nt.swipeLeft*-1)return r=l,!1}else if(l.offsetLeft-n+cC(l)/2>t.swipeLeft*-1)return r=l,!1;return!0}),!r)return 0;var s=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,a=Math.abs(r.dataset.index-s)||1;return a}else return t.slidesToScroll},_1=Pe.checkSpecKeys=function(t,n){return n.reduce(function(r,o){return r&&t.hasOwnProperty(o)},!0)?null:console.error("Keys Missing:",t)},eg=Pe.getTrackCSS=function(t){_1(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,o=t.slideCount+2*t.slidesToShow;t.vertical?r=o*t.slideHeight:n=Ule(t)*t.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=jt(jt({},i),{},{WebkitTransform:s,transform:a,msTransform:l})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),n&&(i.width=n),r&&(i.height=r),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i},QF=Pe.getTrackAnimateCSS=function(t){_1(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=eg(t);return t.useTransform?(n.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,n.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?n.transition="top "+t.speed+"ms "+t.cssEase:n.transition="left "+t.speed+"ms "+t.cssEase,n},tg=Pe.getTrackLeft=function(t){if(t.unslick)return 0;_1(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=t.slideIndex,r=t.trackRef,o=t.infinite,i=t.centerMode,s=t.slideCount,a=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,u=t.listWidth,d=t.variableWidth,f=t.slideHeight,h=t.fade,m=t.vertical,y=0,C,w,b=0;if(h||t.slideCount===1)return 0;var g=0;if(o?(g=-Bh(t),s%l!==0&&n+l>s&&(g=-(n>s?a-(n-s):s%l)),i&&(g+=parseInt(a/2))):(s%l!==0&&n+l>s&&(g=a-s%l),i&&(g=parseInt(a/2))),y=g*c,b=g*f,m?C=n*f*-1+b:C=n*c*-1+y,d===!0){var x,P=r&&r.node;if(x=n+Bh(t),w=P&&P.childNodes[x],C=w?w.offsetLeft*-1:0,i===!0){x=o?n+Bh(t):n,w=P&&P.children[x],C=0;for(var I=0;It.currentSlide?t.targetSlide>t.currentSlide+Wle(t)?"left":"right":t.targetSlide0&&(s+=1),o&&n%2===0&&(s+=1),s}return o?0:n-1},Kle=Pe.slidesOnLeft=function(t){var n=t.slidesToShow,r=t.centerMode,o=t.rtl,i=t.centerPadding;if(r){var s=(n-1)/2+1;return parseInt(i)>0&&(s+=1),!o&&n%2===0&&(s+=1),s}return o?n-1:0};Pe.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var qle=Pe.validSettings=Object.keys(Lle.default);function Yle(e){return qle.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}var Zv={};Object.defineProperty(Zv,"__esModule",{value:!0});Zv.Track=void 0;var xs=JF(p),Hb=JF(Jv),Vb=Pe;function JF(e){return e&&e.__esModule?e:{default:e}}function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),r=(s-t.currentSlide)%t.slideCount===0,s>t.currentSlide-i-1&&s<=t.currentSlide+i&&(n=!0)):n=t.currentSlide<=s&&s=t.slideCount?a=t.targetSlide-t.slideCount:a=t.targetSlide;var l=s===a;return{"slick-slide":!0,"slick-active":n,"slick-center":r,"slick-cloned":o,"slick-current":l}},rce=function(t){var n={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(n.width=t.slideWidth),t.fade&&(n.position="relative",t.vertical?n.top=-t.index*parseInt(t.slideHeight):n.left=-t.index*parseInt(t.slideWidth),n.opacity=t.currentSlide===t.index?1:0,n.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(n.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),n},Gb=function(t,n){return t.key||n},oce=function(t){var n,r=[],o=[],i=[],s=xs.default.Children.count(t.children),a=(0,Vb.lazyStartIndex)(t),l=(0,Vb.lazyEndIndex)(t);return xs.default.Children.forEach(t.children,function(c,u){var d,f={message:"children",index:u,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(u)>=0?d=c:d=xs.default.createElement("div",null);var h=rce(ur(ur({},t),{},{index:u})),m=d.props.className||"",y=Ub(ur(ur({},t),{},{index:u}));if(r.push(xs.default.cloneElement(d,{key:"original"+Gb(d,u),"data-index":u,className:(0,Hb.default)(y,m),tabIndex:"-1","aria-hidden":!y["slick-active"],style:ur(ur({outline:"none"},d.props.style||{}),h),onClick:function(b){d.props&&d.props.onClick&&d.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(f)}})),t.infinite&&t.fade===!1){var C=s-u;C<=(0,Vb.getPreClones)(t)&&(n=-C,n>=a&&(d=c),y=Ub(ur(ur({},t),{},{index:n})),o.push(xs.default.cloneElement(d,{key:"precloned"+Gb(d,n),"data-index":n,tabIndex:"-1",className:(0,Hb.default)(y,m),"aria-hidden":!y["slick-active"],style:ur(ur({},d.props.style||{}),h),onClick:function(b){d.props&&d.props.onClick&&d.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(f)}}))),n=s+u,n=x&&f<=b:f===x}),I={message:"dots",index:C,slidesToScroll:c,currentSlide:f},T=this.clickHandler.bind(this,I);y=y.concat(sh.default.createElement("li",{key:C,className:P},sh.default.cloneElement(this.props.customPaging(C),{onClick:T})))}return sh.default.cloneElement(this.props.appendDots(y),sce({className:this.props.dotsClass},m))}}]),n}(sh.default.PureComponent);var au={};function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}Object.defineProperty(au,"__esModule",{value:!0});au.PrevArrow=au.NextArrow=void 0;var Rc=ij(p),oj=ij(Jv),vce=Pe;function ij(e){return e&&e.__esModule?e:{default:e}}function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!gC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ece?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!gC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Tce.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pj=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof cu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Fce(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof cu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new jce(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),mj=typeof WeakMap<"u"?new WeakMap:new fj,gj=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Oce.getInstance(),r=new Nce(t,n,this);mj.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){gj.prototype[e]=function(){var t;return(t=mj.get(this))[e].apply(t,arguments)}});var Bce=function(){return typeof ag.ResizeObserver<"u"?ag.ResizeObserver:gj}();const zce=Object.freeze(Object.defineProperty({__proto__:null,default:Bce},Symbol.toStringTag,{value:"Module"})),Hce=DN(zce);Object.defineProperty(Qv,"__esModule",{value:!0});Qv.InnerSlider=void 0;var Zn=dp(p),Vce=dp(zF),Uce=dp(Ale),Gce=dp(Jv),Bt=Pe,Wce=Zv,Kce=ey,w2=au,qce=dp(Hce);function dp(e){return e&&e.__esModule?e:{default:e}}function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function cg(){return cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xce(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function C2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t0&&(o.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(s)}}),o.props.onLazyLoad&&o.props.onLazyLoad(s))}var a=Ue({listRef:o.list,trackRef:o.track},o.props);o.updateState(a,!0,function(){o.adaptHeight(),o.props.autoplay&&o.autoPlay("update")}),o.props.lazyLoad==="progressive"&&(o.lazyLoadTimer=setInterval(o.progressiveLazyLoad,1e3)),o.ro=new qce.default(function(){o.state.animating?(o.onWindowResized(!1),o.callbackTimers.push(setTimeout(function(){return o.onWindowResized()},o.props.speed))):o.onWindowResized()}),o.ro.observe(o.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=o.props.pauseOnFocus?o.onSlideFocus:null,l.onblur=o.props.pauseOnFocus?o.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",o.onWindowResized):window.attachEvent("onresize",o.onWindowResized)}),st(it(o),"componentWillUnmount",function(){o.animationEndCallback&&clearTimeout(o.animationEndCallback),o.lazyLoadTimer&&clearInterval(o.lazyLoadTimer),o.callbackTimers.length&&(o.callbackTimers.forEach(function(s){return clearTimeout(s)}),o.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",o.onWindowResized):window.detachEvent("onresize",o.onWindowResized),o.autoplayTimer&&clearInterval(o.autoplayTimer),o.ro.disconnect()}),st(it(o),"componentDidUpdate",function(s){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var a=(0,Bt.getOnDemandLazySlides)(Ue(Ue({},o.props),o.state));a.length>0&&(o.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(a)}}),o.props.onLazyLoad&&o.props.onLazyLoad(a))}o.adaptHeight();var l=Ue(Ue({listRef:o.list,trackRef:o.track},o.props),o.state),c=o.didPropsChange(s);c&&o.updateState(l,c,function(){o.state.currentSlide>=Zn.default.Children.count(o.props.children)&&o.changeSlide({message:"index",index:Zn.default.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),o.props.autoplay?o.autoPlay("update"):o.pause("paused")})}),st(it(o),"onWindowResized",function(s){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=(0,Uce.default)(function(){return o.resizeWindow(s)},50),o.debouncedResize()}),st(it(o),"resizeWindow",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=!!(o.track&&o.track.node);if(a){var l=Ue(Ue({listRef:o.list,trackRef:o.track},o.props),o.state);o.updateState(l,s,function(){o.props.autoplay?o.autoPlay("update"):o.pause("paused")}),o.setState({animating:!1}),clearTimeout(o.animationEndCallback),delete o.animationEndCallback}}),st(it(o),"updateState",function(s,a,l){var c=(0,Bt.initializedState)(s);s=Ue(Ue(Ue({},s),c),{},{slideIndex:c.currentSlide});var u=(0,Bt.getTrackLeft)(s);s=Ue(Ue({},s),{},{left:u});var d=(0,Bt.getTrackCSS)(s);(a||Zn.default.Children.count(o.props.children)!==Zn.default.Children.count(s.children))&&(c.trackStyle=d),o.setState(c,l)}),st(it(o),"ssrInit",function(){if(o.props.variableWidth){var s=0,a=0,l=[],c=(0,Bt.getPreClones)(Ue(Ue(Ue({},o.props),o.state),{},{slideCount:o.props.children.length})),u=(0,Bt.getPostClones)(Ue(Ue(Ue({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach(function(T){l.push(T.props.style.width),s+=T.props.style.width});for(var d=0;d=a&&o.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var d=c.onclick;c.onclick=function(f){d(f),c.parentNode.focus()}}c.onload||(o.props.lazyLoad?c.onload=function(){o.adaptHeight(),o.callbackTimers.push(setTimeout(o.onWindowResized,o.props.speed))}:(c.onload=u,c.onerror=function(){u(),o.props.onLazyLoadError&&o.props.onLazyLoadError()}))})}),st(it(o),"progressiveLazyLoad",function(){for(var s=[],a=Ue(Ue({},o.props),o.state),l=o.state.currentSlide;l=-(0,Bt.getPreClones)(a);c--)if(o.state.lazyLoadedList.indexOf(c)<0){s.push(c);break}s.length>0?(o.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(s)}}),o.props.onLazyLoad&&o.props.onLazyLoad(s)):o.lazyLoadTimer&&(clearInterval(o.lazyLoadTimer),delete o.lazyLoadTimer)}),st(it(o),"slideHandler",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=o.props,c=l.asNavFor,u=l.beforeChange,d=l.onLazyLoad,f=l.speed,h=l.afterChange,m=o.state.currentSlide,y=(0,Bt.slideHandler)(Ue(Ue(Ue({index:s},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!a})),C=y.state,w=y.nextState;if(C){u&&u(m,C.currentSlide);var b=C.lazyLoadedList.filter(function(g){return o.state.lazyLoadedList.indexOf(g)<0});d&&b.length>0&&d(b),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),h&&h(m),delete o.animationEndCallback),o.setState(C,function(){c&&o.asNavForIndex!==s&&(o.asNavForIndex=s,c.innerSlider.slideHandler(s)),w&&(o.animationEndCallback=setTimeout(function(){var g=w.animating,x=Yce(w,["animating"]);o.setState(x,function(){o.callbackTimers.push(setTimeout(function(){return o.setState({animating:g})},10)),h&&h(C.currentSlide),delete o.animationEndCallback})},f))})}}),st(it(o),"changeSlide",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=Ue(Ue({},o.props),o.state),c=(0,Bt.changeSlide)(l,s);if(!(c!==0&&!c)&&(a===!0?o.slideHandler(c,a):o.slideHandler(c),o.props.autoplay&&o.autoPlay("update"),o.props.focusOnSelect)){var u=o.list.querySelectorAll(".slick-current");u[0]&&u[0].focus()}}),st(it(o),"clickHandler",function(s){o.clickable===!1&&(s.stopPropagation(),s.preventDefault()),o.clickable=!0}),st(it(o),"keyHandler",function(s){var a=(0,Bt.keyHandler)(s,o.props.accessibility,o.props.rtl);a!==""&&o.changeSlide({message:a})}),st(it(o),"selectHandler",function(s){o.changeSlide(s)}),st(it(o),"disableBodyScroll",function(){var s=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=s}),st(it(o),"enableBodyScroll",function(){window.ontouchmove=null}),st(it(o),"swipeStart",function(s){o.props.verticalSwiping&&o.disableBodyScroll();var a=(0,Bt.swipeStart)(s,o.props.swipe,o.props.draggable);a!==""&&o.setState(a)}),st(it(o),"swipeMove",function(s){var a=(0,Bt.swipeMove)(s,Ue(Ue(Ue({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));a&&(a.swiping&&(o.clickable=!1),o.setState(a))}),st(it(o),"swipeEnd",function(s){var a=(0,Bt.swipeEnd)(s,Ue(Ue(Ue({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));if(a){var l=a.triggerSlideHandler;delete a.triggerSlideHandler,o.setState(a),l!==void 0&&(o.slideHandler(l),o.props.verticalSwiping&&o.enableBodyScroll())}}),st(it(o),"touchEnd",function(s){o.swipeEnd(s),o.clickable=!0}),st(it(o),"slickPrev",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"previous"})},0))}),st(it(o),"slickNext",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"next"})},0))}),st(it(o),"slickGoTo",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s=Number(s),isNaN(s))return"";o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"index",index:s,currentSlide:o.state.currentSlide},a)},0))}),st(it(o),"play",function(){var s;if(o.props.rtl)s=o.state.currentSlide-o.props.slidesToScroll;else if((0,Bt.canGoNext)(Ue(Ue({},o.props),o.state)))s=o.state.currentSlide+o.props.slidesToScroll;else return!1;o.slideHandler(s)}),st(it(o),"autoPlay",function(s){o.autoplayTimer&&clearInterval(o.autoplayTimer);var a=o.state.autoplaying;if(s==="update"){if(a==="hovered"||a==="focused"||a==="paused")return}else if(s==="leave"){if(a==="paused"||a==="focused")return}else if(s==="blur"&&(a==="paused"||a==="hovered"))return;o.autoplayTimer=setInterval(o.play,o.props.autoplaySpeed+50),o.setState({autoplaying:"playing"})}),st(it(o),"pause",function(s){o.autoplayTimer&&(clearInterval(o.autoplayTimer),o.autoplayTimer=null);var a=o.state.autoplaying;s==="paused"?o.setState({autoplaying:"paused"}):s==="focused"?(a==="hovered"||a==="playing")&&o.setState({autoplaying:"focused"}):a==="playing"&&o.setState({autoplaying:"hovered"})}),st(it(o),"onDotsOver",function(){return o.props.autoplay&&o.pause("hovered")}),st(it(o),"onDotsLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),st(it(o),"onTrackOver",function(){return o.props.autoplay&&o.pause("hovered")}),st(it(o),"onTrackLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),st(it(o),"onSlideFocus",function(){return o.props.autoplay&&o.pause("focused")}),st(it(o),"onSlideBlur",function(){return o.props.autoplay&&o.state.autoplaying==="focused"&&o.autoPlay("blur")}),st(it(o),"render",function(){var s=(0,Gce.default)("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=Ue(Ue({},o.props),o.state),l=(0,Bt.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=o.props.pauseOnHover;l=Ue(Ue({},l),{},{onMouseEnter:c?o.onTrackOver:null,onMouseLeave:c?o.onTrackLeave:null,onMouseOver:c?o.onTrackOver:null,focusOnSelect:o.props.focusOnSelect&&o.clickable?o.selectHandler:null});var u;if(o.props.dots===!0&&o.state.slideCount>=o.props.slidesToShow){var d=(0,Bt.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=o.props.pauseOnDotsHover;d=Ue(Ue({},d),{},{clickHandler:o.changeSlide,onMouseEnter:f?o.onDotsLeave:null,onMouseOver:f?o.onDotsOver:null,onMouseLeave:f?o.onDotsLeave:null}),u=Zn.default.createElement(Kce.Dots,d)}var h,m,y=(0,Bt.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=o.changeSlide,o.props.arrows&&(h=Zn.default.createElement(w2.PrevArrow,y),m=Zn.default.createElement(w2.NextArrow,y));var C=null;o.props.vertical&&(C={height:o.state.listHeight});var w=null;o.props.vertical===!1?o.props.centerMode===!0&&(w={padding:"0px "+o.props.centerPadding}):o.props.centerMode===!0&&(w={padding:o.props.centerPadding+" 0px"});var b=Ue(Ue({},C),w),g=o.props.touchMove,x={className:"slick-list",style:b,onClick:o.clickHandler,onMouseDown:g?o.swipeStart:null,onMouseMove:o.state.dragging&&g?o.swipeMove:null,onMouseUp:g?o.swipeEnd:null,onMouseLeave:o.state.dragging&&g?o.swipeEnd:null,onTouchStart:g?o.swipeStart:null,onTouchMove:o.state.dragging&&g?o.swipeMove:null,onTouchEnd:g?o.touchEnd:null,onTouchCancel:o.state.dragging&&g?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},P={className:s,dir:"ltr",style:o.props.style};return o.props.unslick&&(x={className:"slick-list"},P={className:s}),Zn.default.createElement("div",P,o.props.unslick?"":h,Zn.default.createElement("div",cg({ref:o.listRefHandler},x),Zn.default.createElement(Wce.Track,cg({ref:o.trackRefHandler},l),o.props.children)),o.props.unslick?"":m,o.props.unslick?"":u)}),o.list=null,o.track=null,o.state=Ue(Ue({},Vce.default),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:Zn.default.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var i=o.ssrInit();return o.state=Ue(Ue({},o.state),i),o}return Zce(n,[{key:"didPropsChange",value:function(o){for(var i=!1,s=0,a=Object.keys(this.props);s1&&arguments[1]!==void 0?arguments[1]:!1;return A.innerSlider.slickGoTo(D,_)}),P(b(A),"slickPause",function(){return A.innerSlider.pause("paused")}),P(b(A),"slickPlay",function(){return A.innerSlider.autoPlay("play")}),A.state={breakpoint:null},A._responsiveMediaHandlers=[],A}return h(R,[{key:"media",value:function(A,D){M.register(A,D),this._responsiveMediaHandlers.push({query:A,handler:D})}},{key:"componentDidMount",value:function(){var A=this;if(this.props.responsive){var D=this.props.responsive.map(function($){return $.breakpoint});D.sort(function($,L){return $-L}),D.forEach(function($,L){var F;L===0?F=(0,r.default)({minWidth:0,maxWidth:$}):F=(0,r.default)({minWidth:D[L-1]+1,maxWidth:$}),(0,i.canUseDOM)()&&A.media(F,function(){A.setState({breakpoint:$})})});var _=(0,r.default)({minWidth:D.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(_,function(){A.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(A){M.unregister(A.query,A.handler)})}},{key:"render",value:function(){var A=this,D,_;this.state.breakpoint?(_=this.props.responsive.filter(function(G){return G.breakpoint===A.state.breakpoint}),D=_[0].settings==="unslick"?"unslick":u(u(u({},o.default),this.props),_[0].settings)):D=u(u({},o.default),this.props),D.centerMode&&(D.slidesToScroll>1,D.slidesToScroll=1),D.fade&&(D.slidesToShow>1,D.slidesToScroll>1,D.slidesToShow=1,D.slidesToScroll=1);var $=t.default.Children.toArray(this.props.children);$=$.filter(function(G){return typeof G=="string"?!!G.trim():!!G}),D.variableWidth&&(D.rows>1||D.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),D.variableWidth=!1);for(var L=[],F=null,j=0;j<$.length;j+=D.rows*D.slidesPerRow){for(var N=[],z=j;z=$.length));K+=1)V.push(t.default.cloneElement($[K],{key:100*j+10*z+K,tabIndex:-1,style:{width:"".concat(100/D.slidesPerRow,"%"),display:"inline-block"}}));N.push(t.default.createElement("div",{key:10*j+z},V))}D.variableWidth?L.push(t.default.createElement("div",{key:j,style:{width:F}},N)):L.push(t.default.createElement("div",{key:j},N))}if(D==="unslick"){var H="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:H},$)}else L.length<=D.slidesToShow&&!D.infinite&&(D.unslick=!0);return t.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,i.filterSettings)(D)),L)}}]),R}(t.default.Component)})(BF);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(BF);function n(r){return r&&r.__esModule?r:{default:r}}e.default=t.default})(NF);const hue=hu(NF),E2=e=>{const t={Asia:["China","Japan","Thailand","Vietnam","Indonesia","Philippines","Malaysia","India"],Europe:["Netherlands","Germany","France","Italy","Spain","United Kingdom"],"North America":["United States","Canada","Mexico"],"South America":["Brazil","Colombia","Peru","Ecuador"],Africa:["South Africa","Kenya","Tanzania","Madagascar"],Oceania:["Australia","New Zealand","Papua New Guinea"]};for(const[n,r]of Object.entries(t))if(r.includes(e))return n;return"Other"},mue=[{Id:"1",name:"Taichung Beauty",rating:5,isSpecial:!0,image:"https://barritaorchids.com/cdn/shop/products/Cf592_1024x1024.jpg",color:"pink",origin:"Taiwan",category:"Cattleya",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"A striking orchid with large, vibrant pink flowers. Native to Taiwan, the Taichung Beauty is highly valued for its bold colors and long-lasting blooms. It is commonly cultivated for decorative purposes."},{Id:"2",name:"Phalaenopsis Elegance",rating:4,isSpecial:!0,image:"https://images.unsplash.com/photo-1639374593182-88b49b80a688?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8UGhhbGFlbm9wc2lzJTIwRWxlZ2FuY2V8ZW58MHx8MHx8fDA%3D",color:"white",origin:"Thailand",category:"Phalaenopsis",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"This elegant orchid is admired for its pure white petals and graceful appearance. Originating from Thailand, the Phalaenopsis Elegance is widely known as the 'Moth Orchid' due to its petal shape and is commonly grown in households."},{Id:"3",name:"Vanda Blue Charm",rating:5,isSpecial:!1,image:"https://plus.unsplash.com/premium_photo-1666855258034-8d2c36091ec1?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"blue",origin:"Philippines",category:"Vanda",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known for its rare and vibrant blue color, the Vanda Blue Charm is an exotic orchid native to the Philippines. Its large, stunning flowers make it a highly sought-after plant in orchid collections worldwide."},{Id:"4",name:"Dendrobium Noble",rating:3,isSpecial:!1,image:"https://www.gardentags.com/plant-encyclopedia/images/2703/dendrobium-nobile.jpeg",color:"purple",origin:"Vietnam",category:"Dendrobium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With its compact size and beautiful purple blooms, the Dendrobium Noble is a versatile orchid perfect for both indoor and outdoor environments. It thrives in warm, tropical climates and is widely grown in Vietnam."},{Id:"5",name:"Cymbidium Green Glow",rating:4,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1689643577385-57af0aba150e?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"green",origin:"China",category:"Cymbidium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"This unique orchid stands out with its fresh green color. Known for its hardiness, the Cymbidium Green Glow originates from China and is often used in floral arrangements due to its long-lasting nature and elegant presence."},{Id:"6",name:"Oncidium Shining Star",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1674343963928-d67007d2ae74?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"yellow",origin:"Brazil",category:"Oncidium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With bright yellow flowers, the Oncidium Shining Star is known for its cheerful appearance. Native to Brazil, this orchid is easy to care for and is commonly used in decorative displays, making it a favorite among gardeners."},{Id:"7",name:"Paphiopedilum Venus",rating:4,isSpecial:!1,image:"https://images.unsplash.com/photo-1516477266610-9e4c763da721?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"red",origin:"India",category:"Paphiopedilum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Often referred to as the 'Lady Slipper Orchid', Paphiopedilum Venus is notable for its unique pouch-shaped petals. Originating from India, it is loved for its striking red flowers and is a prized addition to many collections."},{Id:"8",name:"Cattleya Golden Sunset",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1726192307773-cb64923bdc63?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"orange",origin:"Colombia",category:"Cattleya",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"The Cattleya Golden Sunset is admired for its bright orange flowers that evoke the beauty of a tropical sunset. Originating from Colombia, this orchid is often associated with warmth and happiness, making it a popular decorative plant."},{Id:"9",name:"Zygopetalum Tropical Beauty",rating:3,isSpecial:!1,image:"https://plus.unsplash.com/premium_photo-1681276170873-c6071233076e?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"brown",origin:"Costa Rica",category:"Zygopetalum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known for its distinct brown and purple blooms, the Zygopetalum Tropical Beauty is native to Costa Rica. This orchid thrives in humid environments and is popular for its exotic appearance and delightful fragrance."},{Id:"10",name:"Maxillaria Coconut Delight",rating:4,isSpecial:!1,image:"https://images.unsplash.com/photo-1454262041357-5d96f50a2f27?q=80&w=1169&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"white",origin:"Mexico",category:"Maxillaria",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Emitting a sweet coconut scent, the Maxillaria Coconut Delight is loved by orchid enthusiasts for its fragrance and delicate white blooms. Native to Mexico, this orchid brings a tropical essence to any setting."},{Id:"11",name:"Brassia Spider Star",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1663962390315-0825787f07a8?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"green",origin:"Ecuador",category:"Brassia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known as the 'Spider Orchid' for its long, spindly petals, the Brassia Spider Star has a unique and captivating appearance. Originating from Ecuador, it is a favorite among collectors for its striking structure and greenish hues."},{Id:"12",name:"Laelia Pink Paradise",rating:4,isSpecial:!1,image:"https://littleorchidannie.com/cdn/shop/files/Ctly._Spring_Fragrance_flower__75160.jpg?v=1714437883&width=533",color:"pink",origin:"Mexico",category:"Laelia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With soft pink petals and a subtle fragrance, the Laelia Pink Paradise is a native of Mexico. It symbolizes love and beauty, often used in romantic bouquets."},{Id:"13",name:"Bulbophyllum Medusae",rating:5,isSpecial:!0,image:"https://www.laforestaorchids.com/cdn/shop/files/bulbophyllum-medusae-bulbophyllum-la-foresta-orchids-295241.jpg?v=1701390801",color:"white",origin:"Malaysia",category:"Bulbophyllum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"An unusual and exotic orchid, the Bulbophyllum Medusae has long, tendril-like petals resembling the mythical Medusa. Native to Malaysia, it is favored by collectors for its bizarre yet fascinating appearance."},{Id:"14",name:"Coelogyne Cristata",rating:4,isSpecial:!1,image:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqs0jSeBbqz4JXop6kfH-v1SADXUDoKmmQYJVbKRo2Yg-3p4dvSidePWrU70J0A-embOKQLxGsae5d9QhH_QUYg0Cc0Hw4Ud14aQma5nJyN3jEYaQw-pTZtttCoMlGWsrXj2yd3Z5VseE/s1600/1024px-Coelogyne_cristata_3.jpg",color:"white",origin:"Himalayas",category:"Coelogyne",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With pristine white blooms, Coelogyne Cristata is often associated with purity and serenity. Originating from the Himalayan region, it thrives in cool climates and is popular for its cascading flowers."},{Id:"15",name:"Miltonia Sunset",rating:3,isSpecial:!1,image:"https://tropicalorchidsportugal.com/wp-content/uploads/2024/03/miltonia-sunset-02-1-1-1.png",color:"pink",origin:"Brazil",category:"Miltonia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Miltonia Sunset boasts vibrant pink flowers with a golden center, resembling a tropical sunset. Native to Brazil, this orchid is loved for its beauty and is often grown in warm, humid environments."},{Id:"16",name:"Phragmipedium Scarlet Flame",rating:5,isSpecial:!0,image:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnzBaj1vWww3IbBvo2SVVHEkSrNzpGhl2fJg&s",color:"red",origin:"Peru",category:"Phragmipedium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"A captivating orchid with fiery red flowers, the Phragmipedium Scarlet Flame is a rare beauty from Peru. Its striking color and exotic appearance make it highly desired by collectors."}],gue=({currentOrchid:e,theme:t})=>{const n=mue.filter(o=>o.Id!==e.Id&&(o.category===e.category||o.color===e.color||E2(o.origin)===E2(e.origin))).slice(0,6),r={dots:!0,infinite:!0,speed:500,slidesToShow:3,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,pauseOnHover:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]};return v.jsxs("div",{className:"related-orchids-slider",style:{marginTop:"3rem",paddingBottom:"32px"},children:[v.jsx(Be,{variant:"h5",component:"h2",sx:{mb:3,color:t.text.primary,fontWeight:"bold",textAlign:"center"},children:"Related Orchids"}),v.jsx(hue,{...r,children:n.map(o=>v.jsx("div",{style:{padding:"0 10px"},children:v.jsx(R1,{orchid:o,theme:t})},o.Id))}),v.jsx("style",{jsx:!0,global:!0,children:` +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s0?1:0):0},Hle=Pe.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},uC=Pe.getWidth=function(t){return t&&t.offsetWidth||0},XF=Pe.getHeight=function(t){return t&&t.offsetHeight||0},QF=Pe.getSwipeDirection=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,o,i,s;return r=t.startX-t.curX,o=t.startY-t.curY,i=Math.atan2(o,r),s=Math.round(i*180/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":n===!0?s>=35&&s<=135?"up":"down":"vertical"},JF=Pe.canGoNext=function(t){var n=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(n=!1),n};Pe.extractObject=function(t,n){var r={};return n.forEach(function(o){return r[o]=t[o]}),r};Pe.initializedState=function(t){var n=Lle.default.Children.count(t.children),r=t.listRef,o=Math.ceil(uC(r)),i=t.trackRef&&t.trackRef.node,s=Math.ceil(uC(i)),a;if(t.vertical)a=o;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=o/100),a=Math.ceil((o-l)/t.slidesToShow)}var c=r&&XF(r.querySelector('[data-index="0"]')),u=c*t.slidesToShow,d=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(d=n-1-t.initialSlide);var f=t.lazyLoadedList||[],h=KF(jt(jt({},t),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(h);var m={slideCount:n,slideWidth:a,listWidth:o,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:f};return t.autoplaying===null&&t.autoplay&&(m.autoplaying="playing"),m};Pe.slideHandler=function(t){var n=t.waitForAnimate,r=t.animating,o=t.fade,i=t.infinite,s=t.index,a=t.slideCount,l=t.lazyLoad,c=t.currentSlide,u=t.centerMode,d=t.slidesToScroll,f=t.slidesToShow,h=t.useCSS,m=t.lazyLoadedList;if(n&&r)return{};var y=s,C,w,b,g={},x={},P=i?s:WF(s,0,a-1);if(o){if(!i&&(s<0||s>=a))return{};s<0?y=s+a:s>=a&&(y=s-a),l&&m.indexOf(y)<0&&(m=m.concat(y)),g={animating:!0,currentSlide:y,lazyLoadedList:m,targetSlide:y},x={animating:!1,targetSlide:y}}else C=y,y<0?(C=y+a,i?a%d!==0&&(C=a-a%d):C=0):!JF(t)&&y>c?y=C=c:u&&y>=a?(y=i?a:a-1,C=i?0:a-1):y>=a&&(C=y-a,i?a%d!==0&&(C=0):C=a-f),!i&&y+f>=a&&(C=a-f),w=ng(jt(jt({},t),{},{slideIndex:y})),b=ng(jt(jt({},t),{},{slideIndex:C})),i||(w===b&&(y=C),w=b),l&&(m=m.concat(KF(jt(jt({},t),{},{currentSlide:y})))),h?(g={animating:!0,currentSlide:C,trackStyle:ZF(jt(jt({},t),{},{left:w})),lazyLoadedList:m,targetSlide:P},x={animating:!1,currentSlide:C,trackStyle:tg(jt(jt({},t),{},{left:b})),swipeLeft:null,targetSlide:P}):g={currentSlide:C,trackStyle:tg(jt(jt({},t),{},{left:b})),lazyLoadedList:m,targetSlide:P};return{state:g,nextState:x}};Pe.changeSlide=function(t,n){var r,o,i,s,a,l=t.slidesToScroll,c=t.slidesToShow,u=t.slideCount,d=t.currentSlide,f=t.targetSlide,h=t.lazyLoad,m=t.infinite;if(s=u%l!==0,r=s?0:(u-d)%l,n.message==="previous")i=r===0?l:c-r,a=d-i,h&&!m&&(o=d-i,a=o===-1?u-1:o),m||(a=f-l);else if(n.message==="next")i=r===0?l:r,a=d+i,h&&!m&&(a=(d+l)%u+r),m||(a=f+l);else if(n.message==="dots")a=n.index*n.slidesToScroll;else if(n.message==="children"){if(a=n.index,m){var y=Wle(jt(jt({},t),{},{targetSlide:a}));a>n.currentSlide&&y==="left"?a=a-u:a10)return{scrolling:!0};a&&(b.swipeLength=k);var S=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(S=b.curY>b.startY?1:-1);var R=Math.ceil(y/C),O=QF(n.touchObject,a),A=b.swipeLength;return w||(c===0&&(O==="right"||O==="down")||c+1>=R&&(O==="left"||O==="up")||!JF(n)&&(O==="left"||O==="up"))&&(A=b.swipeLength*u,d===!1&&f&&(f(O),T.edgeDragged=!0)),!h&&g&&(g(O),T.swiped=!0),i?I=M+A*(x/P)*S:l?I=M-A*S:I=M+A*S,a&&(I=M+A*S),T=jt(jt({},T),{},{touchObject:b,swipeLeft:I,trackStyle:tg(jt(jt({},n),{},{left:I}))}),Math.abs(b.curX-b.startX)10&&(T.swiping=!0,Mc(t)),T}};Pe.swipeEnd=function(t,n){var r=n.dragging,o=n.swipe,i=n.touchObject,s=n.listWidth,a=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,u=n.swipeToSlide,d=n.scrolling,f=n.onSwipe,h=n.targetSlide,m=n.currentSlide,y=n.infinite;if(!r)return o&&Mc(t),{};var C=l?c/a:s/a,w=QF(i,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return b;if(i.swipeLength>C){Mc(t),f&&f(w);var g,x,P=y?m:h;switch(w){case"left":case"up":x=P+g2(n),g=u?m2(n,x):x,b.currentDirection=0;break;case"right":case"down":x=P-g2(n),g=u?m2(n,x):x,b.currentDirection=1;break;default:g=P}b.triggerSlideHandler=g}else{var I=ng(n);b.trackStyle=ZF(jt(jt({},n),{},{left:I}))}return b};var Vle=Pe.getNavigableIndexes=function(t){for(var n=t.infinite?t.slideCount*2:t.slideCount,r=t.infinite?t.slidesToShow*-1:0,o=t.infinite?t.slidesToShow*-1:0,i=[];rr[r.length-1])n=r[r.length-1];else for(var i in r){if(nt.swipeLeft*-1)return r=l,!1}else if(l.offsetLeft-n+uC(l)/2>t.swipeLeft*-1)return r=l,!1;return!0}),!r)return 0;var s=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,a=Math.abs(r.dataset.index-s)||1;return a}else return t.slidesToScroll},D1=Pe.checkSpecKeys=function(t,n){return n.reduce(function(r,o){return r&&t.hasOwnProperty(o)},!0)?null:console.error("Keys Missing:",t)},tg=Pe.getTrackCSS=function(t){D1(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,o=t.slideCount+2*t.slidesToShow;t.vertical?r=o*t.slideHeight:n=Gle(t)*t.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=jt(jt({},i),{},{WebkitTransform:s,transform:a,msTransform:l})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),n&&(i.width=n),r&&(i.height=r),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i},ZF=Pe.getTrackAnimateCSS=function(t){D1(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=tg(t);return t.useTransform?(n.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,n.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?n.transition="top "+t.speed+"ms "+t.cssEase:n.transition="left "+t.speed+"ms "+t.cssEase,n},ng=Pe.getTrackLeft=function(t){if(t.unslick)return 0;D1(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=t.slideIndex,r=t.trackRef,o=t.infinite,i=t.centerMode,s=t.slideCount,a=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,u=t.listWidth,d=t.variableWidth,f=t.slideHeight,h=t.fade,m=t.vertical,y=0,C,w,b=0;if(h||t.slideCount===1)return 0;var g=0;if(o?(g=-Bh(t),s%l!==0&&n+l>s&&(g=-(n>s?a-(n-s):s%l)),i&&(g+=parseInt(a/2))):(s%l!==0&&n+l>s&&(g=a-s%l),i&&(g=parseInt(a/2))),y=g*c,b=g*f,m?C=n*f*-1+b:C=n*c*-1+y,d===!0){var x,P=r&&r.node;if(x=n+Bh(t),w=P&&P.childNodes[x],C=w?w.offsetLeft*-1:0,i===!0){x=o?n+Bh(t):n,w=P&&P.children[x],C=0;for(var I=0;It.currentSlide?t.targetSlide>t.currentSlide+Kle(t)?"left":"right":t.targetSlide0&&(s+=1),o&&n%2===0&&(s+=1),s}return o?0:n-1},qle=Pe.slidesOnLeft=function(t){var n=t.slidesToShow,r=t.centerMode,o=t.rtl,i=t.centerPadding;if(r){var s=(n-1)/2+1;return parseInt(i)>0&&(s+=1),!o&&n%2===0&&(s+=1),s}return o?n-1:0};Pe.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var Yle=Pe.validSettings=Object.keys(Fle.default);function Xle(e){return Yle.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}var ey={};Object.defineProperty(ey,"__esModule",{value:!0});ey.Track=void 0;var Ss=ej(p),Vb=ej(Zv),Ub=Pe;function ej(e){return e&&e.__esModule?e:{default:e}}function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),r=(s-t.currentSlide)%t.slideCount===0,s>t.currentSlide-i-1&&s<=t.currentSlide+i&&(n=!0)):n=t.currentSlide<=s&&s=t.slideCount?a=t.targetSlide-t.slideCount:a=t.targetSlide;var l=s===a;return{"slick-slide":!0,"slick-active":n,"slick-center":r,"slick-cloned":o,"slick-current":l}},oce=function(t){var n={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(n.width=t.slideWidth),t.fade&&(n.position="relative",t.vertical?n.top=-t.index*parseInt(t.slideHeight):n.left=-t.index*parseInt(t.slideWidth),n.opacity=t.currentSlide===t.index?1:0,n.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(n.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),n},Wb=function(t,n){return t.key||n},ice=function(t){var n,r=[],o=[],i=[],s=Ss.default.Children.count(t.children),a=(0,Ub.lazyStartIndex)(t),l=(0,Ub.lazyEndIndex)(t);return Ss.default.Children.forEach(t.children,function(c,u){var d,f={message:"children",index:u,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(u)>=0?d=c:d=Ss.default.createElement("div",null);var h=oce(ur(ur({},t),{},{index:u})),m=d.props.className||"",y=Gb(ur(ur({},t),{},{index:u}));if(r.push(Ss.default.cloneElement(d,{key:"original"+Wb(d,u),"data-index":u,className:(0,Vb.default)(y,m),tabIndex:"-1","aria-hidden":!y["slick-active"],style:ur(ur({outline:"none"},d.props.style||{}),h),onClick:function(b){d.props&&d.props.onClick&&d.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(f)}})),t.infinite&&t.fade===!1){var C=s-u;C<=(0,Ub.getPreClones)(t)&&(n=-C,n>=a&&(d=c),y=Gb(ur(ur({},t),{},{index:n})),o.push(Ss.default.cloneElement(d,{key:"precloned"+Wb(d,n),"data-index":n,tabIndex:"-1",className:(0,Vb.default)(y,m),"aria-hidden":!y["slick-active"],style:ur(ur({},d.props.style||{}),h),onClick:function(b){d.props&&d.props.onClick&&d.props.onClick(b),t.focusOnSelect&&t.focusOnSelect(f)}}))),n=s+u,n=x&&f<=b:f===x}),I={message:"dots",index:C,slidesToScroll:c,currentSlide:f},T=this.clickHandler.bind(this,I);y=y.concat(sh.default.createElement("li",{key:C,className:P},sh.default.cloneElement(this.props.customPaging(C),{onClick:T})))}return sh.default.cloneElement(this.props.appendDots(y),ace({className:this.props.dotsClass},m))}}]),n}(sh.default.PureComponent);var au={};function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}Object.defineProperty(au,"__esModule",{value:!0});au.PrevArrow=au.NextArrow=void 0;var Rc=aj(p),sj=aj(Zv),yce=Pe;function aj(e){return e&&e.__esModule?e:{default:e}}function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!vC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oce?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!vC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Ece.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),mj=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof cu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new jce(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof cu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Nce(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),vj=typeof WeakMap<"u"?new WeakMap:new hj,yj=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Mce.getInstance(),r=new Bce(t,n,this);vj.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){yj.prototype[e]=function(){var t;return(t=vj.get(this))[e].apply(t,arguments)}});var zce=function(){return typeof lg.ResizeObserver<"u"?lg.ResizeObserver:yj}();const Hce=Object.freeze(Object.defineProperty({__proto__:null,default:zce},Symbol.toStringTag,{value:"Module"})),Vce=LN(Hce);Object.defineProperty(Jv,"__esModule",{value:!0});Jv.InnerSlider=void 0;var Zn=dp(p),Uce=dp(VF),Gce=dp(Dle),Wce=dp(Zv),Bt=Pe,Kce=ey,qce=ty,x2=au,Yce=dp(Vce);function dp(e){return e&&e.__esModule?e:{default:e}}function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qce(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function S2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t0&&(o.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(s)}}),o.props.onLazyLoad&&o.props.onLazyLoad(s))}var a=Ue({listRef:o.list,trackRef:o.track},o.props);o.updateState(a,!0,function(){o.adaptHeight(),o.props.autoplay&&o.autoPlay("update")}),o.props.lazyLoad==="progressive"&&(o.lazyLoadTimer=setInterval(o.progressiveLazyLoad,1e3)),o.ro=new Yce.default(function(){o.state.animating?(o.onWindowResized(!1),o.callbackTimers.push(setTimeout(function(){return o.onWindowResized()},o.props.speed))):o.onWindowResized()}),o.ro.observe(o.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=o.props.pauseOnFocus?o.onSlideFocus:null,l.onblur=o.props.pauseOnFocus?o.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",o.onWindowResized):window.attachEvent("onresize",o.onWindowResized)}),st(it(o),"componentWillUnmount",function(){o.animationEndCallback&&clearTimeout(o.animationEndCallback),o.lazyLoadTimer&&clearInterval(o.lazyLoadTimer),o.callbackTimers.length&&(o.callbackTimers.forEach(function(s){return clearTimeout(s)}),o.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",o.onWindowResized):window.detachEvent("onresize",o.onWindowResized),o.autoplayTimer&&clearInterval(o.autoplayTimer),o.ro.disconnect()}),st(it(o),"componentDidUpdate",function(s){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var a=(0,Bt.getOnDemandLazySlides)(Ue(Ue({},o.props),o.state));a.length>0&&(o.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(a)}}),o.props.onLazyLoad&&o.props.onLazyLoad(a))}o.adaptHeight();var l=Ue(Ue({listRef:o.list,trackRef:o.track},o.props),o.state),c=o.didPropsChange(s);c&&o.updateState(l,c,function(){o.state.currentSlide>=Zn.default.Children.count(o.props.children)&&o.changeSlide({message:"index",index:Zn.default.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),o.props.autoplay?o.autoPlay("update"):o.pause("paused")})}),st(it(o),"onWindowResized",function(s){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=(0,Gce.default)(function(){return o.resizeWindow(s)},50),o.debouncedResize()}),st(it(o),"resizeWindow",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=!!(o.track&&o.track.node);if(a){var l=Ue(Ue({listRef:o.list,trackRef:o.track},o.props),o.state);o.updateState(l,s,function(){o.props.autoplay?o.autoPlay("update"):o.pause("paused")}),o.setState({animating:!1}),clearTimeout(o.animationEndCallback),delete o.animationEndCallback}}),st(it(o),"updateState",function(s,a,l){var c=(0,Bt.initializedState)(s);s=Ue(Ue(Ue({},s),c),{},{slideIndex:c.currentSlide});var u=(0,Bt.getTrackLeft)(s);s=Ue(Ue({},s),{},{left:u});var d=(0,Bt.getTrackCSS)(s);(a||Zn.default.Children.count(o.props.children)!==Zn.default.Children.count(s.children))&&(c.trackStyle=d),o.setState(c,l)}),st(it(o),"ssrInit",function(){if(o.props.variableWidth){var s=0,a=0,l=[],c=(0,Bt.getPreClones)(Ue(Ue(Ue({},o.props),o.state),{},{slideCount:o.props.children.length})),u=(0,Bt.getPostClones)(Ue(Ue(Ue({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach(function(T){l.push(T.props.style.width),s+=T.props.style.width});for(var d=0;d=a&&o.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var d=c.onclick;c.onclick=function(f){d(f),c.parentNode.focus()}}c.onload||(o.props.lazyLoad?c.onload=function(){o.adaptHeight(),o.callbackTimers.push(setTimeout(o.onWindowResized,o.props.speed))}:(c.onload=u,c.onerror=function(){u(),o.props.onLazyLoadError&&o.props.onLazyLoadError()}))})}),st(it(o),"progressiveLazyLoad",function(){for(var s=[],a=Ue(Ue({},o.props),o.state),l=o.state.currentSlide;l=-(0,Bt.getPreClones)(a);c--)if(o.state.lazyLoadedList.indexOf(c)<0){s.push(c);break}s.length>0?(o.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(s)}}),o.props.onLazyLoad&&o.props.onLazyLoad(s)):o.lazyLoadTimer&&(clearInterval(o.lazyLoadTimer),delete o.lazyLoadTimer)}),st(it(o),"slideHandler",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=o.props,c=l.asNavFor,u=l.beforeChange,d=l.onLazyLoad,f=l.speed,h=l.afterChange,m=o.state.currentSlide,y=(0,Bt.slideHandler)(Ue(Ue(Ue({index:s},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!a})),C=y.state,w=y.nextState;if(C){u&&u(m,C.currentSlide);var b=C.lazyLoadedList.filter(function(g){return o.state.lazyLoadedList.indexOf(g)<0});d&&b.length>0&&d(b),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),h&&h(m),delete o.animationEndCallback),o.setState(C,function(){c&&o.asNavForIndex!==s&&(o.asNavForIndex=s,c.innerSlider.slideHandler(s)),w&&(o.animationEndCallback=setTimeout(function(){var g=w.animating,x=Xce(w,["animating"]);o.setState(x,function(){o.callbackTimers.push(setTimeout(function(){return o.setState({animating:g})},10)),h&&h(C.currentSlide),delete o.animationEndCallback})},f))})}}),st(it(o),"changeSlide",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=Ue(Ue({},o.props),o.state),c=(0,Bt.changeSlide)(l,s);if(!(c!==0&&!c)&&(a===!0?o.slideHandler(c,a):o.slideHandler(c),o.props.autoplay&&o.autoPlay("update"),o.props.focusOnSelect)){var u=o.list.querySelectorAll(".slick-current");u[0]&&u[0].focus()}}),st(it(o),"clickHandler",function(s){o.clickable===!1&&(s.stopPropagation(),s.preventDefault()),o.clickable=!0}),st(it(o),"keyHandler",function(s){var a=(0,Bt.keyHandler)(s,o.props.accessibility,o.props.rtl);a!==""&&o.changeSlide({message:a})}),st(it(o),"selectHandler",function(s){o.changeSlide(s)}),st(it(o),"disableBodyScroll",function(){var s=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=s}),st(it(o),"enableBodyScroll",function(){window.ontouchmove=null}),st(it(o),"swipeStart",function(s){o.props.verticalSwiping&&o.disableBodyScroll();var a=(0,Bt.swipeStart)(s,o.props.swipe,o.props.draggable);a!==""&&o.setState(a)}),st(it(o),"swipeMove",function(s){var a=(0,Bt.swipeMove)(s,Ue(Ue(Ue({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));a&&(a.swiping&&(o.clickable=!1),o.setState(a))}),st(it(o),"swipeEnd",function(s){var a=(0,Bt.swipeEnd)(s,Ue(Ue(Ue({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));if(a){var l=a.triggerSlideHandler;delete a.triggerSlideHandler,o.setState(a),l!==void 0&&(o.slideHandler(l),o.props.verticalSwiping&&o.enableBodyScroll())}}),st(it(o),"touchEnd",function(s){o.swipeEnd(s),o.clickable=!0}),st(it(o),"slickPrev",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"previous"})},0))}),st(it(o),"slickNext",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"next"})},0))}),st(it(o),"slickGoTo",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s=Number(s),isNaN(s))return"";o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"index",index:s,currentSlide:o.state.currentSlide},a)},0))}),st(it(o),"play",function(){var s;if(o.props.rtl)s=o.state.currentSlide-o.props.slidesToScroll;else if((0,Bt.canGoNext)(Ue(Ue({},o.props),o.state)))s=o.state.currentSlide+o.props.slidesToScroll;else return!1;o.slideHandler(s)}),st(it(o),"autoPlay",function(s){o.autoplayTimer&&clearInterval(o.autoplayTimer);var a=o.state.autoplaying;if(s==="update"){if(a==="hovered"||a==="focused"||a==="paused")return}else if(s==="leave"){if(a==="paused"||a==="focused")return}else if(s==="blur"&&(a==="paused"||a==="hovered"))return;o.autoplayTimer=setInterval(o.play,o.props.autoplaySpeed+50),o.setState({autoplaying:"playing"})}),st(it(o),"pause",function(s){o.autoplayTimer&&(clearInterval(o.autoplayTimer),o.autoplayTimer=null);var a=o.state.autoplaying;s==="paused"?o.setState({autoplaying:"paused"}):s==="focused"?(a==="hovered"||a==="playing")&&o.setState({autoplaying:"focused"}):a==="playing"&&o.setState({autoplaying:"hovered"})}),st(it(o),"onDotsOver",function(){return o.props.autoplay&&o.pause("hovered")}),st(it(o),"onDotsLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),st(it(o),"onTrackOver",function(){return o.props.autoplay&&o.pause("hovered")}),st(it(o),"onTrackLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),st(it(o),"onSlideFocus",function(){return o.props.autoplay&&o.pause("focused")}),st(it(o),"onSlideBlur",function(){return o.props.autoplay&&o.state.autoplaying==="focused"&&o.autoPlay("blur")}),st(it(o),"render",function(){var s=(0,Wce.default)("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=Ue(Ue({},o.props),o.state),l=(0,Bt.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=o.props.pauseOnHover;l=Ue(Ue({},l),{},{onMouseEnter:c?o.onTrackOver:null,onMouseLeave:c?o.onTrackLeave:null,onMouseOver:c?o.onTrackOver:null,focusOnSelect:o.props.focusOnSelect&&o.clickable?o.selectHandler:null});var u;if(o.props.dots===!0&&o.state.slideCount>=o.props.slidesToShow){var d=(0,Bt.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=o.props.pauseOnDotsHover;d=Ue(Ue({},d),{},{clickHandler:o.changeSlide,onMouseEnter:f?o.onDotsLeave:null,onMouseOver:f?o.onDotsOver:null,onMouseLeave:f?o.onDotsLeave:null}),u=Zn.default.createElement(qce.Dots,d)}var h,m,y=(0,Bt.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=o.changeSlide,o.props.arrows&&(h=Zn.default.createElement(x2.PrevArrow,y),m=Zn.default.createElement(x2.NextArrow,y));var C=null;o.props.vertical&&(C={height:o.state.listHeight});var w=null;o.props.vertical===!1?o.props.centerMode===!0&&(w={padding:"0px "+o.props.centerPadding}):o.props.centerMode===!0&&(w={padding:o.props.centerPadding+" 0px"});var b=Ue(Ue({},C),w),g=o.props.touchMove,x={className:"slick-list",style:b,onClick:o.clickHandler,onMouseDown:g?o.swipeStart:null,onMouseMove:o.state.dragging&&g?o.swipeMove:null,onMouseUp:g?o.swipeEnd:null,onMouseLeave:o.state.dragging&&g?o.swipeEnd:null,onTouchStart:g?o.swipeStart:null,onTouchMove:o.state.dragging&&g?o.swipeMove:null,onTouchEnd:g?o.touchEnd:null,onTouchCancel:o.state.dragging&&g?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},P={className:s,dir:"ltr",style:o.props.style};return o.props.unslick&&(x={className:"slick-list"},P={className:s}),Zn.default.createElement("div",P,o.props.unslick?"":h,Zn.default.createElement("div",ug({ref:o.listRefHandler},x),Zn.default.createElement(Kce.Track,ug({ref:o.trackRefHandler},l),o.props.children)),o.props.unslick?"":m,o.props.unslick?"":u)}),o.list=null,o.track=null,o.state=Ue(Ue({},Uce.default),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:Zn.default.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var i=o.ssrInit();return o.state=Ue(Ue({},o.state),i),o}return eue(n,[{key:"didPropsChange",value:function(o){for(var i=!1,s=0,a=Object.keys(this.props);s1&&arguments[1]!==void 0?arguments[1]:!1;return A.innerSlider.slickGoTo(D,_)}),P(b(A),"slickPause",function(){return A.innerSlider.pause("paused")}),P(b(A),"slickPlay",function(){return A.innerSlider.autoPlay("play")}),A.state={breakpoint:null},A._responsiveMediaHandlers=[],A}return h(R,[{key:"media",value:function(A,D){M.register(A,D),this._responsiveMediaHandlers.push({query:A,handler:D})}},{key:"componentDidMount",value:function(){var A=this;if(this.props.responsive){var D=this.props.responsive.map(function($){return $.breakpoint});D.sort(function($,L){return $-L}),D.forEach(function($,L){var F;L===0?F=(0,r.default)({minWidth:0,maxWidth:$}):F=(0,r.default)({minWidth:D[L-1]+1,maxWidth:$}),(0,i.canUseDOM)()&&A.media(F,function(){A.setState({breakpoint:$})})});var _=(0,r.default)({minWidth:D.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(_,function(){A.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(A){M.unregister(A.query,A.handler)})}},{key:"render",value:function(){var A=this,D,_;this.state.breakpoint?(_=this.props.responsive.filter(function(G){return G.breakpoint===A.state.breakpoint}),D=_[0].settings==="unslick"?"unslick":u(u(u({},o.default),this.props),_[0].settings)):D=u(u({},o.default),this.props),D.centerMode&&(D.slidesToScroll>1,D.slidesToScroll=1),D.fade&&(D.slidesToShow>1,D.slidesToScroll>1,D.slidesToShow=1,D.slidesToScroll=1);var $=t.default.Children.toArray(this.props.children);$=$.filter(function(G){return typeof G=="string"?!!G.trim():!!G}),D.variableWidth&&(D.rows>1||D.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),D.variableWidth=!1);for(var L=[],F=null,j=0;j<$.length;j+=D.rows*D.slidesPerRow){for(var N=[],z=j;z=$.length));K+=1)V.push(t.default.cloneElement($[K],{key:100*j+10*z+K,tabIndex:-1,style:{width:"".concat(100/D.slidesPerRow,"%"),display:"inline-block"}}));N.push(t.default.createElement("div",{key:10*j+z},V))}D.variableWidth?L.push(t.default.createElement("div",{key:j,style:{width:F}},N)):L.push(t.default.createElement("div",{key:j},N))}if(D==="unslick"){var H="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:H},$)}else L.length<=D.slidesToShow&&!D.infinite&&(D.unslick=!0);return t.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,i.filterSettings)(D)),L)}}]),R}(t.default.Component)})(HF);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(HF);function n(r){return r&&r.__esModule?r:{default:r}}e.default=t.default})(zF);const mue=hu(zF),M2=e=>{const t={Asia:["China","Japan","Thailand","Vietnam","Indonesia","Philippines","Malaysia","India"],Europe:["Netherlands","Germany","France","Italy","Spain","United Kingdom"],"North America":["United States","Canada","Mexico"],"South America":["Brazil","Colombia","Peru","Ecuador"],Africa:["South Africa","Kenya","Tanzania","Madagascar"],Oceania:["Australia","New Zealand","Papua New Guinea"]};for(const[n,r]of Object.entries(t))if(r.includes(e))return n;return"Other"},gue=[{Id:"1",name:"Taichung Beauty",rating:5,isSpecial:!0,image:"https://barritaorchids.com/cdn/shop/products/Cf592_1024x1024.jpg",color:"pink",origin:"Taiwan",category:"Cattleya",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"A striking orchid with large, vibrant pink flowers. Native to Taiwan, the Taichung Beauty is highly valued for its bold colors and long-lasting blooms. It is commonly cultivated for decorative purposes."},{Id:"2",name:"Phalaenopsis Elegance",rating:4,isSpecial:!0,image:"https://images.unsplash.com/photo-1639374593182-88b49b80a688?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8UGhhbGFlbm9wc2lzJTIwRWxlZ2FuY2V8ZW58MHx8MHx8fDA%3D",color:"white",origin:"Thailand",category:"Phalaenopsis",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"This elegant orchid is admired for its pure white petals and graceful appearance. Originating from Thailand, the Phalaenopsis Elegance is widely known as the 'Moth Orchid' due to its petal shape and is commonly grown in households."},{Id:"3",name:"Vanda Blue Charm",rating:5,isSpecial:!1,image:"https://plus.unsplash.com/premium_photo-1666855258034-8d2c36091ec1?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"blue",origin:"Philippines",category:"Vanda",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known for its rare and vibrant blue color, the Vanda Blue Charm is an exotic orchid native to the Philippines. Its large, stunning flowers make it a highly sought-after plant in orchid collections worldwide."},{Id:"4",name:"Dendrobium Noble",rating:3,isSpecial:!1,image:"https://www.gardentags.com/plant-encyclopedia/images/2703/dendrobium-nobile.jpeg",color:"purple",origin:"Vietnam",category:"Dendrobium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With its compact size and beautiful purple blooms, the Dendrobium Noble is a versatile orchid perfect for both indoor and outdoor environments. It thrives in warm, tropical climates and is widely grown in Vietnam."},{Id:"5",name:"Cymbidium Green Glow",rating:4,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1689643577385-57af0aba150e?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"green",origin:"China",category:"Cymbidium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"This unique orchid stands out with its fresh green color. Known for its hardiness, the Cymbidium Green Glow originates from China and is often used in floral arrangements due to its long-lasting nature and elegant presence."},{Id:"6",name:"Oncidium Shining Star",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1674343963928-d67007d2ae74?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"yellow",origin:"Brazil",category:"Oncidium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With bright yellow flowers, the Oncidium Shining Star is known for its cheerful appearance. Native to Brazil, this orchid is easy to care for and is commonly used in decorative displays, making it a favorite among gardeners."},{Id:"7",name:"Paphiopedilum Venus",rating:4,isSpecial:!1,image:"https://images.unsplash.com/photo-1516477266610-9e4c763da721?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"red",origin:"India",category:"Paphiopedilum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Often referred to as the 'Lady Slipper Orchid', Paphiopedilum Venus is notable for its unique pouch-shaped petals. Originating from India, it is loved for its striking red flowers and is a prized addition to many collections."},{Id:"8",name:"Cattleya Golden Sunset",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1726192307773-cb64923bdc63?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"orange",origin:"Colombia",category:"Cattleya",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"The Cattleya Golden Sunset is admired for its bright orange flowers that evoke the beauty of a tropical sunset. Originating from Colombia, this orchid is often associated with warmth and happiness, making it a popular decorative plant."},{Id:"9",name:"Zygopetalum Tropical Beauty",rating:3,isSpecial:!1,image:"https://plus.unsplash.com/premium_photo-1681276170873-c6071233076e?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"brown",origin:"Costa Rica",category:"Zygopetalum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known for its distinct brown and purple blooms, the Zygopetalum Tropical Beauty is native to Costa Rica. This orchid thrives in humid environments and is popular for its exotic appearance and delightful fragrance."},{Id:"10",name:"Maxillaria Coconut Delight",rating:4,isSpecial:!1,image:"https://images.unsplash.com/photo-1454262041357-5d96f50a2f27?q=80&w=1169&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"white",origin:"Mexico",category:"Maxillaria",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Emitting a sweet coconut scent, the Maxillaria Coconut Delight is loved by orchid enthusiasts for its fragrance and delicate white blooms. Native to Mexico, this orchid brings a tropical essence to any setting."},{Id:"11",name:"Brassia Spider Star",rating:5,isSpecial:!0,image:"https://plus.unsplash.com/premium_photo-1663962390315-0825787f07a8?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",color:"green",origin:"Ecuador",category:"Brassia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Known as the 'Spider Orchid' for its long, spindly petals, the Brassia Spider Star has a unique and captivating appearance. Originating from Ecuador, it is a favorite among collectors for its striking structure and greenish hues."},{Id:"12",name:"Laelia Pink Paradise",rating:4,isSpecial:!1,image:"https://littleorchidannie.com/cdn/shop/files/Ctly._Spring_Fragrance_flower__75160.jpg?v=1714437883&width=533",color:"pink",origin:"Mexico",category:"Laelia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With soft pink petals and a subtle fragrance, the Laelia Pink Paradise is a native of Mexico. It symbolizes love and beauty, often used in romantic bouquets."},{Id:"13",name:"Bulbophyllum Medusae",rating:5,isSpecial:!0,image:"https://www.laforestaorchids.com/cdn/shop/files/bulbophyllum-medusae-bulbophyllum-la-foresta-orchids-295241.jpg?v=1701390801",color:"white",origin:"Malaysia",category:"Bulbophyllum",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"An unusual and exotic orchid, the Bulbophyllum Medusae has long, tendril-like petals resembling the mythical Medusa. Native to Malaysia, it is favored by collectors for its bizarre yet fascinating appearance."},{Id:"14",name:"Coelogyne Cristata",rating:4,isSpecial:!1,image:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqs0jSeBbqz4JXop6kfH-v1SADXUDoKmmQYJVbKRo2Yg-3p4dvSidePWrU70J0A-embOKQLxGsae5d9QhH_QUYg0Cc0Hw4Ud14aQma5nJyN3jEYaQw-pTZtttCoMlGWsrXj2yd3Z5VseE/s1600/1024px-Coelogyne_cristata_3.jpg",color:"white",origin:"Himalayas",category:"Coelogyne",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"With pristine white blooms, Coelogyne Cristata is often associated with purity and serenity. Originating from the Himalayan region, it thrives in cool climates and is popular for its cascading flowers."},{Id:"15",name:"Miltonia Sunset",rating:3,isSpecial:!1,image:"https://tropicalorchidsportugal.com/wp-content/uploads/2024/03/miltonia-sunset-02-1-1-1.png",color:"pink",origin:"Brazil",category:"Miltonia",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"Miltonia Sunset boasts vibrant pink flowers with a golden center, resembling a tropical sunset. Native to Brazil, this orchid is loved for its beauty and is often grown in warm, humid environments."},{Id:"16",name:"Phragmipedium Scarlet Flame",rating:5,isSpecial:!0,image:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnzBaj1vWww3IbBvo2SVVHEkSrNzpGhl2fJg&s",color:"red",origin:"Peru",category:"Phragmipedium",video:"https://www.youtube.com/embed/bhOEYjiBb7o?si=SFrWpSd4OtrgzLPs",detail:"A captivating orchid with fiery red flowers, the Phragmipedium Scarlet Flame is a rare beauty from Peru. Its striking color and exotic appearance make it highly desired by collectors."}],vue=({currentOrchid:e,theme:t})=>{const n=gue.filter(o=>o.Id!==e.Id&&(o.category===e.category||o.color===e.color||M2(o.origin)===M2(e.origin))).slice(0,6),r={dots:!0,infinite:!0,speed:500,slidesToShow:3,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,pauseOnHover:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]};return v.jsxs("div",{className:"related-orchids-slider",style:{marginTop:"3rem",paddingBottom:"32px"},children:[v.jsx(Be,{variant:"h5",component:"h2",sx:{mb:3,color:t.text.primary,fontWeight:"bold",textAlign:"center"},children:"Related Orchids"}),v.jsx(mue,{...r,children:n.map(o=>v.jsx("div",{style:{padding:"0 10px"},children:v.jsx(_1,{orchid:o,theme:t})},o.Id))}),v.jsx("style",{jsx:!0,global:!0,children:` .related-orchids-slider .slick-list { margin: 0 -10px; } @@ -2373,8 +2373,8 @@ Content-Type: `+c.contentType+`\r .related-orchids-slider .slick-next:before { color: ${t.text.primary}; } - `})]})},vue=zr(Qe);function yue(){const{id:e}=D3(),t=Gf(),[n,r]=p.useState({}),{theme:o}=p.useContext(Po),[i,s]=p.useState(!1);return p.useEffect(()=>{(async()=>{try{const l=await fle(e);r(l)}catch(l){console.error("Failed to fetch orchids:",l)}})()},[e]),n?v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",bgcolor:o.mainContent.backgroundColor,color:o.text.primary,pt:{xs:8,sm:10}},children:[v.jsxs(Kc,{maxWidth:"lg",sx:{py:4},children:[v.jsx(mr,{onClick:()=>t("/fer-lab1"),variant:"contained",startIcon:v.jsx(s9,{}),sx:{mb:3,backgroundColor:o.button.primary,"&:hover":{backgroundColor:o.button.hover}},children:"Back to List"}),v.jsx(vue,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:v.jsx(Pr,{elevation:3,sx:{overflow:"hidden",borderRadius:2,backgroundColor:o.card.backgroundColor,color:o.text.primary,boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:v.jsxs(Ht,{container:!0,spacing:0,children:[v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsxs(Qe,{sx:{position:"relative"},children:[v.jsx(Zm,{ratio:"4/3",children:v.jsx("img",{src:n.image||Da,alt:n.name,style:{width:"100%",height:"100%",objectFit:"cover"}})}),v.jsx(mr,{variant:"contained",startIcon:v.jsx(x9,{}),onClick:()=>s(!0),sx:{position:"absolute",bottom:16,right:16,backgroundColor:"rgba(0, 0, 0, 0.6)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.8)"}},children:"Watch Video"})]})}),v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsxs(Qe,{sx:{p:4},children:[v.jsx(Be,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:o.text.primary},children:n.name}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",mb:2},children:[v.jsx(Xm,{name:"read-only",value:Number(n.rating),readOnly:!0,precision:.5,emptyIcon:v.jsx(xk,{style:{opacity:.55},fontSize:"inherit"})}),v.jsxs(Be,{variant:"body1",sx:{ml:1,color:o.text.secondary},children:["(",n.rating,"/5)"]})]}),v.jsx(Ja,{sx:{my:2}}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(iS,{sx:{mr:1,color:o.icon.color}}),"Origin:"," ",v.jsx(Ni,{label:n.origin,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(V_,{sx:{mr:1,color:o.icon.color}}),"Category:"," ",v.jsx(Ni,{label:n.category,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(d9,{sx:{mr:1,color:o.icon.color}}),"Color:"," ",v.jsx(Ni,{label:n.color,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsx(Ja,{sx:{my:2}}),v.jsx(Be,{variant:"body1",paragraph:!0,sx:{color:o.text.secondary,lineHeight:1.6},children:n.detail}),n.isSpecial&&v.jsx(Ni,{icon:v.jsx(xk,{}),label:"Special Orchid",color:"warning",sx:{mt:2}})]})})]})})}),v.jsx(gue,{currentOrchid:n,theme:o})]}),v.jsx(Qf,{open:i,onClose:()=>s(!1),"aria-labelledby":"video-modal-title","aria-describedby":"video-modal-description",children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:800,bgcolor:o.card.backgroundColor,boxShadow:24,p:4,borderRadius:2},children:[v.jsx(Qe,{sx:{display:"flex",justifyContent:"flex-end",mb:2},children:v.jsx(an,{onClick:()=>s(!1),sx:{color:o.text.primary},children:v.jsx(c9,{})})}),v.jsx(Zm,{ratio:"16/9",children:v.jsx("iframe",{width:"100%",height:"100%",src:n.video,title:n.name,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})})]}):v.jsx(Kc,{maxWidth:"lg",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",bgcolor:o.mainContent.backgroundColor},children:v.jsx(Be,{variant:"h4",color:o.text.primary,children:"Orchid not found"})})}function bue(){const{theme:e}=p.useContext(Po),[t,n]=p.useState([]);return p.useEffect(()=>{(async()=>{try{const o=await dle();n(o.reverse())}catch(o){console.error("Failed to fetch orchids:",o)}})()},[]),v.jsx(Qe,{sx:{width:"100%"},children:v.jsx(Ht,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:t.map(r=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsx(R1,{orchid:r},r.Id)},r.Id))})})}const wue="/fer-lab1/assets/avt-D_utLsXG.jpg",Ll=zr(Qe),Cue=zr(dF),Qb=({icon:e,title:t,content:n,theme:r})=>v.jsx(Cue,{elevation:3,sx:{backgroundColor:r.card.backgroundColor,color:r.text.primary,transition:"all 0.3s ease-in-out"},whileHover:{scale:1.05,boxShadow:r.elevation[3]},children:v.jsxs(fF,{children:[v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[lo.cloneElement(e,{style:{color:r.icon.color}}),v.jsx(Be,{variant:"h6",component:"h3",ml:1,color:r.text.primary,children:t})]}),v.jsx(Be,{variant:"body1",color:r.text.secondary,children:n})]})});function xue(){const{theme:e}=p.useContext(Po);return v.jsx(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary},children:v.jsx(Kc,{maxWidth:!1,sx:{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,flex:"1 0 auto",padding:"2rem",paddingBottom:"4rem"},children:v.jsxs(Qe,{py:8,children:[v.jsx(Ll,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},mb:6,children:v.jsx(Be,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"About Me"})}),v.jsxs(Ht,{container:!0,spacing:4,children:[v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:v.jsxs(Qe,{textAlign:"center",children:[v.jsx(NS,{alt:"Nguyen Huy Hoang",src:wue,sx:{width:200,height:200,margin:"auto",mb:2}}),v.jsx(Be,{variant:"h4",component:"h2",gutterBottom:!0,color:e.text.primary,children:"Nguyen Huy Hoang"}),v.jsx(Be,{variant:"subtitle1",color:e.text.secondary,gutterBottom:!0,children:"Software Engineering Student"}),v.jsxs(Qe,{children:[v.jsx(an,{"aria-label":"Facebook",sx:{color:e.icon.color},href:"https://www.facebook.com/hoangnguyen.c1002/",children:v.jsx(U_,{})}),v.jsx(an,{"aria-label":"Instagram",sx:{color:e.icon.color},href:"https://www.instagram.com/__hoang.nguyeen__/",children:v.jsx(W_,{})}),v.jsx(an,{"aria-label":"GitHub",sx:{color:e.icon.color},href:"https://github.com/Hoang-Nguyen-Huy",children:v.jsx(G_,{})})]})]})})}),v.jsx(Ht,{item:!0,xs:12,md:8,children:v.jsxs(Ll,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},children:[v.jsx(Be,{variant:"h5",component:"h3",gutterBottom:!0,color:e.text.primary,children:"Education"}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(S9,{sx:{color:e.icon.color,mr:1}}),v.jsx(Be,{variant:"body1",color:e.text.primary,children:"FPT University, Ho Chi Minh City"})]}),v.jsx(Be,{variant:"body1",paragraph:!0,color:e.text.secondary,children:"I am currently pursuing a degree in Software Engineering at FPT University in Ho Chi Minh City. My passion for technology and problem-solving drives me to excel in my studies and explore innovative solutions in the field of software development."})]})})]}),v.jsxs(Qe,{mt:8,children:[v.jsx(Be,{variant:"h4",component:"h2",align:"center",gutterBottom:!0,color:e.text.primary,children:"Our Approach"}),v.jsxs(Ht,{container:!0,spacing:4,mt:2,children:[v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},children:v.jsx(Qb,{icon:v.jsx(h9,{fontSize:"large"}),title:"Our Mission",content:"We strive to develop innovative software solutions that address real-world challenges and improve people's lives. Our goal is to create user-friendly, efficient, and scalable applications that make a positive impact on society.",theme:e})})}),v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},children:v.jsx(Qb,{icon:v.jsx(m9,{fontSize:"large"}),title:"Expert Care",content:"Our team of skilled developers and designers are committed to delivering high-quality software products. We stay up-to-date with the latest technologies and best practices to ensure that our solutions are robust, secure, and future-proof.",theme:e})})}),v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:1},children:v.jsx(Qb,{icon:v.jsx(i9,{fontSize:"large"}),title:"Sustainable Practices",content:"We are committed to sustainable software development practices. This includes writing clean, maintainable code, optimizing for energy efficiency, and considering the long-term environmental impact of our digital solutions.",theme:e})})})]})]})]})})})}const Sue=zr(Pr),Pue=zr(Qe);function Iue(){const{theme:e}=p.useContext(Po),[t,n]=p.useState({name:"",email:"",message:""}),r=i=>{const{name:s,value:a}=i.target;n(l=>({...l,[s]:a}))},o=i=>{i.preventDefault(),console.log("Form submitted:",t),n({name:"",email:"",message:""})};return v.jsx(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,paddingTop:"8px"},children:v.jsxs(Kc,{maxWidth:!1,sx:{py:8,backgroundColor:e.mainContent.backgroundColor,minHeight:"100vh",padding:"2rem"},children:[v.jsx(Be,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"Contact Us"}),v.jsxs(Ht,{container:!0,spacing:4,justifyContent:"center",children:[v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsx(Sue,{elevation:3,initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5},sx:{p:4,backgroundColor:e.card.backgroundColor},children:v.jsxs("form",{onSubmit:o,children:[v.jsx(Ds,{fullWidth:!0,label:"Name",name:"name",value:t.name,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ds,{fullWidth:!0,label:"Email",name:"email",type:"email",value:t.email,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ds,{fullWidth:!0,label:"Message",name:"message",multiline:!0,rows:4,value:t.message,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(mr,{type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!0,sx:{mt:2},children:"Send Message"})]})})}),v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsx(Pue,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:v.jsxs(Pr,{elevation:3,sx:{p:4,height:"100%",backgroundColor:e.card.backgroundColor},children:[v.jsx(Be,{variant:"h5",gutterBottom:!0,color:e.text.primary,children:"Contact Information"}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(p9,{})}),v.jsx(Be,{color:e.text.primary,children:"contact@example.com"})]}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(C9,{})}),v.jsx(Be,{color:e.text.primary,children:"+1 (123) 456-7890"})]}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(iS,{})}),v.jsx(Be,{color:e.text.primary,children:"Lô E2a-7, Đường D1, Đ. D1, Long Thạnh Mỹ, Thành Phố Thủ Đức, Hồ Chí Minh"})]}),v.jsxs(Qe,{mt:4,children:[v.jsx(Be,{variant:"h6",gutterBottom:!0,color:e.text.primary,children:"Find Us On Map"}),v.jsx(Pr,{elevation:2,sx:{height:250,overflow:"hidden"},children:v.jsx("iframe",{src:'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3918.610010397031!2d106.809883!3d10.841127599999998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31752731176b07b1%3A0xb752b24b379bae5e!2zVHLGsOG7nW5nIMSQ4bqhaSBo4buNYyBGUFQgVFAuIEhDTQ!5e0!3m2!1svi!2s!4v1727840452482!5m2!1svi!2s" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade',width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})]})})})]})]})})}const kue=[{id:1,title:"New Orchid Species Discovered in Remote Rainforest",excerpt:"Researchers have found a previously unknown orchid species in the heart of the Amazon rainforest, showcasing the ongoing biodiversity discoveries in the region.",image:"https://www.coolearth.org/wp-content/uploads/2015/03/singing-orchid-1800x1196-1-1800x1080.jpg",category:"Discovery",author:{name:"Dr. Jane Smith",avatar:"https://pm1.aminoapps.com/7039/9b97883e37ad87916c0c909e2bc4792d56939aber1-734-569v2_hq.jpg"},date:"2024-10-04"},{id:2,title:"Rare Ghost Orchid Blooms in Florida Swamp",excerpt:"The elusive ghost orchid, known for its ethereal beauty, has been spotted blooming in a protected area of the Florida Everglades, exciting botanists and nature enthusiasts alike.",image:"https://i.natgeofe.com/n/07abea22-0cb5-4d7c-8507-ed1588c7930d/ghost-orchid-florida-01_2x1.jpg",category:"Nature",author:{name:"Mark Johnson",avatar:"https://news.virginia.edu/sites/default/files/article_image/mj_3-2.jpg"},date:"2024-10-03"},{id:3,title:"Orchid Conservation Efforts Show Promising Results",excerpt:"A decade-long conservation project focused on protecting endangered orchid species has reported significant progress.",image:"https://gardens.si.edu/wp-content/uploads/2024/07/gh12-201105-hl04-1-2000x1095.jpg",category:"Conservation",author:{name:"Emily Chen",avatar:"https://imgix.bustle.com/uploads/image/2024/6/5/89e161c3/eip_unit_01403r.jpg"},date:"2024-10-02"},{id:4,title:"Innovative Orchid Hybridization Technique Unveiled",excerpt:"Scientists have developed a groundbreaking hybridization technique that could revolutionize orchid breeding, potentially creating more resilient and vibrant varieties.",image:"https://images.contentstack.io/v3/assets/bltcedd8dbd5891265b/blte5a15471c01b5bf2/6668d7585cafe7232e8361e4/orchid-facts-hero.jpg",category:"Science",author:{name:"Dr. Alex Wong",avatar:"https://today.usc.edu/wp-content/uploads/2017/03/Wong-Alex_-scaled.jpg"},date:"2024-10-01"},{id:5,title:"Virtual Orchid Exhibition Attracts Global Audience",excerpt:"An online orchid show has drawn participants from over 50 countries, showcasing rare specimens and fostering international collaboration among orchid enthusiasts.",image:"https://aiph.org/wp-content/uploads/2019/04/IMG_1603-scaled.jpg",category:"Event",author:{name:"Sarah Lee",avatar:"https://a.storyblok.com/f/119968/800x800/d9428b7000/sarah_lee_thumbnail-0-5x.jpg"},date:"2024-09-30"},{id:6,title:"Climate Change Threatens Rare Alpine Orchid Species",excerpt:"Researchers warn that rising temperatures and changing precipitation patterns could lead to the extinction of several high-altitude orchid species in the next few decades.",image:"https://www.climatecrisisalert.com/wp-content/swift-ai/images/wp-content/uploads/2024/02/Orchids-various-species-Climate-Change-jpg.webp",category:"Environment",author:{name:"Prof. Maria Gonzalez",avatar:"https://melanoma.org.au/wp-content/uploads/2022/03/Maria-Gonzalez-1.jpg"},date:"2024-09-29"}],Tue=zr(dF);function Eue(){const{theme:e}=p.useContext(Po);return v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px - 56px)",backgroundColor:e.mainContent.backgroundColor,padding:{xs:2,sm:4,md:6}},children:[v.jsx(Be,{variant:"h2",component:"h1",gutterBottom:!0,align:"center",sx:{mb:6,fontWeight:"bold",color:e.text.primary,fontSize:{xs:"2.5rem",md:"3.5rem"},textShadow:`2px 2px 4px ${e.text.secondary}`},children:"Latest Orchid News"}),v.jsx(Ht,{container:!0,spacing:4,children:kue.map((t,n)=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsxs(Tue,{sx:{height:"100%",display:"flex",flexDirection:"column",transition:"0.3s",backgroundColor:e.card.backgroundColor,color:e.card.color,"&:hover":{transform:"translateY(-8px)",boxShadow:e.elevation[3]}},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},children:[v.jsx(Dne,{component:"img",height:"200",image:t.image,alt:t.title,sx:{objectFit:"cover"}}),v.jsxs(fF,{sx:{flexGrow:1,position:"relative"},children:[v.jsx(Ni,{label:t.category,size:"small",sx:{mb:2,backgroundColor:e.chip.backgroundColor,color:e.chip.color,position:"absolute",top:-20,left:16,boxShadow:e.elevation[1]}}),v.jsx(Be,{gutterBottom:!0,variant:"h5",component:"h2",sx:{fontWeight:"bold",color:e.text.primary},children:t.title}),v.jsx(Be,{variant:"body2",sx:{color:e.text.secondary,mb:2},children:t.excerpt}),v.jsx(Ja,{sx:{mb:2,backgroundColor:e.divider}}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",mb:2},children:[v.jsx(NS,{src:t.author.avatar,sx:{width:32,height:32,mr:1}}),v.jsx(Be,{variant:"subtitle2",sx:{color:e.text.primary,mr:2},children:t.author.name}),v.jsx(r9,{sx:{fontSize:16,mr:.5,color:e.icon.color}}),v.jsx(Be,{variant:"caption",sx:{color:e.text.secondary},children:new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),v.jsxs(Qe,{sx:{display:"flex",justifyContent:"space-between"},children:[v.jsx(mr,{startIcon:v.jsx(l9,{}),size:"small",sx:{color:e.button.primary},children:"Save"}),v.jsx(mr,{startIcon:v.jsx(P9,{}),size:"small",sx:{color:e.button.primary},children:"Share"})]})]})]})},t.id))})]})}function Oue({children:e}){const{user:t}=JL();return t?e:v.jsx(X3,{to:"/fer-lab1/"})}const wj=p.createContext(void 0);function et(){const e=p.useContext(wj);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` -`));return e}const Cj=p.createContext(void 0),Me=()=>{const e=p.useContext(Cj);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},Mue=Object.is;function xj(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Mue(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function ua(e){return p.memo(e,xj)}const Rue={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function rt(e){return Ne("MuiDataGrid",e)}const B=je("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),O2=1e3;class $ue{constructor(t=O2){this.timeouts=new Map,this.cleanupTimeout=O2,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class _ue{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var go=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(go||{});class Aue{}function Due(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new _ue:new $ue);const[a]=p.useState(new Aue),l=p.useRef(null),c=p.useRef();c.current=i;const u=p.useRef(null);if(!l.current&&c.current){const d=(f,h,m)=>{var y;h.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,h,m)};l.current=r.current.subscribeEvent(o,d,s),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{var f;(f=l.current)==null||f.call(l),l.current=null,u.current=null},u.current)}else!c.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));p.useEffect(()=>{if(!l.current&&c.current){const d=(f,h,m)=>{var y;h.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,h,m)};l.current=r.current.subscribeEvent(o,d,s)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,o,s])}}const Lue={registry:null},Ie=Due(Lue),Fue={isFirst:!0};function St(e,t,n){Ie(e,t,n,Fue)}function jue(e){return e.acceptsApiRef}function M2(e,t){return jue(t)?t(e):t(e.current.state)}const Nue=Object.is,Sj=xj,Bue=()=>({state:null,equals:null,selector:null}),ue=(e,t,n=Nue)=>{const r=Vo(Bue),o=r.current.selector!==null,[i,s]=p.useState(o?null:M2(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,dv(()=>e.current.store.subscribe(()=>{const a=M2(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,s(a))})),i},$n=e=>e.dimensions;var dg=Symbol("NOT_FOUND");function zue(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Hue(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Vue(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var R2=e=>Array.isArray(e)?e:[e];function Uue(e){const t=Array.isArray(e[0])?e[0]:e;return Vue(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Gue(e,t){const n=[],{length:r}=e;for(let o=0;ot(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return dg}function o(a,l){r(a)===dg&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var que=(e,t)=>e===t;function Yue(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;ii(h.value,u));f&&(u=f.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Xue=class{constructor(e){this.value=e}deref(){return this.value}},Que=typeof WeakRef<"u"?WeakRef:Xue,Jue=0,$2=1;function ah(){return{s:Jue,v:void 0,o:null,p:null}}function Ij(e,t={}){let n=ah();const{resultEqualityCheck:r}=t;let o,i=0;function s(){var d;let a=n;const{length:l}=arguments;for(let f=0,h=l;f{n=ah(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function kj(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),zue(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=Ij,argsMemoizeOptions:m=[],devModeChecks:y={}}=u,C=R2(f),w=R2(m),b=Uue(o),g=d(function(){return i++,c.apply(null,arguments)},...C),x=h(function(){s++;const I=Gue(b,arguments);return a=g.apply(null,I),a},...w);return Object.assign(x,{resultFunc:c,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Zue=kj(Ij),ede=Object.assign((e,t=Zue)=>{Hue(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>ede});const tde=kj({memoize:Pj,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),_2=new WeakMap;function Ul(e){return"current"in e&&"instanceId"in e.current}const Gl={id:"default"},ze=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d),C=r(f,d),w=o(f,d);return i(h,m,y,C,w)};else if(e&&t&&n&&r&&o)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d),C=r(f,d);return o(h,m,y,C)};else if(e&&t&&n&&r)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d);return r(h,m,y)};else if(e&&t&&n)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d);return n(h,m)};else if(e&&t)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d);return t(h)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},xt=(...e)=>{const t=(n,r)=>{const o=Ul(n),i=o?n.current.instanceId:r??Gl,s=o?n.current.state:n,a=_2.get(i),l=a??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(s,i);const u=tde(...e);return a||_2.set(i,l),l.set(e,u),u(s,i)};return t.acceptsApiRef=!0,t},nde=.7,rde=1.3,ode={compact:nde,comfortable:rde,standard:1},pc=e=>e.density,fp=ze(pc,e=>ode[e]);let Pt=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const yC={left:[],right:[]},ide=e=>e.isRtl,di=e=>e.columns,Wi=ze(di,e=>e.orderedFields),ls=ze(di,e=>e.lookup),No=xt(Wi,ls,(e,t)=>e.map(n=>t[n])),fo=ze(di,e=>e.columnVisibilityModel),mn=xt(No,fo,(e,t)=>e.filter(n=>t[n.field]!==!1)),$u=xt(mn,e=>e.map(t=>t.field)),sde=e=>e.pinnedColumns,pp=xt(di,sde,$u,ide,(e,t,n,r)=>{const o=ade(t,n,r);return{left:o.left.map(s=>e.lookup[s]),right:o.right.map(s=>e.lookup[s])}});function ade(e,t,n){var a,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((l=e.right)==null?void 0:l.length)===0)return yC;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),i=t.filter(c=>!o.includes(c)),s=r(e.right,i);return n?{left:s,right:o}:{left:o,right:s}}const da=xt(mn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Tj=xt(No,e=>e.filter(t=>t.filterable)),lde=xt(No,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),cde=xt(No,e=>e.some(t=>t.colSpan!==void 0)),ude=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],dde=e=>{const{classes:t}=e;return ve({root:["editInputCell"]},rt,t)},fde=ne(Tu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>E({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),pde=p.forwardRef((e,t)=>{const n=Me(),{id:r,value:o,field:i,colDef:s,hasFocus:a,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=xe(e,ude),f=et(),h=p.useRef(),[m,y]=p.useState(o),C=dde(n),w=p.useCallback(async g=>{const x=g.target.value;u&&await u(g,x);const P=f.current.getColumn(i);let I=x;P.valueParser&&(I=P.valueParser(x,f.current.getRow(r),P,f)),y(I),f.current.setEditCellValue({id:r,field:i,value:I,debounceMs:l,unstable_skipValueParser:!0},g)},[f,l,i,r,u]),b=f.current.unstable_getEditCellMeta(r,i);return p.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&y(o)},[b,o]),pt(()=>{a&&h.current.focus()},[a]),v.jsx(fde,E({ref:t,inputRef:h,className:C.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:m??"",onChange:w,endAdornment:c?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),hde=e=>v.jsx(pde,E({},e)),Ej=(e,t)=>t&&e.length>1?[e[0]]:e,A2=(e,t)=>n=>E({},n,{sorting:E({},n.sorting,{sortModel:Ej(e,t)})}),mde=e=>e==="desc",gde=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=mde(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},vde=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),yde=(e,t)=>{const n=e.map(r=>gde(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>vde(n,o,i)).map(o=>o.node.id)},D2=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},D1=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,bde=new Intl.Collator,wde=(e,t)=>{const n=D1(e,t);return n!==null?n:typeof e=="string"?bde.compare(e.toString(),t.toString()):e-t},Oj=(e,t)=>{const n=D1(e,t);return n!==null?n:Number(e)-Number(t)},Mj=(e,t)=>{const n=D1(e,t);return n!==null?n:e>t?1:e{const{value:I}=P.target;m(String(I)),C(!0),f.start(b.filterDebounceMs,()=>{const T=E({},t,{value:r==="number"?Number(I):I,fromInput:w});n(T),C(!1)})},[f,b.filterDebounceMs,t,r,w,n]);return p.useEffect(()=>{(t.fromInput!==w||t.value===void 0)&&m(String(t.value??""))},[w,t]),v.jsx(b.slots.baseTextField,E({id:w,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:g,variant:u,type:r||"text",InputProps:E({},y||l?{endAdornment:y?v.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:a},c,{inputProps:E({tabIndex:s},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},d,(x=b.slotProps)==null?void 0:x.baseTextField))}function xde(e){return typeof e=="number"&&!Number.isNaN(e)}function Rj(e){return typeof e=="function"}function L1(e){return typeof e=="object"&&e!==null}function Sde(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function fg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const fi=(e,t,n)=>Math.max(t,Math.min(n,e));function L2(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function $c(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Ide(e){const t=Pde(e);return(n,r)=>n+(r-n)*t()}function $j(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const kde=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Tde=["key"];function _j(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:l,size:c,variant:u="standard"}=e,d=xe(e,kde),f={color:s,error:a,helperText:l,size:c,variant:u},[h,m]=p.useState(t.value||[]),y=yt(),C=Me();p.useEffect(()=>{const b=t.value??[];m(b.map(String))},[t.value]);const w=p.useCallback((b,g)=>{m(g.map(String)),n(E({},t,{value:[...g.map(x=>r==="number"?Number(x):x)]}))},[n,t,r]);return v.jsx(uF,E({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,g)=>{const{inputValue:x}=g;return x==null||x===""?[]:[x]},id:y,value:h,onChange:w,renderTags:(b,g)=>b.map((x,P)=>{const I=g({index:P}),{key:T}=I,M=xe(I,Tde);return v.jsx(C.slots.baseChip,E({variant:"outlined",size:"small",label:x},M),T)}),renderInput:b=>{var g;return v.jsx(C.slots.baseTextField,E({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},b.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(g=C.slotProps)==null?void 0:g.baseTextField))}},d))}var yi=function(e){return e.Cell="cell",e.Row="row",e}(yi||{}),vt=function(e){return e.Edit="edit",e.View="view",e}(vt||{}),Ot=function(e){return e.Edit="edit",e.View="view",e}(Ot||{}),rr=function(e){return e.And="and",e.Or="or",e}(rr||{}),ki=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ki||{}),$o=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}($o||{}),ys=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(ys||{}),qo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(qo||{});function Aj(e){return e.field!==void 0}const Af=()=>({items:[],logicOperator:rr.And,quickFilterValues:[],quickFilterLogicOperator:rr.And});function Dj(e){return{current:e.current.getPublicApi()}}let cd;function Ede(){if(cd!==void 0)return cd;try{cd=new Function("return true")()}catch{cd=!1}return cd}const bC=(e,t)=>{const n=E({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=ls(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},F1=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(a=>a.id==null);return o.some(a=>a.operator==null)||i?E({},e,{items:o.map(a=>bC(a,n))}):e.items!==o?E({},e,{items:o}):e},F2=(e,t,n)=>r=>E({},r,{filterModel:F1(e,t,n)}),Df=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Lj=(e,t)=>{var u;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const d=n.valueParser;r=Array.isArray(e.value)?(u=e.value)==null?void 0:u.map(f=>d(f,void 0,n,t)):d(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=Df(r));const i=E({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=s.find(d=>d.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const l=Dj(t),c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{item:i,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=Df(f)),c(f,d,n,l)}}};let j2=1;const Ode=(e,t,n)=>{const{items:r}=e,o=r.map(a=>Lj(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!Ede())return(a,l)=>{const c={};for(let u=0;u{(async()=>{try{const l=await ple(e);r(l)}catch(l){console.error("Failed to fetch orchids:",l)}})()},[e]),n?v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",bgcolor:o.mainContent.backgroundColor,color:o.text.primary,pt:{xs:8,sm:10}},children:[v.jsxs(Kc,{maxWidth:"lg",sx:{py:4},children:[v.jsx(mr,{onClick:()=>t("/fer-lab1"),variant:"contained",startIcon:v.jsx(a9,{}),sx:{mb:3,backgroundColor:o.button.primary,"&:hover":{backgroundColor:o.button.hover}},children:"Back to List"}),v.jsx(yue,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:v.jsx(Pr,{elevation:3,sx:{overflow:"hidden",borderRadius:2,backgroundColor:o.card.backgroundColor,color:o.text.primary,boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:v.jsxs(Ht,{container:!0,spacing:0,children:[v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsxs(Qe,{sx:{position:"relative"},children:[v.jsx(eg,{ratio:"4/3",children:v.jsx("img",{src:n.image||La,alt:n.name,style:{width:"100%",height:"100%",objectFit:"cover"}})}),v.jsx(mr,{variant:"contained",startIcon:v.jsx(S9,{}),onClick:()=>s(!0),sx:{position:"absolute",bottom:16,right:16,backgroundColor:"rgba(0, 0, 0, 0.6)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.8)"}},children:"Watch Video"})]})}),v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsxs(Qe,{sx:{p:4},children:[v.jsx(Be,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:o.text.primary},children:n.name}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",mb:2},children:[v.jsx(Qm,{name:"read-only",value:Number(n.rating),readOnly:!0,precision:.5,emptyIcon:v.jsx(Pk,{style:{opacity:.55},fontSize:"inherit"})}),v.jsxs(Be,{variant:"body1",sx:{ml:1,color:o.text.secondary},children:["(",n.rating,"/5)"]})]}),v.jsx(Ja,{sx:{my:2}}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(aS,{sx:{mr:1,color:o.icon.color}}),"Origin:"," ",v.jsx(Ni,{label:n.origin,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(G_,{sx:{mr:1,color:o.icon.color}}),"Category:"," ",v.jsx(Ni,{label:n.category,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsxs(Be,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[v.jsx(f9,{sx:{mr:1,color:o.icon.color}}),"Color:"," ",v.jsx(Ni,{label:n.color,sx:{ml:1,backgroundColor:o.chip.backgroundColor,color:o.chip.color}})]}),v.jsx(Ja,{sx:{my:2}}),v.jsx(Be,{variant:"body1",paragraph:!0,sx:{color:o.text.secondary,lineHeight:1.6},children:n.detail}),n.isSpecial&&v.jsx(Ni,{icon:v.jsx(Pk,{}),label:"Special Orchid",color:"warning",sx:{mt:2}})]})})]})})}),v.jsx(vue,{currentOrchid:n,theme:o})]}),v.jsx(Qf,{open:i,onClose:()=>s(!1),"aria-labelledby":"video-modal-title","aria-describedby":"video-modal-description",children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:800,bgcolor:o.card.backgroundColor,boxShadow:24,p:4,borderRadius:2},children:[v.jsx(Qe,{sx:{display:"flex",justifyContent:"flex-end",mb:2},children:v.jsx(an,{onClick:()=>s(!1),sx:{color:o.text.primary},children:v.jsx(u9,{})})}),v.jsx(eg,{ratio:"16/9",children:v.jsx("iframe",{width:"100%",height:"100%",src:n.video,title:n.name,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})})]}):v.jsx(Kc,{maxWidth:"lg",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",bgcolor:o.mainContent.backgroundColor},children:v.jsx(Be,{variant:"h4",color:o.text.primary,children:"Orchid not found"})})}function wue(){const{theme:e}=p.useContext(Po),[t,n]=p.useState([]);return p.useEffect(()=>{(async()=>{try{const o=await fle();n(o.reverse())}catch(o){console.error("Failed to fetch orchids:",o)}})()},[]),v.jsx(Qe,{sx:{width:"100%"},children:v.jsx(Ht,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:t.map(r=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsx(_1,{orchid:r},r.Id)},r.Id))})})}const Cue="/fer-lab1/assets/avt-D_utLsXG.jpg",Ll=zr(Qe),xue=zr(pF),Jb=({icon:e,title:t,content:n,theme:r})=>v.jsx(xue,{elevation:3,sx:{backgroundColor:r.card.backgroundColor,color:r.text.primary,transition:"all 0.3s ease-in-out"},whileHover:{scale:1.05,boxShadow:r.elevation[3]},children:v.jsxs(hF,{children:[v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[lo.cloneElement(e,{style:{color:r.icon.color}}),v.jsx(Be,{variant:"h6",component:"h3",ml:1,color:r.text.primary,children:t})]}),v.jsx(Be,{variant:"body1",color:r.text.secondary,children:n})]})});function Sue(){const{theme:e}=p.useContext(Po);return v.jsx(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary},children:v.jsx(Kc,{maxWidth:!1,sx:{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,flex:"1 0 auto",padding:"2rem",paddingBottom:"4rem"},children:v.jsxs(Qe,{py:8,children:[v.jsx(Ll,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},mb:6,children:v.jsx(Be,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"About Me"})}),v.jsxs(Ht,{container:!0,spacing:4,children:[v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:v.jsxs(Qe,{textAlign:"center",children:[v.jsx(zS,{alt:"Nguyen Huy Hoang",src:Cue,sx:{width:200,height:200,margin:"auto",mb:2}}),v.jsx(Be,{variant:"h4",component:"h2",gutterBottom:!0,color:e.text.primary,children:"Nguyen Huy Hoang"}),v.jsx(Be,{variant:"subtitle1",color:e.text.secondary,gutterBottom:!0,children:"Software Engineering Student"}),v.jsxs(Qe,{children:[v.jsx(an,{"aria-label":"Facebook",sx:{color:e.icon.color},href:"https://www.facebook.com/hoangnguyen.c1002/",children:v.jsx(W_,{})}),v.jsx(an,{"aria-label":"Instagram",sx:{color:e.icon.color},href:"https://www.instagram.com/__hoang.nguyeen__/",children:v.jsx(q_,{})}),v.jsx(an,{"aria-label":"GitHub",sx:{color:e.icon.color},href:"https://github.com/Hoang-Nguyen-Huy",children:v.jsx(K_,{})})]})]})})}),v.jsx(Ht,{item:!0,xs:12,md:8,children:v.jsxs(Ll,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},children:[v.jsx(Be,{variant:"h5",component:"h3",gutterBottom:!0,color:e.text.primary,children:"Education"}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(P9,{sx:{color:e.icon.color,mr:1}}),v.jsx(Be,{variant:"body1",color:e.text.primary,children:"FPT University, Ho Chi Minh City"})]}),v.jsx(Be,{variant:"body1",paragraph:!0,color:e.text.secondary,children:"I am currently pursuing a degree in Software Engineering at FPT University in Ho Chi Minh City. My passion for technology and problem-solving drives me to excel in my studies and explore innovative solutions in the field of software development."})]})})]}),v.jsxs(Qe,{mt:8,children:[v.jsx(Be,{variant:"h4",component:"h2",align:"center",gutterBottom:!0,color:e.text.primary,children:"Our Approach"}),v.jsxs(Ht,{container:!0,spacing:4,mt:2,children:[v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},children:v.jsx(Jb,{icon:v.jsx(m9,{fontSize:"large"}),title:"Our Mission",content:"We strive to develop innovative software solutions that address real-world challenges and improve people's lives. Our goal is to create user-friendly, efficient, and scalable applications that make a positive impact on society.",theme:e})})}),v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},children:v.jsx(Jb,{icon:v.jsx(g9,{fontSize:"large"}),title:"Expert Care",content:"Our team of skilled developers and designers are committed to delivering high-quality software products. We stay up-to-date with the latest technologies and best practices to ensure that our solutions are robust, secure, and future-proof.",theme:e})})}),v.jsx(Ht,{item:!0,xs:12,md:4,children:v.jsx(Ll,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:1},children:v.jsx(Jb,{icon:v.jsx(s9,{fontSize:"large"}),title:"Sustainable Practices",content:"We are committed to sustainable software development practices. This includes writing clean, maintainable code, optimizing for energy efficiency, and considering the long-term environmental impact of our digital solutions.",theme:e})})})]})]})]})})})}const Pue=zr(Pr),Iue=zr(Qe);function kue(){const{theme:e}=p.useContext(Po),[t,n]=p.useState({name:"",email:"",message:""}),r=i=>{const{name:s,value:a}=i.target;n(l=>({...l,[s]:a}))},o=i=>{i.preventDefault(),console.log("Form submitted:",t),n({name:"",email:"",message:""})};return v.jsx(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,paddingTop:"8px"},children:v.jsxs(Kc,{maxWidth:!1,sx:{py:8,backgroundColor:e.mainContent.backgroundColor,minHeight:"100vh",padding:"2rem"},children:[v.jsx(Be,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"Contact Us"}),v.jsxs(Ht,{container:!0,spacing:4,justifyContent:"center",children:[v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsx(Pue,{elevation:3,initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5},sx:{p:4,backgroundColor:e.card.backgroundColor},children:v.jsxs("form",{onSubmit:o,children:[v.jsx(Ls,{fullWidth:!0,label:"Name",name:"name",value:t.name,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ls,{fullWidth:!0,label:"Email",name:"email",type:"email",value:t.email,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ls,{fullWidth:!0,label:"Message",name:"message",multiline:!0,rows:4,value:t.message,onChange:r,margin:"normal",required:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(mr,{type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!0,sx:{mt:2},children:"Send Message"})]})})}),v.jsx(Ht,{item:!0,xs:12,md:6,children:v.jsx(Iue,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:v.jsxs(Pr,{elevation:3,sx:{p:4,height:"100%",backgroundColor:e.card.backgroundColor},children:[v.jsx(Be,{variant:"h5",gutterBottom:!0,color:e.text.primary,children:"Contact Information"}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(h9,{})}),v.jsx(Be,{color:e.text.primary,children:"contact@example.com"})]}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(x9,{})}),v.jsx(Be,{color:e.text.primary,children:"+1 (123) 456-7890"})]}),v.jsxs(Qe,{display:"flex",alignItems:"center",mb:2,children:[v.jsx(an,{sx:{color:e.icon.color,mr:1},children:v.jsx(aS,{})}),v.jsx(Be,{color:e.text.primary,children:"Lô E2a-7, Đường D1, Đ. D1, Long Thạnh Mỹ, Thành Phố Thủ Đức, Hồ Chí Minh"})]}),v.jsxs(Qe,{mt:4,children:[v.jsx(Be,{variant:"h6",gutterBottom:!0,color:e.text.primary,children:"Find Us On Map"}),v.jsx(Pr,{elevation:2,sx:{height:250,overflow:"hidden"},children:v.jsx("iframe",{src:'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3918.610010397031!2d106.809883!3d10.841127599999998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31752731176b07b1%3A0xb752b24b379bae5e!2zVHLGsOG7nW5nIMSQ4bqhaSBo4buNYyBGUFQgVFAuIEhDTQ!5e0!3m2!1svi!2s!4v1727840452482!5m2!1svi!2s" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade',width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})]})})})]})]})})}const Tue=[{id:1,title:"New Orchid Species Discovered in Remote Rainforest",excerpt:"Researchers have found a previously unknown orchid species in the heart of the Amazon rainforest, showcasing the ongoing biodiversity discoveries in the region.",image:"https://www.coolearth.org/wp-content/uploads/2015/03/singing-orchid-1800x1196-1-1800x1080.jpg",category:"Discovery",author:{name:"Dr. Jane Smith",avatar:"https://pm1.aminoapps.com/7039/9b97883e37ad87916c0c909e2bc4792d56939aber1-734-569v2_hq.jpg"},date:"2024-10-04"},{id:2,title:"Rare Ghost Orchid Blooms in Florida Swamp",excerpt:"The elusive ghost orchid, known for its ethereal beauty, has been spotted blooming in a protected area of the Florida Everglades, exciting botanists and nature enthusiasts alike.",image:"https://i.natgeofe.com/n/07abea22-0cb5-4d7c-8507-ed1588c7930d/ghost-orchid-florida-01_2x1.jpg",category:"Nature",author:{name:"Mark Johnson",avatar:"https://news.virginia.edu/sites/default/files/article_image/mj_3-2.jpg"},date:"2024-10-03"},{id:3,title:"Orchid Conservation Efforts Show Promising Results",excerpt:"A decade-long conservation project focused on protecting endangered orchid species has reported significant progress.",image:"https://gardens.si.edu/wp-content/uploads/2024/07/gh12-201105-hl04-1-2000x1095.jpg",category:"Conservation",author:{name:"Emily Chen",avatar:"https://imgix.bustle.com/uploads/image/2024/6/5/89e161c3/eip_unit_01403r.jpg"},date:"2024-10-02"},{id:4,title:"Innovative Orchid Hybridization Technique Unveiled",excerpt:"Scientists have developed a groundbreaking hybridization technique that could revolutionize orchid breeding, potentially creating more resilient and vibrant varieties.",image:"https://images.contentstack.io/v3/assets/bltcedd8dbd5891265b/blte5a15471c01b5bf2/6668d7585cafe7232e8361e4/orchid-facts-hero.jpg",category:"Science",author:{name:"Dr. Alex Wong",avatar:"https://today.usc.edu/wp-content/uploads/2017/03/Wong-Alex_-scaled.jpg"},date:"2024-10-01"},{id:5,title:"Virtual Orchid Exhibition Attracts Global Audience",excerpt:"An online orchid show has drawn participants from over 50 countries, showcasing rare specimens and fostering international collaboration among orchid enthusiasts.",image:"https://aiph.org/wp-content/uploads/2019/04/IMG_1603-scaled.jpg",category:"Event",author:{name:"Sarah Lee",avatar:"https://a.storyblok.com/f/119968/800x800/d9428b7000/sarah_lee_thumbnail-0-5x.jpg"},date:"2024-09-30"},{id:6,title:"Climate Change Threatens Rare Alpine Orchid Species",excerpt:"Researchers warn that rising temperatures and changing precipitation patterns could lead to the extinction of several high-altitude orchid species in the next few decades.",image:"https://www.climatecrisisalert.com/wp-content/swift-ai/images/wp-content/uploads/2024/02/Orchids-various-species-Climate-Change-jpg.webp",category:"Environment",author:{name:"Prof. Maria Gonzalez",avatar:"https://melanoma.org.au/wp-content/uploads/2022/03/Maria-Gonzalez-1.jpg"},date:"2024-09-29"}],Eue=zr(pF);function Oue(){const{theme:e}=p.useContext(Po);return v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px - 56px)",backgroundColor:e.mainContent.backgroundColor,padding:{xs:2,sm:4,md:6}},children:[v.jsx(Be,{variant:"h2",component:"h1",gutterBottom:!0,align:"center",sx:{mb:6,fontWeight:"bold",color:e.text.primary,fontSize:{xs:"2.5rem",md:"3.5rem"},textShadow:`2px 2px 4px ${e.text.secondary}`},children:"Latest Orchid News"}),v.jsx(Ht,{container:!0,spacing:4,children:Tue.map((t,n)=>v.jsx(Ht,{item:!0,xs:12,sm:6,md:4,children:v.jsxs(Eue,{sx:{height:"100%",display:"flex",flexDirection:"column",transition:"0.3s",backgroundColor:e.card.backgroundColor,color:e.card.color,"&:hover":{transform:"translateY(-8px)",boxShadow:e.elevation[3]}},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},children:[v.jsx(Lne,{component:"img",height:"200",image:t.image,alt:t.title,sx:{objectFit:"cover"}}),v.jsxs(hF,{sx:{flexGrow:1,position:"relative"},children:[v.jsx(Ni,{label:t.category,size:"small",sx:{mb:2,backgroundColor:e.chip.backgroundColor,color:e.chip.color,position:"absolute",top:-20,left:16,boxShadow:e.elevation[1]}}),v.jsx(Be,{gutterBottom:!0,variant:"h5",component:"h2",sx:{fontWeight:"bold",color:e.text.primary},children:t.title}),v.jsx(Be,{variant:"body2",sx:{color:e.text.secondary,mb:2},children:t.excerpt}),v.jsx(Ja,{sx:{mb:2,backgroundColor:e.divider}}),v.jsxs(Qe,{sx:{display:"flex",alignItems:"center",mb:2},children:[v.jsx(zS,{src:t.author.avatar,sx:{width:32,height:32,mr:1}}),v.jsx(Be,{variant:"subtitle2",sx:{color:e.text.primary,mr:2},children:t.author.name}),v.jsx(o9,{sx:{fontSize:16,mr:.5,color:e.icon.color}}),v.jsx(Be,{variant:"caption",sx:{color:e.text.secondary},children:new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),v.jsxs(Qe,{sx:{display:"flex",justifyContent:"space-between"},children:[v.jsx(mr,{startIcon:v.jsx(c9,{}),size:"small",sx:{color:e.button.primary},children:"Save"}),v.jsx(mr,{startIcon:v.jsx(I9,{}),size:"small",sx:{color:e.button.primary},children:"Share"})]})]})]})},t.id))})]})}function Mue({children:e}){const{user:t}=eF();return t?e:v.jsx(Q3,{to:"/fer-lab1/"})}const xj=p.createContext(void 0);function et(){const e=p.useContext(xj);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` +`));return e}const Sj=p.createContext(void 0),Me=()=>{const e=p.useContext(Sj);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},Rue=Object.is;function Pj(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Rue(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}function da(e){return p.memo(e,Pj)}const $ue={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function rt(e){return Ne("MuiDataGrid",e)}const B=Fe("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),R2=1e3;class _ue{constructor(t=R2){this.timeouts=new Map,this.cleanupTimeout=R2,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Aue{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var go=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}(go||{});class Due{}function Lue(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Aue:new _ue);const[a]=p.useState(new Due),l=p.useRef(null),c=p.useRef();c.current=i;const u=p.useRef(null);if(!l.current&&c.current){const d=(f,h,m)=>{var y;h.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,h,m)};l.current=r.current.subscribeEvent(o,d,s),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{var f;(f=l.current)==null||f.call(l),l.current=null,u.current=null},u.current)}else!c.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));p.useEffect(()=>{if(!l.current&&c.current){const d=(f,h,m)=>{var y;h.defaultMuiPrevented||(y=c.current)==null||y.call(c,f,h,m)};l.current=r.current.subscribeEvent(o,d,s)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,o,s])}}const Fue={registry:null},Ie=Lue(Fue),jue={isFirst:!0};function Pt(e,t,n){Ie(e,t,n,jue)}function Nue(e){return e.acceptsApiRef}function $2(e,t){return Nue(t)?t(e):t(e.current.state)}const Bue=Object.is,Ij=Pj,zue=()=>({state:null,equals:null,selector:null}),ue=(e,t,n=Bue)=>{const r=Vo(zue),o=r.current.selector!==null,[i,s]=p.useState(o?null:$2(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,fv(()=>e.current.store.subscribe(()=>{const a=$2(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,s(a))})),i},_n=e=>e.dimensions;var fg=Symbol("NOT_FOUND");function Hue(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Vue(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Uue(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var _2=e=>Array.isArray(e)?e:[e];function Gue(e){const t=Array.isArray(e[0])?e[0]:e;return Uue(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Wue(e,t){const n=[],{length:r}=e;for(let o=0;ot(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return fg}function o(a,l){r(a)===fg&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Yue=(e,t)=>e===t;function Xue(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;ii(h.value,u));f&&(u=f.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Que=class{constructor(e){this.value=e}deref(){return this.value}},Jue=typeof WeakRef<"u"?WeakRef:Que,Zue=0,A2=1;function ah(){return{s:Zue,v:void 0,o:null,p:null}}function Tj(e,t={}){let n=ah();const{resultEqualityCheck:r}=t;let o,i=0;function s(){var d;let a=n;const{length:l}=arguments;for(let f=0,h=l;f{n=ah(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Ej(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),Hue(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=Tj,argsMemoizeOptions:m=[],devModeChecks:y={}}=u,C=_2(f),w=_2(m),b=Gue(o),g=d(function(){return i++,c.apply(null,arguments)},...C),x=h(function(){s++;const I=Wue(b,arguments);return a=g.apply(null,I),a},...w);return Object.assign(x,{resultFunc:c,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var ede=Ej(Tj),tde=Object.assign((e,t=ede)=>{Vue(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>tde});const nde=Ej({memoize:kj,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),D2=new WeakMap;function Ul(e){return"current"in e&&"instanceId"in e.current}const Gl={id:"default"},ze=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d),C=r(f,d),w=o(f,d);return i(h,m,y,C,w)};else if(e&&t&&n&&r&&o)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d),C=r(f,d);return o(h,m,y,C)};else if(e&&t&&n&&r)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d),y=n(f,d);return r(h,m,y)};else if(e&&t&&n)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d),m=t(f,d);return n(h,m)};else if(e&&t)a=(l,c)=>{const u=Ul(l),d=c??(u?l.current.instanceId:Gl),f=u?l.current.state:l,h=e(f,d);return t(h)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},xt=(...e)=>{const t=(n,r)=>{const o=Ul(n),i=o?n.current.instanceId:r??Gl,s=o?n.current.state:n,a=D2.get(i),l=a??new Map,c=l==null?void 0:l.get(e);if(l&&c)return c(s,i);const u=nde(...e);return a||D2.set(i,l),l.set(e,u),u(s,i)};return t.acceptsApiRef=!0,t},rde=.7,ode=1.3,ide={compact:rde,comfortable:ode,standard:1},pc=e=>e.density,fp=ze(pc,e=>ide[e]);let It=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const bC={left:[],right:[]},sde=e=>e.isRtl,di=e=>e.columns,Wi=ze(di,e=>e.orderedFields),cs=ze(di,e=>e.lookup),No=xt(Wi,cs,(e,t)=>e.map(n=>t[n])),fo=ze(di,e=>e.columnVisibilityModel),mn=xt(No,fo,(e,t)=>e.filter(n=>t[n.field]!==!1)),$u=xt(mn,e=>e.map(t=>t.field)),ade=e=>e.pinnedColumns,pp=xt(di,ade,$u,sde,(e,t,n,r)=>{const o=lde(t,n,r);return{left:o.left.map(s=>e.lookup[s]),right:o.right.map(s=>e.lookup[s])}});function lde(e,t,n){var a,l;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((l=e.right)==null?void 0:l.length)===0)return bC;const r=(c,u)=>Array.isArray(c)?c.filter(d=>u.includes(d)):[],o=r(e.left,t),i=t.filter(c=>!o.includes(c)),s=r(e.right,i);return n?{left:s,right:o}:{left:o,right:s}}const fa=xt(mn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Oj=xt(No,e=>e.filter(t=>t.filterable)),cde=xt(No,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),ude=xt(No,e=>e.some(t=>t.colSpan!==void 0)),dde=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],fde=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},rt,t)},pde=ne(Tu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>E({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),hde=p.forwardRef((e,t)=>{const n=Me(),{id:r,value:o,field:i,colDef:s,hasFocus:a,debounceMs:l=200,isProcessingProps:c,onValueChange:u}=e,d=xe(e,dde),f=et(),h=p.useRef(),[m,y]=p.useState(o),C=fde(n),w=p.useCallback(async g=>{const x=g.target.value;u&&await u(g,x);const P=f.current.getColumn(i);let I=x;P.valueParser&&(I=P.valueParser(x,f.current.getRow(r),P,f)),y(I),f.current.setEditCellValue({id:r,field:i,value:I,debounceMs:l,unstable_skipValueParser:!0},g)},[f,l,i,r,u]),b=f.current.unstable_getEditCellMeta(r,i);return p.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&y(o)},[b,o]),ht(()=>{a&&h.current.focus()},[a]),v.jsx(pde,E({ref:t,inputRef:h,className:C.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:m??"",onChange:w,endAdornment:c?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),mde=e=>v.jsx(hde,E({},e)),Mj=(e,t)=>t&&e.length>1?[e[0]]:e,L2=(e,t)=>n=>E({},n,{sorting:E({},n.sorting,{sortModel:Mj(e,t)})}),gde=e=>e==="desc",vde=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=gde(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},yde=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),bde=(e,t)=>{const n=e.map(r=>vde(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>yde(n,o,i)).map(o=>o.node.id)},F2=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},F1=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,wde=new Intl.Collator,Cde=(e,t)=>{const n=F1(e,t);return n!==null?n:typeof e=="string"?wde.compare(e.toString(),t.toString()):e-t},Rj=(e,t)=>{const n=F1(e,t);return n!==null?n:Number(e)-Number(t)},$j=(e,t)=>{const n=F1(e,t);return n!==null?n:e>t?1:e{const{value:I}=P.target;m(String(I)),C(!0),f.start(b.filterDebounceMs,()=>{const T=E({},t,{value:r==="number"?Number(I):I,fromInput:w});n(T),C(!1)})},[f,b.filterDebounceMs,t,r,w,n]);return p.useEffect(()=>{(t.fromInput!==w||t.value===void 0)&&m(String(t.value??""))},[w,t]),v.jsx(b.slots.baseTextField,E({id:w,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:g,variant:u,type:r||"text",InputProps:E({},y||l?{endAdornment:y?v.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):l}:{},{disabled:a},c,{inputProps:E({tabIndex:s},c==null?void 0:c.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},d,(x=b.slotProps)==null?void 0:x.baseTextField))}function Sde(e){return typeof e=="number"&&!Number.isNaN(e)}function _j(e){return typeof e=="function"}function j1(e){return typeof e=="object"&&e!==null}function Pde(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function pg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const fi=(e,t,n)=>Math.max(t,Math.min(n,e));function j2(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function $c(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function kde(e){const t=Ide(e);return(n,r)=>n+(r-n)*t()}function Aj(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Tde=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Ede=["key"];function Dj(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:l,size:c,variant:u="standard"}=e,d=xe(e,Tde),f={color:s,error:a,helperText:l,size:c,variant:u},[h,m]=p.useState(t.value||[]),y=yt(),C=Me();p.useEffect(()=>{const b=t.value??[];m(b.map(String))},[t.value]);const w=p.useCallback((b,g)=>{m(g.map(String)),n(E({},t,{value:[...g.map(x=>r==="number"?Number(x):x)]}))},[n,t,r]);return v.jsx(fF,E({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,g)=>{const{inputValue:x}=g;return x==null||x===""?[]:[x]},id:y,value:h,onChange:w,renderTags:(b,g)=>b.map((x,P)=>{const I=g({index:P}),{key:T}=I,M=xe(I,Ede);return v.jsx(C.slots.baseChip,E({variant:"outlined",size:"small",label:x},M),T)}),renderInput:b=>{var g;return v.jsx(C.slots.baseTextField,E({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},b.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(g=C.slotProps)==null?void 0:g.baseTextField))}},d))}var yi=function(e){return e.Cell="cell",e.Row="row",e}(yi||{}),pt=function(e){return e.Edit="edit",e.View="view",e}(pt||{}),St=function(e){return e.Edit="edit",e.View="view",e}(St||{}),rr=function(e){return e.And="and",e.Or="or",e}(rr||{}),ki=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ki||{}),$o=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}($o||{}),bs=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(bs||{}),qo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(qo||{});function Lj(e){return e.field!==void 0}const Af=()=>({items:[],logicOperator:rr.And,quickFilterValues:[],quickFilterLogicOperator:rr.And});function Fj(e){return{current:e.current.getPublicApi()}}let cd;function Ode(){if(cd!==void 0)return cd;try{cd=new Function("return true")()}catch{cd=!1}return cd}const wC=(e,t)=>{const n=E({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=cs(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},N1=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(a=>a.id==null);return o.some(a=>a.operator==null)||i?E({},e,{items:o.map(a=>wC(a,n))}):e.items!==o?E({},e,{items:o}):e},N2=(e,t,n)=>r=>E({},r,{filterModel:N1(e,t,n)}),Df=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,jj=(e,t)=>{var u;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const d=n.valueParser;r=Array.isArray(e.value)?(u=e.value)==null?void 0:u.map(f=>d(f,void 0,n,t)):d(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=Df(r));const i=E({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=s.find(d=>d.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const l=Fj(t),c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{item:i,fn:d=>{let f=t.current.getRowValue(d,n);return o&&(f=Df(f)),c(f,d,n,l)}}};let B2=1;const Mde=(e,t,n)=>{const{items:r}=e,o=r.map(a=>jj(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!Ode())return(a,l)=>{const c={};for(let u=0;u`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(` `)} @@ -2383,32 +2383,32 @@ ${o.map((a,l)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${l} ? false `)} }; -return result$$;`.replaceAll("$$",String(j2)));return j2+=1,(a,l)=>i(o,a,l)},Fj=e=>e.quickFilterExcludeHiddenColumns??!0,Mde=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=Fj(e)?$u(t):Wi(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,s=Dj(t);return r.forEach(l=>{const c=t.current.getColumn(l),u=c==null?void 0:c.getApplyQuickFilterFn;u&&o.push({column:c,appliers:n.map(d=>{const f=i?Df(d):d;return{fn:u(f,c,s)}})})}),function(c,u){const d={};e:for(let f=0;f{const r=Ode(e,t,n),o=Mde(e,t);return function(s,a,l){l.passingFilterItems=(r==null?void 0:r(s,a))??null,l.passingQuickFilterValues=(o==null?void 0:o(s,a))??null}},N2=e=>e!=null,$de=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Lj(r,t)!==null)),e.cleanedFilterItems),_de=(e,t,n,r,o)=>{const i=$de(o,r,n.items),s=e.filter(N2),a=t.filter(N2);if(s.length>0){const l=u=>s.some(d=>d[u.id]);if((n.logicOperator??Af().logicOperator)===rr.And){if(!i.every(l))return!1}else if(!i.some(l))return!1}if(a.length>0&&n.quickFilterValues!=null){const l=u=>a.some(d=>d[u]);if((n.quickFilterLogicOperator??Af().quickFilterLogicOperator)===rr.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},Ade=e=>{if(!e)return null;const t=new RegExp(fg(e),"i");return(n,r,o,i)=>{let s=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(s=Df(s)),s!=null?t.test(s.toString()):!1}},B2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(fg(r),"i");return i=>{if(i==null)return t;const s=o.test(String(i));return t?!s:s}},z2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const s=o.compare(r,i.toString())===0;return t?!s:s}},H2=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},Dde=(e=!1)=>[{value:"contains",getApplyFilterFn:B2(e,!1),InputComponent:ao},{value:"doesNotContain",getApplyFilterFn:B2(e,!0),InputComponent:ao},{value:"equals",getApplyFilterFn:z2(e,!1),InputComponent:ao},{value:"doesNotEqual",getApplyFilterFn:z2(e,!0),InputComponent:ao},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${fg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ao},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${fg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ao},{value:"isEmpty",getApplyFilterFn:H2(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:H2(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:_j}],Bo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:wde,type:"string",align:"left",filterOperators:Dde(),renderEditCell:hde,getApplyQuickFilterFn:Ade},Lde=["open","target","onClose","children","position","className","onExited"],Fde=e=>{const{classes:t}=e;return ve({root:["menu"]},rt,t)},jde=ne(gl,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),Nde={"bottom-start":"top left","bottom-end":"top right"};function jj(e){var y;const{open:t,target:n,onClose:r,children:o,position:i,className:s,onExited:a}=e,l=xe(e,Lde),c=et(),u=Me(),d=Fde(u),f=p.useRef(null);pt(()=>{var C,w;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((w=(C=f.current)==null?void 0:C.focus)==null||w.call(C),f.current=null)},[t]),p.useEffect(()=>{const C=t?"menuOpen":"menuClose";c.current.publishEvent(C,{target:n})},[c,t,n]);const h=C=>w=>{C&&C(),a&&a(w)},m=C=>{C.target&&(n===C.target||n!=null&&n.contains(C.target))||r(C)};return v.jsx(jde,E({as:u.slots.basePopper,className:ie(d.root,s),ownerState:u,open:t,anchorEl:n,transition:!0,placement:i},l,(y=u.slotProps)==null?void 0:y.basePopper,{children:({TransitionProps:C,placement:w})=>v.jsx(pF,{onClickAway:m,mouseEvent:"onMouseDown",children:v.jsx(xf,E({},C,{style:{transformOrigin:Nde[w]},onExited:h(C==null?void 0:C.onExited),children:v.jsx(Pr,{children:o})}))})}))}const Bde=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],zde=e=>typeof e.getActions=="function";function Hde(e){var _;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=xe(e,Bde),[l,c]=p.useState(-1),[u,d]=p.useState(!1),f=et(),h=p.useRef(null),m=p.useRef(null),y=p.useRef(!1),C=p.useRef({}),w=Ir(),b=yt(),g=yt(),x=Me();if(!zde(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const P=t.getActions(f.current.getRowParams(n)),I=P.filter($=>!$.props.showInMenu),T=P.filter($=>$.props.showInMenu),M=I.length+(T.length?1:0);p.useLayoutEffect(()=>{r||Object.entries(C.current).forEach(([$,L])=>{L==null||L.stop({},()=>{delete C.current[$]})})},[r]),p.useEffect(()=>{if(l<0||!h.current||l>=h.current.children.length)return;h.current.children[l].focus({preventScroll:!0})},[l]),p.useEffect(()=>{r||(c(-1),y.current=!1)},[r]),p.useImperativeHandle(s,()=>({focus(){if(!y.current){const $=P.findIndex(L=>!L.props.disabled);c($)}}}),[P]),p.useEffect(()=>{l>=M&&c(M-1)},[l,M]);const k=()=>{d(!0),c(M-1),y.current=!0},S=()=>{d(!1)},R=$=>L=>{C.current[$]=L},O=($,L)=>F=>{c($),y.current=!0,L&&L(F)},A=$=>{if(M<=1)return;const L=(j,N)=>{var K;if(j<0||j>P.length)return j;const V=(N==="left"?-1:1)*(w?-1:1);return(K=P[j+V])!=null&&K.props.disabled?L(j+V,N):j+V};let F=l;$.key==="ArrowRight"?F=L(l,"right"):$.key==="ArrowLeft"&&(F=L(l,"left")),!(F<0||F>=M)&&F!==l&&($.preventDefault(),$.stopPropagation(),c(F))},D=$=>{$.key==="Tab"&&$.preventDefault(),["Tab","Escape"].includes($.key)&&S()};return v.jsxs("div",E({role:"menu",ref:h,tabIndex:-1,className:B.actionsCell,onKeyDown:A},a,{children:[I.map(($,L)=>p.cloneElement($,{key:L,touchRippleRef:R(L),onClick:O(L,$.props.onClick),tabIndex:l===L?o:-1})),T.length>0&&g&&v.jsx(x.slots.baseIconButton,E({ref:m,id:g,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?b:void 0,role:"menuitem",size:"small",onClick:k,touchRippleRef:R(g),tabIndex:l===I.length?o:-1},(_=x.slotProps)==null?void 0:_.baseIconButton,{children:v.jsx(x.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&v.jsx(jj,{open:u,target:m.current,position:i,onClose:S,children:v.jsx(rS,{id:b,className:B.menuList,onKeyDown:D,"aria-labelledby":g,variant:"menu",autoFocusItem:!0,children:T.map(($,L)=>p.cloneElement($,{key:L,closeMenu:S}))})})]}))}const Vde=e=>v.jsx(Hde,E({},e)),ny="actions",Ude=E({},Bo,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Vde,getApplyQuickFilterFn:void 0}),ko=e=>e.rows,ry=ze(ko,e=>e.totalRowCount),Gde=ze(ko,e=>e.loading),Wde=ze(ko,e=>e.totalTopLevelRowCount),La=ze(ko,e=>e.dataRowIdToModelLookup),pg=ze(ko,e=>e.dataRowIdToIdLookup),Hn=ze(ko,e=>e.tree),Kde=ze(ko,e=>e.groupsToFetch),qde=ze(ko,e=>e.groupingName),V2=ze(ko,e=>e.treeDepths),_u=xt(ko,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),lh=ze(ko,e=>e.dataRowIds),Yde=ze(ko,e=>e==null?void 0:e.additionalRowGroups),bl=xt(Yde,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),Xde=ze(bl,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),En="auto-generated-group-node-root",_c=Symbol("mui.id_autogenerated"),Qde=()=>({type:"group",id:En,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Jde(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` -`))}const oy=(e,t,n)=>{const r=t?t(e):e.id;return Jde(r,e,n),r},zh=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},s={};for(let a=0;a{const n=e[En];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Bj=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const s=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup,previousGroupsToFetch:i}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},E({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:Nj({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},uu=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,j1=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(u=>{const d=oy(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,E({},o.get(d),u)):o.set(d,u)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:E({},e.updates.idToActionLookup),groupKeys:r},s=E({},e.dataRowIdToModelLookup),a=E({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=i.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!s[d])return;f!=null&&(l[f][d]=!0),i.actions.remove.push(d),delete s[d],delete a[d];return}const h=s[d];if(h){f==="remove"?(l.remove[d]=!0,i.actions.modify.push(d)):f==null&&i.actions.modify.push(d),s[d]=E({},h,u);return}f==="remove"?(l.remove[d]=!0,i.actions.insert.push(d)):f==null&&i.actions.insert.push(d),s[d]=u,a[d]=d});const c=Object.keys(l);for(let u=0;u0&&(i.actions[d]=i.actions[d].filter(h=>!f[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Zde(e){var o,i;const t=bl(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:n,bottom:r}}function zj(e){return`var(--DataGrid-overlayHeight, ${2*$n(e.current.state).rowHeight}px)`}function G2(e,t,n){const r=[];return t.forEach(o=>{const i=oy(o,n,"A row was provided without id when calling updateRows():"),s=e.current.getRowNode(i);if((s==null?void 0:s.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,l=a.idLookup[i];l&&(a.idLookup[i]=E({},l,o))}else r.push(o)}),r}const Hj=(e,t,n)=>typeof e=="number"&&e>0?e:t,efe="__tree_data_group__",Vj="__row_group_by_columns_group__",iy="__detail_panel_toggle__",tfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],nfe=e=>{const{classes:t}=e;return ve({root:["booleanCell"]},rt,t)};function rfe(e){const{value:t,rowNode:n}=e,r=xe(e,tfe),o=et(),i=Me(),s={classes:i.classes},a=nfe(s),c=ue(o,_u)>0&&n.type==="group"&&i.treeData===!1,u=p.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:v.jsx(u,E({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const ofe=p.memo(rfe),ife=e=>e.field!==Vj&&uu(e.rowNode)?"":v.jsx(ofe,E({},e)),sfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],afe=e=>{const{classes:t}=e;return ve({root:["editBooleanCell"]},rt,t)};function lfe(e){var w;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:s}=e,a=xe(e,sfe),l=et(),c=p.useRef(null),u=yt(),[d,f]=p.useState(n),h=Me(),m={classes:h.classes},y=afe(m),C=p.useCallback(async b=>{const g=b.target.checked;s&&await s(b,g),f(g),await l.current.setEditCellValue({id:t,field:r,value:g},b)},[l,r,t,s]);return p.useEffect(()=>{f(n)},[n]),pt(()=>{i&&c.current.focus()},[i]),v.jsx("label",E({htmlFor:u,className:ie(y.root,o)},a,{children:v.jsx(h.slots.baseCheckbox,E({id:u,inputRef:c,checked:!!d,onChange:C,size:"small"},(w=h.slotProps)==null?void 0:w.baseCheckbox))}))}const cfe=e=>v.jsx(lfe,E({},e)),ufe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],dfe=ne("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function ffe(e){var x,P,I;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:s,label:a,variant:l="standard"}=e,c=xe(e,ufe),[u,d]=p.useState(t.value||""),f=Me(),h=yt(),m=yt(),y=((x=f.slotProps)==null?void 0:x.baseSelect)||{},C=y.native??!1,w=((P=f.slotProps)==null?void 0:P.baseSelectOption)||{},b=p.useCallback(T=>{const M=T.target.value;d(M),n(E({},t,{value:!!M}))},[n,t]);p.useEffect(()=>{d(t.value||"")},[t.value]);const g=a??r.current.getLocaleText("filterPanelInputLabel");return v.jsxs(dfe,{children:[v.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(f.slots.baseInputLabel,E({},(I=f.slotProps)==null?void 0:I.baseInputLabel,{id:h,shrink:!0,variant:l,children:g})),v.jsxs(f.slots.baseSelect,E({labelId:h,id:m,label:g,value:u,onChange:b,variant:l,notched:l==="outlined"?!0:void 0,native:C,displayEmpty:!0,inputProps:{ref:o,tabIndex:s}},c,y,{children:[v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"",children:r.current.getLocaleText("filterValueAny")})),v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"true",children:r.current.getLocaleText("filterValueTrue")})),v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const pfe=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=String(e.value)==="true";return n=>!!n===t},InputComponent:ffe}],hfe=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),mfe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Uj=E({},Bo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:ife,renderEditCell:cfe,sortComparator:Oj,valueFormatter:hfe,filterOperators:pfe(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>mfe(e)}),Gj=e=>e.sorting,hp=ze(Gj,e=>e.sortedRows),N1=xt(hp,La,Hn,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const s=n[o];return s&&uu(s)&&r.push({id:o,model:{[_c]:o}}),r},[])),eo=ze(Gj,e=>e.sortModel),gfe=xt(eo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),sy=e=>e.filter,In=ze(sy,e=>e.filterModel);ze(In,e=>e.quickFilterValues);const vfe=e=>e.visibleRowsLookup,Au=ze(sy,e=>e.filteredRowsLookup);ze(sy,e=>e.filteredChildrenCountLookup);ze(sy,e=>e.filteredDescendantCountLookup);const fa=xt(vfe,N1,(e,t)=>t.filter(n=>e[n.id]!==!1)),Ac=xt(fa,e=>e.map(t=>t.id)),Wj=xt(Au,N1,(e,t)=>t.filter(n=>e[n.id]!==!1)),Kj=xt(Wj,e=>e.map(t=>t.id));xt(Ac,Hn,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const s=t[i];return n[s.depth]||(n[s.depth]=0),s.depth>r&&(n[s.depth]=0),r=s.depth,n[s.depth]+=1,o[i]=n[s.depth],o},{})});const qj=xt(fa,Hn,_u,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),B1=ze(fa,e=>e.length),z1=ze(qj,e=>e.length),yfe=ze(Wj,e=>e.length);ze(yfe,z1,(e,t)=>e-t);const bfe=xt(In,ls,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var s,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((s=o==null?void 0:o.filterOperators)==null?void 0:s.length)===0)return!1;const i=o.filterOperators.find(l=>l.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),wfe=xt(bfe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),to=e=>e.rowSelection,Cfe=ze(to,e=>e.length),xfe=xt(to,La,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ea=xt(to,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Yj(e,t){var l;const n=Hn(e),r=hp(e),o=Au(e),i=n[t];if(!i||i.type!=="group")return[];const s=[],a=r.findIndex(c=>c===t)+1;for(let c=a;ci.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&s.push(u)}return s}function Sfe(e,t){return ze(Hn,hp,Au,ea,(n,r,o,i)=>{var u;const s=n[e];if(!s||s.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;ds.depth;d+=1){const f=r[d];o[f]!==!1&&(a+=1,i[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l0:i[e]===e}})}function H1(e){return e.signature===go.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const Pfe=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==En;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Ife=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(s=>s!==n&&t[s])},ch=(e,t,n,r,o,i)=>{const s=Au(e),a=ea(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&Yj(e,n).forEach(d=>{i(d),l.add(d)})}if(o){const c=d=>{if(a[d]!==d&&!l.has(d))return!1;const f=t[d];return(f==null?void 0:f.type)!=="group"?!0:f.children.every(c)},u=d=>{const f=Ife(t,s,d);if(f.length===0||f.every(c)){const m=t[d].parent;m!=null&&m!==En&&e.current.isRowSelectable(m)&&(i(m),l.add(m),u(m))}};u(n)}}},W2=(e,t,n,r,o,i)=>{const s=ea(e);if(!(!o&&!r)&&(o&&Pfe(t,n).forEach(l=>{s[l]===l&&i(l)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&Yj(e,n).forEach(c=>{i(c)})}},kfe=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Tfe=e=>{const{classes:t}=e;return ve({root:["checkboxInput"]},rt,t)},Efe=p.forwardRef(function(t,n){var M,k;const{field:r,id:o,rowNode:i,hasFocus:s,tabIndex:a}=t,l=xe(t,kfe),c=et(),u=Me(),d={classes:u.classes},f=Tfe(d),h=p.useRef(null),m=p.useRef(null),y=ht(h,n),C=S=>{const R={value:S.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",R,S)};p.useLayoutEffect(()=>{if(a===0){const S=c.current.getCellElement(o,r);S&&(S.tabIndex=-1)}},[c,a,o,r]),p.useEffect(()=>{var S;if(s){const R=(S=h.current)==null?void 0:S.querySelector("input");R==null||R.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[s]);const w=p.useCallback(S=>{S.key===" "&&S.stopPropagation()},[]),b=c.current.isRowSelectable(o),g=Sfe(o,((M=u.rowSelectionPropagation)==null?void 0:M.parents)??!1),{isIndeterminate:x,isChecked:P}=ue(c,g);if(i.type==="footer"||i.type==="pinnedRow")return null;const I=c.current.getLocaleText(P?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow"),T=u.indeterminateCheckboxAction==="select"?P&&!x:P;return v.jsx(u.slots.baseCheckbox,E({ref:y,tabIndex:a,checked:T,onChange:C,className:f.root,inputProps:{"aria-label":I},onKeyDown:w,indeterminate:x,disabled:!b,touchRippleRef:m},(k=u.slotProps)==null?void 0:k.baseCheckbox,l))}),Ofe=Efe,ay=e=>e.focus,Or=ze(ay,e=>e.cell),Mfe=ze(ay,e=>e.columnHeader);ze(ay,e=>e.columnHeaderFilter);const hg=ze(ay,e=>e.columnGroupHeader),ly=e=>e.tabIndex,V1=ze(ly,e=>e.cell),Xj=ze(ly,e=>e.columnHeader);ze(ly,e=>e.columnHeaderFilter);const Rfe=ze(ly,e=>e.columnGroupHeader);function Xe(e,t,n){const r=p.useRef(!0);pt(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function yn(e,t){const n=p.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Qj=(e,t,n,r,o)=>{const i=yn(e,"useNativeEventListener"),[s,a]=p.useState(!1),l=p.useRef(r),c=Rj(t)?t():(t==null?void 0:t.current)??null,u=p.useCallback(d=>l.current&&l.current(d),[]);p.useEffect(()=>{l.current=r},[r]),p.useEffect(()=>{if(c&&n&&!s){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),a(!0);const d=()=>{i.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,s,i,o,e])},mp=e=>{const t=p.useRef(!0);t.current&&(t.current=!1,e())},$fe=()=>{},_fe=(e,t)=>{const n=p.useRef(!1);pt(()=>n.current||!e?$fe:(n.current=!0,t()),[n.current||e])},Afe=100,Dfe=e=>e?0:100,Jj=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Zj=e=>({page:0,pageSize:e?0:100}),Lfe=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),e5=(e,t)=>{if(t===go.DataGrid&&e>Afe)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`))},Ffe=-1,cy=e=>e.pagination,nr=ze(cy,e=>e.paginationModel),hc=ze(cy,e=>e.rowCount),Sd=ze(cy,e=>e.meta),jfe=ze(nr,e=>e.page),Nfe=ze(nr,e=>e.pageSize),t5=ze(nr,hc,(e,t)=>Jj(t,e.pageSize,e.page)),U1=xt(nr,Hn,_u,fa,qj,(e,t,n,r,o)=>{var h;const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=e.pageSize===Ffe?i-1:Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const l=o[s],c=a-s+1,u=r.findIndex(m=>m.id===l.id);let d=u,f=0;for(;d0)&&(d+=1),y===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),Bfe=xt(fa,U1,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),n5=xt(Ac,U1,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),zfe=["field","colDef"],Hfe=e=>{const{classes:t}=e;return ve({root:["checkboxInput"]},rt,t)},Vfe=p.forwardRef(function(t,n){var M;const r=xe(t,zfe),[,o]=p.useState(!1),i=et(),s=Me(),a={classes:s.classes},l=Hfe(a),c=ue(i,Xj),u=ue(i,to),d=ue(i,Ac),f=ue(i,n5),h=p.useMemo(()=>typeof s.isRowSelectable!="function"?u:u.filter(k=>i.current.getRow(k)?s.isRowSelectable(i.current.getRowParams(k)):!1),[i,s.isRowSelectable,u]),m=p.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?d:f).reduce((S,R)=>(S[R]=!0,S),{}),[s.pagination,s.checkboxSelectionVisibleOnly,f,d]),y=p.useMemo(()=>h.filter(k=>m[k]).length,[h,m]),C=y>0&&y0,b=k=>{const S={value:k.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",S)},g=c!==null&&c.field===t.field?0:-1;p.useLayoutEffect(()=>{const k=i.current.getColumnHeaderElement(t.field);g===0&&k&&(k.tabIndex=-1)},[g,i,t.field]);const x=p.useCallback(k=>{k.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[i,w]),P=p.useCallback(()=>{o(k=>!k)},[]);p.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",P),[i,P]);const I=i.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows"),T=s.indeterminateCheckboxAction==="select"?w&&!C:w;return v.jsx(s.slots.baseCheckbox,E({ref:n,indeterminate:C,checked:T,onChange:b,className:l.root,inputProps:{"aria-label":I},tabIndex:g,onKeyDown:x,disabled:!H1(s)},(M=s.slotProps)==null?void 0:M.baseCheckbox,r))}),Ei="__check__",Du=E({},Uj,{type:"custom",field:Ei,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=ea(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>v.jsx(Vfe,E({},e)),renderCell:e=>v.jsx(Ofe,E({},e))}),Ufe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function K2(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function Fl(e){var g;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:s,clearButton:a,tabIndex:l,disabled:c}=e,u=xe(e,Ufe),d=uo(),[f,h]=p.useState(()=>K2(t.value,r)),[m,y]=p.useState(!1),C=yt(),w=Me(),b=p.useCallback(x=>{d.clear();const P=x.target.value;h(P),y(!0),d.start(w.filterDebounceMs,()=>{const I=new Date(P);n(E({},t,{value:Number.isNaN(I.getTime())?void 0:I})),y(!1)})},[n,t,w.filterDebounceMs,d]);return p.useEffect(()=>{const x=K2(t.value,r);h(x)},[t.value,r]),v.jsx(w.slots.baseTextField,E({fullWidth:!0,id:C,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:b,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:E({},m||a?{endAdornment:m?v.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:c},s,{inputProps:E({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},s==null?void 0:s.inputProps)})},u,(g=w.slotProps)==null?void 0:g.baseTextField))}function jl(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return s=>{if(!s)return!1;if(r)return t(s.getTime(),i);const a=new Date(s);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const r5=e=>[{value:"is",getApplyFilterFn:t=>jl(t,(n,r)=>n===r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>jl(t,(n,r)=>n!==r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>jl(t,(n,r)=>n>r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>jl(t,(n,r)=>n>=r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>jl(t,(n,r)=>njl(t,(n,r)=>n<=r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],Gfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Wfe=ne(Tu)({fontSize:"inherit"}),Kfe=e=>{const{classes:t}=e;return ve({root:["editInputCell"]},rt,t)};function qfe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,l=xe(e,Gfe),c=o.type==="dateTime",u=et(),d=p.useRef(),f=p.useMemo(()=>{let x;n==null?x=null:n instanceof Date?x=n:x=new Date((n??"").toString());let P;return x==null||Number.isNaN(x.getTime())?P="":P=new Date(x.getTime()-x.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:x,formatted:P}},[n,c]),[h,m]=p.useState(f),C={classes:Me().classes},w=Kfe(C),b=p.useCallback(x=>{if(x==="")return null;const[P,I]=x.split("T"),[T,M,k]=P.split("-"),S=new Date;if(S.setFullYear(Number(T),Number(M)-1,Number(k)),S.setHours(0,0,0,0),I){const[R,O]=I.split(":");S.setHours(Number(R),Number(O),0,0)}return S},[]),g=p.useCallback(async x=>{const P=x.target.value,I=b(P);a&&await a(x,I),m({parsed:I,formatted:P}),u.current.setEditCellValue({id:t,field:r,value:I},x)},[u,r,t,a,b]);return p.useEffect(()=>{m(x=>{var P,I;return f.parsed!==x.parsed&&((P=f.parsed)==null?void 0:P.getTime())!==((I=x.parsed)==null?void 0:I.getTime())?f:x})},[f]),pt(()=>{i&&d.current.focus()},[i]),v.jsx(Wfe,E({inputRef:d,fullWidth:!0,className:w.root,type:c?"datetime-local":"date",inputProps:E({max:c?"9999-12-31T23:59":"9999-12-31"},s),value:h.formatted,onChange:g},l))}const o5=e=>v.jsx(qfe,E({},e));function i5({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` -`))}const Yfe=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return i5({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},Xfe=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return i5({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},Qfe=E({},Bo,{type:"date",sortComparator:Mj,valueFormatter:Yfe,filterOperators:r5(),renderEditCell:o5,pastedValueParser:e=>new Date(e)}),Jfe=E({},Bo,{type:"dateTime",sortComparator:Mj,valueFormatter:Xfe,filterOperators:r5(!0),renderEditCell:o5,pastedValueParser:e=>new Date(e)}),Ss=e=>e==null?null:Number(e),Zfe=e=>e==null||Number.isNaN(e)||e===""?null:t=>Ss(t)===Ss(e),epe=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ss(t)===e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ss(t)!==e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ss(t)>e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ss(t)>=e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ss(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ss(t)<=e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:_j,InputComponentProps:{type:"number"}}],tpe=E({},Bo,{type:"number",align:"right",headerAlign:"right",sortComparator:Oj,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>xde(e)?e.toLocaleString():e||"",filterOperators:epe(),getApplyQuickFilterFn:Zfe});function du(e){return(e==null?void 0:e.type)==="singleSelect"}function ol(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(E({field:e.field},t)):e.valueOptions}function mg(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const npe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],rpe=["MenuProps"];function ope(e){return!!e.key}function ipe(e){var O,A;const t=Me(),{id:n,value:r,field:o,row:i,colDef:s,hasFocus:a,error:l,onValueChange:c,initialOpen:u=t.editMode===yi.Cell}=e,d=xe(e,npe),f=et(),h=p.useRef(),m=p.useRef(),[y,C]=p.useState(u),b=(((O=t.slotProps)==null?void 0:O.baseSelect)||{}).native??!1,g=((A=t.slotProps)==null?void 0:A.baseSelect)||{},{MenuProps:x}=g,P=xe(g,rpe);if(pt(()=>{var D;a&&((D=m.current)==null||D.focus())},[a]),!du(s))return null;const I=ol(s,{id:n,row:i});if(!I)return null;const T=s.getOptionValue,M=s.getOptionLabel,k=async D=>{if(!du(s)||!I)return;C(!1);const _=D.target,$=mg(_.value,I,T);c&&await c(D,$),await f.current.setEditCellValue({id:n,field:o,value:$},D)},S=(D,_)=>{if(t.editMode===yi.Row){C(!1);return}if(_==="backdropClick"||D.key==="Escape"){const $=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",E({},$,{reason:D.key==="Escape"?$o.escapeKeyDown:$o.cellFocusOut}))}},R=D=>{ope(D)&&D.key==="Enter"||C(!0)};return!I||!s?null:v.jsx(t.slots.baseSelect,E({ref:h,inputRef:m,value:r,onChange:k,open:y,onOpen:R,MenuProps:E({onClose:S},x),error:l,native:b,fullWidth:!0},d,P,{children:I.map(D=>{var $;const _=T(D);return p.createElement(t.slots.baseSelectOption,E({},(($=t.slotProps)==null?void 0:$.baseSelectOption)||{},{native:b,key:_,value:_}),M(D))})}))}const spe=e=>v.jsx(ipe,E({},e)),ape=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],lpe=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...ol(e)||[]].map(a=>{const l=r(a);let c=n(a);return c===""&&(c=" "),p.createElement(t,E({},i,{native:o,key:l,value:l}),c)}),cpe=ne("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function q2(e){var T,M,k,S,R;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:s,tabIndex:a,label:l,variant:c="standard",clearButton:u}=e,d=xe(e,ape),f=t.value??"",h=yt(),m=yt(),y=Me(),C=((M=(T=y.slotProps)==null?void 0:T.baseSelect)==null?void 0:M.native)??!1;let w=null;if(t.field){const O=o.current.getColumn(t.field);du(O)&&(w=O)}const b=w==null?void 0:w.getOptionValue,g=w==null?void 0:w.getOptionLabel,x=p.useMemo(()=>ol(w),[w]),P=p.useCallback(O=>{let A=O.target.value;A=mg(A,x,b),n(E({},t,{value:A}))},[x,b,n,t]);if(!du(w))return null;const I=l??o.current.getLocaleText("filterPanelInputLabel");return v.jsxs(cpe,{children:[v.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(y.slots.baseInputLabel,E({},(k=y.slotProps)==null?void 0:k.baseInputLabel,{id:m,htmlFor:h,shrink:!0,variant:c,children:I})),v.jsx(y.slots.baseSelect,E({id:h,label:I,labelId:m,value:f,onChange:P,variant:c,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:s??o.current.getLocaleText("filterPanelInputPlaceholder")},native:C,notched:c==="outlined"?!0:void 0},d,(S=y.slotProps)==null?void 0:S.baseSelect,{children:lpe({column:w,OptionComponent:y.slots.baseSelectOption,getOptionLabel:g,getOptionValue:b,isSelectNative:C,baseSelectOptionProps:(R=y.slotProps)==null?void 0:R.baseSelectOption})}))]}),u]})}const upe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],dpe=["key"],fpe=ZL();function ppe(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:l,variant:c="standard"}=e,u=xe(e,upe),d={color:i,error:s,helperText:a,size:l,variant:c},f=yt(),h=Me();let m=null;if(t.field){const P=r.current.getColumn(t.field);du(P)&&(m=P)}const y=m==null?void 0:m.getOptionValue,C=m==null?void 0:m.getOptionLabel,w=p.useCallback((P,I)=>y(P)===y(I),[y]),b=p.useMemo(()=>ol(m)||[],[m]),g=p.useMemo(()=>Array.isArray(t.value)?t.value.reduce((P,I)=>{const T=b.find(M=>y(M)===I);return T!=null&&P.push(T),P},[]):[],[y,t.value,b]),x=p.useCallback((P,I)=>{n(E({},t,{value:I.map(y)}))},[n,t,y]);return v.jsx(uF,E({multiple:!0,options:b,isOptionEqualToValue:w,filterOptions:fpe,id:f,value:g,onChange:x,getOptionLabel:C,renderTags:(P,I)=>P.map((T,M)=>{const k=I({index:M}),{key:S}=k,R=xe(k,dpe);return v.jsx(h.slots.baseChip,E({variant:"outlined",size:"small",label:C(T)},R),S)}),renderInput:P=>{var I;return v.jsx(h.slots.baseTextField,E({},P,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},P.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(I=h.slotProps)==null?void 0:I.baseTextField))}},u))}const Nl=e=>e==null||!L1(e)?e:e.value,hpe=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Nl(t)===Nl(e.value),InputComponent:q2},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Nl(t)!==Nl(e.value),InputComponent:q2},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Nl);return n=>t.includes(Nl(n))},InputComponent:ppe}],mpe=e=>typeof e[0]=="object",gpe=e=>L1(e)?e.value:e,vpe=e=>L1(e)?e.label:String(e),ype=E({},Bo,{type:"singleSelect",getOptionLabel:vpe,getOptionValue:gpe,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!du(n))return"";const i=ol(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!mpe(i))return n.getOptionLabel(e);const s=i.find(a=>n.getOptionValue(a)===e);return s?n.getOptionLabel(s):""},renderEditCell:spe,filterOperators:hpe(),pastedValueParser:(e,t,n)=>{const r=n,o=ol(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),bpe="string",wpe=()=>({string:Bo,number:tpe,date:Qfe,dateTime:Jfe,boolean:Uj,singleSelect:ype,[ny]:Ude,custom:Bo}),G1=e=>e.headerFiltering,Cpe=ze(G1,e=>(e==null?void 0:e.enabled)??!1),xpe=ze(G1,e=>e.editing),Spe=ze(G1,e=>e.menuOpen),uy=e=>e.columnGrouping,s5=xt(uy,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),a5=xt(uy,e=>(e==null?void 0:e.lookup)??{}),Ppe=xt(uy,e=>(e==null?void 0:e.headerStructure)??[]),gp=ze(uy,e=>(e==null?void 0:e.maxDepth)??0),l5=["maxWidth","minWidth","width","flex"],Jb=wpe();function Ipe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const a=o.all[s];a&&a.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function i(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let a=e,l=t,c=0;o.frozenFields.forEach(u=>{a-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;ud.maxWidth&&(c+=d.maxWidth-h,h=d.maxWidth,s.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:h,flex:d.flex}}c<0?Object.keys(s.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(s.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),i()}return i(),o.all}const wC=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=fi(c.width||Bo.width,c.minWidth||Bo.minWidth,c.maxWidth||Bo.maxWidth),o+=u),c.computedWidth!==u&&(c=E({},c,{computedWidth:u})),d&&i.push(c),n[l]=c});const s=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(s-o,0);if(r>0&&s>0){const l=Ipe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return E({},e,{lookup:n})},kpe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let u=0;u!i[u])],l=E({},e.lookup);for(let u=0;u{f[h]=m===-1?1/0:m}),l[d]=f}return E({},e,{orderedFields:a,lookup:l})};function Y2(e){let t=Jb[bpe];return e&&Jb[e]&&(t=Jb[e]),t}const Wl=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=fo(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const i=!e.current.state.columns;let s;if(i)s={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=di(e.current.state);s={orderedFields:o?[]:[...f.orderedFields],lookup:E({},f.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(s.lookup).reduce((f,h)=>E({},f,{[h]:!1}),{})),t.forEach(f=>{const{field:h}=f;a[h]=!0;let m=s.lookup[h];m==null?(m=E({},Y2(f.type),{field:h,hasBeenResized:!1}),s.orderedFields.push(h)):o&&s.orderedFields.push(h),m&&m.type!==f.type&&(m=E({},Y2(f.type),{field:h}));let y=m.hasBeenResized;l5.forEach(C=>{f[C]!==void 0&&(y=!0,f[C]===-1&&(f[C]=1/0))}),s.lookup[h]=Uc(m,E({},f,{hasBeenResized:y}))}),o&&!i&&Object.keys(s.lookup).forEach(f=>{a[f]||delete s.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",s),c=kpe(l,n);return wC(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function Tpe({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return ve(r,rt,n)},Mpe=Ct("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${B["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${B["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${B["scrollArea--left"]}`]:{left:0},[`&.${B["scrollArea--right"]}`]:{right:0}}));function Rpe(e){const{scrollDirection:t}=e,n=p.useRef(null),r=et(),o=uo(),i=ue(r,fp),s=ue(r,A1),a=ue(r,$n),l=p.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const M=s-a.viewportInnerSize.width;return l.current.left{l.current=M,h(c)},P=nt(M=>{let k;if(M.preventDefault(),t==="left")k=M.clientX-n.current.getBoundingClientRect().right;else if(t==="right")k=Math.max(1,M.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");k=(k-X2)*Epe+X2,o.start(0,()=>{r.current.scroll({left:l.current.left+k,top:l.current.top})})}),I=nt(()=>{d(!0)}),T=nt(()=>{d(!1)});return Ie(r,"scrollPositionChange",x),Ie(r,"columnHeaderDragStart",I),Ie(r,"columnHeaderDragEnd",T),!u||!f?null:v.jsx(Mpe,{ref:n,className:ie(C.root),ownerState:y,onDragOver:P,style:g})}const Q2=ua(Rpe),$pe=()=>{};function _pe(e,t,n){const r=p.useRef(null);r.current=t,pt(()=>{if(typeof ResizeObserver>"u")return $pe;const o=e.current,i=new ResizeObserver(s=>{r.current(s)});return o&&i.observe(o),()=>{i.disconnect()}},[e,n])}const c5=p.createContext(void 0);function To(){const e=p.useContext(c5);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` -`));return e}const Dc=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=U1(e),n=Bfe(e)):(n=fa(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},pa=(e,t)=>{const n=Dc(e,t);return p.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Ape=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",Dpe=Ape.includes("firefox"),Lu=e=>e.rowsMeta,dy=e=>e.virtualization;ze(dy,e=>e.enabled);const K1=ze(dy,e=>e.enabledForColumns),Lpe=ze(dy,e=>e.enabledForRows),fy=ze(dy,e=>e.renderContext),Fpe=xt(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),u5={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},jpe=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return E({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:u5}})};function Npe(e,t){const n=i=>{e.current.setState(s=>E({},s,{virtualization:E({},s.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Xe(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(s=>E({},s,{virtualization:E({},s.virtualization,{enabledForColumns:i})}))}},"public"),p.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const q1=e=>e.rowSpanning,d5=ze(q1,e=>e.hiddenCells),Bpe=ze(q1,e=>e.spannedCells),zpe=ze(q1,e=>e.hiddenCellOriginMap),fu=e=>e.listViewColumn,Zb=50;var on=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(on||{});const J2={top:0,left:0},Hpe=Object.freeze(new Map),Vpe=(e,t,n,r,o)=>({direction:on.NONE,buffer:p5(e,on.NONE,t,n,r,o)});let CC=!1;try{typeof window<"u"&&(CC=/jsdom/.test(window.navigator.userAgent))}catch{}const Upe=()=>{const e=To(),t=Me(),{unstable_listView:n}=t,r=ue(e,()=>n?[fu(e.current.state)]:mn(e)),o=ue(e,Lpe)&&!CC,i=ue(e,K1)&&!CC,s=ue(e,$n),a=s.viewportOuterSize,l=ue(e,bl),c=ue(e,pp),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,h]=p.useState(Hpe),m=Ir(),y=ue(e,Or),C=ue(e,V1),w=ue(e,Lu),b=ue(e,ea),g=pa(e,t),x=e.current.rootElementRef,P=e.current.mainElementRef,I=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,M=e.current.virtualScrollbarHorizontalRef,k=s.contentSize.height,S=s.columnsTotalWidth,R=ue(e,cde);_pe(P,()=>e.current.resize());const O=p.useRef(J2),A=p.useRef(J2),D=p.useRef(u5),_=ue(e,fy),$=uo(),L=p.useRef(void 0),F=Vo(()=>Vpe(m,t.rowBufferPx,t.columnBufferPx,s.rowHeight*15,Zb*6)).current,j={rowIndex:p.useMemo(()=>y?g.rows.findIndex(U=>U.id===y.id):-1,[y,g.rows]),columnIndex:p.useMemo(()=>y?r.findIndex(U=>U.field===y.field):-1,[y,r])},N=p.useCallback(U=>{if(Kpe(U,e.current.state.virtualization.renderContext))return;const J=U.firstRowIndex!==D.current.firstRowIndex||U.lastRowIndex!==D.current.lastRowIndex;e.current.setState(Z=>E({},Z,{virtualization:E({},Z.virtualization,{renderContext:U})})),s.isReady&&J&&(D.current=U,e.current.publishEvent("renderedRowsIntervalChange",U)),A.current=O.current},[e,s.isReady]),z=nt(()=>{const U={top:I.current.scrollTop,left:I.current.scrollLeft},J=U.left-O.current.left,Z=U.top-O.current.top,le=J!==0||Z!==0;O.current=U;const he=le?qpe(J,Z):on.NONE,ye=Math.abs(O.current.top-A.current.top),pe=Math.abs(O.current.left-A.current.left),Fe=ye>=s.rowHeight||pe>=Zb,me=F.direction!==he;if(!(Fe||me))return _;if(me)switch(he){case on.NONE:case on.LEFT:case on.RIGHT:L.current=void 0;break;default:L.current=_;break}F.direction=he,F.buffer=p5(m,he,t.rowBufferPx,t.columnBufferPx,s.rowHeight*15,Zb*6);const Ve=e0(e,t,o,i),De=t0(Ve,O.current,F);return Ng.flushSync(()=>{N(De)}),$.start(1e3,z),De}),V=()=>{const U=e0(e,t,o,i),J=t0(U,O.current,F);L.current=void 0,N(J)},K=nt(U=>{const{scrollTop:J,scrollLeft:Z}=U.currentTarget;if(J<0||!m&&Z<0||m&&Z>0)return;const le=z();e.current.publishEvent("scrollPositionChange",{top:J,left:Z,renderContext:le})}),H=nt(U=>{e.current.publishEvent("virtualScrollerWheel",{},U)}),G=nt(U=>{e.current.publishEvent("virtualScrollerTouchMove",{},U)}),Y=(U={})=>{var te;if(!U.rows&&!g.range)return[];const J=U.renderContext??_,Z=!d&&U.position===void 0||d&&U.position==="bottom",le=U.position!==void 0;let he;switch(U.position){case"top":he=0;break;case"bottom":he=l.top.length+g.rows.length;break;case void 0:he=l.top.length;break}const ye=U.rows??g.rows,pe=J.firstRowIndex,Fe=Math.min(J.lastRowIndex,ye.length),me=U.rows?L2(0,U.rows.length):L2(pe,Fe);let Ae=-1;!le&&j.rowIndex!==-1&&(j.rowIndex=Fe&&(Ae=j.rowIndex,me.push(Ae)));const Ve=[],De=(te=t.slotProps)==null?void 0:te.row,X=da(e);return me.forEach(oe=>{var Yn,Tr,cr;const{id:de,model:ge}=ye[oe],Se=(((Yn=g==null?void 0:g.range)==null?void 0:Yn.firstRowIndex)||0)+he+oe;if(R){const Xn=u.left.length,Yr=r.length-u.right.length;e.current.calculateColSpan({rowId:de,minFirstColumn:Xn,maxLastColumn:Yr,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const Ee=(y==null?void 0:y.id)===de,Oe=e.current.rowHasAutoHeight(de)?"auto":e.current.unstable_getRowHeight(de);let Ce;b[de]==null?Ce=!1:Ce=e.current.isRowSelectable(de);let we=!1;U.position===void 0&&(we=oe===0);let Le=!1;const lt=oe===ye.length-1;if(Z)if(le)Le=lt;else{const Xn=g.rows.length-1;oe===Xn&&(Le=!0)}const ke=oe===Ae;let Ke=null;C!==null&&C.id===de&&(Ke=e.current.getCellParams(de,C.field).cellMode==="view"?C.field:null);let mt=J;!le&&L.current&&oe>=L.current.firstRowIndex&&oea.width,W=p.useMemo(()=>({overflowX:!ee||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[ee,t.autoHeight,n]),Q=p.useMemo(()=>{const U={width:ee?S:"auto",flexBasis:k,flexShrink:0};return t.autoHeight&&g.rows.length===0&&(U.flexBasis=zj(e)),U},[e,S,k,ee,t.autoHeight,g.rows.length]);return p.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,Q]),pt(()=>{e.current.resize()},[e,w.currentPageTotalHeight]),pt(()=>{i&&(I.current.scrollLeft=0),o&&(I.current.scrollTop=0)},[i,o,x,I]),pt(()=>{n&&(I.current.scrollLeft=0)},[n,I]),_fe(a.width!==0,()=>{const U=e0(e,t,o,i),J=t0(U,O.current,F);N(J),e.current.publishEvent("scrollPositionChange",{top:O.current.top,left:O.current.left,renderContext:J})}),e.current.register("private",{updateRenderContext:V}),Ie(e,"columnsChange",V),Ie(e,"filteredRowsSet",V),Ie(e,"rowExpansionChange",V),{renderContext:_,setPanels:h,getRows:Y,getContainerProps:()=>({ref:P}),getScrollerProps:()=>({ref:I,onScroll:K,onWheel:H,onTouchMove:G,style:W,role:"presentation",tabIndex:Dpe?-1:void 0}),getContentProps:()=>({style:Q,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:M,role:"presentation"})}};function e0(e,t,n,r){const o=$n(e.current.state),i=Dc(e,t),s=t.unstable_listView?[fu(e.current.state)]:mn(e),a=zpe(e),l=e.current.state.rows.dataRowIds.at(-1),c=s.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:l!==void 0?e.current.unstable_getRowHeight(l):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:Lu(e.current.state),columnPositions:da(e),rows:i.rows,range:i.range,pinnedColumns:pp(e),visibleColumns:s,hiddenCellsOriginMap:a,listView:t.unstable_listView??!1}}function t0(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,s=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(Z2(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:Z2(e,o+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,f]=xC({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let h=d;h=e.range.lastRowIndex);const i=fi(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?ta(t,e.rowsMeta.positions,n):Wpe(t,e.rowsMeta.positions,i,n)}function Gpe(e,t,n){const[r,o]=xC({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,s]=xC({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=Tpe({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:s}}function ta(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),s=t[i];let a;if(n!=null&&n.atStart){const l=(i===t.length-1?n.lastPosition:t[i+1])-s;a=e-l=Math.abs(e)?t>0?on.DOWN:on.UP:e>0?on.RIGHT:on.LEFT}function p5(e,t,n,r,o,i){if(e)switch(t){case on.LEFT:t=on.RIGHT;break;case on.RIGHT:t=on.LEFT;break}switch(t){case on.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case on.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case on.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case on.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case on.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Ype=()=>{var u,d;const e=et(),t=Me(),n=ue(e,ry),r=ue(e,B1),o=n===0,i=ue(e,Gde),s=!i&&o,a=!i&&n>0&&r===0;let l=null,c=null;return s&&(l="noRowsOverlay"),a&&(l="noResultsOverlay"),i&&(l="loadingOverlay",c=((d=(u=t.slotProps)==null?void 0:u.loadingOverlay)==null?void 0:d[o?"noRowsVariant":"variant"])||null),{overlayType:l,loadingOverlayVariant:c}},Xpe=Ct("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),Qpe=Ct("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Jpe=e=>{const{classes:t}=e;return ve({root:["overlayWrapper"],inner:["overlayWrapperInner"]},rt,t)};function Zpe(e){const t=et(),n=Me(),r=pa(t,n),o=ue(t,$n);let i=o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||i===0)&&(i=zj(t));const s=Jpe(E({},e,{classes:n.classes}));return v.jsx(Xpe,E({className:ie(s.root)},e,{children:v.jsx(Qpe,E({className:ie(s.inner),style:{height:i,width:o.viewportOuterSize.width}},e))}))}function ehe(e){var i,s;const{overlayType:t}=e,n=Me();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(s=n.slotProps)==null?void 0:s[t];return v.jsx(Zpe,E({},e,{children:v.jsx(r,E({},o))}))}const Hh=e=>e.columnMenu;function the(){var C;const e=To(),t=Me(),n=ue(e,mn),r=ue(e,wfe),o=ue(e,gfe),i=ue(e,Xj),s=ue(e,V1),a=ue(e,Rfe),l=ue(e,Mfe),c=ue(e,hg),u=ue(e,gp),d=ue(e,Hh),f=ue(e,fo),h=ue(e,Ppe),m=!(a===null&&i===null&&s===null),y=e.current.columnHeadersContainerRef;return v.jsx(t.slots.columnHeaders,E({ref:y,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m},(C=t.slotProps)==null?void 0:C.columnHeaders))}const nhe=ua(the),h5=p.createContext(void 0),m5=()=>{const e=p.useContext(h5);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` -`));return e},rhe=Ct("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),ohe=Ct("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),ihe=p.forwardRef((e,t)=>{const n=Me(),o=m5().hooks.useGridAriaAttributes();return v.jsxs(ohe,E({ref:t,ownerState:n,className:e.className,tabIndex:-1},o,{children:[v.jsx(rhe,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),she=()=>ve({root:["topContainer"]},rt,{}),ahe=Ct("div")({position:"sticky",zIndex:4,top:0});function lhe(e){const t=she();return v.jsx(ahe,E({},e,{className:ie(t.root,B["container--top"]),role:"presentation"}))}const che=()=>ve({root:["bottomContainer"]},rt,{}),uhe=Ct("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function dhe(e){const t=che();return v.jsx(uhe,E({},e,{className:ie(t.root,B["container--bottom"]),role:"presentation"}))}const fhe=(e,t)=>{const{classes:n}=e;return ve({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},rt,n)},phe=Ct("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),hhe=p.forwardRef(function(t,n){var s;const r=Me(),o=!r.autoHeight&&((s=t.style)==null?void 0:s.minHeight)==="auto",i=fhe(r,o);return v.jsx(phe,E({ref:n},t,{ownerState:r,className:ie(i.root,t.className)}))}),mhe=Ct("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),g5=Ct("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),ghe=Ct(g5)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),vhe=Ct(g5)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),yhe=Ct("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function bhe({rowsLength:e}){const t=et(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:s,leftPinnedWidth:a,rightPinnedWidth:l}=ue(t,$n),c=o?s:0,u=n.height-r.height>0;return c===0&&!u?null:v.jsxs(mhe,{className:B.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&v.jsx(ghe,{className:B["filler--pinnedLeft"],style:{width:a}}),v.jsx(yhe,{}),l>0&&v.jsx(vhe,{className:B["filler--pinnedRight"],style:{width:l+(i?s:0)}})]})}const whe=ua(bhe),Che=["className"],xhe=e=>{const{classes:t}=e;return ve({root:["virtualScrollerRenderZone"]},rt,t)},She=Ct("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Phe=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Che),i=et(),s=Me(),a=xhe(s),l=ue(i,()=>{const c=fy(i);return Lu(i.current.state).positions[c.firstRowIndex]??0});return v.jsx(She,E({ref:n,className:ie(a.root,r),ownerState:s,style:{transform:`translate3d(0, ${l}px, 0)`}},o))}),Ihe={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Bn=e=>e.editRows,Lf=e=>e.preferencePanel;var il=function(e){return e.filters="filters",e.columns="columns",e}(il||{});const khe=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return ve(r,rt,n)},v5=Ct("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),The=Ct(v5)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),Ehe=Ct(v5)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),eO=p.forwardRef(function(t,n){const r=To(),o=Me(),i=p.useRef(!1),s=p.useRef(0),a=p.useRef(null),l=p.useRef(null),c=khe(o,t.position),u=ue(r,$n),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",h=t.position==="vertical"?u.hasScrollX:u.hasScrollY,m=u.minimumSize[d]+(h?u.scrollbarSize:0),C=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(m/u.viewportOuterSize[d]),w=nt(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;if(x[f]===s.current)return;if(s.current=x[f],i.current){i.current=!1;return}i.current=!0;const I=x[f]/m;P[f]=I*C}),b=nt(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;if(i.current){i.current=!1;return}i.current=!0;const I=P[f]/C;x[f]=I*m});dv(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;return x.addEventListener("scroll",w,{capture:!0}),P.addEventListener("scroll",b,{capture:!0}),()=>{x.removeEventListener("scroll",w,{capture:!0}),P.removeEventListener("scroll",b,{capture:!0})}}),p.useEffect(()=>{l.current.style.setProperty(d,`${C}px`)},[C,d]);const g=t.position==="vertical"?The:Ehe;return v.jsx(g,{ref:ht(n,a),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:v.jsx("div",{ref:l,className:c.content})})}),Ohe=(e,t,n)=>{const{classes:r}=e,o={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight",n==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",t.hasScrollX&&"virtualScroller--hasScrollX"]};return ve(o,rt,r)},Mhe=Ct("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function Rhe(e){const t=et(),n=Me(),r=ue(t,$n),o=Ype(),i=Ohe(n,r,o.loadingOverlayVariant),s=Upe(),{getContainerProps:a,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:h}=s,m=h();return v.jsxs(ihe,E({className:i.root},a(),{children:[v.jsx(Q2,{scrollDirection:"left"}),v.jsx(Q2,{scrollDirection:"right"}),v.jsxs(Mhe,E({className:i.scroller},l(),{ownerState:n,children:[v.jsxs(lhe,{children:[!n.unstable_listView&&v.jsx(nhe,{}),v.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:s})]}),v.jsx(ehe,E({},o)),v.jsx(hhe,E({},c(),{children:v.jsxs(Phe,E({},u(),{children:[m,v.jsx(n.slots.detailPanels,{virtualScroller:s})]}))})),v.jsx(whe,{rowsLength:m.length}),v.jsx(dhe,{children:v.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:s})})]})),r.hasScrollY&&v.jsx(eO,E({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&v.jsx(eO,E({position:"horizontal"},f())),e.children]}))}function $he(){var t;const e=Me();return e.hideFooter?null:v.jsx(e.slots.footer,E({},(t=e.slotProps)==null?void 0:t.footer))}let n0;function _he(){return n0===void 0&&document.createElement("div").focus({get preventScroll(){return n0=!0,!1}}),n0}function Ahe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function gg(e,t){return e.closest(`.${t}`)}function cs(e){return e.replace(/["\\]/g,"\\$&")}function Dhe(e,t){return e.querySelector(`[role="columnheader"][data-field="${cs(t)}"]`)}function y5(e){return`.${B.row}[data-id="${cs(String(e))}"]`}function Lhe(e,t){return e.querySelector(y5(t))}function Fhe(e,{id:t,field:n}){const r=y5(t),o=`.${B.cell}[data-field="${cs(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function vp(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function jhe(e){return e.getAttribute("data-field")}function Nhe(e,t){return e.querySelector(`[data-field="${cs(t)}"]`)}function Bhe(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function zhe(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${cs(t)}-|"]`)??[])}function Hhe(e,t){var s;if(!gg(e,B.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(s=t.virtualScrollerRef)!=null&&s.current?(C5(t).forEach(a=>{const l=a.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=a.querySelector(`[data-colindex="${c}"]`);d&&i.push(d)}),i):[]}function tO(e,t){return e.rootElementRef.current.querySelector(`.${B[t]}`)}const b5=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return C5(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${B[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const l=Fu(a);l!==null&&r(l)&&o.push(a)})}),o};function Vhe(e,t,n){const r=Fu(t);return b5({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?or})}function Uhe(e,t,n){const r=Fu(t);return b5({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${B[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(s=>{const a=Fu(s);a!==null&&r(a)&&o.push(s)}),o};function Ghe(e,t,n){const r=Fu(t);return w5({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?or})}function Whe(e,t,n){const r=Fu(t);return w5({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o div > [data-field="${cs(t)}"][role="columnheader"]`)}function qhe(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${cs(t)}"][role="gridcell"]`))}function C5(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${B.row}`)}function Fu(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class Vh extends Error{}function Yhe(e,t){const n=p.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=p.useCallback(f=>{const h=e.current.getRow(f);if(!h)throw new Vh(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:h}},[e]),o=p.useCallback((f,h)=>{const m=t.unstable_listView?fu(e.current.state):e.current.getColumn(h),y=e.current.getRow(f),C=e.current.getRowNode(f);if(!y||!C)throw new Vh(`No row with id #${f} found`);const w=y[h],b=m!=null&&m.valueGetter?m.valueGetter(w,y,m,e):w,g=Or(e),x=V1(e),P={id:f,field:h,row:y,rowNode:C,colDef:m,cellMode:e.current.getCellMode(f,h),hasFocus:g!==null&&g.field===h&&g.id===f,tabIndex:x&&x.field===h&&x.id===f?0:-1,value:b,formattedValue:b,isEditable:!1,api:{}};return m&&m.valueFormatter&&(P.formattedValue=m.valueFormatter(b,y,m,e)),P.isEditable=m&&e.current.isCellEditable(P),P},[e,t.unstable_listView]),i=p.useCallback((f,h)=>{const m=e.current.getColumn(h),y=e.current.getRow(f);if(!y)throw new Vh(`No row with id #${f} found`);return!m||!m.valueGetter?y[h]:m.valueGetter(y[m.field],y,m,e)},[e]),s=p.useCallback((f,h)=>{const m=h.field;if(!h||!h.valueGetter)return f[m];const y=f[h.field];return h.valueGetter(y,f,h,e)},[e]),a=p.useCallback((f,h)=>{const m=s(f,h);return!h||!h.valueFormatter?m:h.valueFormatter(m,f,h,e)},[e,s]),l=p.useCallback(f=>e.current.rootElementRef.current?Dhe(e.current.rootElementRef.current,f):null,[e]),c=p.useCallback(f=>e.current.rootElementRef.current?Lhe(e.current.rootElementRef.current,f):null,[e]),u=p.useCallback((f,h)=>e.current.rootElementRef.current?Fhe(e.current.rootElementRef.current,{id:f,field:h}):null,[e]);Xe(e,{getCellValue:i,getCellParams:o,getCellElement:u,getRowValue:s,getRowFormattedValue:a,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const py=(e,t,n,r,o)=>{const i=t===n-1;return e===Pt.LEFT&&i?!0:r?e===Pt.LEFT?!0:e===Pt.RIGHT?!i:!i||o:!1},hy=(e,t)=>e===Pt.RIGHT&&t===0,Xhe=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Qhe=["changeReason","unstable_updateValueOnRender"];let pr=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const x5={[pr.LEFT]:Pt.LEFT,[pr.RIGHT]:Pt.RIGHT,[pr.NONE]:void 0,[pr.VIRTUAL]:void 0},nO={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:vt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Jhe=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:s,isSelectionMode:a,classes:l}=e,c={root:["cell",`cell--text${re(t)}`,s&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===pr.LEFT&&"cell--pinnedLeft",o===pr.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return ve(c,rt,l)},Zhe=p.forwardRef(function(t,n){var we,Le,lt;const{column:r,rowId:o,editCellState:i,align:s,colIndex:a,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:h,pinnedOffset:m,pinnedPosition:y,sectionIndex:C,sectionLength:w,gridHasFiller:b,onClick:g,onDoubleClick:x,onMouseDown:P,onMouseUp:I,onMouseOver:T,onKeyDown:M,onKeyUp:k,onDragEnter:S,onDragOver:R}=t,O=xe(t,Xhe),A=et(),D=Me(),_=Ir(),$=r.field,L=ue(A,()=>{try{const fe=A.current.getCellParams(o,$);return fe.api=A.current,fe}catch(fe){if(fe instanceof Vh)return nO;throw fe}},Sj),F=ue(A,()=>A.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:$})),j=ue(A,d5),N=ue(A,Bpe),{cellMode:z,hasFocus:V,isEditable:K=!1,value:H}=L,G=r.type==="actions"&&((we=r.getActions)==null?void 0:we.call(r,A.current.getRowParams(o)).some(fe=>!fe.props.disabled)),Y=(z==="view"||!K)&&!G?L.tabIndex:-1,{classes:ee,getCellClassName:W}=D,U=[ue(A,()=>A.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:$}).filter(Boolean).join(" "))];r.cellClassName&&U.push(typeof r.cellClassName=="function"?r.cellClassName(L):r.cellClassName),r.display==="flex"&&U.push(B["cell--flex"]),W&&U.push(W(L));const J=L.formattedValue??H,Z=p.useRef(null),le=ht(n,Z),he=p.useRef(null),ye=D.cellSelection??!1,pe=x5[y],Fe=hy(pe,C),me=py(pe,C,w,D.showCellVerticalBorder,b),Ae={align:s,showLeftBorder:Fe,showRightBorder:me,isEditable:K,classes:D.classes,pinnedPosition:y,isSelected:F,isSelectionMode:ye},Ve=Jhe(Ae),De=p.useCallback(fe=>ke=>{const Ke=A.current.getCellParams(o,$||"");A.current.publishEvent(fe,Ke,ke),I&&I(ke)},[A,$,I,o]),X=p.useCallback(fe=>ke=>{const Ke=A.current.getCellParams(o,$||"");A.current.publishEvent(fe,Ke,ke),P&&P(ke)},[A,$,P,o]),te=p.useCallback((fe,ke)=>Ke=>{if(!A.current.getRow(o))return;const mt=A.current.getCellParams(o,$||"");A.current.publishEvent(fe,mt,Ke),ke&&ke(Ke)},[A,$,o]),oe=((Le=j[o])==null?void 0:Le[$])??!1,de=((lt=N[o])==null?void 0:lt[$])??1,ge=p.useMemo(()=>{if(h)return{padding:0,opacity:0,width:0,border:0};const fe=E({"--width":`${l}px`},u),ke=y===pr.LEFT,Ke=y===pr.RIGHT;if(ke||Ke){let mt=ke?"left":"right";_&&(mt=ke?"right":"left"),fe[mt]=m}return de>1&&(fe.height=`calc(var(--height) * ${de})`,fe.zIndex=5),fe},[l,h,u,m,y,_,de]);if(p.useEffect(()=>{if(!V||z===vt.Edit)return;const fe=Wt(A.current.rootElementRef.current);if(Z.current&&!Z.current.contains(fe.activeElement)){const ke=Z.current.querySelector('[tabindex="0"]'),Ke=he.current||ke||Z.current;if(_he())Ke.focus({preventScroll:!0});else{const mt=A.current.getScrollPosition();Ke.focus(),A.current.scroll(mt)}}},[V,z,A]),oe)return v.jsx("div",{"data-colindex":a,role:"presentation",style:E({width:"var(--width)"},ge)});if(L===nO)return null;let Se=O.onFocus,Ee,Oe;if(i===null&&r.renderCell&&(Ee=r.renderCell(L)),i!==null&&r.renderEditCell){const fe=A.current.getRowWithUpdatedValues(o,r.field),ke=xe(i,Qhe),Ke=r.valueFormatter?r.valueFormatter(i.value,fe,r,A):L.formattedValue,mt=E({},L,{row:fe,formattedValue:Ke},ke);Ee=r.renderEditCell(mt),U.push(B["cell--editing"]),U.push(ee==null?void 0:ee["cell--editing"])}if(Ee===void 0){const fe=J==null?void 0:J.toString();Ee=fe,Oe=fe}p.isValidElement(Ee)&&G&&(Ee=p.cloneElement(Ee,{focusElementRef:he}));const Ce=f?null:{onDragEnter:te("cellDragEnter",S),onDragOver:te("cellDragOver",R)};return v.jsx("div",E({ref:le,className:ie(Ve.root,U,c),role:"gridcell","data-field":$,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":d,"aria-rowspan":de,style:ge,title:Oe,tabIndex:Y,onClick:te("cellClick",g),onDoubleClick:te("cellDoubleClick",x),onMouseOver:te("cellMouseOver",T),onMouseDown:X("cellMouseDown"),onMouseUp:De("cellMouseUp"),onKeyDown:te("cellKeyDown",M),onKeyUp:te("cellKeyUp",k)},Ce,O,{onFocus:Se,children:Ee}))}),eme=ua(Zhe),tme=["field","type","align","width","height","empty","style","className"],rO="1.3em",nme="1.2em",oO=[40,80],rme={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},ome=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?re(t):"Left"}`,r&&"cellEmpty"]};return ve(o,rt,n)},ime=Ide(12345);function sme(e){const{field:t,type:n,align:r,width:o,height:i,empty:s=!1,style:a,className:l}=e,c=xe(e,tme),d={classes:Me().classes,align:r,empty:s},f=ome(d),h=p.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:rO,height:rO};const[y,C]=n?rme[n]??oO:oO;return{variant:"text",width:`${Math.round(ime(y,C))}%`,height:nme}},[n]);return v.jsx("div",E({"data-field":t,className:ie(f.root,l),style:E({height:i,maxWidth:o,minWidth:o},a)},c,{children:!s&&v.jsx(eie,E({},h))}))}const ame=ua(sme);function lme(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?dl(We(e.palette.divider,1),.88):ul(We(e.palette.divider,1),.68)}const iO={[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"}},cme=10,uh=-5,Bl=1,sO={width:3,rx:1.5,x:10.5},ume="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",dme=ne("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${B["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${B["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${B["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${B.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${B["root--disableUserSelection"]} .${B.cell}`]:t["root--disableUserSelection"]},{[`&.${B.autosizing}`]:t.autosizing},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.menuList}`]:t.menuList},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B.row}`]:t.row},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.withBorderColor}`]:t.withBorderColor},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${B.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var M,k;const t=To(),n=ue(t,$n),r=lme(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:((M=e.mixins.MuiDataGrid)==null?void 0:M.containerBackground)??e.palette.background.default,s=((k=e.mixins.MuiDataGrid)==null?void 0:k.pinnedBackground)??i,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:We(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,c=(e.vars||e).palette.action.hover,u=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`calc(${l} + ${u})`:l+u,f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${u})`:We(e.palette.primary.main,u),h=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:We(e.palette.primary.main,d),m=e.vars?hme:fme,y=S=>({[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{backgroundColor:S,"&.Mui-selected":{backgroundColor:m(S,f,u),"&:hover":{backgroundColor:m(S,f,d)}}}}),C=m(s,c,l),w=y(C),b=m(s,f,u),g=y(b),x=m(s,h,d),P=y(x),I={backgroundColor:f,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:f}}};return E({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":s,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${B.main} > *:first-child${ume}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${B.autoHeight}`]:{height:"auto"},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${B.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${B.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${B.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:We(e.palette.primary.main,.5)} ${Bl}px`,outlineOffset:Bl*-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${Bl}px`,outlineOffset:Bl*-1},[`& .${B.columnHeader}:focus, +return result$$;`.replaceAll("$$",String(B2)));return B2+=1,(a,l)=>i(o,a,l)},Nj=e=>e.quickFilterExcludeHiddenColumns??!0,Rde=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=Nj(e)?$u(t):Wi(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,s=Fj(t);return r.forEach(l=>{const c=t.current.getColumn(l),u=c==null?void 0:c.getApplyQuickFilterFn;u&&o.push({column:c,appliers:n.map(d=>{const f=i?Df(d):d;return{fn:u(f,c,s)}})})}),function(c,u){const d={};e:for(let f=0;f{const r=Mde(e,t,n),o=Rde(e,t);return function(s,a,l){l.passingFilterItems=(r==null?void 0:r(s,a))??null,l.passingQuickFilterValues=(o==null?void 0:o(s,a))??null}},z2=e=>e!=null,_de=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>jj(r,t)!==null)),e.cleanedFilterItems),Ade=(e,t,n,r,o)=>{const i=_de(o,r,n.items),s=e.filter(z2),a=t.filter(z2);if(s.length>0){const l=u=>s.some(d=>d[u.id]);if((n.logicOperator??Af().logicOperator)===rr.And){if(!i.every(l))return!1}else if(!i.some(l))return!1}if(a.length>0&&n.quickFilterValues!=null){const l=u=>a.some(d=>d[u]);if((n.quickFilterLogicOperator??Af().quickFilterLogicOperator)===rr.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},Dde=e=>{if(!e)return null;const t=new RegExp(pg(e),"i");return(n,r,o,i)=>{let s=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(s=Df(s)),s!=null?t.test(s.toString()):!1}},H2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(pg(r),"i");return i=>{if(i==null)return t;const s=o.test(String(i));return t?!s:s}},V2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const s=o.compare(r,i.toString())===0;return t?!s:s}},U2=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},Lde=(e=!1)=>[{value:"contains",getApplyFilterFn:H2(e,!1),InputComponent:ao},{value:"doesNotContain",getApplyFilterFn:H2(e,!0),InputComponent:ao},{value:"equals",getApplyFilterFn:V2(e,!1),InputComponent:ao},{value:"doesNotEqual",getApplyFilterFn:V2(e,!0),InputComponent:ao},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${pg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ao},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${pg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ao},{value:"isEmpty",getApplyFilterFn:U2(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:U2(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Dj}],Bo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Cde,type:"string",align:"left",filterOperators:Lde(),renderEditCell:mde,getApplyQuickFilterFn:Dde},Fde=["open","target","onClose","children","position","className","onExited"],jde=e=>{const{classes:t}=e;return ye({root:["menu"]},rt,t)},Nde=ne(gl,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),Bde={"bottom-start":"top left","bottom-end":"top right"};function Bj(e){var y;const{open:t,target:n,onClose:r,children:o,position:i,className:s,onExited:a}=e,l=xe(e,Fde),c=et(),u=Me(),d=jde(u),f=p.useRef(null);ht(()=>{var C,w;t?f.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((w=(C=f.current)==null?void 0:C.focus)==null||w.call(C),f.current=null)},[t]),p.useEffect(()=>{const C=t?"menuOpen":"menuClose";c.current.publishEvent(C,{target:n})},[c,t,n]);const h=C=>w=>{C&&C(),a&&a(w)},m=C=>{C.target&&(n===C.target||n!=null&&n.contains(C.target))||r(C)};return v.jsx(Nde,E({as:u.slots.basePopper,className:ie(d.root,s),ownerState:u,open:t,anchorEl:n,transition:!0,placement:i},l,(y=u.slotProps)==null?void 0:y.basePopper,{children:({TransitionProps:C,placement:w})=>v.jsx(mF,{onClickAway:m,mouseEvent:"onMouseDown",children:v.jsx(xf,E({},C,{style:{transformOrigin:Bde[w]},onExited:h(C==null?void 0:C.onExited),children:v.jsx(Pr,{children:o})}))})}))}const zde=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Hde=e=>typeof e.getActions=="function";function Vde(e){var _;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=xe(e,zde),[l,c]=p.useState(-1),[u,d]=p.useState(!1),f=et(),h=p.useRef(null),m=p.useRef(null),y=p.useRef(!1),C=p.useRef({}),w=Ir(),b=yt(),g=yt(),x=Me();if(!Hde(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const P=t.getActions(f.current.getRowParams(n)),I=P.filter($=>!$.props.showInMenu),T=P.filter($=>$.props.showInMenu),M=I.length+(T.length?1:0);p.useLayoutEffect(()=>{r||Object.entries(C.current).forEach(([$,L])=>{L==null||L.stop({},()=>{delete C.current[$]})})},[r]),p.useEffect(()=>{if(l<0||!h.current||l>=h.current.children.length)return;h.current.children[l].focus({preventScroll:!0})},[l]),p.useEffect(()=>{r||(c(-1),y.current=!1)},[r]),p.useImperativeHandle(s,()=>({focus(){if(!y.current){const $=P.findIndex(L=>!L.props.disabled);c($)}}}),[P]),p.useEffect(()=>{l>=M&&c(M-1)},[l,M]);const k=()=>{d(!0),c(M-1),y.current=!0},S=()=>{d(!1)},R=$=>L=>{C.current[$]=L},O=($,L)=>F=>{c($),y.current=!0,L&&L(F)},A=$=>{if(M<=1)return;const L=(j,N)=>{var K;if(j<0||j>P.length)return j;const V=(N==="left"?-1:1)*(w?-1:1);return(K=P[j+V])!=null&&K.props.disabled?L(j+V,N):j+V};let F=l;$.key==="ArrowRight"?F=L(l,"right"):$.key==="ArrowLeft"&&(F=L(l,"left")),!(F<0||F>=M)&&F!==l&&($.preventDefault(),$.stopPropagation(),c(F))},D=$=>{$.key==="Tab"&&$.preventDefault(),["Tab","Escape"].includes($.key)&&S()};return v.jsxs("div",E({role:"menu",ref:h,tabIndex:-1,className:B.actionsCell,onKeyDown:A},a,{children:[I.map(($,L)=>p.cloneElement($,{key:L,touchRippleRef:R(L),onClick:O(L,$.props.onClick),tabIndex:l===L?o:-1})),T.length>0&&g&&v.jsx(x.slots.baseIconButton,E({ref:m,id:g,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?b:void 0,role:"menuitem",size:"small",onClick:k,touchRippleRef:R(g),tabIndex:l===I.length?o:-1},(_=x.slotProps)==null?void 0:_.baseIconButton,{children:v.jsx(x.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&v.jsx(Bj,{open:u,target:m.current,position:i,onClose:S,children:v.jsx(iS,{id:b,className:B.menuList,onKeyDown:D,"aria-labelledby":g,variant:"menu",autoFocusItem:!0,children:T.map(($,L)=>p.cloneElement($,{key:L,closeMenu:S}))})})]}))}const Ude=e=>v.jsx(Vde,E({},e)),ry="actions",Gde=E({},Bo,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Ude,getApplyQuickFilterFn:void 0}),ko=e=>e.rows,oy=ze(ko,e=>e.totalRowCount),Wde=ze(ko,e=>e.loading),Kde=ze(ko,e=>e.totalTopLevelRowCount),Fs=ze(ko,e=>e.dataRowIdToModelLookup),hg=ze(ko,e=>e.dataRowIdToIdLookup),Hn=ze(ko,e=>e.tree),qde=ze(ko,e=>e.groupsToFetch),Yde=ze(ko,e=>e.groupingName),G2=ze(ko,e=>e.treeDepths),_u=xt(ko,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),lh=ze(ko,e=>e.dataRowIds),Xde=ze(ko,e=>e==null?void 0:e.additionalRowGroups),bl=xt(Xde,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),Qde=ze(bl,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),On="auto-generated-group-node-root",_c=Symbol("mui.id_autogenerated"),Jde=()=>({type:"group",id:On,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Zde(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` +`))}const iy=(e,t,n)=>{const r=t?t(e):e.id;return Zde(r,e,n),r},zh=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},s={};for(let a=0;a{const n=e[On];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Hj=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const s=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup,previousGroupsToFetch:i}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},E({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:zj({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},uu=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,B1=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(u=>{const d=iy(u,t,"A row was provided without id when calling updateRows():");o.has(d)?o.set(d,E({},o.get(d),u)):o.set(d,u)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:E({},e.updates.idToActionLookup),groupKeys:r},s=E({},e.dataRowIdToModelLookup),a=E({},e.dataRowIdToIdLookup),l={insert:{},modify:{},remove:{}};o.forEach((u,d)=>{const f=i.idToActionLookup[d];if(u._action==="delete"){if(f==="remove"||!s[d])return;f!=null&&(l[f][d]=!0),i.actions.remove.push(d),delete s[d],delete a[d];return}const h=s[d];if(h){f==="remove"?(l.remove[d]=!0,i.actions.modify.push(d)):f==null&&i.actions.modify.push(d),s[d]=E({},h,u);return}f==="remove"?(l.remove[d]=!0,i.actions.insert.push(d)):f==null&&i.actions.insert.push(d),s[d]=u,a[d]=d});const c=Object.keys(l);for(let u=0;u0&&(i.actions[d]=i.actions[d].filter(h=>!f[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function efe(e){var o,i;const t=bl(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:n,bottom:r}}function Vj(e){return`var(--DataGrid-overlayHeight, ${2*_n(e.current.state).rowHeight}px)`}function K2(e,t,n){const r=[];return t.forEach(o=>{const i=iy(o,n,"A row was provided without id when calling updateRows():"),s=e.current.getRowNode(i);if((s==null?void 0:s.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,l=a.idLookup[i];l&&(a.idLookup[i]=E({},l,o))}else r.push(o)}),r}const Uj=(e,t,n)=>typeof e=="number"&&e>0?e:t,tfe="__tree_data_group__",Gj="__row_group_by_columns_group__",sy="__detail_panel_toggle__",nfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],rfe=e=>{const{classes:t}=e;return ye({root:["booleanCell"]},rt,t)};function ofe(e){const{value:t,rowNode:n}=e,r=xe(e,nfe),o=et(),i=Me(),s={classes:i.classes},a=rfe(s),c=ue(o,_u)>0&&n.type==="group"&&i.treeData===!1,u=p.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:v.jsx(u,E({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const ife=p.memo(ofe),sfe=e=>e.field!==Gj&&uu(e.rowNode)?"":v.jsx(ife,E({},e)),afe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],lfe=e=>{const{classes:t}=e;return ye({root:["editBooleanCell"]},rt,t)};function cfe(e){var w;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:s}=e,a=xe(e,afe),l=et(),c=p.useRef(null),u=yt(),[d,f]=p.useState(n),h=Me(),m={classes:h.classes},y=lfe(m),C=p.useCallback(async b=>{const g=b.target.checked;s&&await s(b,g),f(g),await l.current.setEditCellValue({id:t,field:r,value:g},b)},[l,r,t,s]);return p.useEffect(()=>{f(n)},[n]),ht(()=>{i&&c.current.focus()},[i]),v.jsx("label",E({htmlFor:u,className:ie(y.root,o)},a,{children:v.jsx(h.slots.baseCheckbox,E({id:u,inputRef:c,checked:!!d,onChange:C,size:"small"},(w=h.slotProps)==null?void 0:w.baseCheckbox))}))}const ufe=e=>v.jsx(cfe,E({},e)),dfe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Hh=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},ffe=ne("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function pfe(e){var x,P,I;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:s,label:a,variant:l="standard"}=e,c=xe(e,dfe),[u,d]=p.useState(Hh(t.value)),f=Me(),h=yt(),m=yt(),y=((x=f.slotProps)==null?void 0:x.baseSelect)||{},C=y.native??!1,w=((P=f.slotProps)==null?void 0:P.baseSelectOption)||{},b=p.useCallback(T=>{const M=Hh(T.target.value);d(M),n(E({},t,{value:M}))},[n,t]);p.useEffect(()=>{d(Hh(t.value))},[t.value]);const g=a??r.current.getLocaleText("filterPanelInputLabel");return v.jsxs(ffe,{children:[v.jsxs(f.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(f.slots.baseInputLabel,E({},(I=f.slotProps)==null?void 0:I.baseInputLabel,{id:h,shrink:!0,variant:l,children:g})),v.jsxs(f.slots.baseSelect,E({labelId:h,id:m,label:g,value:u===void 0?"":String(u),onChange:b,variant:l,notched:l==="outlined"?!0:void 0,native:C,displayEmpty:!0,inputProps:{ref:o,tabIndex:s}},c,y,{children:[v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"",children:r.current.getLocaleText("filterValueAny")})),v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"true",children:r.current.getLocaleText("filterValueTrue")})),v.jsx(f.slots.baseSelectOption,E({},w,{native:C,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const hfe=()=>[{value:"is",getApplyFilterFn:e=>{const t=Hh(e.value);return t===void 0?null:n=>!!n===t},InputComponent:pfe}],mfe=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),gfe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Wj=E({},Bo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:sfe,renderEditCell:ufe,sortComparator:Rj,valueFormatter:mfe,filterOperators:hfe(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>gfe(e)}),Kj=e=>e.sorting,hp=ze(Kj,e=>e.sortedRows),z1=xt(hp,Fs,Hn,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const s=n[o];return s&&uu(s)&&r.push({id:o,model:{[_c]:o}}),r},[])),eo=ze(Kj,e=>e.sortModel),vfe=xt(eo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ay=e=>e.filter,kn=ze(ay,e=>e.filterModel);ze(kn,e=>e.quickFilterValues);const yfe=e=>e.visibleRowsLookup,Au=ze(ay,e=>e.filteredRowsLookup);ze(ay,e=>e.filteredChildrenCountLookup);ze(ay,e=>e.filteredDescendantCountLookup);const pa=xt(yfe,z1,(e,t)=>t.filter(n=>e[n.id]!==!1)),Ac=xt(pa,e=>e.map(t=>t.id)),qj=xt(Au,z1,(e,t)=>t.filter(n=>e[n.id]!==!1)),Yj=xt(qj,e=>e.map(t=>t.id));xt(Ac,Hn,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const s=t[i];return n[s.depth]||(n[s.depth]=0),s.depth>r&&(n[s.depth]=0),r=s.depth,n[s.depth]+=1,o[i]=n[s.depth],o},{})});const Xj=xt(pa,Hn,_u,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),H1=ze(pa,e=>e.length),V1=ze(Xj,e=>e.length),bfe=ze(qj,e=>e.length);ze(bfe,V1,(e,t)=>e-t);const wfe=xt(kn,cs,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var s,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((s=o==null?void 0:o.filterOperators)==null?void 0:s.length)===0)return!1;const i=o.filterOperators.find(l=>l.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),Cfe=xt(wfe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),to=e=>e.rowSelection,xfe=ze(to,e=>e.length),Sfe=xt(to,Fs,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Ki=xt(to,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function Qj(e,t){var l;const n=Hn(e),r=hp(e),o=Au(e),i=n[t];if(!i||i.type!=="group")return[];const s=[],a=r.findIndex(c=>c===t)+1;for(let c=a;ci.depth;c+=1){const u=r[c];o[u]!==!1&&e.current.isRowSelectable(u)&&s.push(u)}return s}function Pfe(e,t){return ze(Hn,hp,Au,Ki,(n,r,o,i)=>{var u;const s=n[e];if(!s||s.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,l=0;const c=r.findIndex(d=>d===e)+1;for(let d=c;ds.depth;d+=1){const f=r[d];o[f]!==!1&&(a+=1,i[f]!==void 0&&(l+=1))}return{isIndeterminate:l>0&&(l0:i[e]===e}})}function U1(e){return e.signature===go.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const Ife=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==On;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},kfe=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(s=>s!==n&&t[s])},ch=(e,t,n,r,o,i)=>{const s=Au(e),a=Ki(e),l=new Set([]);if(!(!r&&!o)){if(r){const c=t[n];(c==null?void 0:c.type)==="group"&&Qj(e,n).forEach(d=>{i(d),l.add(d)})}if(o){const c=d=>{if(a[d]!==d&&!l.has(d))return!1;const f=t[d];return(f==null?void 0:f.type)!=="group"?!0:f.children.every(c)},u=d=>{const f=kfe(t,s,d);if(f.length===0||f.every(c)){const m=t[d].parent;m!=null&&m!==On&&e.current.isRowSelectable(m)&&(i(m),l.add(m),u(m))}};u(n)}}},q2=(e,t,n,r,o,i)=>{const s=Ki(e);if(!(!o&&!r)&&(o&&Ife(t,n).forEach(l=>{s[l]===l&&i(l)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&Qj(e,n).forEach(c=>{i(c)})}},Tfe=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Efe=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},rt,t)},Ofe=p.forwardRef(function(t,n){var M,k;const{field:r,id:o,rowNode:i,hasFocus:s,tabIndex:a}=t,l=xe(t,Tfe),c=et(),u=Me(),d={classes:u.classes},f=Efe(d),h=p.useRef(null),m=p.useRef(null),y=mt(h,n),C=S=>{const R={value:S.target.checked,id:o};c.current.publishEvent("rowSelectionCheckboxChange",R,S)};p.useLayoutEffect(()=>{if(a===0){const S=c.current.getCellElement(o,r);S&&(S.tabIndex=-1)}},[c,a,o,r]),p.useEffect(()=>{var S;if(s){const R=(S=h.current)==null?void 0:S.querySelector("input");R==null||R.focus({preventScroll:!0})}else m.current&&m.current.stop({})},[s]);const w=p.useCallback(S=>{S.key===" "&&S.stopPropagation()},[]),b=c.current.isRowSelectable(o),g=Pfe(o,((M=u.rowSelectionPropagation)==null?void 0:M.parents)??!1),{isIndeterminate:x,isChecked:P}=ue(c,g);if(i.type==="footer"||i.type==="pinnedRow")return null;const I=c.current.getLocaleText(P?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow"),T=u.indeterminateCheckboxAction==="select"?P&&!x:P;return v.jsx(u.slots.baseCheckbox,E({ref:y,tabIndex:a,checked:T,onChange:C,className:f.root,inputProps:{"aria-label":I},onKeyDown:w,indeterminate:x,disabled:!b,touchRippleRef:m},(k=u.slotProps)==null?void 0:k.baseCheckbox,l))}),Mfe=Ofe,ly=e=>e.focus,Or=ze(ly,e=>e.cell),Rfe=ze(ly,e=>e.columnHeader);ze(ly,e=>e.columnHeaderFilter);const mg=ze(ly,e=>e.columnGroupHeader),cy=e=>e.tabIndex,G1=ze(cy,e=>e.cell),Jj=ze(cy,e=>e.columnHeader);ze(cy,e=>e.columnHeaderFilter);const $fe=ze(cy,e=>e.columnGroupHeader);function Xe(e,t,n){const r=p.useRef(!0);ht(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function yn(e,t){const n=p.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Zj=(e,t,n,r,o)=>{const i=yn(e,"useNativeEventListener"),[s,a]=p.useState(!1),l=p.useRef(r),c=_j(t)?t():(t==null?void 0:t.current)??null,u=p.useCallback(d=>l.current&&l.current(d),[]);p.useEffect(()=>{l.current=r},[r]),p.useEffect(()=>{if(c&&n&&!s){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o),a(!0);const d=()=>{i.debug(`Clearing native ${n} event`),c.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",d)}},[c,u,n,s,i,o,e])},mp=e=>{const t=p.useRef(!0);t.current&&(t.current=!1,e())},_fe=()=>{},Afe=(e,t)=>{const n=p.useRef(!1);ht(()=>n.current||!e?_fe:(n.current=!0,t()),[n.current||e])},Dfe=100,Lfe=e=>e?0:100,e5=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,t5=e=>({page:0,pageSize:e?0:100}),Ffe=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),n5=(e,t)=>{if(t===go.DataGrid&&e>Dfe)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},jfe=-1,uy=e=>e.pagination,nr=ze(uy,e=>e.paginationModel),hc=ze(uy,e=>e.rowCount),Sd=ze(uy,e=>e.meta),Nfe=ze(nr,e=>e.page),Bfe=ze(nr,e=>e.pageSize),r5=ze(nr,hc,(e,t)=>e5(t,e.pageSize,e.page)),W1=xt(nr,Hn,_u,pa,Xj,(e,t,n,r,o)=>{var h;const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=e.pageSize===jfe?i-1:Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const l=o[s],c=a-s+1,u=r.findIndex(m=>m.id===l.id);let d=u,f=0;for(;d0)&&(d+=1),y===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),zfe=xt(pa,W1,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),o5=xt(Ac,W1,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Hfe=["field","colDef"],Vfe=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},rt,t)},Ufe=p.forwardRef(function(t,n){var M;const r=xe(t,Hfe),[,o]=p.useState(!1),i=et(),s=Me(),a={classes:s.classes},l=Vfe(a),c=ue(i,Jj),u=ue(i,to),d=ue(i,Ac),f=ue(i,o5),h=p.useMemo(()=>typeof s.isRowSelectable!="function"?u:u.filter(k=>i.current.getRow(k)?s.isRowSelectable(i.current.getRowParams(k)):!1),[i,s.isRowSelectable,u]),m=p.useMemo(()=>(!s.pagination||!s.checkboxSelectionVisibleOnly?d:f).reduce((S,R)=>(S[R]=!0,S),{}),[s.pagination,s.checkboxSelectionVisibleOnly,f,d]),y=p.useMemo(()=>h.filter(k=>m[k]).length,[h,m]),C=y>0&&y0,b=k=>{const S={value:k.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",S)},g=c!==null&&c.field===t.field?0:-1;p.useLayoutEffect(()=>{const k=i.current.getColumnHeaderElement(t.field);g===0&&k&&(k.tabIndex=-1)},[g,i,t.field]);const x=p.useCallback(k=>{k.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[i,w]),P=p.useCallback(()=>{o(k=>!k)},[]);p.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",P),[i,P]);const I=i.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows"),T=s.indeterminateCheckboxAction==="select"?w&&!C:w;return v.jsx(s.slots.baseCheckbox,E({ref:n,indeterminate:C,checked:T,onChange:b,className:l.root,inputProps:{"aria-label":I},tabIndex:g,onKeyDown:x,disabled:!U1(s)},(M=s.slotProps)==null?void 0:M.baseCheckbox,r))}),Ei="__check__",Du=E({},Wj,{type:"custom",field:Ei,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=Ki(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>v.jsx(Ufe,E({},e)),renderCell:e=>v.jsx(Mfe,E({},e))}),Gfe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Y2(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function Fl(e){var g;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:s,clearButton:a,tabIndex:l,disabled:c}=e,u=xe(e,Gfe),d=uo(),[f,h]=p.useState(()=>Y2(t.value,r)),[m,y]=p.useState(!1),C=yt(),w=Me(),b=p.useCallback(x=>{d.clear();const P=x.target.value;h(P),y(!0),d.start(w.filterDebounceMs,()=>{const I=new Date(P);n(E({},t,{value:Number.isNaN(I.getTime())?void 0:I})),y(!1)})},[n,t,w.filterDebounceMs,d]);return p.useEffect(()=>{const x=Y2(t.value,r);h(x)},[t.value,r]),v.jsx(w.slots.baseTextField,E({fullWidth:!0,id:C,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f,onChange:b,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:E({},m||a?{endAdornment:m?v.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:c},s,{inputProps:E({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:l},s==null?void 0:s.inputProps)})},u,(g=w.slotProps)==null?void 0:g.baseTextField))}function jl(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return s=>{if(!s)return!1;if(r)return t(s.getTime(),i);const a=new Date(s);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const i5=e=>[{value:"is",getApplyFilterFn:t=>jl(t,(n,r)=>n===r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>jl(t,(n,r)=>n!==r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>jl(t,(n,r)=>n>r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>jl(t,(n,r)=>n>=r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>jl(t,(n,r)=>njl(t,(n,r)=>n<=r,e),InputComponent:Fl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],Wfe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Kfe=ne(Tu)({fontSize:"inherit"}),qfe=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},rt,t)};function Yfe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,l=xe(e,Wfe),c=o.type==="dateTime",u=et(),d=p.useRef(),f=p.useMemo(()=>{let x;n==null?x=null:n instanceof Date?x=n:x=new Date((n??"").toString());let P;return x==null||Number.isNaN(x.getTime())?P="":P=new Date(x.getTime()-x.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:x,formatted:P}},[n,c]),[h,m]=p.useState(f),C={classes:Me().classes},w=qfe(C),b=p.useCallback(x=>{if(x==="")return null;const[P,I]=x.split("T"),[T,M,k]=P.split("-"),S=new Date;if(S.setFullYear(Number(T),Number(M)-1,Number(k)),S.setHours(0,0,0,0),I){const[R,O]=I.split(":");S.setHours(Number(R),Number(O),0,0)}return S},[]),g=p.useCallback(async x=>{const P=x.target.value,I=b(P);a&&await a(x,I),m({parsed:I,formatted:P}),u.current.setEditCellValue({id:t,field:r,value:I},x)},[u,r,t,a,b]);return p.useEffect(()=>{m(x=>{var P,I;return f.parsed!==x.parsed&&((P=f.parsed)==null?void 0:P.getTime())!==((I=x.parsed)==null?void 0:I.getTime())?f:x})},[f]),ht(()=>{i&&d.current.focus()},[i]),v.jsx(Kfe,E({inputRef:d,fullWidth:!0,className:w.root,type:c?"datetime-local":"date",inputProps:E({max:c?"9999-12-31T23:59":"9999-12-31"},s),value:h.formatted,onChange:g},l))}const s5=e=>v.jsx(Yfe,E({},e));function a5({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` +`))}const Xfe=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return a5({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},Qfe=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return a5({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},Jfe=E({},Bo,{type:"date",sortComparator:$j,valueFormatter:Xfe,filterOperators:i5(),renderEditCell:s5,pastedValueParser:e=>new Date(e)}),Zfe=E({},Bo,{type:"dateTime",sortComparator:$j,valueFormatter:Qfe,filterOperators:i5(!0),renderEditCell:s5,pastedValueParser:e=>new Date(e)}),Ps=e=>e==null?null:Number(e),epe=e=>e==null||Number.isNaN(e)||e===""?null:t=>Ps(t)===Ps(e),tpe=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ps(t)===e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ps(t)!==e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ps(t)>e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ps(t)>=e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ps(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ps(t)<=e.value,InputComponent:ao,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Dj,InputComponentProps:{type:"number"}}],npe=E({},Bo,{type:"number",align:"right",headerAlign:"right",sortComparator:Rj,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Sde(e)?e.toLocaleString():e||"",filterOperators:tpe(),getApplyQuickFilterFn:epe});function du(e){return(e==null?void 0:e.type)==="singleSelect"}function ol(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(E({field:e.field},t)):e.valueOptions}function gg(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const rpe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],ope=["MenuProps"];function ipe(e){return!!e.key}function spe(e){var O,A;const t=Me(),{id:n,value:r,field:o,row:i,colDef:s,hasFocus:a,error:l,onValueChange:c,initialOpen:u=t.editMode===yi.Cell}=e,d=xe(e,rpe),f=et(),h=p.useRef(),m=p.useRef(),[y,C]=p.useState(u),b=(((O=t.slotProps)==null?void 0:O.baseSelect)||{}).native??!1,g=((A=t.slotProps)==null?void 0:A.baseSelect)||{},{MenuProps:x}=g,P=xe(g,ope);if(ht(()=>{var D;a&&((D=m.current)==null||D.focus())},[a]),!du(s))return null;const I=ol(s,{id:n,row:i});if(!I)return null;const T=s.getOptionValue,M=s.getOptionLabel,k=async D=>{if(!du(s)||!I)return;C(!1);const _=D.target,$=gg(_.value,I,T);c&&await c(D,$),await f.current.setEditCellValue({id:n,field:o,value:$},D)},S=(D,_)=>{if(t.editMode===yi.Row){C(!1);return}if(_==="backdropClick"||D.key==="Escape"){const $=f.current.getCellParams(n,o);f.current.publishEvent("cellEditStop",E({},$,{reason:D.key==="Escape"?$o.escapeKeyDown:$o.cellFocusOut}))}},R=D=>{ipe(D)&&D.key==="Enter"||C(!0)};return!I||!s?null:v.jsx(t.slots.baseSelect,E({ref:h,inputRef:m,value:r,onChange:k,open:y,onOpen:R,MenuProps:E({onClose:S},x),error:l,native:b,fullWidth:!0},d,P,{children:I.map(D=>{var $;const _=T(D);return p.createElement(t.slots.baseSelectOption,E({},(($=t.slotProps)==null?void 0:$.baseSelectOption)||{},{native:b,key:_,value:_}),M(D))})}))}const ape=e=>v.jsx(spe,E({},e)),lpe=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],cpe=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...ol(e)||[]].map(a=>{const l=r(a);let c=n(a);return c===""&&(c=" "),p.createElement(t,E({},i,{native:o,key:l,value:l}),c)}),upe=ne("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function X2(e){var T,M,k,S,R;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:s,tabIndex:a,label:l,variant:c="standard",clearButton:u}=e,d=xe(e,lpe),f=t.value??"",h=yt(),m=yt(),y=Me(),C=((M=(T=y.slotProps)==null?void 0:T.baseSelect)==null?void 0:M.native)??!1;let w=null;if(t.field){const O=o.current.getColumn(t.field);du(O)&&(w=O)}const b=w==null?void 0:w.getOptionValue,g=w==null?void 0:w.getOptionLabel,x=p.useMemo(()=>ol(w),[w]),P=p.useCallback(O=>{let A=O.target.value;A=gg(A,x,b),n(E({},t,{value:A}))},[x,b,n,t]);if(!du(w))return null;const I=l??o.current.getLocaleText("filterPanelInputLabel");return v.jsxs(upe,{children:[v.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(y.slots.baseInputLabel,E({},(k=y.slotProps)==null?void 0:k.baseInputLabel,{id:m,htmlFor:h,shrink:!0,variant:c,children:I})),v.jsx(y.slots.baseSelect,E({id:h,label:I,labelId:m,value:f,onChange:P,variant:c,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:s??o.current.getLocaleText("filterPanelInputPlaceholder")},native:C,notched:c==="outlined"?!0:void 0},d,(S=y.slotProps)==null?void 0:S.baseSelect,{children:cpe({column:w,OptionComponent:y.slots.baseSelectOption,getOptionLabel:g,getOptionValue:b,isSelectNative:C,baseSelectOptionProps:(R=y.slotProps)==null?void 0:R.baseSelectOption})}))]}),u]})}const dpe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],fpe=["key"],ppe=tF();function hpe(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:l,variant:c="standard"}=e,u=xe(e,dpe),d={color:i,error:s,helperText:a,size:l,variant:c},f=yt(),h=Me();let m=null;if(t.field){const P=r.current.getColumn(t.field);du(P)&&(m=P)}const y=m==null?void 0:m.getOptionValue,C=m==null?void 0:m.getOptionLabel,w=p.useCallback((P,I)=>y(P)===y(I),[y]),b=p.useMemo(()=>ol(m)||[],[m]),g=p.useMemo(()=>Array.isArray(t.value)?t.value.reduce((P,I)=>{const T=b.find(M=>y(M)===I);return T!=null&&P.push(T),P},[]):[],[y,t.value,b]),x=p.useCallback((P,I)=>{n(E({},t,{value:I.map(y)}))},[n,t,y]);return v.jsx(fF,E({multiple:!0,options:b,isOptionEqualToValue:w,filterOptions:ppe,id:f,value:g,onChange:x,getOptionLabel:C,renderTags:(P,I)=>P.map((T,M)=>{const k=I({index:M}),{key:S}=k,R=xe(k,fpe);return v.jsx(h.slots.baseChip,E({variant:"outlined",size:"small",label:C(T)},R),S)}),renderInput:P=>{var I;return v.jsx(h.slots.baseTextField,E({},P,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},P.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},d,(I=h.slotProps)==null?void 0:I.baseTextField))}},u))}const Nl=e=>e==null||!j1(e)?e:e.value,mpe=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Nl(t)===Nl(e.value),InputComponent:X2},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Nl(t)!==Nl(e.value),InputComponent:X2},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Nl);return n=>t.includes(Nl(n))},InputComponent:hpe}],gpe=e=>typeof e[0]=="object",vpe=e=>j1(e)?e.value:e,ype=e=>j1(e)?e.label:String(e),bpe=E({},Bo,{type:"singleSelect",getOptionLabel:ype,getOptionValue:vpe,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!du(n))return"";const i=ol(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!gpe(i))return n.getOptionLabel(e);const s=i.find(a=>n.getOptionValue(a)===e);return s?n.getOptionLabel(s):""},renderEditCell:ape,filterOperators:mpe(),pastedValueParser:(e,t,n)=>{const r=n,o=ol(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),wpe="string",Cpe=()=>({string:Bo,number:npe,date:Jfe,dateTime:Zfe,boolean:Wj,singleSelect:bpe,[ry]:Gde,custom:Bo}),K1=e=>e.headerFiltering,xpe=ze(K1,e=>(e==null?void 0:e.enabled)??!1),Spe=ze(K1,e=>e.editing),Ppe=ze(K1,e=>e.menuOpen),dy=e=>e.columnGrouping,l5=xt(dy,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),c5=xt(dy,e=>(e==null?void 0:e.lookup)??{}),Ipe=xt(dy,e=>(e==null?void 0:e.headerStructure)??[]),gp=ze(dy,e=>(e==null?void 0:e.maxDepth)??0),u5=["maxWidth","minWidth","width","flex"],Zb=Cpe();function kpe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const a=o.all[s];a&&a.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function i(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let a=e,l=t,c=0;o.frozenFields.forEach(u=>{a-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;ud.maxWidth&&(c+=d.maxWidth-h,h=d.maxWidth,s.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:h,flex:d.flex}}c<0?Object.keys(s.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(s.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),i()}return i(),o.all}const CC=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=fi(c.width||Bo.width,c.minWidth||Bo.minWidth,c.maxWidth||Bo.maxWidth),o+=u),c.computedWidth!==u&&(c=E({},c,{computedWidth:u})),d&&i.push(c),n[l]=c});const s=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(s-o,0);if(r>0&&s>0){const l=kpe({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return E({},e,{lookup:n})},Tpe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let u=0;u!i[u])],l=E({},e.lookup);for(let u=0;u{f[h]=m===-1?1/0:m}),l[d]=f}return E({},e,{orderedFields:a,lookup:l})};function Q2(e){let t=Zb[wpe];return e&&Zb[e]&&(t=Zb[e]),t}const Wl=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=fo(e),keepOnlyColumnsToUpsert:o=!1})=>{var u,d;const i=!e.current.state.columns;let s;if(i)s={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=di(e.current.state);s={orderedFields:o?[]:[...f.orderedFields],lookup:E({},f.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(s.lookup).reduce((f,h)=>E({},f,{[h]:!1}),{})),t.forEach(f=>{const{field:h}=f;a[h]=!0;let m=s.lookup[h];m==null?(m=E({},Q2(f.type),{field:h,hasBeenResized:!1}),s.orderedFields.push(h)):o&&s.orderedFields.push(h),m&&m.type!==f.type&&(m=E({},Q2(f.type),{field:h}));let y=m.hasBeenResized;u5.forEach(C=>{f[C]!==void 0&&(y=!0,f[C]===-1&&(f[C]=1/0))}),s.lookup[h]=Uc(m,E({},f,{hasBeenResized:y}))}),o&&!i&&Object.keys(s.lookup).forEach(f=>{a[f]||delete s.lookup[f]});const l=e.current.unstable_applyPipeProcessors("hydrateColumns",s),c=Tpe(l,n);return CC(c,((d=(u=e.current).getRootDimensions)==null?void 0:d.call(u))??void 0)};function Epe({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return ye(r,rt,n)},Rpe=Ct("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${B["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${B["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${B["scrollArea--left"]}`]:{left:0},[`&.${B["scrollArea--right"]}`]:{right:0}}));function $pe(e){const{scrollDirection:t}=e,n=p.useRef(null),r=et(),o=uo(),i=ue(r,fp),s=ue(r,L1),a=ue(r,_n),l=p.useRef({left:0,top:0}),c=()=>{if(t==="left")return l.current.left>0;if(t==="right"){const M=s-a.viewportInnerSize.width;return l.current.left{l.current=M,h(c)},P=nt(M=>{let k;if(M.preventDefault(),t==="left")k=M.clientX-n.current.getBoundingClientRect().right;else if(t==="right")k=Math.max(1,M.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");k=(k-J2)*Ope+J2,o.start(0,()=>{r.current.scroll({left:l.current.left+k,top:l.current.top})})}),I=nt(()=>{d(!0)}),T=nt(()=>{d(!1)});return Ie(r,"scrollPositionChange",x),Ie(r,"columnHeaderDragStart",I),Ie(r,"columnHeaderDragEnd",T),!u||!f?null:v.jsx(Rpe,{ref:n,className:ie(C.root),ownerState:y,onDragOver:P,style:g})}const Z2=da($pe),_pe=()=>{};function Ape(e,t,n){const r=p.useRef(null);r.current=t,ht(()=>{if(typeof ResizeObserver>"u")return _pe;const o=e.current,i=new ResizeObserver(s=>{r.current(s)});return o&&i.observe(o),()=>{i.disconnect()}},[e,n])}const d5=p.createContext(void 0);function To(){const e=p.useContext(d5);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` +`));return e}const Dc=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=W1(e),n=zfe(e)):(n=pa(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},ha=(e,t)=>{const n=Dc(e,t);return p.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Dpe=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",Lpe=Dpe.includes("firefox"),Lu=e=>e.rowsMeta,fy=e=>e.virtualization;ze(fy,e=>e.enabled);const Y1=ze(fy,e=>e.enabledForColumns),Fpe=ze(fy,e=>e.enabledForRows),py=ze(fy,e=>e.renderContext),jpe=xt(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),f5={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Npe=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return E({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:f5}})};function Bpe(e,t){const n=i=>{e.current.setState(s=>E({},s,{virtualization:E({},s.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Xe(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(s=>E({},s,{virtualization:E({},s.virtualization,{enabledForColumns:i})}))}},"public"),p.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const X1=e=>e.rowSpanning,p5=ze(X1,e=>e.hiddenCells),zpe=ze(X1,e=>e.spannedCells),Hpe=ze(X1,e=>e.hiddenCellOriginMap),fu=e=>e.listViewColumn,e0=50;var on=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(on||{});const eO={top:0,left:0},Vpe=Object.freeze(new Map),Upe=(e,t,n,r,o)=>({direction:on.NONE,buffer:m5(e,on.NONE,t,n,r,o)});let xC=!1;try{typeof window<"u"&&(xC=/jsdom/.test(window.navigator.userAgent))}catch{}const Gpe=()=>{const e=To(),t=Me(),{unstable_listView:n}=t,r=ue(e,()=>n?[fu(e.current.state)]:mn(e)),o=ue(e,Fpe)&&!xC,i=ue(e,Y1)&&!xC,s=ue(e,_n),a=s.viewportOuterSize,l=ue(e,bl),c=ue(e,pp),u=n?{left:[],right:[]}:c,d=l.bottom.length>0,[f,h]=p.useState(Vpe),m=Ir(),y=ue(e,Or),C=ue(e,G1),w=ue(e,Lu),b=ue(e,Ki),g=ha(e,t),x=e.current.rootElementRef,P=e.current.mainElementRef,I=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,M=e.current.virtualScrollbarHorizontalRef,k=s.contentSize.height,S=s.columnsTotalWidth,R=ue(e,ude);Ape(P,()=>e.current.resize());const O=p.useRef(eO),A=p.useRef(eO),D=p.useRef(f5),_=ue(e,py),$=uo(),L=p.useRef(void 0),F=Vo(()=>Upe(m,t.rowBufferPx,t.columnBufferPx,s.rowHeight*15,e0*6)).current,j={rowIndex:p.useMemo(()=>y?g.rows.findIndex(U=>U.id===y.id):-1,[y,g.rows]),columnIndex:p.useMemo(()=>y?r.findIndex(U=>U.field===y.field):-1,[y,r])},N=p.useCallback(U=>{if(qpe(U,e.current.state.virtualization.renderContext))return;const J=U.firstRowIndex!==D.current.firstRowIndex||U.lastRowIndex!==D.current.lastRowIndex;e.current.setState(X=>E({},X,{virtualization:E({},X.virtualization,{renderContext:U})})),s.isReady&&J&&(D.current=U,e.current.publishEvent("renderedRowsIntervalChange",U)),A.current=O.current},[e,s.isReady]),z=nt(()=>{const U={top:I.current.scrollTop,left:I.current.scrollLeft},J=U.left-O.current.left,X=U.top-O.current.top,ae=J!==0||X!==0;O.current=U;const fe=ae?Ype(J,X):on.NONE,me=Math.abs(O.current.top-A.current.top),he=Math.abs(O.current.left-A.current.left),je=me>=s.rowHeight||he>=e0,ge=F.direction!==fe;if(!(je||ge))return _;if(ge)switch(fe){case on.NONE:case on.LEFT:case on.RIGHT:L.current=void 0;break;default:L.current=_;break}F.direction=fe,F.buffer=m5(m,fe,t.rowBufferPx,t.columnBufferPx,s.rowHeight*15,e0*6);const Ve=t0(e,t,o,i),De=n0(Ve,O.current,F);return Bg.flushSync(()=>{N(De)}),$.start(1e3,z),De}),V=()=>{const U=t0(e,t,o,i),J=n0(U,O.current,F);L.current=void 0,N(J)},K=nt(U=>{const{scrollTop:J,scrollLeft:X}=U.currentTarget;if(J<0||!m&&X<0||m&&X>0)return;const ae=z();e.current.publishEvent("scrollPositionChange",{top:J,left:X,renderContext:ae})}),H=nt(U=>{e.current.publishEvent("virtualScrollerWheel",{},U)}),G=nt(U=>{e.current.publishEvent("virtualScrollerTouchMove",{},U)}),q=(U={})=>{var te;if(!U.rows&&!g.range)return[];const J=U.renderContext??_,X=!d&&U.position===void 0||d&&U.position==="bottom",ae=U.position!==void 0;let fe;switch(U.position){case"top":fe=0;break;case"bottom":fe=l.top.length+g.rows.length;break;case void 0:fe=l.top.length;break}const me=U.rows??g.rows,he=J.firstRowIndex,je=Math.min(J.lastRowIndex,me.length),ge=U.rows?j2(0,U.rows.length):j2(he,je);let Ae=-1;!ae&&j.rowIndex!==-1&&(j.rowIndex=je&&(Ae=j.rowIndex,ge.push(Ae)));const Ve=[],De=(te=t.slotProps)==null?void 0:te.row,Q=fa(e);return ge.forEach(oe=>{var Yn,Tr,cr;const{id:de,model:ve}=me[oe],Se=(((Yn=g==null?void 0:g.range)==null?void 0:Yn.firstRowIndex)||0)+fe+oe;if(R){const Xn=u.left.length,Yr=r.length-u.right.length;e.current.calculateColSpan({rowId:de,minFirstColumn:Xn,maxLastColumn:Yr,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:de,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const Ee=(y==null?void 0:y.id)===de,Oe=e.current.rowHasAutoHeight(de)?"auto":e.current.unstable_getRowHeight(de);let Ce;b[de]==null?Ce=!1:Ce=e.current.isRowSelectable(de);let we=!1;U.position===void 0&&(we=oe===0);let Le=!1;const lt=oe===me.length-1;if(X)if(ae)Le=lt;else{const Xn=g.rows.length-1;oe===Xn&&(Le=!0)}const ke=oe===Ae;let Ke=null;C!==null&&C.id===de&&(Ke=e.current.getCellParams(de,C.field).cellMode==="view"?C.field:null);let gt=J;!ae&&L.current&&oe>=L.current.firstRowIndex&&oea.width,W=p.useMemo(()=>({overflowX:!ee||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[ee,t.autoHeight,n]),Z=p.useMemo(()=>{const U={width:ee?S:"auto",flexBasis:k,flexShrink:0};return t.autoHeight&&g.rows.length===0&&(U.flexBasis=Vj(e)),U},[e,S,k,ee,t.autoHeight,g.rows.length]);return p.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,Z]),ht(()=>{e.current.resize()},[e,w.currentPageTotalHeight]),ht(()=>{i&&(I.current.scrollLeft=0),o&&(I.current.scrollTop=0)},[i,o,x,I]),ht(()=>{n&&(I.current.scrollLeft=0)},[n,I]),Afe(a.width!==0,()=>{const U=t0(e,t,o,i),J=n0(U,O.current,F);N(J),e.current.publishEvent("scrollPositionChange",{top:O.current.top,left:O.current.left,renderContext:J})}),e.current.register("private",{updateRenderContext:V}),Ie(e,"columnsChange",V),Ie(e,"filteredRowsSet",V),Ie(e,"rowExpansionChange",V),{renderContext:_,setPanels:h,getRows:q,getContainerProps:()=>({ref:P}),getScrollerProps:()=>({ref:I,onScroll:K,onWheel:H,onTouchMove:G,style:W,role:"presentation",tabIndex:Lpe?-1:void 0}),getContentProps:()=>({style:Z,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:M,role:"presentation"})}};function t0(e,t,n,r){const o=_n(e.current.state),i=Dc(e,t),s=t.unstable_listView?[fu(e.current.state)]:mn(e),a=Hpe(e),l=e.current.state.rows.dataRowIds.at(-1),c=s.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:l!==void 0?e.current.unstable_getRowHeight(l):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:Lu(e.current.state),columnPositions:fa(e),rows:i.rows,range:i.range,pinnedColumns:pp(e),visibleColumns:s,hiddenCellsOriginMap:a,listView:t.unstable_listView??!1}}function n0(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,s=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(tO(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:tO(e,o+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,f]=SC({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let h=d;h=e.range.lastRowIndex);const i=fi(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?na(t,e.rowsMeta.positions,n):Kpe(t,e.rowsMeta.positions,i,n)}function Wpe(e,t,n){const[r,o]=SC({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,s]=SC({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=Epe({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:s}}function na(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),s=t[i];let a;if(n!=null&&n.atStart){const l=(i===t.length-1?n.lastPosition:t[i+1])-s;a=e-l=Math.abs(e)?t>0?on.DOWN:on.UP:e>0?on.RIGHT:on.LEFT}function m5(e,t,n,r,o,i){if(e)switch(t){case on.LEFT:t=on.RIGHT;break;case on.RIGHT:t=on.LEFT;break}switch(t){case on.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case on.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case on.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case on.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case on.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Xpe=()=>{var u,d;const e=et(),t=Me(),n=ue(e,oy),r=ue(e,H1),o=n===0,i=ue(e,Wde),s=!i&&o,a=!i&&n>0&&r===0;let l=null,c=null;return s&&(l="noRowsOverlay"),a&&(l="noResultsOverlay"),i&&(l="loadingOverlay",c=((d=(u=t.slotProps)==null?void 0:u.loadingOverlay)==null?void 0:d[o?"noRowsVariant":"variant"])||null),{overlayType:l,loadingOverlayVariant:c}},Qpe=Ct("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),Jpe=Ct("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Zpe=e=>{const{classes:t}=e;return ye({root:["overlayWrapper"],inner:["overlayWrapperInner"]},rt,t)};function ehe(e){const t=et(),n=Me(),r=ha(t,n),o=ue(t,_n);let i=o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||i===0)&&(i=Vj(t));const s=Zpe(E({},e,{classes:n.classes}));return v.jsx(Qpe,E({className:ie(s.root)},e,{children:v.jsx(Jpe,E({className:ie(s.inner),style:{height:i,width:o.viewportOuterSize.width}},e))}))}function the(e){var i,s;const{overlayType:t}=e,n=Me();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(s=n.slotProps)==null?void 0:s[t];return v.jsx(ehe,E({},e,{children:v.jsx(r,E({},o))}))}const Vh=e=>e.columnMenu;function nhe(){var C;const e=To(),t=Me(),n=ue(e,mn),r=ue(e,Cfe),o=ue(e,vfe),i=ue(e,Jj),s=ue(e,G1),a=ue(e,$fe),l=ue(e,Rfe),c=ue(e,mg),u=ue(e,gp),d=ue(e,Vh),f=ue(e,fo),h=ue(e,Ipe),m=!(a===null&&i===null&&s===null),y=e.current.columnHeadersContainerRef;return v.jsx(t.slots.columnHeaders,E({ref:y,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m},(C=t.slotProps)==null?void 0:C.columnHeaders))}const rhe=da(nhe),g5=p.createContext(void 0),v5=()=>{const e=p.useContext(g5);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` +`));return e},ohe=Ct("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),ihe=Ct("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),she=p.forwardRef((e,t)=>{const n=Me(),o=v5().hooks.useGridAriaAttributes();return v.jsxs(ihe,E({ref:t,ownerState:n,className:e.className,tabIndex:-1},o,{children:[v.jsx(ohe,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),ahe=()=>ye({root:["topContainer"]},rt,{}),lhe=Ct("div")({position:"sticky",zIndex:4,top:0});function che(e){const t=ahe();return v.jsx(lhe,E({},e,{className:ie(t.root,B["container--top"]),role:"presentation"}))}const uhe=()=>ye({root:["bottomContainer"]},rt,{}),dhe=Ct("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function fhe(e){const t=uhe();return v.jsx(dhe,E({},e,{className:ie(t.root,B["container--bottom"]),role:"presentation"}))}const phe=(e,t)=>{const{classes:n}=e;return ye({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},rt,n)},hhe=Ct("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),mhe=p.forwardRef(function(t,n){var s;const r=Me(),o=!r.autoHeight&&((s=t.style)==null?void 0:s.minHeight)==="auto",i=phe(r,o);return v.jsx(hhe,E({ref:n},t,{ownerState:r,className:ie(i.root,t.className)}))}),ghe=Ct("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),y5=Ct("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),vhe=Ct(y5)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),yhe=Ct(y5)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),bhe=Ct("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function whe({rowsLength:e}){const t=et(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:s,leftPinnedWidth:a,rightPinnedWidth:l}=ue(t,_n),c=o?s:0,u=n.height-r.height>0;return c===0&&!u?null:v.jsxs(ghe,{className:B.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&v.jsx(vhe,{className:B["filler--pinnedLeft"],style:{width:a}}),v.jsx(bhe,{}),l>0&&v.jsx(yhe,{className:B["filler--pinnedRight"],style:{width:l+(i?s:0)}})]})}const Che=da(whe),xhe=["className"],She=e=>{const{classes:t}=e;return ye({root:["virtualScrollerRenderZone"]},rt,t)},Phe=Ct("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Ihe=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,xhe),i=et(),s=Me(),a=She(s),l=ue(i,()=>{const c=py(i);return Lu(i.current.state).positions[c.firstRowIndex]??0});return v.jsx(Phe,E({ref:n,className:ie(a.root,r),ownerState:s,style:{transform:`translate3d(0, ${l}px, 0)`}},o))}),khe={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Cn=e=>e.editRows,Lf=e=>e.preferencePanel;var il=function(e){return e.filters="filters",e.columns="columns",e}(il||{});const The=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return ye(r,rt,n)},b5=Ct("div")({position:"absolute",display:"inline-block",zIndex:6,"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Ehe=Ct(b5)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),Ohe=Ct(b5)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),nO=p.forwardRef(function(t,n){const r=To(),o=Me(),i=p.useRef(!1),s=p.useRef(0),a=p.useRef(null),l=p.useRef(null),c=The(o,t.position),u=ue(r,_n),d=t.position==="vertical"?"height":"width",f=t.position==="vertical"?"scrollTop":"scrollLeft",h=t.position==="vertical"?u.hasScrollX:u.hasScrollY,m=u.minimumSize[d]+(h?u.scrollbarSize:0),C=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(m/u.viewportOuterSize[d]),w=nt(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;if(!P||x[f]===s.current)return;if(s.current=x[f],i.current){i.current=!1;return}i.current=!0;const I=x[f]/m;P[f]=I*C}),b=nt(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;if(!P)return;if(i.current){i.current=!1;return}i.current=!0;const I=P[f]/C;x[f]=I*m});fv(()=>{const x=r.current.virtualScrollerRef.current,P=a.current;return x.addEventListener("scroll",w,{capture:!0}),P.addEventListener("scroll",b,{capture:!0}),()=>{x.removeEventListener("scroll",w,{capture:!0}),P.removeEventListener("scroll",b,{capture:!0})}}),p.useEffect(()=>{l.current.style.setProperty(d,`${C}px`)},[C,d]);const g=t.position==="vertical"?Ehe:Ohe;return v.jsx(g,{ref:mt(n,a),className:c.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",children:v.jsx("div",{ref:l,className:c.content})})}),Mhe=(e,t,n)=>{const{classes:r}=e,o={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight",n==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",t.hasScrollX&&"virtualScroller--hasScrollX"]};return ye(o,rt,r)},Rhe=Ct("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function $he(e){const t=et(),n=Me(),r=ue(t,_n),o=Xpe(),i=Mhe(n,r,o.loadingOverlayVariant),s=Gpe(),{getContainerProps:a,getScrollerProps:l,getContentProps:c,getRenderZoneProps:u,getScrollbarVerticalProps:d,getScrollbarHorizontalProps:f,getRows:h}=s,m=h();return v.jsxs(she,E({className:i.root},a(),{children:[v.jsx(Z2,{scrollDirection:"left"}),v.jsx(Z2,{scrollDirection:"right"}),v.jsxs(Rhe,E({className:i.scroller},l(),{ownerState:n,children:[v.jsxs(che,{children:[!n.unstable_listView&&v.jsx(rhe,{}),v.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:s})]}),v.jsx(the,E({},o)),v.jsx(mhe,E({},c(),{children:v.jsxs(Ihe,E({},u(),{children:[m,v.jsx(n.slots.detailPanels,{virtualScroller:s})]}))})),v.jsx(Che,{rowsLength:m.length}),v.jsx(fhe,{children:v.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:s})})]})),r.hasScrollY&&v.jsx(nO,E({position:"vertical"},d())),r.hasScrollX&&!n.unstable_listView&&v.jsx(nO,E({position:"horizontal"},f())),e.children]}))}function _he(){var t;const e=Me();return e.hideFooter?null:v.jsx(e.slots.footer,E({},(t=e.slotProps)==null?void 0:t.footer))}let r0;function Ahe(){return r0===void 0&&document.createElement("div").focus({get preventScroll(){return r0=!0,!1}}),r0}function Dhe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function vg(e,t){return e.closest(`.${t}`)}function us(e){return e.replace(/["\\]/g,"\\$&")}function Lhe(e,t){return e.querySelector(`[role="columnheader"][data-field="${us(t)}"]`)}function w5(e){return`.${B.row}[data-id="${us(String(e))}"]`}function Fhe(e,t){return e.querySelector(w5(t))}function jhe(e,{id:t,field:n}){const r=w5(t),o=`.${B.cell}[data-field="${us(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function vp(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Nhe(e){return e.getAttribute("data-field")}function Bhe(e,t){return e.querySelector(`[data-field="${us(t)}"]`)}function zhe(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function Hhe(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${us(t)}-|"]`)??[])}function Vhe(e,t){var s;if(!vg(e,B.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(s=t.virtualScrollerRef)!=null&&s.current?(S5(t).forEach(a=>{const l=a.getAttribute("data-id");if(!l)return;let c=o;const u=t.unstable_getCellColSpanInfo(l,o);u&&u.spannedByColSpan&&(c=u.leftVisibleCellIndex);const d=a.querySelector(`[data-colindex="${c}"]`);d&&i.push(d)}),i):[]}function rO(e,t){return e.rootElementRef.current.querySelector(`.${B[t]}`)}const C5=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return S5(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${B[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const l=Fu(a);l!==null&&r(l)&&o.push(a)})}),o};function Uhe(e,t,n){const r=Fu(t);return C5({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?or})}function Ghe(e,t,n){const r=Fu(t);return C5({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${B[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(s=>{const a=Fu(s);a!==null&&r(a)&&o.push(s)}),o};function Whe(e,t,n){const r=Fu(t);return x5({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?or})}function Khe(e,t,n){const r=Fu(t);return x5({api:e,position:n?"left":"right",colIndex:r,filterFn:o=>n?o>r:o div > [data-field="${us(t)}"][role="columnheader"]`)}function Yhe(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${us(t)}"][role="gridcell"]`))}function S5(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${B.row}`)}function Fu(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class Uh extends Error{}function Xhe(e,t){const n=p.useCallback(f=>({field:f,colDef:e.current.getColumn(f)}),[e]),r=p.useCallback(f=>{const h=e.current.getRow(f);if(!h)throw new Uh(`No row with id #${f} found`);return{id:f,columns:e.current.getAllColumns(),row:h}},[e]),o=p.useCallback((f,h)=>{const m=t.unstable_listView?fu(e.current.state):e.current.getColumn(h),y=e.current.getRow(f),C=e.current.getRowNode(f);if(!y||!C)throw new Uh(`No row with id #${f} found`);const w=y[h],b=m!=null&&m.valueGetter?m.valueGetter(w,y,m,e):w,g=Or(e),x=G1(e),P={id:f,field:h,row:y,rowNode:C,colDef:m,cellMode:e.current.getCellMode(f,h),hasFocus:g!==null&&g.field===h&&g.id===f,tabIndex:x&&x.field===h&&x.id===f?0:-1,value:b,formattedValue:b,isEditable:!1,api:{}};return m&&m.valueFormatter&&(P.formattedValue=m.valueFormatter(b,y,m,e)),P.isEditable=m&&e.current.isCellEditable(P),P},[e,t.unstable_listView]),i=p.useCallback((f,h)=>{const m=e.current.getColumn(h),y=e.current.getRow(f);if(!y)throw new Uh(`No row with id #${f} found`);return!m||!m.valueGetter?y[h]:m.valueGetter(y[m.field],y,m,e)},[e]),s=p.useCallback((f,h)=>{const m=h.field;if(!h||!h.valueGetter)return f[m];const y=f[h.field];return h.valueGetter(y,f,h,e)},[e]),a=p.useCallback((f,h)=>{const m=s(f,h);return!h||!h.valueFormatter?m:h.valueFormatter(m,f,h,e)},[e,s]),l=p.useCallback(f=>e.current.rootElementRef.current?Lhe(e.current.rootElementRef.current,f):null,[e]),c=p.useCallback(f=>e.current.rootElementRef.current?Fhe(e.current.rootElementRef.current,f):null,[e]),u=p.useCallback((f,h)=>e.current.rootElementRef.current?jhe(e.current.rootElementRef.current,{id:f,field:h}):null,[e]);Xe(e,{getCellValue:i,getCellParams:o,getCellElement:u,getRowValue:s,getRowFormattedValue:a,getRowParams:r,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:l},"public")}const hy=(e,t,n,r,o)=>{const i=t===n-1;return e===It.LEFT&&i?!0:r?e===It.LEFT?!0:e===It.RIGHT?!i:!i||o:!1},my=(e,t)=>e===It.RIGHT&&t===0,Qhe=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Jhe=["changeReason","unstable_updateValueOnRender"];let pr=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const P5={[pr.LEFT]:It.LEFT,[pr.RIGHT]:It.RIGHT,[pr.NONE]:void 0,[pr.VIRTUAL]:void 0},oO={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:pt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Zhe=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:s,isSelectionMode:a,classes:l}=e,c={root:["cell",`cell--text${re(t)}`,s&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===pr.LEFT&&"cell--pinnedLeft",o===pr.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return ye(c,rt,l)},eme=p.forwardRef(function(t,n){var we,Le,lt;const{column:r,rowId:o,editCellState:i,align:s,colIndex:a,width:l,className:c,style:u,colSpan:d,disableDragEvents:f,isNotVisible:h,pinnedOffset:m,pinnedPosition:y,sectionIndex:C,sectionLength:w,gridHasFiller:b,onClick:g,onDoubleClick:x,onMouseDown:P,onMouseUp:I,onMouseOver:T,onKeyDown:M,onKeyUp:k,onDragEnter:S,onDragOver:R}=t,O=xe(t,Qhe),A=et(),D=Me(),_=Ir(),$=r.field,L=ue(A,()=>{try{const pe=A.current.getCellParams(o,$);return pe.api=A.current,pe}catch(pe){if(pe instanceof Uh)return oO;throw pe}},Ij),F=ue(A,()=>A.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:$})),j=ue(A,p5),N=ue(A,zpe),{cellMode:z,hasFocus:V,isEditable:K=!1,value:H}=L,G=r.type==="actions"&&((we=r.getActions)==null?void 0:we.call(r,A.current.getRowParams(o)).some(pe=>!pe.props.disabled)),q=(z==="view"||!K)&&!G?L.tabIndex:-1,{classes:ee,getCellClassName:W}=D,U=[ue(A,()=>A.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:$}).filter(Boolean).join(" "))];r.cellClassName&&U.push(typeof r.cellClassName=="function"?r.cellClassName(L):r.cellClassName),r.display==="flex"&&U.push(B["cell--flex"]),W&&U.push(W(L));const J=L.formattedValue??H,X=p.useRef(null),ae=mt(n,X),fe=p.useRef(null),me=D.cellSelection??!1,he=P5[y],je=my(he,C),ge=hy(he,C,w,D.showCellVerticalBorder,b),Ae={align:s,showLeftBorder:je,showRightBorder:ge,isEditable:K,classes:D.classes,pinnedPosition:y,isSelected:F,isSelectionMode:me},Ve=Zhe(Ae),De=p.useCallback(pe=>ke=>{const Ke=A.current.getCellParams(o,$||"");A.current.publishEvent(pe,Ke,ke),I&&I(ke)},[A,$,I,o]),Q=p.useCallback(pe=>ke=>{const Ke=A.current.getCellParams(o,$||"");A.current.publishEvent(pe,Ke,ke),P&&P(ke)},[A,$,P,o]),te=p.useCallback((pe,ke)=>Ke=>{if(!A.current.getRow(o))return;const gt=A.current.getCellParams(o,$||"");A.current.publishEvent(pe,gt,Ke),ke&&ke(Ke)},[A,$,o]),oe=((Le=j[o])==null?void 0:Le[$])??!1,de=((lt=N[o])==null?void 0:lt[$])??1,ve=p.useMemo(()=>{if(h)return{padding:0,opacity:0,width:0,border:0};const pe=E({"--width":`${l}px`},u),ke=y===pr.LEFT,Ke=y===pr.RIGHT;if(ke||Ke){let gt=ke?"left":"right";_&&(gt=ke?"right":"left"),pe[gt]=m}return de>1&&(pe.height=`calc(var(--height) * ${de})`,pe.zIndex=5),pe},[l,h,u,m,y,_,de]);if(p.useEffect(()=>{if(!V||z===pt.Edit)return;const pe=Wt(A.current.rootElementRef.current);if(X.current&&!X.current.contains(pe.activeElement)){const ke=X.current.querySelector('[tabindex="0"]'),Ke=fe.current||ke||X.current;if(Ahe())Ke.focus({preventScroll:!0});else{const gt=A.current.getScrollPosition();Ke.focus(),A.current.scroll(gt)}}},[V,z,A]),oe)return v.jsx("div",{"data-colindex":a,role:"presentation",style:E({width:"var(--width)"},ve)});if(L===oO)return null;let Se=O.onFocus,Ee,Oe;if(i===null&&r.renderCell&&(Ee=r.renderCell(L)),i!==null&&r.renderEditCell){const pe=A.current.getRowWithUpdatedValues(o,r.field),ke=xe(i,Jhe),Ke=r.valueFormatter?r.valueFormatter(i.value,pe,r,A):L.formattedValue,gt=E({},L,{row:pe,formattedValue:Ke},ke);Ee=r.renderEditCell(gt),U.push(B["cell--editing"]),U.push(ee==null?void 0:ee["cell--editing"])}if(Ee===void 0){const pe=J==null?void 0:J.toString();Ee=pe,Oe=pe}p.isValidElement(Ee)&&G&&(Ee=p.cloneElement(Ee,{focusElementRef:fe}));const Ce=f?null:{onDragEnter:te("cellDragEnter",S),onDragOver:te("cellDragOver",R)};return v.jsx("div",E({ref:ae,className:ie(Ve.root,U,c),role:"gridcell","data-field":$,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":d,"aria-rowspan":de,style:ve,title:Oe,tabIndex:q,onClick:te("cellClick",g),onDoubleClick:te("cellDoubleClick",x),onMouseOver:te("cellMouseOver",T),onMouseDown:Q("cellMouseDown"),onMouseUp:De("cellMouseUp"),onKeyDown:te("cellKeyDown",M),onKeyUp:te("cellKeyUp",k)},Ce,O,{onFocus:Se,children:Ee}))}),tme=da(eme),nme=["field","type","align","width","height","empty","style","className"],iO="1.3em",rme="1.2em",sO=[40,80],ome={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},ime=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?re(t):"Left"}`,r&&"cellEmpty"]};return ye(o,rt,n)},sme=kde(12345);function ame(e){const{field:t,type:n,align:r,width:o,height:i,empty:s=!1,style:a,className:l}=e,c=xe(e,nme),d={classes:Me().classes,align:r,empty:s},f=ime(d),h=p.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:iO,height:iO};const[y,C]=n?ome[n]??sO:sO;return{variant:"text",width:`${Math.round(sme(y,C))}%`,height:rme}},[n]);return v.jsx("div",E({"data-field":t,className:ie(f.root,l),style:E({height:i,maxWidth:o,minWidth:o},a)},c,{children:!s&&v.jsx(tie,E({},h))}))}const lme=da(ame);function cme(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?dl(We(e.palette.divider,1),.88):ul(We(e.palette.divider,1),.68)}const aO={[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"}},ume=10,uh=-5,Bl=1,lO={width:3,rx:1.5,x:10.5},dme="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",fme=ne("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${B["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${B["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${B["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${B.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${B["root--disableUserSelection"]} .${B.cell}`]:t["root--disableUserSelection"]},{[`&.${B.autosizing}`]:t.autosizing},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.menuList}`]:t.menuList},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B.row}`]:t.row},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.withBorderColor}`]:t.withBorderColor},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${B.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var M,k;const t=To(),n=ue(t,_n),r=cme(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:((M=e.mixins.MuiDataGrid)==null?void 0:M.containerBackground)??e.palette.background.default,s=((k=e.mixins.MuiDataGrid)==null?void 0:k.pinnedBackground)??i,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:We(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,c=(e.vars||e).palette.action.hover,u=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`calc(${l} + ${u})`:l+u,f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${u})`:We(e.palette.primary.main,u),h=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:We(e.palette.primary.main,d),m=e.vars?mme:pme,y=S=>({[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{backgroundColor:S,"&.Mui-selected":{backgroundColor:m(S,f,u),"&:hover":{backgroundColor:m(S,f,d)}}}}),C=m(s,c,l),w=y(C),b=m(s,f,u),g=y(b),x=m(s,h,d),P=y(x),I={backgroundColor:f,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:f}}};return E({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":s,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",[`.${B.main} > *:first-child${dme}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${B.autoHeight}`]:{height:"auto"},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${B.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${B.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${B.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:We(e.palette.primary.main,.5)} ${Bl}px`,outlineOffset:Bl*-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${Bl}px`,outlineOffset:Bl*-1},[`& .${B.columnHeader}:focus, & .${B["columnHeader--withLeftBorder"]}, & .${B["columnHeader--withRightBorder"]}, & .${B["columnHeader--siblingFocused"]}, & .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--lastUnpinned"]}, & .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]} - `]:{[`& .${B.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${B["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${B["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] .${B["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}`]:{marginLeft:"auto"},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B["columnHeader--pinnedLeft"]}, & .${B["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${B.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:cme,color:r},[`& .${B.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${B.columnHeader}:hover`]:iO,[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeader}`]:iO,[`& .${B.columnHeader}:focus, - & .${B["columnHeader--siblingFocused"]}`]:{[`.${B["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${B["columnSeparator--sideLeft"]}`]:{left:uh},[`& .${B["columnSeparator--sideRight"]}`]:{right:uh},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideLeft"]}`]:{left:uh-.5},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideRight"]}`]:{right:uh-.5},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${B.iconSeparator} rect`]:sO},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${B.iconSeparator} rect`]:sO}},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.headerFilterRow}`]:{[`& .${B.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${B["row--borderBottom"]} .${B.columnHeader}, + `]:{[`& .${B.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${B["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${B["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] .${B["columnHeader--last"]}`]:{borderTopRightRadius:n.hasScrollX&&(!n.hasScrollY||n.scrollbarSize===0)?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}`]:{marginLeft:"auto"},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B["columnHeader--pinnedLeft"]}, & .${B["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${B.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:ume,color:r},[`& .${B.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${B.columnHeader}:hover`]:aO,[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeader}`]:aO,[`& .${B.columnHeader}:focus, + & .${B["columnHeader--siblingFocused"]}`]:{[`.${B["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${B["columnSeparator--sideLeft"]}`]:{left:uh},[`& .${B["columnSeparator--sideRight"]}`]:{right:uh},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideLeft"]}`]:{left:uh-.5},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideRight"]}`]:{right:uh-.5},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${B.iconSeparator} rect`]:lO},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${B.iconSeparator} rect`]:lO}},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.headerFilterRow}`]:{[`& .${B.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${B["row--borderBottom"]} .${B.columnHeader}, & .${B["row--borderBottom"]} .${B.filler}, - & .${B["row--borderBottom"]} .${B.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["row--borderBottom"]} .${B.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${B.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${B["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":I},[`& .${B["container--top"]}, & .${B["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${B.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":I},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderTopColor:"transparent"},[`& .${B["pinnedRows--top"]} :first-of-type`]:{[`& .${B.cell}, .${B.scrollbarFiller}`]:{borderTop:"none"}},[`&.${B["root--disableUserSelection"]} .${B.cell}`]:{userSelect:"none"},[`& .${B["row--dynamicHeight"]} > .${B.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${B.cellEmpty}`]:{padding:0,height:"unset"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${Bl}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:Bl*-1}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:r},[`& .${B["cell--withLeftBorder"]}, & .${B["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${B["cell--withRightBorder"]}, & .${B["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${B["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:b}},[`& .${B.virtualScrollerContent} .${B.row}`]:{"&:hover":w,"&.Mui-selected":g,"&.Mui-selected:hover":P},[`& .${B.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${B.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.treeDataGroupingCellLoadingContainer}, .${B.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${B.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${B["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${B.filler}`]:{flex:"1 0 auto"},[`& .${B["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${B.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${B["scrollbar--vertical"]}, & .${B.pinnedRows}, & .${B.virtualScroller} > .${B.filler}`]:{display:"none"}}})});function fme(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=pi(e),s=pi(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Xf({type:"rgb",values:a})}const pme=e=>`rgb(from ${e} r g b / 1)`;function hme(e,t,n){return`color-mix(in srgb,${e}, ${pme(t)} calc(${n} * 100%))`}const mme=["className"],gme=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${re(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return ve(i,rt,r)},vme=p.forwardRef(function(t,n){const r=Me(),{className:o}=t,i=xe(t,mme),s=To(),a=ue(s,pc),l=s.current.rootElementRef,c=ht(l,n),u=r,d=gme(u,a),[f,h]=p.useState(!1);return pt(()=>{h(!0)},[]),f?v.jsx(dme,E({ref:c,className:ie(d.root,o),ownerState:u},i)):null}),yme=["className"],bme=e=>{const{classes:t}=e;return ve({root:["footerContainer","withBorderColor"]},rt,t)},wme=Ct("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Cme=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,yme),i=Me(),s=bme(i);return v.jsx(wme,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),xme=["className"],Sme=e=>{const{classes:t}=e;return ve({root:["overlay"]},rt,t)},Pme=Ct("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),Y1=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,xme),i=Me(),s=Sme(i);return v.jsx(Pme,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),Ime=e=>{const{classes:t,open:n}=e;return ve({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},rt,t)},kme=p.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=et(),a=Me(),l=E({},e,{classes:a.classes}),c=Ime(l),u=p.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return v.jsx("div",{className:c.root,children:v.jsx(a.slots.baseTooltip,E({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=a.slotProps)==null?void 0:d.baseTooltip,{children:v.jsx(a.slots.baseIconButton,E({ref:i,tabIndex:-1,className:c.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=a.slotProps)==null?void 0:f.baseIconButton,{children:v.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function Tme({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const l=et(),c=l.current.getColumn(o),u=nt(d=>{d&&(d.stopPropagation(),s!=null&&s.contains(d.target))||l.current.hideColumnMenu()});return!s||!c?null:v.jsx(jj,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:i,target:s,onClose:u,onExited:a,children:v.jsx(n,E({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))})}const Eme=["className","aria-label"],Ome=e=>{const{classes:t}=e;return ve({root:["columnHeaderTitle"]},rt,t)},Mme=Ct("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),Rme=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Eme),i=Me(),s=Ome(i);return v.jsx(Mme,E({ref:n,className:ie(s.root,r),ownerState:i},o))});function $me(e){var l;const{label:t,description:n}=e,r=Me(),o=p.useRef(null),[i,s]=p.useState(""),a=p.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=Ahe(o.current);s(c?t:"")}},[n,t]);return v.jsx(r.slots.baseTooltip,E({title:n||i},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:v.jsx(Rme,{onMouseOver:a,ref:o,children:t})}))}const _me=["resizable","resizing","height","side"];var X1=function(e){return e.Left="left",e.Right="right",e}(X1||{});const Ame=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${re(o)}`],icon:["iconSeparator"]};return ve(i,rt,r)};function Dme(e){const{height:t,side:n=X1.Right}=e,r=xe(e,_me),o=Me(),i=E({},e,{side:n,classes:o.classes}),s=Ame(i),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return v.jsx("div",E({className:s.root,style:{minHeight:t}},r,{onClick:a,children:v.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Lme=p.memo(Dme),Fme=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],S5=p.forwardRef(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:s,sortDirection:a,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:h,width:m,columnMenuIconButton:y=null,columnMenu:C=null,columnTitleIconButtons:w=null,headerClassName:b,label:g,resizable:x,draggableContainerProps:P,columnHeaderSeparatorProps:I,style:T}=t,M=xe(t,Fme),k=To(),S=Me(),R=p.useRef(null),O=ht(R,n);let A="none";return a!=null&&(A=a==="asc"?"ascending":"descending"),p.useLayoutEffect(()=>{var _;const D=k.current.state.columnMenu;if(l&&!D.open){const L=R.current.querySelector('[tabindex="0"]')||R.current;L==null||L.focus(),(_=k.current.columnHeadersContainerRef)!=null&&_.current&&(k.current.columnHeadersContainerRef.current.scrollLeft=0)}},[k,l]),v.jsxs("div",E({ref:O,className:ie(r.root,b),style:E({},T,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":A},M,{children:[v.jsxs("div",E({className:r.draggableContainer,draggable:d,role:"presentation"},P,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:v.jsx($me,{label:g,description:h,columnWidth:m})}),w]}),y]})),v.jsx(Lme,E({resizable:!S.disableColumnResize&&!!x,resizing:s,height:i,side:u},I)),C]}))}),jme=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:s,filterItemsCounter:a,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=a!=null&&a>0,h=t.type==="number",m={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",h&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ve(m,rt,n)};function Nme(e){var Q,U,J;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:s,sortDirection:a,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:h,style:m,pinnedPosition:y,indexInSection:C,sectionLength:w,gridHasFiller:b}=e,g=To(),x=Me(),P=p.useRef(null),I=yt(),T=yt(),M=p.useRef(null),[k,S]=p.useState(n),R=p.useMemo(()=>!x.disableColumnReorder&&!f&&!t.disableReorder,[x.disableColumnReorder,f,t.disableReorder]);let O;t.renderHeader&&(O=t.renderHeader(g.current.getColumnHeaderParams(t.field)));const A=hy(y,C),D=py(y,C,w,x.showColumnVerticalBorder,b),_=E({},e,{classes:x.classes,showRightBorder:D,showLeftBorder:A}),$=jme(_),L=p.useCallback(Z=>le=>{vp(le)||g.current.publishEvent(Z,g.current.getColumnHeaderParams(t.field),le)},[g,t.field]),F=p.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),j=p.useMemo(()=>R?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[R,L]),N=p.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);p.useEffect(()=>{k||S(n)},[k,n]);const z=p.useCallback(()=>{S(!1)},[]),V=!x.disableColumnMenu&&!t.disableColumnMenu&&v.jsx(kme,{colDef:t,columnMenuId:I,columnMenuButtonId:T,open:k,iconButtonRef:M}),K=v.jsx(Tme,{columnMenuId:I,columnMenuButtonId:T,field:t.field,open:n,target:M.current,ContentComponent:x.slots.columnMenu,contentComponentProps:(Q=x.slotProps)==null?void 0:Q.columnMenu,onExited:z}),H=t.sortingOrder??x.sortingOrder,G=(t.sortable||a!=null)&&!t.hideSortIcons&&!x.disableColumnSorting,Y=v.jsxs(p.Fragment,{children:[!x.disableColumnFilter&&v.jsx(x.slots.columnHeaderFilterIconButton,E({field:t.field,counter:c},(U=x.slotProps)==null?void 0:U.columnHeaderFilterIconButton)),G&&v.jsx(x.slots.columnHeaderSortIcon,E({field:t.field,direction:a,index:l,sortingOrder:H,disabled:!t.sortable},(J=x.slotProps)==null?void 0:J.columnHeaderSortIcon))]});p.useLayoutEffect(()=>{var le;const Z=g.current.state.columnMenu;if(u&&!Z.open){const ye=P.current.querySelector('[tabindex="0"]')||P.current;ye==null||ye.focus(),(le=g.current.columnHeadersContainerRef)!=null&&le.current&&(g.current.columnHeadersContainerRef.current.scrollLeft=0)}},[g,u]);const ee=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,W=t.headerName??t.field;return v.jsx(S5,E({ref:P,classes:$,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:u,tabIndex:d,separatorSide:h,isDraggable:R,headerComponent:O,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:V,columnTitleIconButtons:Y,headerClassName:ie(ee,s&&B["columnHeader--last"]),label:W,resizable:!x.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:j,columnHeaderSeparatorProps:N,style:m},F))}const Bme=ua(Nme),zme=["className"],Hme=e=>{const{classes:t}=e;return ve({root:["iconButtonContainer"]},rt,t)},Vme=Ct("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),P5=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,zme),i=Me(),s=Hme(i);return v.jsx(Vme,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),Ume=["direction","index","sortingOrder","disabled"],Gme=e=>{const{classes:t}=e;return ve({icon:["sortIcon"]},rt,t)};function Wme(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?v.jsx(o,E({fontSize:"small",className:n},i)):null}function Kme(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=xe(e,Ume),s=et(),a=Me(),l=E({},e,{classes:a.classes}),c=Gme(l),u=Wme(a.slots,t,c.icon,r);if(!u)return null;const d=v.jsx(a.slots.baseIconButton,E({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=a.slotProps)==null?void 0:f.baseIconButton,i,{children:u}));return v.jsxs(P5,{children:[n!=null&&v.jsx(a.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const qme=p.memo(Kme),Yme=e=>{const{classes:t}=e;return ve({icon:["filterIcon"]},rt,t)};function Xme(e){var m,y;const{counter:t,field:n,onClick:r}=e,o=et(),i=Me(),s=E({},e,{classes:i.classes}),a=Yme(s),l=ue(o,Lf),c=yt(),u=yt(),d=p.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=Lf(o.current.state);w&&b===il.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),C)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,h=v.jsx(i.slots.baseIconButton,E({id:c,onClick:d,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?u:void 0},(m=i.slotProps)==null?void 0:m.baseIconButton,{children:v.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return v.jsx(i.slots.baseTooltip,E({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=i.slotProps)==null?void 0:y.baseTooltip,{children:v.jsxs(P5,{children:[t>1&&v.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:h}),t===1&&h]})}))}const aO=Te(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),lO=Te(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),cO=Te(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),uO=Te(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Qme=Te(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),dO=Te(v.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Jme=Te(v.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");Te(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Te(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Zme=Te(v.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),ege=Te(v.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),tge=Te(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),nge=Te(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),rge=Te(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),oge=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),r0=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fO=Te(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),ige=Te(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),sge=Te(v.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),pO=Te(v.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),age=Te(v.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),lge=Te(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),cge=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),uge=Te(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),dge=Te(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),fge=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Te(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const pge=Te(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function I5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const vg=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",hge=e=>!!e.key,mge=e=>e==="Tab"||e==="Escape";function k5(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function gge(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const vge=["hideMenu","colDef","id","labelledby","className","children","open"],yge=ne(rS)(()=>({minWidth:248})),bge=p.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:s,children:a,open:l}=t,c=xe(t,vge),u=p.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),mge(d.key)&&r(d)},[r]);return v.jsx(yge,E({id:o,ref:n,className:ie(B.menuList,s),"aria-labelledby":i,onKeyDown:u,autoFocus:l},c,{children:a}))}),wge=["displayOrder"],Cge=e=>{const t=To(),n=Me(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:s={},hideMenu:a,colDef:l,addDividers:c=!0}=e,u=p.useMemo(()=>E({},r,i),[r,i]),d=p.useMemo(()=>{if(!s||Object.keys(s).length===0)return o;const m=E({},s);return Object.entries(o).forEach(([y,C])=>{m[y]=E({},C,s[y]||{})}),m},[o,s]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=p.useMemo(()=>{const m=Object.keys(r);return Object.keys(i).filter(y=>!m.includes(y))},[i,r]);return p.useMemo(()=>{const C=Array.from(new Set([...f,...h])).filter(w=>u[w]!=null).sort((w,b)=>{const g=d[w],x=d[b],P=Number.isFinite(g==null?void 0:g.displayOrder)?g.displayOrder:100,I=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-I});return C.reduce((w,b,g)=>{let x={colDef:l,onClick:a};const P=d[b];if(P){const I=xe(P,wge);x=E({},x,I)}return c&&g!==C.length-1?[...w,[u[b],x],[n.slots.baseDivider,{}]]:[...w,[u[b],x]]},[])},[c,l,f,a,u,d,h,n.slots.baseDivider])};function xge(e){const{colDef:t,onClick:n}=e,r=et(),o=Me(),a=mn(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=p.useCallback(c=>{a||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:v.jsxs(On,{onClick:l,disabled:a,children:[v.jsx(Pc,{children:v.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Sge(e){const{onClick:t}=e,n=et(),r=Me(),o=p.useCallback(i=>{t(i),n.current.showPreferences(il.columns)},[n,t]);return r.disableColumnSelector?null:v.jsxs(On,{onClick:o,children:[v.jsx(Pc,{children:v.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),v.jsx(Ic,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Pge(e){return v.jsxs(p.Fragment,{children:[v.jsx(xge,E({},e)),v.jsx(Sge,E({},e))]})}function Ige(e){const{colDef:t,onClick:n}=e,r=et(),o=Me(),i=p.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:v.jsxs(On,{onClick:i,children:[v.jsx(Pc,{children:v.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuFilter")})]})}function kge(e){const{colDef:t,onClick:n}=e,r=et(),o=ue(r,eo),i=Me(),s=p.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),a=t.sortingOrder??i.sortingOrder,l=p.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===s?null:d)},[r,t,n,s]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return v.jsxs(p.Fragment,{children:[a.includes("asc")&&s!=="asc"?v.jsxs(On,{onClick:l,"data-value":"asc",children:[v.jsx(Pc,{children:v.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),v.jsx(Ic,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&s!=="desc"?v.jsxs(On,{onClick:l,"data-value":"desc",children:[v.jsx(Pc,{children:v.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),v.jsx(Ic,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&s!=null?v.jsxs(On,{onClick:l,children:[v.jsx(Pc,{}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Tge=["defaultSlots","defaultSlotProps","slots","slotProps"],Ege={columnMenuSortItem:kge,columnMenuFilterItem:Ige,columnMenuColumnsItem:Pge},Oge={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Mge=p.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}=t,a=xe(t,Tge),l=Cge(E({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}));return v.jsx(bge,E({ref:n},a,{children:l.map(([c,u],d)=>v.jsx(c,E({},u),d))}))}),Rge=p.forwardRef(function(t,n){return v.jsx(Mge,E({},t,{ref:n,defaultSlots:Ege,defaultSlotProps:Oge}))}),$ge=["className","slotProps"],_ge=e=>{const{classes:t}=e;return ve({root:["panelWrapper"]},rt,t)},Age=ne("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Dge=()=>!0,T5=p.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=xe(t,$ge),s=Me(),a=_ge(s);return v.jsx(L_,E({open:!0,disableEnforceFocus:!0,isEnabled:Dge},o.TrapFocus,{children:v.jsx(Age,E({ref:n,tabIndex:-1,className:ie(a.root,r),ownerState:s},i))}))}),Lge=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},Fge=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,jge=e=>{const{classes:t}=e;return ve({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},rt,t)},hO=new Intl.Collator;function E5(e){var A,D,_;const t=et(),n=p.useRef(null),r=ue(t,No),o=Vo(()=>fo(t)).current,i=ue(t,fo),s=Me(),[a,l]=p.useState(""),c=jge(s),{sort:u,searchPredicate:d=Fge,autoFocusSearchField:f=!0,disableShowHideToggle:h=!1,disableResetButton:m=!1,toggleAllMode:y="all",getTogglableColumns:C}=e,w=p.useMemo(()=>Lge(i,o),[i,o]),b=p.useMemo(()=>{switch(u){case"asc":return[...r].sort(($,L)=>hO.compare($.headerName||$.field,L.headerName||L.field));case"desc":return[...r].sort(($,L)=>-hO.compare($.headerName||$.field,L.headerName||L.field));default:return r}},[r,u]),g=$=>{const{name:L}=$.target;t.current.setColumnVisibility(L,i[L]===!1)},x=p.useMemo(()=>{const $=C?C(b):null,L=$?b.filter(({field:F})=>$.includes(F)):b;return a?L.filter(F=>d(F,a.toLowerCase())):L},[b,a,d,C]),P=p.useCallback($=>{const L=fo(t),F=E({},L),j=C?C(r):null;return(y==="filteredOnly"?x:r).forEach(N=>{N.hideable&&(j==null||j.includes(N.field))&&($?delete F[N.field]:F[N.field]=!1)}),t.current.setColumnVisibilityModel(F)},[t,r,C,y,x]),I=p.useCallback($=>{l($.target.value)},[]),T=p.useMemo(()=>x.filter($=>$.hideable),[x]),M=p.useMemo(()=>T.every($=>i[$.field]==null||i[$.field]!==!1),[i,T]),k=p.useMemo(()=>T.every($=>i[$.field]===!1),[i,T]),S=p.useRef(null);p.useEffect(()=>{f?n.current.focus():S.current&&typeof S.current.focus=="function"&&S.current.focus()},[f]);let R=!1;const O=$=>R===!1&&$.hideable!==!1?(R=!0,!0):!1;return v.jsxs(p.Fragment,{children:[v.jsx(Bge,{className:c.header,ownerState:s,children:v.jsx(s.slots.baseTextField,E({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:I,variant:"outlined",size:"small",InputProps:{startAdornment:v.jsx(s.slots.baseInputAdornment,{position:"start",children:v.jsx(s.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(A=s.slotProps)==null?void 0:A.baseTextField))}),v.jsxs(Nge,{className:c.root,ownerState:s,children:[x.map($=>{var L;return v.jsx(Zw,{className:c.row,control:v.jsx(s.slots.baseCheckbox,E({disabled:$.hideable===!1,checked:i[$.field]!==!1,onClick:g,name:$.field,sx:{p:.5},inputRef:O($)?S:void 0},(L=s.slotProps)==null?void 0:L.baseCheckbox)),label:$.headerName||$.field},$.field)}),x.length===0&&v.jsx(Hge,{ownerState:s,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!h||!m)&&x.length>0?v.jsxs(zge,{ownerState:s,className:c.footer,children:[h?v.jsx("span",{}):v.jsx(Zw,{control:v.jsx(s.slots.baseCheckbox,E({disabled:T.length===0,checked:M,indeterminate:!M&&!k,onClick:()=>P(!M),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(D=s.slotProps)==null?void 0:D.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:v.jsx(s.slots.baseButton,E({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:w},(_=s.slotProps)==null?void 0:_.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Nge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),Bge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),zge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),Hge=ne("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function Vge(e){var n;const t=Me();return v.jsx(T5,E({},e,{children:v.jsx(E5,E({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const Uge=["children","className","classes"],Gge=je("MuiDataGrid",["panel","paper"]),Wge=ne(gl,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Kge=ne(Pr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),qge=p.forwardRef((e,t)=>{const{children:n,className:r}=e,o=xe(e,Uge),i=et(),s=Me(),a=Gge,[l,c]=p.useState(!1),u=p.useCallback(()=>{i.current.hidePreferences()},[i]),d=p.useCallback(y=>{y.key==="Escape"&&i.current.hidePreferences()},[i]),f=p.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[h,m]=p.useState(null);return p.useEffect(()=>{var C,w;const y=(w=(C=i.current.rootElementRef)==null?void 0:C.current)==null?void 0:w.querySelector('[data-id="gridPanelAnchor"]');y&&m(y)},[i]),h?v.jsx(Wge,E({ref:t,placement:"bottom-start",className:ie(a.panel,r),ownerState:s,anchorEl:h,modifiers:f},o,{children:v.jsx(pF,{mouseEvent:"onMouseUp",onClickAway:u,children:v.jsx(Kge,{className:a.paper,ownerState:s,elevation:8,onKeyDown:d,children:l&&n})})})):null}),Yge=["className"],Xge=e=>{const{classes:t}=e;return ve({root:["panelContent"]},rt,t)},Qge=Ct("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Jge(e){const{className:t}=e,n=xe(e,Yge),r=Me(),o=Xge(r);return v.jsx(Qge,E({className:ie(o.root,t),ownerState:r},n))}const Zge=["className"],eve=e=>{const{classes:t}=e;return ve({root:["panelFooter"]},rt,t)},tve=Ct("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function nve(e){const{className:t}=e,n=xe(e,Zge),r=Me(),o=eve(r);return v.jsx(tve,E({className:ie(o.root,t),ownerState:r},n))}const rve=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],ove=["InputComponentProps"],ive=e=>{const{classes:t}=e;return ve({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},rt,t)},sve=ne("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),ave=ne("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),lve=ne("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),cve=ne("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),uve=ne("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),dve=ne("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),fve=e=>{switch(e){case rr.And:return"filterPanelOperatorAnd";case rr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},ud=e=>e.headerName||e.field,mO=new Intl.Collator,gO=p.forwardRef(function(t,n){var ye,pe,Fe,me,Ae,Ve,De,X,te;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:s,showMultiFilterOperators:a,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[rr.And,rr.Or],columnsSort:f,filterColumns:h,deleteIconProps:m={},logicOperatorInputProps:y={},operatorInputProps:C={},columnInputProps:w={},valueInputProps:b={},readOnly:g}=t,x=xe(t,rve),P=et(),I=ue(P,ls),T=ue(P,Tj),M=ue(P,In),k=yt(),S=yt(),R=yt(),O=yt(),A=Me(),D=ive(A),_=p.useRef(null),$=p.useRef(null),L=M.logicOperator??rr.And,F=o&&d.length>0,j=((ye=A.slotProps)==null?void 0:ye.baseFormControl)||{},z=(((pe=A.slotProps)==null?void 0:pe.baseSelect)||{}).native??!1,V=((Fe=A.slotProps)==null?void 0:Fe.baseInputLabel)||{},K=((me=A.slotProps)==null?void 0:me.baseSelectOption)||{},{InputComponentProps:H}=b,G=xe(b,ove),{filteredColumns:Y,selectedField:ee}=p.useMemo(()=>{let oe=r.field;const de=I[r.field].filterable===!1?I[r.field]:null;if(de)return{filteredColumns:[de],selectedField:oe};if(h===void 0||typeof h!="function")return{filteredColumns:T,selectedField:oe};const ge=h({field:r.field,columns:T,currentFilters:(M==null?void 0:M.items)||[]});return{filteredColumns:T.filter(Se=>{const Ee=ge.includes(Se.field);return Se.field===r.field&&!Ee&&(oe=void 0),Ee}),selectedField:oe}},[h,M==null?void 0:M.items,T,r.field,I]),W=p.useMemo(()=>{switch(f){case"asc":return Y.sort((oe,de)=>mO.compare(ud(oe),ud(de)));case"desc":return Y.sort((oe,de)=>-mO.compare(ud(oe),ud(de)));default:return Y}},[Y,f]),Q=r.field?P.current.getColumn(r.field):null,U=p.useMemo(()=>{var oe;return!r.operator||!Q?null:(oe=Q.filterOperators)==null?void 0:oe.find(de=>de.value===r.operator)},[r,Q]),J=p.useCallback(oe=>{const de=oe.target.value,ge=P.current.getColumn(de);if(ge.field===Q.field)return;const Se=ge.filterOperators.find(Ce=>Ce.value===r.operator)||ge.filterOperators[0];let Oe=!Se.InputComponent||Se.InputComponent!==(U==null?void 0:U.InputComponent)||ge.type!==Q.type?void 0:r.value;if(ge.type==="singleSelect"&&Oe!==void 0){const Ce=ge,we=ol(Ce);Array.isArray(Oe)?Oe=Oe.filter(Le=>mg(Le,we,Ce==null?void 0:Ce.getOptionValue)!==void 0):mg(r.value,we,Ce==null?void 0:Ce.getOptionValue)===void 0&&(Oe=void 0)}s(E({},r,{field:de,operator:Se.value,value:Oe}))},[P,s,r,Q,U]),Z=p.useCallback(oe=>{const de=oe.target.value,ge=Q==null?void 0:Q.filterOperators.find(Ee=>Ee.value===de),Se=!(ge!=null&&ge.InputComponent)||(ge==null?void 0:ge.InputComponent)!==(U==null?void 0:U.InputComponent);s(E({},r,{operator:de,value:Se?void 0:r.value}))},[s,r,Q,U]),le=p.useCallback(oe=>{const de=oe.target.value===rr.And.toString()?rr.And:rr.Or;c(de)},[c]),he=()=>{i(r)};return p.useImperativeHandle(u,()=>({focus:()=>{var oe;U!=null&&U.InputComponent?(oe=_==null?void 0:_.current)==null||oe.focus():$.current.focus()}}),[U]),v.jsxs(sve,E({ref:n,className:D.root,"data-id":r.id,ownerState:A},x,{children:[v.jsx(ave,E({variant:"standard",as:A.slots.baseFormControl},j,m,{className:ie(D.deleteIcon,j.className,m.className),ownerState:A,children:v.jsx(A.slots.baseIconButton,E({"aria-label":P.current.getLocaleText("filterPanelDeleteIconLabel"),title:P.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:he,size:"small",disabled:g},(Ae=A.slotProps)==null?void 0:Ae.baseIconButton,{children:v.jsx(A.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(lve,E({variant:"standard",as:A.slots.baseFormControl},j,y,{sx:[F?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},j.sx,y.sx],className:ie(D.logicOperatorInput,j.className,y.className),ownerState:A,children:v.jsx(A.slots.baseSelect,E({inputProps:{"aria-label":P.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:le,disabled:!!l||d.length===1,native:z},(Ve=A.slotProps)==null?void 0:Ve.baseSelect,{children:d.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.toString(),value:oe.toString()}),P.current.getLocaleText(fve(oe))))}))})),v.jsxs(cve,E({variant:"standard",as:A.slots.baseFormControl},j,w,{className:ie(D.columnInput,j.className,w.className),ownerState:A,children:[v.jsx(A.slots.baseInputLabel,E({},V,{htmlFor:k,id:S,children:P.current.getLocaleText("filterPanelColumns")})),v.jsx(A.slots.baseSelect,E({labelId:S,id:k,label:P.current.getLocaleText("filterPanelColumns"),value:ee??"",onChange:J,native:z,disabled:g},(De=A.slotProps)==null?void 0:De.baseSelect,{children:W.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.field,value:oe.field}),ud(oe)))}))]})),v.jsxs(uve,E({variant:"standard",as:A.slots.baseFormControl},j,C,{className:ie(D.operatorInput,j.className,C.className),ownerState:A,children:[v.jsx(A.slots.baseInputLabel,E({},V,{htmlFor:R,id:O,children:P.current.getLocaleText("filterPanelOperator")})),v.jsx(A.slots.baseSelect,E({labelId:O,label:P.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:Z,native:z,inputRef:$,disabled:g},(X=A.slotProps)==null?void 0:X.baseSelect,{children:(te=Q==null?void 0:Q.filterOperators)==null?void 0:te.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.value,value:oe.value}),oe.label||P.current.getLocaleText(`filterOperator${re(oe.value)}`)))}))]})),v.jsx(dve,E({variant:"standard",as:A.slots.baseFormControl},j,G,{className:ie(D.valueInput,j.className,G.className),ownerState:A,children:U!=null&&U.InputComponent?v.jsx(U.InputComponent,E({apiRef:P,item:r,applyValue:s,focusElementRef:_,disabled:g},U.InputComponentProps,H),r.field):null}))]}))}),pve=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],vO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),hve=p.forwardRef(function(t,n){var O,A;const r=et(),o=Me(),i=ue(r,In),s=ue(r,Tj),a=ue(r,lde),l=p.useRef(null),c=p.useRef(null),{logicOperators:u=[rr.And,rr.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:h,disableAddFilterButton:m=!1,disableRemoveAllButton:y=!1}=t,C=xe(t,pve),w=r.current.upsertFilterItem,b=p.useCallback(D=>{r.current.setFilterLogicOperator(D)},[r]),g=p.useCallback(()=>{let D;if(h&&typeof h=="function"){const _=h({currentFilters:(i==null?void 0:i.items)||[],columns:s});if(_===null)return null;D=s.find(({field:$})=>$===_)}else D=s.find(_=>{var $;return($=_.filterOperators)==null?void 0:$.length});return D?vO(D):null},[i==null?void 0:i.items,s,h]),x=p.useCallback(()=>{if(h===void 0||typeof h!="function")return g();const D=i.items.length?i.items:[g()].filter(Boolean),_=h({currentFilters:D,columns:s});if(_===null)return null;const $=s.find(({field:L})=>L===_);return $?vO($):null},[i.items,s,h,g]),P=p.useMemo(()=>i.items.length?i.items:(c.current||(c.current=g()),c.current?[c.current]:[]),[i.items,g]),I=P.length>1,{readOnlyFilters:T,validFilters:M}=p.useMemo(()=>P.reduce((D,_)=>(a[_.field]?D.validFilters.push(_):D.readOnlyFilters.push(_),D),{readOnlyFilters:[],validFilters:[]}),[P,a]),k=p.useCallback(()=>{const D=x();D&&r.current.upsertFilterItems([...P,D])},[r,x,P]),S=p.useCallback(D=>{const _=M.length===1;r.current.deleteFilterItem(D),_&&r.current.hideFilterPanel()},[r,M.length]),R=p.useCallback(()=>M.length===1&&M[0].value===void 0?(r.current.deleteFilterItem(M[0]),r.current.hideFilterPanel()):r.current.setFilterModel(E({},i,{items:T}),"removeAllFilterItems"),[r,T,i,M]);return p.useEffect(()=>{u.length>0&&i.logicOperator&&!u.includes(i.logicOperator)&&b(u[0])},[u,b,i.logicOperator]),p.useEffect(()=>{M.length>0&&l.current.focus()},[M.length]),v.jsxs(T5,E({ref:n},C,{children:[v.jsxs(Jge,{children:[T.map((D,_)=>v.jsx(gO,E({item:D,applyFilterChanges:w,deleteFilter:S,hasMultipleFilters:I,showMultiFilterOperators:_>0,disableMultiFilterOperator:_!==1,applyMultiFilterOperatorChanges:b,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),D.id==null?_:D.id)),M.map((D,_)=>v.jsx(gO,E({item:D,applyFilterChanges:w,deleteFilter:S,hasMultipleFilters:I,showMultiFilterOperators:T.length+_>0,disableMultiFilterOperator:T.length+_!==1,applyMultiFilterOperatorChanges:b,focusElementRef:_===M.length-1?l:null,logicOperators:u,columnsSort:d},f),D.id==null?_+T.length:D.id))]}),!o.disableMultipleColumnsFiltering&&!(m&&y)?v.jsxs(nve,{children:[m?v.jsx("span",{}):v.jsx(o.slots.baseButton,E({onClick:k,startIcon:v.jsx(o.slots.filterPanelAddIcon,{})},(O=o.slotProps)==null?void 0:O.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!y&&M.length>0?v.jsx(o.slots.baseButton,E({onClick:R,startIcon:v.jsx(o.slots.filterPanelRemoveAllIcon,{})},(A=o.slotProps)==null?void 0:A.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),mve=["hideMenu","options"],gve=["hideMenu","options"];function vve(e){const t=et(),{hideMenu:n,options:r}=e,o=xe(e,mve);return v.jsx(On,E({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function yve(e){const t=et(),{hideMenu:n,options:r}=e,o=xe(e,gve);return v.jsx(On,E({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const bve=["className","selectedRowCount"],wve=e=>{const{classes:t}=e;return ve({root:["selectedRowCount"]},rt,t)},Cve=Ct("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),xve=p.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=xe(t,bve),s=et(),a=Me(),l=wve(a),c=s.current.getLocaleText("footerRowSelected")(o);return v.jsx(Cve,E({ref:n,className:ie(l.root,r),ownerState:a},i,{children:c}))}),Sve=p.forwardRef(function(t,n){var d,f;const r=et(),o=Me(),i=ue(r,Wde),s=ue(r,Cfe),a=ue(r,z1),l=!o.hideFooterSelectedRowCount&&s>0?v.jsx(xve,{selectedRowCount:s}):v.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?v.jsx(o.slots.footerRowCount,E({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:i,visibleRowCount:a})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&v.jsx(o.slots.pagination,E({},(f=o.slotProps)==null?void 0:f.pagination));return v.jsxs(Cme,E({ref:n},t,{children:[l,c,u]}))});function Pve(){var i,s;const e=et(),t=ue(e,No),n=Me(),r=ue(e,Lf),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??il.filters);return v.jsx(n.slots.panel,E({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(i=n.slotProps)==null?void 0:i.panel,(s=n.slotProps)==null?void 0:s.basePopper,{children:o}))}function Ive(){var t;const e=Me();return v.jsxs(p.Fragment,{children:[v.jsx(Pve,{}),e.slots.toolbar&&v.jsx(e.slots.toolbar,E({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const Q1=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let s;switch(e){case Pt.LEFT:s=r[n];break;case Pt.RIGHT:s=o.columnsTotalWidth-r[n]-t+i;break;default:s=0;break}return s},dd={root:B.scrollbarFiller,header:B["scrollbarFiller--header"],borderTop:B["scrollbarFiller--borderTop"],borderBottom:B["scrollbarFiller--borderBottom"],pinnedRight:B["scrollbarFiller--pinnedRight"]};function J1({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return v.jsx("div",{role:"presentation",className:ie(dd.root,e&&dd.header,t&&dd.borderTop,n&&dd.borderBottom,r&&dd.pinnedRight)})}const kve=Ct("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),Tve=e=>{const{classes:t}=e;return ve({root:["skeletonLoadingOverlay"]},rt,t)},yO=e=>parseInt(e.getAttribute("data-colindex"),10),Eve=p.forwardRef(function(t,n){const r=Me(),{slots:o}=r,i=Tve({classes:r.classes}),s=p.useRef(null),a=ht(s,n),l=et(),c=ue(l,$n),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=ue(l,A1),h=ue(l,da),m=p.useMemo(()=>h.filter(I=>I<=f).length,[f,h]),y=ue(l,mn),C=p.useMemo(()=>y.slice(0,m),[y,m]),w=ue(l,pp),b=p.useCallback((I,T,M)=>{const k=Q1(M,I,T,h,c);return{[M]:k}},[c,h]),g=p.useCallback(I=>{if(w.left.findIndex(T=>T.field===I)!==-1)return Pt.LEFT;if(w.right.findIndex(T=>T.field===I)!==-1)return Pt.RIGHT},[w.left,w.right]),x=p.useMemo(()=>{const I=[];for(let T=0;TQ.field===S.field):k-w.left.length,$=R&&b(S.computedWidth,k,R),L=c.columnsTotalWidth0},`skeleton-scrollbar-filler-${T}`))}I.push(v.jsx("div",{className:ie(B.row,B.rowSkeleton,T===0&&B["row--firstVisible"]),children:M},`skeleton-row-${T}`))}return I},[o,C,w,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,g,b]);return Ie(l,"columnResize",I=>{var $,L,F;const{colDef:T,width:M}=I,k=($=s.current)==null?void 0:$.querySelectorAll(`[data-field="${cs(T.field)}"]`);if(!k)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const S=C.findIndex(j=>j.field===T.field),R=g(T.field),O=R===Pt.LEFT,A=R===Pt.RIGHT,D=getComputedStyle(k[0]).getPropertyValue("--width"),_=parseInt(D,10)-M;if(k&&k.forEach(j=>{j.style.setProperty("--width",`${M}px`)}),O){const j=(L=s.current)==null?void 0:L.querySelectorAll(`.${B["cell--pinnedLeft"]}`);j==null||j.forEach(N=>{yO(N)>S&&(N.style.left=`${parseInt(getComputedStyle(N).left,10)-_}px`)})}if(A){const j=(F=s.current)==null?void 0:F.querySelectorAll(`.${B["cell--pinnedRight"]}`);j==null||j.forEach(N=>{yO(N)({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Va.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Va.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Ave=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),Dve=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,Lve=p.forwardRef(function(t,n){const r=et(),o=Me(),i=ue(r,nr),s=ue(r,hc),a=ue(r,t5),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=p.useMemo(()=>s===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,s]),f=p.useMemo(()=>Math.max(0,a-1),[a]),h=p.useMemo(()=>s===-1||i.page<=f?i.page:f,[f,i.page,s]),m=p.useCallback(x=>{const P=Number(x.target.value);r.current.setPageSize(P)},[r]),y=p.useCallback((x,P)=>{r.current.setPage(P)},[r]),w=(x=>{for(let P=0;P{const{classes:t}=e;return ve({root:["rowCount"]},rt,t)},Nve=Ct("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Bve=p.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=xe(t,Fve),a=et(),l=Me(),c=jve(l);if(o===0)return null;const u=i=d.left.length&&y=m.lastColumnIndex,Q=zve(D.classes,{root:["row",r&&"selected",G&&"row--editable",H&&"row--editing",C&&"row--firstVisible",w&&"row--lastVisible",g&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),U=O.hooks.useGridRowAriaAttributes();p.useLayoutEffect(()=>{if(_.range){const Ce=R.current.getRowIndexRelativeToVisibleRows(o);Ce!==void 0&&R.current.unstable_setLastMeasuredRowIndex(Ce)}if(A.current&&l==="auto")return R.current.observeRowHeight(A.current,o)},[R,_.range,l,o]);const J=p.useCallback((Ce,we)=>Le=>{vp(Le)||R.current.getRow(o)&&(R.current.publishEvent(Ce,R.current.getRowParams(o),Le),we&&we(Le))},[R,o]),Z=p.useCallback(Ce=>{const we=gg(Ce.target,B.cell),Le=we==null?void 0:we.getAttribute("data-field");if(Le){if(Le===Du.field||Le===iy||Le==="__reorder__"||R.current.getCellMode(o,Le)===vt.Edit)return;const lt=R.current.getColumn(Le);if((lt==null?void 0:lt.type)===ny)return}J("rowClick",x)(Ce)},[R,x,J,o]),{slots:le,slotProps:he,disableColumnReorder:ye}=D,pe=D.rowReordering,Fe=ue(R,()=>E({},R.current.getRowHeightEntry(o)),Sj),me=p.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const Ce=E({},a,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(Fe.spacingTop){const we=D.rowSpacingType==="border"?"borderTopWidth":"marginTop";Ce[we]=Fe.spacingTop}if(Fe.spacingBottom){const we=D.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Le=Ce[we];typeof Le!="number"&&(Le=parseInt(Le||"0",10)),Le+=Fe.spacingBottom,Ce[we]=Le}return Ce},[b,l,a,Fe,D.rowSpacingType]),Ae=R.current.unstable_applyPipeProcessors("rowClassName",[],o),Ve=z?U(z,s):void 0;if(typeof D.getRowClassName=="function"){const Ce=s-(((Oe=_.range)==null?void 0:Oe.firstRowIndex)||0),we=E({},R.current.getRowParams(o),{isFirstVisible:Ce===0,isLastVisible:Ce===_.rows.length-1,indexRelativeToCurrentPage:Ce});Ae.push(D.getRowClassName(we))}const De=(Ce,we,Le,lt,fe=pr.NONE)=>{var xi;const ke=R.current.unstable_getCellColSpanInfo(o,Le);if(ke!=null&&ke.spannedByColSpan)return null;const Ke=(ke==null?void 0:ke.cellProps.width)??Ce.computedWidth,mt=(ke==null?void 0:ke.cellProps.colSpan)??1,Kn=Q1(x5[fe],Ce.computedWidth,Le,F,h);if((z==null?void 0:z.type)==="skeletonRow")return v.jsx(le.skeletonCell,{type:Ce.type,width:Ke,height:l,field:Ce.field,align:Ce.align},Ce.field);const qn=((xi=j[o])==null?void 0:xi[Ce.field])??null,_n=Ce.field==="__reorder__",Yn=Object.keys(j).length>0,Tr=!(ye||Ce.disableReorder),cr=pe&&!$.length&&L<=1&&!Yn,Xn=!(Tr||_n&&cr),Yr=fe===pr.VIRTUAL;return v.jsx(le.cell,E({column:Ce,width:Ke,rowId:o,align:Ce.align||"left",colIndex:Le,colSpan:mt,disableDragEvents:Xn,editCellState:qn,isNotVisible:Yr,pinnedOffset:Kn,pinnedPosition:fe,sectionIndex:we,sectionLength:lt,gridHasFiller:K},he==null?void 0:he.cell),Ce.field)};if(!z)return null;const X=d.left.map((Ce,we)=>De(Ce,we,we,d.left.length,pr.LEFT)),te=d.right.map((Ce,we)=>{const Le=u.length-d.right.length+we;return De(Ce,we,Le,d.right.length,pr.RIGHT)}),oe=u.length-d.left.length-d.right.length,de=[];ee&&de.push(De(u[y],y-d.left.length,y,oe,pr.VIRTUAL));for(let Ce=m.firstColumnIndex;Ce0&&v.jsx(Vve,{width:Ee}),te.length>0&&v.jsx("div",{role:"presentation",className:B.filler}),te,V!==0&&v.jsx(J1,{pinnedRight:d.right.length>0})]}))}),Gve=ua(Uve),Wve=()=>{const e=To(),t=Me(),n=ue(e,mn),r=ue(e,B1),o=ue(e,gp),i=ue(e,Xde);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":H1(t)}},Kve=()=>{const e=To(),t=ue(e,ea),n=ue(e,gp);return p.useCallback((r,o)=>{const i={},s=o+n+2;return i["aria-rowindex"]=s,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function qve({privateApiRef:e,configuration:t,props:n,children:r}){const o=p.useRef(e.current.getPublicApi());return v.jsx(h5.Provider,{value:t,children:v.jsx(Cj.Provider,{value:n,children:v.jsx(c5.Provider,{value:e,children:v.jsx(wj.Provider,{value:o,children:r})})})})}const Yve=e=>{const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),s=p.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:s})},Xve=e=>{const t=Ir();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=p.useRef(!0);p.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>E({},r,{isRtl:t}))},[e,t])},Qve=Sde()&&window.localStorage.getItem("DEBUG")!=null,Pd=()=>{},Jve={debug:Pd,info:Pd,warn:Pd,error:Pd},bO=["debug","info","warn","error"];function wO(e,t,n=console){const r=bO.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return bO.reduce((i,s,a)=>(a>=r?i[s]=(...l)=>{const[c,...u]=l;n[s](`MUI X: ${e} - ${c}`,...u)}:i[s]=Pd,i),{})}const Zve=(e,t)=>{const n=p.useCallback(r=>Qve?wO(r,"debug",t.logger):t.logLevel?wO(r,t.logLevel.toString(),t.logger):Jve,[t.logLevel,t.logger]);Xe(e,{getLogger:n},"private")};class eye{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const O5=Symbol("mui.api_private"),tye=e=>e.isPropagationStopped!==void 0;let CO=0;function nye(e){var o;const t=(o=e.current)==null?void 0:o[O5];if(t)return t;const n={},r={state:n,store:Z1.create(n),instanceId:{id:CO}};return CO+=1,r.getPublicApi=()=>e.current,r.register=(i,s)=>{Object.keys(s).forEach(a=>{const l=s[a],c=r[a];if((c==null?void 0:c.spying)===!0?c.target=l:r[a]=l,i==="public"){const u=e.current,d=u[a];(d==null?void 0:d.spying)===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new eye}),r}function rye(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[O5]:e.current}}function oye(e,t){var s;const n=p.useRef(),r=p.useRef();r.current||(r.current=nye(n)),n.current||(n.current=rye(r));const o=p.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,tye(u)&&u.isPropagationStopped())return;const d=t.signature===go.DataGridPro||t.signature===go.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=p.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return Xe(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((s=e.current)!=null&&s.state)&&(e.current=n.current),p.useImperativeHandle(e,()=>n.current,[n]),p.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const iye=(e,t)=>{const n=p.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},sye=e=>{const t=p.useRef({}),n=p.useRef(!1),r=p.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=p.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const h=t.current[u];return h.processors.get(d)!==f&&(h.processors.set(d,f),h.processorsAsArray=Array.from(t.current[u].processors.values()),r(h)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),i=p.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const h=t.current[u].appliers,m=xe(h,[d].map(ru));t.current[u].appliers=m}),[]),s=p.useCallback(u=>{r(t.current[u])},[r]),a=p.useCallback((...u)=>{const[d,f,h]=u;if(!t.current[d])return f;const m=t.current[d].processorsAsArray;let y=f;for(let C=0;C{const r=p.useRef(),o=p.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=p.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);mp(()=>{i()});const s=p.useRef(!0);p.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},eP=(e,t,n)=>{const r=p.useRef(),o=p.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=p.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);mp(()=>{i()});const s=p.useRef(!0);p.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},yg=(e,t,n,r)=>{const o=p.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);mp(()=>{o()});const i=p.useRef(!0);p.useEffect(()=>{i.current?i.current=!1:o()},[o])},sl="none",xO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},aye=e=>{const t=p.useRef(new Map),n=p.useRef({}),r=p.useCallback((l,c,u)=>{const d=()=>{const m=n.current[c],y=xe(m,[l].map(ru));n.current[c]=y};n.current[c]||(n.current[c]={});const f=n.current[c],h=f[l];return f[l]=u,!h||h===u||l===e.current.getActiveStrategy(xO[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=p.useCallback((l,c)=>{const u=e.current.getActiveStrategy(xO[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const f=d[u];return f(c)},[e]),i=p.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??sl},[]),s=p.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Xe(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:s},"private")},lye=e=>{const t=p.useRef({}),[,n]=p.useState(),r=p.useCallback(c=>{t.current[c.stateId]=c},[]),o=p.useCallback((c,u)=>{let d;if(Rj(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const h=[];if(Object.keys(t.current).forEach(m=>{const y=t.current[m],C=y.stateSelector(e.current.state,e.current.instanceId),w=y.stateSelector(d,e.current.instanceId);w!==C&&(h.push({stateId:y.stateId,hasPropChanged:w!==y.propModel}),y.propModel!==void 0&&w!==y.propModel&&(f=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(m=>m.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),h.length===1){const{stateId:m,hasPropChanged:y}=h[0],C=t.current[m],w=C.stateSelector(d,e.current.instanceId);C.propOnChange&&y&&C.propOnChange(w,{reason:u,api:e.current}),f||e.current.publishEvent(C.changeEvent,w,{reason:u})}return!f},[e]),i=p.useCallback((c,u,d)=>e.current.setState(f=>E({},f,{[c]:u(f[c])}),d),[e]),s=p.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:s},l={updateControlState:i,registerControlState:r};Xe(e,a,"public"),Xe(e,l,"private")},cye=(e,t)=>{const n=oye(e,t);return Yve(n),Xve(n),Zve(n,t),lye(n),sye(n),aye(n),iye(n,t),n.current.register("private",{rootProps:t}),n},bn=(e,t,n)=>{const r=p.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function SC(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,` -`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const M5=(e,t)=>{var i,s;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((s=e.value)==null?void 0:s.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return SC(o,n)};class PC{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const uye=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new PC({csvOptions:r});return t.forEach(s=>{const a=n(e,s.field);i.addValue(M5(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function dye(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,s=n.reduce((d,f)=>`${d}${uye({id:f,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r -`,"").trim();if(!r.includeHeaders)return s;const a=t.filter(d=>d.field!==Du.field),l=[];if(r.includeColumnGroupsHeaders){const d=i.current.getAllGroupDetails();let f=0;const h=a.reduce((m,y)=>{const C=i.current.getColumnGroupPath(y.field);return m[y.field]=C,f=Math.max(f,C.length),m},{});for(let m=0;m{const w=(h[C.field]||[])[m],b=d[w];y.addValue(b?b.headerName||b.groupId:"")})}}const c=new PC({csvOptions:r,sanitizeCellValue:SC});return a.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r + & .${B["row--borderBottom"]} .${B.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["row--borderBottom"]} .${B.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${B.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${B["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":I},[`& .${B["container--top"]}, & .${B["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${B.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":I},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderTopColor:"transparent"},[`& .${B["pinnedRows--top"]} :first-of-type`]:{[`& .${B.cell}, .${B.scrollbarFiller}`]:{borderTop:"none"}},[`&.${B["root--disableUserSelection"]} .${B.cell}`]:{userSelect:"none"},[`& .${B["row--dynamicHeight"]} > .${B.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${B.cellEmpty}`]:{padding:0,height:"unset"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${Bl}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:Bl*-1}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:r},[`& .${B["cell--withLeftBorder"]}, & .${B["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${B["cell--withRightBorder"]}, & .${B["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${B["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:b}},[`& .${B.virtualScrollerContent} .${B.row}`]:{"&:hover":w,"&.Mui-selected":g,"&.Mui-selected:hover":P},[`& .${B.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${B.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.treeDataGroupingCellLoadingContainer}, .${B.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${B.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${B["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${B.filler}`]:{flex:"1 0 auto"},[`& .${B["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${B.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${B["scrollbar--vertical"]}, & .${B.pinnedRows}, & .${B.virtualScroller} > .${B.filler}`]:{display:"none"}}})});function pme(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=pi(e),s=pi(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Xf({type:"rgb",values:a})}const hme=e=>`rgb(from ${e} r g b / 1)`;function mme(e,t,n){return`color-mix(in srgb,${e}, ${hme(t)} calc(${n} * 100%))`}const gme=["className"],vme=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${re(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return ye(i,rt,r)},yme=p.forwardRef(function(t,n){const r=Me(),{className:o}=t,i=xe(t,gme),s=To(),a=ue(s,pc),l=s.current.rootElementRef,c=mt(l,n),u=r,d=vme(u,a),[f,h]=p.useState(!1);return ht(()=>{h(!0)},[]),f?v.jsx(fme,E({ref:c,className:ie(d.root,o),ownerState:u},i)):null}),bme=["className"],wme=e=>{const{classes:t}=e;return ye({root:["footerContainer","withBorderColor"]},rt,t)},Cme=Ct("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),xme=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,bme),i=Me(),s=wme(i);return v.jsx(Cme,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),Sme=["className"],Pme=e=>{const{classes:t}=e;return ye({root:["overlay"]},rt,t)},Ime=Ct("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),Q1=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Sme),i=Me(),s=Pme(i);return v.jsx(Ime,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),kme=e=>{const{classes:t,open:n}=e;return ye({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},rt,t)},Tme=p.memo(e=>{var d,f;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=et(),a=Me(),l=E({},e,{classes:a.classes}),c=kme(l),u=p.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return v.jsx("div",{className:c.root,children:v.jsx(a.slots.baseTooltip,E({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(d=a.slotProps)==null?void 0:d.baseTooltip,{children:v.jsx(a.slots.baseIconButton,E({ref:i,tabIndex:-1,className:c.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(f=a.slotProps)==null?void 0:f.baseIconButton,{children:v.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function Eme({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const l=et(),c=l.current.getColumn(o),u=nt(d=>{d&&(d.stopPropagation(),s!=null&&s.contains(d.target))||l.current.hideColumnMenu()});return!s||!c?null:v.jsx(Bj,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:i,target:s,onClose:u,onExited:a,children:v.jsx(n,E({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))})}const Ome=["className","aria-label"],Mme=e=>{const{classes:t}=e;return ye({root:["columnHeaderTitle"]},rt,t)},Rme=Ct("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),$me=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Ome),i=Me(),s=Mme(i);return v.jsx(Rme,E({ref:n,className:ie(s.root,r),ownerState:i},o))});function _me(e){var l;const{label:t,description:n}=e,r=Me(),o=p.useRef(null),[i,s]=p.useState(""),a=p.useCallback(()=>{if(!n&&(o!=null&&o.current)){const c=Dhe(o.current);s(c?t:"")}},[n,t]);return v.jsx(r.slots.baseTooltip,E({title:n||i},(l=r.slotProps)==null?void 0:l.baseTooltip,{children:v.jsx($me,{onMouseOver:a,ref:o,children:t})}))}const Ame=["resizable","resizing","height","side"];var J1=function(e){return e.Left="left",e.Right="right",e}(J1||{});const Dme=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${re(o)}`],icon:["iconSeparator"]};return ye(i,rt,r)};function Lme(e){const{height:t,side:n=J1.Right}=e,r=xe(e,Ame),o=Me(),i=E({},e,{side:n,classes:o.classes}),s=Dme(i),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return v.jsx("div",E({className:s.root,style:{minHeight:t}},r,{onClick:a,children:v.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Fme=p.memo(Lme),jme=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],I5=p.forwardRef(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:s,sortDirection:a,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:f,description:h,width:m,columnMenuIconButton:y=null,columnMenu:C=null,columnTitleIconButtons:w=null,headerClassName:b,label:g,resizable:x,draggableContainerProps:P,columnHeaderSeparatorProps:I,style:T}=t,M=xe(t,jme),k=To(),S=Me(),R=p.useRef(null),O=mt(R,n);let A="none";return a!=null&&(A=a==="asc"?"ascending":"descending"),p.useLayoutEffect(()=>{var _;const D=k.current.state.columnMenu;if(l&&!D.open){const L=R.current.querySelector('[tabindex="0"]')||R.current;L==null||L.focus(),(_=k.current.columnHeadersContainerRef)!=null&&_.current&&(k.current.columnHeadersContainerRef.current.scrollLeft=0)}},[k,l]),v.jsxs("div",E({ref:O,className:ie(r.root,b),style:E({},T,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":A},M,{children:[v.jsxs("div",E({className:r.draggableContainer,draggable:d,role:"presentation"},P,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:f!==void 0?f:v.jsx(_me,{label:g,description:h,columnWidth:m})}),w]}),y]})),v.jsx(Fme,E({resizable:!S.disableColumnResize&&!!x,resizing:s,height:i,side:u},I)),C]}))}),Nme=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:s,filterItemsCounter:a,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,d=o!=null,f=a!=null&&a>0,h=t.type==="number",m={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",h&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ye(m,rt,n)};function Bme(e){var Z,U,J;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:s,sortDirection:a,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:f,separatorSide:h,style:m,pinnedPosition:y,indexInSection:C,sectionLength:w,gridHasFiller:b}=e,g=To(),x=Me(),P=p.useRef(null),I=yt(),T=yt(),M=p.useRef(null),[k,S]=p.useState(n),R=p.useMemo(()=>!x.disableColumnReorder&&!f&&!t.disableReorder,[x.disableColumnReorder,f,t.disableReorder]);let O;t.renderHeader&&(O=t.renderHeader(g.current.getColumnHeaderParams(t.field)));const A=my(y,C),D=hy(y,C,w,x.showColumnVerticalBorder,b),_=E({},e,{classes:x.classes,showRightBorder:D,showLeftBorder:A}),$=Nme(_),L=p.useCallback(X=>ae=>{vp(ae)||g.current.publishEvent(X,g.current.getColumnHeaderParams(t.field),ae)},[g,t.field]),F=p.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),j=p.useMemo(()=>R?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:{},[R,L]),N=p.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);p.useEffect(()=>{k||S(n)},[k,n]);const z=p.useCallback(()=>{S(!1)},[]),V=!x.disableColumnMenu&&!t.disableColumnMenu&&v.jsx(Tme,{colDef:t,columnMenuId:I,columnMenuButtonId:T,open:k,iconButtonRef:M}),K=v.jsx(Eme,{columnMenuId:I,columnMenuButtonId:T,field:t.field,open:n,target:M.current,ContentComponent:x.slots.columnMenu,contentComponentProps:(Z=x.slotProps)==null?void 0:Z.columnMenu,onExited:z}),H=t.sortingOrder??x.sortingOrder,G=(t.sortable||a!=null)&&!t.hideSortIcons&&!x.disableColumnSorting,q=v.jsxs(p.Fragment,{children:[!x.disableColumnFilter&&v.jsx(x.slots.columnHeaderFilterIconButton,E({field:t.field,counter:c},(U=x.slotProps)==null?void 0:U.columnHeaderFilterIconButton)),G&&v.jsx(x.slots.columnHeaderSortIcon,E({field:t.field,direction:a,index:l,sortingOrder:H,disabled:!t.sortable},(J=x.slotProps)==null?void 0:J.columnHeaderSortIcon))]});p.useLayoutEffect(()=>{var ae;const X=g.current.state.columnMenu;if(u&&!X.open){const me=P.current.querySelector('[tabindex="0"]')||P.current;me==null||me.focus(),(ae=g.current.columnHeadersContainerRef)!=null&&ae.current&&(g.current.columnHeadersContainerRef.current.scrollLeft=0)}},[g,u]);const ee=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,W=t.headerName??t.field;return v.jsx(I5,E({ref:P,classes:$,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:u,tabIndex:d,separatorSide:h,isDraggable:R,headerComponent:O,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:V,columnTitleIconButtons:q,headerClassName:ie(ee,s&&B["columnHeader--last"]),label:W,resizable:!x.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:j,columnHeaderSeparatorProps:N,style:m},F))}const zme=da(Bme),Hme=["className"],Vme=e=>{const{classes:t}=e;return ye({root:["iconButtonContainer"]},rt,t)},Ume=Ct("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),k5=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Hme),i=Me(),s=Vme(i);return v.jsx(Ume,E({ref:n,className:ie(s.root,r),ownerState:i},o))}),Gme=["direction","index","sortingOrder","disabled"],Wme=e=>{const{classes:t}=e;return ye({icon:["sortIcon"]},rt,t)};function Kme(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?v.jsx(o,E({fontSize:"small",className:n},i)):null}function qme(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=xe(e,Gme),s=et(),a=Me(),l=E({},e,{classes:a.classes}),c=Wme(l),u=Kme(a.slots,t,c.icon,r);if(!u)return null;const d=v.jsx(a.slots.baseIconButton,E({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(f=a.slotProps)==null?void 0:f.baseIconButton,i,{children:u}));return v.jsxs(k5,{children:[n!=null&&v.jsx(a.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:d}),n==null&&d]})}const Yme=p.memo(qme),Xme=e=>{const{classes:t}=e;return ye({icon:["filterIcon"]},rt,t)};function Qme(e){var m,y;const{counter:t,field:n,onClick:r}=e,o=et(),i=Me(),s=E({},e,{classes:i.classes}),a=Xme(s),l=ue(o,Lf),c=yt(),u=yt(),d=p.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=Lf(o.current.state);w&&b===il.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,c),r&&r(o.current.getColumnHeaderParams(n),C)},[o,n,r,u,c]);if(!t)return null;const f=l.open&&l.labelId===c,h=v.jsx(i.slots.baseIconButton,E({id:c,onClick:d,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?u:void 0},(m=i.slotProps)==null?void 0:m.baseIconButton,{children:v.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return v.jsx(i.slots.baseTooltip,E({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=i.slotProps)==null?void 0:y.baseTooltip,{children:v.jsxs(k5,{children:[t>1&&v.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:h}),t===1&&h]})}))}const cO=Te(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),uO=Te(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),dO=Te(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),fO=Te(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Jme=Te(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),pO=Te(v.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Zme=Te(v.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");Te(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Te(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const ege=Te(v.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),tge=Te(v.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),nge=Te(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),rge=Te(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),oge=Te(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),ige=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),o0=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),hO=Te(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),sge=Te(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),age=Te(v.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),mO=Te(v.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),lge=Te(v.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),cge=Te(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),uge=Te(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),dge=Te(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),fge=Te(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),pge=Te(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Te(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const hge=Te(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function T5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const yg=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",mge=e=>!!e.key,gge=e=>e==="Tab"||e==="Escape";function E5(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function vge(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const yge=["hideMenu","colDef","id","labelledby","className","children","open"],bge=ne(iS)(()=>({minWidth:248})),wge=p.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:s,children:a,open:l}=t,c=xe(t,yge),u=p.useCallback(d=>{d.key==="Tab"&&d.preventDefault(),gge(d.key)&&r(d)},[r]);return v.jsx(bge,E({id:o,ref:n,className:ie(B.menuList,s),"aria-labelledby":i,onKeyDown:u,autoFocus:l},c,{children:a}))}),Cge=["displayOrder"],xge=e=>{const t=To(),n=Me(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:s={},hideMenu:a,colDef:l,addDividers:c=!0}=e,u=p.useMemo(()=>E({},r,i),[r,i]),d=p.useMemo(()=>{if(!s||Object.keys(s).length===0)return o;const m=E({},s);return Object.entries(o).forEach(([y,C])=>{m[y]=E({},C,s[y]||{})}),m},[o,s]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=p.useMemo(()=>{const m=Object.keys(r);return Object.keys(i).filter(y=>!m.includes(y))},[i,r]);return p.useMemo(()=>{const C=Array.from(new Set([...f,...h])).filter(w=>u[w]!=null).sort((w,b)=>{const g=d[w],x=d[b],P=Number.isFinite(g==null?void 0:g.displayOrder)?g.displayOrder:100,I=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-I});return C.reduce((w,b,g)=>{let x={colDef:l,onClick:a};const P=d[b];if(P){const I=xe(P,Cge);x=E({},x,I)}return c&&g!==C.length-1?[...w,[u[b],x],[n.slots.baseDivider,{}]]:[...w,[u[b],x]]},[])},[c,l,f,a,u,d,h,n.slots.baseDivider])};function Sge(e){const{colDef:t,onClick:n}=e,r=et(),o=Me(),a=mn(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=p.useCallback(c=>{a||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:v.jsxs(Mn,{onClick:l,disabled:a,children:[v.jsx(Pc,{children:v.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Pge(e){const{onClick:t}=e,n=et(),r=Me(),o=p.useCallback(i=>{t(i),n.current.showPreferences(il.columns)},[n,t]);return r.disableColumnSelector?null:v.jsxs(Mn,{onClick:o,children:[v.jsx(Pc,{children:v.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),v.jsx(Ic,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Ige(e){return v.jsxs(p.Fragment,{children:[v.jsx(Sge,E({},e)),v.jsx(Pge,E({},e))]})}function kge(e){const{colDef:t,onClick:n}=e,r=et(),o=Me(),i=p.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:v.jsxs(Mn,{onClick:i,children:[v.jsx(Pc,{children:v.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Tge(e){const{colDef:t,onClick:n}=e,r=et(),o=ue(r,eo),i=Me(),s=p.useMemo(()=>{if(!t)return null;const u=o.find(d=>d.field===t.field);return u==null?void 0:u.sort},[t,o]),a=t.sortingOrder??i.sortingOrder,l=p.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,d===s?null:d)},[r,t,n,s]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return v.jsxs(p.Fragment,{children:[a.includes("asc")&&s!=="asc"?v.jsxs(Mn,{onClick:l,"data-value":"asc",children:[v.jsx(Pc,{children:v.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),v.jsx(Ic,{children:c("columnMenuSortAsc")})]}):null,a.includes("desc")&&s!=="desc"?v.jsxs(Mn,{onClick:l,"data-value":"desc",children:[v.jsx(Pc,{children:v.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),v.jsx(Ic,{children:c("columnMenuSortDesc")})]}):null,a.includes(null)&&s!=null?v.jsxs(Mn,{onClick:l,children:[v.jsx(Pc,{}),v.jsx(Ic,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Ege=["defaultSlots","defaultSlotProps","slots","slotProps"],Oge={columnMenuSortItem:Tge,columnMenuFilterItem:kge,columnMenuColumnsItem:Ige},Mge={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Rge=p.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}=t,a=xe(t,Ege),l=xge(E({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}));return v.jsx(wge,E({ref:n},a,{children:l.map(([c,u],d)=>v.jsx(c,E({},u),d))}))}),$ge=p.forwardRef(function(t,n){return v.jsx(Rge,E({},t,{ref:n,defaultSlots:Oge,defaultSlotProps:Mge}))}),_ge=["className","slotProps"],Age=e=>{const{classes:t}=e;return ye({root:["panelWrapper"]},rt,t)},Dge=ne("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Lge=()=>!0,O5=p.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=xe(t,_ge),s=Me(),a=Age(s);return v.jsx(j_,E({open:!0,disableEnforceFocus:!0,isEnabled:Lge},o.TrapFocus,{children:v.jsx(Dge,E({ref:n,tabIndex:-1,className:ie(a.root,r),ownerState:s},i))}))}),Fge=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},jge=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,Nge=e=>{const{classes:t}=e;return ye({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},rt,t)},gO=new Intl.Collator;function M5(e){var A,D,_;const t=et(),n=p.useRef(null),r=ue(t,No),o=Vo(()=>fo(t)).current,i=ue(t,fo),s=Me(),[a,l]=p.useState(""),c=Nge(s),{sort:u,searchPredicate:d=jge,autoFocusSearchField:f=!0,disableShowHideToggle:h=!1,disableResetButton:m=!1,toggleAllMode:y="all",getTogglableColumns:C}=e,w=p.useMemo(()=>Fge(i,o),[i,o]),b=p.useMemo(()=>{switch(u){case"asc":return[...r].sort(($,L)=>gO.compare($.headerName||$.field,L.headerName||L.field));case"desc":return[...r].sort(($,L)=>-gO.compare($.headerName||$.field,L.headerName||L.field));default:return r}},[r,u]),g=$=>{const{name:L}=$.target;t.current.setColumnVisibility(L,i[L]===!1)},x=p.useMemo(()=>{const $=C?C(b):null,L=$?b.filter(({field:F})=>$.includes(F)):b;return a?L.filter(F=>d(F,a.toLowerCase())):L},[b,a,d,C]),P=p.useCallback($=>{const L=fo(t),F=E({},L),j=C?C(r):null;return(y==="filteredOnly"?x:r).forEach(N=>{N.hideable&&(j==null||j.includes(N.field))&&($?delete F[N.field]:F[N.field]=!1)}),t.current.setColumnVisibilityModel(F)},[t,r,C,y,x]),I=p.useCallback($=>{l($.target.value)},[]),T=p.useMemo(()=>x.filter($=>$.hideable),[x]),M=p.useMemo(()=>T.every($=>i[$.field]==null||i[$.field]!==!1),[i,T]),k=p.useMemo(()=>T.every($=>i[$.field]===!1),[i,T]),S=p.useRef(null);p.useEffect(()=>{f?n.current.focus():S.current&&typeof S.current.focus=="function"&&S.current.focus()},[f]);let R=!1;const O=$=>R===!1&&$.hideable!==!1?(R=!0,!0):!1;return v.jsxs(p.Fragment,{children:[v.jsx(zge,{className:c.header,ownerState:s,children:v.jsx(s.slots.baseTextField,E({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:I,variant:"outlined",size:"small",InputProps:{startAdornment:v.jsx(s.slots.baseInputAdornment,{position:"start",children:v.jsx(s.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(A=s.slotProps)==null?void 0:A.baseTextField))}),v.jsxs(Bge,{className:c.root,ownerState:s,children:[x.map($=>{var L;return v.jsx(eC,{className:c.row,control:v.jsx(s.slots.baseCheckbox,E({disabled:$.hideable===!1,checked:i[$.field]!==!1,onClick:g,name:$.field,sx:{p:.5},inputRef:O($)?S:void 0},(L=s.slotProps)==null?void 0:L.baseCheckbox)),label:$.headerName||$.field},$.field)}),x.length===0&&v.jsx(Vge,{ownerState:s,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!h||!m)&&x.length>0?v.jsxs(Hge,{ownerState:s,className:c.footer,children:[h?v.jsx("span",{}):v.jsx(eC,{control:v.jsx(s.slots.baseCheckbox,E({disabled:T.length===0,checked:M,indeterminate:!M&&!k,onClick:()=>P(!M),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(D=s.slotProps)==null?void 0:D.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:v.jsx(s.slots.baseButton,E({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:w},(_=s.slotProps)==null?void 0:_.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Bge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),zge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),Hge=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),Vge=ne("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function Uge(e){var n;const t=Me();return v.jsx(O5,E({},e,{children:v.jsx(M5,E({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const Gge=["children","className","classes"],Wge=Fe("MuiDataGrid",["panel","paper"]),Kge=ne(gl,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),qge=ne(Pr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),Yge=p.forwardRef((e,t)=>{const{children:n,className:r}=e,o=xe(e,Gge),i=et(),s=Me(),a=Wge,[l,c]=p.useState(!1),u=p.useCallback(()=>{i.current.hidePreferences()},[i]),d=p.useCallback(y=>{y.key==="Escape"&&i.current.hidePreferences()},[i]),f=p.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[h,m]=p.useState(null);return p.useEffect(()=>{var C,w;const y=(w=(C=i.current.rootElementRef)==null?void 0:C.current)==null?void 0:w.querySelector('[data-id="gridPanelAnchor"]');y&&m(y)},[i]),h?v.jsx(Kge,E({ref:t,placement:"bottom-start",className:ie(a.panel,r),ownerState:s,anchorEl:h,modifiers:f},o,{children:v.jsx(mF,{mouseEvent:"onMouseUp",onClickAway:u,children:v.jsx(qge,{className:a.paper,ownerState:s,elevation:8,onKeyDown:d,children:l&&n})})})):null}),Xge=["className"],Qge=e=>{const{classes:t}=e;return ye({root:["panelContent"]},rt,t)},Jge=Ct("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Zge(e){const{className:t}=e,n=xe(e,Xge),r=Me(),o=Qge(r);return v.jsx(Jge,E({className:ie(o.root,t),ownerState:r},n))}const eve=["className"],tve=e=>{const{classes:t}=e;return ye({root:["panelFooter"]},rt,t)},nve=Ct("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function rve(e){const{className:t}=e,n=xe(e,eve),r=Me(),o=tve(r);return v.jsx(nve,E({className:ie(o.root,t),ownerState:r},n))}const ove=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],ive=["InputComponentProps"],sve=e=>{const{classes:t}=e;return ye({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},rt,t)},ave=ne("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),lve=ne("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),cve=ne("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),uve=ne("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),dve=ne("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),fve=ne("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),pve=e=>{switch(e){case rr.And:return"filterPanelOperatorAnd";case rr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},ud=e=>e.headerName||e.field,vO=new Intl.Collator,yO=p.forwardRef(function(t,n){var me,he,je,ge,Ae,Ve,De,Q,te;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:s,showMultiFilterOperators:a,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[rr.And,rr.Or],columnsSort:f,filterColumns:h,deleteIconProps:m={},logicOperatorInputProps:y={},operatorInputProps:C={},columnInputProps:w={},valueInputProps:b={},readOnly:g}=t,x=xe(t,ove),P=et(),I=ue(P,cs),T=ue(P,Oj),M=ue(P,kn),k=yt(),S=yt(),R=yt(),O=yt(),A=Me(),D=sve(A),_=p.useRef(null),$=p.useRef(null),L=M.logicOperator??rr.And,F=o&&d.length>0,j=((me=A.slotProps)==null?void 0:me.baseFormControl)||{},z=(((he=A.slotProps)==null?void 0:he.baseSelect)||{}).native??!1,V=((je=A.slotProps)==null?void 0:je.baseInputLabel)||{},K=((ge=A.slotProps)==null?void 0:ge.baseSelectOption)||{},{InputComponentProps:H}=b,G=xe(b,ive),{filteredColumns:q,selectedField:ee}=p.useMemo(()=>{let oe=r.field;const de=I[r.field].filterable===!1?I[r.field]:null;if(de)return{filteredColumns:[de],selectedField:oe};if(h===void 0||typeof h!="function")return{filteredColumns:T,selectedField:oe};const ve=h({field:r.field,columns:T,currentFilters:(M==null?void 0:M.items)||[]});return{filteredColumns:T.filter(Se=>{const Ee=ve.includes(Se.field);return Se.field===r.field&&!Ee&&(oe=void 0),Ee}),selectedField:oe}},[h,M==null?void 0:M.items,T,r.field,I]),W=p.useMemo(()=>{switch(f){case"asc":return q.sort((oe,de)=>vO.compare(ud(oe),ud(de)));case"desc":return q.sort((oe,de)=>-vO.compare(ud(oe),ud(de)));default:return q}},[q,f]),Z=r.field?P.current.getColumn(r.field):null,U=p.useMemo(()=>{var oe;return!r.operator||!Z?null:(oe=Z.filterOperators)==null?void 0:oe.find(de=>de.value===r.operator)},[r,Z]),J=p.useCallback(oe=>{const de=oe.target.value,ve=P.current.getColumn(de);if(ve.field===Z.field)return;const Se=ve.filterOperators.find(Ce=>Ce.value===r.operator)||ve.filterOperators[0];let Oe=!Se.InputComponent||Se.InputComponent!==(U==null?void 0:U.InputComponent)||ve.type!==Z.type?void 0:r.value;if(ve.type==="singleSelect"&&Oe!==void 0){const Ce=ve,we=ol(Ce);Array.isArray(Oe)?Oe=Oe.filter(Le=>gg(Le,we,Ce==null?void 0:Ce.getOptionValue)!==void 0):gg(r.value,we,Ce==null?void 0:Ce.getOptionValue)===void 0&&(Oe=void 0)}s(E({},r,{field:de,operator:Se.value,value:Oe}))},[P,s,r,Z,U]),X=p.useCallback(oe=>{const de=oe.target.value,ve=Z==null?void 0:Z.filterOperators.find(Ee=>Ee.value===de),Se=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(U==null?void 0:U.InputComponent);s(E({},r,{operator:de,value:Se?void 0:r.value}))},[s,r,Z,U]),ae=p.useCallback(oe=>{const de=oe.target.value===rr.And.toString()?rr.And:rr.Or;c(de)},[c]),fe=()=>{i(r)};return p.useImperativeHandle(u,()=>({focus:()=>{var oe;U!=null&&U.InputComponent?(oe=_==null?void 0:_.current)==null||oe.focus():$.current.focus()}}),[U]),v.jsxs(ave,E({ref:n,className:D.root,"data-id":r.id,ownerState:A},x,{children:[v.jsx(lve,E({variant:"standard",as:A.slots.baseFormControl},j,m,{className:ie(D.deleteIcon,j.className,m.className),ownerState:A,children:v.jsx(A.slots.baseIconButton,E({"aria-label":P.current.getLocaleText("filterPanelDeleteIconLabel"),title:P.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small",disabled:g},(Ae=A.slotProps)==null?void 0:Ae.baseIconButton,{children:v.jsx(A.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(cve,E({variant:"standard",as:A.slots.baseFormControl},j,y,{sx:[F?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},j.sx,y.sx],className:ie(D.logicOperatorInput,j.className,y.className),ownerState:A,children:v.jsx(A.slots.baseSelect,E({inputProps:{"aria-label":P.current.getLocaleText("filterPanelLogicOperator")},value:L??"",onChange:ae,disabled:!!l||d.length===1,native:z},(Ve=A.slotProps)==null?void 0:Ve.baseSelect,{children:d.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.toString(),value:oe.toString()}),P.current.getLocaleText(pve(oe))))}))})),v.jsxs(uve,E({variant:"standard",as:A.slots.baseFormControl},j,w,{className:ie(D.columnInput,j.className,w.className),ownerState:A,children:[v.jsx(A.slots.baseInputLabel,E({},V,{htmlFor:k,id:S,children:P.current.getLocaleText("filterPanelColumns")})),v.jsx(A.slots.baseSelect,E({labelId:S,id:k,label:P.current.getLocaleText("filterPanelColumns"),value:ee??"",onChange:J,native:z,disabled:g},(De=A.slotProps)==null?void 0:De.baseSelect,{children:W.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.field,value:oe.field}),ud(oe)))}))]})),v.jsxs(dve,E({variant:"standard",as:A.slots.baseFormControl},j,C,{className:ie(D.operatorInput,j.className,C.className),ownerState:A,children:[v.jsx(A.slots.baseInputLabel,E({},V,{htmlFor:R,id:O,children:P.current.getLocaleText("filterPanelOperator")})),v.jsx(A.slots.baseSelect,E({labelId:O,label:P.current.getLocaleText("filterPanelOperator"),id:R,value:r.operator,onChange:X,native:z,inputRef:$,disabled:g},(Q=A.slotProps)==null?void 0:Q.baseSelect,{children:(te=Z==null?void 0:Z.filterOperators)==null?void 0:te.map(oe=>p.createElement(A.slots.baseSelectOption,E({},K,{native:z,key:oe.value,value:oe.value}),oe.label||P.current.getLocaleText(`filterOperator${re(oe.value)}`)))}))]})),v.jsx(fve,E({variant:"standard",as:A.slots.baseFormControl},j,G,{className:ie(D.valueInput,j.className,G.className),ownerState:A,children:U!=null&&U.InputComponent?v.jsx(U.InputComponent,E({apiRef:P,item:r,applyValue:s,focusElementRef:_,disabled:g},U.InputComponentProps,H),r.field):null}))]}))}),hve=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],bO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),mve=p.forwardRef(function(t,n){var O,A;const r=et(),o=Me(),i=ue(r,kn),s=ue(r,Oj),a=ue(r,cde),l=p.useRef(null),c=p.useRef(null),{logicOperators:u=[rr.And,rr.Or],columnsSort:d,filterFormProps:f,getColumnForNewFilter:h,disableAddFilterButton:m=!1,disableRemoveAllButton:y=!1}=t,C=xe(t,hve),w=r.current.upsertFilterItem,b=p.useCallback(D=>{r.current.setFilterLogicOperator(D)},[r]),g=p.useCallback(()=>{let D;if(h&&typeof h=="function"){const _=h({currentFilters:(i==null?void 0:i.items)||[],columns:s});if(_===null)return null;D=s.find(({field:$})=>$===_)}else D=s.find(_=>{var $;return($=_.filterOperators)==null?void 0:$.length});return D?bO(D):null},[i==null?void 0:i.items,s,h]),x=p.useCallback(()=>{if(h===void 0||typeof h!="function")return g();const D=i.items.length?i.items:[g()].filter(Boolean),_=h({currentFilters:D,columns:s});if(_===null)return null;const $=s.find(({field:L})=>L===_);return $?bO($):null},[i.items,s,h,g]),P=p.useMemo(()=>i.items.length?i.items:(c.current||(c.current=g()),c.current?[c.current]:[]),[i.items,g]),I=P.length>1,{readOnlyFilters:T,validFilters:M}=p.useMemo(()=>P.reduce((D,_)=>(a[_.field]?D.validFilters.push(_):D.readOnlyFilters.push(_),D),{readOnlyFilters:[],validFilters:[]}),[P,a]),k=p.useCallback(()=>{const D=x();D&&r.current.upsertFilterItems([...P,D])},[r,x,P]),S=p.useCallback(D=>{const _=M.length===1;r.current.deleteFilterItem(D),_&&r.current.hideFilterPanel()},[r,M.length]),R=p.useCallback(()=>M.length===1&&M[0].value===void 0?(r.current.deleteFilterItem(M[0]),r.current.hideFilterPanel()):r.current.setFilterModel(E({},i,{items:T}),"removeAllFilterItems"),[r,T,i,M]);return p.useEffect(()=>{u.length>0&&i.logicOperator&&!u.includes(i.logicOperator)&&b(u[0])},[u,b,i.logicOperator]),p.useEffect(()=>{M.length>0&&l.current.focus()},[M.length]),v.jsxs(O5,E({ref:n},C,{children:[v.jsxs(Zge,{children:[T.map((D,_)=>v.jsx(yO,E({item:D,applyFilterChanges:w,deleteFilter:S,hasMultipleFilters:I,showMultiFilterOperators:_>0,disableMultiFilterOperator:_!==1,applyMultiFilterOperatorChanges:b,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},f),D.id==null?_:D.id)),M.map((D,_)=>v.jsx(yO,E({item:D,applyFilterChanges:w,deleteFilter:S,hasMultipleFilters:I,showMultiFilterOperators:T.length+_>0,disableMultiFilterOperator:T.length+_!==1,applyMultiFilterOperatorChanges:b,focusElementRef:_===M.length-1?l:null,logicOperators:u,columnsSort:d},f),D.id==null?_+T.length:D.id))]}),!o.disableMultipleColumnsFiltering&&!(m&&y)?v.jsxs(rve,{children:[m?v.jsx("span",{}):v.jsx(o.slots.baseButton,E({onClick:k,startIcon:v.jsx(o.slots.filterPanelAddIcon,{})},(O=o.slotProps)==null?void 0:O.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!y&&M.length>0?v.jsx(o.slots.baseButton,E({onClick:R,startIcon:v.jsx(o.slots.filterPanelRemoveAllIcon,{})},(A=o.slotProps)==null?void 0:A.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),gve=["hideMenu","options"],vve=["hideMenu","options"];function yve(e){const t=et(),{hideMenu:n,options:r}=e,o=xe(e,gve);return v.jsx(Mn,E({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function bve(e){const t=et(),{hideMenu:n,options:r}=e,o=xe(e,vve);return v.jsx(Mn,E({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const wve=["className","selectedRowCount"],Cve=e=>{const{classes:t}=e;return ye({root:["selectedRowCount"]},rt,t)},xve=Ct("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Sve=p.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=xe(t,wve),s=et(),a=Me(),l=Cve(a),c=s.current.getLocaleText("footerRowSelected")(o);return v.jsx(xve,E({ref:n,className:ie(l.root,r),ownerState:a},i,{children:c}))}),Pve=p.forwardRef(function(t,n){var d,f;const r=et(),o=Me(),i=ue(r,Kde),s=ue(r,xfe),a=ue(r,V1),l=!o.hideFooterSelectedRowCount&&s>0?v.jsx(Sve,{selectedRowCount:s}):v.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?v.jsx(o.slots.footerRowCount,E({},(d=o.slotProps)==null?void 0:d.footerRowCount,{rowCount:i,visibleRowCount:a})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&v.jsx(o.slots.pagination,E({},(f=o.slotProps)==null?void 0:f.pagination));return v.jsxs(xme,E({ref:n},t,{children:[l,c,u]}))});function Ive(){var i,s;const e=et(),t=ue(e,No),n=Me(),r=ue(e,Lf),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??il.filters);return v.jsx(n.slots.panel,E({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(i=n.slotProps)==null?void 0:i.panel,(s=n.slotProps)==null?void 0:s.basePopper,{children:o}))}function kve(){var t;const e=Me();return v.jsxs(p.Fragment,{children:[v.jsx(Ive,{}),e.slots.toolbar&&v.jsx(e.slots.toolbar,E({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const Z1=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let s;switch(e){case It.LEFT:s=r[n];break;case It.RIGHT:s=o.columnsTotalWidth-r[n]-t+i;break;default:s=0;break}return s},dd={root:B.scrollbarFiller,header:B["scrollbarFiller--header"],borderTop:B["scrollbarFiller--borderTop"],borderBottom:B["scrollbarFiller--borderBottom"],pinnedRight:B["scrollbarFiller--pinnedRight"]};function eP({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return v.jsx("div",{role:"presentation",className:ie(dd.root,e&&dd.header,t&&dd.borderTop,n&&dd.borderBottom,r&&dd.pinnedRight)})}const Tve=Ct("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),Eve=e=>{const{classes:t}=e;return ye({root:["skeletonLoadingOverlay"]},rt,t)},wO=e=>parseInt(e.getAttribute("data-colindex"),10),Ove=p.forwardRef(function(t,n){const r=Me(),{slots:o}=r,i=Eve({classes:r.classes}),s=p.useRef(null),a=mt(s,n),l=et(),c=ue(l,_n),u=(c==null?void 0:c.viewportInnerSize.height)??0,d=Math.ceil(u/c.rowHeight),f=ue(l,L1),h=ue(l,fa),m=p.useMemo(()=>h.filter(I=>I<=f).length,[f,h]),y=ue(l,mn),C=p.useMemo(()=>y.slice(0,m),[y,m]),w=ue(l,pp),b=p.useCallback((I,T,M)=>{const k=Z1(M,I,T,h,c);return{[M]:k}},[c,h]),g=p.useCallback(I=>{if(w.left.findIndex(T=>T.field===I)!==-1)return It.LEFT;if(w.right.findIndex(T=>T.field===I)!==-1)return It.RIGHT},[w.left,w.right]),x=p.useMemo(()=>{const I=[];for(let T=0;TZ.field===S.field):k-w.left.length,$=R&&b(S.computedWidth,k,R),L=c.columnsTotalWidth0},`skeleton-scrollbar-filler-${T}`))}I.push(v.jsx("div",{className:ie(B.row,B.rowSkeleton,T===0&&B["row--firstVisible"]),children:M},`skeleton-row-${T}`))}return I},[o,C,w,d,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,g,b]);return Ie(l,"columnResize",I=>{var $,L,F;const{colDef:T,width:M}=I,k=($=s.current)==null?void 0:$.querySelectorAll(`[data-field="${us(T.field)}"]`);if(!k)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const S=C.findIndex(j=>j.field===T.field),R=g(T.field),O=R===It.LEFT,A=R===It.RIGHT,D=getComputedStyle(k[0]).getPropertyValue("--width"),_=parseInt(D,10)-M;if(k&&k.forEach(j=>{j.style.setProperty("--width",`${M}px`)}),O){const j=(L=s.current)==null?void 0:L.querySelectorAll(`.${B["cell--pinnedLeft"]}`);j==null||j.forEach(N=>{wO(N)>S&&(N.style.left=`${parseInt(getComputedStyle(N).left,10)-_}px`)})}if(A){const j=(F=s.current)==null?void 0:F.querySelectorAll(`.${B["cell--pinnedRight"]}`);j==null||j.forEach(N=>{wO(N)({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Va.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Va.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Dve=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),Lve=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,Fve=p.forwardRef(function(t,n){const r=et(),o=Me(),i=ue(r,nr),s=ue(r,hc),a=ue(r,r5),{paginationMode:l,loading:c,estimatedRowCount:u}=o,d=p.useMemo(()=>s===-1&&l==="server"&&c?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[c,l,s]),f=p.useMemo(()=>Math.max(0,a-1),[a]),h=p.useMemo(()=>s===-1||i.page<=f?i.page:f,[f,i.page,s]),m=p.useCallback(x=>{const P=Number(x.target.value);r.current.setPageSize(P)},[r]),y=p.useCallback((x,P)=>{r.current.setPage(P)},[r]),w=(x=>{for(let P=0;P{const{classes:t}=e;return ye({root:["rowCount"]},rt,t)},Bve=Ct("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),zve=p.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=xe(t,jve),a=et(),l=Me(),c=Nve(l);if(o===0)return null;const u=i=d.left.length&&y=m.lastColumnIndex,Z=Hve(D.classes,{root:["row",r&&"selected",G&&"row--editable",H&&"row--editing",C&&"row--firstVisible",w&&"row--lastVisible",g&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),U=O.hooks.useGridRowAriaAttributes();p.useLayoutEffect(()=>{if(_.range){const Ce=R.current.getRowIndexRelativeToVisibleRows(o);Ce!==void 0&&R.current.unstable_setLastMeasuredRowIndex(Ce)}if(A.current&&l==="auto")return R.current.observeRowHeight(A.current,o)},[R,_.range,l,o]);const J=p.useCallback((Ce,we)=>Le=>{vp(Le)||R.current.getRow(o)&&(R.current.publishEvent(Ce,R.current.getRowParams(o),Le),we&&we(Le))},[R,o]),X=p.useCallback(Ce=>{const we=vg(Ce.target,B.cell),Le=we==null?void 0:we.getAttribute("data-field");if(Le){if(Le===Du.field||Le===sy||Le==="__reorder__"||R.current.getCellMode(o,Le)===pt.Edit)return;const lt=R.current.getColumn(Le);if((lt==null?void 0:lt.type)===ry)return}J("rowClick",x)(Ce)},[R,x,J,o]),{slots:ae,slotProps:fe,disableColumnReorder:me}=D,he=D.rowReordering,je=ue(R,()=>E({},R.current.getRowHeightEntry(o)),Ij),ge=p.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const Ce=E({},a,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(je.spacingTop){const we=D.rowSpacingType==="border"?"borderTopWidth":"marginTop";Ce[we]=je.spacingTop}if(je.spacingBottom){const we=D.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Le=Ce[we];typeof Le!="number"&&(Le=parseInt(Le||"0",10)),Le+=je.spacingBottom,Ce[we]=Le}return Ce},[b,l,a,je,D.rowSpacingType]),Ae=R.current.unstable_applyPipeProcessors("rowClassName",[],o),Ve=z?U(z,s):void 0;if(typeof D.getRowClassName=="function"){const Ce=s-(((Oe=_.range)==null?void 0:Oe.firstRowIndex)||0),we=E({},R.current.getRowParams(o),{isFirstVisible:Ce===0,isLastVisible:Ce===_.rows.length-1,indexRelativeToCurrentPage:Ce});Ae.push(D.getRowClassName(we))}const De=(Ce,we,Le,lt,pe=pr.NONE)=>{var xi;const ke=R.current.unstable_getCellColSpanInfo(o,Le);if(ke!=null&&ke.spannedByColSpan)return null;const Ke=(ke==null?void 0:ke.cellProps.width)??Ce.computedWidth,gt=(ke==null?void 0:ke.cellProps.colSpan)??1,Kn=Z1(P5[pe],Ce.computedWidth,Le,F,h);if((z==null?void 0:z.type)==="skeletonRow")return v.jsx(ae.skeletonCell,{type:Ce.type,width:Ke,height:l,field:Ce.field,align:Ce.align},Ce.field);const qn=((xi=j[o])==null?void 0:xi[Ce.field])??null,An=Ce.field==="__reorder__",Yn=Object.keys(j).length>0,Tr=!(me||Ce.disableReorder),cr=he&&!$.length&&L<=1&&!Yn,Xn=!(Tr||An&&cr),Yr=pe===pr.VIRTUAL;return v.jsx(ae.cell,E({column:Ce,width:Ke,rowId:o,align:Ce.align||"left",colIndex:Le,colSpan:gt,disableDragEvents:Xn,editCellState:qn,isNotVisible:Yr,pinnedOffset:Kn,pinnedPosition:pe,sectionIndex:we,sectionLength:lt,gridHasFiller:K},fe==null?void 0:fe.cell),Ce.field)};if(!z)return null;const Q=d.left.map((Ce,we)=>De(Ce,we,we,d.left.length,pr.LEFT)),te=d.right.map((Ce,we)=>{const Le=u.length-d.right.length+we;return De(Ce,we,Le,d.right.length,pr.RIGHT)}),oe=u.length-d.left.length-d.right.length,de=[];ee&&de.push(De(u[y],y-d.left.length,y,oe,pr.VIRTUAL));for(let Ce=m.firstColumnIndex;Ce0&&v.jsx(Uve,{width:Ee}),te.length>0&&v.jsx("div",{role:"presentation",className:B.filler}),te,V!==0&&v.jsx(eP,{pinnedRight:d.right.length>0})]}))}),Wve=da(Gve),Kve=()=>{const e=To(),t=Me(),n=ue(e,mn),r=ue(e,H1),o=ue(e,gp),i=ue(e,Qde);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":U1(t)}},qve=()=>{const e=To(),t=ue(e,Ki),n=ue(e,gp);return p.useCallback((r,o)=>{const i={},s=o+n+2;return i["aria-rowindex"]=s,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function Yve({privateApiRef:e,configuration:t,props:n,children:r}){const o=p.useRef(e.current.getPublicApi());return v.jsx(g5.Provider,{value:t,children:v.jsx(Sj.Provider,{value:n,children:v.jsx(d5.Provider,{value:e,children:v.jsx(xj.Provider,{value:o,children:r})})})})}const Xve=e=>{const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),s=p.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:s})},Qve=e=>{const t=Ir();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=p.useRef(!0);p.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>E({},r,{isRtl:t}))},[e,t])},Jve=Pde()&&window.localStorage.getItem("DEBUG")!=null,Pd=()=>{},Zve={debug:Pd,info:Pd,warn:Pd,error:Pd},CO=["debug","info","warn","error"];function xO(e,t,n=console){const r=CO.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return CO.reduce((i,s,a)=>(a>=r?i[s]=(...l)=>{const[c,...u]=l;n[s](`MUI X: ${e} - ${c}`,...u)}:i[s]=Pd,i),{})}const eye=(e,t)=>{const n=p.useCallback(r=>Jve?xO(r,"debug",t.logger):t.logLevel?xO(r,t.logLevel.toString(),t.logger):Zve,[t.logLevel,t.logger]);Xe(e,{getLogger:n},"private")};class tye{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const R5=Symbol("mui.api_private"),nye=e=>e.isPropagationStopped!==void 0;let SO=0;function rye(e){var o;const t=(o=e.current)==null?void 0:o[R5];if(t)return t;const n={},r={state:n,store:tP.create(n),instanceId:{id:SO}};return SO+=1,r.getPublicApi=()=>e.current,r.register=(i,s)=>{Object.keys(s).forEach(a=>{const l=s[a],c=r[a];if((c==null?void 0:c.spying)===!0?c.target=l:r[a]=l,i==="public"){const u=e.current,d=u[a];(d==null?void 0:d.spying)===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new tye}),r}function oye(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[R5]:e.current}}function iye(e,t){var s;const n=p.useRef(),r=p.useRef();r.current||(r.current=rye(n)),n.current||(n.current=oye(r));const o=p.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,nye(u)&&u.isPropagationStopped())return;const d=t.signature===go.DataGridPro||t.signature===go.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=p.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return Xe(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((s=e.current)!=null&&s.state)&&(e.current=n.current),p.useImperativeHandle(e,()=>n.current,[n]),p.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const sye=(e,t)=>{const n=p.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},aye=e=>{const t=p.useRef({}),n=p.useRef(!1),r=p.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=p.useCallback((u,d,f)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const h=t.current[u];return h.processors.get(d)!==f&&(h.processors.set(d,f),h.processorsAsArray=Array.from(t.current[u].processors.values()),r(h)),()=>{t.current[u].processors.delete(d),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),i=p.useCallback((u,d,f)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[d]=f,()=>{const h=t.current[u].appliers,m=xe(h,[d].map(ru));t.current[u].appliers=m}),[]),s=p.useCallback(u=>{r(t.current[u])},[r]),a=p.useCallback((...u)=>{const[d,f,h]=u;if(!t.current[d])return f;const m=t.current[d].processorsAsArray;let y=f;for(let C=0;C{const r=p.useRef(),o=p.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=p.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);mp(()=>{i()});const s=p.useRef(!0);p.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},nP=(e,t,n)=>{const r=p.useRef(),o=p.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=p.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);mp(()=>{i()});const s=p.useRef(!0);p.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},bg=(e,t,n,r)=>{const o=p.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);mp(()=>{o()});const i=p.useRef(!0);p.useEffect(()=>{i.current?i.current=!1:o()},[o])},sl="none",PO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},lye=e=>{const t=p.useRef(new Map),n=p.useRef({}),r=p.useCallback((l,c,u)=>{const d=()=>{const m=n.current[c],y=xe(m,[l].map(ru));n.current[c]=y};n.current[c]||(n.current[c]={});const f=n.current[c],h=f[l];return f[l]=u,!h||h===u||l===e.current.getActiveStrategy(PO[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=p.useCallback((l,c)=>{const u=e.current.getActiveStrategy(PO[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const f=d[u];return f(c)},[e]),i=p.useCallback(l=>{const u=Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable());return(u==null?void 0:u[0])??sl},[]),s=p.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Xe(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:s},"private")},cye=e=>{const t=p.useRef({}),[,n]=p.useState(),r=p.useCallback(c=>{t.current[c.stateId]=c},[]),o=p.useCallback((c,u)=>{let d;if(_j(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let f=!1;const h=[];if(Object.keys(t.current).forEach(m=>{const y=t.current[m],C=y.stateSelector(e.current.state,e.current.instanceId),w=y.stateSelector(d,e.current.instanceId);w!==C&&(h.push({stateId:y.stateId,hasPropChanged:w!==y.propModel}),y.propModel!==void 0&&w!==y.propModel&&(f=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(m=>m.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),h.length===1){const{stateId:m,hasPropChanged:y}=h[0],C=t.current[m],w=C.stateSelector(d,e.current.instanceId);C.propOnChange&&y&&C.propOnChange(w,{reason:u,api:e.current}),f||e.current.publishEvent(C.changeEvent,w,{reason:u})}return!f},[e]),i=p.useCallback((c,u,d)=>e.current.setState(f=>E({},f,{[c]:u(f[c])}),d),[e]),s=p.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:s},l={updateControlState:i,registerControlState:r};Xe(e,a,"public"),Xe(e,l,"private")},uye=(e,t)=>{const n=iye(e,t);return Xve(n),Qve(n),eye(n,t),cye(n),aye(n),lye(n),sye(n,t),n.current.register("private",{rootProps:t}),n},bn=(e,t,n)=>{const r=p.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function PC(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,` +`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const $5=(e,t)=>{var i,s;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((s=e.value)==null?void 0:s.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return PC(o,n)};class IC{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const dye=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new IC({csvOptions:r});return t.forEach(s=>{const a=n(e,s.field);i.addValue($5(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function fye(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,s=n.reduce((d,f)=>`${d}${dye({id:f,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r +`,"").trim();if(!r.includeHeaders)return s;const a=t.filter(d=>d.field!==Du.field),l=[];if(r.includeColumnGroupsHeaders){const d=i.current.getAllGroupDetails();let f=0;const h=a.reduce((m,y)=>{const C=i.current.getColumnGroupPath(y.field);return m[y.field]=C,f=Math.max(f,C.length),m},{});for(let m=0;m{const w=(h[C.field]||[])[m],b=d[w];y.addValue(b?b.headerName||b.groupId:"")})}}const c=new IC({csvOptions:r,sanitizeCellValue:PC});return a.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r `)}\r -`}${s}`.trim()}function SO(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function fye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{SO(e)}):SO(e)}function pye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const hye=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=p.useCallback(s=>{if(!gge(s)||pye(s.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Or(e);if(c){const u=e.current.getCellParams(c.id,c.field);a=M5(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(fye(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Qj(e,e.current.rootElementRef,"keydown",i),St(e,"clipboardCopy",t.onClipboardCopy)},mye=e=>E({},e,{columnMenu:{open:!1}}),gye=e=>{const t=yn(e,"useGridColumnMenu"),n=p.useCallback(s=>{const a=Hh(e.current.state),l={open:!0,field:s};(l.open!==a.open||l.field!==a.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===s?u:(t.debug("Opening Column Menu"),E({},u,{columnMenu:{open:!0,field:s}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=p.useCallback(()=>{const s=Hh(e.current.state);if(s.field){const c=ls(e),u=fo(e),d=Wi(e);let f=s.field;if(c[f]||(f=d[0]),u[f]===!1){const h=d.filter(y=>y===f?!0:u[y]!==!1),m=h.indexOf(f);f=h[m+1]||h[m-1]}e.current.setColumnHeaderFocus(f)}const a={open:!1,field:void 0};(a.open!==s.open||a.field!==s.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),E({},c,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=p.useCallback(s=>{t.debug("Toggle Column Menu");const a=Hh(e.current.state);!a.open||a.field!==s?n(s):r()},[e,t,n,r]);Xe(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ie(e,"columnResizeStart",r),Ie(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ie(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},vye=(e,t,n)=>{var o,i,s;const r=Wl({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((s=(i=t.initialState)==null?void 0:i.columns)==null?void 0:s.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return E({},e,{columns:r,pinnedColumns:e.pinnedColumns??yC})};function yye(e,t){var S,R;const n=yn(e,"useGridColumns"),r=p.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:fo,changeEvent:"columnVisibilityModelChange"});const o=p.useCallback(O=>{var A,D;n.debug("Updating columns state."),e.current.setState(PO(O)),e.current.publishEvent("columnsChange",O.orderedFields),(D=(A=e.current).updateRenderContext)==null||D.call(A),e.current.forceUpdate()},[n,e]),i=p.useCallback(O=>ls(e)[O],[e]),s=p.useCallback(()=>No(e),[e]),a=p.useCallback(()=>mn(e),[e]),l=p.useCallback((O,A=!0)=>(A?mn(e):No(e)).findIndex(_=>_.field===O),[e]),c=p.useCallback(O=>{const A=l(O);return da(e)[A]},[e,l]),u=p.useCallback(O=>{var D,_;fo(e)!==O&&(e.current.setState($=>E({},$,{columns:Wl({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),(_=(D=e.current).updateRenderContext)==null||_.call(D),e.current.forceUpdate())},[e]),d=p.useCallback(O=>{const A=Wl({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(A)},[e,o]),f=p.useCallback((O,A)=>{const D=fo(e),_=D[O]??!0;if(A!==_){const $=E({},D,{[O]:A});e.current.setColumnVisibilityModel($)}},[e]),h=p.useCallback(O=>Wi(e).findIndex(D=>D===O),[e]),m=p.useCallback((O,A)=>{const D=Wi(e),_=h(O);if(_===A)return;n.debug(`Moving column ${O} to index ${A}`);const $=[...D],L=$.splice(_,1)[0];$.splice(A,0,L),o(E({},di(e.current.state),{orderedFields:$}));const F={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:_};e.current.publishEvent("columnIndexChange",F)},[e,n,o,h]),y=p.useCallback((O,A)=>{n.debug(`Updating column ${O} width to ${A}`);const D=di(e.current.state),_=D.lookup[O],$=E({},_,{width:A,hasBeenResized:!0});o(wC(E({},D,{lookup:E({},D.lookup,{[O]:$})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:$,width:A})},[e,n,o]),C={getColumn:i,getAllColumns:s,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:h,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:y},w={setColumnIndex:m};Xe(e,C,"public"),Xe(e,w,t.signature===go.DataGrid?"private":"public");const b=p.useCallback((O,A)=>{var j,N;const D={},_=fo(e);(!A.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((N=(j=t.initialState)==null?void 0:j.columns)==null?void 0:N.columnVisibilityModel)??{}).length>0||Object.keys(_).length>0)&&(D.columnVisibilityModel=_),D.orderedFields=Wi(e);const L=No(e),F={};return L.forEach(z=>{if(z.hasBeenResized){const V={};l5.forEach(K=>{let H=z[K];H===1/0&&(H=-1),V[K]=H}),F[z.field]=V}}),Object.keys(F).length>0&&(D.dimensions=F),E({},O,{columns:D})},[e,t.columnVisibilityModel,(S=t.initialState)==null?void 0:S.columns]),g=p.useCallback((O,A)=>{var L;const D=(L=A.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,_=A.stateToRestore.columns;if(D==null&&_==null)return O;const $=Wl({apiRef:e,columnsToUpsert:[],initialState:_,columnVisibilityModel:D,keepOnlyColumnsToUpsert:!1});return e.current.setState(PO($)),_!=null&&e.current.publishEvent("columnsChange",$.orderedFields),O},[e]),x=p.useCallback((O,A)=>{var D;if(A===il.columns){const _=t.slots.columnsPanel;return v.jsx(_,E({},(D=t.slotProps)==null?void 0:D.columnsPanel))}return O},[t.slots.columnsPanel,(R=t.slotProps)==null?void 0:R.columnsPanel]),P=p.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Lt(e,"columnMenu",P),Lt(e,"exportState",b),Lt(e,"restoreState",g),Lt(e,"preferencePanel",x);const I=p.useRef(null);Ie(e,"viewportInnerSizeChange",O=>{I.current!==O.width&&(I.current=O.width,o(wC(di(e.current.state),e.current.getRootDimensions())))});const M=p.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const O=Wl({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(O)},[e,n,o]);eP(e,"hydrateColumns",M);const k=p.useRef(!0);p.useEffect(()=>{if(k.current){k.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const O=Wl({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(O)},[n,e,o,t.columns]),p.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function PO(e){return t=>E({},t,{columns:e})}const bye=(e,t)=>{var n;return E({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},wye=(e,t)=>{var a;const n=yn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:pc,changeEvent:"densityChange"});const o={setDensity:nt(l=>{pc(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>E({},u,{density:l})))})};Xe(e,o,"public");const i=p.useCallback((l,c)=>{var f;const u=pc(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?E({},l,{density:u}):l},[e,t.density,(a=t.initialState)==null?void 0:a.density]),s=p.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:pc(e.current.state);return e.current.setState(f=>E({},f,{density:u})),l},[e]);Lt(e,"exportState",i),Lt(e,"restoreState",s),p.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function Cye(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const R5=({apiRef:e,options:t})=>{const n=No(e);return t.fields?t.fields.reduce((o,i)=>{const s=n.find(a=>a.field===i);return s&&o.push(s),o},[]):(t.allColumns?n:mn(e)).filter(o=>!o.disableExport)},$5=({apiRef:e})=>{var l,c;const t=Kj(e),n=Hn(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),i=bl(e),s=((l=i==null?void 0:i.top)==null?void 0:l.map(u=>u.id))||[],a=((c=i==null?void 0:i.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...s),o.push(...a),r.size>0?o.filter(u=>r.has(u)):o},xye=(e,t)=>{const n=yn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=p.useCallback((c={})=>{n.debug("Get data as CSV");const u=R5({apiRef:e,options:c}),f=(c.getRowsToExport??$5)({apiRef:e});return dye({columns:u,rowIds:f,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=p.useCallback(c=>{n.debug("Export data as CSV");const u=i(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});Cye(d,"csv",c==null?void 0:c.fileName)},[n,i]);Xe(e,{getDataAsCsv:i,exportDataAsCsv:s},"public");const l=p.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:v.jsx(vve,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Lt(e,"exportMenu",l)},Uh=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,s=(n==null?void 0:n.page)??r.page,a=Jj(o,i,s);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=Lfe(r.page,a);return l!==r.page&&(r=E({},r,{page:l})),e5(r.pageSize,t),r},Sye=(e,t)=>{var m,y;const n=yn(e,"useGridPaginationModel"),r=ue(e,fp),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:nr,changeEvent:"paginationModelChange"});const i=p.useCallback(C=>{const w=nr(e);C!==w.page&&(n.debug(`Setting page to ${C}`),e.current.setPaginationModel({page:C,pageSize:w.pageSize}))},[e,n]),s=p.useCallback(C=>{const w=nr(e);C!==w.pageSize&&(n.debug(`Setting page size to ${C}`),e.current.setPaginationModel({pageSize:C,page:w.page}))},[e,n]),a=p.useCallback(C=>{const w=nr(e);C!==w&&(n.debug("Setting 'paginationModel' to",C),e.current.setState(b=>E({},b,{pagination:E({},b.pagination,{paginationModel:Uh(b.pagination,t.signature,C)})})))},[e,n,t.signature]);Xe(e,{setPage:i,setPageSize:s,setPaginationModel:a},"public");const c=p.useCallback((C,w)=>{var x,P;const b=nr(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((P=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:P.paginationModel)!=null||b.page!==0&&b.pageSize!==Dfe(t.autoPageSize)?E({},C,{pagination:E({},C.pagination,{paginationModel:b})}):C},[e,t.paginationModel,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.paginationModel,t.autoPageSize]),u=p.useCallback((C,w)=>{var g,x;const b=(g=w.stateToRestore.pagination)!=null&&g.paginationModel?E({},Zj(t.autoPageSize),(x=w.stateToRestore.pagination)==null?void 0:x.paginationModel):nr(e);return e.current.setState(P=>E({},P,{pagination:E({},P.pagination,{paginationModel:Uh(P.pagination,t.signature,b)})})),C},[e,t.autoPageSize,t.signature]);Lt(e,"exportState",c),Lt(e,"restoreState",u);const d=()=>{var w;const C=nr(e);(w=e.current.virtualScrollerRef)!=null&&w.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize})},f=p.useCallback(()=>{if(!t.autoPageSize)return;const C=e.current.getRootDimensions(),w=Math.floor(C.viewportInnerSize.height/o);e.current.setPageSize(w)},[e,t.autoPageSize,o]),h=p.useCallback(C=>{if(C==null)return;const w=nr(e),b=t5(e);w.page>b-1&&e.current.setPage(Math.max(0,b-1))},[e]);Ie(e,"viewportInnerSizeChange",f),Ie(e,"paginationModelChange",d),Ie(e,"rowCountChange",h),p.useEffect(()=>{e.current.setState(C=>E({},C,{pagination:E({},C.pagination,{paginationModel:Uh(C.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),p.useEffect(f,[f])};function Pye(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Iye(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const kye=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=yn(e,"useGridPrintExport"),o=p.useRef(null),i=p.useRef(null),s=p.useRef({}),a=p.useRef([]),l=p.useRef();p.useEffect(()=>{o.current=Wt(e.current.rootElementRef.current)},[e,n]);const c=p.useCallback((C,w,b)=>new Promise(g=>{const x=R5({apiRef:e,options:{fields:C,allColumns:w}}).map(T=>T.field),P=No(e),I={};P.forEach(T=>{I[T.field]=x.includes(T.field)}),b&&(I[Du.field]=!0),e.current.setColumnVisibilityModel(I),g()}),[e]),u=p.useCallback(C=>{const b=C({apiRef:e}).reduce((g,x)=>{const P=e.current.getRow(x);return P[_c]||g.push(P),g},[]);e.current.setRows(b)},[e]),d=p.useCallback((C,w)=>{var D,_,$,L;const b=E({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},w),g=C.contentDocument;if(!g)return;const x=Lu(e.current.state),P=e.current.rootElementRef.current,I=P.cloneNode(!0),T=I.querySelector(`.${B.main}`);T.style.overflow="visible",I.style.contain="size";let M=((D=P.querySelector(`.${B.toolbarContainer}`))==null?void 0:D.offsetHeight)||0,k=((_=P.querySelector(`.${B.footerContainer}`))==null?void 0:_.offsetHeight)||0;b.hideToolbar&&(($=I.querySelector(`.${B.toolbarContainer}`))==null||$.remove(),M=0),b.hideFooter&&((L=I.querySelector(`.${B.footerContainer}`))==null||L.remove(),k=0);const S=x.currentPageTotalHeight+W1(e,t)+M+k;if(I.style.height=`${S}px`,I.style.boxSizing="content-box",!b.hideFooter){const F=I.querySelector(`.${B.footerContainer}`);F.style.position="absolute",F.style.width="100%",F.style.top=`${S-k}px`}const R=document.createElement("div");R.appendChild(I),g.body.style.marginTop="0px",g.body.innerHTML=R.innerHTML;const O=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof O=="string"){const F=g.createElement("style");F.appendChild(g.createTextNode(O)),g.head.appendChild(F)}b.bodyClassName&&g.body.classList.add(...b.bodyClassName.split(" "));const A=[];if(b.copyStyles){const F=P.getRootNode(),N=(F.constructor.name==="ShadowRoot"?F:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z{K.addEventListener("load",()=>H())})),g.head.appendChild(K)}}}Promise.all(A).then(()=>{C.contentWindow.print()})},[e,o,t]),f=p.useCallback(C=>{var w,b;o.current.body.removeChild(C),e.current.restoreState(i.current||{}),(b=(w=i.current)==null?void 0:w.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState(g=>E({},g,{virtualization:l.current})),e.current.setRows(a.current),i.current=null,s.current={},a.current=[]},[e]),m={exportDataAsPrint:p.useCallback(async C=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),s.current=fo(e),a.current=e.current.getSortedRows().filter(b=>!b[_c]),t.pagination){const g={page:0,pageSize:B1(e)};e.current.setState(x=>E({},x,{pagination:E({},x.pagination,{paginationModel:Uh(x.pagination,"DataGridPro",g)})}))}l.current=e.current.state.virtualization,e.current.setState(b=>E({},b,{virtualization:E({},b.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(C==null?void 0:C.fields,C==null?void 0:C.allColumns,C==null?void 0:C.includeCheckboxes),u((C==null?void 0:C.getRowsToExport)??$5),await Pye();const w=Iye(C==null?void 0:C.fileName);w.onload=()=>{d(w,C),w.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&f(w)})},o.current.body.appendChild(w)},[t,r,e,d,f,c,u])};Xe(e,m,"public");const y=p.useCallback((C,w)=>{var b;return(b=w.printOptions)!=null&&b.disableToolbarButton?C:[...C,{component:v.jsx(yve,{options:w.printOptions}),componentName:"printExport"}]},[]);Lt(e,"exportMenu",y)},Tye=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??Af();return E({},e,{filter:{filterModel:F1(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Eye=e=>e.filteredRowsLookup;function IO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Oye(){return Pj(Object.values)}const Mye=(e,t)=>{var k,S,R;const n=yn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:In,changeEvent:"filterModelChange"});const r=p.useCallback(()=>{e.current.setState(O=>{const A=In(O,e.current.instanceId),D=e.current.getFilterState(A),_=E({},O,{filter:E({},O.filter,D)}),$=IO(e,_);return E({},_,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e]),o=p.useCallback((O,A)=>A==null||A.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),i=p.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),s=p.useCallback(O=>{const A=In(e),D=[...A.items],_=D.findIndex($=>$.id===O.id);_===-1?D.push(O):D[_]=O,e.current.setFilterModel(E({},A,{items:D}),"upsertFilterItem")},[e]),a=p.useCallback(O=>{const A=In(e),D=[...A.items];O.forEach(_=>{const $=D.findIndex(L=>L.id===_.id);$===-1?D.push(_):D[$]=_}),e.current.setFilterModel(E({},A,{items:D}),"upsertFilterItems")},[e]),l=p.useCallback(O=>{const A=In(e),D=A.items.filter(_=>_.id!==O.id);D.length!==A.items.length&&e.current.setFilterModel(E({},A,{items:D}),"deleteFilterItem")},[e]),c=p.useCallback((O,A,D)=>{if(n.debug("Displaying filter panel"),O){const _=In(e),$=_.items.filter(N=>{var H;if(N.value!==void 0)return!(Array.isArray(N.value)&&N.value.length===0);const V=(H=e.current.getColumn(N.field).filterOperators)==null?void 0:H.find(G=>G.value===N.operator);return!(typeof(V==null?void 0:V.requiresFilterValue)>"u"?!0:V==null?void 0:V.requiresFilterValue)});let L;const F=$.find(N=>N.field===O),j=e.current.getColumn(O);F?L=$:t.disableMultipleColumnsFiltering?L=[bC({field:O,operator:j.filterOperators[0].value},e)]:L=[...$,bC({field:O,operator:j.filterOperators[0].value},e)],e.current.setFilterModel(E({},_,{items:L}))}e.current.showPreferences(il.filters,A,D)},[e,n,t.disableMultipleColumnsFiltering]),u=p.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=p.useCallback(O=>{const A=In(e);A.logicOperator!==O&&e.current.setFilterModel(E({},A,{logicOperator:O}),"changeLogicOperator")},[e]),f=p.useCallback(O=>{const A=In(e);$c(A.quickFilterValues,O)||e.current.setFilterModel(E({},A,{quickFilterValues:[...O]}))},[e]),h=p.useCallback((O,A)=>{In(e)!==O&&(n.debug("Setting filter model"),e.current.updateControlState("filter",F2(O,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),m=p.useCallback(O=>{const A=F1(O,t.disableMultipleColumnsFiltering,e),D=t.filterMode==="client"?Rde(A,e,t.disableEval):null,_=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:D,filterModel:A??Af()});return E({},_,{filterModel:A})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:s,upsertFilterItems:a,setFilterModel:h,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:m};Xe(e,y,"public");const C=p.useCallback((O,A)=>{var $,L;const D=In(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((L=($=t.initialState)==null?void 0:$.filter)==null?void 0:L.filterModel)!=null||!$c(D,Af())?E({},O,{filter:{filterModel:D}}):O},[e,t.filterModel,(S=(k=t.initialState)==null?void 0:k.filter)==null?void 0:S.filterModel]),w=p.useCallback((O,A)=>{var _;const D=(_=A.stateToRestore.filter)==null?void 0:_.filterModel;return D==null?O:(e.current.updateControlState("filter",F2(D,t.disableMultipleColumnsFiltering,e),"restoreState"),E({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),b=p.useCallback((O,A)=>{var D;if(A===il.filters){const _=t.slots.filterPanel;return v.jsx(_,E({},(D=t.slotProps)==null?void 0:D.filterPanel))}return O},[t.slots.filterPanel,(R=t.slotProps)==null?void 0:R.filterPanel]),{getRowId:g}=t,x=Vo(Oye),P=p.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const A=La(e),D={},{isRowMatchingFilters:_}=O,$={},L={passingFilterItems:null,passingQuickFilterValues:null},F=x.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z{n.debug("onColUpdated - GridColumns changed, applying filters");const O=In(e),A=ls(e),D=O.items.filter(_=>_.field&&A[_.field]);D.length{O==="filtering"&&e.current.unstable_applyFilters()},[e]),M=p.useCallback(()=>{e.current.setState(O=>E({},O,{visibleRowsLookup:IO(e,O)})),e.current.forceUpdate()},[e]);Ie(e,"rowsSet",r),Ie(e,"columnsChange",I),Ie(e,"activeStrategyProcessorChange",T),Ie(e,"rowExpansionChange",M),Ie(e,"columnVisibilityModelChange",()=>{const O=In(e);O.quickFilterValues&&Fj(O)&&e.current.unstable_applyFilters()}),mp(()=>{e.current.unstable_applyFilters()}),pt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},Rye=e=>E({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),$ye=(e,t)=>{const n=yn(e,"useGridFocus"),r=p.useRef(null),o=e.current.rootElementRef.current!==null,i=p.useCallback((M,k)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),k)},[e]),s=p.useCallback((M,k)=>{const S=Or(e);(S==null?void 0:S.id)===M&&(S==null?void 0:S.field)===k||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${M} and field=${k}`),E({},R,{tabIndex:{cell:{id:M,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(S&&i(S,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,k))))},[e,n,i]),a=p.useCallback((M,k={})=>{const S=Or(e);i(S,k),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${M}`),E({},R,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),l=p.useCallback((M,k={})=>{const S=Or(e);i(S,k),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${M}`),E({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=p.useCallback((M,k,S={})=>{const R=Or(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),S),e.current.setState(O=>E({},O,{tabIndex:{columnGroupHeader:{field:M,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=p.useCallback(()=>hg(e),[e]),d=p.useCallback((M,k,S)=>{let R=e.current.getColumnIndex(k);const O=mn(e),A=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=bl(e),_=[].concat(D.top||[],A.rows,D.bottom||[]);let $=_.findIndex(N=>N.id===M);S==="right"?R+=1:S==="left"?R-=1:$+=1,R>=O.length?($+=1,$<_.length&&(R=0)):R<0&&($-=1,$>=0&&(R=O.length-1)),$=fi($,0,_.length-1);const L=_[$];if(!L)return;const F=e.current.unstable_getCellColSpanInfo(L.id,R);F&&F.spannedByColSpan&&(S==="left"||S==="below"?R=F.leftVisibleCellIndex:S==="right"&&(R=F.rightVisibleCellIndex)),R=fi(R,0,O.length-1);const j=O[R];e.current.setCellFocus(L.id,j.field)},[e,t.pagination,t.paginationMode]),f=p.useCallback(({id:M,field:k})=>{e.current.setCellFocus(M,k)},[e]),h=p.useCallback((M,k)=>{k.key==="Enter"||k.key==="Tab"||k.key==="Shift"||vg(k.key)||e.current.setCellFocus(M.id,M.field)},[e]),m=p.useCallback(({field:M},k)=>{k.target===k.currentTarget&&e.current.setColumnHeaderFocus(M,k)},[e]),y=p.useCallback(({fields:M,depth:k},S)=>{if(S.target!==S.currentTarget)return;const R=hg(e);R!==null&&R.depth===k&&M.includes(R.field)||e.current.setColumnGroupHeaderFocus(M[0],k,S)},[e]),C=p.useCallback((M,k)=>{var S,R;(R=(S=k.relatedTarget)==null?void 0:S.getAttribute("class"))!=null&&R.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>E({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),w=p.useCallback(M=>{r.current=M},[]),b=p.useCallback(M=>{const k=r.current;r.current=null;const S=Or(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:k}))return;if(!S){k&&e.current.setCellFocus(k.id,k.field);return}if((k==null?void 0:k.id)===S.id&&(k==null?void 0:k.field)===S.field)return;const O=e.current.getCellElement(S.id,S.field);O!=null&&O.contains(M.target)||(k?e.current.setCellFocus(k.id,k.field):(e.current.setState(A=>E({},A,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(S,M)))},[e,i]),g=p.useCallback(M=>{if(M.cellMode==="view")return;const k=Or(e);((k==null?void 0:k.id)!==M.id||(k==null?void 0:k.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),x=p.useCallback(()=>{var k;const M=Or(e);if(M&&!e.current.getRow(M.id)){const S=(k=Or(e))==null?void 0:k.id;let R=null;if(typeof S<"u"){const O=e.current.getRowIndexRelativeToVisibleRows(S),A=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=A.rows[fi(O,0,A.rows.length-1)];R=(D==null?void 0:D.id)??null}e.current.setState(O=>E({},O,{focus:{cell:R===null?null:{id:R,field:M.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),P=nt(()=>{const M=Or(e);if(!M)return;const k=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(k.rows.find(O=>O.id===M.id))return;const R=mn(e);e.current.setState(O=>E({},O,{tabIndex:{cell:{id:k.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),I={setCellFocus:s,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},T={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Xe(e,I,"public"),Xe(e,T,"private"),p.useEffect(()=>{const M=Wt(e.current.rootElementRef.current);return M.addEventListener("mouseup",b),()=>{M.removeEventListener("mouseup",b)}},[e,o,b]),Ie(e,"columnHeaderBlur",C),Ie(e,"cellDoubleClick",f),Ie(e,"cellMouseDown",w),Ie(e,"cellKeyDown",h),Ie(e,"cellModeChange",g),Ie(e,"columnHeaderFocus",m),Ie(e,"columnGroupHeaderFocus",y),Ie(e,"rowsSet",x),Ie(e,"paginationModelChange",P)},_ye=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},Aye=e=>e===Vj||_ye(e)!==null;function Dye(e,t){const n=bl(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const o0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(et)return e-1;return null},i0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e=0&&s{const n=yn(e,"useGridKeyboardNavigation"),r=pa(e,t).rows,o=Ir(),i=t.unstable_listView,s=p.useMemo(()=>Dye(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.headerFilters,l=p.useCallback((b,g,x="left",P="up")=>{const I=fa(e),T=e.current.unstable_getCellColSpanInfo(g,b);T&&T.spannedByColSpan&&(x==="left"?b=T.leftVisibleCellIndex:x==="right"&&(b=T.rightVisibleCellIndex));const M=i?fu(e.current.state).field:$u(e)[b],k=Lye(e,g,M,P),S=I.findIndex(R=>R.id===k);n.debug(`Navigating to cell row ${S}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:S}),e.current.setCellFocus(k,M)},[e,n,i]),c=p.useCallback((b,g)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(x,g)},[e,n]),u=p.useCallback((b,g)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(x,g)},[e,n]),d=p.useCallback((b,g,x)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:P}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(P,g,x)},[e,n]),f=p.useCallback(b=>{var g;return(g=s[b])==null?void 0:g.id},[s]),h=p.useCallback((b,g)=>{const x=g.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(g.target)&&b.field!==Du.field)return;const I=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,M=s.length>0?0:null,k=s.length-1,S=0,R=mn(e).length-1,O=gp(e);let A=!0;switch(g.key){case"ArrowDown":{M!==null&&(a?u(T,g):l(T,f(M)));break}case"ArrowRight":{const D=i0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});D!==null&&c(D,g);break}case"ArrowLeft":{const D=o0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});D!==null&&c(D,g);break}case"ArrowUp":{O>0&&d(T,O-1,g);break}case"PageDown":{M!==null&&k!==null&&l(T,f(Math.min(M+I,k)));break}case"Home":{c(S,g);break}case"End":{c(R,g);break}case"Enter":{(g.ctrlKey||g.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:A=!1}A&&g.preventDefault()},[e,s.length,a,u,l,f,o,c,d]),m=p.useCallback((b,g)=>{const x=xpe(e)===b.field,P=Spe(e)===b.field;if(x||P||!vg(g.key))return;const I=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,M=0,k=s.length-1,S=0,R=mn(e).length-1;let O=!0;switch(g.key){case"ArrowDown":{const A=f(M);A!=null&&l(T,A);break}case"ArrowRight":{const A=i0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null&&u(A,g);break}case"ArrowLeft":{const A=o0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null?u(A,g):e.current.setColumnHeaderFilterFocus(b.field,g);break}case"ArrowUp":{c(T,g);break}case"PageDown":{k!==null&&l(T,f(Math.min(M+I,k)));break}case"Home":{u(S,g);break}case"End":{u(R,g);break}case" ":break;default:O=!1}O&&g.preventDefault()},[e,s.length,u,o,c,l,f]),y=p.useCallback((b,g)=>{const x=hg(e);if(x===null)return;const{field:P,depth:I}=x,{fields:T,depth:M,maxDepth:k}=b,S=e.current.getViewportPageSize(),R=e.current.getColumnIndex(P),O=P?e.current.getColumnIndex(P):0,A=0,D=s.length-1,_=0,$=mn(e).length-1;let L=!0;switch(g.key){case"ArrowDown":{M===k-1?c(R,g):d(R,I+1,g);break}case"ArrowUp":{M>0&&d(R,I-1,g);break}case"ArrowRight":{const F=T.length-T.indexOf(P)-1;R+F+1<=$&&d(R+F+1,I,g);break}case"ArrowLeft":{const F=T.indexOf(P);R-F-1>=_&&d(R-F-1,I,g);break}case"PageDown":{D!==null&&l(O,f(Math.min(A+S,D)));break}case"Home":{d(_,I,g);break}case"End":{d($,I,g);break}case" ":break;default:L=!1}L&&g.preventDefault()},[e,s.length,c,d,l,f]),C=p.useCallback((b,g)=>{if(vp(g))return;const x=e.current.getCellParams(b.id,b.field);if(x.cellMode===vt.Edit||!vg(g.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:g,cell:x})||s.length===0)return;const I=e.current.getViewportPageSize(),T=i?()=>0:e.current.getColumnIndex,M=b.field?T(b.field):0,k=s.findIndex($=>$.id===b.id),S=0,R=s.length-1,O=0,D=(i?[fu(e.current.state)]:mn(e)).length-1;let _=!0;switch(g.key){case"ArrowDown":{kS?l(M,f(k-1)):a?u(M,g):c(M,g);break}case"ArrowRight":{const $=i0({currentColIndex:M,firstColIndex:O,lastColIndex:D,isRtl:o});$!==null&&l($,f(k),o?"left":"right");break}case"ArrowLeft":{const $=o0({currentColIndex:M,firstColIndex:O,lastColIndex:D,isRtl:o});$!==null&&l($,f(k),o?"right":"left");break}case"Tab":{g.shiftKey&&M>O?l(M-1,f(k),"left"):!g.shiftKey&&M=S?l(M,f($)):c(M,g);break}case"Home":{g.ctrlKey||g.metaKey||g.shiftKey?l(O,f(S)):l(O,f(k));break}case"End":{g.ctrlKey||g.metaKey||g.shiftKey?l(D,f(R)):l(D,f(k));break}default:_=!1}_&&g.preventDefault()},[e,s,o,l,f,a,u,c,i]),w=p.useCallback((b,{event:g})=>g.key===" "?!1:b,[]);Lt(e,"canStartEditing",w),Ie(e,"columnHeaderKeyDown",h),Ie(e,"headerFilterKeyDown",m),Ie(e,"columnGroupHeaderKeyDown",y),Ie(e,"cellKeyDown",C)},jye=(e,t)=>{var m,y;const n=yn(e,"useGridRowCount"),r=ue(e,z1),o=ue(e,hc),i=ue(e,Sd),s=ue(e,nr),a=Vo(()=>nr(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:hc,changeEvent:"rowCountChange"});const c={setRowCount:p.useCallback(C=>{o!==C&&(n.debug("Setting 'rowCount' to",C),e.current.setState(w=>E({},w,{pagination:E({},w.pagination,{rowCount:C})})))},[e,n,o])};Xe(e,c,"public");const u=p.useCallback((C,w)=>{var x,P;const b=hc(e);return!w.exportOnlyDirtyModels||t.rowCount!=null||((P=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:P.rowCount)!=null?E({},C,{pagination:E({},C.pagination,{rowCount:b})}):C},[e,t.rowCount,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.rowCount]),d=p.useCallback((C,w)=>{var g;const b=(g=w.stateToRestore.pagination)!=null&&g.rowCount?w.stateToRestore.pagination.rowCount:hc(e);return e.current.setState(x=>E({},x,{pagination:E({},x.pagination,{rowCount:b})})),C},[e]);Lt(e,"exportState",u),Lt(e,"restoreState",d);const f=p.useCallback(C=>{t.paginationMode==="client"||!a.current||C.pageSize!==a.current&&(a.current=C.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Ie(e,"paginationModelChange",f),p.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const h=i.hasNextPage===!1;p.useEffect(()=>{h&&o===-1&&e.current.setRowCount(s.pageSize*s.page+r)},[e,r,h,o,s])},Nye=(e,t)=>{var l,c;const n=yn(e,"useGridPaginationMeta"),r=ue(e,Sd);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Sd,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:p.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>E({},d,{pagination:E({},d.pagination,{meta:u})})))},[e,n,r])};Xe(e,i,"public");const s=p.useCallback((u,d)=>{var m,y;const f=Sd(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.meta)!=null?E({},u,{pagination:E({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),a=p.useCallback((u,d)=>{var h;const f=(h=d.stateToRestore.pagination)!=null&&h.meta?d.stateToRestore.pagination.meta:Sd(e);return e.current.setState(m=>E({},m,{pagination:E({},m.pagination,{meta:f})})),u},[e]);Lt(e,"exportState",s),Lt(e,"restoreState",a),p.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Bye=(e,t)=>{var i,s,a,l,c,u;const n=E({},Zj(t.autoPageSize),t.paginationModel??((s=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:s.paginationModel));e5(n.pageSize,t.signature);const r=t.rowCount??((l=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return E({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},zye=(e,t)=>{Nye(e,t),Sye(e,t),jye(e,t)},Hye=(e,t)=>{var n;return E({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},Vye=(e,t)=>{var d;const n=yn(e,"useGridPreferencesPanel"),r=p.useRef(),o=p.useRef(),i=p.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=Lf(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(h=>E({},h,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),s=p.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=p.useCallback(()=>{r.current=setTimeout(i,100)},[i]),l=p.useCallback((f,h,m)=>{n.debug("Opening Preferences Panel"),s(),e.current.setState(y=>E({},y,{preferencePanel:E({},y.preferencePanel,{open:!0,openedPanelValue:f,panelId:h,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,s,e]);Xe(e,{showPreferences:l,hidePreferences:a},"public");const c=p.useCallback((f,h)=>{var C;const m=Lf(e.current.state);return!h.exportOnlyDirtyModels||((C=t.initialState)==null?void 0:C.preferencePanel)!=null||m.open?E({},f,{preferencePanel:m}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=p.useCallback((f,h)=>{const m=h.stateToRestore.preferencePanel;return m!=null&&e.current.setState(y=>E({},y,{preferencePanel:m})),f},[e]);Lt(e,"exportState",c),Lt(e,"restoreState",u),p.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},_5=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Uye=["id","field"],Gye=["id","field"],Wye=(e,t)=>{const[n,r]=p.useState({}),o=p.useRef(n),i=p.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:l,onCellModesModelChange:c}=t,u=_=>(...$)=>{t.editMode===yi.Cell&&_(...$)},d=p.useCallback((_,$)=>{const L=e.current.getCellParams(_,$);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${_} and field=${$} is not editable.`)},[e]),f=p.useCallback((_,$,L)=>{if(e.current.getCellMode(_,$)!==L)throw new Error(`MUI X: The cell with id=${_} and field=${$} is not in ${L} mode.`)},[e]),h=p.useCallback((_,$)=>{if(!_.isEditable||_.cellMode===vt.Edit)return;const L=E({},_,{reason:ki.cellDoubleClick});e.current.publishEvent("cellEditStart",L,$)},[e]),m=p.useCallback((_,$)=>{if(_.cellMode===vt.View||e.current.getCellMode(_.id,_.field)===vt.View)return;const L=E({},_,{reason:$o.cellFocusOut});e.current.publishEvent("cellEditStop",L,$)},[e]),y=p.useCallback((_,$)=>{if(_.cellMode===vt.Edit){if($.which===229)return;let L;if($.key==="Escape"?L=$o.escapeKeyDown:$.key==="Enter"?L=$o.enterKeyDown:$.key==="Tab"&&(L=$.shiftKey?$o.shiftTabKeyDown:$o.tabKeyDown,$.preventDefault()),L){const F=E({},_,{reason:L});e.current.publishEvent("cellEditStop",F,$)}}else if(_.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:_,editMode:"cell"}))return;if(I5($)?L=ki.printableKeyDown:k5($)?L=ki.pasteKeyDown:$.key==="Enter"?L=ki.enterKeyDown:($.key==="Backspace"||$.key==="Delete")&&(L=ki.deleteKeyDown),L){const j=E({},_,{reason:L,key:$.key});e.current.publishEvent("cellEditStart",j,$)}}},[e]),C=p.useCallback(_=>{const{id:$,field:L,reason:F}=_,j={id:$,field:L};(F===ki.printableKeyDown||F===ki.deleteKeyDown||F===ki.pasteKeyDown)&&(j.deleteValue=!0),e.current.startCellEditMode(j)},[e]),w=p.useCallback(_=>{const{id:$,field:L,reason:F}=_;e.current.runPendingEditCellValueMutation($,L);let j;F===$o.enterKeyDown?j="below":F===$o.tabKeyDown?j="right":F===$o.shiftTabKeyDown&&(j="left");const N=F==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:L,ignoreModifications:N,cellToFocusAfter:j})},[e]),b=_=>async(...$)=>{var L;if(_){const{id:F,field:j}=$[0];((L=e.current.state.editRows[F][j])==null?void 0:L.error)||_(...$)}};Ie(e,"cellDoubleClick",u(h)),Ie(e,"cellFocusOut",u(m)),Ie(e,"cellKeyDown",u(y)),Ie(e,"cellEditStart",u(C)),Ie(e,"cellEditStop",u(w)),St(e,"cellEditStart",t.onCellEditStart),St(e,"cellEditStop",b(t.onCellEditStop));const g=p.useCallback((_,$)=>{const L=Bn(e.current.state);return L[_]&&L[_][$]?vt.Edit:vt.View},[e]),x=nt(_=>{const $=_!==t.cellModesModel;c&&$&&c(_,{api:e.current}),!(t.cellModesModel&&$)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),P=p.useCallback((_,$,L)=>{const F=E({},o.current);if(L!==null)F[_]=E({},F[_],{[$]:E({},L)});else{const j=F[_],N=xe(j,[$].map(ru));F[_]=N,Object.keys(F[_]).length===0&&delete F[_]}x(F)},[x]),I=p.useCallback((_,$,L)=>{e.current.setState(F=>{const j=E({},F.editRows);return L!==null?j[_]=E({},j[_],{[$]:E({},L)}):(delete j[_][$],Object.keys(j[_]).length===0&&delete j[_]),E({},F,{editRows:j})}),e.current.forceUpdate()},[e]),T=p.useCallback(_=>{const{id:$,field:L}=_,F=xe(_,Uye);d($,L),f($,L,vt.View),P($,L,E({mode:vt.Edit},F))},[d,f,P]),M=nt(_=>{const{id:$,field:L,deleteValue:F,initialValue:j}=_;let N=e.current.getCellValue($,L);F?N=_5(e.current.getColumn(L)):j&&(N=j),I($,L,{value:N,error:!1,isProcessingProps:!1}),e.current.setCellFocus($,L)}),k=p.useCallback(_=>{const{id:$,field:L}=_,F=xe(_,Gye);f($,L,vt.Edit),P($,L,E({mode:vt.View},F))},[f,P]),S=nt(async _=>{const{id:$,field:L,ignoreModifications:F,cellToFocusAfter:j="none"}=_;f($,L,vt.Edit),e.current.runPendingEditCellValueMutation($,L);const N=()=>{I($,L,null),P($,L,null),j!=="none"&&e.current.moveFocusToRelativeCell($,L,j)};if(F){N();return}const z=Bn(e.current.state),{error:V,isProcessingProps:K}=z[$][L];if(V||K){i.current[$][L].mode=vt.Edit,P($,L,{mode:vt.Edit});return}const H=e.current.getRowWithUpdatedValuesFromCellEditing($,L);if(s){const G=Y=>{i.current[$][L].mode=vt.Edit,P($,L,{mode:vt.Edit}),a&&a(Y)};try{const Y=e.current.getRow($);Promise.resolve(s(H,Y,{rowId:$})).then(ee=>{e.current.updateRows([ee]),N()}).catch(G)}catch(Y){G(Y)}}else e.current.updateRows([H]),N()}),R=p.useCallback(async _=>{var Y,ee;const{id:$,field:L,value:F,debounceMs:j,unstable_skipValueParser:N}=_;d($,L),f($,L,vt.Edit);const z=e.current.getColumn(L),V=e.current.getRow($);let K=F;z.valueParser&&!N&&(K=z.valueParser(F,V,z,e));let H=Bn(e.current.state),G=E({},H[$][L],{value:K,changeReason:j?"debouncedSetEditCellValue":"setEditCellValue"});if(z.preProcessEditCellProps){const W=F!==H[$][L].value;G=E({},G,{isProcessingProps:!0}),I($,L,G),G=await Promise.resolve(z.preProcessEditCellProps({id:$,row:V,props:G,hasChanged:W}))}return e.current.getCellMode($,L)===vt.View?!1:(H=Bn(e.current.state),G=E({},G,{isProcessingProps:!1}),G.value=z.preProcessEditCellProps?H[$][L].value:K,I($,L,G),H=Bn(e.current.state),!((ee=(Y=H[$])==null?void 0:Y[L])!=null&&ee.error))},[e,d,f,I]),O=p.useCallback((_,$)=>{const L=e.current.getColumn($),F=Bn(e.current.state),j=e.current.getRow(_);if(!F[_]||!F[_][$])return e.current.getRow(_);const{value:N}=F[_][$];return L.valueSetter?L.valueSetter(N,j,L,e):E({},j,{[$]:N})},[e]),A={getCellMode:g,startCellEditMode:T,stopCellEditMode:k},D={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:O};Xe(e,A,"public"),Xe(e,D,"private"),p.useEffect(()=>{l&&x(l)},[l,x]),pt(()=>{const _=pg(e),$=i.current;i.current=$j(n),Object.entries(n).forEach(([L,F])=>{Object.entries(F).forEach(([j,N])=>{var K,H;const z=((H=(K=$[L])==null?void 0:K[j])==null?void 0:H.mode)||vt.View,V=_[L]??L;N.mode===vt.Edit&&z===vt.View?M(E({id:V,field:j},N)):N.mode===vt.View&&z===vt.Edit&&S(E({id:V,field:j},N))})})},[e,n,M,S])},Kye=["id"],qye=["id"],Yye=(e,t)=>{const[n,r]=p.useState({}),o=p.useRef(n),i=p.useRef({}),s=p.useRef(),a=p.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=j=>(...N)=>{t.editMode===yi.Row&&j(...N)},h=p.useCallback((j,N)=>{const z=e.current.getCellParams(j,N);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${j} and field=${N} is not editable.`)},[e]),m=p.useCallback((j,N)=>{if(e.current.getRowMode(j)!==N)throw new Error(`MUI X: The row with id=${j} is not in ${N} mode.`)},[e]),y=p.useCallback(j=>{const N=Bn(e.current.state);return Object.values(N[j]).some(z=>z.error)},[e]),C=p.useCallback((j,N)=>{if(!j.isEditable||e.current.getRowMode(j.id)===Ot.Edit)return;const z=e.current.getRowParams(j.id),V=E({},z,{field:j.field,reason:ys.cellDoubleClick});e.current.publishEvent("rowEditStart",V,N)},[e]),w=p.useCallback(j=>{a.current=j},[]),b=p.useCallback((j,N)=>{j.isEditable&&e.current.getRowMode(j.id)!==Ot.View&&(a.current=null,s.current=setTimeout(()=>{var z;if(((z=a.current)==null?void 0:z.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===Ot.View||y(j.id))return;const V=e.current.getRowParams(j.id),K=E({},V,{field:j.field,reason:qo.rowFocusOut});e.current.publishEvent("rowEditStop",K,N)}}))},[e,y]);p.useEffect(()=>()=>{clearTimeout(s.current)},[]);const g=p.useCallback((j,N)=>{if(j.cellMode===Ot.Edit){if(N.which===229)return;let z;if(N.key==="Escape")z=qo.escapeKeyDown;else if(N.key==="Enter")z=qo.enterKeyDown;else if(N.key==="Tab"){const V=$u(e).filter(K=>e.current.getColumn(K).type===ny?!0:e.current.isCellEditable(e.current.getCellParams(j.id,K)));if(N.shiftKey?j.field===V[0]&&(z=qo.shiftTabKeyDown):j.field===V[V.length-1]&&(z=qo.tabKeyDown),N.preventDefault(),!z){const K=V.findIndex(G=>G===j.field),H=V[N.shiftKey?K-1:K+1];e.current.setCellFocus(j.id,H)}}if(z){if(z!==qo.escapeKeyDown&&y(j.id))return;const V=E({},e.current.getRowParams(j.id),{reason:z,field:j.field});e.current.publishEvent("rowEditStop",V,N)}}else if(j.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:j,editMode:"row"}))return;if(I5(N)||k5(N)?z=ys.printableKeyDown:N.key==="Enter"?z=ys.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(z=ys.deleteKeyDown),z){const K=e.current.getRowParams(j.id),H=E({},K,{field:j.field,reason:z});e.current.publishEvent("rowEditStart",H,N)}}},[e,y]),x=p.useCallback(j=>{const{id:N,field:z,reason:V}=j,K={id:N,fieldToFocus:z};(V===ys.printableKeyDown||V===ys.deleteKeyDown)&&(K.deleteValue=!!z),e.current.startRowEditMode(K)},[e]),P=p.useCallback(j=>{const{id:N,reason:z,field:V}=j;e.current.runPendingEditCellValueMutation(N);let K;z===qo.enterKeyDown?K="below":z===qo.tabKeyDown?K="right":z===qo.shiftTabKeyDown&&(K="left");const H=z==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:H,field:V,cellToFocusAfter:K})},[e]);Ie(e,"cellDoubleClick",f(C)),Ie(e,"cellFocusIn",f(w)),Ie(e,"cellFocusOut",f(b)),Ie(e,"cellKeyDown",f(g)),Ie(e,"rowEditStart",f(x)),Ie(e,"rowEditStop",f(P)),St(e,"rowEditStart",t.onRowEditStart),St(e,"rowEditStop",t.onRowEditStop);const I=p.useCallback(j=>{if(t.editMode===yi.Cell)return Ot.View;const N=Bn(e.current.state);return N[j]&&Object.keys(N[j]).length>0?Ot.Edit:Ot.View},[e,t.editMode]),T=nt(j=>{const N=j!==t.rowModesModel;d&&N&&d(j,{api:e.current}),!(t.rowModesModel&&N)&&(r(j),o.current=j,e.current.publishEvent("rowModesModelChange",j))}),M=p.useCallback((j,N)=>{const z=E({},o.current);N!==null?z[j]=E({},N):delete z[j],T(z)},[T]),k=p.useCallback((j,N)=>{e.current.setState(z=>{const V=E({},z.editRows);return N!==null?V[j]=N:delete V[j],E({},z,{editRows:V})}),e.current.forceUpdate()},[e]),S=p.useCallback((j,N,z)=>{e.current.setState(V=>{const K=E({},V.editRows);return z!==null?K[j]=E({},K[j],{[N]:E({},z)}):(delete K[j][N],Object.keys(K[j]).length===0&&delete K[j]),E({},V,{editRows:K})}),e.current.forceUpdate()},[e]),R=p.useCallback(j=>{const{id:N}=j,z=xe(j,Kye);m(N,Ot.View),M(N,E({mode:Ot.Edit},z))},[m,M]),O=nt(j=>{const{id:N,fieldToFocus:z,deleteValue:V,initialValue:K}=j,G=Wi(e).reduce((Y,ee)=>{if(!e.current.getCellParams(N,ee).isEditable)return Y;let Q=e.current.getCellValue(N,ee);return z===ee&&(V||K)&&(V?Q=_5(e.current.getColumn(ee)):K&&(Q=K)),Y[ee]={value:Q,error:!1,isProcessingProps:!1},Y},{});k(N,G),z&&e.current.setCellFocus(N,z)}),A=p.useCallback(j=>{const{id:N}=j,z=xe(j,qye);m(N,Ot.Edit),M(N,E({mode:Ot.View},z))},[m,M]),D=nt(j=>{const{id:N,ignoreModifications:z,field:V,cellToFocusAfter:K="none"}=j;e.current.runPendingEditCellValueMutation(N);const H=()=>{K!=="none"&&V&&e.current.moveFocusToRelativeCell(N,V,K),k(N,null),M(N,null)};if(z){H();return}const G=Bn(e.current.state),Y=e.current.getRow(N);if(Object.values(G[N]).some(Q=>Q.isProcessingProps)){i.current[N].mode=Ot.Edit;return}if(y(N)){i.current[N].mode=Ot.Edit,M(N,{mode:Ot.Edit});return}const W=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(l){const Q=U=>{i.current[N].mode=Ot.Edit,M(N,{mode:Ot.Edit}),c&&c(U)};try{Promise.resolve(l(W,Y,{rowId:N})).then(U=>{e.current.updateRows([U]),H()}).catch(Q)}catch(U){Q(U)}}else e.current.updateRows([W]),H()}),_=p.useCallback(j=>{const{id:N,field:z,value:V,debounceMs:K,unstable_skipValueParser:H}=j;h(N,z);const G=e.current.getColumn(z),Y=e.current.getRow(N);let ee=V;G.valueParser&&!H&&(ee=G.valueParser(V,Y,G,e));let W=Bn(e.current.state),Q=E({},W[N][z],{value:ee,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return G.preProcessEditCellProps||S(N,z,Q),new Promise(U=>{const J=[];if(G.preProcessEditCellProps){const Z=Q.value!==W[N][z].value;Q=E({},Q,{isProcessingProps:!0}),S(N,z,Q);const le=W[N],he=xe(le,[z].map(ru)),ye=Promise.resolve(G.preProcessEditCellProps({id:N,row:Y,props:Q,hasChanged:Z,otherFieldsProps:he})).then(pe=>{if(e.current.getRowMode(N)===Ot.View){U(!1);return}W=Bn(e.current.state),pe=E({},pe,{isProcessingProps:!1}),pe.value=G.preProcessEditCellProps?W[N][z].value:ee,S(N,z,pe)});J.push(ye)}Object.entries(W[N]).forEach(([Z,le])=>{if(Z===z)return;const he=e.current.getColumn(Z);if(!he.preProcessEditCellProps)return;le=E({},le,{isProcessingProps:!0}),S(N,Z,le),W=Bn(e.current.state);const ye=W[N],pe=xe(ye,[Z].map(ru)),Fe=Promise.resolve(he.preProcessEditCellProps({id:N,row:Y,props:le,hasChanged:!1,otherFieldsProps:pe})).then(me=>{if(e.current.getRowMode(N)===Ot.View){U(!1);return}me=E({},me,{isProcessingProps:!1}),S(N,Z,me)});J.push(Fe)}),Promise.all(J).then(()=>{e.current.getRowMode(N)===Ot.Edit?(W=Bn(e.current.state),U(!W[N][z].error)):U(!1)})})},[e,h,S]),$=p.useCallback(j=>{const N=Bn(e.current.state),z=e.current.getRow(j);if(!N[j])return e.current.getRow(j);let V=E({},z);return Object.entries(N[j]).forEach(([K,H])=>{const G=e.current.getColumn(K);G.valueSetter?V=G.valueSetter(H.value,V,G,e):V[K]=H.value}),V},[e]),L={getRowMode:I,startRowEditMode:R,stopRowEditMode:A},F={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:$};Xe(e,L,"public"),Xe(e,F,"private"),p.useEffect(()=>{u&&T(u)},[u,T]),pt(()=>{const j=pg(e),N=i.current;i.current=$j(n);const z=new Set([...Object.keys(n),...Object.keys(N)]);Array.from(z).forEach(V=>{var Y;const K=n[V]??{mode:Ot.View},H=((Y=N[V])==null?void 0:Y.mode)||Ot.View,G=j[V]??V;K.mode===Ot.Edit&&H===Ot.View?O(E({id:G},K)):K.mode===Ot.View&&H===Ot.Edit&&D(E({id:G},K))})},[e,n,O,D])},Xye=e=>E({},e,{editRows:{}}),Qye=(e,t)=>{Wye(e,t),Yye(e,t);const n=p.useRef({}),{isCellEditable:r}=t,o=p.useCallback(f=>uu(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,h,m,y)=>{if(!m){y();return}if(n.current[f]||(n.current[f]={}),n.current[f][h]){const[b]=n.current[f][h];clearTimeout(b)}const C=()=>{const[b]=n.current[f][h];clearTimeout(b),y(),delete n.current[f][h]},w=setTimeout(()=>{y(),delete n.current[f][h]},m);n.current[f][h]=[w,C]};p.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([h,m])=>{Object.keys(m).forEach(y=>{const[C]=f[h][y];clearTimeout(C),delete f[h][y]})})}},[]);const s=p.useCallback((f,h)=>{if(n.current[f]){if(!h)Object.keys(n.current[f]).forEach(m=>{const[,y]=n.current[f][m];y()});else if(n.current[f][h]){const[,m]=n.current[f][h];m()}}},[]),a=p.useCallback(f=>{const{id:h,field:m,debounceMs:y}=f;return new Promise(C=>{i(h,m,y,async()=>{const w=t.editMode===yi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===vt.Edit){const b=await w(f);C(b)}})})},[e,t.editMode]),l=p.useCallback((f,h)=>t.editMode===yi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,h):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=p.useCallback((f,h)=>{var y;return((y=Bn(e.current.state)[f])==null?void 0:y[h])??null},[e]),u={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:s};Xe(e,u,"public"),Xe(e,d,"private")},Jye=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=zh({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),E({},e,{rows:Bj({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},Zye=(e,t)=>{const n=yn(e,"useGridRows"),r=pa(e,t),o=p.useRef(Date.now()),i=p.useRef(t.rowCount),s=uo(),a=p.useCallback(F=>{const j=La(e)[F];if(j)return j;const N=e.current.getRowNode(F);return N&&uu(N)?{[_c]:F}:null},[e]),l=t.getRowId,c=p.useCallback(F=>_c in F?F[_c]:l?l(F):F.id,[l]),u=p.useMemo(()=>r.rows.reduce((F,{id:j},N)=>(F[j]=N,F),{}),[r.rows]),d=p.useCallback(({cache:F,throttle:j})=>{const N=()=>{o.current=Date.now(),e.current.setState(V=>E({},V,{rows:Bj({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Hn(e),previousTreeDepths:V2(e),previousGroupsToFetch:Kde(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=F,!j){N();return}const z=t.throttleRowsMs-(Date.now()-o.current);if(z>0){s.start(z,N);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),f=p.useCallback(F=>{n.debug(`Updating all rows, new length ${F.length}`);const j=zh({rows:F,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),N=e.current.caches.rows;j.rowsBeforePartialUpdates=N.rowsBeforePartialUpdates,d({cache:j,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),h=p.useCallback(F=>{if(t.signature===go.DataGrid&&F.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const j=G2(e,F,t.getRowId),N=U2({updates:j,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:N,throttle:!0})},[t.signature,t.getRowId,d,e]),m=p.useCallback((F,j)=>{const N=G2(e,F,t.getRowId),z=U2({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:j??[]});d({cache:z,throttle:!1})},[t.getRowId,d,e]),y=p.useCallback(F=>{F!==t.loading&&(n.debug(`Setting loading to ${F}`),e.current.setState(j=>E({},j,{rows:E({},j.rows,{loading:F})})),e.current.caches.rows.loadingPropBeforePartialUpdates=F)},[t.loading,e,n]),C=p.useCallback(()=>{const F=lh(e),j=La(e);return new Map(F.map(N=>[N,j[N]??{}]))},[e]),w=p.useCallback(()=>ry(e),[e]),b=p.useCallback(()=>lh(e),[e]),g=p.useCallback(F=>u[F],[u]),x=p.useCallback((F,j)=>{const N=e.current.getRowNode(F);if(!N)throw new Error(`MUI X: No row with id #${F} found.`);if(N.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=E({},N,{childrenExpanded:j});e.current.setState(V=>E({},V,{rows:E({},V.rows,{tree:E({},V.rows.tree,{[F]:z})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",z)},[e]),P=p.useCallback(F=>Hn(e)[F]??null,[e]),I=p.useCallback(({skipAutoGeneratedRows:F=!0,groupId:j,applySorting:N,applyFiltering:z})=>{const V=Hn(e);let K;if(N){const H=V[j];if(!H)return[];const G=hp(e);K=[];const Y=G.findIndex(ee=>ee===j)+1;for(let ee=Y;eeH.depth;ee+=1){const W=G[ee];(!F||!uu(V[W]))&&K.push(W)}}else K=j1(V,j,F);if(z){const H=Au(e);K=K.filter(G=>H[G]!==!1)}return K},[e]),T=p.useCallback((F,j)=>{const N=e.current.getRowNode(F);if(!N)throw new Error(`MUI X: No row with id #${F} found.`);if(N.parent!==En)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(N.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(z=>{const V=Hn(z,e.current.instanceId)[En],K=V.children,H=K.findIndex(Y=>Y===F);if(H===-1||H===j)return z;n.debug(`Moving row ${F} to index ${j}`);const G=[...K];return G.splice(j,0,G.splice(H,1)[0]),E({},z,{rows:E({},z.rows,{tree:E({},z.rows.tree,{[En]:E({},V,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=p.useCallback((F,j)=>{if(t.signature===go.DataGrid&&j.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(j.length===0)return;if(_u(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=E({},Hn(e)),V=E({},La(e)),K=E({},pg(e)),H=z[En],G=[...H.children],Y=new Set;for(let W=0;W{var Q;return((Q=z[W])==null?void 0:Q.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=V,e.current.caches.rows.dataRowIdToIdLookup=K,e.current.setState(W=>E({},W,{rows:E({},W.rows,{dataRowIdToModelLookup:V,dataRowIdToIdLookup:K,dataRowIds:ee,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,setLoading:y,getRowId:c,getRowModels:C,getRowsCount:w,getAllRowIds:b,setRows:f,updateRows:h,getRowNode:P,getRowIndexRelativeToVisibleRows:g,unstable_replaceRows:M},S={setRowIndex:T,setRowChildrenExpansion:x,getRowGroupChildren:I},R={updateServerRows:m},O=p.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let F;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?F=E({},e.current.caches.rows,{updates:{type:"full",rows:lh(e)}}):F=zh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:F,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),A=Vo(()=>t.unstable_dataSource),D=p.useCallback(F=>{if(t.unstable_dataSource&&t.unstable_dataSource!==A.current){A.current=t.unstable_dataSource;return}F==="rowTreeCreation"&&O()},[O,A,t.unstable_dataSource]),_=p.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==qde(e)&&O()},[e,O]);Ie(e,"activeStrategyProcessorChange",D),Ie(e,"strategyAvailabilityChange",_);const $=p.useCallback(()=>{e.current.setState(F=>{const j=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Hn(F,e.current.instanceId),treeDepths:V2(F,e.current.instanceId),dataRowIds:lh(F,e.current.instanceId),dataRowIdToModelLookup:La(F,e.current.instanceId),dataRowIdToIdLookup:pg(F,e.current.instanceId)});return E({},F,{rows:E({},F.rows,j,{totalTopLevelRowCount:Nj({tree:j.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);eP(e,"hydrateRows",$),Xe(e,k,"public"),Xe(e,S,t.signature===go.DataGrid?"private":"public"),Xe(e,R,"private");const L=p.useRef(!0);p.useEffect(()=>{var V;if(L.current){L.current=!1;return}let F=!1;t.rowCount!==i.current&&(F=!0,i.current=t.rowCount);const j=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,N=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,z=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;j&&(N||(e.current.setState(K=>E({},K,{rows:E({},K.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),z||(e.current.setState(K=>E({},K,{rows:E({},K.rows,{totalRowCount:Math.max(t.rowCount||0,K.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,K.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!F)||(n.debug(`Updating all rows, new length ${(V=t.rows)==null?void 0:V.length}`),d({cache:zh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,d,e])},ebe=e=>{const t={[En]:E({},Qde(),{children:e})};for(let n=0;n{const n=E({},e),r={};for(let s=0;s!r[s])),n[En]=E({},o,{children:i}),{groupingName:sl,tree:n,treeDepths:{0:i.length},dataRowIds:i}},nbe=e=>e.updates.type==="full"?ebe(e.updates.rows):tbe({previousTree:e.previousTree,actions:e.updates.actions}),rbe=e=>{yg(e,sl,"rowTreeCreation",nbe)},A5=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],obe=(e,t)=>E({},e,{rowSelection:t.rowSelection?A5(t.rowSelectionModel)??[]:[]}),ibe=(e,t)=>{var L,F,j,N,z,V,K;const n=yn(e,"useGridSelection"),r=p.useCallback(H=>(...G)=>{t.rowSelection&&H(...G)},[t.rowSelection]),o=t.signature!==go.DataGrid&&(((L=t.rowSelectionPropagation)==null?void 0:L.parents)||((F=t.rowSelectionPropagation)==null?void 0:F.descendants)),i=p.useMemo(()=>A5(t.rowSelectionModel,to(e.current.state)),[e,t.rowSelectionModel]),s=p.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:to,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=H1(t),d=pa(e,t),f=ue(e,Hn),h=ue(e,_u)>1,m=p.useCallback(H=>{let G=H;const Y=s.current??H,ee=e.current.isRowSelected(H);if(ee){const W=Ac(e),Q=W.findIndex(J=>J===Y),U=W.findIndex(J=>J===G);if(Q===U)return;Q>U?G=W[U+1]:G=W[U-1]}s.current=H,e.current.selectRowRange({startId:Y,endId:G},!ee)},[e]),y=p.useCallback(H=>{if(t.signature===go.DataGrid&&!u&&Array.isArray(H)&&H.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));to(e.current.state)!==H&&(n.debug("Setting selection model"),e.current.setState(Y=>E({},Y,{rowSelection:t.rowSelection?H:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),C=p.useCallback(H=>to(e.current.state).includes(H),[e]),w=p.useCallback(H=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(H)))return!1;const G=e.current.getRowNode(H);return!((G==null?void 0:G.type)==="footer"||(G==null?void 0:G.type)==="pinnedRow")},[e,t.rowSelection,c]),b=p.useCallback(()=>xfe(e),[e]),g=p.useCallback((H,G=!0,Y=!1)=>{var ee,W,Q,U,J,Z;if(e.current.isRowSelectable(H))if(s.current=H,Y){n.debug(`Setting selection for row ${H}`);const le=[],he=ye=>{le.push(ye)};G&&(he(H),o&&ch(e,f,H,((ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)??!1,((W=t.rowSelectionPropagation)==null?void 0:W.parents)??!1,he)),e.current.setRowSelectionModel(le)}else{n.debug(`Toggling selection for row ${H}`);const le=to(e.current.state),he=new Set(le);he.delete(H);const ye=me=>{he.add(me)},pe=me=>{he.delete(me)};G?(ye(H),o&&ch(e,f,H,((Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)??!1,((U=t.rowSelectionPropagation)==null?void 0:U.parents)??!1,ye)):o&&W2(e,f,H,((J=t.rowSelectionPropagation)==null?void 0:J.descendants)??!1,((Z=t.rowSelectionPropagation)==null?void 0:Z.parents)??!1,pe),(he.size<2||u)&&e.current.setRowSelectionModel(Array.from(he))}},[e,n,o,f,(j=t.rowSelectionPropagation)==null?void 0:j.descendants,(N=t.rowSelectionPropagation)==null?void 0:N.parents,u]),x=p.useCallback((H,G=!0,Y=!1)=>{n.debug("Setting selection for several rows");const ee=H.filter(U=>e.current.isRowSelectable(U));let W;if(Y)if(G){if(W=ee,o){const U=J=>{W.push(J)};ee.forEach(J=>{var Z,le;ch(e,f,J,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((le=t.rowSelectionPropagation)==null?void 0:le.parents)??!1,U)})}}else W=[];else{const U=E({},ea(e)),J=le=>{U[le]=le},Z=le=>{delete U[le]};ee.forEach(le=>{var he,ye,pe,Fe;G?(U[le]=le,o&&ch(e,f,le,((he=t.rowSelectionPropagation)==null?void 0:he.descendants)??!1,((ye=t.rowSelectionPropagation)==null?void 0:ye.parents)??!1,J)):(Z(le),o&&W2(e,f,le,((pe=t.rowSelectionPropagation)==null?void 0:pe.descendants)??!1,((Fe=t.rowSelectionPropagation)==null?void 0:Fe.parents)??!1,Z))}),W=Object.values(U)}(W.length<2||u)&&e.current.setRowSelectionModel(W)},[n,o,u,e,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(V=t.rowSelectionPropagation)==null?void 0:V.parents]),P=p.useCallback(({startId:H,endId:G},Y=!0,ee=!1)=>{if(!e.current.getRow(H)||!e.current.getRow(G))return;n.debug(`Expanding selection from row ${H} to row ${G}`);const W=Ac(e),Q=W.indexOf(H),U=W.indexOf(G),[J,Z]=Q>U?[U,Q]:[Q,U],le=W.slice(J,Z+1);e.current.selectRows(le,Y,ee)},[e,n]),I={selectRow:g,setRowSelectionModel:y,getSelectedRows:b,isRowSelected:C,isRowSelectable:w},T={selectRows:x,selectRowRange:P};Xe(e,I,"public"),Xe(e,T,t.signature===go.DataGrid?"private":"public");const M=p.useRef(!0),k=p.useCallback((H=!1)=>{if(M.current)return;const G=to(e.current.state),Y=Au(e),ee=E({},ea(e));let W=!1;if(G.forEach(Q=>{var J;if(Y[Q]!==!0){if(t.keepNonExistentRowsSelected)return;delete ee[Q],W=!0;return}if(!((J=t.rowSelectionPropagation)!=null&&J.parents))return;const U=f[Q];if(U.type==="group"){if(U.isAutoGenerated){delete ee[Q],W=!0;return}U.children.every(le=>Y[le]===!1)||(delete ee[Q],W=!0)}}),W||h&&!H){const Q=Object.values(ee);h?e.current.selectRows(Q,!0,!0):e.current.setRowSelectionModel(Q)}},[e,h,(K=t.rowSelectionPropagation)==null?void 0:K.parents,t.keepNonExistentRowsSelected,f]),S=p.useCallback((H,G)=>{const Y=G.metaKey||G.ctrlKey,ee=!a&&!Y&&!hge(G),W=!u||ee,Q=e.current.isRowSelected(H);W?e.current.selectRow(H,ee?!0:!Q,!0):e.current.selectRow(H,!Q,!1)},[e,u,a]),R=p.useCallback((H,G)=>{var W;if(l)return;const Y=(W=G.target.closest(`.${B.cell}`))==null?void 0:W.getAttribute("data-field");if(Y===Du.field||Y===iy)return;if(Y){const Q=e.current.getColumn(Y);if((Q==null?void 0:Q.type)===ny)return}e.current.getRowNode(H.id).type!=="pinnedRow"&&(G.shiftKey&&u?m(H.id):S(H.id,G))},[l,u,e,m,S]),O=p.useCallback((H,G)=>{var Y;u&&G.shiftKey&&((Y=window.getSelection())==null||Y.removeAllRanges())},[u]),A=p.useCallback((H,G)=>{u&&G.nativeEvent.shiftKey?m(H.id):e.current.selectRow(H.id,H.value,!u)},[e,m,u]),D=p.useCallback(H=>{const G=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?n5(e):Ac(e);e.current.selectRows(G,H.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),_=p.useCallback((H,G)=>{if(e.current.getCellMode(H.id,H.field)!==vt.Edit&&!vp(G)){if(vg(G.key)&&G.shiftKey){const Y=Or(e);if(Y&&Y.id!==H.id){G.preventDefault();const ee=e.current.isRowSelected(Y.id);if(!u){e.current.selectRow(Y.id,!ee,!0);return}const W=e.current.getRowIndexRelativeToVisibleRows(Y.id),Q=e.current.getRowIndexRelativeToVisibleRows(H.id);let U,J;W>Q?ee?(U=Q,J=W-1):(U=Q,J=W):ee?(U=W+1,J=Q):(U=W,J=Q);const Z=d.rows.slice(U,J+1).map(le=>le.id);e.current.selectRows(Z,!ee);return}}if(G.key===" "&&G.shiftKey){G.preventDefault(),S(H.id,G);return}String.fromCharCode(G.keyCode)==="A"&&(G.ctrlKey||G.metaKey)&&(G.preventDefault(),x(e.current.getAllRowIds(),!0))}},[e,S,x,d.rows,u]);Ie(e,"sortedRowsSet",r(()=>k(!0))),Ie(e,"filteredRowsSet",r(k)),Ie(e,"rowClick",r(R)),Ie(e,"rowSelectionCheckboxChange",r(A)),Ie(e,"headerSelectionCheckboxChange",D),Ie(e,"cellMouseDown",r(O)),Ie(e,"cellKeyDown",r(_)),p.useEffect(()=>{i!==void 0&&e.current.setRowSelectionModel(i)},[e,i,t.rowSelection]),p.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const $=i!=null;p.useEffect(()=>{if($||!t.rowSelection)return;const H=to(e.current.state);if(w){const G=H.filter(Y=>w(Y));G.length{if(!t.rowSelection||$)return;const H=to(e.current.state);!u&&H.length>1&&e.current.setRowSelectionModel([])},[e,u,a,$,t.rowSelection]),p.useEffect(()=>{r(k)},[k,r]),p.useEffect(()=>{M.current&&(M.current=!1)},[])},sbe=e=>{const{classes:t}=e;return p.useMemo(()=>ve({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},rt,t),[t])},abe=(e,t)=>{const n={classes:t.classes},r=sbe(n),o=p.useCallback(i=>{const s=E({},Du,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,l=i.lookup[Ei]!=null;return a&&!l?(i.lookup[Ei]=s,i.orderedFields=[Ei,...i.orderedFields]):!a&&l?(delete i.lookup[Ei],i.orderedFields=i.orderedFields.filter(c=>c!==Ei)):a&&l&&(i.lookup[Ei]=E({},s,i.lookup[Ei])),i},[e,r,t.checkboxSelection]);Lt(e,"hydrateColumns",o)},lbe=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return E({},e,{sorting:{sortModel:Ej(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},cbe=(e,t)=>{var P,I;const n=yn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:eo,changeEvent:"sortModelChange"});const r=p.useCallback((T,M)=>{const k=eo(e),S=k.findIndex(O=>O.field===T);let R=[...k];return S>-1?(M==null?void 0:M.sort)==null?R.splice(S,1):R.splice(S,1,M):R=[...k,M],R},[e]),o=p.useCallback((T,M)=>{const S=eo(e).find(R=>R.field===T.field);if(S){const R=M===void 0?D2(T.sortingOrder??t.sortingOrder,S.sort):M;return R===void 0?void 0:E({},S,{sort:R})}return{field:T.field,sort:M===void 0?D2(T.sortingOrder??t.sortingOrder):M}},[e,t.sortingOrder]),i=p.useCallback((T,M)=>M==null||M.sortable===!1||t.disableColumnSorting?T:(M.sortingOrder||t.sortingOrder).some(S=>!!S)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),s=p.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),E({},T,{sorting:E({},T.sorting,{sortedRows:j1(Hn(e),En,!1)})});const M=eo(T,e.current.instanceId),k=yde(M,e),S=e.current.applyStrategyProcessor("sorting",{sortRowList:k});return E({},T,{sorting:E({},T.sorting,{sortedRows:S})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=p.useCallback(T=>{eo(e)!==T&&(n.debug("Setting sort model"),e.current.setState(A2(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=p.useCallback((T,M,k)=>{const S=e.current.getColumn(T),R=o(S,M);let O;!k||t.disableMultipleColumnsSorting?O=(R==null?void 0:R.sort)==null?[]:[R]:O=r(S.field,R),e.current.setSortModel(O)},[e,r,o,t.disableMultipleColumnsSorting]),c=p.useCallback(()=>eo(e),[e]),u=p.useCallback(()=>N1(e).map(M=>M.model),[e]),d=p.useCallback(()=>hp(e),[e]),f=p.useCallback(T=>e.current.getSortedRowIds()[T],[e]);Xe(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:a,sortColumn:l,applySorting:s},"public");const m=p.useCallback((T,M)=>{var R,O;const k=eo(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=(R=t.initialState)==null?void 0:R.sorting)==null?void 0:O.sortModel)!=null||k.length>0?E({},T,{sorting:{sortModel:k}}):T},[e,t.sortModel,(I=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:I.sortModel]),y=p.useCallback((T,M)=>{var S;const k=(S=M.stateToRestore.sorting)==null?void 0:S.sortModel;return k==null?T:(e.current.setState(A2(k,t.disableMultipleColumnsSorting)),E({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=p.useCallback(T=>{const M=Hn(e),k=M[En],S=T.sortRowList?T.sortRowList(k.children.map(R=>M[R])):[...k.children];return k.footerId!=null&&S.push(k.footerId),S},[e]);Lt(e,"exportState",m),Lt(e,"restoreState",y),yg(e,sl,"sorting",C);const w=p.useCallback(({field:T,colDef:M},k)=>{if(!M.sortable||t.disableColumnSorting)return;const S=k.shiftKey||k.metaKey||k.ctrlKey;l(T,void 0,S)},[l,t.disableColumnSorting]),b=p.useCallback(({field:T,colDef:M},k)=>{!M.sortable||t.disableColumnSorting||k.key==="Enter"&&!k.ctrlKey&&!k.metaKey&&l(T,void 0,k.shiftKey)},[l,t.disableColumnSorting]),g=p.useCallback(()=>{const T=eo(e),M=ls(e);if(T.length>0){const k=T.filter(S=>M[S.field]);k.length{T==="sorting"&&e.current.applySorting()},[e]);Lt(e,"columnMenu",i),Ie(e,"columnHeaderClick",w),Ie(e,"columnHeaderKeyDown",b),Ie(e,"rowsSet",e.current.applySorting),Ie(e,"columnsChange",g),Ie(e,"activeStrategyProcessorChange",x),mp(()=>{e.current.applySorting()}),pt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function kO(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Ir(),r=yn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,s=ue(e,fa),a=p.useCallback(d=>{var w;const f=$n(e.current.state),h=ry(e),m=t.unstable_listView?[fu(e.current.state)]:mn(e);if(!(d.rowIndex==null)&&h===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let C={};if(d.colIndex!==void 0){const b=da(e);let g;if(typeof d.rowIndex<"u"){const x=(w=s[d.rowIndex])==null?void 0:w.id,P=e.current.unstable_getCellColSpanInfo(x,d.colIndex);P&&!P.spannedByColSpan&&(g=P.cellProps.width)}typeof g>"u"&&(g=m[d.colIndex].computedWidth),C.left=kO({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:g,elementOffset:b[d.colIndex]})}if(d.rowIndex!==void 0){const b=Lu(e.current.state),g=jfe(e),x=Nfe(e),P=t.pagination?d.rowIndex-g*x:d.rowIndex,I=b.positions[P+1]?b.positions[P+1]-b.positions[P]:b.currentPageTotalHeight-b.positions[P];C.top=kO({containerSize:f.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:I,elementOffset:b.positions[P]})}return C=e.current.unstable_applyPipeProcessors("scrollToIndexes",C,d),typeof C.left!==void 0||typeof C.top!==void 0?(e.current.scroll(C),!0):!1},[r,e,i,t.pagination,s,t.unstable_listView]),l=p.useCallback(d=>{if(i.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!==void 0&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=p.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Xe(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function dbe(e,t){St(e,"columnHeaderClick",t.onColumnHeaderClick),St(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),St(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),St(e,"columnHeaderOver",t.onColumnHeaderOver),St(e,"columnHeaderOut",t.onColumnHeaderOut),St(e,"columnHeaderEnter",t.onColumnHeaderEnter),St(e,"columnHeaderLeave",t.onColumnHeaderLeave),St(e,"cellClick",t.onCellClick),St(e,"cellDoubleClick",t.onCellDoubleClick),St(e,"cellKeyDown",t.onCellKeyDown),St(e,"preferencePanelClose",t.onPreferencePanelClose),St(e,"preferencePanelOpen",t.onPreferencePanelOpen),St(e,"menuOpen",t.onMenuOpen),St(e,"menuClose",t.onMenuClose),St(e,"rowDoubleClick",t.onRowDoubleClick),St(e,"rowClick",t.onRowClick),St(e,"stateChange",t.onStateChange)}function fbe(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...s){r=s,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const IC={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:yi.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1},Kl={width:0,height:0},pbe={isReady:!1,root:Kl,viewportOuterSize:Kl,viewportInnerSize:Kl,contentSize:Kl,minimumSize:Kl,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},hbe=e=>E({},e,{dimensions:pbe});function mbe(e,t){const n=yn(e,"useResizeContainer"),r=p.useRef(!1),o=p.useRef(Kl),i=ue(e,$n),s=ue(e,Lu),a=ue(e,pp),l=ue(e,fp),c=p.useMemo(()=>Hj(t.rowHeight,IC.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),h=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),m=vbe(A1(e),6),y=W1(e,t),C=a.left.reduce(($,L)=>$+L.computedWidth,0),w=a.right.reduce(($,L)=>$+L.computedWidth,0),[b,g]=p.useState(),x=p.useMemo(()=>fbe(g,t.resizeThrottleMs),[t.resizeThrottleMs]),P=p.useRef(),I=()=>e.current.state.dimensions,T=nt($=>{e.current.setState(L=>E({},L,{dimensions:$}))}),M=p.useCallback(()=>{const $=e.current.mainElementRef.current;if(!$)return;const L=hi($).getComputedStyle($),F={width:parseFloat(L.width)||0,height:parseFloat(L.height)||0};(!P.current||!TO(P.current,F))&&(e.current.publishEvent("resize",F),P.current=F)},[e]),k=p.useCallback(()=>{const $=$n(e.current.state);if(!$.isReady)return 0;const L=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const j=fy(e),N=j.lastRowIndex-j.firstRowIndex;return Math.min(N-1,L.rows.length)}const F=Math.floor($.viewportInnerSize.height/u);return Math.min(F,L.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),S=p.useCallback(()=>{var J,Z;const $=e.current.rootElementRef.current,L=Zde(e),F=gbe($,m,t.scrollbarSize),j=y+L.top,N=L.bottom,V={width:m-C-w,height:s.currentPageTotalHeight};let K,H,G=!1,Y=!1;if(t.autoHeight)Y=!1,G=Math.round(m)>Math.round(o.current.width),K={width:o.current.width,height:j+N+V.height},H={width:Math.max(0,K.width-(Y?F:0)),height:Math.max(0,K.height-(G?F:0))};else{K={width:o.current.width,height:o.current.height},H={width:Math.max(0,K.width-C-w),height:Math.max(0,K.height-j-N)};const le=V,he=H,ye=le.width>he.width,pe=le.height>he.height;(ye||pe)&&(Y=pe,G=le.width+(Y?F:0)>he.width,G&&(Y=le.height+F>he.height)),Y&&(H.width-=F),G&&(H.height-=F)}const ee=Math.max(K.width,m+(Y?F:0)),W={width:m,height:j+V.height+N},Q={isReady:!0,root:o.current,viewportOuterSize:K,viewportInnerSize:H,contentSize:V,minimumSize:W,hasScrollX:G,hasScrollY:Y,scrollbarSize:F,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:h,rowWidth:ee,rowHeight:u,columnsTotalWidth:m,leftPinnedWidth:C,rightPinnedWidth:w,headersTotalHeight:y,topContainerHeight:j,bottomContainerHeight:N},U=e.current.state.dimensions;T(Q),TO(Q.viewportInnerSize,U.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",Q.viewportInnerSize),(Z=(J=e.current).updateRenderContext)==null||Z.call(J)},[e,T,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,u,d,f,h,m,y,C,w]),R={resize:M,getRootDimensions:I},O={updateDimensions:S,getViewportPageSize:k};Xe(e,R,"public"),Xe(e,O,"private"),pt(()=>{b&&(S(),e.current.publishEvent("debouncedResize",o.current))},[e,b,S]);const A=e.current.rootElementRef.current;pt(()=>{if(!A)return;const $=(L,F)=>A.style.setProperty(L,F);$("--DataGrid-width",`${i.viewportOuterSize.width}px`),$("--DataGrid-hasScrollX",`${Number(i.hasScrollX)}`),$("--DataGrid-hasScrollY",`${Number(i.hasScrollY)}`),$("--DataGrid-scrollbarSize",`${i.scrollbarSize}px`),$("--DataGrid-rowWidth",`${i.rowWidth}px`),$("--DataGrid-columnsTotalWidth",`${i.columnsTotalWidth}px`),$("--DataGrid-leftPinnedWidth",`${i.leftPinnedWidth}px`),$("--DataGrid-rightPinnedWidth",`${i.rightPinnedWidth}px`),$("--DataGrid-headerHeight",`${i.headerHeight}px`),$("--DataGrid-headersTotalHeight",`${i.headersTotalHeight}px`),$("--DataGrid-topContainerHeight",`${i.topContainerHeight}px`),$("--DataGrid-bottomContainerHeight",`${i.bottomContainerHeight}px`),$("--height",`${i.rowHeight}px`)},[A,i]);const D=p.useRef(!0),_=p.useCallback($=>{o.current=$;const L=/jsdom/.test(window.navigator.userAgent);if($.height===0&&!r.current&&!t.autoHeight&&!L&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`}${s}`.trim()}function IO(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function pye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{IO(e)}):IO(e)}function hye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const mye=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=p.useCallback(s=>{if(!vge(s)||hye(s.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Or(e);if(c){const u=e.current.getCellParams(c.id,c.field);a=$5(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(pye(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Zj(e,e.current.rootElementRef,"keydown",i),Pt(e,"clipboardCopy",t.onClipboardCopy)},gye=e=>E({},e,{columnMenu:{open:!1}}),vye=e=>{const t=yn(e,"useGridColumnMenu"),n=p.useCallback(s=>{const a=Vh(e.current.state),l={open:!0,field:s};(l.open!==a.open||l.field!==a.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===s?u:(t.debug("Opening Column Menu"),E({},u,{columnMenu:{open:!0,field:s}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=p.useCallback(()=>{const s=Vh(e.current.state);if(s.field){const c=cs(e),u=fo(e),d=Wi(e);let f=s.field;if(c[f]||(f=d[0]),u[f]===!1){const h=d.filter(y=>y===f?!0:u[y]!==!1),m=h.indexOf(f);f=h[m+1]||h[m-1]}e.current.setColumnHeaderFocus(f)}const a={open:!1,field:void 0};(a.open!==s.open||a.field!==s.field)&&(e.current.setState(c=>(t.debug("Hiding Column Menu"),E({},c,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=p.useCallback(s=>{t.debug("Toggle Column Menu");const a=Vh(e.current.state);!a.open||a.field!==s?n(s):r()},[e,t,n,r]);Xe(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ie(e,"columnResizeStart",r),Ie(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ie(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},yye=(e,t,n)=>{var o,i,s;const r=Wl({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((s=(i=t.initialState)==null?void 0:i.columns)==null?void 0:s.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return E({},e,{columns:r,pinnedColumns:e.pinnedColumns??bC})};function bye(e,t){var S,R;const n=yn(e,"useGridColumns"),r=p.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:fo,changeEvent:"columnVisibilityModelChange"});const o=p.useCallback(O=>{var A,D;n.debug("Updating columns state."),e.current.setState(kO(O)),e.current.publishEvent("columnsChange",O.orderedFields),(D=(A=e.current).updateRenderContext)==null||D.call(A),e.current.forceUpdate()},[n,e]),i=p.useCallback(O=>cs(e)[O],[e]),s=p.useCallback(()=>No(e),[e]),a=p.useCallback(()=>mn(e),[e]),l=p.useCallback((O,A=!0)=>(A?mn(e):No(e)).findIndex(_=>_.field===O),[e]),c=p.useCallback(O=>{const A=l(O);return fa(e)[A]},[e,l]),u=p.useCallback(O=>{var D,_;fo(e)!==O&&(e.current.setState($=>E({},$,{columns:Wl({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:O,keepOnlyColumnsToUpsert:!1})})),(_=(D=e.current).updateRenderContext)==null||_.call(D),e.current.forceUpdate())},[e]),d=p.useCallback(O=>{const A=Wl({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(A)},[e,o]),f=p.useCallback((O,A)=>{const D=fo(e),_=D[O]??!0;if(A!==_){const $=E({},D,{[O]:A});e.current.setColumnVisibilityModel($)}},[e]),h=p.useCallback(O=>Wi(e).findIndex(D=>D===O),[e]),m=p.useCallback((O,A)=>{const D=Wi(e),_=h(O);if(_===A)return;n.debug(`Moving column ${O} to index ${A}`);const $=[...D],L=$.splice(_,1)[0];$.splice(A,0,L),o(E({},di(e.current.state),{orderedFields:$}));const F={column:e.current.getColumn(O),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(O),oldIndex:_};e.current.publishEvent("columnIndexChange",F)},[e,n,o,h]),y=p.useCallback((O,A)=>{n.debug(`Updating column ${O} width to ${A}`);const D=di(e.current.state),_=D.lookup[O],$=E({},_,{width:A,hasBeenResized:!0});o(CC(E({},D,{lookup:E({},D.lookup,{[O]:$})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(O),colDef:$,width:A})},[e,n,o]),C={getColumn:i,getAllColumns:s,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:h,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:f,setColumnWidth:y},w={setColumnIndex:m};Xe(e,C,"public"),Xe(e,w,t.signature===go.DataGrid?"private":"public");const b=p.useCallback((O,A)=>{var j,N;const D={},_=fo(e);(!A.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((N=(j=t.initialState)==null?void 0:j.columns)==null?void 0:N.columnVisibilityModel)??{}).length>0||Object.keys(_).length>0)&&(D.columnVisibilityModel=_),D.orderedFields=Wi(e);const L=No(e),F={};return L.forEach(z=>{if(z.hasBeenResized){const V={};u5.forEach(K=>{let H=z[K];H===1/0&&(H=-1),V[K]=H}),F[z.field]=V}}),Object.keys(F).length>0&&(D.dimensions=F),E({},O,{columns:D})},[e,t.columnVisibilityModel,(S=t.initialState)==null?void 0:S.columns]),g=p.useCallback((O,A)=>{var L;const D=(L=A.stateToRestore.columns)==null?void 0:L.columnVisibilityModel,_=A.stateToRestore.columns;if(D==null&&_==null)return O;const $=Wl({apiRef:e,columnsToUpsert:[],initialState:_,columnVisibilityModel:D,keepOnlyColumnsToUpsert:!1});return e.current.setState(kO($)),_!=null&&e.current.publishEvent("columnsChange",$.orderedFields),O},[e]),x=p.useCallback((O,A)=>{var D;if(A===il.columns){const _=t.slots.columnsPanel;return v.jsx(_,E({},(D=t.slotProps)==null?void 0:D.columnsPanel))}return O},[t.slots.columnsPanel,(R=t.slotProps)==null?void 0:R.columnsPanel]),P=p.useCallback(O=>t.disableColumnSelector?O:[...O,"columnMenuColumnsItem"],[t.disableColumnSelector]);Lt(e,"columnMenu",P),Lt(e,"exportState",b),Lt(e,"restoreState",g),Lt(e,"preferencePanel",x);const I=p.useRef(null);Ie(e,"viewportInnerSizeChange",O=>{I.current!==O.width&&(I.current=O.width,o(CC(di(e.current.state),e.current.getRootDimensions())))});const M=p.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const O=Wl({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(O)},[e,n,o]);nP(e,"hydrateColumns",M);const k=p.useRef(!0);p.useEffect(()=>{if(k.current){k.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const O=Wl({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(O)},[n,e,o,t.columns]),p.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function kO(e){return t=>E({},t,{columns:e})}const wye=(e,t)=>{var n;return E({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},Cye=(e,t)=>{var a;const n=yn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:pc,changeEvent:"densityChange"});const o={setDensity:nt(l=>{pc(e.current.state)!==l&&(n.debug(`Set grid density to ${l}`),e.current.setState(u=>E({},u,{density:l})))})};Xe(e,o,"public");const i=p.useCallback((l,c)=>{var f;const u=pc(e.current.state);return!c.exportOnlyDirtyModels||t.density!=null||((f=t.initialState)==null?void 0:f.density)!=null?E({},l,{density:u}):l},[e,t.density,(a=t.initialState)==null?void 0:a.density]),s=p.useCallback((l,c)=>{var d;const u=(d=c.stateToRestore)!=null&&d.density?c.stateToRestore.density:pc(e.current.state);return e.current.setState(f=>E({},f,{density:u})),l},[e]);Lt(e,"exportState",i),Lt(e,"restoreState",s),p.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function xye(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const _5=({apiRef:e,options:t})=>{const n=No(e);return t.fields?t.fields.reduce((o,i)=>{const s=n.find(a=>a.field===i);return s&&o.push(s),o},[]):(t.allColumns?n:mn(e)).filter(o=>!o.disableExport)},A5=({apiRef:e})=>{var l,c;const t=Yj(e),n=Hn(e),r=e.current.getSelectedRows(),o=t.filter(u=>n[u].type!=="footer"),i=bl(e),s=((l=i==null?void 0:i.top)==null?void 0:l.map(u=>u.id))||[],a=((c=i==null?void 0:i.bottom)==null?void 0:c.map(u=>u.id))||[];return o.unshift(...s),o.push(...a),r.size>0?o.filter(u=>r.has(u)):o},Sye=(e,t)=>{const n=yn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=p.useCallback((c={})=>{n.debug("Get data as CSV");const u=_5({apiRef:e,options:c}),f=(c.getRowsToExport??A5)({apiRef:e});return fye({columns:u,rowIds:f,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=p.useCallback(c=>{n.debug("Export data as CSV");const u=i(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});xye(d,"csv",c==null?void 0:c.fileName)},[n,i]);Xe(e,{getDataAsCsv:i,exportDataAsCsv:s},"public");const l=p.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:v.jsx(yve,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Lt(e,"exportMenu",l)},Gh=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,s=(n==null?void 0:n.page)??r.page,a=e5(o,i,s);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const l=Ffe(r.page,a);return l!==r.page&&(r=E({},r,{page:l})),n5(r.pageSize,t),r},Pye=(e,t)=>{var m,y;const n=yn(e,"useGridPaginationModel"),r=ue(e,fp),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:nr,changeEvent:"paginationModelChange"});const i=p.useCallback(C=>{const w=nr(e);C!==w.page&&(n.debug(`Setting page to ${C}`),e.current.setPaginationModel({page:C,pageSize:w.pageSize}))},[e,n]),s=p.useCallback(C=>{const w=nr(e);C!==w.pageSize&&(n.debug(`Setting page size to ${C}`),e.current.setPaginationModel({pageSize:C,page:w.page}))},[e,n]),a=p.useCallback(C=>{const w=nr(e);C!==w&&(n.debug("Setting 'paginationModel' to",C),e.current.setState(b=>E({},b,{pagination:E({},b.pagination,{paginationModel:Gh(b.pagination,t.signature,C)})})))},[e,n,t.signature]);Xe(e,{setPage:i,setPageSize:s,setPaginationModel:a},"public");const c=p.useCallback((C,w)=>{var x,P;const b=nr(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((P=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:P.paginationModel)!=null||b.page!==0&&b.pageSize!==Lfe(t.autoPageSize)?E({},C,{pagination:E({},C.pagination,{paginationModel:b})}):C},[e,t.paginationModel,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.paginationModel,t.autoPageSize]),u=p.useCallback((C,w)=>{var g,x;const b=(g=w.stateToRestore.pagination)!=null&&g.paginationModel?E({},t5(t.autoPageSize),(x=w.stateToRestore.pagination)==null?void 0:x.paginationModel):nr(e);return e.current.setState(P=>E({},P,{pagination:E({},P.pagination,{paginationModel:Gh(P.pagination,t.signature,b)})})),C},[e,t.autoPageSize,t.signature]);Lt(e,"exportState",c),Lt(e,"restoreState",u);const d=()=>{var w;const C=nr(e);(w=e.current.virtualScrollerRef)!=null&&w.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize})},f=p.useCallback(()=>{if(!t.autoPageSize)return;const C=e.current.getRootDimensions(),w=Math.floor(C.viewportInnerSize.height/o);e.current.setPageSize(w)},[e,t.autoPageSize,o]),h=p.useCallback(C=>{if(C==null)return;const w=nr(e),b=r5(e);w.page>b-1&&e.current.setPage(Math.max(0,b-1))},[e]);Ie(e,"viewportInnerSizeChange",f),Ie(e,"paginationModelChange",d),Ie(e,"rowCountChange",h),p.useEffect(()=>{e.current.setState(C=>E({},C,{pagination:E({},C.pagination,{paginationModel:Gh(C.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),p.useEffect(f,[f])};function Iye(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function kye(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const Tye=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=yn(e,"useGridPrintExport"),o=p.useRef(null),i=p.useRef(null),s=p.useRef({}),a=p.useRef([]),l=p.useRef();p.useEffect(()=>{o.current=Wt(e.current.rootElementRef.current)},[e,n]);const c=p.useCallback((C,w,b)=>new Promise(g=>{const x=_5({apiRef:e,options:{fields:C,allColumns:w}}).map(T=>T.field),P=No(e),I={};P.forEach(T=>{I[T.field]=x.includes(T.field)}),b&&(I[Du.field]=!0),e.current.setColumnVisibilityModel(I),g()}),[e]),u=p.useCallback(C=>{const b=C({apiRef:e}).reduce((g,x)=>{const P=e.current.getRow(x);return P[_c]||g.push(P),g},[]);e.current.setRows(b)},[e]),d=p.useCallback((C,w)=>{var D,_,$,L;const b=E({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},w),g=C.contentDocument;if(!g)return;const x=Lu(e.current.state),P=e.current.rootElementRef.current,I=P.cloneNode(!0),T=I.querySelector(`.${B.main}`);T.style.overflow="visible",I.style.contain="size";let M=((D=P.querySelector(`.${B.toolbarContainer}`))==null?void 0:D.offsetHeight)||0,k=((_=P.querySelector(`.${B.footerContainer}`))==null?void 0:_.offsetHeight)||0;b.hideToolbar&&(($=I.querySelector(`.${B.toolbarContainer}`))==null||$.remove(),M=0),b.hideFooter&&((L=I.querySelector(`.${B.footerContainer}`))==null||L.remove(),k=0);const S=x.currentPageTotalHeight+q1(e,t)+M+k;if(I.style.height=`${S}px`,I.style.boxSizing="content-box",!b.hideFooter){const F=I.querySelector(`.${B.footerContainer}`);F.style.position="absolute",F.style.width="100%",F.style.top=`${S-k}px`}const R=document.createElement("div");R.appendChild(I),g.body.style.marginTop="0px",g.body.innerHTML=R.innerHTML;const O=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof O=="string"){const F=g.createElement("style");F.appendChild(g.createTextNode(O)),g.head.appendChild(F)}b.bodyClassName&&g.body.classList.add(...b.bodyClassName.split(" "));const A=[];if(b.copyStyles){const F=P.getRootNode(),N=(F.constructor.name==="ShadowRoot"?F:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z{K.addEventListener("load",()=>H())})),g.head.appendChild(K)}}}Promise.all(A).then(()=>{C.contentWindow.print()})},[e,o,t]),f=p.useCallback(C=>{var w,b;o.current.body.removeChild(C),e.current.restoreState(i.current||{}),(b=(w=i.current)==null?void 0:w.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState(g=>E({},g,{virtualization:l.current})),e.current.setRows(a.current),i.current=null,s.current={},a.current=[]},[e]),m={exportDataAsPrint:p.useCallback(async C=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),s.current=fo(e),a.current=e.current.getSortedRows().filter(b=>!b[_c]),t.pagination){const g={page:0,pageSize:H1(e)};e.current.setState(x=>E({},x,{pagination:E({},x.pagination,{paginationModel:Gh(x.pagination,"DataGridPro",g)})}))}l.current=e.current.state.virtualization,e.current.setState(b=>E({},b,{virtualization:E({},b.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(C==null?void 0:C.fields,C==null?void 0:C.allColumns,C==null?void 0:C.includeCheckboxes),u((C==null?void 0:C.getRowsToExport)??A5),await Iye();const w=kye(C==null?void 0:C.fileName);w.onload=()=>{d(w,C),w.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&f(w)})},o.current.body.appendChild(w)},[t,r,e,d,f,c,u])};Xe(e,m,"public");const y=p.useCallback((C,w)=>{var b;return(b=w.printOptions)!=null&&b.disableToolbarButton?C:[...C,{component:v.jsx(bve,{options:w.printOptions}),componentName:"printExport"}]},[]);Lt(e,"exportMenu",y)},Eye=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??Af();return E({},e,{filter:{filterModel:N1(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Oye=e=>e.filteredRowsLookup;function TO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Mye(){return kj(Object.values)}const Rye=(e,t)=>{var k,S,R;const n=yn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:kn,changeEvent:"filterModelChange"});const r=p.useCallback(()=>{e.current.setState(O=>{const A=kn(O,e.current.instanceId),D=e.current.getFilterState(A),_=E({},O,{filter:E({},O.filter,D)}),$=TO(e,_);return E({},_,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e]),o=p.useCallback((O,A)=>A==null||A.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),i=p.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),s=p.useCallback(O=>{const A=kn(e),D=[...A.items],_=D.findIndex($=>$.id===O.id);_===-1?D.push(O):D[_]=O,e.current.setFilterModel(E({},A,{items:D}),"upsertFilterItem")},[e]),a=p.useCallback(O=>{const A=kn(e),D=[...A.items];O.forEach(_=>{const $=D.findIndex(L=>L.id===_.id);$===-1?D.push(_):D[$]=_}),e.current.setFilterModel(E({},A,{items:D}),"upsertFilterItems")},[e]),l=p.useCallback(O=>{const A=kn(e),D=A.items.filter(_=>_.id!==O.id);D.length!==A.items.length&&e.current.setFilterModel(E({},A,{items:D}),"deleteFilterItem")},[e]),c=p.useCallback((O,A,D)=>{if(n.debug("Displaying filter panel"),O){const _=kn(e),$=_.items.filter(N=>{var H;if(N.value!==void 0)return!(Array.isArray(N.value)&&N.value.length===0);const V=(H=e.current.getColumn(N.field).filterOperators)==null?void 0:H.find(G=>G.value===N.operator);return!(typeof(V==null?void 0:V.requiresFilterValue)>"u"?!0:V==null?void 0:V.requiresFilterValue)});let L;const F=$.find(N=>N.field===O),j=e.current.getColumn(O);F?L=$:t.disableMultipleColumnsFiltering?L=[wC({field:O,operator:j.filterOperators[0].value},e)]:L=[...$,wC({field:O,operator:j.filterOperators[0].value},e)],e.current.setFilterModel(E({},_,{items:L}))}e.current.showPreferences(il.filters,A,D)},[e,n,t.disableMultipleColumnsFiltering]),u=p.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),d=p.useCallback(O=>{const A=kn(e);A.logicOperator!==O&&e.current.setFilterModel(E({},A,{logicOperator:O}),"changeLogicOperator")},[e]),f=p.useCallback(O=>{const A=kn(e);$c(A.quickFilterValues,O)||e.current.setFilterModel(E({},A,{quickFilterValues:[...O]}))},[e]),h=p.useCallback((O,A)=>{kn(e)!==O&&(n.debug("Setting filter model"),e.current.updateControlState("filter",N2(O,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),m=p.useCallback(O=>{const A=N1(O,t.disableMultipleColumnsFiltering,e),D=t.filterMode==="client"?$de(A,e,t.disableEval):null,_=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:D,filterModel:A??Af()});return E({},_,{filterModel:A})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:s,upsertFilterItems:a,setFilterModel:h,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:m};Xe(e,y,"public");const C=p.useCallback((O,A)=>{var $,L;const D=kn(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((L=($=t.initialState)==null?void 0:$.filter)==null?void 0:L.filterModel)!=null||!$c(D,Af())?E({},O,{filter:{filterModel:D}}):O},[e,t.filterModel,(S=(k=t.initialState)==null?void 0:k.filter)==null?void 0:S.filterModel]),w=p.useCallback((O,A)=>{var _;const D=(_=A.stateToRestore.filter)==null?void 0:_.filterModel;return D==null?O:(e.current.updateControlState("filter",N2(D,t.disableMultipleColumnsFiltering,e),"restoreState"),E({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),b=p.useCallback((O,A)=>{var D;if(A===il.filters){const _=t.slots.filterPanel;return v.jsx(_,E({},(D=t.slotProps)==null?void 0:D.filterPanel))}return O},[t.slots.filterPanel,(R=t.slotProps)==null?void 0:R.filterPanel]),{getRowId:g}=t,x=Vo(Mye),P=p.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters)return{filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}};const A=Fs(e),D={},{isRowMatchingFilters:_}=O,$={},L={passingFilterItems:null,passingQuickFilterValues:null},F=x.current(e.current.state.rows.dataRowIdToModelLookup);for(let z=0;z{n.debug("onColUpdated - GridColumns changed, applying filters");const O=kn(e),A=cs(e),D=O.items.filter(_=>_.field&&A[_.field]);D.length{O==="filtering"&&e.current.unstable_applyFilters()},[e]),M=p.useCallback(()=>{e.current.setState(O=>E({},O,{visibleRowsLookup:TO(e,O)})),e.current.forceUpdate()},[e]);Ie(e,"rowsSet",r),Ie(e,"columnsChange",I),Ie(e,"activeStrategyProcessorChange",T),Ie(e,"rowExpansionChange",M),Ie(e,"columnVisibilityModelChange",()=>{const O=kn(e);O.quickFilterValues&&Nj(O)&&e.current.unstable_applyFilters()}),mp(()=>{e.current.unstable_applyFilters()}),ht(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},$ye=e=>E({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),_ye=(e,t)=>{const n=yn(e,"useGridFocus"),r=p.useRef(null),o=e.current.rootElementRef.current!==null,i=p.useCallback((M,k)=>{M&&e.current.getRow(M.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(M.id,M.field),k)},[e]),s=p.useCallback((M,k)=>{const S=Or(e);(S==null?void 0:S.id)===M&&(S==null?void 0:S.field)===k||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${M} and field=${k}`),E({},R,{tabIndex:{cell:{id:M,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:M,field:k},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(M)&&(S&&i(S,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(M,k))))},[e,n,i]),a=p.useCallback((M,k={})=>{const S=Or(e);i(S,k),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${M}`),E({},R,{tabIndex:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:M},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),l=p.useCallback((M,k={})=>{const S=Or(e);i(S,k),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${M}`),E({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:M},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=p.useCallback((M,k,S={})=>{const R=Or(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),S),e.current.setState(O=>E({},O,{tabIndex:{columnGroupHeader:{field:M,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:M,depth:k},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=p.useCallback(()=>mg(e),[e]),d=p.useCallback((M,k,S)=>{let R=e.current.getColumnIndex(k);const O=mn(e),A=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=bl(e),_=[].concat(D.top||[],A.rows,D.bottom||[]);let $=_.findIndex(N=>N.id===M);S==="right"?R+=1:S==="left"?R-=1:$+=1,R>=O.length?($+=1,$<_.length&&(R=0)):R<0&&($-=1,$>=0&&(R=O.length-1)),$=fi($,0,_.length-1);const L=_[$];if(!L)return;const F=e.current.unstable_getCellColSpanInfo(L.id,R);F&&F.spannedByColSpan&&(S==="left"||S==="below"?R=F.leftVisibleCellIndex:S==="right"&&(R=F.rightVisibleCellIndex)),R=fi(R,0,O.length-1);const j=O[R];e.current.setCellFocus(L.id,j.field)},[e,t.pagination,t.paginationMode]),f=p.useCallback(({id:M,field:k})=>{e.current.setCellFocus(M,k)},[e]),h=p.useCallback((M,k)=>{k.key==="Enter"||k.key==="Tab"||k.key==="Shift"||yg(k.key)||e.current.setCellFocus(M.id,M.field)},[e]),m=p.useCallback(({field:M},k)=>{k.target===k.currentTarget&&e.current.setColumnHeaderFocus(M,k)},[e]),y=p.useCallback(({fields:M,depth:k},S)=>{if(S.target!==S.currentTarget)return;const R=mg(e);R!==null&&R.depth===k&&M.includes(R.field)||e.current.setColumnGroupHeaderFocus(M[0],k,S)},[e]),C=p.useCallback((M,k)=>{var S,R;(R=(S=k.relatedTarget)==null?void 0:S.getAttribute("class"))!=null&&R.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>E({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),w=p.useCallback(M=>{r.current=M},[]),b=p.useCallback(M=>{const k=r.current;r.current=null;const S=Or(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:k}))return;if(!S){k&&e.current.setCellFocus(k.id,k.field);return}if((k==null?void 0:k.id)===S.id&&(k==null?void 0:k.field)===S.field)return;const O=e.current.getCellElement(S.id,S.field);O!=null&&O.contains(M.target)||(k?e.current.setCellFocus(k.id,k.field):(e.current.setState(A=>E({},A,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(S,M)))},[e,i]),g=p.useCallback(M=>{if(M.cellMode==="view")return;const k=Or(e);((k==null?void 0:k.id)!==M.id||(k==null?void 0:k.field)!==M.field)&&e.current.setCellFocus(M.id,M.field)},[e]),x=p.useCallback(()=>{var k;const M=Or(e);if(M&&!e.current.getRow(M.id)){const S=(k=Or(e))==null?void 0:k.id;let R=null;if(typeof S<"u"){const O=e.current.getRowIndexRelativeToVisibleRows(S),A=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=A.rows[fi(O,0,A.rows.length-1)];R=(D==null?void 0:D.id)??null}e.current.setState(O=>E({},O,{focus:{cell:R===null?null:{id:R,field:M.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),P=nt(()=>{const M=Or(e);if(!M)return;const k=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(k.rows.find(O=>O.id===M.id))return;const R=mn(e);e.current.setState(O=>E({},O,{tabIndex:{cell:{id:k.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),I={setCellFocus:s,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},T={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Xe(e,I,"public"),Xe(e,T,"private"),p.useEffect(()=>{const M=Wt(e.current.rootElementRef.current);return M.addEventListener("mouseup",b),()=>{M.removeEventListener("mouseup",b)}},[e,o,b]),Ie(e,"columnHeaderBlur",C),Ie(e,"cellDoubleClick",f),Ie(e,"cellMouseDown",w),Ie(e,"cellKeyDown",h),Ie(e,"cellModeChange",g),Ie(e,"columnHeaderFocus",m),Ie(e,"columnGroupHeaderFocus",y),Ie(e,"rowsSet",x),Ie(e,"paginationModelChange",P)},Aye=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},Dye=e=>e===Gj||Aye(e)!==null;function Lye(e,t){const n=bl(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const i0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(et)return e-1;return null},s0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e=0&&s{const n=yn(e,"useGridKeyboardNavigation"),r=ha(e,t).rows,o=Ir(),i=t.unstable_listView,s=p.useMemo(()=>Lye(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.headerFilters,l=p.useCallback((b,g,x="left",P="up")=>{const I=pa(e),T=e.current.unstable_getCellColSpanInfo(g,b);T&&T.spannedByColSpan&&(x==="left"?b=T.leftVisibleCellIndex:x==="right"&&(b=T.rightVisibleCellIndex));const M=i?fu(e.current.state).field:$u(e)[b],k=Fye(e,g,M,P),S=I.findIndex(R=>R.id===k);n.debug(`Navigating to cell row ${S}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:S}),e.current.setCellFocus(k,M)},[e,n,i]),c=p.useCallback((b,g)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(x,g)},[e,n]),u=p.useCallback((b,g)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(x,g)},[e,n]),d=p.useCallback((b,g,x)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:P}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(P,g,x)},[e,n]),f=p.useCallback(b=>{var g;return(g=s[b])==null?void 0:g.id},[s]),h=p.useCallback((b,g)=>{const x=g.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(g.target)&&b.field!==Du.field)return;const I=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,M=s.length>0?0:null,k=s.length-1,S=0,R=mn(e).length-1,O=gp(e);let A=!0;switch(g.key){case"ArrowDown":{M!==null&&(a?u(T,g):l(T,f(M)));break}case"ArrowRight":{const D=s0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});D!==null&&c(D,g);break}case"ArrowLeft":{const D=i0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});D!==null&&c(D,g);break}case"ArrowUp":{O>0&&d(T,O-1,g);break}case"PageDown":{M!==null&&k!==null&&l(T,f(Math.min(M+I,k)));break}case"Home":{c(S,g);break}case"End":{c(R,g);break}case"Enter":{(g.ctrlKey||g.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:A=!1}A&&g.preventDefault()},[e,s.length,a,u,l,f,o,c,d]),m=p.useCallback((b,g)=>{const x=Spe(e)===b.field,P=Ppe(e)===b.field;if(x||P||!yg(g.key))return;const I=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,M=0,k=s.length-1,S=0,R=mn(e).length-1;let O=!0;switch(g.key){case"ArrowDown":{const A=f(M);A!=null&&l(T,A);break}case"ArrowRight":{const A=s0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null&&u(A,g);break}case"ArrowLeft":{const A=i0({currentColIndex:T,firstColIndex:S,lastColIndex:R,isRtl:o});A!==null?u(A,g):e.current.setColumnHeaderFilterFocus(b.field,g);break}case"ArrowUp":{c(T,g);break}case"PageDown":{k!==null&&l(T,f(Math.min(M+I,k)));break}case"Home":{u(S,g);break}case"End":{u(R,g);break}case" ":break;default:O=!1}O&&g.preventDefault()},[e,s.length,u,o,c,l,f]),y=p.useCallback((b,g)=>{const x=mg(e);if(x===null)return;const{field:P,depth:I}=x,{fields:T,depth:M,maxDepth:k}=b,S=e.current.getViewportPageSize(),R=e.current.getColumnIndex(P),O=P?e.current.getColumnIndex(P):0,A=0,D=s.length-1,_=0,$=mn(e).length-1;let L=!0;switch(g.key){case"ArrowDown":{M===k-1?c(R,g):d(R,I+1,g);break}case"ArrowUp":{M>0&&d(R,I-1,g);break}case"ArrowRight":{const F=T.length-T.indexOf(P)-1;R+F+1<=$&&d(R+F+1,I,g);break}case"ArrowLeft":{const F=T.indexOf(P);R-F-1>=_&&d(R-F-1,I,g);break}case"PageDown":{D!==null&&l(O,f(Math.min(A+S,D)));break}case"Home":{d(_,I,g);break}case"End":{d($,I,g);break}case" ":break;default:L=!1}L&&g.preventDefault()},[e,s.length,c,d,l,f]),C=p.useCallback((b,g)=>{if(vp(g))return;const x=e.current.getCellParams(b.id,b.field);if(x.cellMode===pt.Edit||!yg(g.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:g,cell:x})||s.length===0)return;const I=e.current.getViewportPageSize(),T=i?()=>0:e.current.getColumnIndex,M=b.field?T(b.field):0,k=s.findIndex($=>$.id===b.id),S=0,R=s.length-1,O=0,D=(i?[fu(e.current.state)]:mn(e)).length-1;let _=!0;switch(g.key){case"ArrowDown":{kS?l(M,f(k-1)):a?u(M,g):c(M,g);break}case"ArrowRight":{const $=s0({currentColIndex:M,firstColIndex:O,lastColIndex:D,isRtl:o});$!==null&&l($,f(k),o?"left":"right");break}case"ArrowLeft":{const $=i0({currentColIndex:M,firstColIndex:O,lastColIndex:D,isRtl:o});$!==null&&l($,f(k),o?"right":"left");break}case"Tab":{g.shiftKey&&M>O?l(M-1,f(k),"left"):!g.shiftKey&&M=S?l(M,f($)):c(M,g);break}case"Home":{g.ctrlKey||g.metaKey||g.shiftKey?l(O,f(S)):l(O,f(k));break}case"End":{g.ctrlKey||g.metaKey||g.shiftKey?l(D,f(R)):l(D,f(k));break}default:_=!1}_&&g.preventDefault()},[e,s,o,l,f,a,u,c,i]),w=p.useCallback((b,{event:g})=>g.key===" "?!1:b,[]);Lt(e,"canStartEditing",w),Ie(e,"columnHeaderKeyDown",h),Ie(e,"headerFilterKeyDown",m),Ie(e,"columnGroupHeaderKeyDown",y),Ie(e,"cellKeyDown",C)},Nye=(e,t)=>{var m,y;const n=yn(e,"useGridRowCount"),r=ue(e,V1),o=ue(e,hc),i=ue(e,Sd),s=ue(e,nr),a=Vo(()=>nr(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:hc,changeEvent:"rowCountChange"});const c={setRowCount:p.useCallback(C=>{o!==C&&(n.debug("Setting 'rowCount' to",C),e.current.setState(w=>E({},w,{pagination:E({},w.pagination,{rowCount:C})})))},[e,n,o])};Xe(e,c,"public");const u=p.useCallback((C,w)=>{var x,P;const b=hc(e);return!w.exportOnlyDirtyModels||t.rowCount!=null||((P=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:P.rowCount)!=null?E({},C,{pagination:E({},C.pagination,{rowCount:b})}):C},[e,t.rowCount,(y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.rowCount]),d=p.useCallback((C,w)=>{var g;const b=(g=w.stateToRestore.pagination)!=null&&g.rowCount?w.stateToRestore.pagination.rowCount:hc(e);return e.current.setState(x=>E({},x,{pagination:E({},x.pagination,{rowCount:b})})),C},[e]);Lt(e,"exportState",u),Lt(e,"restoreState",d);const f=p.useCallback(C=>{t.paginationMode==="client"||!a.current||C.pageSize!==a.current&&(a.current=C.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Ie(e,"paginationModelChange",f),p.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const h=i.hasNextPage===!1;p.useEffect(()=>{h&&o===-1&&e.current.setRowCount(s.pageSize*s.page+r)},[e,r,h,o,s])},Bye=(e,t)=>{var l,c;const n=yn(e,"useGridPaginationMeta"),r=ue(e,Sd);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Sd,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:p.useCallback(u=>{r!==u&&(n.debug("Setting 'paginationMeta' to",u),e.current.setState(d=>E({},d,{pagination:E({},d.pagination,{meta:u})})))},[e,n,r])};Xe(e,i,"public");const s=p.useCallback((u,d)=>{var m,y;const f=Sd(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((y=(m=t.initialState)==null?void 0:m.pagination)==null?void 0:y.meta)!=null?E({},u,{pagination:E({},u.pagination,{meta:f})}):u},[e,t.paginationMeta,(c=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:c.meta]),a=p.useCallback((u,d)=>{var h;const f=(h=d.stateToRestore.pagination)!=null&&h.meta?d.stateToRestore.pagination.meta:Sd(e);return e.current.setState(m=>E({},m,{pagination:E({},m.pagination,{meta:f})})),u},[e]);Lt(e,"exportState",s),Lt(e,"restoreState",a),p.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},zye=(e,t)=>{var i,s,a,l,c,u;const n=E({},t5(t.autoPageSize),t.paginationModel??((s=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:s.paginationModel));n5(n.pageSize,t.signature);const r=t.rowCount??((l=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:l.rowCount),o=t.paginationMeta??((u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta)??{};return E({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},Hye=(e,t)=>{Bye(e,t),Pye(e,t),Nye(e,t)},Vye=(e,t)=>{var n;return E({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},Uye=(e,t)=>{var d;const n=yn(e,"useGridPreferencesPanel"),r=p.useRef(),o=p.useRef(),i=p.useCallback(()=>{n.debug("Hiding Preferences Panel");const f=Lf(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(h=>E({},h,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),s=p.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=p.useCallback(()=>{r.current=setTimeout(i,100)},[i]),l=p.useCallback((f,h,m)=>{n.debug("Opening Preferences Panel"),s(),e.current.setState(y=>E({},y,{preferencePanel:E({},y.preferencePanel,{open:!0,openedPanelValue:f,panelId:h,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[n,s,e]);Xe(e,{showPreferences:l,hidePreferences:a},"public");const c=p.useCallback((f,h)=>{var C;const m=Lf(e.current.state);return!h.exportOnlyDirtyModels||((C=t.initialState)==null?void 0:C.preferencePanel)!=null||m.open?E({},f,{preferencePanel:m}):f},[e,(d=t.initialState)==null?void 0:d.preferencePanel]),u=p.useCallback((f,h)=>{const m=h.stateToRestore.preferencePanel;return m!=null&&e.current.setState(y=>E({},y,{preferencePanel:m})),f},[e]);Lt(e,"exportState",c),Lt(e,"restoreState",u),p.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},kC=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Gye=["id","field"],Wye=["id","field"],Kye=(e,t)=>{const[n,r]=p.useState({}),o=p.useRef(n),i=p.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:l,onCellModesModelChange:c}=t,u=_=>(...$)=>{t.editMode===yi.Cell&&_(...$)},d=p.useCallback((_,$)=>{const L=e.current.getCellParams(_,$);if(!e.current.isCellEditable(L))throw new Error(`MUI X: The cell with id=${_} and field=${$} is not editable.`)},[e]),f=p.useCallback((_,$,L)=>{if(e.current.getCellMode(_,$)!==L)throw new Error(`MUI X: The cell with id=${_} and field=${$} is not in ${L} mode.`)},[e]),h=p.useCallback((_,$)=>{if(!_.isEditable||_.cellMode===pt.Edit)return;const L=E({},_,{reason:ki.cellDoubleClick});e.current.publishEvent("cellEditStart",L,$)},[e]),m=p.useCallback((_,$)=>{if(_.cellMode===pt.View||e.current.getCellMode(_.id,_.field)===pt.View)return;const L=E({},_,{reason:$o.cellFocusOut});e.current.publishEvent("cellEditStop",L,$)},[e]),y=p.useCallback((_,$)=>{if(_.cellMode===pt.Edit){if($.which===229)return;let L;if($.key==="Escape"?L=$o.escapeKeyDown:$.key==="Enter"?L=$o.enterKeyDown:$.key==="Tab"&&(L=$.shiftKey?$o.shiftTabKeyDown:$o.tabKeyDown,$.preventDefault()),L){const F=E({},_,{reason:L});e.current.publishEvent("cellEditStop",F,$)}}else if(_.isEditable){let L;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:_,editMode:"cell"}))return;if(T5($)?L=ki.printableKeyDown:E5($)?L=ki.pasteKeyDown:$.key==="Enter"?L=ki.enterKeyDown:($.key==="Backspace"||$.key==="Delete")&&(L=ki.deleteKeyDown),L){const j=E({},_,{reason:L,key:$.key});e.current.publishEvent("cellEditStart",j,$)}}},[e]),C=p.useCallback(_=>{const{id:$,field:L,reason:F}=_,j={id:$,field:L};(F===ki.printableKeyDown||F===ki.deleteKeyDown||F===ki.pasteKeyDown)&&(j.deleteValue=!0),e.current.startCellEditMode(j)},[e]),w=p.useCallback(_=>{const{id:$,field:L,reason:F}=_;e.current.runPendingEditCellValueMutation($,L);let j;F===$o.enterKeyDown?j="below":F===$o.tabKeyDown?j="right":F===$o.shiftTabKeyDown&&(j="left");const N=F==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:L,ignoreModifications:N,cellToFocusAfter:j})},[e]),b=_=>async(...$)=>{var L;if(_){const{id:F,field:j}=$[0];((L=e.current.state.editRows[F][j])==null?void 0:L.error)||_(...$)}};Ie(e,"cellDoubleClick",u(h)),Ie(e,"cellFocusOut",u(m)),Ie(e,"cellKeyDown",u(y)),Ie(e,"cellEditStart",u(C)),Ie(e,"cellEditStop",u(w)),Pt(e,"cellEditStart",t.onCellEditStart),Pt(e,"cellEditStop",b(t.onCellEditStop));const g=p.useCallback((_,$)=>{const L=Cn(e.current.state);return L[_]&&L[_][$]?pt.Edit:pt.View},[e]),x=nt(_=>{const $=_!==t.cellModesModel;c&&$&&c(_,{api:e.current}),!(t.cellModesModel&&$)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),P=p.useCallback((_,$,L)=>{const F=E({},o.current);if(L!==null)F[_]=E({},F[_],{[$]:E({},L)});else{const j=F[_],N=xe(j,[$].map(ru));F[_]=N,Object.keys(F[_]).length===0&&delete F[_]}x(F)},[x]),I=p.useCallback((_,$,L)=>{e.current.setState(F=>{const j=E({},F.editRows);return L!==null?j[_]=E({},j[_],{[$]:E({},L)}):(delete j[_][$],Object.keys(j[_]).length===0&&delete j[_]),E({},F,{editRows:j})}),e.current.forceUpdate()},[e]),T=p.useCallback(_=>{const{id:$,field:L}=_,F=xe(_,Gye);d($,L),f($,L,pt.View),P($,L,E({mode:pt.Edit},F))},[d,f,P]),M=nt(async _=>{const{id:$,field:L,deleteValue:F,initialValue:j}=_,N=e.current.getCellValue($,L);let z=N;F?z=kC(e.current.getColumn(L)):j&&(z=j);const V=e.current.getColumn(L),K=!!V.preProcessEditCellProps&&F;let H={value:z,error:!1,isProcessingProps:K};if(I($,L,H),e.current.setCellFocus($,L),K&&(H=await Promise.resolve(V.preProcessEditCellProps({id:$,row:e.current.getRow($),props:H,hasChanged:z!==N})),e.current.getCellMode($,L)===pt.Edit)){const G=Cn(e.current.state);I($,L,E({},H,{value:G[$][L].value,isProcessingProps:!1}))}}),k=p.useCallback(_=>{const{id:$,field:L}=_,F=xe(_,Wye);f($,L,pt.Edit),P($,L,E({mode:pt.View},F))},[f,P]),S=nt(async _=>{const{id:$,field:L,ignoreModifications:F,cellToFocusAfter:j="none"}=_;f($,L,pt.Edit),e.current.runPendingEditCellValueMutation($,L);const N=()=>{I($,L,null),P($,L,null),j!=="none"&&e.current.moveFocusToRelativeCell($,L,j)};if(F){N();return}const z=Cn(e.current.state),{error:V,isProcessingProps:K}=z[$][L];if(V||K){i.current[$][L].mode=pt.Edit,P($,L,{mode:pt.Edit});return}const H=e.current.getRowWithUpdatedValuesFromCellEditing($,L);if(s){const G=q=>{i.current[$][L].mode=pt.Edit,P($,L,{mode:pt.Edit}),a&&a(q)};try{const q=e.current.getRow($);Promise.resolve(s(H,q,{rowId:$})).then(ee=>{e.current.updateRows([ee]),N()}).catch(G)}catch(q){G(q)}}else e.current.updateRows([H]),N()}),R=p.useCallback(async _=>{var q,ee;const{id:$,field:L,value:F,debounceMs:j,unstable_skipValueParser:N}=_;d($,L),f($,L,pt.Edit);const z=e.current.getColumn(L),V=e.current.getRow($);let K=F;z.valueParser&&!N&&(K=z.valueParser(F,V,z,e));let H=Cn(e.current.state),G=E({},H[$][L],{value:K,changeReason:j?"debouncedSetEditCellValue":"setEditCellValue"});if(z.preProcessEditCellProps){const W=F!==H[$][L].value;G=E({},G,{isProcessingProps:!0}),I($,L,G),G=await Promise.resolve(z.preProcessEditCellProps({id:$,row:V,props:G,hasChanged:W}))}return e.current.getCellMode($,L)===pt.View?!1:(H=Cn(e.current.state),G=E({},G,{isProcessingProps:!1}),G.value=z.preProcessEditCellProps?H[$][L].value:K,I($,L,G),H=Cn(e.current.state),!((ee=(q=H[$])==null?void 0:q[L])!=null&&ee.error))},[e,d,f,I]),O=p.useCallback((_,$)=>{const L=e.current.getColumn($),F=Cn(e.current.state),j=e.current.getRow(_);if(!F[_]||!F[_][$])return e.current.getRow(_);const{value:N}=F[_][$];return L.valueSetter?L.valueSetter(N,j,L,e):E({},j,{[$]:N})},[e]),A={getCellMode:g,startCellEditMode:T,stopCellEditMode:k},D={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:O};Xe(e,A,"public"),Xe(e,D,"private"),p.useEffect(()=>{l&&x(l)},[l,x]),ht(()=>{const _=hg(e),$=i.current;i.current=Aj(n),Object.entries(n).forEach(([L,F])=>{Object.entries(F).forEach(([j,N])=>{var K,H;const z=((H=(K=$[L])==null?void 0:K[j])==null?void 0:H.mode)||pt.View,V=_[L]??L;N.mode===pt.Edit&&z===pt.View?M(E({id:V,field:j},N)):N.mode===pt.View&&z===pt.Edit&&S(E({id:V,field:j},N))})})},[e,n,M,S])},qye=["id"],Yye=["id"],Xye=(e,t)=>{const[n,r]=p.useState({}),o=p.useRef(n),i=p.useRef({}),s=p.useRef(),a=p.useRef(null),{processRowUpdate:l,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,f=j=>(...N)=>{t.editMode===yi.Row&&j(...N)},h=p.useCallback((j,N)=>{const z=e.current.getCellParams(j,N);if(!e.current.isCellEditable(z))throw new Error(`MUI X: The cell with id=${j} and field=${N} is not editable.`)},[e]),m=p.useCallback((j,N)=>{if(e.current.getRowMode(j)!==N)throw new Error(`MUI X: The row with id=${j} is not in ${N} mode.`)},[e]),y=p.useCallback(j=>{const N=Cn(e.current.state);return Object.values(N[j]).some(z=>z.error)},[e]),C=p.useCallback((j,N)=>{if(!j.isEditable||e.current.getRowMode(j.id)===St.Edit)return;const z=e.current.getRowParams(j.id),V=E({},z,{field:j.field,reason:bs.cellDoubleClick});e.current.publishEvent("rowEditStart",V,N)},[e]),w=p.useCallback(j=>{a.current=j},[]),b=p.useCallback((j,N)=>{j.isEditable&&e.current.getRowMode(j.id)!==St.View&&(a.current=null,s.current=setTimeout(()=>{var z;if(((z=a.current)==null?void 0:z.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===St.View||y(j.id))return;const V=e.current.getRowParams(j.id),K=E({},V,{field:j.field,reason:qo.rowFocusOut});e.current.publishEvent("rowEditStop",K,N)}}))},[e,y]);p.useEffect(()=>()=>{clearTimeout(s.current)},[]);const g=p.useCallback((j,N)=>{if(j.cellMode===St.Edit){if(N.which===229)return;let z;if(N.key==="Escape")z=qo.escapeKeyDown;else if(N.key==="Enter")z=qo.enterKeyDown;else if(N.key==="Tab"){const V=$u(e).filter(K=>e.current.getColumn(K).type===ry?!0:e.current.isCellEditable(e.current.getCellParams(j.id,K)));if(N.shiftKey?j.field===V[0]&&(z=qo.shiftTabKeyDown):j.field===V[V.length-1]&&(z=qo.tabKeyDown),N.preventDefault(),!z){const K=V.findIndex(G=>G===j.field),H=V[N.shiftKey?K-1:K+1];e.current.setCellFocus(j.id,H)}}if(z){if(z!==qo.escapeKeyDown&&y(j.id))return;const V=E({},e.current.getRowParams(j.id),{reason:z,field:j.field});e.current.publishEvent("rowEditStop",V,N)}}else if(j.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:j,editMode:"row"}))return;if(T5(N)||E5(N)?z=bs.printableKeyDown:N.key==="Enter"?z=bs.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(z=bs.deleteKeyDown),z){const K=e.current.getRowParams(j.id),H=E({},K,{field:j.field,reason:z});e.current.publishEvent("rowEditStart",H,N)}}},[e,y]),x=p.useCallback(j=>{const{id:N,field:z,reason:V}=j,K={id:N,fieldToFocus:z};(V===bs.printableKeyDown||V===bs.deleteKeyDown)&&(K.deleteValue=!!z),e.current.startRowEditMode(K)},[e]),P=p.useCallback(j=>{const{id:N,reason:z,field:V}=j;e.current.runPendingEditCellValueMutation(N);let K;z===qo.enterKeyDown?K="below":z===qo.tabKeyDown?K="right":z===qo.shiftTabKeyDown&&(K="left");const H=z==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:H,field:V,cellToFocusAfter:K})},[e]);Ie(e,"cellDoubleClick",f(C)),Ie(e,"cellFocusIn",f(w)),Ie(e,"cellFocusOut",f(b)),Ie(e,"cellKeyDown",f(g)),Ie(e,"rowEditStart",f(x)),Ie(e,"rowEditStop",f(P)),Pt(e,"rowEditStart",t.onRowEditStart),Pt(e,"rowEditStop",t.onRowEditStop);const I=p.useCallback(j=>{if(t.editMode===yi.Cell)return St.View;const N=Cn(e.current.state);return N[j]&&Object.keys(N[j]).length>0?St.Edit:St.View},[e,t.editMode]),T=nt(j=>{const N=j!==t.rowModesModel;d&&N&&d(j,{api:e.current}),!(t.rowModesModel&&N)&&(r(j),o.current=j,e.current.publishEvent("rowModesModelChange",j))}),M=p.useCallback((j,N)=>{const z=E({},o.current);N!==null?z[j]=E({},N):delete z[j],T(z)},[T]),k=p.useCallback((j,N)=>{e.current.setState(z=>{const V=E({},z.editRows);return N!==null?V[j]=N:delete V[j],E({},z,{editRows:V})}),e.current.forceUpdate()},[e]),S=p.useCallback((j,N,z)=>{e.current.setState(V=>{const K=E({},V.editRows);return z!==null?K[j]=E({},K[j],{[N]:E({},z)}):(delete K[j][N],Object.keys(K[j]).length===0&&delete K[j]),E({},V,{editRows:K})}),e.current.forceUpdate()},[e]),R=p.useCallback(j=>{const{id:N}=j,z=xe(j,qye);m(N,St.View),M(N,E({mode:St.Edit},z))},[m,M]),O=nt(j=>{const{id:N,fieldToFocus:z,deleteValue:V,initialValue:K}=j,H=Wi(e),G=H.reduce((q,ee)=>{if(!e.current.getCellParams(N,ee).isEditable)return q;const Z=e.current.getColumn(ee);let U=e.current.getCellValue(N,ee);return z===ee&&(V||K)&&(V?U=kC(Z):K&&(U=K)),q[ee]={value:U,error:!1,isProcessingProps:!!Z.preProcessEditCellProps&&V},q},{});k(N,G),z&&e.current.setCellFocus(N,z),H.filter(q=>!!e.current.getColumn(q).preProcessEditCellProps&&V).forEach(q=>{const ee=e.current.getColumn(q),W=e.current.getCellValue(N,q),Z=V?kC(ee):K??W;Promise.resolve(ee.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:G[q],hasChanged:Z!==W})).then(U=>{if(e.current.getRowMode(N)===St.Edit){const J=Cn(e.current.state);S(N,q,E({},U,{value:J[N][q].value,isProcessingProps:!1}))}})})}),A=p.useCallback(j=>{const{id:N}=j,z=xe(j,Yye);m(N,St.Edit),M(N,E({mode:St.View},z))},[m,M]),D=nt(j=>{const{id:N,ignoreModifications:z,field:V,cellToFocusAfter:K="none"}=j;e.current.runPendingEditCellValueMutation(N);const H=()=>{K!=="none"&&V&&e.current.moveFocusToRelativeCell(N,V,K),k(N,null),M(N,null)};if(z){H();return}const G=Cn(e.current.state),q=e.current.getRow(N);if(Object.values(G[N]).some(Z=>Z.isProcessingProps)){i.current[N].mode=St.Edit;return}if(y(N)){i.current[N].mode=St.Edit,M(N,{mode:St.Edit});return}const W=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(l){const Z=U=>{i.current[N].mode=St.Edit,M(N,{mode:St.Edit}),c&&c(U)};try{Promise.resolve(l(W,q,{rowId:N})).then(U=>{e.current.updateRows([U]),H()}).catch(Z)}catch(U){Z(U)}}else e.current.updateRows([W]),H()}),_=p.useCallback(j=>{const{id:N,field:z,value:V,debounceMs:K,unstable_skipValueParser:H}=j;h(N,z);const G=e.current.getColumn(z),q=e.current.getRow(N);let ee=V;G.valueParser&&!H&&(ee=G.valueParser(V,q,G,e));let W=Cn(e.current.state),Z=E({},W[N][z],{value:ee,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return G.preProcessEditCellProps||S(N,z,Z),new Promise(U=>{const J=[];if(G.preProcessEditCellProps){const X=Z.value!==W[N][z].value;Z=E({},Z,{isProcessingProps:!0}),S(N,z,Z);const ae=W[N],fe=xe(ae,[z].map(ru)),me=Promise.resolve(G.preProcessEditCellProps({id:N,row:q,props:Z,hasChanged:X,otherFieldsProps:fe})).then(he=>{if(e.current.getRowMode(N)===St.View){U(!1);return}W=Cn(e.current.state),he=E({},he,{isProcessingProps:!1}),he.value=G.preProcessEditCellProps?W[N][z].value:ee,S(N,z,he)});J.push(me)}Object.entries(W[N]).forEach(([X,ae])=>{if(X===z)return;const fe=e.current.getColumn(X);if(!fe.preProcessEditCellProps)return;ae=E({},ae,{isProcessingProps:!0}),S(N,X,ae),W=Cn(e.current.state);const me=W[N],he=xe(me,[X].map(ru)),je=Promise.resolve(fe.preProcessEditCellProps({id:N,row:q,props:ae,hasChanged:!1,otherFieldsProps:he})).then(ge=>{if(e.current.getRowMode(N)===St.View){U(!1);return}ge=E({},ge,{isProcessingProps:!1}),S(N,X,ge)});J.push(je)}),Promise.all(J).then(()=>{e.current.getRowMode(N)===St.Edit?(W=Cn(e.current.state),U(!W[N][z].error)):U(!1)})})},[e,h,S]),$=p.useCallback(j=>{const N=Cn(e.current.state),z=e.current.getRow(j);if(!N[j])return e.current.getRow(j);let V=E({},z);return Object.entries(N[j]).forEach(([K,H])=>{const G=e.current.getColumn(K);G.valueSetter?V=G.valueSetter(H.value,V,G,e):V[K]=H.value}),V},[e]),L={getRowMode:I,startRowEditMode:R,stopRowEditMode:A},F={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:$};Xe(e,L,"public"),Xe(e,F,"private"),p.useEffect(()=>{u&&T(u)},[u,T]),ht(()=>{const j=hg(e),N=i.current;i.current=Aj(n);const z=new Set([...Object.keys(n),...Object.keys(N)]);Array.from(z).forEach(V=>{var q;const K=n[V]??{mode:St.View},H=((q=N[V])==null?void 0:q.mode)||St.View,G=j[V]??V;K.mode===St.Edit&&H===St.View?O(E({id:G},K)):K.mode===St.View&&H===St.Edit&&D(E({id:G},K))})},[e,n,O,D])},Qye=e=>E({},e,{editRows:{}}),Jye=(e,t)=>{Kye(e,t),Xye(e,t);const n=p.useRef({}),{isCellEditable:r}=t,o=p.useCallback(f=>uu(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,h,m,y)=>{if(!m){y();return}if(n.current[f]||(n.current[f]={}),n.current[f][h]){const[b]=n.current[f][h];clearTimeout(b)}const C=()=>{const[b]=n.current[f][h];clearTimeout(b),y(),delete n.current[f][h]},w=setTimeout(()=>{y(),delete n.current[f][h]},m);n.current[f][h]=[w,C]};p.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([h,m])=>{Object.keys(m).forEach(y=>{const[C]=f[h][y];clearTimeout(C),delete f[h][y]})})}},[]);const s=p.useCallback((f,h)=>{if(n.current[f]){if(!h)Object.keys(n.current[f]).forEach(m=>{const[,y]=n.current[f][m];y()});else if(n.current[f][h]){const[,m]=n.current[f][h];m()}}},[]),a=p.useCallback(f=>{const{id:h,field:m,debounceMs:y}=f;return new Promise(C=>{i(h,m,y,async()=>{const w=t.editMode===yi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===pt.Edit){const b=await w(f);C(b)}})})},[e,t.editMode]),l=p.useCallback((f,h)=>t.editMode===yi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,h):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=p.useCallback((f,h)=>{var y;return((y=Cn(e.current.state)[f])==null?void 0:y[h])??null},[e]),u={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:s};Xe(e,u,"public"),Xe(e,d,"private")},Zye=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=zh({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),E({},e,{rows:Hj({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},ebe=(e,t)=>{const n=yn(e,"useGridRows"),r=ha(e,t),o=p.useRef(Date.now()),i=p.useRef(t.rowCount),s=uo(),a=p.useCallback(F=>{const j=Fs(e)[F];if(j)return j;const N=e.current.getRowNode(F);return N&&uu(N)?{[_c]:F}:null},[e]),l=t.getRowId,c=p.useCallback(F=>_c in F?F[_c]:l?l(F):F.id,[l]),u=p.useMemo(()=>r.rows.reduce((F,{id:j},N)=>(F[j]=N,F),{}),[r.rows]),d=p.useCallback(({cache:F,throttle:j})=>{const N=()=>{o.current=Date.now(),e.current.setState(V=>E({},V,{rows:Hj({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Hn(e),previousTreeDepths:G2(e),previousGroupsToFetch:qde(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=F,!j){N();return}const z=t.throttleRowsMs-(Date.now()-o.current);if(z>0){s.start(z,N);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),f=p.useCallback(F=>{n.debug(`Updating all rows, new length ${F.length}`);const j=zh({rows:F,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),N=e.current.caches.rows;j.rowsBeforePartialUpdates=N.rowsBeforePartialUpdates,d({cache:j,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),h=p.useCallback(F=>{if(t.signature===go.DataGrid&&F.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const j=K2(e,F,t.getRowId),N=W2({updates:j,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:N,throttle:!0})},[t.signature,t.getRowId,d,e]),m=p.useCallback((F,j)=>{const N=K2(e,F,t.getRowId),z=W2({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:j??[]});d({cache:z,throttle:!1})},[t.getRowId,d,e]),y=p.useCallback(F=>{F!==t.loading&&(n.debug(`Setting loading to ${F}`),e.current.setState(j=>E({},j,{rows:E({},j.rows,{loading:F})})),e.current.caches.rows.loadingPropBeforePartialUpdates=F)},[t.loading,e,n]),C=p.useCallback(()=>{const F=lh(e),j=Fs(e);return new Map(F.map(N=>[N,j[N]??{}]))},[e]),w=p.useCallback(()=>oy(e),[e]),b=p.useCallback(()=>lh(e),[e]),g=p.useCallback(F=>u[F],[u]),x=p.useCallback((F,j)=>{const N=e.current.getRowNode(F);if(!N)throw new Error(`MUI X: No row with id #${F} found.`);if(N.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const z=E({},N,{childrenExpanded:j});e.current.setState(V=>E({},V,{rows:E({},V.rows,{tree:E({},V.rows.tree,{[F]:z})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",z)},[e]),P=p.useCallback(F=>Hn(e)[F]??null,[e]),I=p.useCallback(({skipAutoGeneratedRows:F=!0,groupId:j,applySorting:N,applyFiltering:z})=>{const V=Hn(e);let K;if(N){const H=V[j];if(!H)return[];const G=hp(e);K=[];const q=G.findIndex(ee=>ee===j)+1;for(let ee=q;eeH.depth;ee+=1){const W=G[ee];(!F||!uu(V[W]))&&K.push(W)}}else K=B1(V,j,F);if(z){const H=Au(e);K=K.filter(G=>H[G]!==!1)}return K},[e]),T=p.useCallback((F,j)=>{const N=e.current.getRowNode(F);if(!N)throw new Error(`MUI X: No row with id #${F} found.`);if(N.parent!==On)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(N.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(z=>{const V=Hn(z,e.current.instanceId)[On],K=V.children,H=K.findIndex(q=>q===F);if(H===-1||H===j)return z;n.debug(`Moving row ${F} to index ${j}`);const G=[...K];return G.splice(j,0,G.splice(H,1)[0]),E({},z,{rows:E({},z.rows,{tree:E({},z.rows.tree,{[On]:E({},V,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=p.useCallback((F,j)=>{if(t.signature===go.DataGrid&&j.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(j.length===0)return;if(_u(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const z=E({},Hn(e)),V=E({},Fs(e)),K=E({},hg(e)),H=z[On],G=[...H.children],q=new Set;for(let W=0;W{var Z;return((Z=z[W])==null?void 0:Z.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=V,e.current.caches.rows.dataRowIdToIdLookup=K,e.current.setState(W=>E({},W,{rows:E({},W.rows,{dataRowIdToModelLookup:V,dataRowIdToIdLookup:K,dataRowIds:ee,tree:z})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:a,setLoading:y,getRowId:c,getRowModels:C,getRowsCount:w,getAllRowIds:b,setRows:f,updateRows:h,getRowNode:P,getRowIndexRelativeToVisibleRows:g,unstable_replaceRows:M},S={setRowIndex:T,setRowChildrenExpansion:x,getRowGroupChildren:I},R={updateServerRows:m},O=p.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let F;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?F=E({},e.current.caches.rows,{updates:{type:"full",rows:lh(e)}}):F=zh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:F,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),A=Vo(()=>t.unstable_dataSource),D=p.useCallback(F=>{if(t.unstable_dataSource&&t.unstable_dataSource!==A.current){A.current=t.unstable_dataSource;return}F==="rowTreeCreation"&&O()},[O,A,t.unstable_dataSource]),_=p.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Yde(e)&&O()},[e,O]);Ie(e,"activeStrategyProcessorChange",D),Ie(e,"strategyAvailabilityChange",_);const $=p.useCallback(()=>{e.current.setState(F=>{const j=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Hn(F,e.current.instanceId),treeDepths:G2(F,e.current.instanceId),dataRowIds:lh(F,e.current.instanceId),dataRowIdToModelLookup:Fs(F,e.current.instanceId),dataRowIdToIdLookup:hg(F,e.current.instanceId)});return E({},F,{rows:E({},F.rows,j,{totalTopLevelRowCount:zj({tree:j.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);nP(e,"hydrateRows",$),Xe(e,k,"public"),Xe(e,S,t.signature===go.DataGrid?"private":"public"),Xe(e,R,"private");const L=p.useRef(!0);p.useEffect(()=>{var V;if(L.current){L.current=!1;return}let F=!1;t.rowCount!==i.current&&(F=!0,i.current=t.rowCount);const j=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,N=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,z=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;j&&(N||(e.current.setState(K=>E({},K,{rows:E({},K.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),z||(e.current.setState(K=>E({},K,{rows:E({},K.rows,{totalRowCount:Math.max(t.rowCount||0,K.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,K.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!F)||(n.debug(`Updating all rows, new length ${(V=t.rows)==null?void 0:V.length}`),d({cache:zh({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,d,e])},tbe=e=>{const t={[On]:E({},Jde(),{children:e})};for(let n=0;n{const n=E({},e),r={};for(let s=0;s!r[s])),n[On]=E({},o,{children:i}),{groupingName:sl,tree:n,treeDepths:{0:i.length},dataRowIds:i}},rbe=e=>e.updates.type==="full"?tbe(e.updates.rows):nbe({previousTree:e.previousTree,actions:e.updates.actions}),obe=e=>{bg(e,sl,"rowTreeCreation",rbe)},D5=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],ibe=(e,t)=>E({},e,{rowSelection:t.rowSelection?D5(t.rowSelectionModel)??[]:[]}),sbe=(e,t)=>{var L,F,j,N,z,V,K;const n=yn(e,"useGridSelection"),r=p.useCallback(H=>(...G)=>{t.rowSelection&&H(...G)},[t.rowSelection]),o=t.signature!==go.DataGrid&&(((L=t.rowSelectionPropagation)==null?void 0:L.parents)||((F=t.rowSelectionPropagation)==null?void 0:F.descendants)),i=p.useMemo(()=>D5(t.rowSelectionModel,to(e.current.state)),[e,t.rowSelectionModel]),s=p.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:to,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=U1(t),d=ha(e,t),f=ue(e,Hn),h=ue(e,_u)>1,m=p.useCallback(H=>{let G=H;const q=s.current??H,ee=e.current.isRowSelected(H);if(ee){const W=Ac(e),Z=W.findIndex(J=>J===q),U=W.findIndex(J=>J===G);if(Z===U)return;Z>U?G=W[U+1]:G=W[U-1]}s.current=H,e.current.selectRowRange({startId:q,endId:G},!ee)},[e]),y=p.useCallback(H=>{if(t.signature===go.DataGrid&&!u&&Array.isArray(H)&&H.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));to(e.current.state)!==H&&(n.debug("Setting selection model"),e.current.setState(q=>E({},q,{rowSelection:t.rowSelection?H:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,u]),C=p.useCallback(H=>to(e.current.state).includes(H),[e]),w=p.useCallback(H=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(H)))return!1;const G=e.current.getRowNode(H);return!((G==null?void 0:G.type)==="footer"||(G==null?void 0:G.type)==="pinnedRow")},[e,t.rowSelection,c]),b=p.useCallback(()=>Sfe(e),[e]),g=p.useCallback((H,G=!0,q=!1)=>{var ee,W,Z,U,J,X;if(e.current.isRowSelectable(H))if(s.current=H,q){n.debug(`Setting selection for row ${H}`);const ae=[],fe=me=>{ae.push(me)};G&&(fe(H),o&&ch(e,f,H,((ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)??!1,((W=t.rowSelectionPropagation)==null?void 0:W.parents)??!1,fe)),e.current.setRowSelectionModel(ae)}else{n.debug(`Toggling selection for row ${H}`);const ae=to(e.current.state),fe=new Set(ae);fe.delete(H);const me=ge=>{fe.add(ge)},he=ge=>{fe.delete(ge)};G?(me(H),o&&ch(e,f,H,((Z=t.rowSelectionPropagation)==null?void 0:Z.descendants)??!1,((U=t.rowSelectionPropagation)==null?void 0:U.parents)??!1,me)):o&&q2(e,f,H,((J=t.rowSelectionPropagation)==null?void 0:J.descendants)??!1,((X=t.rowSelectionPropagation)==null?void 0:X.parents)??!1,he),(fe.size<2||u)&&e.current.setRowSelectionModel(Array.from(fe))}},[e,n,o,f,(j=t.rowSelectionPropagation)==null?void 0:j.descendants,(N=t.rowSelectionPropagation)==null?void 0:N.parents,u]),x=p.useCallback((H,G=!0,q=!1)=>{n.debug("Setting selection for several rows");const ee=H.filter(U=>e.current.isRowSelectable(U));let W;if(q){if(G){if(W=new Set(ee),o){const J=X=>{W.add(X)};ee.forEach(X=>{var ae,fe;ch(e,f,X,((ae=t.rowSelectionPropagation)==null?void 0:ae.descendants)??!1,((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)??!1,J)})}}else W=new Set;const U=Ki(e);if(W.size===Object.keys(U).length&&Array.from(W).every(J=>U[J]===J))return}else{W=new Set(Object.values(Ki(e)));const U=X=>{W.add(X)},J=X=>{W.delete(X)};ee.forEach(X=>{var ae,fe,me,he;G?(W.add(X),o&&ch(e,f,X,((ae=t.rowSelectionPropagation)==null?void 0:ae.descendants)??!1,((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)??!1,U)):(J(X),o&&q2(e,f,X,((me=t.rowSelectionPropagation)==null?void 0:me.descendants)??!1,((he=t.rowSelectionPropagation)==null?void 0:he.parents)??!1,J))})}(W.size<2||u)&&e.current.setRowSelectionModel(Array.from(W))},[n,o,u,e,f,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(V=t.rowSelectionPropagation)==null?void 0:V.parents]),P=p.useCallback(({startId:H,endId:G},q=!0,ee=!1)=>{if(!e.current.getRow(H)||!e.current.getRow(G))return;n.debug(`Expanding selection from row ${H} to row ${G}`);const W=Ac(e),Z=W.indexOf(H),U=W.indexOf(G),[J,X]=Z>U?[U,Z]:[Z,U],ae=W.slice(J,X+1);e.current.selectRows(ae,q,ee)},[e,n]),I={selectRow:g,setRowSelectionModel:y,getSelectedRows:b,isRowSelected:C,isRowSelectable:w},T={selectRows:x,selectRowRange:P};Xe(e,I,"public"),Xe(e,T,t.signature===go.DataGrid?"private":"public");const M=p.useRef(!0),k=p.useCallback((H=!1)=>{var X;if(M.current)return;const G=to(e.current.state),q=Fs(e),ee=Au(e),W=E({},Ki(e)),Z=ae=>t.filterMode==="server"?!q[ae]:ee[ae]!==!0;let U=!1;G.forEach(ae=>{var me;if(Z(ae)){if(t.keepNonExistentRowsSelected)return;delete W[ae],U=!0;return}if(!((me=t.rowSelectionPropagation)!=null&&me.parents))return;const fe=f[ae];if(fe.type==="group"){if(fe.isAutoGenerated){delete W[ae],U=!0;return}fe.children.every(je=>ee[je]===!1)||(delete W[ae],U=!0)}});const J=h&&((X=t.rowSelectionPropagation)==null?void 0:X.parents)&&Object.keys(W).length>0;if(U||J&&!H){const ae=Object.values(W);J?e.current.selectRows(ae,!0,!0):e.current.setRowSelectionModel(ae)}},[e,h,(K=t.rowSelectionPropagation)==null?void 0:K.parents,t.keepNonExistentRowsSelected,t.filterMode,f]),S=p.useCallback((H,G)=>{const q=G.metaKey||G.ctrlKey,ee=!a&&!q&&!mge(G),W=!u||ee,Z=e.current.isRowSelected(H);W?e.current.selectRow(H,ee?!0:!Z,!0):e.current.selectRow(H,!Z,!1)},[e,u,a]),R=p.useCallback((H,G)=>{var W;if(l)return;const q=(W=G.target.closest(`.${B.cell}`))==null?void 0:W.getAttribute("data-field");if(q===Du.field||q===sy)return;if(q){const Z=e.current.getColumn(q);if((Z==null?void 0:Z.type)===ry)return}e.current.getRowNode(H.id).type!=="pinnedRow"&&(G.shiftKey&&u?m(H.id):S(H.id,G))},[l,u,e,m,S]),O=p.useCallback((H,G)=>{var q;u&&G.shiftKey&&((q=window.getSelection())==null||q.removeAllRanges())},[u]),A=p.useCallback((H,G)=>{u&&G.nativeEvent.shiftKey?m(H.id):e.current.selectRow(H.id,H.value,!u)},[e,m,u]),D=p.useCallback(H=>{const G=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?o5(e):Ac(e);e.current.selectRows(G,H.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),_=p.useCallback((H,G)=>{if(e.current.getCellMode(H.id,H.field)!==pt.Edit&&!vp(G)){if(yg(G.key)&&G.shiftKey){const q=Or(e);if(q&&q.id!==H.id){G.preventDefault();const ee=e.current.isRowSelected(q.id);if(!u){e.current.selectRow(q.id,!ee,!0);return}const W=e.current.getRowIndexRelativeToVisibleRows(q.id),Z=e.current.getRowIndexRelativeToVisibleRows(H.id);let U,J;W>Z?ee?(U=Z,J=W-1):(U=Z,J=W):ee?(U=W+1,J=Z):(U=W,J=Z);const X=d.rows.slice(U,J+1).map(ae=>ae.id);e.current.selectRows(X,!ee);return}}if(G.key===" "&&G.shiftKey){G.preventDefault(),S(H.id,G);return}String.fromCharCode(G.keyCode)==="A"&&(G.ctrlKey||G.metaKey)&&(G.preventDefault(),x(e.current.getAllRowIds(),!0))}},[e,S,x,d.rows,u]);Ie(e,"sortedRowsSet",r(()=>k(!0))),Ie(e,"filteredRowsSet",r(k)),Ie(e,"rowClick",r(R)),Ie(e,"rowSelectionCheckboxChange",r(A)),Ie(e,"headerSelectionCheckboxChange",D),Ie(e,"cellMouseDown",r(O)),Ie(e,"cellKeyDown",r(_)),p.useEffect(()=>{i!==void 0&&e.current.setRowSelectionModel(i)},[e,i,t.rowSelection]),p.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const $=i!=null;p.useEffect(()=>{if($||!t.rowSelection)return;const H=to(e.current.state);if(w){const G=H.filter(q=>w(q));G.length{if(!t.rowSelection||$)return;const H=to(e.current.state);!u&&H.length>1&&e.current.setRowSelectionModel([])},[e,u,a,$,t.rowSelection]),p.useEffect(()=>{r(k)},[k,r]),p.useEffect(()=>{M.current&&(M.current=!1)},[])},abe=e=>{const{classes:t}=e;return p.useMemo(()=>ye({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},rt,t),[t])},lbe=(e,t)=>{const n={classes:t.classes},r=abe(n),o=p.useCallback(i=>{const s=E({},Du,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,l=i.lookup[Ei]!=null;return a&&!l?(i.lookup[Ei]=s,i.orderedFields=[Ei,...i.orderedFields]):!a&&l?(delete i.lookup[Ei],i.orderedFields=i.orderedFields.filter(c=>c!==Ei)):a&&l&&(i.lookup[Ei]=E({},s,i.lookup[Ei])),i},[e,r,t.checkboxSelection]);Lt(e,"hydrateColumns",o)},cbe=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return E({},e,{sorting:{sortModel:Mj(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},ube=(e,t)=>{var P,I;const n=yn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:eo,changeEvent:"sortModelChange"});const r=p.useCallback((T,M)=>{const k=eo(e),S=k.findIndex(O=>O.field===T);let R=[...k];return S>-1?(M==null?void 0:M.sort)==null?R.splice(S,1):R.splice(S,1,M):R=[...k,M],R},[e]),o=p.useCallback((T,M)=>{const S=eo(e).find(R=>R.field===T.field);if(S){const R=M===void 0?F2(T.sortingOrder??t.sortingOrder,S.sort):M;return R===void 0?void 0:E({},S,{sort:R})}return{field:T.field,sort:M===void 0?F2(T.sortingOrder??t.sortingOrder):M}},[e,t.sortingOrder]),i=p.useCallback((T,M)=>M==null||M.sortable===!1||t.disableColumnSorting?T:(M.sortingOrder||t.sortingOrder).some(S=>!!S)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),s=p.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),E({},T,{sorting:E({},T.sorting,{sortedRows:B1(Hn(e),On,!1)})});const M=eo(T,e.current.instanceId),k=bde(M,e),S=e.current.applyStrategyProcessor("sorting",{sortRowList:k});return E({},T,{sorting:E({},T.sorting,{sortedRows:S})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=p.useCallback(T=>{eo(e)!==T&&(n.debug("Setting sort model"),e.current.setState(L2(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=p.useCallback((T,M,k)=>{const S=e.current.getColumn(T),R=o(S,M);let O;!k||t.disableMultipleColumnsSorting?O=(R==null?void 0:R.sort)==null?[]:[R]:O=r(S.field,R),e.current.setSortModel(O)},[e,r,o,t.disableMultipleColumnsSorting]),c=p.useCallback(()=>eo(e),[e]),u=p.useCallback(()=>z1(e).map(M=>M.model),[e]),d=p.useCallback(()=>hp(e),[e]),f=p.useCallback(T=>e.current.getSortedRowIds()[T],[e]);Xe(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:f,setSortModel:a,sortColumn:l,applySorting:s},"public");const m=p.useCallback((T,M)=>{var R,O;const k=eo(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=(R=t.initialState)==null?void 0:R.sorting)==null?void 0:O.sortModel)!=null||k.length>0?E({},T,{sorting:{sortModel:k}}):T},[e,t.sortModel,(I=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:I.sortModel]),y=p.useCallback((T,M)=>{var S;const k=(S=M.stateToRestore.sorting)==null?void 0:S.sortModel;return k==null?T:(e.current.setState(L2(k,t.disableMultipleColumnsSorting)),E({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=p.useCallback(T=>{const M=Hn(e),k=M[On],S=T.sortRowList?T.sortRowList(k.children.map(R=>M[R])):[...k.children];return k.footerId!=null&&S.push(k.footerId),S},[e]);Lt(e,"exportState",m),Lt(e,"restoreState",y),bg(e,sl,"sorting",C);const w=p.useCallback(({field:T,colDef:M},k)=>{if(!M.sortable||t.disableColumnSorting)return;const S=k.shiftKey||k.metaKey||k.ctrlKey;l(T,void 0,S)},[l,t.disableColumnSorting]),b=p.useCallback(({field:T,colDef:M},k)=>{!M.sortable||t.disableColumnSorting||k.key==="Enter"&&!k.ctrlKey&&!k.metaKey&&l(T,void 0,k.shiftKey)},[l,t.disableColumnSorting]),g=p.useCallback(()=>{const T=eo(e),M=cs(e);if(T.length>0){const k=T.filter(S=>M[S.field]);k.length{T==="sorting"&&e.current.applySorting()},[e]);Lt(e,"columnMenu",i),Ie(e,"columnHeaderClick",w),Ie(e,"columnHeaderKeyDown",b),Ie(e,"rowsSet",e.current.applySorting),Ie(e,"columnsChange",g),Ie(e,"activeStrategyProcessorChange",x),mp(()=>{e.current.applySorting()}),ht(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function EO(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=Ir(),r=yn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,s=ue(e,pa),a=p.useCallback(d=>{var w;const f=_n(e.current.state),h=oy(e),m=t.unstable_listView?[fu(e.current.state)]:mn(e);if(!(d.rowIndex==null)&&h===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let C={};if(d.colIndex!==void 0){const b=fa(e);let g;if(typeof d.rowIndex<"u"){const x=(w=s[d.rowIndex])==null?void 0:w.id,P=e.current.unstable_getCellColSpanInfo(x,d.colIndex);P&&!P.spannedByColSpan&&(g=P.cellProps.width)}typeof g>"u"&&(g=m[d.colIndex].computedWidth),C.left=EO({containerSize:f.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:g,elementOffset:b[d.colIndex]})}if(d.rowIndex!==void 0){const b=Lu(e.current.state),g=Nfe(e),x=Bfe(e),P=t.pagination?d.rowIndex-g*x:d.rowIndex,I=b.positions[P+1]?b.positions[P+1]-b.positions[P]:b.currentPageTotalHeight-b.positions[P];C.top=EO({containerSize:f.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:I,elementOffset:b.positions[P]})}return C=e.current.unstable_applyPipeProcessors("scrollToIndexes",C,d),typeof C.left!==void 0||typeof C.top!==void 0?(e.current.scroll(C),!0):!1},[r,e,i,t.pagination,s,t.unstable_listView]),l=p.useCallback(d=>{if(i.current&&d.left!==void 0&&o.current){const f=n?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!==void 0&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=p.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Xe(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")};function fbe(e,t){Pt(e,"columnHeaderClick",t.onColumnHeaderClick),Pt(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Pt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Pt(e,"columnHeaderOver",t.onColumnHeaderOver),Pt(e,"columnHeaderOut",t.onColumnHeaderOut),Pt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Pt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Pt(e,"cellClick",t.onCellClick),Pt(e,"cellDoubleClick",t.onCellDoubleClick),Pt(e,"cellKeyDown",t.onCellKeyDown),Pt(e,"preferencePanelClose",t.onPreferencePanelClose),Pt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Pt(e,"menuOpen",t.onMenuOpen),Pt(e,"menuClose",t.onMenuClose),Pt(e,"rowDoubleClick",t.onRowDoubleClick),Pt(e,"rowClick",t.onRowClick),Pt(e,"stateChange",t.onStateChange)}function pbe(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...s){r=s,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const TC={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:yi.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1},Kl={width:0,height:0},hbe={isReady:!1,root:Kl,viewportOuterSize:Kl,viewportInnerSize:Kl,contentSize:Kl,minimumSize:Kl,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},mbe=e=>E({},e,{dimensions:hbe});function gbe(e,t){const n=yn(e,"useResizeContainer"),r=p.useRef(!1),o=p.useRef(Kl),i=ue(e,_n),s=ue(e,Lu),a=ue(e,pp),l=ue(e,fp),c=p.useMemo(()=>Uj(t.rowHeight,TC.rowHeight),[t.rowHeight]),u=Math.floor(c*l),d=Math.floor(t.columnHeaderHeight*l),f=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*l),h=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*l),m=ybe(L1(e),6),y=q1(e,t),C=a.left.reduce(($,L)=>$+L.computedWidth,0),w=a.right.reduce(($,L)=>$+L.computedWidth,0),[b,g]=p.useState(),x=p.useMemo(()=>pbe(g,t.resizeThrottleMs),[t.resizeThrottleMs]),P=p.useRef(),I=()=>e.current.state.dimensions,T=nt($=>{e.current.setState(L=>E({},L,{dimensions:$}))}),M=p.useCallback(()=>{const $=e.current.mainElementRef.current;if(!$)return;const L=hi($).getComputedStyle($),F={width:parseFloat(L.width)||0,height:parseFloat(L.height)||0};(!P.current||!OO(P.current,F))&&(e.current.publishEvent("resize",F),P.current=F)},[e]),k=p.useCallback(()=>{const $=_n(e.current.state);if(!$.isReady)return 0;const L=Dc(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const j=py(e),N=j.lastRowIndex-j.firstRowIndex;return Math.min(N-1,L.rows.length)}const F=Math.floor($.viewportInnerSize.height/u);return Math.min(F,L.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,u]),S=p.useCallback(()=>{var J,X;const $=e.current.rootElementRef.current,L=efe(e),F=vbe($,m,t.scrollbarSize),j=y+L.top,N=L.bottom,V={width:m-C-w,height:s.currentPageTotalHeight};let K,H,G=!1,q=!1;if(t.autoHeight)q=!1,G=Math.round(m)>Math.round(o.current.width),K={width:o.current.width,height:j+N+V.height},H={width:Math.max(0,K.width-(q?F:0)),height:Math.max(0,K.height-(G?F:0))};else{K={width:o.current.width,height:o.current.height},H={width:Math.max(0,K.width-C-w),height:Math.max(0,K.height-j-N)};const ae=V,fe=H,me=ae.width>fe.width,he=ae.height>fe.height;(me||he)&&(q=he,G=ae.width+(q?F:0)>fe.width,G&&(q=ae.height+F>fe.height)),q&&(H.width-=F),G&&(H.height-=F)}const ee=Math.max(K.width,m+(q?F:0)),W={width:m,height:j+V.height+N},Z={isReady:!0,root:o.current,viewportOuterSize:K,viewportInnerSize:H,contentSize:V,minimumSize:W,hasScrollX:G,hasScrollY:q,scrollbarSize:F,headerHeight:d,groupHeaderHeight:f,headerFilterHeight:h,rowWidth:ee,rowHeight:u,columnsTotalWidth:m,leftPinnedWidth:C,rightPinnedWidth:w,headersTotalHeight:y,topContainerHeight:j,bottomContainerHeight:N},U=e.current.state.dimensions;T(Z),OO(Z.viewportInnerSize,U.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",Z.viewportInnerSize),(X=(J=e.current).updateRenderContext)==null||X.call(J)},[e,T,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,u,d,f,h,m,y,C,w]),R={resize:M,getRootDimensions:I},O={updateDimensions:S,getViewportPageSize:k};Xe(e,R,"public"),Xe(e,O,"private"),ht(()=>{b&&(S(),e.current.publishEvent("debouncedResize",o.current))},[e,b,S]);const A=e.current.rootElementRef.current;ht(()=>{if(!A)return;const $=(L,F)=>A.style.setProperty(L,F);$("--DataGrid-width",`${i.viewportOuterSize.width}px`),$("--DataGrid-hasScrollX",`${Number(i.hasScrollX)}`),$("--DataGrid-hasScrollY",`${Number(i.hasScrollY)}`),$("--DataGrid-scrollbarSize",`${i.scrollbarSize}px`),$("--DataGrid-rowWidth",`${i.rowWidth}px`),$("--DataGrid-columnsTotalWidth",`${i.columnsTotalWidth}px`),$("--DataGrid-leftPinnedWidth",`${i.leftPinnedWidth}px`),$("--DataGrid-rightPinnedWidth",`${i.rightPinnedWidth}px`),$("--DataGrid-headerHeight",`${i.headerHeight}px`),$("--DataGrid-headersTotalHeight",`${i.headersTotalHeight}px`),$("--DataGrid-topContainerHeight",`${i.topContainerHeight}px`),$("--DataGrid-bottomContainerHeight",`${i.bottomContainerHeight}px`),$("--height",`${i.rowHeight}px`)},[A,i]);const D=p.useRef(!0),_=p.useCallback($=>{o.current=$;const L=/jsdom/.test(window.navigator.userAgent);if($.height===0&&!r.current&&!t.autoHeight&&!L&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` `)),r.current=!0),$.width===0&&!r.current&&!L&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),r.current=!0),D.current){g($),D.current=!1;return}x($)},[t.autoHeight,x,n]);pt(S,[S]),St(e,"sortedRowsSet",S),St(e,"paginationModelChange",S),St(e,"columnsChange",S),Ie(e,"resize",_),St(e,"debouncedResize",t.onResize)}function gbe(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=Wt(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function vbe(e,t){return Math.round(e*10**t)/10**t}function TO(e,t){return e.width===t.width&&e.height===t.height}const ybe=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},bbe=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},E({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),wbe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,s=p.useRef(-1),a=p.useRef(!1),l=p.useRef(!1),c=ue(e,fp),u=ue(e,In),d=ue(e,cy),f=ue(e,eo),h=pa(e,t),m=ue(e,bl),y=ue(e,()=>$n(e.current.state).rowHeight),C=A=>{let D=i.get(A);return D===void 0&&(D={content:y,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(A,D)),D},w=p.useCallback(A=>{const D=$n(e.current.state).rowHeight,_=e.current.getRowHeightEntry(A.id);if(!n)_.content=D,_.needsFirstMeasurement=!1;else{const $=n(E({},A,{densityFactor:c}));if($==="auto"){if(_.needsFirstMeasurement){const L=o?o(E({},A,{densityFactor:c})):D;_.content=L??D}a.current=!0,_.autoHeight=!0}else _.content=Hj($,D),_.needsFirstMeasurement=!1,_.autoHeight=!1}if(r){const $=e.current.getRowIndexRelativeToVisibleRows(A.id),L=r(E({},A,{isFirstVisible:$===0,isLastVisible:$===h.rows.length-1,indexRelativeToCurrentPage:$}));_.spacingTop=L.top??0,_.spacingBottom=L.bottom??0}else _.spacingTop=0,_.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",_,A),_},[e,h.rows.length,n,o,y,r,c]),b=p.useCallback(()=>{a.current=!1,m.top.forEach(w),m.bottom.forEach(w);const A=[],D=h.rows.reduce((_,$)=>{A.push(_);const L=w($),F=L.content+L.spacingTop+L.spacingBottom+L.detail;return _+F},0);a.current||(s.current=1/0),e.current.setState(_=>E({},_,{rowsMeta:{currentPageTotalHeight:D,positions:A}})),l.current=!0},[e,m,h.rows,w]),g=A=>{var D;return((D=i.get(A))==null?void 0:D.content)??y},x=(A,D)=>{const _=e.current.getRowHeightEntry(A),$=_.content!==D;_.needsFirstMeasurement=!1,_.content=D,l.current&&(l.current=!$)},P=A=>{var D;return((D=i.get(A))==null?void 0:D.autoHeight)??!1},I=()=>s.current,T=A=>{a.current&&A>s.current&&(s.current=A)},M=()=>{i.clear(),b()},k=Vo(()=>new ybe(A=>{for(let D=0;D0?_.borderBoxSize[0].blockSize:_.contentRect.height,L=_.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(L,$)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,S=(A,D)=>(A.__mui_id=D,k.observe(A),()=>k.unobserve(A));eP(e,"rowHeight",b),p.useEffect(()=>{b()},[u,d,f,b]);const R={unstable_getRowHeight:g,unstable_setLastMeasuredRowIndex:T,unstable_storeRowHeightMeasurement:x,resetRowHeights:M},O={hydrateRowsMeta:b,observeRowHeight:S,rowHasAutoHeight:P,getRowHeightEntry:C,getLastMeasuredRowIndex:I};Xe(e,R,"public"),Xe(e,O,"private")},Cbe=e=>{const t=p.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=p.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Xe(e,{exportState:t,restoreState:n},"public")},xbe=e=>{const t=p.useRef({}),n=(a,l)=>{var c;return(c=t.current[a])==null?void 0:c[l]},r=()=>{t.current={}},o=p.useCallback(({rowId:a,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d1&&(d+=f.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},s={resetColSpan:r,calculateColSpan:o};Xe(e,i,"public"),Xe(e,s,"private"),Ie(e,"columnOrderChange",r)};function Sbe(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:s,columns:a}=e,l=a.length,c=a[r],u=t.current.getRow(o),d=t.current.getRowValue(u,c),f=typeof c.colSpan=="function"?c.colSpan(d,u,c,t):c.colSpan;if(!f||f===1)return s0(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let h=c.computedWidth;for(let m=1;m=i&&y{if(Aj(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` -`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{D5(i,[...t,r],n)})},kC=e=>{if(!e)return{};const t={};return e.forEach(n=>{D5(n,[],t)}),t},TC=(e,t,n)=>{const r=l=>t[l]??[],o=[],i=Math.max(...e.map(l=>r(l).length)),s=(l,c,u)=>$c(r(l).slice(0,u+1),r(c).slice(0,u+1)),a=(l,c)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(c));for(let l=0;l{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const h=u[u.length-1],m=h.columnFields[h.columnFields.length-1];return h.groupId!==f||!s(m,d,l)||a(m,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...h.columnFields,d],groupId:f}]},[]);o.push(c)}return o},Pbe=["groupId","children"],tP=e=>{let t={};return e.forEach(n=>{if(Aj(n))return;const{groupId:r,children:o}=n,i=xe(n,Pbe);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const s=E({},i,{groupId:r}),a=tP(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=E({},t,a,{[r]:s})}),E({},t)},Ibe=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=Wi(n),o=$u(n),i=tP(t.columnGroupingModel??[]),s=kC(t.columnGroupingModel??[]),a=TC(r,s,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=s[c])==null?void 0:u.length)??0}));return E({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:s,headerStructure:a,maxDepth:l}})},kbe=(e,t)=>{const n=p.useCallback(a=>s5(e)[a]??[],[e]),r=p.useCallback(()=>a5(e),[e]);Xe(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=p.useCallback(()=>{const a=kC(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=TC(c,a,u);return E({},l,{columnGrouping:E({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),s=p.useCallback(a=>{var y,C;const l=((C=(y=e.current).getPinnedColumns)==null?void 0:C.call(y))??{},c=Wi(e),u=$u(e),d=tP(a??[]),f=kC(a??[]),h=TC(c,f,l),m=u.length===0?0:Math.max(...u.map(w=>{var b;return((b=f[w])==null?void 0:b.length)??0}));e.current.setState(w=>E({},w,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:h,maxDepth:m}}))},[e]);Ie(e,"columnIndexChange",i),Ie(e,"columnsChange",()=>{s(t.columnGroupingModel)}),Ie(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),p.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])};function Tbe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function EO(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;nK1(e),r=ue(e,n);return p.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=Tbe()}return t.current}}function $be(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,l)=>a-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,s=i<5?5:i*t;return n.filter(a=>a>r-s&&a{const a=qhe(e.current,i.field).map(m=>m.getBoundingClientRect().width??0),l=t.includeOutliers?a:$be(a,t.outliersFactor);if(t.includeHeaders){const m=Khe(e.current,i.field);if(m){const y=m.querySelector(`.${B.columnHeaderTitle}`),C=m.querySelector(`.${B.columnHeaderTitleContainerContent}`),w=m.querySelector(`.${B.iconButtonContainer}`),b=m.querySelector(`.${B.menuIcon}`),g=y??C,x=window.getComputedStyle(m,null),P=parseInt(x.paddingLeft,10)+parseInt(x.paddingRight,10),T=g.scrollWidth+1+P+((w==null?void 0:w.clientWidth)??0)+((b==null?void 0:b.clientWidth)??0);l.push(T)}}const c=i.minWidth!==-1/0&&i.minWidth!==void 0,u=i.maxWidth!==1/0&&i.maxWidth!==void 0,d=c?i.minWidth:0,f=u?i.maxWidth:1/0,h=l.length===0?0:Math.max(...l);r[i.field]=fi(h,d,f)}),o.classList.remove(B.autosizing),r}const Abe=e=>E({},e,{columnResize:{resizingColumnField:""}});function Dbe(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Lbe=(e,t)=>{const n=Ir(),r=yn(e,"useGridColumnResize"),o=Vo(Dbe).current,i=p.useRef(),s=p.useRef(),a=uo(),l=p.useRef(),c=k=>{var $,L;r.debug(`Updating width to ${k} for col ${o.colDef.field}`);const S=o.columnHeaderElement.offsetWidth,R=k-S,O=k-o.initialColWidth,A=o.initialTotalWidth+O;(L=($=e.current.rootElementRef)==null?void 0:$.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${A}px`),o.colDef.computedWidth=k,o.colDef.width=k,o.colDef.flex=0,o.columnHeaderElement.style.width=`${k}px`;const D=o.headerFilterElement;D&&(D.style.width=`${k}px`),o.groupHeaderElements.forEach(F=>{const j=F;let N;j.getAttribute("aria-colspan")==="1"?N=`${k}px`:N=`${j.offsetWidth+R}px`,j.style.width=N}),o.cellElements.forEach(F=>{const j=F;let N;j.getAttribute("aria-colspan")==="1"?N=`${k}px`:N=`${j.offsetWidth+R}px`,j.style.setProperty("--width",N)});const _=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);_===Pt.LEFT&&(zl(o.fillerLeft,"width",R),o.leftPinnedCellsAfter.forEach(F=>{zl(F,"left",R)}),o.leftPinnedHeadersAfter.forEach(F=>{zl(F,"left",R)})),_===Pt.RIGHT&&(zl(o.fillerRight,"width",R),o.rightPinnedCellsBefore.forEach(F=>{zl(F,"right",R)}),o.rightPinnedHeadersBefore.forEach(F=>{zl(F,"right",R)}))},u=k=>{if(w(),o.previousMouseClickEvent){const S=o.previousMouseClickEvent,R=S.timeStamp,O=S.clientX,A=S.clientY;if(k.timeStamp-R<300&&k.clientX===O&&k.clientY===A){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,k);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const S=di(e.current.state);o.groupHeaderElements.forEach(R=>{const O=Bhe(R),A=R,_=`${O.reduce(($,L)=>S.columnVisibilityModel[L]!==!1?$+S.lookup[L].computedWidth:$,0)}px`;A.style.width=_})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,k)})},d=(k,S,R)=>{var _;const O=e.current.rootElementRef.current;o.initialColWidth=k.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=k,o.columnHeaderElement=Nhe(e.current.columnHeadersContainerRef.current,k.field);const A=O.querySelector(`.${B.headerFilterRow} [data-field="${cs(k.field)}"]`);A&&(o.headerFilterElement=A),o.groupHeaderElements=zhe((_=e.current.columnHeadersContainerRef)==null?void 0:_.current,k.field),o.cellElements=Hhe(o.columnHeaderElement,e.current),o.fillerLeft=tO(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=tO(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const D=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=D!==Pt.LEFT?[]:Vhe(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=D!==Pt.RIGHT?[]:Uhe(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=D!==Pt.LEFT?[]:Ghe(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=D!==Pt.RIGHT?[]:Whe(e.current,o.columnHeaderElement,n),s.current=Mbe(S,n),i.current=Ebe(R,o.columnHeaderElement.getBoundingClientRect(),s.current)},f=nt(u),h=nt(k=>{if(k.buttons===0){f(k);return}let S=OO(i.current,k.clientX,o.columnHeaderElement.getBoundingClientRect(),s.current);S=fi(S,o.colDef.minWidth,o.colDef.maxWidth),c(S);const R={element:o.columnHeaderElement,colDef:o.colDef,width:S};e.current.publishEvent("columnResize",R,k)}),m=nt(k=>{EO(k,l.current)&&u(k)}),y=nt(k=>{const S=EO(k,l.current);if(!S)return;if(k.type==="mousemove"&&k.buttons===0){m(k);return}let R=OO(i.current,S.x,o.columnHeaderElement.getBoundingClientRect(),s.current);R=fi(R,o.colDef.minWidth,o.colDef.maxWidth),c(R);const O={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",O,k)}),C=nt(k=>{const S=gg(k.target,B["columnSeparator--resizable"]);if(!S)return;const R=k.changedTouches[0];R!=null&&(l.current=R.identifier);const O=gg(k.target,B.columnHeader),A=jhe(O),D=e.current.getColumn(A);r.debug(`Start Resize on col ${D.field}`),e.current.publishEvent("columnResizeStart",{field:A},k),d(D,S,R.clientX);const _=Wt(k.currentTarget);_.addEventListener("touchmove",y),_.addEventListener("touchend",m)}),w=p.useCallback(()=>{const k=Wt(e.current.rootElementRef.current);k.body.style.removeProperty("cursor"),k.removeEventListener("mousemove",h),k.removeEventListener("mouseup",f),k.removeEventListener("touchmove",y),k.removeEventListener("touchend",m),setTimeout(()=>{k.removeEventListener("click",MO,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,h,f,y,m]),b=p.useCallback(({field:k})=>{e.current.setState(S=>E({},S,{columnResize:E({},S.columnResize,{resizingColumnField:k})})),e.current.forceUpdate()},[e]),g=p.useCallback(()=>{e.current.setState(k=>E({},k,{columnResize:E({},k.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),x=nt(({colDef:k},S)=>{if(S.button!==0||!S.currentTarget.classList.contains(B["columnSeparator--resizable"]))return;S.preventDefault(),r.debug(`Start Resize on col ${k.field}`),e.current.publishEvent("columnResizeStart",{field:k.field},S),d(k,S.currentTarget,S.clientX);const R=Wt(e.current.rootElementRef.current);R.body.style.cursor="col-resize",o.previousMouseClickEvent=S.nativeEvent,R.addEventListener("mousemove",h),R.addEventListener("mouseup",f),R.addEventListener("click",MO,!0)}),P=nt((k,S)=>{if(t.disableAutosize||S.button!==0)return;const R=e.current.state.columns.lookup[k.field];R.resizable!==!1&&e.current.autosizeColumns(E({},t.autosizeOptions,{columns:[R.field]}))}),I=Rbe(e),T=p.useRef(!1),M=p.useCallback(async k=>{var D;if(!((D=e.current.rootElementRef)==null?void 0:D.current)||T.current)return;T.current=!0;const R=di(e.current.state),O=E({},Ihe,k,{columns:(k==null?void 0:k.columns)??R.orderedFields});O.columns=O.columns.filter(_=>R.columnVisibilityModel[_]!==!1);const A=O.columns.map(_=>e.current.state.columns.lookup[_]);try{e.current.unstable_setColumnVirtualization(!1),await I();const _=_be(e,O,A),$=A.map(L=>E({},L,{width:_[L.field],computedWidth:_[L.field]}));if(O.expand){const F=R.orderedFields.map(z=>R.lookup[z]).filter(z=>R.columnVisibilityModel[z.field]!==!1).reduce((z,V)=>z+(_[V.field]??V.computedWidth??V.width),0),N=e.current.getRootDimensions().viewportInnerSize.width-F;if(N>0){const z=N/($.length||1);$.forEach(V=>{V.width+=z,V.computedWidth+=z})}}e.current.updateColumns($),$.forEach((L,F)=>{if(L.width!==A[F].width){const j=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:j})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,I]);p.useEffect(()=>w,[w]),dv(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Qj(e,()=>{var k;return(k=e.current.columnHeadersContainerRef)==null?void 0:k.current},"touchstart",C,{passive:!0}),Xe(e,{autosizeColumns:M},"public"),Ie(e,"columnResizeStop",g),Ie(e,"columnResizeStart",b),Ie(e,"columnSeparatorMouseDown",x),Ie(e,"columnSeparatorDoubleClick",P),St(e,"columnResize",t.onColumnResize),St(e,"columnWidthChange",t.onColumnWidthChange)};function zl(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function Fbe(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},bg={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Wd={firstRowIndex:0,lastRowIndex:0},Nbe=new Set([Ei,"__reorder__",iy]),L5=20,F5=(e,t,n,r,o,i,s)=>{const a=i?{}:E({},e.current.state.rowSpanning.spannedCells),l=i?{}:E({},e.current.state.rowSpanning.hiddenCells),c=i?{}:E({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(s=Wd),t.forEach(u=>{var d;if(!Nbe.has(u.field)){for(let f=o.firstRowIndex;f<=o.lastRowIndex;f+=1){const h=n[f];if((d=l[h.id])!=null&&d[u.field])continue;const m=a0(h.model,u,e);if(m==null)continue;let y=h.id,C=f,w=0;const b=[];if(f===o.firstRowIndex){let x=f-1;const P=n[x];for(;x>=r.firstRowIndex&&a0(P.model,u,e)===m;){const I=n[x+1];l[I.id]?l[I.id][u.field]=!0:l[I.id]={[u.field]:!0},b.push(f),w+=1,y=P.id,C=x,x-=1}}b.forEach(x=>{c[x]?c[x][u.field]=C:c[x]={[u.field]:C}});let g=f+1;for(;g<=r.lastRowIndex&&n[g]&&a0(n[g].model,u,e)===m;){const x=n[g];l[x.id]?l[x.id][u.field]=!0:l[x.id]={[u.field]:!0},c[g]?c[g][u.field]=C:c[g]={[u.field]:C},g+=1,w+=1}w>0&&(a[y]?a[y][u.field]=w+1:a[y]={[u.field]:w+1})}s={firstRowIndex:Math.min(s.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(s.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:l,hiddenCellOriginMap:c,processedRange:s}},Bbe=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!i.length||!s||!a||l)return E({},e,{rowSpanning:bg});const c={firstRowIndex:0,lastRowIndex:Math.min(L5-1,Math.max(o.length-1,0))},u=o.map(y=>({id:y,model:s[y]})),d=i.map(y=>a[y]),{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:m}=F5(n,d,u,c,c,!0,Wd);return E({},e,{rowSpanning:{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:m}})}return E({},e,{rowSpanning:bg})},zbe=(e,t)=>{const{range:n,rows:r}=pa(e,t),o=ue(e,fy),i=ue(e,mn),s=Vo(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(L5-1,Math.max(e.current.state.rows.dataRowIds.length-1,0))}:Wd),a=p.useRef(Wd),l=p.useCallback((f=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==bg&&e.current.setState(T=>E({},T,{rowSpanning:bg}));return}if(n===null||!jbe(o))return;f&&(s.current=Wd);const h=Fbe({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex-1,n.lastRowIndex)},s.current);if(h===null)return;const{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:C,processedRange:w}=F5(e,i,r,n,h,f,s.current);s.current=w;const b=Object.keys(m).length,g=Object.keys(y).length,x=Object.keys(e.current.state.rowSpanning.spannedCells).length,P=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(f||b!==x||g!==P)&&e.current.setState(T=>E({},T,{rowSpanning:{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:C}}))},[e,t.unstable_rowSpanning,n,o,r,i,s]),c=p.useRef(o),u=p.useRef(!0),d=p.useRef(!1);p.useEffect(()=>{const f=u.current;if(u.current&&(u.current=!1),n&&a.current&&RO(n,a.current)&&(a.current=n,d.current=!0),!f&&c.current!==o){RO(c.current,o)&&(l(d.current),d.current=!1),c.current=o;return}l()},[l,o,n,a])},Hbe=(e,t,n)=>E({},e,{listViewColumn:t.unstable_listColumn?E({},t.unstable_listColumn,{computedWidth:EC(n)}):void 0});function Vbe(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?E({},i,{listViewColumn:E({},i.listViewColumn,{computedWidth:EC(e)})}):i)},r=p.useRef(null);Ie(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Ie(e,"columnVisibilityModelChange",n),p.useEffect(()=>{const i=t.unstable_listColumn;i&&e.current.setState(s=>E({},s,{listViewColumn:E({},i,{computedWidth:EC(e)})}))},[e,t.unstable_listColumn]),p.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function EC(e){return $n(e.current.state).viewportInnerSize.width}const Ube=(e,t)=>{const n=cye(e,t);return abe(n,t),rbe(n),bn(hbe,n,t),bn(obe,n,t),bn(vye,n,t),bn(Jye,n,t),bn(Xye,n,t),bn(Rye,n,t),bn(lbe,n,t),bn(Hye,n,t),bn(Tye,n,t),bn(Bbe,n,t),bn(bye,n,t),bn(Abe,n,t),bn(Bye,n,t),bn(bbe,n,t),bn(mye,n,t),bn(Ibe,n,t),bn(jpe,n,t),bn(Hbe,n,t),Fye(n,t),ibe(n,t),yye(n,t),Zye(n,t),zbe(n,t),Yhe(n,t),xbe(n),kbe(n,t),Qye(n,t),$ye(n,t),Vye(n,t),Mye(n,t),cbe(n,t),wye(n,t),Lbe(n,t),zye(n,t),wbe(n,t),ube(n,t),gye(n),xye(n,t),kye(n,t),hye(n,t),mbe(n,t),dbe(n,t),Cbe(n),Npe(n,t),Vbe(n,t),n},Gbe=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:s,groupId:a,pinnedPosition:l}=e;return ve({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",s&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},rt,t)};function Wbe(e){var z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:s,colIndex:a,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:h,sectionLength:m,gridHasFiller:y}=e,C=Me(),w=p.useRef(null),b=et(),g=ue(b,a5),x=t?g[t]:{},{headerName:P=t??"",description:I="",headerAlign:T=void 0}=x;let M;const k=t&&((z=g[t])==null?void 0:z.renderHeaderGroup),S=p.useMemo(()=>({groupId:t,headerName:P,description:I,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:u}),[t,P,I,r,o,i,a,u]);t&&k&&(M=k(S));const R=hy(d,h),O=py(d,h,m,C.showColumnVerticalBorder,y),A=E({},e,{classes:C.classes,showLeftBorder:R,showRightBorder:O,headerAlign:T,depth:r,isDragging:!1}),D=P??t,_=yt(),$=t===null?`empty-group-cell-${_}`:t,L=Gbe(A);p.useLayoutEffect(()=>{if(l){const K=w.current.querySelector('[tabindex="0"]')||w.current;K==null||K.focus()}},[b,l]);const F=p.useCallback(V=>K=>{vp(K)||b.current.publishEvent(V,S,K)},[b,S]),j=p.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),N=typeof x.headerClassName=="function"?x.headerClassName(S):x.headerClassName;return v.jsx(S5,E({ref:w,classes:L,columnMenuOpen:!1,colIndex:a,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:M,headerClassName:N,description:I,elementId:$,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:D,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},j))}const $O=ne("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Kbe=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:s,columnGroupHeaderFocus:a,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[h,m]=p.useState(""),[y,C]=p.useState(""),w=To(),b=Ir(),g=Me(),x=ue(w,$n),P=ue(w,K1),I=ue(w,s5),T=ue(w,da),M=ue(w,Fpe),k=ue(w,pp),S=ue(w,ls),R=f5(T,M,k.left.length),O=x.columnsTotalWidth{w.current.columnHeadersContainerRef.current&&(w.current.columnHeadersContainerRef.current.scrollLeft=0)},[w]);const A=p.useCallback(Y=>C(Y.field),[]),D=p.useCallback(()=>C(""),[]),_=p.useCallback(Y=>m(Y.field),[]),$=p.useCallback(()=>m(""),[]),L=p.useMemo(()=>k.left.length?{firstColumnIndex:0,lastColumnIndex:k.left.length}:null,[k.left.length]),F=p.useMemo(()=>k.right.length?{firstColumnIndex:t.length-k.right.length,lastColumnIndex:t.length}:null,[k.right.length,t.length]);Ie(w,"columnResizeStart",A),Ie(w,"columnResizeStop",D),Ie(w,"columnHeaderDragStart",_),Ie(w,"columnHeaderDragEnd",$);const j=Y=>{const{renderContext:ee=M,maxLastColumn:W=t.length}=Y||{},Q=ee.firstColumnIndex,U=P?ee.lastColumnIndex:W;return{renderedColumns:t.slice(Q,U),firstColumnToRender:Q,lastColumnToRender:U}},N=(Y,ee,W,Q=!1)=>{const U=(Y==null?void 0:Y.position)===Pt.RIGHT,J=(Y==null?void 0:Y.position)===void 0,Z=k.right.length>0&&U||k.right.length===0&&J,le=R-W;return v.jsxs(p.Fragment,{children:[J&&v.jsx("div",{role:"presentation",style:{width:le}}),ee,J&&v.jsx("div",{role:"presentation",className:ie(B.filler,Q&&B["filler--borderBottom"])}),Z&&v.jsx(J1,{header:!0,pinnedRight:U,borderBottom:Q,borderTop:!1})]})},z=({pinnedPosition:Y,columnIndex:ee,computedWidth:W})=>{let Q;const U=Y===Pt.LEFT,J=Y===Pt.RIGHT;if(U||J){const Z=Q1(Y,W,ee,T,x);let le=U?"left":"right";b&&(le=U?"right":"left"),Y==="left"&&(Q={[le]:Z}),Y==="right"&&(Q={[le]:Z})}return Q},V=(Y,ee={})=>{const{renderedColumns:W,firstColumnToRender:Q}=j(Y),U=[];for(let J=0;Jv.jsxs($O,{role:"row","aria-rowindex":l+1,ownerState:g,className:B["row--borderBottom"],children:[L&&V({position:Pt.LEFT,renderContext:L,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),V({renderContext:M,maxLastColumn:t.length-k.right.length}),F&&V({position:Pt.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex},{disableReorder:!0,separatorSide:X1.Left})]}),H=({depth:Y,params:ee})=>{var oe,de;const W=j(ee);if(W.renderedColumns.length===0)return null;const{firstColumnToRender:Q,lastColumnToRender:U}=W,J=d[Y],Z=t[Q].field,le=((oe=I[Z])==null?void 0:oe[Y])??null,he=J.findIndex(({groupId:ge,columnFields:Se})=>ge===le&&Se.includes(Z)),ye=t[U-1].field,pe=((de=I[ye])==null?void 0:de[Y])??null,Fe=J.findIndex(({groupId:ge,columnFields:Se})=>ge===pe&&Se.includes(ye)),me=J.slice(he,Fe+1).map(ge=>E({},ge,{columnFields:ge.columnFields.filter(Se=>u[Se]!==!1)})).filter(ge=>ge.columnFields.length>0),Ae=me[0].columnFields.indexOf(Z),De=me[0].columnFields.slice(0,Ae).reduce((ge,Se)=>{const Ee=S[Se];return ge+(Ee.computedWidth??0)},0);let X=Q;const te=me.map(({groupId:ge,columnFields:Se},Ee)=>{const Oe=a!==null&&a.depth===Y&&Se.includes(a.field),Ce=i!==null&&i.depth===Y&&Se.includes(i.field)?0:-1,we={groupId:ge,width:Se.reduce((ke,Ke)=>ke+S[Ke].computedWidth,0),fields:Se,colIndex:X,hasFocus:Oe,tabIndex:Ce},Le=ee.position,lt=z({pinnedPosition:Le,columnIndex:X,computedWidth:we.width});X+=Se.length;let fe=Ee;return Le==="left"&&(fe=X-1),v.jsx(Wbe,{groupId:ge,width:we.width,fields:we.fields,colIndex:we.colIndex,depth:Y,isLastColumn:we.colIndex===t.length-we.fields.length,maxDepth:l,height:x.groupHeaderHeight,hasFocus:Oe,tabIndex:Ce,pinnedPosition:Le,style:lt,indexInSection:fe,sectionLength:J.length,gridHasFiller:O},Ee)});return N(ee,te,De)};return{renderContext:M,leftRenderContext:L,rightRenderContext:F,pinnedColumns:k,visibleColumns:t,getCellOffsetStyle:z,getFillers:N,getColumnHeadersRow:K,getColumnsToRender:j,getColumnGroupHeadersRows:()=>{if(l===0)return null;const Y=[];for(let ee=0;ee({role:"rowgroup"})}},qbe=["className"],Ybe=e=>{const{classes:t}=e;return ve({root:["columnHeaders"]},rt,t)},Xbe=Ct("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Qbe=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,qbe),i=Me(),s=Ybe(i);return v.jsx(Xbe,E({ref:n,className:ie(s.root,r),ownerState:i},o,{role:"presentation"}))}),Jbe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Zbe=p.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=t,y=xe(t,Jbe),{getInnerProps:C,getColumnHeadersRow:w,getColumnGroupHeadersRows:b}=Kbe({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m});return v.jsxs(Qbe,E({ref:n},y,C(),{children:[b(),w()]}))}),e0e=ua(Zbe);function t0e(e){return null}function n0e(e){return null}const r0e=p.forwardRef(function(t,n){const o=et().current.getLocaleText("noResultsOverlayLabel");return v.jsx(Y1,E({ref:n},t,{children:o}))}),o0e=["sortingOrder"],i0e=p.memo(function(t){const{sortingOrder:n}=t,r=xe(t,o0e),o=Me(),[i]=n,s=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?v.jsx(s,E({},r)):null}),s0e=["native"];function a0e(e){let{native:t}=e,n=xe(e,s0e);return t?v.jsx("option",E({},n)):v.jsx(On,E({},n))}const l0e={booleanCellTrueIcon:lge,booleanCellFalseIcon:r0,columnMenuIcon:oge,openFilterButtonIcon:Qme,filterPanelDeleteIcon:r0,columnFilteredIcon:dO,columnSelectorIcon:Zme,columnUnsortedIcon:i0e,columnSortedAscendingIcon:aO,columnSortedDescendingIcon:lO,columnResizeIcon:ege,densityCompactIcon:tge,densityStandardIcon:nge,densityComfortableIcon:rge,exportIcon:age,moreActionsIcon:cge,treeDataCollapseIcon:uO,treeDataExpandIcon:cO,groupingCriteriaCollapseIcon:uO,groupingCriteriaExpandIcon:cO,detailPanelExpandIcon:fO,detailPanelCollapseIcon:ige,rowReorderIcon:pO,quickFilterIcon:Jme,quickFilterClearIcon:r0,columnMenuHideIcon:uge,columnMenuSortAscendingIcon:aO,columnMenuSortDescendingIcon:lO,columnMenuFilterIcon:dO,columnMenuManageColumnsIcon:dge,columnMenuClearIcon:fge,loadIcon:sge,filterPanelAddIcon:fO,filterPanelRemoveAllIcon:pge,columnReorderIcon:pO},c0e=E({},l0e,{baseBadge:Sne,baseCheckbox:Gne,baseDivider:Ja,baseTextField:Ds,baseFormControl:fc,baseSelect:nu,baseButton:mr,baseIconButton:an,baseInputAdornment:Jre,baseTooltip:yF,basePopper:gl,baseInputLabel:qm,baseSelectOption:a0e,baseChip:Ni}),u0e=E({},c0e,{cell:eme,skeletonCell:ame,columnHeaderFilterIconButton:Xme,columnHeaderSortIcon:qme,columnMenu:Rge,columnHeaders:e0e,detailPanels:t0e,footer:Sve,footerRowCount:Bve,toolbar:null,pinnedRows:n0e,loadingOverlay:Rve,noResultsOverlay:r0e,noRowsOverlay:$ve,pagination:Lve,filterPanel:hve,columnsPanel:Vge,columnsManagement:E5,panel:qge,row:Gve});function d0e({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=E({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function f0e(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;of0e(e),[e])}const h0e={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},m0e=u0e,g0e=e=>{const t=p0e(X6({props:e,name:"MuiDataGrid"})),n=p.useMemo(()=>E({},Rue,t.localeText),[t.localeText]),r=p.useMemo(()=>d0e({defaultSlots:m0e,slots:t.slots}),[t.slots]),o=p.useMemo(()=>Object.keys(IC).reduce((i,s)=>(i[s]=t[s]??IC[s],i),{}),[t]);return p.useMemo(()=>E({},t,o,{localeText:n,slots:r},h0e),[t,n,r,o])},v0e={hooks:{useGridAriaAttributes:Wve,useGridRowAriaAttributes:Kve}},j5=p.forwardRef(function(t,n){const r=g0e(t),o=Ube(r.apiRef,r);return v.jsx(qve,{privateApiRef:o,configuration:v0e,props:r,children:v.jsxs(vme,E({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[v.jsx(Ive,{}),v.jsx(Rhe,{}),v.jsx($he,{})]}))})}),y0e=p.memo(j5);j5.propTypes={apiRef:q.shape({current:q.object.isRequired}),"aria-label":q.string,"aria-labelledby":q.string,autoHeight:q.bool,autoPageSize:q.bool,autosizeOnMount:q.bool,autosizeOptions:q.shape({columns:q.arrayOf(q.string),expand:q.bool,includeHeaders:q.bool,includeOutliers:q.bool,outliersFactor:q.number}),cellModesModel:q.object,checkboxSelection:q.bool,classes:q.object,clipboardCopyCellDelimiter:q.string,columnBufferPx:q.number,columnGroupHeaderHeight:q.number,columnGroupingModel:q.arrayOf(q.object),columnHeaderHeight:q.number,columns:q.arrayOf(q.object).isRequired,columnVisibilityModel:q.object,density:q.oneOf(["comfortable","compact","standard"]),disableAutosize:q.bool,disableColumnFilter:q.bool,disableColumnMenu:q.bool,disableColumnResize:q.bool,disableColumnSelector:q.bool,disableColumnSorting:q.bool,disableDensitySelector:q.bool,disableEval:q.bool,disableMultipleRowSelection:q.bool,disableRowSelectionOnClick:q.bool,disableVirtualization:q.bool,editMode:q.oneOf(["cell","row"]),estimatedRowCount:q.number,experimentalFeatures:q.shape({warnIfFocusStateIsNotSynced:q.bool}),filterDebounceMs:q.number,filterMode:q.oneOf(["client","server"]),filterModel:q.shape({items:q.arrayOf(q.shape({field:q.string.isRequired,id:q.oneOfType([q.number,q.string]),operator:q.string.isRequired,value:q.any})).isRequired,logicOperator:q.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:q.bool,quickFilterLogicOperator:q.oneOf(["and","or"]),quickFilterValues:q.array}),forwardedProps:q.object,getCellClassName:q.func,getDetailPanelContent:q.func,getEstimatedRowHeight:q.func,getRowClassName:q.func,getRowHeight:q.func,getRowId:q.func,getRowSpacing:q.func,hideFooter:q.bool,hideFooterPagination:q.bool,hideFooterSelectedRowCount:q.bool,ignoreDiacritics:q.bool,ignoreValueFormatterDuringExport:q.oneOfType([q.shape({clipboardExport:q.bool,csvExport:q.bool}),q.bool]),indeterminateCheckboxAction:q.oneOf(["deselect","select"]),initialState:q.object,isCellEditable:q.func,isRowSelectable:q.func,keepNonExistentRowsSelected:q.bool,loading:q.bool,localeText:q.object,logger:q.shape({debug:q.func.isRequired,error:q.func.isRequired,info:q.func.isRequired,warn:q.func.isRequired}),logLevel:q.oneOf(["debug","error","info","warn",!1]),nonce:q.string,onCellClick:q.func,onCellDoubleClick:q.func,onCellEditStart:q.func,onCellEditStop:q.func,onCellKeyDown:q.func,onCellModesModelChange:q.func,onClipboardCopy:q.func,onColumnHeaderClick:q.func,onColumnHeaderContextMenu:q.func,onColumnHeaderDoubleClick:q.func,onColumnHeaderEnter:q.func,onColumnHeaderLeave:q.func,onColumnHeaderOut:q.func,onColumnHeaderOver:q.func,onColumnOrderChange:q.func,onColumnResize:q.func,onColumnVisibilityModelChange:q.func,onColumnWidthChange:q.func,onDensityChange:q.func,onFilterModelChange:q.func,onMenuClose:q.func,onMenuOpen:q.func,onPaginationMetaChange:q.func,onPaginationModelChange:q.func,onPreferencePanelClose:q.func,onPreferencePanelOpen:q.func,onProcessRowUpdateError:q.func,onResize:q.func,onRowClick:q.func,onRowCountChange:q.func,onRowDoubleClick:q.func,onRowEditStart:q.func,onRowEditStop:q.func,onRowModesModelChange:q.func,onRowSelectionModelChange:q.func,onSortModelChange:q.func,onStateChange:q.func,pageSizeOptions:q.arrayOf(q.oneOfType([q.number,q.shape({label:q.string.isRequired,value:q.number.isRequired})]).isRequired),pagination:q.oneOf([!0]),paginationMeta:q.shape({hasNextPage:q.bool}),paginationMode:q.oneOf(["client","server"]),paginationModel:q.shape({page:q.number.isRequired,pageSize:q.number.isRequired}),processRowUpdate:q.func,resizeThrottleMs:q.number,rowBufferPx:q.number,rowCount:q.number,rowHeight:q.number,rowModesModel:q.object,rowPositionsDebounceMs:q.number,rows:q.arrayOf(q.object),rowSelection:q.bool,rowSelectionModel:q.oneOfType([q.arrayOf(q.oneOfType([q.number,q.string]).isRequired),q.number,q.string]),rowSpacingType:q.oneOf(["border","margin"]),scrollbarSize:q.number,showCellVerticalBorder:q.bool,showColumnVerticalBorder:q.bool,slotProps:q.object,slots:q.object,sortingMode:q.oneOf(["client","server"]),sortingOrder:q.arrayOf(q.oneOf(["asc","desc"])),sortModel:q.arrayOf(q.shape({field:q.string.isRequired,sort:q.oneOf(["asc","desc"])})),sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),unstable_rowSpanning:q.bool};var b0e=function(t){return w0e(t)&&!C0e(t)};function w0e(e){return!!e&&typeof e=="object"}function C0e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||P0e(e)}var x0e=typeof Symbol=="function"&&Symbol.for,S0e=x0e?Symbol.for("react.element"):60103;function P0e(e){return e.$$typeof===S0e}function I0e(e){return Array.isArray(e)?[]:{}}function wg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ff(I0e(e),e,t):e}function k0e(e,t,n){return e.concat(t).map(function(r){return wg(r,n)})}function T0e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=wg(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=wg(t[o],n):r[o]=Ff(e[o],t[o],n)}),r}function Ff(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||k0e,n.isMergeableObject=n.isMergeableObject||b0e;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):T0e(e,t,n):wg(t,n)}Ff.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Ff(r,o,n)},{})};var OC=Ff,N5=typeof global=="object"&&global&&global.Object===Object&&global,E0e=typeof self=="object"&&self&&self.Object===Object&&self,Ci=N5||E0e||Function("return this")(),na=Ci.Symbol,B5=Object.prototype,O0e=B5.hasOwnProperty,M0e=B5.toString,fd=na?na.toStringTag:void 0;function R0e(e){var t=O0e.call(e,fd),n=e[fd];try{e[fd]=void 0;var r=!0}catch{}var o=M0e.call(e);return r&&(t?e[fd]=n:delete e[fd]),o}var $0e=Object.prototype,_0e=$0e.toString;function A0e(e){return _0e.call(e)}var D0e="[object Null]",L0e="[object Undefined]",_O=na?na.toStringTag:void 0;function wl(e){return e==null?e===void 0?L0e:D0e:_O&&_O in Object(e)?R0e(e):A0e(e)}function z5(e,t){return function(n){return e(t(n))}}var nP=z5(Object.getPrototypeOf,Object);function Cl(e){return e!=null&&typeof e=="object"}var F0e="[object Object]",j0e=Function.prototype,N0e=Object.prototype,H5=j0e.toString,B0e=N0e.hasOwnProperty,z0e=H5.call(Object);function AO(e){if(!Cl(e)||wl(e)!=F0e)return!1;var t=nP(e);if(t===null)return!0;var n=B0e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&H5.call(n)==z0e}function H0e(){this.__data__=[],this.size=0}function V5(e,t){return e===t||e!==e&&t!==t}function my(e,t){for(var n=e.length;n--;)if(V5(e[n][0],t))return n;return-1}var V0e=Array.prototype,U0e=V0e.splice;function G0e(e){var t=this.__data__,n=my(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():U0e.call(t,n,1),--this.size,!0}function W0e(e){var t=this.__data__,n=my(t,e);return n<0?void 0:t[n][1]}function K0e(e){return my(this.__data__,e)>-1}function q0e(e,t){var n=this.__data__,r=my(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function us(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=qwe}var Ywe="[object Arguments]",Xwe="[object Array]",Qwe="[object Boolean]",Jwe="[object Date]",Zwe="[object Error]",eCe="[object Function]",tCe="[object Map]",nCe="[object Number]",rCe="[object Object]",oCe="[object RegExp]",iCe="[object Set]",sCe="[object String]",aCe="[object WeakMap]",lCe="[object ArrayBuffer]",cCe="[object DataView]",uCe="[object Float32Array]",dCe="[object Float64Array]",fCe="[object Int8Array]",pCe="[object Int16Array]",hCe="[object Int32Array]",mCe="[object Uint8Array]",gCe="[object Uint8ClampedArray]",vCe="[object Uint16Array]",yCe="[object Uint32Array]",At={};At[uCe]=At[dCe]=At[fCe]=At[pCe]=At[hCe]=At[mCe]=At[gCe]=At[vCe]=At[yCe]=!0;At[Ywe]=At[Xwe]=At[lCe]=At[Qwe]=At[cCe]=At[Jwe]=At[Zwe]=At[eCe]=At[tCe]=At[nCe]=At[rCe]=At[oCe]=At[iCe]=At[sCe]=At[aCe]=!1;function bCe(e){return Cl(e)&&X5(e.length)&&!!At[wl(e)]}function rP(e){return function(t){return e(t)}}var Q5=typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,Kd=Q5&&typeof jr=="object"&&jr&&!jr.nodeType&&jr,wCe=Kd&&Kd.exports===Q5,c0=wCe&&N5.process,pu=function(){try{var e=Kd&&Kd.require&&Kd.require("util").types;return e||c0&&c0.binding&&c0.binding("util")}catch{}}(),BO=pu&&pu.isTypedArray,CCe=BO?rP(BO):bCe,xCe=Object.prototype,SCe=xCe.hasOwnProperty;function J5(e,t){var n=bp(e),r=!n&&zwe(e),o=!n&&!r&&Y5(e),i=!n&&!r&&!o&&CCe(e),s=n||r||o||i,a=s?Fwe(e.length,String):[],l=a.length;for(var c in e)(t||SCe.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Kwe(c,l)))&&a.push(c);return a}var PCe=Object.prototype;function oP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PCe;return e===n}var ICe=z5(Object.keys,Object),kCe=Object.prototype,TCe=kCe.hasOwnProperty;function ECe(e){if(!oP(e))return ICe(e);var t=[];for(var n in Object(e))TCe.call(e,n)&&n!="constructor"&&t.push(n);return t}function Z5(e){return e!=null&&X5(e.length)&&!U5(e)}function iP(e){return Z5(e)?J5(e):ECe(e)}function OCe(e,t){return e&&vy(t,iP(t),e)}function MCe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var RCe=Object.prototype,$Ce=RCe.hasOwnProperty;function _Ce(e){if(!yp(e))return MCe(e);var t=oP(e),n=[];for(var r in e)r=="constructor"&&(t||!$Ce.call(e,r))||n.push(r);return n}function sP(e){return Z5(e)?J5(e,!0):_Ce(e)}function ACe(e,t){return e&&vy(t,sP(t),e)}var eN=typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,zO=eN&&typeof jr=="object"&&jr&&!jr.nodeType&&jr,DCe=zO&&zO.exports===eN,HO=DCe?Ci.Buffer:void 0,VO=HO?HO.allocUnsafe:void 0;function LCe(e,t){if(t)return e.slice();var n=e.length,r=VO?VO(n):new e.constructor(n);return e.copy(r),r}function tN(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var yy=p.createContext(void 0);yy.displayName="FormikContext";yy.Provider;yy.Consumer;function xSe(){var e=p.useContext(yy);return e}var Mo=function(t){return typeof t=="function"},by=function(t){return t!==null&&typeof t=="object"},SSe=function(t){return String(Math.floor(Number(t)))===t},u0=function(t){return Object.prototype.toString.call(t)==="[object String]"},d0=function(t){return by(t)&&Mo(t.then)};function Er(e,t,n,r){r===void 0&&(r=0);for(var o=dN(t);e&&r=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function pN(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?te.map(function(de){return S(de,Er(X,de))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(oe).then(function(de){return de.reduce(function(ge,Se,Ee){return Se==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Se&&(ge=Ua(ge,te[Ee],Se)),ge},{})})},[S]),O=p.useCallback(function(X){return Promise.all([R(X),f.validationSchema?k(X):{},f.validate?M(X):{}]).then(function(te){var oe=te[0],de=te[1],ge=te[2],Se=OC.all([oe,de,ge],{arrayMerge:ESe});return Se})},[f.validate,f.validationSchema,R,M,k]),A=Qr(function(X){return X===void 0&&(X=I.values),T({type:"SET_ISVALIDATING",payload:!0}),O(X).then(function(te){return w.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:te})),te})});p.useEffect(function(){s&&w.current===!0&&ka(h.current,f.initialValues)&&A(h.current)},[s,A]);var D=p.useCallback(function(X){var te=X&&X.values?X.values:h.current,oe=X&&X.errors?X.errors:m.current?m.current:f.initialErrors||{},de=X&&X.touched?X.touched:y.current?y.current:f.initialTouched||{},ge=X&&X.status?X.status:C.current?C.current:f.initialStatus;h.current=te,m.current=oe,y.current=de,C.current=ge;var Se=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!X&&!!X.isSubmitting,errors:oe,touched:de,status:ge,values:te,isValidating:!!X&&!!X.isValidating,submitCount:X&&X.submitCount&&typeof X.submitCount=="number"?X.submitCount:0}})};if(f.onReset){var Ee=f.onReset(I.values,le);d0(Ee)?Ee.then(Se):Se()}else Se()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);p.useEffect(function(){w.current===!0&&!ka(h.current,f.initialValues)&&c&&(h.current=f.initialValues,D(),s&&A(h.current))},[c,f.initialValues,D,s,A]),p.useEffect(function(){c&&w.current===!0&&!ka(m.current,f.initialErrors)&&(m.current=f.initialErrors||ya,T({type:"SET_ERRORS",payload:f.initialErrors||ya}))},[c,f.initialErrors]),p.useEffect(function(){c&&w.current===!0&&!ka(y.current,f.initialTouched)&&(y.current=f.initialTouched||fh,T({type:"SET_TOUCHED",payload:f.initialTouched||fh}))},[c,f.initialTouched]),p.useEffect(function(){c&&w.current===!0&&!ka(C.current,f.initialStatus)&&(C.current=f.initialStatus,T({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var _=Qr(function(X){if(b.current[X]&&Mo(b.current[X].validate)){var te=Er(I.values,X),oe=b.current[X].validate(te);return d0(oe)?(T({type:"SET_ISVALIDATING",payload:!0}),oe.then(function(de){return de}).then(function(de){T({type:"SET_FIELD_ERROR",payload:{field:X,value:de}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:X,value:oe}}),Promise.resolve(oe))}else if(f.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),k(I.values,X).then(function(de){return de}).then(function(de){T({type:"SET_FIELD_ERROR",payload:{field:X,value:Er(de,X)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),$=p.useCallback(function(X,te){var oe=te.validate;b.current[X]={validate:oe}},[]),L=p.useCallback(function(X){delete b.current[X]},[]),F=Qr(function(X,te){T({type:"SET_TOUCHED",payload:X});var oe=te===void 0?o:te;return oe?A(I.values):Promise.resolve()}),j=p.useCallback(function(X){T({type:"SET_ERRORS",payload:X})},[]),N=Qr(function(X,te){var oe=Mo(X)?X(I.values):X;T({type:"SET_VALUES",payload:oe});var de=te===void 0?n:te;return de?A(oe):Promise.resolve()}),z=p.useCallback(function(X,te){T({type:"SET_FIELD_ERROR",payload:{field:X,value:te}})},[]),V=Qr(function(X,te,oe){T({type:"SET_FIELD_VALUE",payload:{field:X,value:te}});var de=oe===void 0?n:oe;return de?A(Ua(I.values,X,te)):Promise.resolve()}),K=p.useCallback(function(X,te){var oe=te,de=X,ge;if(!u0(X)){X.persist&&X.persist();var Se=X.target?X.target:X.currentTarget,Ee=Se.type,Oe=Se.name,Ce=Se.id,we=Se.value,Le=Se.checked,lt=Se.outerHTML,fe=Se.options,ke=Se.multiple;oe=te||Oe||Ce,de=/number|range/.test(Ee)?(ge=parseFloat(we),isNaN(ge)?"":ge):/checkbox/.test(Ee)?MSe(Er(I.values,oe),Le,we):fe&&ke?OSe(fe):we}oe&&V(oe,de)},[V,I.values]),H=Qr(function(X){if(u0(X))return function(te){return K(te,X)};K(X)}),G=Qr(function(X,te,oe){te===void 0&&(te=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:X,value:te}});var de=oe===void 0?o:oe;return de?A(I.values):Promise.resolve()}),Y=p.useCallback(function(X,te){X.persist&&X.persist();var oe=X.target,de=oe.name,ge=oe.id,Se=oe.outerHTML,Ee=te||de||ge;G(Ee,!0)},[G]),ee=Qr(function(X){if(u0(X))return function(te){return Y(te,X)};Y(X)}),W=p.useCallback(function(X){Mo(X)?T({type:"SET_FORMIK_STATE",payload:X}):T({type:"SET_FORMIK_STATE",payload:function(){return X}})},[]),Q=p.useCallback(function(X){T({type:"SET_STATUS",payload:X})},[]),U=p.useCallback(function(X){T({type:"SET_ISSUBMITTING",payload:X})},[]),J=Qr(function(){return T({type:"SUBMIT_ATTEMPT"}),A().then(function(X){var te=X instanceof Error,oe=!te&&Object.keys(X).length===0;if(oe){var de;try{if(de=he(),de===void 0)return}catch(ge){throw ge}return Promise.resolve(de).then(function(ge){return w.current&&T({type:"SUBMIT_SUCCESS"}),ge}).catch(function(ge){if(w.current)throw T({type:"SUBMIT_FAILURE"}),ge})}else if(w.current&&(T({type:"SUBMIT_FAILURE"}),te))throw X})}),Z=Qr(function(X){X&&X.preventDefault&&Mo(X.preventDefault)&&X.preventDefault(),X&&X.stopPropagation&&Mo(X.stopPropagation)&&X.stopPropagation(),J().catch(function(te){console.warn("Warning: An unhandled error was caught from submitForm()",te)})}),le={resetForm:D,validateForm:A,validateField:_,setErrors:j,setFieldError:z,setFieldTouched:G,setFieldValue:V,setStatus:Q,setSubmitting:U,setTouched:F,setValues:N,setFormikState:W,submitForm:J},he=Qr(function(){return u(I.values,le)}),ye=Qr(function(X){X&&X.preventDefault&&Mo(X.preventDefault)&&X.preventDefault(),X&&X.stopPropagation&&Mo(X.stopPropagation)&&X.stopPropagation(),D()}),pe=p.useCallback(function(X){return{value:Er(I.values,X),error:Er(I.errors,X),touched:!!Er(I.touched,X),initialValue:Er(h.current,X),initialTouched:!!Er(y.current,X),initialError:Er(m.current,X)}},[I.errors,I.touched,I.values]),Fe=p.useCallback(function(X){return{setValue:function(oe,de){return V(X,oe,de)},setTouched:function(oe,de){return G(X,oe,de)},setError:function(oe){return z(X,oe)}}},[V,G,z]),me=p.useCallback(function(X){var te=by(X),oe=te?X.name:X,de=Er(I.values,oe),ge={name:oe,value:de,onChange:H,onBlur:ee};if(te){var Se=X.type,Ee=X.value,Oe=X.as,Ce=X.multiple;Se==="checkbox"?Ee===void 0?ge.checked=!!de:(ge.checked=!!(Array.isArray(de)&&~de.indexOf(Ee)),ge.value=Ee):Se==="radio"?(ge.checked=de===Ee,ge.value=Ee):Oe==="select"&&Ce&&(ge.value=ge.value||[],ge.multiple=!0)}return ge},[ee,H,I.values]),Ae=p.useMemo(function(){return!ka(h.current,I.values)},[h.current,I.values]),Ve=p.useMemo(function(){return typeof a<"u"?Ae?I.errors&&Object.keys(I.errors).length===0:a!==!1&&Mo(a)?a(f):a:I.errors&&Object.keys(I.errors).length===0},[a,Ae,I.errors,f]),De=wn({},I,{initialValues:h.current,initialErrors:m.current,initialTouched:y.current,initialStatus:C.current,handleBlur:ee,handleChange:H,handleReset:ye,handleSubmit:Z,resetForm:D,setErrors:j,setFormikState:W,setFieldTouched:G,setFieldValue:V,setFieldError:z,setStatus:Q,setSubmitting:U,setTouched:F,setValues:N,submitForm:J,validateForm:A,validateField:_,isValid:Ve,dirty:Ae,unregisterField:L,registerField:$,getFieldProps:me,getFieldMeta:pe,getFieldHelpers:Fe,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return De}function kSe(e){var t={};if(e.inner){if(e.inner.length===0)return Ua(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;Er(t,s.path)||(t=Ua(t,s.path,s.message))}}return t}function TSe(e,t,n,r){n===void 0&&(n=!1);var o=DC(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function DC(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||AO(o)?DC(o):o!==""?o:void 0}):AO(e[r])?t[r]=DC(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function ESe(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,l=a&&n.isMergeableObject(i);r[s]=l?OC(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=OC(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function OSe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function MSe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var RSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect;function Qr(e){var t=p.useRef(e);return RSe(function(){t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var _Se=/[^.^\]^[]+|(?=\[\]|\.\.)/g,hN=/^\d+$/,ASe=/^\d/,DSe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,LSe=/^\s*(['"]?)(.*?)(\1)\s*$/,dP=512,aM=new Pl(dP),lM=new Pl(dP),cM=new Pl(dP),Ga={Cache:Pl,split:LC,normalizePath:f0,setter:function(e){var t=f0(e);return lM.get(e)||lM.set(e,function(r,o){for(var i=0,s=t.length,a=r;ie.match(zSe)||[],Cy=e=>e[0].toUpperCase()+e.slice(1),pP=(e,t)=>wy(e).join(t).toLowerCase(),mN=e=>wy(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),HSe=e=>Cy(mN(e)),VSe=e=>pP(e,"_"),USe=e=>pP(e,"-"),GSe=e=>Cy(pP(e," ")),WSe=e=>wy(e).map(Cy).join(" ");var p0={words:wy,upperFirst:Cy,camelCase:mN,pascalCase:HSe,snakeCase:VSe,kebabCase:USe,sentenceCase:GSe,titleCase:WSe},hP={exports:{}};hP.exports=function(e){return gN(KSe(e),e)};hP.exports.array=gN;function gN(e,t){var n=e.length,r=new Array(n),o={},i=n,s=qSe(t),a=YSe(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(c,u,d){if(d.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!o[u]){o[u]=!0;var h=s.get(c)||new Set;if(h=Array.from(h),u=h.length){d.add(c);do{var m=h[--u];l(m,a.get(m),d)}while(u);d.delete(c)}r[--n]=c}}}function KSe(e){for(var t=new Set,n=0,r=e.length;n"",n1e=/^Symbol\((.*)\)(.*)$/;function r1e(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function uM(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return r1e(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return t1e.call(e).replace(n1e,"Symbol($1)");const r=JSe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+ZSe.call(e)+"]":r==="RegExp"?e1e.call(e):null}function qs(e,t){let n=uM(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=uM(this[r],t);return i!==null?i:o},2)}function vN(e){return e==null?[]:[].concat(e)}let yN,bN,wN,o1e=/\$\{\s*(\w+)\s*\}/g;yN=Symbol.toStringTag;class dM{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[yN]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],vN(t).forEach(i=>{if(hr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}bN=Symbol.hasInstance;wN=Symbol.toStringTag;class hr extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(o1e,(o,i)=>qs(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const s=new dM(t,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[wN]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,hr)}static[bN](t){return dM[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Xo={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${qs(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${qs(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${qs(n,!0)}\``+o}},dr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},bs={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},FC={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},jC={isValue:"${path} field must be ${value}"},NC={noUnknown:"${path} field has unspecified keys: ${unknown}"},i1e={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},s1e={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${qs(n,!0)}\``}return hr.formatError(Xo.notType,e)}};Object.assign(Object.create(null),{mixed:Xo,string:dr,number:bs,date:FC,object:NC,array:i1e,boolean:jC,tuple:s1e});const mP=e=>e&&e.__isYupSchema__;class Cg{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new Cg(t,(a,l)=>{var c;let u=s(...a)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!mP(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ph={context:"$",value:"."};class Il{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ph.context,this.isValue=this.key[0]===ph.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ph.context:this.isValue?ph.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ga.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Il.prototype.__isYupRef=!0;const Do=e=>e==null;function Hl(e){function t({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:c,test:u,params:d,message:f,skipAbsent:h}=e;let{parent:m,context:y,abortEarly:C=s.spec.abortEarly,disableStackTrace:w=s.spec.disableStackTrace}=o;function b(R){return Il.isRef(R)?R.getValue(n,m,y):R}function g(R={}){const O=Object.assign({value:n,originalValue:i,label:s.spec.label,path:R.path||r,spec:s.spec,disableStackTrace:R.disableStackTrace||w},d,R.params);for(const D of Object.keys(O))O[D]=b(O[D]);const A=new hr(hr.formatError(R.message||f,O),n,O.path,R.type||c,O.disableStackTrace);return A.params=O,A}const x=C?a:l;let P={path:r,parent:m,type:c,from:o.from,createError:g,resolve:b,options:o,originalValue:i,schema:s};const I=R=>{hr.isError(R)?x(R):R?l(null):x(g())},T=R=>{hr.isError(R)?x(R):a(R)};if(h&&Do(n))return I(!0);let k;try{var S;if(k=u.call(P,n,P),typeof((S=k)==null?void 0:S.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(k).then(I,T)}}catch(R){T(R);return}I(k)}return t.OPTIONS=e,t}function a1e(e,t,n,r=n){let o,i,s;return t?(Ga.forEach(t,(a,l,c)=>{let u=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,s=l?"["+a+"]":"."+a}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class xg extends Set{describe(){const t=[];for(const n of this.values())t.push(Il.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new xg(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function mc(e,t=new Map){if(mP(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(Xo.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=mc(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Do(i))return i;let s=qs(t),a=qs(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +`)),r.current=!0),D.current){g($),D.current=!1;return}x($)},[t.autoHeight,x,n]);ht(S,[S]),Pt(e,"sortedRowsSet",S),Pt(e,"paginationModelChange",S),Pt(e,"columnsChange",S),Ie(e,"resize",_),Pt(e,"debouncedResize",t.onResize)}function vbe(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=Wt(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function ybe(e,t){return Math.round(e*10**t)/10**t}function OO(e,t){return e.width===t.width&&e.height===t.height}const bbe=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},wbe=(e,t,n)=>(n.current.caches.rowsMeta={heights:new Map},E({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})),Cbe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,s=p.useRef(-1),a=p.useRef(!1),l=p.useRef(!1),c=ue(e,fp),u=ue(e,kn),d=ue(e,uy),f=ue(e,eo),h=ha(e,t),m=ue(e,bl),y=ue(e,()=>_n(e.current.state).rowHeight),C=A=>{let D=i.get(A);return D===void 0&&(D={content:y,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(A,D)),D},w=p.useCallback(A=>{const D=_n(e.current.state).rowHeight,_=e.current.getRowHeightEntry(A.id);if(!n)_.content=D,_.needsFirstMeasurement=!1;else{const $=n(E({},A,{densityFactor:c}));if($==="auto"){if(_.needsFirstMeasurement){const L=o?o(E({},A,{densityFactor:c})):D;_.content=L??D}a.current=!0,_.autoHeight=!0}else _.content=Uj($,D),_.needsFirstMeasurement=!1,_.autoHeight=!1}if(r){const $=e.current.getRowIndexRelativeToVisibleRows(A.id),L=r(E({},A,{isFirstVisible:$===0,isLastVisible:$===h.rows.length-1,indexRelativeToCurrentPage:$}));_.spacingTop=L.top??0,_.spacingBottom=L.bottom??0}else _.spacingTop=0,_.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",_,A),_},[e,h.rows.length,n,o,y,r,c]),b=p.useCallback(()=>{a.current=!1,m.top.forEach(w),m.bottom.forEach(w);const A=[],D=h.rows.reduce((_,$)=>{A.push(_);const L=w($),F=L.content+L.spacingTop+L.spacingBottom+L.detail;return _+F},0);a.current||(s.current=1/0),e.current.setState(_=>E({},_,{rowsMeta:{currentPageTotalHeight:D,positions:A}})),l.current=!0},[e,m,h.rows,w]),g=A=>{var D;return((D=i.get(A))==null?void 0:D.content)??y},x=(A,D)=>{const _=e.current.getRowHeightEntry(A),$=_.content!==D;_.needsFirstMeasurement=!1,_.content=D,l.current&&(l.current=!$)},P=A=>{var D;return((D=i.get(A))==null?void 0:D.autoHeight)??!1},I=()=>s.current,T=A=>{a.current&&A>s.current&&(s.current=A)},M=()=>{i.clear(),b()},k=Vo(()=>new bbe(A=>{for(let D=0;D0?_.borderBoxSize[0].blockSize:_.contentRect.height,L=_.target.__mui_id;e.current.unstable_storeRowHeightMeasurement(L,$)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,S=(A,D)=>(A.__mui_id=D,k.observe(A),()=>k.unobserve(A));nP(e,"rowHeight",b),p.useEffect(()=>{b()},[u,d,f,b]);const R={unstable_getRowHeight:g,unstable_setLastMeasuredRowIndex:T,unstable_storeRowHeightMeasurement:x,resetRowHeights:M},O={hydrateRowsMeta:b,observeRowHeight:S,rowHasAutoHeight:P,getRowHeightEntry:C,getLastMeasuredRowIndex:I};Xe(e,R,"public"),Xe(e,O,"private")},xbe=e=>{const t=p.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=p.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Xe(e,{exportState:t,restoreState:n},"public")},Sbe=e=>{const t=p.useRef({}),n=(a,l)=>{var c;return(c=t.current[a])==null?void 0:c[l]},r=()=>{t.current={}},o=p.useCallback(({rowId:a,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let d=l;d1&&(d+=f.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},s={resetColSpan:r,calculateColSpan:o};Xe(e,i,"public"),Xe(e,s,"private"),Ie(e,"columnOrderChange",r)};function Pbe(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:s,columns:a}=e,l=a.length,c=a[r],u=t.current.getRow(o),d=t.current.getRowValue(u,c),f=typeof c.colSpan=="function"?c.colSpan(d,u,c,t):c.colSpan;if(!f||f===1)return a0(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let h=c.computedWidth;for(let m=1;m=i&&y{if(Lj(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` +`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{L5(i,[...t,r],n)})},EC=e=>{if(!e)return{};const t={};return e.forEach(n=>{L5(n,[],t)}),t},OC=(e,t,n)=>{const r=l=>t[l]??[],o=[],i=Math.max(...e.map(l=>r(l).length)),s=(l,c,u)=>$c(r(l).slice(0,u+1),r(c).slice(0,u+1)),a=(l,c)=>!!(n!=null&&n.left&&n.left.includes(l)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(l)&&n.right.includes(c));for(let l=0;l{const f=r(d)[l]??null;if(u.length===0)return[{columnFields:[d],groupId:f}];const h=u[u.length-1],m=h.columnFields[h.columnFields.length-1];return h.groupId!==f||!s(m,d,l)||a(m,d)?[...u,{columnFields:[d],groupId:f}]:[...u.slice(0,u.length-1),{columnFields:[...h.columnFields,d],groupId:f}]},[]);o.push(c)}return o},Ibe=["groupId","children"],rP=e=>{let t={};return e.forEach(n=>{if(Lj(n))return;const{groupId:r,children:o}=n,i=xe(n,Ibe);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const s=E({},i,{groupId:r}),a=rP(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=E({},t,a,{[r]:s})}),E({},t)},kbe=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=Wi(n),o=$u(n),i=rP(t.columnGroupingModel??[]),s=EC(t.columnGroupingModel??[]),a=OC(r,s,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>{var u;return((u=s[c])==null?void 0:u.length)??0}));return E({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:s,headerStructure:a,maxDepth:l}})},Tbe=(e,t)=>{const n=p.useCallback(a=>l5(e)[a]??[],[e]),r=p.useCallback(()=>c5(e),[e]);Xe(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=p.useCallback(()=>{const a=EC(t.columnGroupingModel??[]);e.current.setState(l=>{var f;const c=((f=l.columns)==null?void 0:f.orderedFields)??[],u=l.pinnedColumns??{},d=OC(c,a,u);return E({},l,{columnGrouping:E({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),s=p.useCallback(a=>{var y,C;const l=((C=(y=e.current).getPinnedColumns)==null?void 0:C.call(y))??{},c=Wi(e),u=$u(e),d=rP(a??[]),f=EC(a??[]),h=OC(c,f,l),m=u.length===0?0:Math.max(...u.map(w=>{var b;return((b=f[w])==null?void 0:b.length)??0}));e.current.setState(w=>E({},w,{columnGrouping:{lookup:d,unwrappedGroupingModel:f,headerStructure:h,maxDepth:m}}))},[e]);Ie(e,"columnIndexChange",i),Ie(e,"columnsChange",()=>{s(t.columnGroupingModel)}),Ie(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),p.useEffect(()=>{s(t.columnGroupingModel)},[s,t.columnGroupingModel])};function Ebe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function MO(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;nY1(e),r=ue(e,n);return p.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=Ebe()}return t.current}}function _be(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,l)=>a-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,s=i<5?5:i*t;return n.filter(a=>a>r-s&&a{const a=Yhe(e.current,i.field).map(m=>m.getBoundingClientRect().width??0),l=t.includeOutliers?a:_be(a,t.outliersFactor);if(t.includeHeaders){const m=qhe(e.current,i.field);if(m){const y=m.querySelector(`.${B.columnHeaderTitle}`),C=m.querySelector(`.${B.columnHeaderTitleContainerContent}`),w=m.querySelector(`.${B.iconButtonContainer}`),b=m.querySelector(`.${B.menuIcon}`),g=y??C,x=window.getComputedStyle(m,null),P=parseInt(x.paddingLeft,10)+parseInt(x.paddingRight,10),T=g.scrollWidth+1+P+((w==null?void 0:w.clientWidth)??0)+((b==null?void 0:b.clientWidth)??0);l.push(T)}}const c=i.minWidth!==-1/0&&i.minWidth!==void 0,u=i.maxWidth!==1/0&&i.maxWidth!==void 0,d=c?i.minWidth:0,f=u?i.maxWidth:1/0,h=l.length===0?0:Math.max(...l);r[i.field]=fi(h,d,f)}),o.classList.remove(B.autosizing),r}const Dbe=e=>E({},e,{columnResize:{resizingColumnField:""}});function Lbe(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Fbe=(e,t)=>{const n=Ir(),r=yn(e,"useGridColumnResize"),o=Vo(Lbe).current,i=p.useRef(),s=p.useRef(),a=uo(),l=p.useRef(),c=k=>{var $,L;r.debug(`Updating width to ${k} for col ${o.colDef.field}`);const S=o.columnHeaderElement.offsetWidth,R=k-S,O=k-o.initialColWidth,A=o.initialTotalWidth+O;(L=($=e.current.rootElementRef)==null?void 0:$.current)==null||L.style.setProperty("--DataGrid-rowWidth",`${A}px`),o.colDef.computedWidth=k,o.colDef.width=k,o.colDef.flex=0,o.columnHeaderElement.style.width=`${k}px`;const D=o.headerFilterElement;D&&(D.style.width=`${k}px`),o.groupHeaderElements.forEach(F=>{const j=F;let N;j.getAttribute("aria-colspan")==="1"?N=`${k}px`:N=`${j.offsetWidth+R}px`,j.style.width=N}),o.cellElements.forEach(F=>{const j=F;let N;j.getAttribute("aria-colspan")==="1"?N=`${k}px`:N=`${j.offsetWidth+R}px`,j.style.setProperty("--width",N)});const _=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);_===It.LEFT&&(zl(o.fillerLeft,"width",R),o.leftPinnedCellsAfter.forEach(F=>{zl(F,"left",R)}),o.leftPinnedHeadersAfter.forEach(F=>{zl(F,"left",R)})),_===It.RIGHT&&(zl(o.fillerRight,"width",R),o.rightPinnedCellsBefore.forEach(F=>{zl(F,"right",R)}),o.rightPinnedHeadersBefore.forEach(F=>{zl(F,"right",R)}))},u=k=>{if(w(),o.previousMouseClickEvent){const S=o.previousMouseClickEvent,R=S.timeStamp,O=S.clientX,A=S.clientY;if(k.timeStamp-R<300&&k.clientX===O&&k.clientY===A){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,k);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const S=di(e.current.state);o.groupHeaderElements.forEach(R=>{const O=zhe(R),A=R,_=`${O.reduce(($,L)=>S.columnVisibilityModel[L]!==!1?$+S.lookup[L].computedWidth:$,0)}px`;A.style.width=_})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,k)})},d=(k,S,R)=>{var _;const O=e.current.rootElementRef.current;o.initialColWidth=k.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=k,o.columnHeaderElement=Bhe(e.current.columnHeadersContainerRef.current,k.field);const A=O.querySelector(`.${B.headerFilterRow} [data-field="${us(k.field)}"]`);A&&(o.headerFilterElement=A),o.groupHeaderElements=Hhe((_=e.current.columnHeadersContainerRef)==null?void 0:_.current,k.field),o.cellElements=Vhe(o.columnHeaderElement,e.current),o.fillerLeft=rO(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=rO(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const D=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=D!==It.LEFT?[]:Uhe(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=D!==It.RIGHT?[]:Ghe(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=D!==It.LEFT?[]:Whe(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=D!==It.RIGHT?[]:Khe(e.current,o.columnHeaderElement,n),s.current=Rbe(S,n),i.current=Obe(R,o.columnHeaderElement.getBoundingClientRect(),s.current)},f=nt(u),h=nt(k=>{if(k.buttons===0){f(k);return}let S=RO(i.current,k.clientX,o.columnHeaderElement.getBoundingClientRect(),s.current);S=fi(S,o.colDef.minWidth,o.colDef.maxWidth),c(S);const R={element:o.columnHeaderElement,colDef:o.colDef,width:S};e.current.publishEvent("columnResize",R,k)}),m=nt(k=>{MO(k,l.current)&&u(k)}),y=nt(k=>{const S=MO(k,l.current);if(!S)return;if(k.type==="mousemove"&&k.buttons===0){m(k);return}let R=RO(i.current,S.x,o.columnHeaderElement.getBoundingClientRect(),s.current);R=fi(R,o.colDef.minWidth,o.colDef.maxWidth),c(R);const O={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",O,k)}),C=nt(k=>{const S=vg(k.target,B["columnSeparator--resizable"]);if(!S)return;const R=k.changedTouches[0];R!=null&&(l.current=R.identifier);const O=vg(k.target,B.columnHeader),A=Nhe(O),D=e.current.getColumn(A);r.debug(`Start Resize on col ${D.field}`),e.current.publishEvent("columnResizeStart",{field:A},k),d(D,S,R.clientX);const _=Wt(k.currentTarget);_.addEventListener("touchmove",y),_.addEventListener("touchend",m)}),w=p.useCallback(()=>{const k=Wt(e.current.rootElementRef.current);k.body.style.removeProperty("cursor"),k.removeEventListener("mousemove",h),k.removeEventListener("mouseup",f),k.removeEventListener("touchmove",y),k.removeEventListener("touchend",m),setTimeout(()=>{k.removeEventListener("click",$O,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,h,f,y,m]),b=p.useCallback(({field:k})=>{e.current.setState(S=>E({},S,{columnResize:E({},S.columnResize,{resizingColumnField:k})})),e.current.forceUpdate()},[e]),g=p.useCallback(()=>{e.current.setState(k=>E({},k,{columnResize:E({},k.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),x=nt(({colDef:k},S)=>{if(S.button!==0||!S.currentTarget.classList.contains(B["columnSeparator--resizable"]))return;S.preventDefault(),r.debug(`Start Resize on col ${k.field}`),e.current.publishEvent("columnResizeStart",{field:k.field},S),d(k,S.currentTarget,S.clientX);const R=Wt(e.current.rootElementRef.current);R.body.style.cursor="col-resize",o.previousMouseClickEvent=S.nativeEvent,R.addEventListener("mousemove",h),R.addEventListener("mouseup",f),R.addEventListener("click",$O,!0)}),P=nt((k,S)=>{if(t.disableAutosize||S.button!==0)return;const R=e.current.state.columns.lookup[k.field];R.resizable!==!1&&e.current.autosizeColumns(E({},t.autosizeOptions,{columns:[R.field]}))}),I=$be(e),T=p.useRef(!1),M=p.useCallback(async k=>{var D;if(!((D=e.current.rootElementRef)==null?void 0:D.current)||T.current)return;T.current=!0;const R=di(e.current.state),O=E({},khe,k,{columns:(k==null?void 0:k.columns)??R.orderedFields});O.columns=O.columns.filter(_=>R.columnVisibilityModel[_]!==!1);const A=O.columns.map(_=>e.current.state.columns.lookup[_]);try{e.current.unstable_setColumnVirtualization(!1),await I();const _=Abe(e,O,A),$=A.map(L=>E({},L,{width:_[L.field],computedWidth:_[L.field]}));if(O.expand){const F=R.orderedFields.map(z=>R.lookup[z]).filter(z=>R.columnVisibilityModel[z.field]!==!1).reduce((z,V)=>z+(_[V.field]??V.computedWidth??V.width),0),N=e.current.getRootDimensions().viewportInnerSize.width-F;if(N>0){const z=N/($.length||1);$.forEach(V=>{V.width+=z,V.computedWidth+=z})}}e.current.updateColumns($),$.forEach((L,F)=>{if(L.width!==A[F].width){const j=L.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(L.field),colDef:L,width:j})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,I]);p.useEffect(()=>w,[w]),fv(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Zj(e,()=>{var k;return(k=e.current.columnHeadersContainerRef)==null?void 0:k.current},"touchstart",C,{passive:!0}),Xe(e,{autosizeColumns:M},"public"),Ie(e,"columnResizeStop",g),Ie(e,"columnResizeStart",b),Ie(e,"columnSeparatorMouseDown",x),Ie(e,"columnSeparatorDoubleClick",P),Pt(e,"columnResize",t.onColumnResize),Pt(e,"columnWidthChange",t.onColumnWidthChange)};function zl(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function jbe(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},wg={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Wd={firstRowIndex:0,lastRowIndex:0},Bbe=new Set([Ei,"__reorder__",sy]),F5=20,j5=(e,t,n,r,o,i,s)=>{const a=i?{}:E({},e.current.state.rowSpanning.spannedCells),l=i?{}:E({},e.current.state.rowSpanning.hiddenCells),c=i?{}:E({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(s=Wd),t.forEach(u=>{var d;if(!Bbe.has(u.field)){for(let f=o.firstRowIndex;f<=o.lastRowIndex;f+=1){const h=n[f];if((d=l[h.id])!=null&&d[u.field])continue;const m=l0(h.model,u,e);if(m==null)continue;let y=h.id,C=f,w=0;const b=[];if(f===o.firstRowIndex){let x=f-1;const P=n[x];for(;x>=r.firstRowIndex&&l0(P.model,u,e)===m;){const I=n[x+1];l[I.id]?l[I.id][u.field]=!0:l[I.id]={[u.field]:!0},b.push(f),w+=1,y=P.id,C=x,x-=1}}b.forEach(x=>{c[x]?c[x][u.field]=C:c[x]={[u.field]:C}});let g=f+1;for(;g<=r.lastRowIndex&&n[g]&&l0(n[g].model,u,e)===m;){const x=n[g];l[x.id]?l[x.id][u.field]=!0:l[x.id]={[u.field]:!0},c[g]?c[g][u.field]=C:c[g]={[u.field]:C},g+=1,w+=1}w>0&&(a[y]?a[y][u.field]=w+1:a[y]={[u.field]:w+1})}s={firstRowIndex:Math.min(s.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(s.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:l,hiddenCellOriginMap:c,processedRange:s}},zbe=(e,t,n)=>{var r;if(t.unstable_rowSpanning){const o=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((r=e.filter.filterModel.quickFilterValues)!=null&&r.length);if(!o.length||!i.length||!s||!a||l)return E({},e,{rowSpanning:wg});const c={firstRowIndex:0,lastRowIndex:Math.min(F5-1,Math.max(o.length-1,0))},u=o.map(y=>({id:y,model:s[y]})),d=i.map(y=>a[y]),{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:m}=j5(n,d,u,c,c,!0,Wd);return E({},e,{rowSpanning:{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:m}})}return E({},e,{rowSpanning:wg})},Hbe=(e,t)=>{const{range:n,rows:r}=ha(e,t),o=ue(e,py),i=ue(e,mn),s=Vo(()=>Object.keys(e.current.state.rowSpanning.spannedCells).length>0?{firstRowIndex:0,lastRowIndex:Math.min(F5-1,Math.max(e.current.state.rows.dataRowIds.length-1,0))}:Wd),a=p.useRef(Wd),l=p.useCallback((f=!0)=>{if(!t.unstable_rowSpanning){e.current.state.rowSpanning!==wg&&e.current.setState(T=>E({},T,{rowSpanning:wg}));return}if(n===null||!Nbe(o))return;f&&(s.current=Wd);const h=jbe({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex-1,n.lastRowIndex)},s.current);if(h===null)return;const{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:C,processedRange:w}=j5(e,i,r,n,h,f,s.current);s.current=w;const b=Object.keys(m).length,g=Object.keys(y).length,x=Object.keys(e.current.state.rowSpanning.spannedCells).length,P=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(f||b!==x||g!==P)&&e.current.setState(T=>E({},T,{rowSpanning:{spannedCells:m,hiddenCells:y,hiddenCellOriginMap:C}}))},[e,t.unstable_rowSpanning,n,o,r,i,s]),c=p.useRef(o),u=p.useRef(!0),d=p.useRef(!1);p.useEffect(()=>{const f=u.current;if(u.current&&(u.current=!1),n&&a.current&&_O(n,a.current)&&(a.current=n,d.current=!0),!f&&c.current!==o){_O(c.current,o)&&(l(d.current),d.current=!1),c.current=o;return}l()},[l,o,n,a])},Vbe=(e,t,n)=>E({},e,{listViewColumn:t.unstable_listColumn?E({},t.unstable_listColumn,{computedWidth:MC(n)}):void 0});function Ube(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?E({},i,{listViewColumn:E({},i.listViewColumn,{computedWidth:MC(e)})}):i)},r=p.useRef(null);Ie(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Ie(e,"columnVisibilityModelChange",n),p.useEffect(()=>{const i=t.unstable_listColumn;i&&e.current.setState(s=>E({},s,{listViewColumn:E({},i,{computedWidth:MC(e)})}))},[e,t.unstable_listColumn]),p.useEffect(()=>{t.unstable_listView&&t.unstable_listColumn},[t.unstable_listView,t.unstable_listColumn])}function MC(e){return _n(e.current.state).viewportInnerSize.width}const Gbe=(e,t)=>{const n=uye(e,t);return lbe(n,t),obe(n),bn(mbe,n,t),bn(ibe,n,t),bn(yye,n,t),bn(Zye,n,t),bn(Qye,n,t),bn($ye,n,t),bn(cbe,n,t),bn(Vye,n,t),bn(Eye,n,t),bn(zbe,n,t),bn(wye,n,t),bn(Dbe,n,t),bn(zye,n,t),bn(wbe,n,t),bn(gye,n,t),bn(kbe,n,t),bn(Npe,n,t),bn(Vbe,n,t),jye(n,t),sbe(n,t),bye(n,t),ebe(n,t),Hbe(n,t),Xhe(n,t),Sbe(n),Tbe(n,t),Jye(n,t),_ye(n,t),Uye(n,t),Rye(n,t),ube(n,t),Cye(n,t),Fbe(n,t),Hye(n,t),Cbe(n,t),dbe(n,t),vye(n),Sye(n,t),Tye(n,t),mye(n,t),gbe(n,t),fbe(n,t),xbe(n),Bpe(n,t),Ube(n,t),n},Wbe=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:s,groupId:a,pinnedPosition:l}=e;return ye({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",s&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l==="left"&&"columnHeader--pinnedLeft",l==="right"&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},rt,t)};function Kbe(e){var z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:s,colIndex:a,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,style:f,indexInSection:h,sectionLength:m,gridHasFiller:y}=e,C=Me(),w=p.useRef(null),b=et(),g=ue(b,c5),x=t?g[t]:{},{headerName:P=t??"",description:I="",headerAlign:T=void 0}=x;let M;const k=t&&((z=g[t])==null?void 0:z.renderHeaderGroup),S=p.useMemo(()=>({groupId:t,headerName:P,description:I,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:u}),[t,P,I,r,o,i,a,u]);t&&k&&(M=k(S));const R=my(d,h),O=hy(d,h,m,C.showColumnVerticalBorder,y),A=E({},e,{classes:C.classes,showLeftBorder:R,showRightBorder:O,headerAlign:T,depth:r,isDragging:!1}),D=P??t,_=yt(),$=t===null?`empty-group-cell-${_}`:t,L=Wbe(A);p.useLayoutEffect(()=>{if(l){const K=w.current.querySelector('[tabindex="0"]')||w.current;K==null||K.focus()}},[b,l]);const F=p.useCallback(V=>K=>{vp(K)||b.current.publishEvent(V,S,K)},[b,S]),j=p.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),N=typeof x.headerClassName=="function"?x.headerClassName(S):x.headerClassName;return v.jsx(I5,E({ref:w,classes:L,columnMenuOpen:!1,colIndex:a,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:M,headerClassName:N,description:I,elementId:$,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:D,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},j))}const AO=ne("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),qbe=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:s,columnGroupHeaderFocus:a,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:f}=e,[h,m]=p.useState(""),[y,C]=p.useState(""),w=To(),b=Ir(),g=Me(),x=ue(w,_n),P=ue(w,Y1),I=ue(w,l5),T=ue(w,fa),M=ue(w,jpe),k=ue(w,pp),S=ue(w,cs),R=h5(T,M,k.left.length),O=x.columnsTotalWidth{w.current.columnHeadersContainerRef.current&&(w.current.columnHeadersContainerRef.current.scrollLeft=0)},[w]);const A=p.useCallback(q=>C(q.field),[]),D=p.useCallback(()=>C(""),[]),_=p.useCallback(q=>m(q.field),[]),$=p.useCallback(()=>m(""),[]),L=p.useMemo(()=>k.left.length?{firstColumnIndex:0,lastColumnIndex:k.left.length}:null,[k.left.length]),F=p.useMemo(()=>k.right.length?{firstColumnIndex:t.length-k.right.length,lastColumnIndex:t.length}:null,[k.right.length,t.length]);Ie(w,"columnResizeStart",A),Ie(w,"columnResizeStop",D),Ie(w,"columnHeaderDragStart",_),Ie(w,"columnHeaderDragEnd",$);const j=q=>{const{renderContext:ee=M,maxLastColumn:W=t.length}=q||{},Z=ee.firstColumnIndex,U=P?ee.lastColumnIndex:W;return{renderedColumns:t.slice(Z,U),firstColumnToRender:Z,lastColumnToRender:U}},N=(q,ee,W,Z=!1)=>{const U=(q==null?void 0:q.position)===It.RIGHT,J=(q==null?void 0:q.position)===void 0,X=k.right.length>0&&U||k.right.length===0&&J,ae=R-W;return v.jsxs(p.Fragment,{children:[J&&v.jsx("div",{role:"presentation",style:{width:ae}}),ee,J&&v.jsx("div",{role:"presentation",className:ie(B.filler,Z&&B["filler--borderBottom"])}),X&&v.jsx(eP,{header:!0,pinnedRight:U,borderBottom:Z,borderTop:!1})]})},z=({pinnedPosition:q,columnIndex:ee,computedWidth:W})=>{let Z;const U=q===It.LEFT,J=q===It.RIGHT;if(U||J){const X=Z1(q,W,ee,T,x);let ae=U?"left":"right";b&&(ae=U?"right":"left"),q==="left"&&(Z={[ae]:X}),q==="right"&&(Z={[ae]:X})}return Z},V=(q,ee={})=>{const{renderedColumns:W,firstColumnToRender:Z}=j(q),U=[];for(let J=0;Jv.jsxs(AO,{role:"row","aria-rowindex":l+1,ownerState:g,className:B["row--borderBottom"],children:[L&&V({position:It.LEFT,renderContext:L,maxLastColumn:L.lastColumnIndex},{disableReorder:!0}),V({renderContext:M,maxLastColumn:t.length-k.right.length}),F&&V({position:It.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex},{disableReorder:!0,separatorSide:J1.Left})]}),H=({depth:q,params:ee})=>{var oe,de;const W=j(ee);if(W.renderedColumns.length===0)return null;const{firstColumnToRender:Z,lastColumnToRender:U}=W,J=d[q],X=t[Z].field,ae=((oe=I[X])==null?void 0:oe[q])??null,fe=J.findIndex(({groupId:ve,columnFields:Se})=>ve===ae&&Se.includes(X)),me=t[U-1].field,he=((de=I[me])==null?void 0:de[q])??null,je=J.findIndex(({groupId:ve,columnFields:Se})=>ve===he&&Se.includes(me)),ge=J.slice(fe,je+1).map(ve=>E({},ve,{columnFields:ve.columnFields.filter(Se=>u[Se]!==!1)})).filter(ve=>ve.columnFields.length>0),Ae=ge[0].columnFields.indexOf(X),De=ge[0].columnFields.slice(0,Ae).reduce((ve,Se)=>{const Ee=S[Se];return ve+(Ee.computedWidth??0)},0);let Q=Z;const te=ge.map(({groupId:ve,columnFields:Se},Ee)=>{const Oe=a!==null&&a.depth===q&&Se.includes(a.field),Ce=i!==null&&i.depth===q&&Se.includes(i.field)?0:-1,we={groupId:ve,width:Se.reduce((ke,Ke)=>ke+S[Ke].computedWidth,0),fields:Se,colIndex:Q,hasFocus:Oe,tabIndex:Ce},Le=ee.position,lt=z({pinnedPosition:Le,columnIndex:Q,computedWidth:we.width});Q+=Se.length;let pe=Ee;return Le==="left"&&(pe=Q-1),v.jsx(Kbe,{groupId:ve,width:we.width,fields:we.fields,colIndex:we.colIndex,depth:q,isLastColumn:we.colIndex===t.length-we.fields.length,maxDepth:l,height:x.groupHeaderHeight,hasFocus:Oe,tabIndex:Ce,pinnedPosition:Le,style:lt,indexInSection:pe,sectionLength:J.length,gridHasFiller:O},Ee)});return N(ee,te,De)};return{renderContext:M,leftRenderContext:L,rightRenderContext:F,pinnedColumns:k,visibleColumns:t,getCellOffsetStyle:z,getFillers:N,getColumnHeadersRow:K,getColumnsToRender:j,getColumnGroupHeadersRows:()=>{if(l===0)return null;const q=[];for(let ee=0;ee({role:"rowgroup"})}},Ybe=["className"],Xbe=e=>{const{classes:t}=e;return ye({root:["columnHeaders"]},rt,t)},Qbe=Ct("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Jbe=p.forwardRef(function(t,n){const{className:r}=t,o=xe(t,Ybe),i=Me(),s=Xbe(i);return v.jsx(Qbe,E({ref:n,className:ie(s.root,r),ownerState:i},o,{role:"presentation"}))}),Zbe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],e0e=p.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=t,y=xe(t,Zbe),{getInnerProps:C,getColumnHeadersRow:w,getColumnGroupHeadersRows:b}=qbe({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m});return v.jsxs(Jbe,E({ref:n},y,C(),{children:[b(),w()]}))}),t0e=da(e0e);function n0e(e){return null}function r0e(e){return null}const o0e=p.forwardRef(function(t,n){const o=et().current.getLocaleText("noResultsOverlayLabel");return v.jsx(Q1,E({ref:n},t,{children:o}))}),i0e=["sortingOrder"],s0e=p.memo(function(t){const{sortingOrder:n}=t,r=xe(t,i0e),o=Me(),[i]=n,s=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?v.jsx(s,E({},r)):null}),a0e=["native"];function l0e(e){let{native:t}=e,n=xe(e,a0e);return t?v.jsx("option",E({},n)):v.jsx(Mn,E({},n))}const c0e={booleanCellTrueIcon:cge,booleanCellFalseIcon:o0,columnMenuIcon:ige,openFilterButtonIcon:Jme,filterPanelDeleteIcon:o0,columnFilteredIcon:pO,columnSelectorIcon:ege,columnUnsortedIcon:s0e,columnSortedAscendingIcon:cO,columnSortedDescendingIcon:uO,columnResizeIcon:tge,densityCompactIcon:nge,densityStandardIcon:rge,densityComfortableIcon:oge,exportIcon:lge,moreActionsIcon:uge,treeDataCollapseIcon:fO,treeDataExpandIcon:dO,groupingCriteriaCollapseIcon:fO,groupingCriteriaExpandIcon:dO,detailPanelExpandIcon:hO,detailPanelCollapseIcon:sge,rowReorderIcon:mO,quickFilterIcon:Zme,quickFilterClearIcon:o0,columnMenuHideIcon:dge,columnMenuSortAscendingIcon:cO,columnMenuSortDescendingIcon:uO,columnMenuFilterIcon:pO,columnMenuManageColumnsIcon:fge,columnMenuClearIcon:pge,loadIcon:age,filterPanelAddIcon:hO,filterPanelRemoveAllIcon:hge,columnReorderIcon:mO},u0e=E({},c0e,{baseBadge:Pne,baseCheckbox:Wne,baseDivider:Ja,baseTextField:Ls,baseFormControl:fc,baseSelect:nu,baseButton:mr,baseIconButton:an,baseInputAdornment:Zre,baseTooltip:wF,basePopper:gl,baseInputLabel:Ym,baseSelectOption:l0e,baseChip:Ni}),d0e=E({},u0e,{cell:tme,skeletonCell:lme,columnHeaderFilterIconButton:Qme,columnHeaderSortIcon:Yme,columnMenu:$ge,columnHeaders:t0e,detailPanels:n0e,footer:Pve,footerRowCount:zve,toolbar:null,pinnedRows:r0e,loadingOverlay:$ve,noResultsOverlay:o0e,noRowsOverlay:_ve,pagination:Fve,filterPanel:mve,columnsPanel:Uge,columnsManagement:M5,panel:Yge,row:Wve});function f0e({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=E({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function p0e(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;op0e(e),[e])}const m0e={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},g0e=d0e,v0e=e=>{const t=h0e(Q6({props:e,name:"MuiDataGrid"})),n=p.useMemo(()=>E({},$ue,t.localeText),[t.localeText]),r=p.useMemo(()=>f0e({defaultSlots:g0e,slots:t.slots}),[t.slots]),o=p.useMemo(()=>Object.keys(TC).reduce((i,s)=>(i[s]=t[s]??TC[s],i),{}),[t]);return p.useMemo(()=>E({},t,o,{localeText:n,slots:r},m0e),[t,n,r,o])},y0e={hooks:{useGridAriaAttributes:Kve,useGridRowAriaAttributes:qve}},N5=p.forwardRef(function(t,n){const r=v0e(t),o=Gbe(r.apiRef,r);return v.jsx(Yve,{privateApiRef:o,configuration:y0e,props:r,children:v.jsxs(yme,E({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[v.jsx(kve,{}),v.jsx($he,{}),v.jsx(_he,{})]}))})}),b0e=p.memo(N5);N5.propTypes={apiRef:Y.shape({current:Y.object.isRequired}),"aria-label":Y.string,"aria-labelledby":Y.string,autoHeight:Y.bool,autoPageSize:Y.bool,autosizeOnMount:Y.bool,autosizeOptions:Y.shape({columns:Y.arrayOf(Y.string),expand:Y.bool,includeHeaders:Y.bool,includeOutliers:Y.bool,outliersFactor:Y.number}),cellModesModel:Y.object,checkboxSelection:Y.bool,classes:Y.object,clipboardCopyCellDelimiter:Y.string,columnBufferPx:Y.number,columnGroupHeaderHeight:Y.number,columnGroupingModel:Y.arrayOf(Y.object),columnHeaderHeight:Y.number,columns:Y.arrayOf(Y.object).isRequired,columnVisibilityModel:Y.object,density:Y.oneOf(["comfortable","compact","standard"]),disableAutosize:Y.bool,disableColumnFilter:Y.bool,disableColumnMenu:Y.bool,disableColumnResize:Y.bool,disableColumnSelector:Y.bool,disableColumnSorting:Y.bool,disableDensitySelector:Y.bool,disableEval:Y.bool,disableMultipleRowSelection:Y.bool,disableRowSelectionOnClick:Y.bool,disableVirtualization:Y.bool,editMode:Y.oneOf(["cell","row"]),estimatedRowCount:Y.number,experimentalFeatures:Y.shape({warnIfFocusStateIsNotSynced:Y.bool}),filterDebounceMs:Y.number,filterMode:Y.oneOf(["client","server"]),filterModel:Y.shape({items:Y.arrayOf(Y.shape({field:Y.string.isRequired,id:Y.oneOfType([Y.number,Y.string]),operator:Y.string.isRequired,value:Y.any})).isRequired,logicOperator:Y.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Y.bool,quickFilterLogicOperator:Y.oneOf(["and","or"]),quickFilterValues:Y.array}),forwardedProps:Y.object,getCellClassName:Y.func,getDetailPanelContent:Y.func,getEstimatedRowHeight:Y.func,getRowClassName:Y.func,getRowHeight:Y.func,getRowId:Y.func,getRowSpacing:Y.func,hideFooter:Y.bool,hideFooterPagination:Y.bool,hideFooterSelectedRowCount:Y.bool,ignoreDiacritics:Y.bool,ignoreValueFormatterDuringExport:Y.oneOfType([Y.shape({clipboardExport:Y.bool,csvExport:Y.bool}),Y.bool]),indeterminateCheckboxAction:Y.oneOf(["deselect","select"]),initialState:Y.object,isCellEditable:Y.func,isRowSelectable:Y.func,keepNonExistentRowsSelected:Y.bool,loading:Y.bool,localeText:Y.object,logger:Y.shape({debug:Y.func.isRequired,error:Y.func.isRequired,info:Y.func.isRequired,warn:Y.func.isRequired}),logLevel:Y.oneOf(["debug","error","info","warn",!1]),nonce:Y.string,onCellClick:Y.func,onCellDoubleClick:Y.func,onCellEditStart:Y.func,onCellEditStop:Y.func,onCellKeyDown:Y.func,onCellModesModelChange:Y.func,onClipboardCopy:Y.func,onColumnHeaderClick:Y.func,onColumnHeaderContextMenu:Y.func,onColumnHeaderDoubleClick:Y.func,onColumnHeaderEnter:Y.func,onColumnHeaderLeave:Y.func,onColumnHeaderOut:Y.func,onColumnHeaderOver:Y.func,onColumnOrderChange:Y.func,onColumnResize:Y.func,onColumnVisibilityModelChange:Y.func,onColumnWidthChange:Y.func,onDensityChange:Y.func,onFilterModelChange:Y.func,onMenuClose:Y.func,onMenuOpen:Y.func,onPaginationMetaChange:Y.func,onPaginationModelChange:Y.func,onPreferencePanelClose:Y.func,onPreferencePanelOpen:Y.func,onProcessRowUpdateError:Y.func,onResize:Y.func,onRowClick:Y.func,onRowCountChange:Y.func,onRowDoubleClick:Y.func,onRowEditStart:Y.func,onRowEditStop:Y.func,onRowModesModelChange:Y.func,onRowSelectionModelChange:Y.func,onSortModelChange:Y.func,onStateChange:Y.func,pageSizeOptions:Y.arrayOf(Y.oneOfType([Y.number,Y.shape({label:Y.string.isRequired,value:Y.number.isRequired})]).isRequired),pagination:Y.oneOf([!0]),paginationMeta:Y.shape({hasNextPage:Y.bool}),paginationMode:Y.oneOf(["client","server"]),paginationModel:Y.shape({page:Y.number.isRequired,pageSize:Y.number.isRequired}),processRowUpdate:Y.func,resizeThrottleMs:Y.number,rowBufferPx:Y.number,rowCount:Y.number,rowHeight:Y.number,rowModesModel:Y.object,rowPositionsDebounceMs:Y.number,rows:Y.arrayOf(Y.object),rowSelection:Y.bool,rowSelectionModel:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.number,Y.string]).isRequired),Y.number,Y.string]),rowSpacingType:Y.oneOf(["border","margin"]),scrollbarSize:Y.number,showCellVerticalBorder:Y.bool,showColumnVerticalBorder:Y.bool,slotProps:Y.object,slots:Y.object,sortingMode:Y.oneOf(["client","server"]),sortingOrder:Y.arrayOf(Y.oneOf(["asc","desc"])),sortModel:Y.arrayOf(Y.shape({field:Y.string.isRequired,sort:Y.oneOf(["asc","desc"])})),sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),unstable_rowSpanning:Y.bool};var w0e=function(t){return C0e(t)&&!x0e(t)};function C0e(e){return!!e&&typeof e=="object"}function x0e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||I0e(e)}var S0e=typeof Symbol=="function"&&Symbol.for,P0e=S0e?Symbol.for("react.element"):60103;function I0e(e){return e.$$typeof===P0e}function k0e(e){return Array.isArray(e)?[]:{}}function Cg(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ff(k0e(e),e,t):e}function T0e(e,t,n){return e.concat(t).map(function(r){return Cg(r,n)})}function E0e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Cg(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Cg(t[o],n):r[o]=Ff(e[o],t[o],n)}),r}function Ff(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||T0e,n.isMergeableObject=n.isMergeableObject||w0e;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):E0e(e,t,n):Cg(t,n)}Ff.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Ff(r,o,n)},{})};var RC=Ff,B5=typeof global=="object"&&global&&global.Object===Object&&global,O0e=typeof self=="object"&&self&&self.Object===Object&&self,Ci=B5||O0e||Function("return this")(),ra=Ci.Symbol,z5=Object.prototype,M0e=z5.hasOwnProperty,R0e=z5.toString,fd=ra?ra.toStringTag:void 0;function $0e(e){var t=M0e.call(e,fd),n=e[fd];try{e[fd]=void 0;var r=!0}catch{}var o=R0e.call(e);return r&&(t?e[fd]=n:delete e[fd]),o}var _0e=Object.prototype,A0e=_0e.toString;function D0e(e){return A0e.call(e)}var L0e="[object Null]",F0e="[object Undefined]",DO=ra?ra.toStringTag:void 0;function wl(e){return e==null?e===void 0?F0e:L0e:DO&&DO in Object(e)?$0e(e):D0e(e)}function H5(e,t){return function(n){return e(t(n))}}var oP=H5(Object.getPrototypeOf,Object);function Cl(e){return e!=null&&typeof e=="object"}var j0e="[object Object]",N0e=Function.prototype,B0e=Object.prototype,V5=N0e.toString,z0e=B0e.hasOwnProperty,H0e=V5.call(Object);function LO(e){if(!Cl(e)||wl(e)!=j0e)return!1;var t=oP(e);if(t===null)return!0;var n=z0e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&V5.call(n)==H0e}function V0e(){this.__data__=[],this.size=0}function U5(e,t){return e===t||e!==e&&t!==t}function gy(e,t){for(var n=e.length;n--;)if(U5(e[n][0],t))return n;return-1}var U0e=Array.prototype,G0e=U0e.splice;function W0e(e){var t=this.__data__,n=gy(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():G0e.call(t,n,1),--this.size,!0}function K0e(e){var t=this.__data__,n=gy(t,e);return n<0?void 0:t[n][1]}function q0e(e){return gy(this.__data__,e)>-1}function Y0e(e,t){var n=this.__data__,r=gy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Ywe}var Xwe="[object Arguments]",Qwe="[object Array]",Jwe="[object Boolean]",Zwe="[object Date]",eCe="[object Error]",tCe="[object Function]",nCe="[object Map]",rCe="[object Number]",oCe="[object Object]",iCe="[object RegExp]",sCe="[object Set]",aCe="[object String]",lCe="[object WeakMap]",cCe="[object ArrayBuffer]",uCe="[object DataView]",dCe="[object Float32Array]",fCe="[object Float64Array]",pCe="[object Int8Array]",hCe="[object Int16Array]",mCe="[object Int32Array]",gCe="[object Uint8Array]",vCe="[object Uint8ClampedArray]",yCe="[object Uint16Array]",bCe="[object Uint32Array]",At={};At[dCe]=At[fCe]=At[pCe]=At[hCe]=At[mCe]=At[gCe]=At[vCe]=At[yCe]=At[bCe]=!0;At[Xwe]=At[Qwe]=At[cCe]=At[Jwe]=At[uCe]=At[Zwe]=At[eCe]=At[tCe]=At[nCe]=At[rCe]=At[oCe]=At[iCe]=At[sCe]=At[aCe]=At[lCe]=!1;function wCe(e){return Cl(e)&&Q5(e.length)&&!!At[wl(e)]}function iP(e){return function(t){return e(t)}}var J5=typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,Kd=J5&&typeof jr=="object"&&jr&&!jr.nodeType&&jr,CCe=Kd&&Kd.exports===J5,u0=CCe&&B5.process,pu=function(){try{var e=Kd&&Kd.require&&Kd.require("util").types;return e||u0&&u0.binding&&u0.binding("util")}catch{}}(),HO=pu&&pu.isTypedArray,xCe=HO?iP(HO):wCe,SCe=Object.prototype,PCe=SCe.hasOwnProperty;function Z5(e,t){var n=bp(e),r=!n&&Hwe(e),o=!n&&!r&&X5(e),i=!n&&!r&&!o&&xCe(e),s=n||r||o||i,a=s?jwe(e.length,String):[],l=a.length;for(var c in e)(t||PCe.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qwe(c,l)))&&a.push(c);return a}var ICe=Object.prototype;function sP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ICe;return e===n}var kCe=H5(Object.keys,Object),TCe=Object.prototype,ECe=TCe.hasOwnProperty;function OCe(e){if(!sP(e))return kCe(e);var t=[];for(var n in Object(e))ECe.call(e,n)&&n!="constructor"&&t.push(n);return t}function eN(e){return e!=null&&Q5(e.length)&&!G5(e)}function aP(e){return eN(e)?Z5(e):OCe(e)}function MCe(e,t){return e&&yy(t,aP(t),e)}function RCe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $Ce=Object.prototype,_Ce=$Ce.hasOwnProperty;function ACe(e){if(!yp(e))return RCe(e);var t=sP(e),n=[];for(var r in e)r=="constructor"&&(t||!_Ce.call(e,r))||n.push(r);return n}function lP(e){return eN(e)?Z5(e,!0):ACe(e)}function DCe(e,t){return e&&yy(t,lP(t),e)}var tN=typeof Fr=="object"&&Fr&&!Fr.nodeType&&Fr,VO=tN&&typeof jr=="object"&&jr&&!jr.nodeType&&jr,LCe=VO&&VO.exports===tN,UO=LCe?Ci.Buffer:void 0,GO=UO?UO.allocUnsafe:void 0;function FCe(e,t){if(t)return e.slice();var n=e.length,r=GO?GO(n):new e.constructor(n);return e.copy(r),r}function nN(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}var by=p.createContext(void 0);by.displayName="FormikContext";by.Provider;by.Consumer;function SSe(){var e=p.useContext(by);return e}var Mo=function(t){return typeof t=="function"},wy=function(t){return t!==null&&typeof t=="object"},PSe=function(t){return String(Math.floor(Number(t)))===t},d0=function(t){return Object.prototype.toString.call(t)==="[object String]"},f0=function(t){return wy(t)&&Mo(t.then)};function Er(e,t,n,r){r===void 0&&(r=0);for(var o=fN(t);e&&r=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function hN(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?te.map(function(de){return S(de,Er(Q,de))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(oe).then(function(de){return de.reduce(function(ve,Se,Ee){return Se==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Se&&(ve=Ua(ve,te[Ee],Se)),ve},{})})},[S]),O=p.useCallback(function(Q){return Promise.all([R(Q),f.validationSchema?k(Q):{},f.validate?M(Q):{}]).then(function(te){var oe=te[0],de=te[1],ve=te[2],Se=RC.all([oe,de,ve],{arrayMerge:OSe});return Se})},[f.validate,f.validationSchema,R,M,k]),A=Qr(function(Q){return Q===void 0&&(Q=I.values),T({type:"SET_ISVALIDATING",payload:!0}),O(Q).then(function(te){return w.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:te})),te})});p.useEffect(function(){s&&w.current===!0&&Ta(h.current,f.initialValues)&&A(h.current)},[s,A]);var D=p.useCallback(function(Q){var te=Q&&Q.values?Q.values:h.current,oe=Q&&Q.errors?Q.errors:m.current?m.current:f.initialErrors||{},de=Q&&Q.touched?Q.touched:y.current?y.current:f.initialTouched||{},ve=Q&&Q.status?Q.status:C.current?C.current:f.initialStatus;h.current=te,m.current=oe,y.current=de,C.current=ve;var Se=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!Q&&!!Q.isSubmitting,errors:oe,touched:de,status:ve,values:te,isValidating:!!Q&&!!Q.isValidating,submitCount:Q&&Q.submitCount&&typeof Q.submitCount=="number"?Q.submitCount:0}})};if(f.onReset){var Ee=f.onReset(I.values,ae);f0(Ee)?Ee.then(Se):Se()}else Se()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);p.useEffect(function(){w.current===!0&&!Ta(h.current,f.initialValues)&&c&&(h.current=f.initialValues,D(),s&&A(h.current))},[c,f.initialValues,D,s,A]),p.useEffect(function(){c&&w.current===!0&&!Ta(m.current,f.initialErrors)&&(m.current=f.initialErrors||ba,T({type:"SET_ERRORS",payload:f.initialErrors||ba}))},[c,f.initialErrors]),p.useEffect(function(){c&&w.current===!0&&!Ta(y.current,f.initialTouched)&&(y.current=f.initialTouched||fh,T({type:"SET_TOUCHED",payload:f.initialTouched||fh}))},[c,f.initialTouched]),p.useEffect(function(){c&&w.current===!0&&!Ta(C.current,f.initialStatus)&&(C.current=f.initialStatus,T({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var _=Qr(function(Q){if(b.current[Q]&&Mo(b.current[Q].validate)){var te=Er(I.values,Q),oe=b.current[Q].validate(te);return f0(oe)?(T({type:"SET_ISVALIDATING",payload:!0}),oe.then(function(de){return de}).then(function(de){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:de}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:Q,value:oe}}),Promise.resolve(oe))}else if(f.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),k(I.values,Q).then(function(de){return de}).then(function(de){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:Er(de,Q)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),$=p.useCallback(function(Q,te){var oe=te.validate;b.current[Q]={validate:oe}},[]),L=p.useCallback(function(Q){delete b.current[Q]},[]),F=Qr(function(Q,te){T({type:"SET_TOUCHED",payload:Q});var oe=te===void 0?o:te;return oe?A(I.values):Promise.resolve()}),j=p.useCallback(function(Q){T({type:"SET_ERRORS",payload:Q})},[]),N=Qr(function(Q,te){var oe=Mo(Q)?Q(I.values):Q;T({type:"SET_VALUES",payload:oe});var de=te===void 0?n:te;return de?A(oe):Promise.resolve()}),z=p.useCallback(function(Q,te){T({type:"SET_FIELD_ERROR",payload:{field:Q,value:te}})},[]),V=Qr(function(Q,te,oe){T({type:"SET_FIELD_VALUE",payload:{field:Q,value:te}});var de=oe===void 0?n:oe;return de?A(Ua(I.values,Q,te)):Promise.resolve()}),K=p.useCallback(function(Q,te){var oe=te,de=Q,ve;if(!d0(Q)){Q.persist&&Q.persist();var Se=Q.target?Q.target:Q.currentTarget,Ee=Se.type,Oe=Se.name,Ce=Se.id,we=Se.value,Le=Se.checked,lt=Se.outerHTML,pe=Se.options,ke=Se.multiple;oe=te||Oe||Ce,de=/number|range/.test(Ee)?(ve=parseFloat(we),isNaN(ve)?"":ve):/checkbox/.test(Ee)?RSe(Er(I.values,oe),Le,we):pe&&ke?MSe(pe):we}oe&&V(oe,de)},[V,I.values]),H=Qr(function(Q){if(d0(Q))return function(te){return K(te,Q)};K(Q)}),G=Qr(function(Q,te,oe){te===void 0&&(te=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:Q,value:te}});var de=oe===void 0?o:oe;return de?A(I.values):Promise.resolve()}),q=p.useCallback(function(Q,te){Q.persist&&Q.persist();var oe=Q.target,de=oe.name,ve=oe.id,Se=oe.outerHTML,Ee=te||de||ve;G(Ee,!0)},[G]),ee=Qr(function(Q){if(d0(Q))return function(te){return q(te,Q)};q(Q)}),W=p.useCallback(function(Q){Mo(Q)?T({type:"SET_FORMIK_STATE",payload:Q}):T({type:"SET_FORMIK_STATE",payload:function(){return Q}})},[]),Z=p.useCallback(function(Q){T({type:"SET_STATUS",payload:Q})},[]),U=p.useCallback(function(Q){T({type:"SET_ISSUBMITTING",payload:Q})},[]),J=Qr(function(){return T({type:"SUBMIT_ATTEMPT"}),A().then(function(Q){var te=Q instanceof Error,oe=!te&&Object.keys(Q).length===0;if(oe){var de;try{if(de=fe(),de===void 0)return}catch(ve){throw ve}return Promise.resolve(de).then(function(ve){return w.current&&T({type:"SUBMIT_SUCCESS"}),ve}).catch(function(ve){if(w.current)throw T({type:"SUBMIT_FAILURE"}),ve})}else if(w.current&&(T({type:"SUBMIT_FAILURE"}),te))throw Q})}),X=Qr(function(Q){Q&&Q.preventDefault&&Mo(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&Mo(Q.stopPropagation)&&Q.stopPropagation(),J().catch(function(te){console.warn("Warning: An unhandled error was caught from submitForm()",te)})}),ae={resetForm:D,validateForm:A,validateField:_,setErrors:j,setFieldError:z,setFieldTouched:G,setFieldValue:V,setStatus:Z,setSubmitting:U,setTouched:F,setValues:N,setFormikState:W,submitForm:J},fe=Qr(function(){return u(I.values,ae)}),me=Qr(function(Q){Q&&Q.preventDefault&&Mo(Q.preventDefault)&&Q.preventDefault(),Q&&Q.stopPropagation&&Mo(Q.stopPropagation)&&Q.stopPropagation(),D()}),he=p.useCallback(function(Q){return{value:Er(I.values,Q),error:Er(I.errors,Q),touched:!!Er(I.touched,Q),initialValue:Er(h.current,Q),initialTouched:!!Er(y.current,Q),initialError:Er(m.current,Q)}},[I.errors,I.touched,I.values]),je=p.useCallback(function(Q){return{setValue:function(oe,de){return V(Q,oe,de)},setTouched:function(oe,de){return G(Q,oe,de)},setError:function(oe){return z(Q,oe)}}},[V,G,z]),ge=p.useCallback(function(Q){var te=wy(Q),oe=te?Q.name:Q,de=Er(I.values,oe),ve={name:oe,value:de,onChange:H,onBlur:ee};if(te){var Se=Q.type,Ee=Q.value,Oe=Q.as,Ce=Q.multiple;Se==="checkbox"?Ee===void 0?ve.checked=!!de:(ve.checked=!!(Array.isArray(de)&&~de.indexOf(Ee)),ve.value=Ee):Se==="radio"?(ve.checked=de===Ee,ve.value=Ee):Oe==="select"&&Ce&&(ve.value=ve.value||[],ve.multiple=!0)}return ve},[ee,H,I.values]),Ae=p.useMemo(function(){return!Ta(h.current,I.values)},[h.current,I.values]),Ve=p.useMemo(function(){return typeof a<"u"?Ae?I.errors&&Object.keys(I.errors).length===0:a!==!1&&Mo(a)?a(f):a:I.errors&&Object.keys(I.errors).length===0},[a,Ae,I.errors,f]),De=wn({},I,{initialValues:h.current,initialErrors:m.current,initialTouched:y.current,initialStatus:C.current,handleBlur:ee,handleChange:H,handleReset:me,handleSubmit:X,resetForm:D,setErrors:j,setFormikState:W,setFieldTouched:G,setFieldValue:V,setFieldError:z,setStatus:Z,setSubmitting:U,setTouched:F,setValues:N,submitForm:J,validateForm:A,validateField:_,isValid:Ve,dirty:Ae,unregisterField:L,registerField:$,getFieldProps:ge,getFieldMeta:he,getFieldHelpers:je,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return De}function TSe(e){var t={};if(e.inner){if(e.inner.length===0)return Ua(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;Er(t,s.path)||(t=Ua(t,s.path,s.message))}}return t}function ESe(e,t,n,r){n===void 0&&(n=!1);var o=FC(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function FC(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||LO(o)?FC(o):o!==""?o:void 0}):LO(e[r])?t[r]=FC(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function OSe(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,l=a&&n.isMergeableObject(i);r[s]=l?RC(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=RC(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function MSe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function RSe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var $Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?p.useLayoutEffect:p.useEffect;function Qr(e){var t=p.useRef(e);return $Se(function(){t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ASe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,mN=/^\d+$/,DSe=/^\d/,LSe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,FSe=/^\s*(['"]?)(.*?)(\1)\s*$/,pP=512,cM=new Pl(pP),uM=new Pl(pP),dM=new Pl(pP),Ga={Cache:Pl,split:jC,normalizePath:p0,setter:function(e){var t=p0(e);return uM.get(e)||uM.set(e,function(r,o){for(var i=0,s=t.length,a=r;ie.match(HSe)||[],xy=e=>e[0].toUpperCase()+e.slice(1),mP=(e,t)=>Cy(e).join(t).toLowerCase(),gN=e=>Cy(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),VSe=e=>xy(gN(e)),USe=e=>mP(e,"_"),GSe=e=>mP(e,"-"),WSe=e=>xy(mP(e," ")),KSe=e=>Cy(e).map(xy).join(" ");var h0={words:Cy,upperFirst:xy,camelCase:gN,pascalCase:VSe,snakeCase:USe,kebabCase:GSe,sentenceCase:WSe,titleCase:KSe},gP={exports:{}};gP.exports=function(e){return vN(qSe(e),e)};gP.exports.array=vN;function vN(e,t){var n=e.length,r=new Array(n),o={},i=n,s=YSe(t),a=XSe(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(c,u,d){if(d.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!o[u]){o[u]=!0;var h=s.get(c)||new Set;if(h=Array.from(h),u=h.length){d.add(c);do{var m=h[--u];l(m,a.get(m),d)}while(u);d.delete(c)}r[--n]=c}}}function qSe(e){for(var t=new Set,n=0,r=e.length;n"",r1e=/^Symbol\((.*)\)(.*)$/;function o1e(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function fM(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return o1e(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return n1e.call(e).replace(r1e,"Symbol($1)");const r=ZSe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+e1e.call(e)+"]":r==="RegExp"?t1e.call(e):null}function Xs(e,t){let n=fM(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=fM(this[r],t);return i!==null?i:o},2)}function yN(e){return e==null?[]:[].concat(e)}let bN,wN,CN,i1e=/\$\{\s*(\w+)\s*\}/g;bN=Symbol.toStringTag;class pM{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[bN]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],yN(t).forEach(i=>{if(hr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}wN=Symbol.hasInstance;CN=Symbol.toStringTag;class hr extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(i1e,(o,i)=>Xs(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const s=new pM(t,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[CN]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,hr)}static[wN](t){return pM[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Xo={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Xs(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Xs(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Xs(n,!0)}\``+o}},dr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ws={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},NC={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},BC={isValue:"${path} field must be ${value}"},zC={noUnknown:"${path} field has unspecified keys: ${unknown}"},s1e={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},a1e={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Xs(n,!0)}\``}return hr.formatError(Xo.notType,e)}};Object.assign(Object.create(null),{mixed:Xo,string:dr,number:ws,date:NC,object:zC,array:s1e,boolean:BC,tuple:a1e});const vP=e=>e&&e.__isYupSchema__;class xg{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new xg(t,(a,l)=>{var c;let u=s(...a)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!vP(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ph={context:"$",value:"."};class Il{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ph.context,this.isValue=this.key[0]===ph.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ph.context:this.isValue?ph.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ga.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Il.prototype.__isYupRef=!0;const Do=e=>e==null;function Hl(e){function t({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:c,test:u,params:d,message:f,skipAbsent:h}=e;let{parent:m,context:y,abortEarly:C=s.spec.abortEarly,disableStackTrace:w=s.spec.disableStackTrace}=o;function b(R){return Il.isRef(R)?R.getValue(n,m,y):R}function g(R={}){const O=Object.assign({value:n,originalValue:i,label:s.spec.label,path:R.path||r,spec:s.spec,disableStackTrace:R.disableStackTrace||w},d,R.params);for(const D of Object.keys(O))O[D]=b(O[D]);const A=new hr(hr.formatError(R.message||f,O),n,O.path,R.type||c,O.disableStackTrace);return A.params=O,A}const x=C?a:l;let P={path:r,parent:m,type:c,from:o.from,createError:g,resolve:b,options:o,originalValue:i,schema:s};const I=R=>{hr.isError(R)?x(R):R?l(null):x(g())},T=R=>{hr.isError(R)?x(R):a(R)};if(h&&Do(n))return I(!0);let k;try{var S;if(k=u.call(P,n,P),typeof((S=k)==null?void 0:S.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(k).then(I,T)}}catch(R){T(R);return}I(k)}return t.OPTIONS=e,t}function l1e(e,t,n,r=n){let o,i,s;return t?(Ga.forEach(t,(a,l,c)=>{let u=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,s=l?"["+a+"]":"."+a}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Sg extends Set{describe(){const t=[];for(const n of this.values())t.push(Il.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Sg(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function mc(e,t=new Map){if(vP(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(Xo.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=mc(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Do(i))return i;let s=Xs(t),a=Xs(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${s} -`+(a!==s?`result of cast: ${a}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:s=t,strict:a=this.spec.strict}=n,l=t;a||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:s,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:a,path:l,options:c}=t,u=y=>{o||(o=!0,n(y,s))},d=y=>{o||(o=!0,r(y,s))},f=i.length,h=[];if(!f)return d([]);let m={value:s,originalValue:a,path:l,options:c,schema:this};for(let y=0;ythis.resolve(u)._validate(c,u,f,h)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,a)=>o._validate(t,n,(l,c)=>{hr.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new hr(l,c,void 0,void 0,i)):s(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(a,l)=>{throw hr.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new hr(a,t,void 0,void 0,s);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(hr.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(hr.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):mc(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Hl({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Hl({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Xo.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Xo.notNull){return this.nullability(!1,t)}required(t=Xo.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Xo.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Hl(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=vN(t).map(i=>new Il(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Cg(o,n):Cg.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Hl({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Xo.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Hl({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=Xo.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Hl({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(d=>d.name===l.name)===c)}}}Co.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Co.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=a1e(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Co.prototype[e]=Co.prototype.oneOf;for(const e of["not","nope"])Co.prototype[e]=Co.prototype.notOneOf;function CN(){return new xN}class xN extends Co{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=jC.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Do(n)||n===!0}})}isFalse(t=jC.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Do(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}CN.prototype=xN.prototype;const l1e=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function c1e(e){const t=BC(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function BC(e){var t,n;const r=l1e.exec(e);return r?{year:Ii(r[1]),month:Ii(r[2],1)-1,day:Ii(r[3],1),hour:Ii(r[4]),minute:Ii(r[5]),second:Ii(r[6]),millisecond:r[7]?Ii(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Ii(r[10]),minuteOffset:Ii(r[11])}:null}function Ii(e,t=0){return Number(e)||t}let u1e=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,d1e=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,f1e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,p1e="^\\d{4}-\\d{2}-\\d{2}",h1e="\\d{2}:\\d{2}:\\d{2}",m1e="(([+-]\\d{2}(:?\\d{2})?)|Z)",g1e=new RegExp(`${p1e}T${h1e}(\\.\\d+)?${m1e}$`),v1e=e=>Do(e)||e===e.trim(),y1e={}.toString();function Ta(){return new SN}class SN extends Co{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===y1e?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Xo.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=dr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=dr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=dr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dr.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=dr.email){return this.matches(u1e,{name:"email",message:t,excludeEmptyString:!0})}url(t=dr.url){return this.matches(d1e,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=dr.uuid){return this.matches(f1e,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(g1e,{name:"datetime",message:n||dr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||dr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=BC(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||dr.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=BC(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=dr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:v1e})}lowercase(t=dr.lowercase){return this.transform(n=>Do(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Do(n)||n===n.toLowerCase()})}uppercase(t=dr.uppercase){return this.transform(n=>Do(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Do(n)||n===n.toUpperCase()})}}Ta.prototype=SN.prototype;let b1e=e=>e!=+e;function PN(){return new IN}class IN extends Co{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!b1e(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=bs.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=bs.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=bs.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=bs.positive){return this.moreThan(0,t)}negative(t=bs.negative){return this.lessThan(0,t)}integer(t=bs.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Do(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Do(o)?o:Math[t](o))}}PN.prototype=IN.prototype;let w1e=new Date(""),C1e=e=>Object.prototype.toString.call(e)==="[object Date]";class xy extends Co{constructor(){super({type:"date",check(t){return C1e(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=c1e(t),isNaN(t)?xy.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Il.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=FC.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=FC.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}xy.INVALID_DATE=w1e;xy.prototype;function x1e(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,a])=>`${s}-${a}`));function i(s,a){let l=Ga.split(s)[0];r.add(l),o.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(e)){let a=e[s];r.add(s),Il.isRef(a)&&a.isSibling?i(a.path,s):mP(a)&&"deps"in a&&a.deps.forEach(l=>i(l,s))}return QSe.array(Array.from(r),n).reverse()}function fM(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function kN(e){return(t,n)=>fM(e,t)-fM(e,n)}const S1e=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Gh(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Gh(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Gh(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Gh)}):"optional"in e?e.optional():e}const P1e=(e,t)=>{const n=[...Ga.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ga.getter(Ga.join(n),!0)(e);return!!(o&&r in o)};let pM=e=>Object.prototype.toString.call(e)==="[object Object]";function I1e(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const k1e=kN([]);function TN(e){return new EN(e)}class EN extends Co{constructor(t){super({type:"object",check(n){return pM(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=k1e,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of a){let f=i[d],h=d in o;if(f){let m,y=o[d];c.path=(n.path?`${n.path}.`:"")+d,f=f.resolve({value:y,context:n.context,parent:l});let C=f instanceof Co?f.spec:void 0,w=C==null?void 0:C.strict;if(C!=null&&C.strip){u=u||d in o;continue}m=!n.__validating||!w?f.cast(o[d],c):o[d],m!==void 0&&(l[d]=m)}else h&&!s&&(l[d]=o[d]);(h!==d in l||l[d]!==o[d])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(l,c)=>{if(!a||!pM(c)){o(l,c);return}s=s||c;let u=[];for(let d of this._nodes){let f=this.fields[d];!f||Il.isRef(f)||u.push(f.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:s}))}this.runTests({tests:u,value:c,originalValue:s,options:n},r,d=>{o(d.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=x1e(t,n),r._sortErrors=kN(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Gh(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ga.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return P1e(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(S1e)}noUnknown(t=!0,n=NC.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=I1e(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=NC.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(p0.camelCase)}snakeCase(){return this.transformKeys(p0.snakeCase)}constantCase(){return this.transformKeys(t=>p0.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),r.fields[i]=s.describe(a)}return r}}TN.prototype=EN.prototype;const T1e=[{id:"Dendrobium",name:"Dendrobium"},{id:"Brassavola",name:"Brassavola"},{id:"Cattleya",name:"Cattleya"},{id:"Phalaenopsis",name:"Phalaenopsis"},{id:"Vanda",name:"Vanda"},{id:"Cymbidium",name:"Cymbidium"},{id:"Oncidium",name:"Oncidium"},{id:"Paphiopedilum",name:"Paphiopedilum"},{id:"Zygopetalum",name:"Zygopetalum"},{id:"Maxillaria",name:"Maxillaria"},{id:"Brassia",name:"Brassia"},{id:"Laelia",name:"Laelia"},{id:"Bulbophyllum",name:"Bulbophyllum"},{id:"Coelogyne",name:"Coelogyne"},{id:"Miltonia",name:"Miltonia"},{id:"Phragmipedium",name:"Phragmipedium"}],E1e=[{code:"AD",label:"Andorra",phone:"376"},{code:"AE",label:"United Arab Emirates",phone:"971"},{code:"AF",label:"Afghanistan",phone:"93"},{code:"AG",label:"Antigua and Barbuda",phone:"1-268"},{code:"AI",label:"Anguilla",phone:"1-264"},{code:"AL",label:"Albania",phone:"355"},{code:"AM",label:"Armenia",phone:"374"},{code:"AO",label:"Angola",phone:"244"},{code:"AQ",label:"Antarctica",phone:"672"},{code:"AR",label:"Argentina",phone:"54"},{code:"AS",label:"American Samoa",phone:"1-684"},{code:"AT",label:"Austria",phone:"43"},{code:"AU",label:"Australia",phone:"61",suggested:!0},{code:"AW",label:"Aruba",phone:"297"},{code:"AX",label:"Alland Islands",phone:"358"},{code:"AZ",label:"Azerbaijan",phone:"994"},{code:"BA",label:"Bosnia and Herzegovina",phone:"387"},{code:"BB",label:"Barbados",phone:"1-246"},{code:"BD",label:"Bangladesh",phone:"880"},{code:"BE",label:"Belgium",phone:"32"},{code:"BF",label:"Burkina Faso",phone:"226"},{code:"BG",label:"Bulgaria",phone:"359"},{code:"BH",label:"Bahrain",phone:"973"},{code:"BI",label:"Burundi",phone:"257"},{code:"BJ",label:"Benin",phone:"229"},{code:"BL",label:"Saint Barthelemy",phone:"590"},{code:"BM",label:"Bermuda",phone:"1-441"},{code:"BN",label:"Brunei Darussalam",phone:"673"},{code:"BO",label:"Bolivia",phone:"591"},{code:"BR",label:"Brazil",phone:"55"},{code:"BS",label:"Bahamas",phone:"1-242"},{code:"BT",label:"Bhutan",phone:"975"},{code:"BV",label:"Bouvet Island",phone:"47"},{code:"BW",label:"Botswana",phone:"267"},{code:"BY",label:"Belarus",phone:"375"},{code:"BZ",label:"Belize",phone:"501"},{code:"CA",label:"Canada",phone:"1",suggested:!0},{code:"CC",label:"Cocos (Keeling) Islands",phone:"61"},{code:"CD",label:"Congo, Democratic Republic of the",phone:"243"},{code:"CF",label:"Central African Republic",phone:"236"},{code:"CG",label:"Congo, Republic of the",phone:"242"},{code:"CH",label:"Switzerland",phone:"41"},{code:"CI",label:"Cote d'Ivoire",phone:"225"},{code:"CK",label:"Cook Islands",phone:"682"},{code:"CL",label:"Chile",phone:"56"},{code:"CM",label:"Cameroon",phone:"237"},{code:"CN",label:"China",phone:"86"},{code:"CO",label:"Colombia",phone:"57"},{code:"CR",label:"Costa Rica",phone:"506"},{code:"CU",label:"Cuba",phone:"53"},{code:"CV",label:"Cape Verde",phone:"238"},{code:"CW",label:"Curacao",phone:"599"},{code:"CX",label:"Christmas Island",phone:"61"},{code:"CY",label:"Cyprus",phone:"357"},{code:"CZ",label:"Czech Republic",phone:"420"},{code:"DE",label:"Germany",phone:"49",suggested:!0},{code:"DJ",label:"Djibouti",phone:"253"},{code:"DK",label:"Denmark",phone:"45"},{code:"DM",label:"Dominica",phone:"1-767"},{code:"DO",label:"Dominican Republic",phone:"1-809"},{code:"DZ",label:"Algeria",phone:"213"},{code:"EC",label:"Ecuador",phone:"593"},{code:"EE",label:"Estonia",phone:"372"},{code:"EG",label:"Egypt",phone:"20"},{code:"EH",label:"Western Sahara",phone:"212"},{code:"ER",label:"Eritrea",phone:"291"},{code:"ES",label:"Spain",phone:"34"},{code:"ET",label:"Ethiopia",phone:"251"},{code:"FI",label:"Finland",phone:"358"},{code:"FJ",label:"Fiji",phone:"679"},{code:"FK",label:"Falkland Islands (Malvinas)",phone:"500"},{code:"FM",label:"Micronesia, Federated States of",phone:"691"},{code:"FO",label:"Faroe Islands",phone:"298"},{code:"FR",label:"France",phone:"33",suggested:!0},{code:"GA",label:"Gabon",phone:"241"},{code:"GB",label:"United Kingdom",phone:"44"},{code:"GD",label:"Grenada",phone:"1-473"},{code:"GE",label:"Georgia",phone:"995"},{code:"GF",label:"French Guiana",phone:"594"},{code:"GG",label:"Guernsey",phone:"44"},{code:"GH",label:"Ghana",phone:"233"},{code:"GI",label:"Gibraltar",phone:"350"},{code:"GL",label:"Greenland",phone:"299"},{code:"GM",label:"Gambia",phone:"220"},{code:"GN",label:"Guinea",phone:"224"},{code:"GP",label:"Guadeloupe",phone:"590"},{code:"GQ",label:"Equatorial Guinea",phone:"240"},{code:"GR",label:"Greece",phone:"30"},{code:"GS",label:"South Georgia and the South Sandwich Islands",phone:"500"},{code:"GT",label:"Guatemala",phone:"502"},{code:"GU",label:"Guam",phone:"1-671"},{code:"GW",label:"Guinea-Bissau",phone:"245"},{code:"GY",label:"Guyana",phone:"592"},{code:"HK",label:"Hong Kong",phone:"852"},{code:"HM",label:"Heard Island and McDonald Islands",phone:"672"},{code:"HN",label:"Honduras",phone:"504"},{code:"HR",label:"Croatia",phone:"385"},{code:"HT",label:"Haiti",phone:"509"},{code:"HU",label:"Hungary",phone:"36"},{code:"ID",label:"Indonesia",phone:"62"},{code:"IE",label:"Ireland",phone:"353"},{code:"IL",label:"Israel",phone:"972"},{code:"IM",label:"Isle of Man",phone:"44"},{code:"IN",label:"India",phone:"91"},{code:"IO",label:"British Indian Ocean Territory",phone:"246"},{code:"IQ",label:"Iraq",phone:"964"},{code:"IR",label:"Iran, Islamic Republic of",phone:"98"},{code:"IS",label:"Iceland",phone:"354"},{code:"IT",label:"Italy",phone:"39"},{code:"JE",label:"Jersey",phone:"44"},{code:"JM",label:"Jamaica",phone:"1-876"},{code:"JO",label:"Jordan",phone:"962"},{code:"JP",label:"Japan",phone:"81",suggested:!0},{code:"KE",label:"Kenya",phone:"254"},{code:"KG",label:"Kyrgyzstan",phone:"996"},{code:"KH",label:"Cambodia",phone:"855"},{code:"KI",label:"Kiribati",phone:"686"},{code:"KM",label:"Comoros",phone:"269"},{code:"KN",label:"Saint Kitts and Nevis",phone:"1-869"},{code:"KP",label:"Korea, Democratic People's Republic of",phone:"850"},{code:"KR",label:"Korea, Republic of",phone:"82"},{code:"KW",label:"Kuwait",phone:"965"},{code:"KY",label:"Cayman Islands",phone:"1-345"},{code:"KZ",label:"Kazakhstan",phone:"7"},{code:"LA",label:"Lao People's Democratic Republic",phone:"856"},{code:"LB",label:"Lebanon",phone:"961"},{code:"LC",label:"Saint Lucia",phone:"1-758"},{code:"LI",label:"Liechtenstein",phone:"423"},{code:"LK",label:"Sri Lanka",phone:"94"},{code:"LR",label:"Liberia",phone:"231"},{code:"LS",label:"Lesotho",phone:"266"},{code:"LT",label:"Lithuania",phone:"370"},{code:"LU",label:"Luxembourg",phone:"352"},{code:"LV",label:"Latvia",phone:"371"},{code:"LY",label:"Libya",phone:"218"},{code:"MA",label:"Morocco",phone:"212"},{code:"MC",label:"Monaco",phone:"377"},{code:"MD",label:"Moldova, Republic of",phone:"373"},{code:"ME",label:"Montenegro",phone:"382"},{code:"MF",label:"Saint Martin (French part)",phone:"590"},{code:"MG",label:"Madagascar",phone:"261"},{code:"MH",label:"Marshall Islands",phone:"692"},{code:"MK",label:"Macedonia, the Former Yugoslav Republic of",phone:"389"},{code:"ML",label:"Mali",phone:"223"},{code:"MM",label:"Myanmar",phone:"95"},{code:"MN",label:"Mongolia",phone:"976"},{code:"MO",label:"Macao",phone:"853"},{code:"MP",label:"Northern Mariana Islands",phone:"1-670"},{code:"MQ",label:"Martinique",phone:"596"},{code:"MR",label:"Mauritania",phone:"222"},{code:"MS",label:"Montserrat",phone:"1-664"},{code:"MT",label:"Malta",phone:"356"},{code:"MU",label:"Mauritius",phone:"230"},{code:"MV",label:"Maldives",phone:"960"},{code:"MW",label:"Malawi",phone:"265"},{code:"MX",label:"Mexico",phone:"52"},{code:"MY",label:"Malaysia",phone:"60"},{code:"MZ",label:"Mozambique",phone:"258"},{code:"NA",label:"Namibia",phone:"264"},{code:"NC",label:"New Caledonia",phone:"687"},{code:"NE",label:"Niger",phone:"227"},{code:"NF",label:"Norfolk Island",phone:"672"},{code:"NG",label:"Nigeria",phone:"234"},{code:"NI",label:"Nicaragua",phone:"505"},{code:"NL",label:"Netherlands",phone:"31"},{code:"NO",label:"Norway",phone:"47"},{code:"NP",label:"Nepal",phone:"977"},{code:"NR",label:"Nauru",phone:"674"},{code:"NU",label:"Niue",phone:"683"},{code:"NZ",label:"New Zealand",phone:"64"},{code:"OM",label:"Oman",phone:"968"},{code:"PA",label:"Panama",phone:"507"},{code:"PE",label:"Peru",phone:"51"},{code:"PF",label:"French Polynesia",phone:"689"},{code:"PG",label:"Papua New Guinea",phone:"675"},{code:"PH",label:"Philippines",phone:"63"},{code:"PK",label:"Pakistan",phone:"92"},{code:"PL",label:"Poland",phone:"48"},{code:"PM",label:"Saint Pierre and Miquelon",phone:"508"},{code:"PN",label:"Pitcairn",phone:"870"},{code:"PR",label:"Puerto Rico",phone:"1"},{code:"PS",label:"Palestine, State of",phone:"970"},{code:"PT",label:"Portugal",phone:"351"},{code:"PW",label:"Palau",phone:"680"},{code:"PY",label:"Paraguay",phone:"595"},{code:"QA",label:"Qatar",phone:"974"},{code:"RE",label:"Reunion",phone:"262"},{code:"RO",label:"Romania",phone:"40"},{code:"RS",label:"Serbia",phone:"381"},{code:"RU",label:"Russian Federation",phone:"7"},{code:"RW",label:"Rwanda",phone:"250"},{code:"SA",label:"Saudi Arabia",phone:"966"},{code:"SB",label:"Solomon Islands",phone:"677"},{code:"SC",label:"Seychelles",phone:"248"},{code:"SD",label:"Sudan",phone:"249"},{code:"SE",label:"Sweden",phone:"46"},{code:"SG",label:"Singapore",phone:"65"},{code:"SH",label:"Saint Helena",phone:"290"},{code:"SI",label:"Slovenia",phone:"386"},{code:"SJ",label:"Svalbard and Jan Mayen",phone:"47"},{code:"SK",label:"Slovakia",phone:"421"},{code:"SL",label:"Sierra Leone",phone:"232"},{code:"SM",label:"San Marino",phone:"378"},{code:"SN",label:"Senegal",phone:"221"},{code:"SO",label:"Somalia",phone:"252"},{code:"SR",label:"Suriname",phone:"597"},{code:"SS",label:"South Sudan",phone:"211"},{code:"ST",label:"Sao Tome and Principe",phone:"239"},{code:"SV",label:"El Salvador",phone:"503"},{code:"SX",label:"Sint Maarten (Dutch part)",phone:"1-721"},{code:"SY",label:"Syrian Arab Republic",phone:"963"},{code:"SZ",label:"Swaziland",phone:"268"},{code:"TC",label:"Turks and Caicos Islands",phone:"1-649"},{code:"TD",label:"Chad",phone:"235"},{code:"TF",label:"French Southern Territories",phone:"262"},{code:"TG",label:"Togo",phone:"228"},{code:"TH",label:"Thailand",phone:"66"},{code:"TJ",label:"Tajikistan",phone:"992"},{code:"TK",label:"Tokelau",phone:"690"},{code:"TL",label:"Timor-Leste",phone:"670"},{code:"TM",label:"Turkmenistan",phone:"993"},{code:"TN",label:"Tunisia",phone:"216"},{code:"TO",label:"Tonga",phone:"676"},{code:"TR",label:"Turkey",phone:"90"},{code:"TT",label:"Trinidad and Tobago",phone:"1-868"},{code:"TV",label:"Tuvalu",phone:"688"},{code:"TW",label:"Taiwan",phone:"886"},{code:"TZ",label:"United Republic of Tanzania",phone:"255"},{code:"UA",label:"Ukraine",phone:"380"},{code:"UG",label:"Uganda",phone:"256"},{code:"US",label:"United States",phone:"1",suggested:!0},{code:"UY",label:"Uruguay",phone:"598"},{code:"UZ",label:"Uzbekistan",phone:"998"},{code:"VA",label:"Holy See (Vatican City State)",phone:"379"},{code:"VC",label:"Saint Vincent and the Grenadines",phone:"1-784"},{code:"VE",label:"Venezuela",phone:"58"},{code:"VG",label:"British Virgin Islands",phone:"1-284"},{code:"VI",label:"US Virgin Islands",phone:"1-340"},{code:"VN",label:"Vietnam",phone:"84"},{code:"VU",label:"Vanuatu",phone:"678"},{code:"WF",label:"Wallis and Futuna",phone:"681"},{code:"WS",label:"Samoa",phone:"685"},{code:"XK",label:"Kosovo",phone:"383"},{code:"YE",label:"Yemen",phone:"967"},{code:"YT",label:"Mayotte",phone:"262"},{code:"ZA",label:"South Africa",phone:"27"},{code:"ZM",label:"Zambia",phone:"260"},{code:"ZW",label:"Zimbabwe",phone:"263"}],O1e=TN({name:Ta().required("Name is required"),rating:PN().min(0).max(5).required("Rating is required"),isSpecial:CN(),color:Ta().required("Color is required"),origin:Ta().required("Origin is required"),category:Ta().required("Category is required"),detail:Ta().required("Detail is required"),video:Ta().nullable()});function M1e(){const{theme:e}=p.useContext(Po),t=Su(),n=Ure(t.breakpoints.down("sm")),[r,o]=p.useState([]),[i,s]=p.useState(null),[a,l]=p.useState(null),[c,u]=p.useState(!1),[d,f]=p.useState("create"),[h,m]=p.useState(null),[y,C]=p.useState(null),[w,b]=p.useState(!1),g=async()=>{try{const $=(await jF()).reverse().map((L,F)=>({...L,id:L.Id||`orchid-${F+1}`,index:F+1}));o($)}catch(_){console.error("Failed to fetch orchids:",_)}};p.useEffect(()=>{g()},[]);const x=(_,$)=>{s(_.currentTarget),l($)},P=()=>{s(null),l(null),f("create")},I=_=>{l(_),f("update"),u(!0),C(_.image),s(null)},T=()=>{b(!0),s(null)},M=async()=>{try{await mle(a.Id),await g(),b(!1),P()}catch(_){console.error("Error deleting orchid: ",_)}},k=()=>{b(!1),P()},S=()=>{l(null),f("create"),u(!0),C(null)},R=()=>{a&&l(null),u(!1),C(null),O.resetForm()},O=ISe({initialValues:{name:"",rating:0,isSpecial:!1,color:"",origin:"",category:"",detail:"",video:"",image:null},validationSchema:O1e,onSubmit:async(_,{setSubmitting:$,resetForm:L})=>{try{let F=Da;if(_.image&&d==="create"||d==="update"&&_.image!==(a==null?void 0:a.image)){const z=mee(Cee,`orchid-images/${_.image.name}`);await pee(z,_.image),F=await hee(z)}let j=!1;a!==null&&F===Da&&a.image!==null&&(j=!0);const N={..._,image:j?a.image:F};if(d==="create")await ple(N);else if(d==="update"&&a)await hle(a.Id,N),P();else throw new Error("Invalid modal mode or missing selectedOrchid");await g(),L(),u(!1),C(null)}catch(F){console.error(`Error ${d==="create"?"creating":"updating"} orchid:`,F)}finally{$(!1)}}});p.useEffect(()=>{a&&d==="update"&&(O.setValues({name:a.name,rating:a.rating,isSpecial:a.isSpecial,color:a.color,origin:a.origin,category:a.category,detail:a.detail,video:a.video,image:a.image}),C(a.image))},[a,d,c]),p.useEffect(()=>{if(!h)return;const _=URL.createObjectURL(h);return C(_),()=>URL.revokeObjectURL(_)},[h]);const A=_=>{if(!_.currentTarget.files||_.currentTarget.files.length===0){m(null);return}m(_.currentTarget.files[0])},D=[{field:"index",headerClassName:"super-app-theme--header",headerName:"ID",width:60},{field:"name",headerClassName:"super-app-theme--header",headerName:"Orchid name",width:140},{field:"rating",headerClassName:"super-app-theme--header",headerName:"Rating",width:140,renderCell:_=>v.jsx(Xm,{name:"read-only",value:Number(_.value),readOnly:!0})},{field:"isSpecial",headerClassName:"super-app-theme--header",headerName:"Special Orchid",width:150,renderCell:_=>_.value?v.jsx(Ni,{icon:v.jsx(a9,{}),label:"Special",size:"small",sx:{backgroundColor:We(e.chip.backgroundColor,.1),color:e.chip.color,borderColor:e.chip.borderColor,"& .MuiChip-icon":{color:e.icon.color}}}):v.jsx(Ni,{label:"Normal",size:"small",variant:"outlined",sx:{borderColor:We(e.chip.borderColor,.5),color:e.text.secondary}})},{field:"image",headerClassName:"super-app-theme--header",headerName:"Image",width:100,renderCell:_=>v.jsx("img",{src:_.value||"src/assets/images/image.jpg",alt:`${_.row.name} orchid`,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"6px"}})},{field:"color",headerClassName:"super-app-theme--header",headerName:"Color",width:100},{field:"origin",headerClassName:"super-app-theme--header",headerName:"Origin",width:130},{field:"category",headerClassName:"super-app-theme--header",headerName:"Category",width:130},{field:"video",headerClassName:"super-app-theme--header",headerName:"Video",width:150,renderCell:_=>v.jsx("iframe",{width:"100%",height:"100%",src:_.value||"https://www.youtube.com/embed/dQw4w9WgXcQ?si=xaqoh0xatwfp_iun",title:`${_.row.name} video`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,style:{borderRadius:"6px"}})},{field:"detail",headerClassName:"super-app-theme--header",headerName:"Detail",width:200,flex:1},{field:"actions",headerClassName:"super-app-theme--header",headerName:"Actions",width:100,renderCell:_=>v.jsx(an,{onClick:$=>x($,_.row),size:"small",sx:{color:e.icon.color},children:v.jsx(b9,{})})}];return v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,padding:n?"16px":"68px"},children:[v.jsxs(Pr,{elevation:3,sx:{padding:n?"16px":"24px",borderRadius:"12px",backgroundColor:e.card.backgroundColor,color:e.card.color,boxShadow:e.elevation[3]},children:[v.jsxs(Qe,{sx:{display:"flex",flexDirection:n?"column":"row",justifyContent:"space-between",alignItems:n?"flex-start":"center",marginBottom:"24px"},children:[v.jsx(Be,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:e.text.primary},children:"Orchid Management"}),v.jsx(mr,{variant:"contained",startIcon:v.jsx(o9,{}),onClick:S,sx:{backgroundColor:e.button.primary,color:e.text.primary,"&:hover":{backgroundColor:e.button.hover},marginTop:n?2:0,boxShadow:e.elevation[1]},children:"Add Orchid"})]}),v.jsx(y0e,{rowHeight:100,rows:r,columns:D,initialState:{pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10,25],disableRowSelectionOnClick:!0,sx:{border:`1px solid ${e.divider}`,borderRadius:"8px","& .MuiDataGrid-root":{backgroundColor:We(e.card.backgroundColor,.6),color:e.text.primary},"& .super-app-theme--header":{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,borderBottom:`2px solid ${e.divider}`},"& .MuiDataGrid-cell":{borderBottom:`1px solid ${We(e.divider,.3)}`,color:e.text.primary},"& .MuiDataGrid-cell:focus":{outline:"none"},"& .MuiDataGrid-row:hover":{backgroundColor:We(e.action.hover,.1)},"& .MuiDataGrid-footer":{backgroundColor:We(e.card.backgroundColor,.8),color:e.text.secondary,borderTop:`1px solid ${e.divider}`},"& .MuiTablePagination-root":{color:e.text.secondary},"& .MuiButtonBase-root":{color:e.text.primary},"& .MuiCheckbox-root":{color:e.icon.color},"& .MuiDataGrid-columnSeparator":{color:e.divider}}})]}),v.jsxs(Tm,{anchorEl:i,open:!!i,onClose:P,disableScrollLock:!0,PaperProps:{sx:{backgroundColor:e.card.backgroundColor,color:e.text.primary,boxShadow:e.elevation[2]}},children:[v.jsx(On,{onClick:()=>I(a),children:"Update"}),v.jsx(On,{onClick:T,children:"Delete"})]}),v.jsx(Qf,{open:c,onClose:R,disableScrollLock:!0,children:v.jsx(oS,{in:c,children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:e.card.backgroundColor,boxShadow:24,p:4,borderRadius:2,maxHeight:"90vh",overflowY:"auto",color:e.text.primary},children:[v.jsx(Be,{variant:"h6",component:"h2",gutterBottom:!0,children:d==="create"?"Add New Orchid":"Update Orchid"}),v.jsx("form",{onSubmit:O.handleSubmit,children:v.jsxs(fc,{fullWidth:!0,sx:{gap:2},children:[v.jsx(Ds,{fullWidth:!0,id:"name",name:"name",label:"Orchid Name",value:O.values.name,onChange:O.handleChange,error:O.touched.name&&!!O.errors.name,helperText:O.touched.name&&O.errors.name,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsxs(fc,{fullWidth:!0,children:[v.jsx(Qe,{children:v.jsx(Be,{component:"legend",children:"Rating"})}),v.jsx(Xm,{name:"rating",value:Number(O.values.rating),onChange:(_,$)=>{O.setFieldValue("rating",$)}})]}),v.jsxs(Qe,{children:[v.jsx(Be,{component:"legend",children:"Special Orchid"}),v.jsx(Zw,{control:v.jsx(H_,{name:"isSpecial",checked:O.values.isSpecial,onChange:O.handleChange})})]}),v.jsx(Ds,{fullWidth:!0,id:"color",name:"color",label:"Orchid Color",value:O.values.color,onChange:O.handleChange,error:O.touched.color&&!!O.errors.color,helperText:O.touched.color&&O.errors.color,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsxs(fc,{fullWidth:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}},children:[v.jsx(qm,{id:"origin-label",children:"Orchid Origin"}),v.jsx(nu,{labelId:"origin-label",id:"origin",name:"origin",label:"Orchid Origin",value:O.values.origin,onChange:O.handleChange,error:O.touched.origin&&!!O.errors.origin,children:E1e.map(_=>v.jsxs(On,{value:_.label,children:[v.jsx("img",{loading:"lazy",width:"20",srcSet:`https://flagcdn.com/w40/${_.code.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${_.code.toLowerCase()}.png`,alt:""}),_.label]},_.code))})]}),v.jsxs(fc,{fullWidth:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}},children:[v.jsx(qm,{id:"category-label",children:"Orchid Category"}),v.jsx(nu,{labelId:"category-label",id:"category",name:"category",label:"Orchid Category",value:O.values.category,onChange:O.handleChange,error:O.touched.category&&!!O.errors.category,children:T1e.map(_=>v.jsx(On,{value:_.name,children:_.name},_.id))})]}),v.jsx(Ds,{fullWidth:!0,id:"detail",name:"detail",label:"Detail",multiline:!0,rows:4,value:O.values.detail,onChange:O.handleChange,error:O.touched.detail&&!!O.errors.detail,helperText:O.touched.detail&&O.errors.detail,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ds,{fullWidth:!0,id:"video",name:"video",label:"Orchid Video URL",value:O.values.video,onChange:O.handleChange,error:O.touched.video&&!!O.errors.video,helperText:O.touched.video&&O.errors.video,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx("input",{accept:"image/*",style:{display:"none"},id:"raised-button-file",type:"file",onChange:_=>{A(_),O.setFieldValue("image",_.currentTarget.files[0])}}),v.jsx("label",{htmlFor:"raised-button-file",children:v.jsx(mr,{variant:"contained",component:"span",startIcon:v.jsx(u9,{}),sx:{mt:2,mb:2},children:"Upload Image"})}),y&&v.jsx(Qe,{sx:{mt:2,mb:2},children:v.jsx("img",{src:y,alt:"Image preview",style:{maxWidth:"100%",maxHeight:"200px",objectFit:"contain"}})}),v.jsx(mr,{type:"submit",variant:"contained",color:"primary",disabled:O.isSubmitting,sx:{mt:2},children:O.isSubmitting?"Submitting...":d==="create"?"Submit":"Update"})]})})]})})}),v.jsxs(are,{open:w,onClose:k,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundColor:e.card.backgroundColor,color:e.text.primary}},disableScrollLock:!0,children:[v.jsx(Pre,{id:"alert-dialog-title",children:"Confirm Deletion"}),v.jsx(vre,{children:v.jsx(Cre,{id:"alert-dialog-description",sx:{color:e.text.secondary},children:"Are you sure you want to delete this orchid? This action cannot be undone."})}),v.jsxs(dre,{children:[v.jsx(mr,{onClick:k,sx:{color:e.text.primary},children:"Cancel"}),v.jsx(mr,{onClick:M,autoFocus:!0,sx:{color:e.error.main},children:"Delete"})]})]})]})}function R1e(){return v.jsxs("div",{style:{position:"relative"},children:[v.jsx(_ie,{}),v.jsxs(J3,{children:[v.jsx(gs,{path:"/fer-lab1/",element:v.jsx(gle,{})}),v.jsx(gs,{path:"/fer-lab1/natural",element:v.jsx(bue,{})}),v.jsx(gs,{path:"/fer-lab1/:id",element:v.jsx(yue,{})}),v.jsx(gs,{path:"/fer-lab1/news",element:v.jsx(Eue,{})}),v.jsx(gs,{path:"/fer-lab1/about",element:v.jsx(xue,{})}),v.jsx(gs,{path:"/fer-lab1/contact",element:v.jsx(Iue,{})}),v.jsx(gs,{path:"/fer-lab1/dashboard",element:v.jsx(Oue,{children:v.jsx(M1e,{})})})]}),v.jsx(lle,{})]})}k$(document.getElementById("root")).render(v.jsx(p.StrictMode,{children:v.jsx(xee,{children:v.jsx(i4,{children:v.jsx(W8,{children:v.jsx(R1e,{})})})})}))});export default $1e(); +`+(a!==s?`result of cast: ${a}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:s=t,strict:a=this.spec.strict}=n,l=t;a||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:s,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:a,path:l,options:c}=t,u=y=>{o||(o=!0,n(y,s))},d=y=>{o||(o=!0,r(y,s))},f=i.length,h=[];if(!f)return d([]);let m={value:s,originalValue:a,path:l,options:c,schema:this};for(let y=0;ythis.resolve(u)._validate(c,u,f,h)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,a)=>o._validate(t,n,(l,c)=>{hr.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new hr(l,c,void 0,void 0,i)):s(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(a,l)=>{throw hr.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new hr(a,t,void 0,void 0,s);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(hr.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(hr.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):mc(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Hl({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Hl({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Xo.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Xo.notNull){return this.nullability(!1,t)}required(t=Xo.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Xo.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Hl(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=yN(t).map(i=>new Il(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new xg(o,n):xg.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Hl({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Xo.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Hl({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=Xo.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Hl({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(d=>d.name===l.name)===c)}}}Co.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Co.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=l1e(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Co.prototype[e]=Co.prototype.oneOf;for(const e of["not","nope"])Co.prototype[e]=Co.prototype.notOneOf;function xN(){return new SN}class SN extends Co{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=BC.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Do(n)||n===!0}})}isFalse(t=BC.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Do(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}xN.prototype=SN.prototype;const c1e=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function u1e(e){const t=HC(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function HC(e){var t,n;const r=c1e.exec(e);return r?{year:Ii(r[1]),month:Ii(r[2],1)-1,day:Ii(r[3],1),hour:Ii(r[4]),minute:Ii(r[5]),second:Ii(r[6]),millisecond:r[7]?Ii(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Ii(r[10]),minuteOffset:Ii(r[11])}:null}function Ii(e,t=0){return Number(e)||t}let d1e=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,f1e=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,p1e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,h1e="^\\d{4}-\\d{2}-\\d{2}",m1e="\\d{2}:\\d{2}:\\d{2}",g1e="(([+-]\\d{2}(:?\\d{2})?)|Z)",v1e=new RegExp(`${h1e}T${m1e}(\\.\\d+)?${g1e}$`),y1e=e=>Do(e)||e===e.trim(),b1e={}.toString();function Ea(){return new PN}class PN extends Co{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===b1e?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Xo.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=dr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=dr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=dr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dr.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=dr.email){return this.matches(d1e,{name:"email",message:t,excludeEmptyString:!0})}url(t=dr.url){return this.matches(f1e,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=dr.uuid){return this.matches(p1e,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(v1e,{name:"datetime",message:n||dr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||dr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=HC(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||dr.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=HC(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=dr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:y1e})}lowercase(t=dr.lowercase){return this.transform(n=>Do(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Do(n)||n===n.toLowerCase()})}uppercase(t=dr.uppercase){return this.transform(n=>Do(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Do(n)||n===n.toUpperCase()})}}Ea.prototype=PN.prototype;let w1e=e=>e!=+e;function IN(){return new kN}class kN extends Co{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!w1e(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=ws.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=ws.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=ws.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=ws.positive){return this.moreThan(0,t)}negative(t=ws.negative){return this.lessThan(0,t)}integer(t=ws.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Do(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Do(o)?o:Math[t](o))}}IN.prototype=kN.prototype;let C1e=new Date(""),x1e=e=>Object.prototype.toString.call(e)==="[object Date]";class Sy extends Co{constructor(){super({type:"date",check(t){return x1e(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=u1e(t),isNaN(t)?Sy.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Il.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=NC.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=NC.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Sy.INVALID_DATE=C1e;Sy.prototype;function S1e(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,a])=>`${s}-${a}`));function i(s,a){let l=Ga.split(s)[0];r.add(l),o.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(e)){let a=e[s];r.add(s),Il.isRef(a)&&a.isSibling?i(a.path,s):vP(a)&&"deps"in a&&a.deps.forEach(l=>i(l,s))}return JSe.array(Array.from(r),n).reverse()}function hM(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function TN(e){return(t,n)=>hM(e,t)-hM(e,n)}const P1e=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Wh(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Wh(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Wh(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Wh)}):"optional"in e?e.optional():e}const I1e=(e,t)=>{const n=[...Ga.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ga.getter(Ga.join(n),!0)(e);return!!(o&&r in o)};let mM=e=>Object.prototype.toString.call(e)==="[object Object]";function k1e(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const T1e=TN([]);function EN(e){return new ON(e)}class ON extends Co{constructor(t){super({type:"object",check(n){return mM(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=T1e,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of a){let f=i[d],h=d in o;if(f){let m,y=o[d];c.path=(n.path?`${n.path}.`:"")+d,f=f.resolve({value:y,context:n.context,parent:l});let C=f instanceof Co?f.spec:void 0,w=C==null?void 0:C.strict;if(C!=null&&C.strip){u=u||d in o;continue}m=!n.__validating||!w?f.cast(o[d],c):o[d],m!==void 0&&(l[d]=m)}else h&&!s&&(l[d]=o[d]);(h!==d in l||l[d]!==o[d])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(l,c)=>{if(!a||!mM(c)){o(l,c);return}s=s||c;let u=[];for(let d of this._nodes){let f=this.fields[d];!f||Il.isRef(f)||u.push(f.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:s}))}this.runTests({tests:u,value:c,originalValue:s,options:n},r,d=>{o(d.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=S1e(t,n),r._sortErrors=TN(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Wh(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ga.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return I1e(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(P1e)}noUnknown(t=!0,n=zC.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=k1e(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=zC.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(h0.camelCase)}snakeCase(){return this.transformKeys(h0.snakeCase)}constantCase(){return this.transformKeys(t=>h0.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),r.fields[i]=s.describe(a)}return r}}EN.prototype=ON.prototype;const E1e=[{id:"Dendrobium",name:"Dendrobium"},{id:"Brassavola",name:"Brassavola"},{id:"Cattleya",name:"Cattleya"},{id:"Phalaenopsis",name:"Phalaenopsis"},{id:"Vanda",name:"Vanda"},{id:"Cymbidium",name:"Cymbidium"},{id:"Oncidium",name:"Oncidium"},{id:"Paphiopedilum",name:"Paphiopedilum"},{id:"Zygopetalum",name:"Zygopetalum"},{id:"Maxillaria",name:"Maxillaria"},{id:"Brassia",name:"Brassia"},{id:"Laelia",name:"Laelia"},{id:"Bulbophyllum",name:"Bulbophyllum"},{id:"Coelogyne",name:"Coelogyne"},{id:"Miltonia",name:"Miltonia"},{id:"Phragmipedium",name:"Phragmipedium"}],O1e=[{code:"AD",label:"Andorra",phone:"376"},{code:"AE",label:"United Arab Emirates",phone:"971"},{code:"AF",label:"Afghanistan",phone:"93"},{code:"AG",label:"Antigua and Barbuda",phone:"1-268"},{code:"AI",label:"Anguilla",phone:"1-264"},{code:"AL",label:"Albania",phone:"355"},{code:"AM",label:"Armenia",phone:"374"},{code:"AO",label:"Angola",phone:"244"},{code:"AQ",label:"Antarctica",phone:"672"},{code:"AR",label:"Argentina",phone:"54"},{code:"AS",label:"American Samoa",phone:"1-684"},{code:"AT",label:"Austria",phone:"43"},{code:"AU",label:"Australia",phone:"61",suggested:!0},{code:"AW",label:"Aruba",phone:"297"},{code:"AX",label:"Alland Islands",phone:"358"},{code:"AZ",label:"Azerbaijan",phone:"994"},{code:"BA",label:"Bosnia and Herzegovina",phone:"387"},{code:"BB",label:"Barbados",phone:"1-246"},{code:"BD",label:"Bangladesh",phone:"880"},{code:"BE",label:"Belgium",phone:"32"},{code:"BF",label:"Burkina Faso",phone:"226"},{code:"BG",label:"Bulgaria",phone:"359"},{code:"BH",label:"Bahrain",phone:"973"},{code:"BI",label:"Burundi",phone:"257"},{code:"BJ",label:"Benin",phone:"229"},{code:"BL",label:"Saint Barthelemy",phone:"590"},{code:"BM",label:"Bermuda",phone:"1-441"},{code:"BN",label:"Brunei Darussalam",phone:"673"},{code:"BO",label:"Bolivia",phone:"591"},{code:"BR",label:"Brazil",phone:"55"},{code:"BS",label:"Bahamas",phone:"1-242"},{code:"BT",label:"Bhutan",phone:"975"},{code:"BV",label:"Bouvet Island",phone:"47"},{code:"BW",label:"Botswana",phone:"267"},{code:"BY",label:"Belarus",phone:"375"},{code:"BZ",label:"Belize",phone:"501"},{code:"CA",label:"Canada",phone:"1",suggested:!0},{code:"CC",label:"Cocos (Keeling) Islands",phone:"61"},{code:"CD",label:"Congo, Democratic Republic of the",phone:"243"},{code:"CF",label:"Central African Republic",phone:"236"},{code:"CG",label:"Congo, Republic of the",phone:"242"},{code:"CH",label:"Switzerland",phone:"41"},{code:"CI",label:"Cote d'Ivoire",phone:"225"},{code:"CK",label:"Cook Islands",phone:"682"},{code:"CL",label:"Chile",phone:"56"},{code:"CM",label:"Cameroon",phone:"237"},{code:"CN",label:"China",phone:"86"},{code:"CO",label:"Colombia",phone:"57"},{code:"CR",label:"Costa Rica",phone:"506"},{code:"CU",label:"Cuba",phone:"53"},{code:"CV",label:"Cape Verde",phone:"238"},{code:"CW",label:"Curacao",phone:"599"},{code:"CX",label:"Christmas Island",phone:"61"},{code:"CY",label:"Cyprus",phone:"357"},{code:"CZ",label:"Czech Republic",phone:"420"},{code:"DE",label:"Germany",phone:"49",suggested:!0},{code:"DJ",label:"Djibouti",phone:"253"},{code:"DK",label:"Denmark",phone:"45"},{code:"DM",label:"Dominica",phone:"1-767"},{code:"DO",label:"Dominican Republic",phone:"1-809"},{code:"DZ",label:"Algeria",phone:"213"},{code:"EC",label:"Ecuador",phone:"593"},{code:"EE",label:"Estonia",phone:"372"},{code:"EG",label:"Egypt",phone:"20"},{code:"EH",label:"Western Sahara",phone:"212"},{code:"ER",label:"Eritrea",phone:"291"},{code:"ES",label:"Spain",phone:"34"},{code:"ET",label:"Ethiopia",phone:"251"},{code:"FI",label:"Finland",phone:"358"},{code:"FJ",label:"Fiji",phone:"679"},{code:"FK",label:"Falkland Islands (Malvinas)",phone:"500"},{code:"FM",label:"Micronesia, Federated States of",phone:"691"},{code:"FO",label:"Faroe Islands",phone:"298"},{code:"FR",label:"France",phone:"33",suggested:!0},{code:"GA",label:"Gabon",phone:"241"},{code:"GB",label:"United Kingdom",phone:"44"},{code:"GD",label:"Grenada",phone:"1-473"},{code:"GE",label:"Georgia",phone:"995"},{code:"GF",label:"French Guiana",phone:"594"},{code:"GG",label:"Guernsey",phone:"44"},{code:"GH",label:"Ghana",phone:"233"},{code:"GI",label:"Gibraltar",phone:"350"},{code:"GL",label:"Greenland",phone:"299"},{code:"GM",label:"Gambia",phone:"220"},{code:"GN",label:"Guinea",phone:"224"},{code:"GP",label:"Guadeloupe",phone:"590"},{code:"GQ",label:"Equatorial Guinea",phone:"240"},{code:"GR",label:"Greece",phone:"30"},{code:"GS",label:"South Georgia and the South Sandwich Islands",phone:"500"},{code:"GT",label:"Guatemala",phone:"502"},{code:"GU",label:"Guam",phone:"1-671"},{code:"GW",label:"Guinea-Bissau",phone:"245"},{code:"GY",label:"Guyana",phone:"592"},{code:"HK",label:"Hong Kong",phone:"852"},{code:"HM",label:"Heard Island and McDonald Islands",phone:"672"},{code:"HN",label:"Honduras",phone:"504"},{code:"HR",label:"Croatia",phone:"385"},{code:"HT",label:"Haiti",phone:"509"},{code:"HU",label:"Hungary",phone:"36"},{code:"ID",label:"Indonesia",phone:"62"},{code:"IE",label:"Ireland",phone:"353"},{code:"IL",label:"Israel",phone:"972"},{code:"IM",label:"Isle of Man",phone:"44"},{code:"IN",label:"India",phone:"91"},{code:"IO",label:"British Indian Ocean Territory",phone:"246"},{code:"IQ",label:"Iraq",phone:"964"},{code:"IR",label:"Iran, Islamic Republic of",phone:"98"},{code:"IS",label:"Iceland",phone:"354"},{code:"IT",label:"Italy",phone:"39"},{code:"JE",label:"Jersey",phone:"44"},{code:"JM",label:"Jamaica",phone:"1-876"},{code:"JO",label:"Jordan",phone:"962"},{code:"JP",label:"Japan",phone:"81",suggested:!0},{code:"KE",label:"Kenya",phone:"254"},{code:"KG",label:"Kyrgyzstan",phone:"996"},{code:"KH",label:"Cambodia",phone:"855"},{code:"KI",label:"Kiribati",phone:"686"},{code:"KM",label:"Comoros",phone:"269"},{code:"KN",label:"Saint Kitts and Nevis",phone:"1-869"},{code:"KP",label:"Korea, Democratic People's Republic of",phone:"850"},{code:"KR",label:"Korea, Republic of",phone:"82"},{code:"KW",label:"Kuwait",phone:"965"},{code:"KY",label:"Cayman Islands",phone:"1-345"},{code:"KZ",label:"Kazakhstan",phone:"7"},{code:"LA",label:"Lao People's Democratic Republic",phone:"856"},{code:"LB",label:"Lebanon",phone:"961"},{code:"LC",label:"Saint Lucia",phone:"1-758"},{code:"LI",label:"Liechtenstein",phone:"423"},{code:"LK",label:"Sri Lanka",phone:"94"},{code:"LR",label:"Liberia",phone:"231"},{code:"LS",label:"Lesotho",phone:"266"},{code:"LT",label:"Lithuania",phone:"370"},{code:"LU",label:"Luxembourg",phone:"352"},{code:"LV",label:"Latvia",phone:"371"},{code:"LY",label:"Libya",phone:"218"},{code:"MA",label:"Morocco",phone:"212"},{code:"MC",label:"Monaco",phone:"377"},{code:"MD",label:"Moldova, Republic of",phone:"373"},{code:"ME",label:"Montenegro",phone:"382"},{code:"MF",label:"Saint Martin (French part)",phone:"590"},{code:"MG",label:"Madagascar",phone:"261"},{code:"MH",label:"Marshall Islands",phone:"692"},{code:"MK",label:"Macedonia, the Former Yugoslav Republic of",phone:"389"},{code:"ML",label:"Mali",phone:"223"},{code:"MM",label:"Myanmar",phone:"95"},{code:"MN",label:"Mongolia",phone:"976"},{code:"MO",label:"Macao",phone:"853"},{code:"MP",label:"Northern Mariana Islands",phone:"1-670"},{code:"MQ",label:"Martinique",phone:"596"},{code:"MR",label:"Mauritania",phone:"222"},{code:"MS",label:"Montserrat",phone:"1-664"},{code:"MT",label:"Malta",phone:"356"},{code:"MU",label:"Mauritius",phone:"230"},{code:"MV",label:"Maldives",phone:"960"},{code:"MW",label:"Malawi",phone:"265"},{code:"MX",label:"Mexico",phone:"52"},{code:"MY",label:"Malaysia",phone:"60"},{code:"MZ",label:"Mozambique",phone:"258"},{code:"NA",label:"Namibia",phone:"264"},{code:"NC",label:"New Caledonia",phone:"687"},{code:"NE",label:"Niger",phone:"227"},{code:"NF",label:"Norfolk Island",phone:"672"},{code:"NG",label:"Nigeria",phone:"234"},{code:"NI",label:"Nicaragua",phone:"505"},{code:"NL",label:"Netherlands",phone:"31"},{code:"NO",label:"Norway",phone:"47"},{code:"NP",label:"Nepal",phone:"977"},{code:"NR",label:"Nauru",phone:"674"},{code:"NU",label:"Niue",phone:"683"},{code:"NZ",label:"New Zealand",phone:"64"},{code:"OM",label:"Oman",phone:"968"},{code:"PA",label:"Panama",phone:"507"},{code:"PE",label:"Peru",phone:"51"},{code:"PF",label:"French Polynesia",phone:"689"},{code:"PG",label:"Papua New Guinea",phone:"675"},{code:"PH",label:"Philippines",phone:"63"},{code:"PK",label:"Pakistan",phone:"92"},{code:"PL",label:"Poland",phone:"48"},{code:"PM",label:"Saint Pierre and Miquelon",phone:"508"},{code:"PN",label:"Pitcairn",phone:"870"},{code:"PR",label:"Puerto Rico",phone:"1"},{code:"PS",label:"Palestine, State of",phone:"970"},{code:"PT",label:"Portugal",phone:"351"},{code:"PW",label:"Palau",phone:"680"},{code:"PY",label:"Paraguay",phone:"595"},{code:"QA",label:"Qatar",phone:"974"},{code:"RE",label:"Reunion",phone:"262"},{code:"RO",label:"Romania",phone:"40"},{code:"RS",label:"Serbia",phone:"381"},{code:"RU",label:"Russian Federation",phone:"7"},{code:"RW",label:"Rwanda",phone:"250"},{code:"SA",label:"Saudi Arabia",phone:"966"},{code:"SB",label:"Solomon Islands",phone:"677"},{code:"SC",label:"Seychelles",phone:"248"},{code:"SD",label:"Sudan",phone:"249"},{code:"SE",label:"Sweden",phone:"46"},{code:"SG",label:"Singapore",phone:"65"},{code:"SH",label:"Saint Helena",phone:"290"},{code:"SI",label:"Slovenia",phone:"386"},{code:"SJ",label:"Svalbard and Jan Mayen",phone:"47"},{code:"SK",label:"Slovakia",phone:"421"},{code:"SL",label:"Sierra Leone",phone:"232"},{code:"SM",label:"San Marino",phone:"378"},{code:"SN",label:"Senegal",phone:"221"},{code:"SO",label:"Somalia",phone:"252"},{code:"SR",label:"Suriname",phone:"597"},{code:"SS",label:"South Sudan",phone:"211"},{code:"ST",label:"Sao Tome and Principe",phone:"239"},{code:"SV",label:"El Salvador",phone:"503"},{code:"SX",label:"Sint Maarten (Dutch part)",phone:"1-721"},{code:"SY",label:"Syrian Arab Republic",phone:"963"},{code:"SZ",label:"Swaziland",phone:"268"},{code:"TC",label:"Turks and Caicos Islands",phone:"1-649"},{code:"TD",label:"Chad",phone:"235"},{code:"TF",label:"French Southern Territories",phone:"262"},{code:"TG",label:"Togo",phone:"228"},{code:"TH",label:"Thailand",phone:"66"},{code:"TJ",label:"Tajikistan",phone:"992"},{code:"TK",label:"Tokelau",phone:"690"},{code:"TL",label:"Timor-Leste",phone:"670"},{code:"TM",label:"Turkmenistan",phone:"993"},{code:"TN",label:"Tunisia",phone:"216"},{code:"TO",label:"Tonga",phone:"676"},{code:"TR",label:"Turkey",phone:"90"},{code:"TT",label:"Trinidad and Tobago",phone:"1-868"},{code:"TV",label:"Tuvalu",phone:"688"},{code:"TW",label:"Taiwan",phone:"886"},{code:"TZ",label:"United Republic of Tanzania",phone:"255"},{code:"UA",label:"Ukraine",phone:"380"},{code:"UG",label:"Uganda",phone:"256"},{code:"US",label:"United States",phone:"1",suggested:!0},{code:"UY",label:"Uruguay",phone:"598"},{code:"UZ",label:"Uzbekistan",phone:"998"},{code:"VA",label:"Holy See (Vatican City State)",phone:"379"},{code:"VC",label:"Saint Vincent and the Grenadines",phone:"1-784"},{code:"VE",label:"Venezuela",phone:"58"},{code:"VG",label:"British Virgin Islands",phone:"1-284"},{code:"VI",label:"US Virgin Islands",phone:"1-340"},{code:"VN",label:"Vietnam",phone:"84"},{code:"VU",label:"Vanuatu",phone:"678"},{code:"WF",label:"Wallis and Futuna",phone:"681"},{code:"WS",label:"Samoa",phone:"685"},{code:"XK",label:"Kosovo",phone:"383"},{code:"YE",label:"Yemen",phone:"967"},{code:"YT",label:"Mayotte",phone:"262"},{code:"ZA",label:"South Africa",phone:"27"},{code:"ZM",label:"Zambia",phone:"260"},{code:"ZW",label:"Zimbabwe",phone:"263"}],M1e=EN({name:Ea().required("Name is required"),rating:IN().min(0).max(5).required("Rating is required"),isSpecial:xN(),color:Ea().required("Color is required"),origin:Ea().required("Origin is required"),category:Ea().required("Category is required"),detail:Ea().required("Detail is required"),video:Ea().nullable()});function R1e(){const{theme:e}=p.useContext(Po),t=Su(),n=Gre(t.breakpoints.down("sm")),[r,o]=p.useState([]),[i,s]=p.useState(null),[a,l]=p.useState(null),[c,u]=p.useState(!1),[d,f]=p.useState("create"),[h,m]=p.useState(null),[y,C]=p.useState(null),[w,b]=p.useState(!1),g=async()=>{try{const $=(await BF()).reverse().map((L,F)=>({...L,id:L.Id||`orchid-${F+1}`,index:F+1}));o($)}catch(_){console.error("Failed to fetch orchids:",_)}};p.useEffect(()=>{g()},[]);const x=(_,$)=>{s(_.currentTarget),l($)},P=()=>{s(null),l(null),f("create")},I=_=>{l(_),f("update"),u(!0),C(_.image),s(null)},T=()=>{b(!0),s(null)},M=async()=>{try{await gle(a.Id),await g(),b(!1),P()}catch(_){console.error("Error deleting orchid: ",_)}},k=()=>{b(!1),P()},S=()=>{l(null),f("create"),u(!0),C(null)},R=()=>{a&&l(null),u(!1),C(null),O.resetForm()},O=kSe({initialValues:{name:"",rating:0,isSpecial:!1,color:"",origin:"",category:"",detail:"",video:"",image:null},validationSchema:M1e,onSubmit:async(_,{setSubmitting:$,resetForm:L})=>{try{let F=La;if(_.image&&d==="create"||d==="update"&&_.image!==(a==null?void 0:a.image)){const z=gee(xee,`orchid-images/${_.image.name}`);await hee(z,_.image),F=await mee(z)}let j=!1;a!==null&&F===La&&a.image!==null&&(j=!0);const N={..._,image:j?a.image:F};if(d==="create")await hle(N);else if(d==="update"&&a)await mle(a.Id,N),P();else throw new Error("Invalid modal mode or missing selectedOrchid");await g(),L(),u(!1),C(null)}catch(F){console.error(`Error ${d==="create"?"creating":"updating"} orchid:`,F)}finally{$(!1)}}});p.useEffect(()=>{a&&d==="update"&&(O.setValues({name:a.name,rating:a.rating,isSpecial:a.isSpecial,color:a.color,origin:a.origin,category:a.category,detail:a.detail,video:a.video,image:a.image}),C(a.image))},[a,d,c]),p.useEffect(()=>{if(!h)return;const _=URL.createObjectURL(h);return C(_),()=>URL.revokeObjectURL(_)},[h]);const A=_=>{if(!_.currentTarget.files||_.currentTarget.files.length===0){m(null);return}m(_.currentTarget.files[0])},D=[{field:"index",headerClassName:"super-app-theme--header",headerName:"ID",width:60},{field:"name",headerClassName:"super-app-theme--header",headerName:"Orchid name",width:140},{field:"rating",headerClassName:"super-app-theme--header",headerName:"Rating",width:140,renderCell:_=>v.jsx(Qm,{name:"read-only",value:Number(_.value),readOnly:!0})},{field:"isSpecial",headerClassName:"super-app-theme--header",headerName:"Special Orchid",width:150,renderCell:_=>_.value?v.jsx(Ni,{icon:v.jsx(l9,{}),label:"Special",size:"small",sx:{backgroundColor:We(e.chip.backgroundColor,.1),color:e.chip.color,borderColor:e.chip.borderColor,"& .MuiChip-icon":{color:e.icon.color}}}):v.jsx(Ni,{label:"Normal",size:"small",variant:"outlined",sx:{borderColor:We(e.chip.borderColor,.5),color:e.text.secondary}})},{field:"image",headerClassName:"super-app-theme--header",headerName:"Image",width:100,renderCell:_=>v.jsx("img",{src:_.value||"src/assets/images/image.jpg",alt:`${_.row.name} orchid`,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"6px"}})},{field:"color",headerClassName:"super-app-theme--header",headerName:"Color",width:100},{field:"origin",headerClassName:"super-app-theme--header",headerName:"Origin",width:130},{field:"category",headerClassName:"super-app-theme--header",headerName:"Category",width:130},{field:"video",headerClassName:"super-app-theme--header",headerName:"Video",width:150,renderCell:_=>v.jsx("iframe",{width:"100%",height:"100%",src:_.value||"https://www.youtube.com/embed/dQw4w9WgXcQ?si=xaqoh0xatwfp_iun",title:`${_.row.name} video`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,style:{borderRadius:"6px"}})},{field:"detail",headerClassName:"super-app-theme--header",headerName:"Detail",width:200,flex:1},{field:"actions",headerClassName:"super-app-theme--header",headerName:"Actions",width:100,renderCell:_=>v.jsx(an,{onClick:$=>x($,_.row),size:"small",sx:{color:e.icon.color},children:v.jsx(w9,{})})}];return v.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,padding:n?"16px":"68px"},children:[v.jsxs(Pr,{elevation:3,sx:{padding:n?"16px":"24px",borderRadius:"12px",backgroundColor:e.card.backgroundColor,color:e.card.color,boxShadow:e.elevation[3]},children:[v.jsxs(Qe,{sx:{display:"flex",flexDirection:n?"column":"row",justifyContent:"space-between",alignItems:n?"flex-start":"center",marginBottom:"24px"},children:[v.jsx(Be,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:e.text.primary},children:"Orchid Management"}),v.jsx(mr,{variant:"contained",startIcon:v.jsx(i9,{}),onClick:S,sx:{backgroundColor:e.button.primary,color:e.text.primary,"&:hover":{backgroundColor:e.button.hover},marginTop:n?2:0,boxShadow:e.elevation[1]},children:"Add Orchid"})]}),v.jsx(b0e,{rowHeight:100,rows:r,columns:D,initialState:{pagination:{paginationModel:{page:0,pageSize:10}}},pageSizeOptions:[5,10,25],disableRowSelectionOnClick:!0,sx:{border:`1px solid ${e.divider}`,borderRadius:"8px","& .MuiDataGrid-root":{backgroundColor:We(e.card.backgroundColor,.6),color:e.text.primary},"& .super-app-theme--header":{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,borderBottom:`2px solid ${e.divider}`},"& .MuiDataGrid-cell":{borderBottom:`1px solid ${We(e.divider,.3)}`,color:e.text.primary},"& .MuiDataGrid-cell:focus":{outline:"none"},"& .MuiDataGrid-row:hover":{backgroundColor:We(e.action.hover,.1)},"& .MuiDataGrid-footer":{backgroundColor:We(e.card.backgroundColor,.8),color:e.text.secondary,borderTop:`1px solid ${e.divider}`},"& .MuiTablePagination-root":{color:e.text.secondary},"& .MuiButtonBase-root":{color:e.text.primary},"& .MuiCheckbox-root":{color:e.icon.color},"& .MuiDataGrid-columnSeparator":{color:e.divider}}})]}),v.jsxs(Em,{anchorEl:i,open:!!i,onClose:P,disableScrollLock:!0,PaperProps:{sx:{backgroundColor:e.card.backgroundColor,color:e.text.primary,boxShadow:e.elevation[2]}},children:[v.jsx(Mn,{onClick:()=>I(a),children:"Update"}),v.jsx(Mn,{onClick:T,children:"Delete"})]}),v.jsx(Qf,{open:c,onClose:R,disableScrollLock:!0,children:v.jsx(sS,{in:c,children:v.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:e.card.backgroundColor,boxShadow:24,p:4,borderRadius:2,maxHeight:"90vh",overflowY:"auto",color:e.text.primary},children:[v.jsx(Be,{variant:"h6",component:"h2",gutterBottom:!0,children:d==="create"?"Add New Orchid":"Update Orchid"}),v.jsx("form",{onSubmit:O.handleSubmit,children:v.jsxs(fc,{fullWidth:!0,sx:{gap:2},children:[v.jsx(Ls,{fullWidth:!0,id:"name",name:"name",label:"Orchid Name",value:O.values.name,onChange:O.handleChange,error:O.touched.name&&!!O.errors.name,helperText:O.touched.name&&O.errors.name,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsxs(fc,{fullWidth:!0,children:[v.jsx(Qe,{children:v.jsx(Be,{component:"legend",children:"Rating"})}),v.jsx(Qm,{name:"rating",value:Number(O.values.rating),onChange:(_,$)=>{O.setFieldValue("rating",$)}})]}),v.jsxs(Qe,{children:[v.jsx(Be,{component:"legend",children:"Special Orchid"}),v.jsx(eC,{control:v.jsx(U_,{name:"isSpecial",checked:O.values.isSpecial,onChange:O.handleChange})})]}),v.jsx(Ls,{fullWidth:!0,id:"color",name:"color",label:"Orchid Color",value:O.values.color,onChange:O.handleChange,error:O.touched.color&&!!O.errors.color,helperText:O.touched.color&&O.errors.color,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsxs(fc,{fullWidth:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}},children:[v.jsx(Ym,{id:"origin-label",children:"Orchid Origin"}),v.jsx(nu,{labelId:"origin-label",id:"origin",name:"origin",label:"Orchid Origin",value:O.values.origin,onChange:O.handleChange,error:O.touched.origin&&!!O.errors.origin,children:O1e.map(_=>v.jsxs(Mn,{value:_.label,children:[v.jsx("img",{loading:"lazy",width:"20",srcSet:`https://flagcdn.com/w40/${_.code.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${_.code.toLowerCase()}.png`,alt:""}),_.label]},_.code))})]}),v.jsxs(fc,{fullWidth:!0,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}},children:[v.jsx(Ym,{id:"category-label",children:"Orchid Category"}),v.jsx(nu,{labelId:"category-label",id:"category",name:"category",label:"Orchid Category",value:O.values.category,onChange:O.handleChange,error:O.touched.category&&!!O.errors.category,children:E1e.map(_=>v.jsx(Mn,{value:_.name,children:_.name},_.id))})]}),v.jsx(Ls,{fullWidth:!0,id:"detail",name:"detail",label:"Detail",multiline:!0,rows:4,value:O.values.detail,onChange:O.handleChange,error:O.touched.detail&&!!O.errors.detail,helperText:O.touched.detail&&O.errors.detail,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx(Ls,{fullWidth:!0,id:"video",name:"video",label:"Orchid Video URL",value:O.values.video,onChange:O.handleChange,error:O.touched.video&&!!O.errors.video,helperText:O.touched.video&&O.errors.video,sx:{"& .MuiInputLabel-root":{color:e.text.secondary},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.text.secondary},"&:hover fieldset":{borderColor:e.text.primary},"&.Mui-focused fieldset":{borderColor:e.text.primary}},"& .MuiInputBase-input":{color:e.text.primary}}}),v.jsx("input",{accept:"image/*",style:{display:"none"},id:"raised-button-file",type:"file",onChange:_=>{A(_),O.setFieldValue("image",_.currentTarget.files[0])}}),v.jsx("label",{htmlFor:"raised-button-file",children:v.jsx(mr,{variant:"contained",component:"span",startIcon:v.jsx(d9,{}),sx:{mt:2,mb:2},children:"Upload Image"})}),y&&v.jsx(Qe,{sx:{mt:2,mb:2},children:v.jsx("img",{src:y,alt:"Image preview",style:{maxWidth:"100%",maxHeight:"200px",objectFit:"contain"}})}),v.jsx(mr,{type:"submit",variant:"contained",color:"primary",disabled:O.isSubmitting,sx:{mt:2},children:O.isSubmitting?"Submitting...":d==="create"?"Submit":"Update"})]})})]})})}),v.jsxs(lre,{open:w,onClose:k,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundColor:e.card.backgroundColor,color:e.text.primary}},disableScrollLock:!0,children:[v.jsx(Ire,{id:"alert-dialog-title",children:"Confirm Deletion"}),v.jsx(yre,{children:v.jsx(xre,{id:"alert-dialog-description",sx:{color:e.text.secondary},children:"Are you sure you want to delete this orchid? This action cannot be undone."})}),v.jsxs(fre,{children:[v.jsx(mr,{onClick:k,sx:{color:e.text.primary},children:"Cancel"}),v.jsx(mr,{onClick:M,autoFocus:!0,sx:{color:e.error.main},children:"Delete"})]})]})]})}function $1e(){return v.jsxs("div",{style:{position:"relative"},children:[v.jsx(Aie,{}),v.jsxs(Z3,{children:[v.jsx(vs,{path:"/fer-lab1/",element:v.jsx(vle,{})}),v.jsx(vs,{path:"/fer-lab1/natural",element:v.jsx(wue,{})}),v.jsx(vs,{path:"/fer-lab1/:id",element:v.jsx(bue,{})}),v.jsx(vs,{path:"/fer-lab1/news",element:v.jsx(Oue,{})}),v.jsx(vs,{path:"/fer-lab1/about",element:v.jsx(Sue,{})}),v.jsx(vs,{path:"/fer-lab1/contact",element:v.jsx(kue,{})}),v.jsx(vs,{path:"/fer-lab1/dashboard",element:v.jsx(Mue,{children:v.jsx(R1e,{})})})]}),v.jsx(cle,{})]})}E$(document.getElementById("root")).render(v.jsx(p.StrictMode,{children:v.jsx(See,{children:v.jsx(s4,{children:v.jsx(K8,{children:v.jsx($1e,{})})})})}))});export default _1e(); diff --git a/index.html b/index.html index 751f73b..c63ad08 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React - +