From 0deb369d87b3d6a759fd2ee17c04107a6cc04060 Mon Sep 17 00:00:00 2001 From: Hoang-Nguyen-Huy Date: Tue, 22 Oct 2024 10:05:19 +0000 Subject: [PATCH] deploy: 0f75326cc0228e608317ef7503904c30344094c6 --- assets/index-CGagG3WA.js | 1952 ++++++++++++++++++++++++++++++++++++++ assets/index-CWoPqGAR.js | 204 ---- index.html | 2 +- 3 files changed, 1953 insertions(+), 205 deletions(-) create mode 100644 assets/index-CGagG3WA.js delete mode 100644 assets/index-CWoPqGAR.js diff --git a/assets/index-CGagG3WA.js b/assets/index-CGagG3WA.js new file mode 100644 index 0000000..05d1654 --- /dev/null +++ b/assets/index-CGagG3WA.js @@ -0,0 +1,1952 @@ +var hR=Object.defineProperty;var mR=(e,t,n)=>t in e?hR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ga=(e,t,n)=>mR(e,typeof t!="symbol"?t+"":t,n);function gR(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 Tc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vR(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 AS={exports:{}},Gd={},MS={exports:{}},we={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xl=Symbol.for("react.element"),yR=Symbol.for("react.portal"),bR=Symbol.for("react.fragment"),wR=Symbol.for("react.strict_mode"),xR=Symbol.for("react.profiler"),SR=Symbol.for("react.provider"),CR=Symbol.for("react.context"),kR=Symbol.for("react.forward_ref"),TR=Symbol.for("react.suspense"),PR=Symbol.for("react.memo"),ER=Symbol.for("react.lazy"),L0=Symbol.iterator;function OR(e){return e===null||typeof e!="object"?null:(e=L0&&e[L0]||e["@@iterator"],typeof e=="function"?e:null)}var DS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},LS=Object.assign,jS={};function na(e,t,n){this.props=e,this.context=t,this.refs=jS,this.updater=n||DS}na.prototype.isReactComponent={};na.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function NS(){}NS.prototype=na.prototype;function qg(e,t,n){this.props=e,this.context=t,this.refs=jS,this.updater=n||DS}var Yg=qg.prototype=new NS;Yg.constructor=qg;LS(Yg,na.prototype);Yg.isPureReactComponent=!0;var j0=Array.isArray,BS=Object.prototype.hasOwnProperty,Xg={current:null},FS={key:!0,ref:!0,__self:!0,__source:!0};function zS(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)BS.call(t,r)&&!FS.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,Y=A[Q];if(0>>1;Qo(oe,F))feo(ie,oe)?(A[Q]=ie,A[fe]=F,Q=fe):(A[Q]=oe,A[Z]=F,Q=Z);else if(feo(ie,F))A[Q]=ie,A[fe]=F,Q=fe;else break e}}return L}function o(A,L){var F=A.sortIndex-L.sortIndex;return F!==0?F:A.id-L.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,v=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(A){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=A)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function w(A){if(y=!1,p(A),!v)if(n(l)!==null)v=!0,M(S);else{var L=n(c);L!==null&&N(w,L.startTime-A)}}function S(A,L){v=!1,y&&(y=!1,m(E),E=-1),h=!0;var F=f;try{for(p(L),d=n(l);d!==null&&(!(d.expirationTime>L)||A&&!O());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var Y=Q(d.expirationTime<=L);L=e.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(l)&&r(l),p(L)}else r(l);d=n(l)}if(d!==null)var te=!0;else{var Z=n(c);Z!==null&&N(w,Z.startTime-L),te=!1}return te}finally{d=null,f=F,h=!1}}var T=!1,P=null,E=-1,R=5,b=-1;function O(){return!(e.unstable_now()-bA||125Q?(A.sortIndex=F,t(c,A),n(l)===null&&A===n(c)&&(y?(m(E),E=-1):y=!0,N(w,F-Q))):(A.sortIndex=Y,t(l,A),v||h||(v=!0,M(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var L=f;return function(){var F=f;f=L;try{return A.apply(this,arguments)}finally{f=F}}}})(GS);WS.exports=GS;var BR=WS.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var FR=k,yn=BR;function B(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"),Qh=Object.prototype.hasOwnProperty,zR=/^[: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]*$/,B0={},F0={};function VR(e){return Qh.call(F0,e)?!0:Qh.call(B0,e)?!1:zR.test(e)?F0[e]=!0:(B0[e]=!0,!1)}function HR(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 UR(e,t,n,r){if(t===null||typeof t>"u"||HR(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 Kt(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 Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Kt(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){Rt[e]=new Kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jg=/[\-:]([a-z])/g;function Zg(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(Jg,Zg);Rt[t]=new Kt(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(Jg,Zg);Rt[t]=new Kt(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(Jg,Zg);Rt[t]=new Kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ev(e,t,n,r){var o=Rt.hasOwnProperty(t)?Rt[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{Ip=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?La(e):""}function WR(e){switch(e.tag){case 5:return La(e.type);case 16:return La("Lazy");case 13:return La("Suspense");case 19:return La("SuspenseList");case 0:case 2:case 15:return e=_p(e.type,!1),e;case 11:return e=_p(e.type.render,!1),e;case 1:return e=_p(e.type,!0),e;default:return""}}function tm(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 Qi:return"Fragment";case Xi:return"Portal";case Jh:return"Profiler";case tv:return"StrictMode";case Zh:return"Suspense";case em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YS:return(e.displayName||"Context")+".Consumer";case qS:return(e._context.displayName||"Context")+".Provider";case nv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rv:return t=e.displayName||null,t!==null?t:tm(e.type)||"Memo";case po:t=e._payload,e=e._init;try{return tm(e(t))}catch{}}return null}function GR(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 tm(t);case 8:return t===tv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function QS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KR(e){var t=QS(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 Oc(e){e._valueTracker||(e._valueTracker=KR(e))}function JS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=QS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Au(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 nm(e,t){var n=t.checked;return nt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function V0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ZS(e,t){t=t.checked,t!=null&&ev(e,"checked",t,!1)}function rm(e,t){ZS(e,t);var n=jo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?om(e,t.type,n):t.hasOwnProperty("defaultValue")&&om(e,t.type,jo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function H0(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 om(e,t,n){(t!=="number"||Au(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ja=Array.isArray;function ms(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Rc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ga={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},qR=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){qR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function rC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function oC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var YR=nt({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 am(e,t){if(t){if(YR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function lm(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 cm=null;function ov(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var um=null,gs=null,vs=null;function G0(e){if(e=Zl(e)){if(typeof um!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Qd(t),um(e.stateNode,e.type,t))}}function iC(e){gs?vs?vs.push(e):vs=[e]:gs=e}function sC(){if(gs){var e=gs,t=vs;if(vs=gs=null,G0(e),t)for(e=0;e>>=0,e===0?32:31-(sI(e)/aI|0)|0}var Ic=64,_c=4194304;function Na(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 ju(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=Na(a):(i&=s,i!==0&&(r=Na(i)))}else s=n&~o,s!==0?r=Na(s):i!==0&&(r=Na(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 Ql(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qn(t),e[t]=n}function dI(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=qa),tb=" ",nb=!1;function PC(e,t){switch(e){case"keyup":return BI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function EC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ji=!1;function zI(e,t){switch(e){case"compositionend":return EC(t);case"keypress":return t.which!==32?null:(nb=!0,tb);case"textInput":return e=t.data,e===tb&&nb?null:e;default:return null}}function VI(e,t){if(Ji)return e==="compositionend"||!fv&&PC(e,t)?(e=kC(),lu=cv=So=null,Ji=!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=sb(n)}}function _C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $C(){for(var e=window,t=Au();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Au(e.document)}return t}function pv(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 QI(e){var t=$C(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_C(n.ownerDocument.documentElement,n)){if(r!==null&&pv(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=ab(n,i);var s=ab(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,Zi=null,gm=null,Xa=null,vm=!1;function lb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vm||Zi==null||Zi!==Au(r)||(r=Zi,"selectionStart"in r&&pv(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}),Xa&&bl(Xa,r)||(Xa=r,r=Fu(gm,"onSelect"),0ns||(e.current=Cm[ns],Cm[ns]=null,ns--)}function He(e,t){ns++,Cm[ns]=e.current,e.current=t}var No={},Bt=Wo(No),tn=Wo(!1),xi=No;function Is(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nn(e){return e=e.childContextTypes,e!=null}function Vu(){Ge(tn),Ge(Bt)}function mb(e,t,n){if(Bt.current!==No)throw Error(B(168));He(Bt,t),He(tn,n)}function zC(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(B(108,GR(e)||"Unknown",o));return nt({},n,r)}function Hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,xi=Bt.current,He(Bt,e),He(tn,tn.current),!0}function gb(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=zC(e,t,xi),r.__reactInternalMemoizedMergedChildContext=e,Ge(tn),Ge(Bt),He(Bt,e)):Ge(tn),He(tn,n)}var Ar=null,Jd=!1,Wp=!1;function VC(e){Ar===null?Ar=[e]:Ar.push(e)}function c_(e){Jd=!0,VC(e)}function Go(){if(!Wp&&Ar!==null){Wp=!0;var e=0,t=De;try{var n=Ar;for(De=1;e>=s,o-=s,Dr=1<<32-Qn(t)+o|n<E?(R=P,P=null):R=P.sibling;var b=f(m,P,p[E],w);if(b===null){P===null&&(P=R);break}e&&P&&b.alternate===null&&t(m,P),g=i(b,g,E),T===null?S=b:T.sibling=b,T=b,P=R}if(E===p.length)return n(m,P),Ye&&ti(m,E),S;if(P===null){for(;EE?(R=P,P=null):R=P.sibling;var O=f(m,P,b.value,w);if(O===null){P===null&&(P=R);break}e&&P&&O.alternate===null&&t(m,P),g=i(O,g,E),T===null?S=O:T.sibling=O,T=O,P=R}if(b.done)return n(m,P),Ye&&ti(m,E),S;if(P===null){for(;!b.done;E++,b=p.next())b=d(m,b.value,w),b!==null&&(g=i(b,g,E),T===null?S=b:T.sibling=b,T=b);return Ye&&ti(m,E),S}for(P=r(m,P);!b.done;E++,b=p.next())b=h(P,m,E,b.value,w),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?E:b.key),g=i(b,g,E),T===null?S=b:T.sibling=b,T=b);return e&&P.forEach(function(_){return t(m,_)}),Ye&&ti(m,E),S}function C(m,g,p,w){if(typeof p=="object"&&p!==null&&p.type===Qi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ec:e:{for(var S=p.key,T=g;T!==null;){if(T.key===S){if(S=p.type,S===Qi){if(T.tag===7){n(m,T.sibling),g=o(T,p.props.children),g.return=m,m=g;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===po&&bb(S)===T.type){n(m,T.sibling),g=o(T,p.props),g.ref=Sa(m,T,p),g.return=m,m=g;break e}n(m,T);break}else t(m,T);T=T.sibling}p.type===Qi?(g=vi(p.props.children,m.mode,w,p.key),g.return=m,m=g):(w=gu(p.type,p.key,p.props,null,m.mode,w),w.ref=Sa(m,g,p),w.return=m,m=w)}return s(m);case Xi:e:{for(T=p.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===p.containerInfo&&g.stateNode.implementation===p.implementation){n(m,g.sibling),g=o(g,p.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Zp(p,m.mode,w),g.return=m,m=g}return s(m);case po:return T=p._init,C(m,g,T(p._payload),w)}if(ja(p))return v(m,g,p,w);if(va(p))return y(m,g,p,w);Nc(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,p),g.return=m,m=g):(n(m,g),g=Jp(p,m.mode,w),g.return=m,m=g),s(m)):n(m,g)}return C}var $s=GC(!0),KC=GC(!1),Gu=Wo(null),Ku=null,is=null,vv=null;function yv(){vv=is=Ku=null}function bv(e){var t=Gu.current;Ge(Gu),e._currentValue=t}function Pm(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 bs(e,t){Ku=e,vv=is=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Zt=!0),e.firstContext=null)}function Nn(e){var t=e._currentValue;if(vv!==e)if(e={context:e,memoizedValue:t,next:null},is===null){if(Ku===null)throw Error(B(308));is=e,Ku.dependencies={lanes:0,firstContext:e}}else is=is.next=e;return t}var ui=null;function wv(e){ui===null?ui=[e]:ui.push(e)}function qC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,wv(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xr(e,r)}function Xr(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 ho=!1;function xv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function YC(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 Vr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xr(e,n)}return o=r.interleaved,o===null?(t.next=t,wv(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xr(e,n)}function uu(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,sv(e,n)}}function wb(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 qu(e,t,n,r){var o=e.updateQueue;ho=!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 v=e,y=a;switch(f=t,h=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=nt({},d,f);break e;case 2:ho=!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);ki|=s,e.lanes=s,e.memoizedState=d}}function xb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Kp.transition;Kp.transition={};try{e(!1),t()}finally{De=n,Kp.transition=r}}function f2(){return Bn().memoizedState}function p_(e,t,n){var r=$o(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},p2(e))h2(t,n);else if(n=qC(e,t,n,r),n!==null){var o=Ut();Jn(n,e,r,o),m2(n,t,r)}}function h_(e,t,n){var r=$o(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(p2(e))h2(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,er(a,s)){var l=t.interleaved;l===null?(o.next=o,wv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=qC(e,t,o,r),n!==null&&(o=Ut(),Jn(n,e,r,o),m2(n,t,r))}}function p2(e){var t=e.alternate;return e===tt||t!==null&&t===tt}function h2(e,t){Qa=Xu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sv(e,n)}}var Qu={readContext:Nn,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},m_={readContext:Nn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Nn,useEffect:Cb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fu(4194308,4,a2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){return fu(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();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=p_.bind(null,tt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:Sb,useDebugValue:Rv,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=f_.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=tt,o=lr();if(Ye){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),Ct===null)throw Error(B(349));Ci&30||ZC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Cb(t2.bind(null,r,i,e),[e]),r.flags|=2048,El(9,e2.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Ct.identifierPrefix;if(Ye){var n=Lr,r=Dr;n=(r&~(1<<32-Qn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tl++,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[fr]=t,e[Sl]=r,T2(e,t,!1,!1),t.stateNode=e;e:{switch(s=lm(n,r),n){case"dialog":We("cancel",e),We("close",e),o=r;break;case"iframe":case"object":case"embed":We("load",e),o=r;break;case"video":case"audio":for(o=0;oDs&&(t.flags|=128,r=!0,Ca(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ca(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ye)return _t(t),null}else 2*ft()-i.renderingStartTime>Ds&&n!==1073741824&&(t.flags|=128,r=!0,Ca(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=ft(),t.sibling=null,n=Je.current,He(Je,r?n&1|2:n&1),t):(_t(t),null);case 22:case 23:return Dv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?cn&1073741824&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function C_(e,t){switch(mv(t),t.tag){case 1:return nn(t.type)&&Vu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return As(),Ge(tn),Ge(Bt),kv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cv(t),null;case 13:if(Ge(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));_s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(Je),null;case 4:return As(),null;case 10:return bv(t.type._context),null;case 22:case 23:return Dv(),null;case 24:return null;default:return null}}var Fc=!1,Dt=!1,k_=typeof WeakSet=="function"?WeakSet:Set,J=null;function ss(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){lt(e,t,r)}else n.current=null}function Dm(e,t,n){try{n()}catch(r){lt(e,t,r)}}var Mb=!1;function T_(e,t){if(ym=Nu,e=$C(),pv(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(bm={focusedElem:e,selectionRange:n},Nu=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,C=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:qn(t.type,y),C);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(w){lt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return v=Mb,Mb=!1,v}function Ja(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&&Dm(t,n,i)}o=o.next}while(o!==r)}}function tf(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 Lm(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 O2(e){var t=e.alternate;t!==null&&(e.alternate=null,O2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fr],delete t[Sl],delete t[Sm],delete t[a_],delete t[l_])),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 R2(e){return e.tag===5||e.tag===3||e.tag===4}function Db(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R2(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 jm(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=zu));else if(r!==4&&(e=e.child,e!==null))for(jm(e,t,n),e=e.sibling;e!==null;)jm(e,t,n),e=e.sibling}function Nm(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(Nm(e,t,n),e=e.sibling;e!==null;)Nm(e,t,n),e=e.sibling}var Tt=null,Yn=!1;function co(e,t,n){for(n=n.child;n!==null;)I2(e,t,n),n=n.sibling}function I2(e,t,n){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(Kd,n)}catch{}switch(n.tag){case 5:Dt||ss(n,t);case 6:var r=Tt,o=Yn;Tt=null,co(e,t,n),Tt=r,Yn=o,Tt!==null&&(Yn?(e=Tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Tt.removeChild(n.stateNode));break;case 18:Tt!==null&&(Yn?(e=Tt,n=n.stateNode,e.nodeType===8?Up(e.parentNode,n):e.nodeType===1&&Up(e,n),vl(e)):Up(Tt,n.stateNode));break;case 4:r=Tt,o=Yn,Tt=n.stateNode.containerInfo,Yn=!0,co(e,t,n),Tt=r,Yn=o;break;case 0:case 11:case 14:case 15:if(!Dt&&(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)&&Dm(n,t,s),o=o.next}while(o!==r)}co(e,t,n);break;case 1:if(!Dt&&(ss(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){lt(n,t,a)}co(e,t,n);break;case 21:co(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,co(e,t,n),Dt=r):co(e,t,n);break;default:co(e,t,n)}}function Lb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new k_),t.forEach(function(r){var o=M_.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ft()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*E_(r/1960))-r,10e?16:e,Co===null)var r=!1;else{if(e=Co,Co=null,ed=0,Ee&6)throw Error(B(331));var o=Ee;for(Ee|=4,J=e.current;J!==null;){var i=J,s=i.child;if(J.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lft()-Av?gi(e,0):$v|=n),rn(e,t)}function N2(e,t){t===0&&(e.mode&1?(t=_c,_c<<=1,!(_c&130023424)&&(_c=4194304)):t=1);var n=Ut();e=Xr(e,t),e!==null&&(Ql(e,t,n),rn(e,n))}function A_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N2(e,n)}function M_(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(B(314))}r!==null&&r.delete(t),N2(e,n)}var B2;B2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tn.current)Zt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zt=!1,x_(e,t,n);Zt=!!(e.flags&131072)}else Zt=!1,Ye&&t.flags&1048576&&HC(t,Wu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pu(e,t),e=t.pendingProps;var o=Is(t,Bt.current);bs(t,n),o=Pv(null,t,r,e,o,n);var i=Ev();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,nn(r)?(i=!0,Hu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,xv(t),o.updater=ef,t.stateNode=o,o._reactInternals=t,Om(t,r,e,n),t=_m(null,t,r,!0,i,n)):(t.tag=0,Ye&&i&&hv(t),Ht(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=L_(r),e=qn(r,e),o){case 0:t=Im(null,t,r,e,n);break e;case 1:t=_b(null,t,r,e,n);break e;case 11:t=Rb(null,t,r,e,n);break e;case 14:t=Ib(null,t,r,qn(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),Im(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),_b(e,t,r,o,n);case 3:e:{if(S2(t),e===null)throw Error(B(387));r=t.pendingProps,i=t.memoizedState,o=i.element,YC(e,t),qu(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=Ms(Error(B(423)),t),t=$b(e,t,r,n,o);break e}else if(r!==o){o=Ms(Error(B(424)),t),t=$b(e,t,r,n,o);break e}else for(fn=Ro(t.stateNode.containerInfo.firstChild),hn=t,Ye=!0,Xn=null,n=KC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_s(),r===o){t=Qr(e,t,n);break e}Ht(e,t,r,n)}t=t.child}return t;case 5:return XC(t),e===null&&Tm(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,wm(r,o)?s=null:i!==null&&wm(r,i)&&(t.flags|=32),x2(e,t),Ht(e,t,s,n),t.child;case 6:return e===null&&Tm(t),null;case 13:return C2(e,t,n);case 4:return Sv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$s(t,null,r,n):Ht(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),Rb(e,t,r,o,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(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,He(Gu,r._currentValue),r._currentValue=s,i!==null)if(er(i.value,s)){if(i.children===o.children&&!tn.current){t=Qr(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=Vr(-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),Pm(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(B(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Pm(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}Ht(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,bs(t,n),o=Nn(o),r=r(o),t.flags|=1,Ht(e,t,r,n),t.child;case 14:return r=t.type,o=qn(r,t.pendingProps),o=qn(r.type,o),Ib(e,t,r,o,n);case 15:return b2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qn(r,o),pu(e,t),t.tag=1,nn(r)?(e=!0,Hu(t)):e=!1,bs(t,n),g2(t,r,o),Om(t,r,o,n),_m(null,t,r,!0,e,n);case 19:return k2(e,t,n);case 22:return w2(e,t,n)}throw Error(B(156,t.tag))};function F2(e,t){return pC(e,t)}function D_(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 Dn(e,t,n,r){return new D_(e,t,n,r)}function jv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L_(e){if(typeof e=="function")return jv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nv)return 11;if(e===rv)return 14}return 2}function Ao(e,t){var n=e.alternate;return n===null?(n=Dn(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 gu(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")jv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qi:return vi(n.children,o,i,t);case tv:s=8,o|=8;break;case Jh:return e=Dn(12,n,t,o|2),e.elementType=Jh,e.lanes=i,e;case Zh:return e=Dn(13,n,t,o),e.elementType=Zh,e.lanes=i,e;case em:return e=Dn(19,n,t,o),e.elementType=em,e.lanes=i,e;case XS:return rf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qS:s=10;break e;case YS:s=9;break e;case nv:s=11;break e;case rv:s=14;break e;case po:s=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=Dn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function vi(e,t,n,r){return e=Dn(7,e,r,t),e.lanes=n,e}function rf(e,t,n,r){return e=Dn(22,e,r,t),e.elementType=XS,e.lanes=n,e.stateNode={isHidden:!1},e}function Jp(e,t,n){return e=Dn(6,e,null,t),e.lanes=n,e}function Zp(e,t,n){return t=Dn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function j_(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=Ap(0),this.expirationTimes=Ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ap(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nv(e,t,n,r,o,i,s,a,l){return e=new j_(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Dn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xv(i),e}function N_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U2)}catch(e){console.error(e)}}U2(),US.exports=Sn;var Vv=US.exports;const Hc=Kg(Vv);var W2,Ub=Vv;W2=Ub.createRoot,Ub.hydrateRoot;/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function G2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function U_(){return Math.random().toString(36).substr(2,8)}function Gb(e,t){return{usr:e.state,key:e.key,idx:t}}function Hm(e,t,n,r){return n===void 0&&(n=null),Rl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ia(t):t,{state:n,key:t&&t.key||r||U_()})}function rd(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 ia(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 W_(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=ko.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Rl({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=ko.Pop;let C=u(),m=C==null?null:C-c;c=C,l&&l({action:a,location:y.location,delta:m})}function f(C,m){a=ko.Push;let g=Hm(y.location,C,m);c=u()+1;let p=Gb(g,c),w=y.createHref(g);try{s.pushState(p,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(w)}i&&l&&l({action:a,location:y.location,delta:1})}function h(C,m){a=ko.Replace;let g=Hm(y.location,C,m);c=u();let p=Gb(g,c),w=y.createHref(g);s.replaceState(p,"",w),i&&l&&l({action:a,location:y.location,delta:0})}function v(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:rd(C);return g=g.replace(/ $/,"%20"),bt(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}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(Wb,d),l=C,()=>{o.removeEventListener(Wb,d),l=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let m=v(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(C){return s.go(C)}};return y}var Kb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kb||(Kb={}));function G_(e,t,n){return n===void 0&&(n="/"),K_(e,t,n,!1)}function K_(e,t,n,r){let o=typeof t=="string"?ia(t):t,i=Hv(o.pathname||"/",n);if(i==null)return null;let s=K2(e);q_(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("/")&&(bt(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=Mo([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(bt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),K2(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:t$(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 q2(i.path))o(i,s,l)}),t}function q2(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=q2(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 q_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Y_=/^:[\w-]+$/,X_=3,Q_=2,J_=1,Z_=10,e$=-2,qb=e=>e==="*";function t$(e,t){let n=e.split("/"),r=n.length;return n.some(qb)&&(r+=e$),t&&(r+=Q_),n.filter(o=>!qb(o)).reduce((o,i)=>o+(Y_.test(i)?X_:i===""?J_:Z_),r)}function n$(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 r$(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 v=a[d];return h&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function o$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),G2(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 i$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G2(!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 Hv(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 s$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ia(e):e;return{pathname:n?n.startsWith("/")?n:a$(n,t):t,search:u$(r),hash:d$(o)}}function a$(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 eh(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 l$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Y2(e,t){let n=l$(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function X2(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ia(e):(o=Rl({},e),bt(!o.pathname||!o.pathname.includes("?"),eh("?","pathname","search",o)),bt(!o.pathname||!o.pathname.includes("#"),eh("#","pathname","hash",o)),bt(!o.search||!o.search.includes("#"),eh("#","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=s$(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Mo=e=>e.join("/").replace(/\/\/+/g,"/"),c$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function f$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Q2=["post","put","patch","delete"];new Set(Q2);const p$=["get",...Q2];new Set(p$);/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),k.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=X2(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Mo([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function v$(){let{matches:e}=k.useContext(Ko),t=e[e.length-1];return t?t.params:{}}function ek(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Di),{matches:o}=k.useContext(Ko),{pathname:i}=nc(),s=JSON.stringify(Y2(o,r.v7_relativeSplatPath));return k.useMemo(()=>X2(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function y$(e,t){return b$(e,t)}function b$(e,t,n,r){tc()||bt(!1);let{navigator:o}=k.useContext(Di),{matches:i}=k.useContext(Ko),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=nc(),u;if(t){var d;let C=typeof t=="string"?ia(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||bt(!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 v=G_(e,{pathname:h}),y=k$(v&&v.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Mo([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Mo([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&y?k.createElement(cf.Provider,{value:{location:Il({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ko.Pop}},y):y}function w$(){let e=O$(),t=f$(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}const x$=k.createElement(w$,null);class S$ extends k.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?k.createElement(Ko.Provider,{value:this.props.routeContext},k.createElement(J2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C$(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Uv);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Ko.Provider,{value:t},r)}function k$(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||bt(!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,v=!1,y=null,C=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||x$,l&&(c<0&&f===0?(v=!0,C=null):c===f&&(v=!0,C=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),g=()=>{let p;return h?p=y:v?p=C:d.route.Component?p=k.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,k.createElement(C$,{match:d,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?k.createElement(S$,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var tk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tk||{}),od=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}(od||{});function T$(e){let t=k.useContext(Uv);return t||bt(!1),t}function P$(e){let t=k.useContext(h$);return t||bt(!1),t}function E$(e){let t=k.useContext(Ko);return t||bt(!1),t}function nk(e){let t=E$(),n=t.matches[t.matches.length-1];return n.route.id||bt(!1),n.route.id}function O$(){var e;let t=k.useContext(J2),n=P$(od.UseRouteError),r=nk(od.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function R$(){let{router:e}=T$(tk.UseNavigateStable),t=nk(od.UseNavigateStable),n=k.useRef(!1);return Z2(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Il({fromRouteId:t},i)))},[e,t])}function ri(e){bt(!1)}function I$(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ko.Pop,navigator:i,static:s=!1,future:a}=e;tc()&&bt(!1);let l=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:l,navigator:i,static:s,future:Il({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=ia(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:v="default"}=r,y=k.useMemo(()=>{let C=Hv(u,l);return C==null?null:{location:{pathname:C,search:d,hash:f,state:h,key:v},navigationType:o}},[l,u,d,f,h,v,o]);return y==null?null:k.createElement(Di.Provider,{value:c},k.createElement(cf.Provider,{children:n,value:y}))}function _$(e){let{children:t,location:n}=e;return y$(Um(t),n)}new Promise(()=>{});function Um(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,o)=>{if(!k.isValidElement(r))return;let i=[...t,o];if(r.type===k.Fragment){n.push.apply(n,Um(r.props.children,i));return}r.type!==ri&&bt(!1),!r.props.index||!r.props.children||bt(!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=Um(r.props.children,i)),n.push(s)}),n}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function A$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M$(e,t){return e.button===0&&(!t||t==="_self")&&!A$(e)}const D$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],L$="6";try{window.__reactRouterVersion=L$}catch{}const j$="startTransition",Xb=$u[j$];function N$(e){let{basename:t,children:n,future:r,window:o}=e,i=k.useRef();i.current==null&&(i.current=H_({window:o,v5Compat:!0}));let s=i.current,[a,l]=k.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=k.useCallback(d=>{c&&Xb?Xb(()=>l(d)):l(d)},[l,c]);return k.useLayoutEffect(()=>s.listen(u),[s,u]),k.createElement(I$,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const B$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=k.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=$$(t,D$),{basename:h}=k.useContext(Di),v,y=!1;if(typeof c=="string"&&F$.test(c)&&(v=c,B$))try{let p=new URL(window.location.href),w=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=Hv(w.pathname,h);w.origin===p.origin&&S!=null?c=S+w.search+w.hash:y=!0}catch{}let C=m$(c,{relative:o}),m=z$(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function g(p){r&&r(p),p.defaultPrevented||m(p)}return k.createElement("a",Wm({},f,{href:v||C,onClick:y||i?r:g,ref:n,target:l}))});var Qb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qb||(Qb={}));var Jb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jb||(Jb={}));function z$(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Wv(),c=nc(),u=ek(e,{relative:s});return k.useCallback(d=>{if(M$(d,n)){d.preventDefault();let f=r!==void 0?r:rd(c)===rd(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function rk(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 U(e){if(typeof e!="string")throw new Error(Jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function pr(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 ok(e){if(!pr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ok(e[n])}),t}function jt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return pr(e)&&pr(t)&&Object.keys(t).forEach(o=>{pr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&pr(e[o])?r[o]=jt(e[o],t[o],n):n.clone?r[o]=pr(t[o])?ok(t[o]):t[o]:r[o]=t[o]}),r}function tl(e,t){return t?jt(e,t,{clone:!1}):e}function V$(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 H$(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function U$(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 W$(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 uf={xs:0,sm:600,md:900,lg:1200,xl:1536},Zb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${uf[e]}px)`},G$={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:uf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Zr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Zb;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Zb;return Object.keys(t).reduce((s,a)=>{if(H$(i.keys,a)){const l=U$(r.containerQueries?r:G$,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||uf).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 K$(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function q$(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function df(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 id(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=df(e,n)||r,t&&(o=t(o,r,e)),o}function ht(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=df(l,r)||{};return Zr(s,a,d=>{let f=id(c,o,d);return d===f&&typeof d=="string"&&(f=id(c,o,`${t}${d==="default"?"":U(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Y$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const X$={m:"margin",p:"padding"},Q$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},e1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},J$=Y$(e=>{if(e.length>2)if(e1[e])e=e1[e];else return[e];const[t,n]=e.split(""),r=X$[t],o=Q$[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Gv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Gv,...Kv];function rc(e,t,n,r){const o=df(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 qv(e){return rc(e,"spacing",8)}function oc(e,t){return typeof t=="string"||t==null?t:e(t)}function Z$(e,t){return n=>e.reduce((r,o)=>(r[o]=oc(t,n),r),{})}function eA(e,t,n,r){if(!t.includes(n))return null;const o=J$(n),i=Z$(o,r),s=e[n];return Zr(e,s,i)}function ik(e,t){const n=qv(e.theme);return Object.keys(e).map(r=>eA(e,t,r,n)).reduce(tl,{})}function rt(e){return ik(e,Gv)}rt.propTypes={};rt.filterProps=Gv;function ot(e){return ik(e,Kv)}ot.propTypes={};ot.filterProps=Kv;function ff(...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]?tl(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function _n(e){return typeof e!="number"?e:`${e}px solid`}function Vn(e,t){return ht({prop:e,themeKey:"borders",transform:t})}const tA=Vn("border",_n),nA=Vn("borderTop",_n),rA=Vn("borderRight",_n),oA=Vn("borderBottom",_n),iA=Vn("borderLeft",_n),sA=Vn("borderColor"),aA=Vn("borderTopColor"),lA=Vn("borderRightColor"),cA=Vn("borderBottomColor"),uA=Vn("borderLeftColor"),dA=Vn("outline",_n),fA=Vn("outlineColor"),pf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:oc(t,r)});return Zr(e,e.borderRadius,n)}return null};pf.propTypes={};pf.filterProps=["borderRadius"];ff(tA,nA,rA,oA,iA,sA,aA,lA,cA,uA,pf,dA,fA);const hf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rc(e.theme,"spacing",8),n=r=>({gap:oc(t,r)});return Zr(e,e.gap,n)}return null};hf.propTypes={};hf.filterProps=["gap"];const mf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rc(e.theme,"spacing",8),n=r=>({columnGap:oc(t,r)});return Zr(e,e.columnGap,n)}return null};mf.propTypes={};mf.filterProps=["columnGap"];const gf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rc(e.theme,"spacing",8),n=r=>({rowGap:oc(t,r)});return Zr(e,e.rowGap,n)}return null};gf.propTypes={};gf.filterProps=["rowGap"];const pA=ht({prop:"gridColumn"}),hA=ht({prop:"gridRow"}),mA=ht({prop:"gridAutoFlow"}),gA=ht({prop:"gridAutoColumns"}),vA=ht({prop:"gridAutoRows"}),yA=ht({prop:"gridTemplateColumns"}),bA=ht({prop:"gridTemplateRows"}),wA=ht({prop:"gridTemplateAreas"}),xA=ht({prop:"gridArea"});ff(hf,mf,gf,pA,hA,mA,gA,vA,yA,bA,wA,xA);function xs(e,t){return t==="grey"?t:e}const SA=ht({prop:"color",themeKey:"palette",transform:xs}),CA=ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xs}),kA=ht({prop:"backgroundColor",themeKey:"palette",transform:xs});ff(SA,CA,kA);function un(e){return e<=1&&e!==0?`${e*100}%`:e}const TA=ht({prop:"width",transform:un}),Yv=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])||uf[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:un(n)}};return Zr(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const PA=ht({prop:"minWidth",transform:un}),EA=ht({prop:"height",transform:un}),OA=ht({prop:"maxHeight",transform:un}),RA=ht({prop:"minHeight",transform:un});ht({prop:"size",cssProperty:"width",transform:un});ht({prop:"size",cssProperty:"height",transform:un});const IA=ht({prop:"boxSizing"});ff(TA,Yv,PA,EA,OA,RA,IA);const ic={border:{themeKey:"borders",transform:_n},borderTop:{themeKey:"borders",transform:_n},borderRight:{themeKey:"borders",transform:_n},borderBottom:{themeKey:"borders",transform:_n},borderLeft:{themeKey:"borders",transform:_n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pf},color:{themeKey:"palette",transform:xs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xs},backgroundColor:{themeKey:"palette",transform:xs},p:{style:ot},pt:{style:ot},pr:{style:ot},pb:{style:ot},pl:{style:ot},px:{style:ot},py:{style:ot},padding:{style:ot},paddingTop:{style:ot},paddingRight:{style:ot},paddingBottom:{style:ot},paddingLeft:{style:ot},paddingX:{style:ot},paddingY:{style:ot},paddingInline:{style:ot},paddingInlineStart:{style:ot},paddingInlineEnd:{style:ot},paddingBlock:{style:ot},paddingBlockStart:{style:ot},paddingBlockEnd:{style:ot},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},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:hf},rowGap:{style:gf},columnGap:{style:mf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:un},maxWidth:{style:Yv},minWidth:{transform:un},height:{transform:un},maxHeight:{transform:un},minHeight:{transform:un},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 _A(...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 $A(e,t){return typeof e=="function"?e(t):e}function AA(){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=df(o,c)||{};return d?d(s):Zr(s,r,v=>{let y=id(f,u,v);return v===y&&typeof v=="string"&&(y=id(f,u,`${n}${v==="default"?"":U(v)}`,v)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??ic;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=K$(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const h=$A(l[f],o);if(h!=null)if(typeof h=="object")if(i[f])d=tl(d,e(f,h,o,i));else{const v=Zr({theme:o},h,y=>({[f]:y}));_A(v,h)?d[f]=t({sx:h,theme:o}):d=tl(d,v)}else d=tl(d,e(f,h,o,i))}),V$(o,q$(u,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const Pi=AA();Pi.filterProps=["sx"];const MA=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??ic;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function sk(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=MA(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return pr(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Et(sa,--ln):0,Ls--,vt===10&&(Ls=1,yf--),vt}function mn(){return vt=ln2||$l(vt)>3?"":" "}function QA(e,t){for(;--t&&mn()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return sc(e,vu()+(t<6&&gr()==32&&mn()==32))}function Km(e){for(;mn();)switch(vt){case e:return ln;case 34:case 39:e!==34&&e!==39&&Km(vt);break;case 40:e===41&&Km(e);break;case 92:mn();break}return ln}function JA(e,t){for(;mn()&&e+vt!==57;)if(e+vt===84&&gr()===47)break;return"/*"+sc(t,ln-1)+"*"+vf(e===47?e:mn())}function ZA(e){for(;!$l(gr());)mn();return sc(e,ln)}function eM(e){return pk(bu("",null,null,null,[""],e=fk(e),0,[0],e))}function bu(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,v=0,y=1,C=1,m=1,g=0,p="",w=o,S=i,T=r,P=p;C;)switch(v=g,g=mn()){case 40:if(v!=108&&Et(P,d-1)==58){Gm(P+=_e(yu(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=yu(g);break;case 9:case 10:case 13:case 32:P+=XA(v);break;case 92:P+=QA(vu()-1,7);continue;case 47:switch(gr()){case 42:case 47:Uc(tM(JA(mn(),vu()),t,n),l);break;default:P+="/"}break;case 123*y:a[c++]=ur(P)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+u:m==-1&&(P=_e(P,/\f/g,"")),h>0&&ur(P)-d&&Uc(h>32?n1(P+";",r,n,d-1):n1(_e(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(Uc(T=t1(P,t,n,c,u,o,a,p,w=[],S=[],d),i),g===123)if(u===0)bu(P,t,T,T,w,i,d,a,S);else switch(f===99&&Et(P,3)===110?100:f){case 100:case 108:case 109:case 115:bu(e,T,T,r&&Uc(t1(e,T,T,0,0,o,a,p,o,w=[],d),S),o,S,d,a,r?w:S);break;default:bu(P,T,T,T,[""],S,0,a,S)}}c=u=h=0,y=m=1,p=P="",d=s;break;case 58:d=1+ur(P),h=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&YA()==125)continue}switch(P+=vf(g),g*y){case 38:m=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(ur(P)-1)*m,m=1;break;case 64:gr()===45&&(P+=yu(mn())),f=gr(),u=d=ur(p=P+=ZA(vu())),g++;break;case 45:v===45&&ur(P)==2&&(y=0)}}return i}function t1(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Jv(f),v=0,y=0,C=0;v0?f[m]+" "+g:_e(g,/&\f/g,f[m])))&&(l[C++]=p);return bf(e,t,n,o===0?Xv:a,l,c,u)}function tM(e,t,n){return bf(e,t,n,lk,vf(qA()),_l(e,2,-2),0)}function n1(e,t,n,r){return bf(e,t,n,Qv,_l(e,0,r),_l(e,r+1,-1),r)}function Ss(e,t){for(var n="",r=Jv(e),o=0;o6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+sd+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gm(e,"stretch")?hk(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,ur(e)-3-(~Gm(e,"!important")&&10))){case 107:return _e(e,":",":"+Ie)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(Et(e,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+At+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return Ie+e+At+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+At+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+At+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+At+e+e}return e}var uM=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=hk(t.value,t.length);break;case ck:return Ss([Ta(t,{value:_e(t.value,"@","@"+Ie)})],o);case Xv:if(t.length)return KA(t.props,function(i){switch(GA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([Ta(t,{props:[_e(i,/:(read-\w+)/,":"+sd+"$1")]})],o);case"::placeholder":return Ss([Ta(t,{props:[_e(i,/:(plac\w+)/,":"+Ie+"input-$1")]}),Ta(t,{props:[_e(i,/:(plac\w+)/,":"+sd+"$1")]}),Ta(t,{props:[_e(i,/:(plac\w+)/,At+"input-$1")]})],o)}return""})}},dM=[uM],fM=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||dM,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(" "),m=1;m=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 kM={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},TM=!1,PM=/[A-Z]|^ms/g,EM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xk=function(t){return t.charCodeAt(1)===45},o1=function(t){return t!=null&&typeof t!="boolean"},th=ak(function(e){return xk(e)?e:e.replace(PM,"-$&").toLowerCase()}),i1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(EM,function(r,o,i){return dr={name:o,styles:i,next:dr},o})}return kM[t]!==1&&!xk(t)&&typeof n=="number"&&n!==0?n+"px":n},OM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Al(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 dr={name:o.name,styles:o.styles,next:dr},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)dr={name:s.name,styles:s.styles,next:dr},s=s.next;var a=i.styles+";";return a}return RM(e,t,n)}case"function":{if(e!==void 0){var l=dr,c=n(e);return dr=l,Al(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function RM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?MM:DM},c1=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},LM=!1,jM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return bk(n,r,o),_M(function(){return wk(n,r,o)}),null},NM=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=c1(t,n,r),l=a||l1(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(FM(o)?n:o):t;return x.jsx($M,{styles:r})}/** + * @mui/styled-engine v6.1.3 + * + * @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 Tk(e,t){return ad(e,t)}function VM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const u1=[];function d1(e){return u1[0]=e,If(u1)}const HM=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 UM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=HM(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 v=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]: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 GM(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 $f(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=UM(n),l=Pk(o);let c=jt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...WM,...i}},s);return c=W$(c),c.applyStyles=GM,c=t.reduce((u,d)=>jt(u,d),c),c.unstable_sxConfig={...ic,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return Pi({sx:d,theme:this})},c}function KM(e){return Object.keys(e).length===0}function qM(e=null){const t=k.useContext(_f);return!t||KM(t)?e:t}const YM=$f();function Af(e=YM){return qM(e)}function XM({styles:e,themeId:t,defaultTheme:n={}}){const r=Af(n),o=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(zM,{styles:o})}const f1=e=>e,QM=()=>{let e=f1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=f1}}},Ek=QM();function JM(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Tk("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Pi);return k.forwardRef(function(l,c){const u=Af(n),{className:d,component:f="div",...h}=sk(l);return x.jsx(i,{as:f,ref:c,className:X(d,o?o(r):r),theme:t&&u[t]||u,...h})})}const ZM={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 he(e,t,n="Mui"){const r=ZM[t];return r?`${n}-${r}`:`${Ek.generate(e)}-${t}`}function pe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=he(e,o,n)}),r}function Ok(e){const{variants:t,...n}=e,r={variants:t,style:d1(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=d1(o.style))}),r}const e5=$f();function nh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function t5(e){return e?(t,n)=>n[e]:null}function n5(e,t,n){e.theme=o5(e.theme)?n:e.theme[t]||e.theme}function wu(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>wu(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 Rk(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Rk(e,t,n=[]){var o;let r;e:for(let i=0;i{VM(a,S=>S.filter(T=>T!==Pi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=t5(s5(u)),...v}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let m=nh;u==="Root"||u==="root"?m=r:u?m=o:i5(a)&&(m=void 0);const g=Tk(a,{shouldForwardProp:m,label:r5(),...v}),p=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(P){return wu(P,S)};if(pr(S)){const T=Ok(S);return T.variants?function(E){return wu(E,T)}:T.style}return S},w=(...S)=>{const T=[],P=S.map(p),E=[];if(T.push(i),c&&h&&E.push(function(_){var M,N;const $=(N=(M=_.theme.components)==null?void 0:M[c])==null?void 0:N.styleOverrides;if(!$)return null;const D={};for(const A in $)D[A]=wu(_,$[A]);return h(_,D)}),c&&!y&&E.push(function(_){var D,M;const I=_.theme,$=(M=(D=I==null?void 0:I.components)==null?void 0:D[c])==null?void 0:M.variants;return $?Rk(_,$):null}),C||E.push(Pi),Array.isArray(P[0])){const O=P.shift(),_=new Array(T.length).fill(""),I=new Array(E.length).fill("");let $;$=[..._,...O,...I],$.raw=[..._,...O.raw,...I],T.unshift($)}const R=[...T,...P,...E],b=g(...R);return a.muiName&&(b.muiName=a.muiName),b};return g.withConfig&&(w.withConfig=g.withConfig),w}}function r5(e,t){return void 0}function o5(e){for(const t in e)return!1;return!0}function i5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function s5(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const a5=Ik();function Ml(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],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]=Ml(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function l5(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ml(t.components[n].defaultProps,r)}function _k({props:e,name:t,defaultTheme:n,themeId:r}){let o=Af(n);return r&&(o=o[r]||o),l5({theme:o,name:t,props:e})}const Cr=typeof window<"u"?k.useLayoutEffect:k.useEffect;function $k(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ry(e,t=0,n=1){return $k(e,t,n)}function c5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Bo(e){if(e.type)return e;if(e.charAt(0)==="#")return Bo(c5(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Jr(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(Jr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const u5=e=>{const t=Bo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Fa=(e,t)=>{try{return u5(e)}catch{return e}};function Mf(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 Ak(e){e=Bo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),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])),Mf({type:a,values:l})}function qm(e){e=Bo(e);let t=e.type==="hsl"||e.type==="hsla"?Bo(Ak(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 d5(e,t){const n=qm(e),r=qm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Me(e,t){return e=Bo(e),t=ry(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Mf(e)}function Wc(e,t,n){try{return Me(e,t)}catch{return e}}function Df(e,t){if(e=Bo(e),t=ry(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 Mf(e)}function Fe(e,t,n){try{return Df(e,t)}catch{return e}}function Lf(e,t){if(e=Bo(e),t=ry(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 Mf(e)}function ze(e,t,n){try{return Lf(e,t)}catch{return e}}function f5(e,t=.15){return qm(e)>.5?Df(e,t):Lf(e,t)}function Gc(e,t,n){try{return f5(e,t)}catch{return e}}function p1(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Mk(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 rh(e,t){var n,r,o;return k.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 bn(e){return e&&e.ownerDocument||document}function eo(e){return bn(e).defaultView||window}function Ym(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let h1=0;function p5(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(h1+=1,n(`mui-${h1}`))},[t]),r}const h5={...$u},m1=h5.useId;function ac(e){if(m1!==void 0){const t=m1();return e??t}return p5(e)}function Dl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=k.useRef(e!==void 0),[i,s]=k.useState(t),a=o?e:i,l=k.useCallback(c=>{o||s(c)},[]);return[a,l]}function To(e){const t=k.useRef(e);return Cr(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ym(n,t)})},e)}const g1={};function Dk(e,t){const n=k.useRef(g1);return n.current===g1&&(n.current=e(t)),n}const m5=[];function g5(e){k.useEffect(e,m5)}class jf{constructor(){ga(this,"currentId",null);ga(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ga(this,"disposeEffect",()=>this.clear)}static create(){return new jf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ls(){const e=Dk(jf.create).current;return g5(e.disposeEffect),e}function js(e){try{return e.matches(":focus-visible")}catch{}return!1}function Lk(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const v5={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function y5(e){return typeof e=="string"}function cs(e,t,n){return e===void 0||y5(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function jk(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 v1(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 Nk(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=X(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...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(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=jk({...o,...r}),a=v1(r),l=v1(o),c=t(s),u=X(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 Bk(e,t,n){return typeof e=="function"?e(t,n):e}function Xm(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:Bk(n,r),{props:a,internalRef:l}=Nk({...i,externalSlotProps:s}),c=ct(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return cs(t,{...a,ref:c},r)}function aa(e){var t;return parseInt(k.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const b5=k.createContext(),Nf=()=>k.useContext(b5)??!1,w5=k.createContext(void 0);function x5(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ml(o.defaultProps,r):!o.styleOverrides&&!o.variants?Ml(o,r):r}function S5({props:e,name:t}){const n=k.useContext(w5);return x5({props:e,name:t,theme:{components:n}})}const y1={theme:void 0};function C5(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(y1.theme=o.theme,i=Ok(e(y1)),t=i,n=o.theme),i}}function k5(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 b1=(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])})},T5=(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)},P5=(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 oh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return T5(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=P5(a,l);Object.assign(o,{[u]:d}),b1(i,a,`var(${u})`,c),b1(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function E5(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}=oh(l,t);let f=d;const h={},{[a]:v,...y}=i;if(Object.entries(y||{}).forEach(([p,w])=>{const{vars:S,css:T,varsWithDefaults:P}=oh(w,t);f=jt(f,P),h[p]={css:T,vars:S}}),v){const{css:p,vars:w,varsWithDefaults:S}=oh(v,t);f=jt(f,S),h[a]={css:p,vars:w}}function C(p,w){var T,P;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),p){if(S==="media")return e.defaultColorScheme===p?":root":{[`@media (prefers-color-scheme: ${((P=(T=i[p])==null?void 0:T.palette)==null?void 0:P.mode)||p})`]:{":root":w}};if(S)return e.defaultColorScheme===p?`:root, ${S.replace("%s",String(p))}`:S.replace("%s",String(p))}return":root"}return{vars:f,generateThemeVars:()=>{let p={...c};return Object.entries(h).forEach(([,{vars:w}])=>{p=jt(p,w)}),p},generateStyleSheets:()=>{var E,R;const p=[],w=e.defaultColorScheme||"light";function S(b,O){Object.keys(O).length&&p.push(typeof b=="string"?{[b]:{...O}}:b)}S(n(void 0,{...u}),u);const{[w]:T,...P}=h;if(T){const{css:b}=T,O=(R=(E=i[w])==null?void 0:E.palette)==null?void 0:R.mode,_=!r&&O?{colorScheme:O,...b}:{...b};S(n(w,{..._}),_)}return Object.entries(P).forEach(([b,{css:O}])=>{var $,D;const _=(D=($=i[b])==null?void 0:$.palette)==null?void 0:D.mode,I=!r&&_?{colorScheme:_,...O}:{...O};S(n(b,{...I}),I)}),p}}}function O5(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 R5=$f(),I5=a5("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_5=e=>_k({props:e,name:"MuiContainer",defaultTheme:R5}),$5=(e,t)=>{const n=l=>he(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${U(String(s))}`,o&&"fixed",i&&"disableGutters"]};return xe(a,n,r)};function A5(e={}){const{createStyledComponent:t=I5,useThemeProps:n=_5,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 k.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:v="lg",classes:y,...C}=c,m={...c,component:d,disableGutters:f,fixed:h,maxWidth:v},g=$5(m,r);return x.jsx(o,{as:d,ownerState:m,className:X(g.root,u),ref:l,...C})})}const Ll={black:"#000",white:"#fff"},M5={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"},Fi={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"},zi={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"},Pa={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"},Vi={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"},Hi={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"},Ui={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"},w1={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:Ll.white,default:Ll.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}},ih={text:{primary:Ll.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:Ll.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x1(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=Lf(e.main,o):t==="dark"&&(e.dark=Df(e.main,i)))}function D5(e="light"){return e==="dark"?{main:Vi[200],light:Vi[50],dark:Vi[400]}:{main:Vi[700],light:Vi[400],dark:Vi[800]}}function L5(e="light"){return e==="dark"?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[500],light:Fi[300],dark:Fi[700]}}function j5(e="light"){return e==="dark"?{main:zi[500],light:zi[300],dark:zi[700]}:{main:zi[700],light:zi[400],dark:zi[800]}}function N5(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function B5(e="light"){return e==="dark"?{main:Ui[400],light:Ui[300],dark:Ui[700]}:{main:Ui[800],light:Ui[500],dark:Ui[900]}}function F5(e="light"){return e==="dark"?{main:Pa[400],light:Pa[300],dark:Pa[700]}:{main:"#ed6c02",light:Pa[500],dark:Pa[900]}}function oy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||D5(t),s=e.secondary||L5(t),a=e.error||j5(t),l=e.info||N5(t),c=e.success||B5(t),u=e.warning||F5(t);function d(y){return d5(y,ih.text.primary)>=n?ih.text.primary:w1.text.primary}const f=({color:y,name:C,mainShade:m=500,lightShade:g=300,darkShade:p=700})=>{if(y={...y},!y.main&&y[m]&&(y.main=y[m]),!y.hasOwnProperty("main"))throw new Error(Jr(11,C?` (${C})`:"",m));if(typeof y.main!="string")throw new Error(Jr(12,C?` (${C})`:"",JSON.stringify(y.main)));return x1(y,"light",g,r),x1(y,"dark",p,r),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:ih,light:w1};return jt({common:{...Ll},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:M5,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...h[t]},o)}function z5(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 V5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function H5(e){return Math.round(e*1e5)/1e5}const S1={textTransform:"uppercase"},C1='"Roboto", "Helvetica", "Arial", sans-serif';function U5(e,t){const{fontFamily:n=C1,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`),v=(C,m,g,p,w)=>({fontFamily:n,fontWeight:C,fontSize:h(m),lineHeight:g,...n===C1?{letterSpacing:`${H5(p/m)}em`}:{},...w,...c}),y={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,S1),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,S1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jt({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...y},d,{clone:!1})}const W5=.2,G5=.14,K5=.12;function Ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${W5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${G5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${K5})`].join(",")}const q5=["none",Ke(0,2,1,-1,0,1,1,0,0,1,3,0),Ke(0,3,1,-2,0,2,2,0,0,1,5,0),Ke(0,3,3,-2,0,3,4,0,0,1,8,0),Ke(0,2,4,-1,0,4,5,0,0,1,10,0),Ke(0,3,5,-1,0,5,8,0,0,1,14,0),Ke(0,3,5,-1,0,6,10,0,0,1,18,0),Ke(0,4,5,-2,0,7,10,1,0,2,16,1),Ke(0,5,5,-3,0,8,10,1,0,3,14,2),Ke(0,5,6,-3,0,9,12,1,0,3,16,2),Ke(0,6,6,-3,0,10,14,1,0,4,18,3),Ke(0,6,7,-4,0,11,15,1,0,4,20,3),Ke(0,7,8,-4,0,12,17,2,0,5,22,4),Ke(0,7,8,-4,0,13,19,2,0,5,24,4),Ke(0,7,9,-4,0,14,21,2,0,5,26,4),Ke(0,8,9,-5,0,15,22,2,0,6,28,5),Ke(0,8,10,-5,0,16,24,2,0,6,30,5),Ke(0,8,11,-5,0,17,26,2,0,6,32,5),Ke(0,9,11,-5,0,18,28,2,0,7,34,6),Ke(0,9,12,-6,0,19,29,2,0,7,36,6),Ke(0,10,13,-6,0,20,31,3,0,8,38,7),Ke(0,10,13,-6,0,21,33,3,0,8,40,7),Ke(0,10,14,-6,0,22,35,3,0,8,42,7),Ke(0,11,14,-7,0,23,36,3,0,9,44,8),Ke(0,11,15,-7,0,24,38,3,0,9,46,8)],Y5={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)"},X5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function k1(e){return`${Math.round(e)}ms`}function Q5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function J5(e){const t={...Y5,...e.easing},n={...X5,...e.duration};return{getAutoHeightDuration:Q5,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:k1(s)} ${a} ${typeof l=="string"?l:k1(l)}`).join(",")},...e,easing:t,duration:n}}const Z5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Qm(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(Jr(20));const u=oy(i),d=$f(e);let f=jt(d,{mixins:V5(d.breakpoints,r),palette:u,shadows:q5.slice(),typography:U5(u,a),transitions:J5(s),zIndex:{...Z5}});return f=jt(f,c),f=t.reduce((h,v)=>jt(h,v),f),f.unstable_sxConfig={...ic,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(v){return Pi({sx:v,theme:this})},f}function Jm(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 e3=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Jm(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Fk(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function zk(e){return e==="dark"?e3:[]}function t3(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=oy(t);return{palette:i,opacity:{...Fk(i.mode),...n},overlays:r||zk(i.mode),...o}}function n3(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 r3=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],o3=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 r3(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 i3(e){return pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function s3(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i{e[n]||(e[n]={})})}function j(e,t,n){!e[t]&&n&&(e[t]=n)}function za(e){return!e||!e.startsWith("hsl")?e:Ak(e)}function _r(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fa(za(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 l3(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},c3=(e="mui")=>k5(e);function sh(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=t3({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=Qm({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Fk(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||zk(o)},s}function u3(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=n3,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=c3(i),{[d]:h,light:v,dark:y,...C}=n,m={...C};let g=h;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(g=!0),!g)throw new Error(Jr(21,d));const p=sh(m,g,c,d);v&&!m.light&&sh(m,v,void 0,"light"),y&&!m.dark&&sh(m,y,void 0,"dark");let w={defaultColorScheme:d,...p,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:m,font:{...z5(p.typography),...p.font},spacing:l3(c.spacing)};Object.keys(w.colorSchemes).forEach(R=>{const b=w.colorSchemes[R].palette,O=_=>{const I=_.split("-"),$=I[1],D=I[2];return f(_,b[$][D])};if(b.mode==="light"&&(j(b.common,"background","#fff"),j(b.common,"onBackground","#000")),b.mode==="dark"&&(j(b.common,"background","#000"),j(b.common,"onBackground","#fff")),a3(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){j(b.Alert,"errorColor",Fe(b.error.light,.6)),j(b.Alert,"infoColor",Fe(b.info.light,.6)),j(b.Alert,"successColor",Fe(b.success.light,.6)),j(b.Alert,"warningColor",Fe(b.warning.light,.6)),j(b.Alert,"errorFilledBg",O("palette-error-main")),j(b.Alert,"infoFilledBg",O("palette-info-main")),j(b.Alert,"successFilledBg",O("palette-success-main")),j(b.Alert,"warningFilledBg",O("palette-warning-main")),j(b.Alert,"errorFilledColor",sr(()=>b.getContrastText(b.error.main))),j(b.Alert,"infoFilledColor",sr(()=>b.getContrastText(b.info.main))),j(b.Alert,"successFilledColor",sr(()=>b.getContrastText(b.success.main))),j(b.Alert,"warningFilledColor",sr(()=>b.getContrastText(b.warning.main))),j(b.Alert,"errorStandardBg",ze(b.error.light,.9)),j(b.Alert,"infoStandardBg",ze(b.info.light,.9)),j(b.Alert,"successStandardBg",ze(b.success.light,.9)),j(b.Alert,"warningStandardBg",ze(b.warning.light,.9)),j(b.Alert,"errorIconColor",O("palette-error-main")),j(b.Alert,"infoIconColor",O("palette-info-main")),j(b.Alert,"successIconColor",O("palette-success-main")),j(b.Alert,"warningIconColor",O("palette-warning-main")),j(b.AppBar,"defaultBg",O("palette-grey-100")),j(b.Avatar,"defaultBg",O("palette-grey-400")),j(b.Button,"inheritContainedBg",O("palette-grey-300")),j(b.Button,"inheritContainedHoverBg",O("palette-grey-A100")),j(b.Chip,"defaultBorder",O("palette-grey-400")),j(b.Chip,"defaultAvatarColor",O("palette-grey-700")),j(b.Chip,"defaultIconColor",O("palette-grey-700")),j(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(b.LinearProgress,"primaryBg",ze(b.primary.main,.62)),j(b.LinearProgress,"secondaryBg",ze(b.secondary.main,.62)),j(b.LinearProgress,"errorBg",ze(b.error.main,.62)),j(b.LinearProgress,"infoBg",ze(b.info.main,.62)),j(b.LinearProgress,"successBg",ze(b.success.main,.62)),j(b.LinearProgress,"warningBg",ze(b.warning.main,.62)),j(b.Skeleton,"bg",`rgba(${O("palette-text-primaryChannel")} / 0.11)`),j(b.Slider,"primaryTrack",ze(b.primary.main,.62)),j(b.Slider,"secondaryTrack",ze(b.secondary.main,.62)),j(b.Slider,"errorTrack",ze(b.error.main,.62)),j(b.Slider,"infoTrack",ze(b.info.main,.62)),j(b.Slider,"successTrack",ze(b.success.main,.62)),j(b.Slider,"warningTrack",ze(b.warning.main,.62));const _=Gc(b.background.default,.8);j(b.SnackbarContent,"bg",_),j(b.SnackbarContent,"color",sr(()=>b.getContrastText(_))),j(b.SpeedDialAction,"fabHoverBg",Gc(b.background.paper,.15)),j(b.StepConnector,"border",O("palette-grey-400")),j(b.StepContent,"border",O("palette-grey-400")),j(b.Switch,"defaultColor",O("palette-common-white")),j(b.Switch,"defaultDisabledColor",O("palette-grey-100")),j(b.Switch,"primaryDisabledColor",ze(b.primary.main,.62)),j(b.Switch,"secondaryDisabledColor",ze(b.secondary.main,.62)),j(b.Switch,"errorDisabledColor",ze(b.error.main,.62)),j(b.Switch,"infoDisabledColor",ze(b.info.main,.62)),j(b.Switch,"successDisabledColor",ze(b.success.main,.62)),j(b.Switch,"warningDisabledColor",ze(b.warning.main,.62)),j(b.TableCell,"border",ze(Wc(b.divider,1),.88)),j(b.Tooltip,"bg",Wc(b.grey[700],.92))}if(b.mode==="dark"){j(b.Alert,"errorColor",ze(b.error.light,.6)),j(b.Alert,"infoColor",ze(b.info.light,.6)),j(b.Alert,"successColor",ze(b.success.light,.6)),j(b.Alert,"warningColor",ze(b.warning.light,.6)),j(b.Alert,"errorFilledBg",O("palette-error-dark")),j(b.Alert,"infoFilledBg",O("palette-info-dark")),j(b.Alert,"successFilledBg",O("palette-success-dark")),j(b.Alert,"warningFilledBg",O("palette-warning-dark")),j(b.Alert,"errorFilledColor",sr(()=>b.getContrastText(b.error.dark))),j(b.Alert,"infoFilledColor",sr(()=>b.getContrastText(b.info.dark))),j(b.Alert,"successFilledColor",sr(()=>b.getContrastText(b.success.dark))),j(b.Alert,"warningFilledColor",sr(()=>b.getContrastText(b.warning.dark))),j(b.Alert,"errorStandardBg",Fe(b.error.light,.9)),j(b.Alert,"infoStandardBg",Fe(b.info.light,.9)),j(b.Alert,"successStandardBg",Fe(b.success.light,.9)),j(b.Alert,"warningStandardBg",Fe(b.warning.light,.9)),j(b.Alert,"errorIconColor",O("palette-error-main")),j(b.Alert,"infoIconColor",O("palette-info-main")),j(b.Alert,"successIconColor",O("palette-success-main")),j(b.Alert,"warningIconColor",O("palette-warning-main")),j(b.AppBar,"defaultBg",O("palette-grey-900")),j(b.AppBar,"darkBg",O("palette-background-paper")),j(b.AppBar,"darkColor",O("palette-text-primary")),j(b.Avatar,"defaultBg",O("palette-grey-600")),j(b.Button,"inheritContainedBg",O("palette-grey-800")),j(b.Button,"inheritContainedHoverBg",O("palette-grey-700")),j(b.Chip,"defaultBorder",O("palette-grey-700")),j(b.Chip,"defaultAvatarColor",O("palette-grey-300")),j(b.Chip,"defaultIconColor",O("palette-grey-300")),j(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(b.LinearProgress,"primaryBg",Fe(b.primary.main,.5)),j(b.LinearProgress,"secondaryBg",Fe(b.secondary.main,.5)),j(b.LinearProgress,"errorBg",Fe(b.error.main,.5)),j(b.LinearProgress,"infoBg",Fe(b.info.main,.5)),j(b.LinearProgress,"successBg",Fe(b.success.main,.5)),j(b.LinearProgress,"warningBg",Fe(b.warning.main,.5)),j(b.Skeleton,"bg",`rgba(${O("palette-text-primaryChannel")} / 0.13)`),j(b.Slider,"primaryTrack",Fe(b.primary.main,.5)),j(b.Slider,"secondaryTrack",Fe(b.secondary.main,.5)),j(b.Slider,"errorTrack",Fe(b.error.main,.5)),j(b.Slider,"infoTrack",Fe(b.info.main,.5)),j(b.Slider,"successTrack",Fe(b.success.main,.5)),j(b.Slider,"warningTrack",Fe(b.warning.main,.5));const _=Gc(b.background.default,.98);j(b.SnackbarContent,"bg",_),j(b.SnackbarContent,"color",sr(()=>b.getContrastText(_))),j(b.SpeedDialAction,"fabHoverBg",Gc(b.background.paper,.15)),j(b.StepConnector,"border",O("palette-grey-600")),j(b.StepContent,"border",O("palette-grey-600")),j(b.Switch,"defaultColor",O("palette-grey-300")),j(b.Switch,"defaultDisabledColor",O("palette-grey-600")),j(b.Switch,"primaryDisabledColor",Fe(b.primary.main,.55)),j(b.Switch,"secondaryDisabledColor",Fe(b.secondary.main,.55)),j(b.Switch,"errorDisabledColor",Fe(b.error.main,.55)),j(b.Switch,"infoDisabledColor",Fe(b.info.main,.55)),j(b.Switch,"successDisabledColor",Fe(b.success.main,.55)),j(b.Switch,"warningDisabledColor",Fe(b.warning.main,.55)),j(b.TableCell,"border",Fe(Wc(b.divider,1),.68)),j(b.Tooltip,"bg",Wc(b.grey[700],.92))}_r(b.background,"default"),_r(b.background,"paper"),_r(b.common,"background"),_r(b.common,"onBackground"),_r(b,"divider"),Object.keys(b).forEach(_=>{const I=b[_];I&&typeof I=="object"&&(I.main&&j(b[_],"mainChannel",Fa(za(I.main))),I.light&&j(b[_],"lightChannel",Fa(za(I.light))),I.dark&&j(b[_],"darkChannel",Fa(za(I.dark))),I.contrastText&&j(b[_],"contrastTextChannel",Fa(za(I.contrastText))),_==="text"&&(_r(b[_],"primary"),_r(b[_],"secondary")),_==="action"&&(I.active&&_r(b[_],"active"),I.selected&&_r(b[_],"selected")))})}),w=t.reduce((R,b)=>jt(R,b),w);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:o3(w)},{vars:T,generateThemeVars:P,generateStyleSheets:E}=E5(w,S);return w.vars=T,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([R,b])=>{w[R]=b}),w.generateThemeVars=P,w.generateStyleSheets=E,w.generateSpacing=function(){return Pk(c.spacing,qv(this))},w.getColorSchemeSelector=O5(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...ic,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(b){return Pi({sx:b,theme:this})},w.toRuntimeSource=s3,w}function T1(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:oy({...n===!0?{}:n.palette,mode:t})})}function Vk(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 Qm(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=Qm({...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},T1(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},T1(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),u3({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Bf=Vk(),lc="$$material";function Ff(){const e=Af(Bf);return e[lc]||e}function d3(e){return x.jsx(XM,{...e,defaultTheme:Bf,themeId:lc})}function iy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>iy(e)&&e!=="classes",G=Ik({themeId:lc,defaultTheme:Bf,rootShouldForwardProp:Tn});function f3(e){return function(n){return x.jsx(d3,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function p3(){return sk}const ke=C5;function Te(e){return S5(e)}function h3(e){return typeof e.main=="string"}function m3(e,t=[]){if(!h3(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function en(e=[]){return([,t])=>t&&m3(t,e)}function g3(e){return he("MuiPaper",e)}pe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const v3=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(i,g3,o)},y3=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ke(({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)"}}]}))),Ei=k.forwardRef(function(t,n){var h;const r=Te({props:t,name:"MuiPaper"}),o=Ff(),{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=v3(d);return x.jsx(y3,{as:s,ownerState:d,className:X(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(${Me("#fff",Jm(a))}, ${Me("#fff",Jm(a))})`}},...u.style}})});function b3(e){return he("MuiAppBar",e)}pe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const w3=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${U(t)}`,`position${U(n)}`]};return xe(o,b3,r)},P1=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,x3=G(Ei,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${U(n.position)}`],t[`color${U(n.color)}`]]}})(ke(({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(en(["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?P1(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?P1(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"})}}]}))),S3=k.forwardRef(function(t,n){const r=Te({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=w3(c);return x.jsx(x3,{square:!0,component:"header",ownerState:c,elevation:4,className:X(u.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function Hk({props:e,name:t}){return _k({props:e,name:t,defaultTheme:Bf,themeId:lc})}const C3=pe("MuiBox",["root"]),k3=Vk(),be=JM({themeId:lc,defaultTheme:k3,defaultClassName:C3.root,generateClassName:Ek.generate});function T3(e){return he("MuiToolbar",e)}pe("MuiToolbar",["root","gutters","regular","dense"]);const P3=e=>{const{classes:t,disableGutters:n,variant:r}=e;return xe({root:["root",!n&&"gutters",r]},T3,t)},E3=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ke(({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}]}))),O3=k.forwardRef(function(t,n){const r=Te({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=P3(c);return x.jsx(E3,{as:i,className:X(u.root,o),ref:n,ownerState:c,...l})});class ld{constructor(){ga(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 ld}static use(){const t=Dk(ld.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=I3(),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 R3(){return ld.use()}function I3(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function pt(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 Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zm(e,t)}function Uk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zm(e,t)}const E1={disabled:!1},cd=Mn.createContext(null);var _3=function(t){return t.scrollTop},Va="unmounted",oi="exited",ii="entering",Yi="entered",eg="exiting",Er=function(e){Uk(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=oi,i.appearStatus=ii):l=Yi:r.unmountOnExit||r.mountOnEnter?l=Va:l=oi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Va?{status:oi}: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!==ii&&s!==Yi&&(i=ii):(s===ii||s===Yi)&&(i=eg)}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===ii){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Hc.findDOMNode(this);s&&_3(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:Va})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Hc.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||E1.disabled){this.safeSetState({status:Yi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ii},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Yi},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:Hc.findDOMNode(this);if(!i||E1.disabled){this.safeSetState({status:oi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:eg},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:oi},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:Hc.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===Va)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=pt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mn.createElement(cd.Provider,{value:null},typeof s=="function"?s(o,a):Mn.cloneElement(Mn.Children.only(s),a))},t}(Mn.Component);Er.contextType=cd;Er.propTypes={};function Wi(){}Er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wi,onEntering:Wi,onEntered:Wi,onExit:Wi,onExiting:Wi,onExited:Wi};Er.UNMOUNTED=Va;Er.EXITED=oi;Er.ENTERING=ii;Er.ENTERED=Yi;Er.EXITING=eg;function $3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sy(e,t){var n=function(i){return t&&k.isValidElement(i)?t(i):i},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function A3(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]),x.jsx("span",{className:f,style:h,children:x.jsx("span",{className:v})})}const On=pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tg=550,B3=80,F3=ny` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,z3=ny` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,V3=ny` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,H3=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),U3=G(N3,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${On.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${F3}; + animation-duration: ${tg}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${On.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${On.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${On.childLeaving} { + opacity: 0; + animation-name: ${z3}; + animation-duration: ${tg}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${On.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${V3}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,W3=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=k.useState([]),u=k.useRef(0),d=k.useRef(null);k.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=k.useRef(!1),h=ls(),v=k.useRef(null),y=k.useRef(null),C=k.useCallback(w=>{const{pulsate:S,rippleX:T,rippleY:P,rippleSize:E,cb:R}=w;c(b=>[...b,x.jsx(U3,{classes:{ripple:X(i.ripple,On.ripple),rippleVisible:X(i.rippleVisible,On.rippleVisible),ripplePulsate:X(i.ripplePulsate,On.ripplePulsate),child:X(i.child,On.child),childLeaving:X(i.childLeaving,On.childLeaving),childPulsate:X(i.childPulsate,On.childPulsate)},timeout:tg,pulsate:S,rippleX:T,rippleY:P,rippleSize:E},u.current)]),u.current+=1,d.current=R},[i]),m=k.useCallback((w={},S={},T=()=>{})=>{const{pulsate:P=!1,center:E=o||S.pulsate,fakeElement:R=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const b=R?null:y.current,O=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,I,$;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(O.width/2),I=Math.round(O.height/2);else{const{clientX:D,clientY:M}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(D-O.left),I=Math.round(M-O.top)}if(E)$=Math.sqrt((2*O.width**2+O.height**2)/3),$%2===0&&($+=1);else{const D=Math.max(Math.abs((b?b.clientWidth:0)-_),_)*2+2,M=Math.max(Math.abs((b?b.clientHeight:0)-I),I)*2+2;$=Math.sqrt(D**2+M**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{C({pulsate:P,rippleX:_,rippleY:I,rippleSize:$,cb:T})},h.start(B3,()=>{v.current&&(v.current(),v.current=null)})):C({pulsate:P,rippleX:_,rippleY:I,rippleSize:$,cb:T})},[o,C,h]),g=k.useCallback(()=>{m({},{pulsate:!0})},[m]),p=k.useCallback((w,S)=>{if(h.clear(),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,h.start(0,()=>{p(w,S)});return}v.current=null,c(T=>T.length>0?T.slice(1):T),d.current=S},[h]);return k.useImperativeHandle(n,()=>({pulsate:g,start:m,stop:p}),[g,m,p]),x.jsx(H3,{className:X(On.root,i.root,s),ref:y,...a,children:x.jsx(ay,{component:null,exit:!0,children:l})})});function G3(e){return he("MuiButtonBase",e)}const K3=pe("MuiButtonBase",["root","disabled","focusVisible"]),q3=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=xe({root:["root",t&&"disabled",n&&"focusVisible"]},G3,o);return n&&r&&(s.root+=` ${r}`),s},Y3=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K3.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ns=k.forwardRef(function(t,n){const r=Te({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:v="a",onBlur:y,onClick:C,onContextMenu:m,onDragLeave:g,onFocus:p,onFocusVisible:w,onKeyDown:S,onKeyUp:T,onMouseDown:P,onMouseLeave:E,onMouseUp:R,onTouchEnd:b,onTouchMove:O,onTouchStart:_,tabIndex:I=0,TouchRippleProps:$,touchRippleRef:D,type:M,...N}=r,A=k.useRef(null),L=R3(),F=ct(L.ref,D),[Q,Y]=k.useState(!1);c&&Q&&Y(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),A.current.focus()}}),[]);const te=L.shouldMount&&!u&&!c;k.useEffect(()=>{Q&&f&&!u&&L.pulsate()},[u,f,Q,L]);function Z(ne,Xe,nr=d){return To(qt=>(Xe&&Xe(qt),nr||L[ne](qt),!0))}const oe=Z("start",P),fe=Z("stop",m),ie=Z("stop",g),V=Z("stop",R),ee=Z("stop",ne=>{Q&&ne.preventDefault(),E&&E(ne)}),K=Z("start",_),H=Z("stop",b),q=Z("stop",O),Se=Z("stop",ne=>{js(ne.target)||Y(!1),y&&y(ne)},!1),ce=To(ne=>{A.current||(A.current=ne.currentTarget),js(ne.target)&&(Y(!0),w&&w(ne)),p&&p(ne)}),de=()=>{const ne=A.current;return l&&l!=="button"&&!(ne.tagName==="A"&&ne.href)},Ue=To(ne=>{f&&!ne.repeat&&Q&&ne.key===" "&&L.stop(ne,()=>{L.start(ne)}),ne.target===ne.currentTarget&&de()&&ne.key===" "&&ne.preventDefault(),S&&S(ne),ne.target===ne.currentTarget&&de()&&ne.key==="Enter"&&!c&&(ne.preventDefault(),C&&C(ne))}),$e=To(ne=>{f&&ne.key===" "&&Q&&!ne.defaultPrevented&&L.stop(ne,()=>{L.pulsate(ne)}),T&&T(ne),C&&ne.target===ne.currentTarget&&de()&&ne.key===" "&&!ne.defaultPrevented&&C(ne)});let Re=l;Re==="button"&&(N.href||N.to)&&(Re=v);const Be={};Re==="button"?(Be.type=M===void 0?"button":M,Be.disabled=c):(!N.href&&!N.to&&(Be.role="button"),c&&(Be["aria-disabled"]=c));const ut=ct(n,A),Pe={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:Q},Ft=q3(Pe);return x.jsxs(Y3,{as:Re,className:X(Ft.root,a),ownerState:Pe,onBlur:Se,onClick:C,onContextMenu:fe,onFocus:ce,onKeyDown:Ue,onKeyUp:$e,onMouseDown:oe,onMouseLeave:ee,onMouseUp:V,onDragLeave:ie,onTouchEnd:H,onTouchMove:q,onTouchStart:K,ref:ut,tabIndex:c?-1:I,type:M,...Be,...N,children:[s,te?x.jsx(W3,{ref:F,center:i,...$}):null]})});function X3(e){return he("MuiIconButton",e)}const Q3=pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),J3=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${U(r)}`,o&&`edge${U(o)}`,`size${U(i)}`]};return xe(s,X3,t)},Z3=G(Ns,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${U(n.color)}`],n.edge&&t[`edge${U(n.edge)}`],t[`size${U(n.size)}`]]}})(ke(({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:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Me(e.palette.action.active,e.palette.action.hoverOpacity),"@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}}]})),ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(en()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(en()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Me((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Q3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),pn=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,disableRipple:u=!1,size:d="medium",...f}=r,h={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,disableRipple:u,size:d},v=J3(h);return x.jsx(Z3,{className:X(v.root,s),centerRipple:!0,focusRipple:!c,disabled:l,disableRipple:u,ref:n,...f,ownerState:h,children:i})});function eD(e){return he("MuiTypography",e)}pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},nD=p3(),rD=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return xe(a,eD,s)},oD=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ke(({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(en()).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${U(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}}]}})),O1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ue=k.forwardRef(function(t,n){const{color:r,...o}=Te({props:t,name:"MuiTypography"}),i=!tD[r],s=nD({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:v=O1,...y}=s,C={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:v},m=c||(f?"p":v[h]||O1[h])||"span",g=rD(C);return x.jsx(oD,{as:m,ref:n,className:X(g.root,l),...y,ownerState:C,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});var Ne={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ly=Symbol.for("react.element"),cy=Symbol.for("react.portal"),zf=Symbol.for("react.fragment"),Vf=Symbol.for("react.strict_mode"),Hf=Symbol.for("react.profiler"),Uf=Symbol.for("react.provider"),Wf=Symbol.for("react.context"),iD=Symbol.for("react.server_context"),Gf=Symbol.for("react.forward_ref"),Kf=Symbol.for("react.suspense"),qf=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),Xf=Symbol.for("react.lazy"),sD=Symbol.for("react.offscreen"),Wk;Wk=Symbol.for("react.module.reference");function Hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ly:switch(e=e.type,e){case zf:case Hf:case Vf:case Kf:case qf:return e;default:switch(e=e&&e.$$typeof,e){case iD:case Wf:case Gf:case Xf:case Yf:case Uf:return e;default:return t}}case cy:return t}}}Ne.ContextConsumer=Wf;Ne.ContextProvider=Uf;Ne.Element=ly;Ne.ForwardRef=Gf;Ne.Fragment=zf;Ne.Lazy=Xf;Ne.Memo=Yf;Ne.Portal=cy;Ne.Profiler=Hf;Ne.StrictMode=Vf;Ne.Suspense=Kf;Ne.SuspenseList=qf;Ne.isAsyncMode=function(){return!1};Ne.isConcurrentMode=function(){return!1};Ne.isContextConsumer=function(e){return Hn(e)===Wf};Ne.isContextProvider=function(e){return Hn(e)===Uf};Ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ly};Ne.isForwardRef=function(e){return Hn(e)===Gf};Ne.isFragment=function(e){return Hn(e)===zf};Ne.isLazy=function(e){return Hn(e)===Xf};Ne.isMemo=function(e){return Hn(e)===Yf};Ne.isPortal=function(e){return Hn(e)===cy};Ne.isProfiler=function(e){return Hn(e)===Hf};Ne.isStrictMode=function(e){return Hn(e)===Vf};Ne.isSuspense=function(e){return Hn(e)===Kf};Ne.isSuspenseList=function(e){return Hn(e)===qf};Ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zf||e===Hf||e===Vf||e===Kf||e===qf||e===sD||typeof e=="object"&&e!==null&&(e.$$typeof===Xf||e.$$typeof===Yf||e.$$typeof===Uf||e.$$typeof===Wf||e.$$typeof===Gf||e.$$typeof===Wk||e.getModuleId!==void 0)};Ne.typeOf=Hn;const ng=k.createContext({});function aD(e){return he("MuiList",e)}pe("MuiList",["root","padding","dense","subheader"]);const lD=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},aD,t)},cD=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),uD=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=k.useMemo(()=>({dense:a}),[a]),f={...r,component:s,dense:a,disablePadding:l},h=lD(f);return x.jsx(ng.Provider,{value:d,children:x.jsxs(cD,{as:s,className:X(h.root,i),ref:n,ownerState:f,...u,children:[c,o]})})});function dD(e){return he("MuiSvgIcon",e)}pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return xe(o,dD,r)},pD=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(ke(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,v;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,m;return{props:{color:y},style:{color:(m=(C=(e.vars??e).palette)==null?void 0:C[y])==null?void 0:m.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:(v=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ud=k.forwardRef(function(t,n){const r=Te({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,v=k.isValidElement(o)&&o.type==="svg",y={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:v},C={};u||(C.viewBox=f);const m=fD(y);return x.jsxs(pD,{as:a,className:X(m.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...C,...h,...v&&o.props,ownerState:y,children:[v?o.props.children:o,d?x.jsx("title",{children:d}):null]})});ud&&(ud.muiName="SvgIcon");function Oe(e,t){function n(r,o){return x.jsx(ud,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=ud.muiName,k.memo(k.forwardRef(n))}function ah(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function R1(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gk(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 Ea(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")||!Gk(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const hD=k.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=k.useRef(null),v=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cr(()=>{o&&h.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(p,{direction:w})=>{const S=!h.current.style.width;if(p.clientHeight{const w=h.current,S=p.key;if(p.ctrlKey||p.metaKey||p.altKey){u&&u(p);return}const P=bn(w).activeElement;if(S==="ArrowDown")p.preventDefault(),Ea(w,P,c,l,ah);else if(S==="ArrowUp")p.preventDefault(),Ea(w,P,c,l,R1);else if(S==="Home")p.preventDefault(),Ea(w,null,c,l,ah);else if(S==="End")p.preventDefault(),Ea(w,null,c,l,R1);else if(S.length===1){const E=v.current,R=S.toLowerCase(),b=performance.now();E.keys.length>0&&(b-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&R!==E.keys[0]&&(E.repeating=!1)),E.lastTime=b,E.keys.push(R);const O=P&&!E.repeating&&Gk(P,E);E.previousKeyMatched&&(O||Ea(w,P,!1,l,ah,E))?p.preventDefault():E.previousKeyMatched=!1}u&&u(p)},C=ct(h,n);let m=-1;k.Children.forEach(s,(p,w)=>{if(!k.isValidElement(p)){m===w&&(m+=1,m>=s.length&&(m=-1));return}p.props.disabled||(d==="selectedMenu"&&p.props.selected||m===-1)&&(m=w),m===w&&(p.props.disabled||p.props.muiSkipListHighlight||p.type.muiSkipListHighlight)&&(m+=1,m>=s.length&&(m=-1))});const g=k.Children.map(s,(p,w)=>{if(w===m){const S={};return i&&(S.autoFocus=!0),p.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),k.cloneElement(p,S)}return p});return x.jsx(uD,{role:"menu",ref:C,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:g})});function rg(e){return typeof e=="string"}const Kk=e=>e.scrollTop;function dd(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 og(e){return`scale(${e}, ${e**2})`}const mD={entering:{opacity:1,transform:og(1)},entered:{opacity:1,transform:"none"}},lh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jl=k.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:v,timeout:y="auto",TransitionComponent:C=Er,...m}=t,g=ls(),p=k.useRef(),w=Ff(),S=k.useRef(null),T=ct(S,aa(i),n),P=D=>M=>{if(D){const N=S.current;M===void 0?D(N):D(N,M)}},E=P(u),R=P((D,M)=>{Kk(D);const{duration:N,delay:A,easing:L}=dd({style:v,timeout:y,easing:s},{mode:"enter"});let F;y==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),p.current=F):F=N,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:A}),w.transitions.create("transform",{duration:lh?F:F*.666,delay:A,easing:L})].join(","),l&&l(D,M)}),b=P(c),O=P(h),_=P(D=>{const{duration:M,delay:N,easing:A}=dd({style:v,timeout:y,easing:s},{mode:"exit"});let L;y==="auto"?(L=w.transitions.getAutoHeightDuration(D.clientHeight),p.current=L):L=M,D.style.transition=[w.transitions.create("opacity",{duration:L,delay:N}),w.transitions.create("transform",{duration:lh?L:L*.666,delay:lh?N:N||L*.333,easing:A})].join(","),D.style.opacity=0,D.style.transform=og(.75),d&&d(D)}),I=P(f),$=D=>{y==="auto"&&g.start(p.current||0,D),r&&r(S.current,D)};return x.jsx(C,{appear:o,in:a,nodeRef:S,onEnter:R,onEntered:b,onEntering:E,onExit:_,onExited:I,onExiting:O,addEndListener:$,timeout:y==="auto"?null:y,...m,children:(D,M)=>k.cloneElement(i,{style:{opacity:0,transform:og(.75),visibility:D==="exited"&&!a?"hidden":void 0,...mD[D],...v,...i.props.style},ref:T,...M})})});jl&&(jl.muiSupportAuto=!0);function gD(e){const t=bn(e);return t.body===e?eo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function nl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I1(e){return parseInt(eo(e).getComputedStyle(e).paddingRight,10)||0}function vD(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 _1(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=!i.includes(s),l=!vD(s);a&&l&&nl(s,o)})}function ch(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function yD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(gD(r)){const s=Lk(eo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${I1(r)+s}px`;const a=bn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${I1(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=bn(r).body;else{const s=r.parentElement,a=eo(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 bD(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class wD{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&&nl(t.modalRef,!1);const o=bD(n);_1(n,t.mount,t.modalRef,o,!0);const i=ch(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=ch(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=yD(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ch(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&&nl(t.modalRef,n),_1(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&&nl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function SD(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 CD(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 kD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||CD(e))}function TD(e){const t=[],n=[];return Array.from(e.querySelectorAll(xD)).forEach((r,o)=>{const i=SD(r);i===-1||!kD(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 PD(){return!0}function ED(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=TD,isEnabled:s=PD,open:a}=e,l=k.useRef(!1),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),f=k.useRef(null),h=k.useRef(!1),v=k.useRef(null),y=ct(aa(t),v),C=k.useRef(null);k.useEffect(()=>{!a||!v.current||(h.current=!n)},[n,a]),k.useEffect(()=>{if(!a||!v.current)return;const p=bn(v.current);return v.current.contains(p.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),h.current&&v.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),k.useEffect(()=>{if(!a||!v.current)return;const p=bn(v.current),w=P=>{C.current=P,!(r||!s()||P.key!=="Tab")&&p.activeElement===v.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},S=()=>{var R,b;const P=v.current;if(P===null)return;if(!p.hasFocus()||!s()||l.current){l.current=!1;return}if(P.contains(p.activeElement)||r&&p.activeElement!==c.current&&p.activeElement!==u.current)return;if(p.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let E=[];if((p.activeElement===c.current||p.activeElement===u.current)&&(E=i(v.current)),E.length>0){const O=!!((R=C.current)!=null&&R.shiftKey&&((b=C.current)==null?void 0:b.key)==="Tab"),_=E[0],I=E[E.length-1];typeof _!="string"&&typeof I!="string"&&(O?I.focus():_.focus())}else P.focus()};p.addEventListener("focusin",S),p.addEventListener("keydown",w,!0);const T=setInterval(()=>{p.activeElement&&p.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(T),p.removeEventListener("focusin",S),p.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const m=p=>{d.current===null&&(d.current=p.relatedTarget),h.current=!0,f.current=p.target;const w=t.props.onFocus;w&&w(p)},g=p=>{d.current===null&&(d.current=p.relatedTarget),h.current=!0};return x.jsxs(k.Fragment,{children:[x.jsx("div",{tabIndex:a?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:y,onFocus:m}),x.jsx("div",{tabIndex:a?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function OD(e){return typeof e=="function"?e():e}const qk=k.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=k.useState(null),l=ct(k.isValidElement(r)?aa(r):null,n);if(Cr(()=>{i||a(OD(o)||document.body)},[o,i]),Cr(()=>{if(s&&!i)return Ym(n,s),()=>{Ym(n,null)}},[n,s,i]),i){if(k.isValidElement(r)){const c={ref:l};return k.cloneElement(r,c)}return x.jsx(k.Fragment,{children:r})}return x.jsx(k.Fragment,{children:s&&Vv.createPortal(r,s)})});function An(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,v=Bk(d[e],o),{props:{component:y,...C},internalRef:m}=Nk({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:v}),g=ct(m,v==null?void 0:v.ref,t.ref),p=s?s(C):{},w={...o,...p},S=e==="root"?y||c:y,T=cs(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...C,...S&&{as:S},ref:g},w);return Object.keys(p).forEach(P=>{delete T[P]}),[h,T]}const RD={entering:{opacity:1},entered:{opacity:1}},ID=k.forwardRef(function(t,n){const r=Ff(),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:v,onExiting:y,style:C,timeout:m=o,TransitionComponent:g=Er,...p}=t,w=k.useRef(null),S=ct(w,aa(a),n),T=$=>D=>{if($){const M=w.current;D===void 0?$(M):$(M,D)}},P=T(f),E=T(($,D)=>{Kk($);const M=dd({style:C,timeout:m,easing:l},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",M),$.style.transition=r.transitions.create("opacity",M),u&&u($,D)}),R=T(d),b=T(y),O=T($=>{const D=dd({style:C,timeout:m,easing:l},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",D),$.style.transition=r.transitions.create("opacity",D),h&&h($)}),_=T(v),I=$=>{i&&i(w.current,$)};return x.jsx(g,{appear:s,in:c,nodeRef:w,onEnter:E,onEntered:R,onEntering:P,onExit:O,onExited:_,onExiting:b,addEndListener:I,timeout:m,...p,children:($,D)=>k.cloneElement(a,{style:{opacity:0,visibility:$==="exited"&&!c?"hidden":void 0,...RD[$],...C,...a.props.style},ref:S,...D})})});function _D(e){return he("MuiBackdrop",e)}pe("MuiBackdrop",["root","invisible"]);const $D=e=>{const{ownerState:t,...n}=e;return n},AD=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},_D,t)},MD=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),DD=k.forwardRef(function(t,n){const r=Te({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:v,...y}=r,C={...r,component:s,invisible:a},m=AD(C),g={transition:h,root:c.Root,...f},p={...u,...d},w={slots:g,slotProps:p},[S,T]=An("root",{elementType:MD,externalForwardedProps:w,className:X(m.root,i),ownerState:C}),[P,E]=An("transition",{elementType:ID,externalForwardedProps:w,ownerState:C}),R=$D(E);return x.jsx(P,{in:l,timeout:v,...y,...R,children:x.jsx(S,{"aria-hidden":!0,...T,classes:m,ref:n,children:o})})});function LD(e){return typeof e=="function"?e():e}function jD(e){return e?e.props.hasOwnProperty("in"):!1}const Kc=new wD;function ND(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=k.useRef({}),f=k.useRef(null),h=k.useRef(null),v=ct(h,u),[y,C]=k.useState(!c),m=jD(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const p=()=>bn(f.current),w=()=>(d.current.modalRef=h.current,d.current.mount=f.current,d.current),S=()=>{Kc.mount(w(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},T=To(()=>{const D=LD(t)||p().body;Kc.add(w(),D),h.current&&S()}),P=()=>Kc.isTopModal(w()),E=To(D=>{f.current=D,D&&(c&&P()?S():h.current&&nl(h.current,g))}),R=k.useCallback(()=>{Kc.remove(w(),g)},[g]);k.useEffect(()=>()=>{R()},[R]),k.useEffect(()=>{c?T():(!m||!o)&&R()},[c,R,m,o,T]);const b=D=>M=>{var N;(N=D.onKeyDown)==null||N.call(D,M),!(M.key!=="Escape"||M.which===229||!P())&&(n||(M.stopPropagation(),l&&l(M,"escapeKeyDown")))},O=D=>M=>{var N;(N=D.onClick)==null||N.call(D,M),M.target===M.currentTarget&&l&&l(M,"backdropClick")};return{getRootProps:(D={})=>{const M=jk(e);delete M.onTransitionEnter,delete M.onTransitionExited;const N={...M,...D};return{role:"presentation",...N,onKeyDown:b(N),ref:v}},getBackdropProps:(D={})=>{const M=D;return{"aria-hidden":!0,...M,onClick:O(M),open:c}},getTransitionProps:()=>{const D=()=>{C(!1),i&&i()},M=()=>{C(!0),s&&s(),o&&R()};return{onEnter:p1(D,a==null?void 0:a.props.onEnter),onExited:p1(M,a==null?void 0:a.props.onExited)}},rootRef:v,portalRef:E,isTopModal:P,exited:y,hasTransition:m}}function BD(e){return he("MuiModal",e)}pe("MuiModal",["root","hidden","backdrop"]);const FD=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},BD,r)},zD=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({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"}}]}))),VD=G(DD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),uy=k.forwardRef(function(t,n){const r=Te({name:"MuiModal",props:t}),{BackdropComponent:o=VD,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:m=!1,disableRestoreFocus:g=!1,disableScrollLock:p=!1,hideBackdrop:w=!1,keepMounted:S=!1,onBackdropClick:T,onClose:P,onTransitionEnter:E,onTransitionExited:R,open:b,slotProps:O={},slots:_={},theme:I,...$}=r,D={...r,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:m,disableRestoreFocus:g,disableScrollLock:p,hideBackdrop:w,keepMounted:S},{getRootProps:M,getBackdropProps:N,getTransitionProps:A,portalRef:L,isTopModal:F,exited:Q,hasTransition:Y}=ND({...D,rootRef:n}),te={...D,exited:Q},Z=FD(te),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),Y){const{onEnter:q,onExited:Se}=A();oe.onEnter=q,oe.onExited=Se}const fe={...$,slots:{root:f.Root,backdrop:f.Backdrop,..._},slotProps:{...h,...O}},[ie,V]=An("root",{elementType:zD,externalForwardedProps:fe,getSlotProps:M,additionalProps:{ref:n,as:d},ownerState:te,className:X(a,Z==null?void 0:Z.root,!te.open&&te.exited&&(Z==null?void 0:Z.hidden))}),[ee,K]=An("backdrop",{elementType:o,externalForwardedProps:fe,additionalProps:i,getSlotProps:q=>N({...q,onClick:Se=>{T&&T(Se),q!=null&&q.onClick&&q.onClick(Se)}}),className:X(i==null?void 0:i.className,Z==null?void 0:Z.backdrop),ownerState:te}),H=ct(i==null?void 0:i.ref,K.ref);return!S&&!b&&(!Y||Q)?null:x.jsx(qk,{ref:L,container:u,disablePortal:m,children:x.jsxs(ie,{...V,children:[!w&&o?x.jsx(ee,{...K,ref:H}):null,x.jsx(ED,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:g,isEnabled:F,open:b,children:k.cloneElement(c,oe)})]})})});function HD(e){return he("MuiPopover",e)}pe("MuiPopover",["root","paper"]);function $1(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A1(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function M1(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uh(e){return typeof e=="function"?e():e}const UD=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},HD,t)},WD=G(uy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yk=G(Ei,{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}),GD=k.forwardRef(function(t,n){const r=Te({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:v,PaperProps:y={},slots:C={},slotProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:p=jl,transitionDuration:w="auto",TransitionProps:{onEntering:S,...T}={},disableScrollLock:P=!1,...E}=r,R=(m==null?void 0:m.paper)??y,b=k.useRef(),O={...r,anchorOrigin:s,anchorReference:l,elevation:f,marginThreshold:h,externalPaperSlotProps:R,transformOrigin:g,TransitionComponent:p,transitionDuration:w,TransitionProps:T},_=UD(O),I=k.useCallback(()=>{if(l==="anchorPosition")return a;const K=uh(i),q=(K&&K.nodeType===1?K:bn(b.current).body).getBoundingClientRect();return{top:q.top+$1(q,s.vertical),left:q.left+A1(q,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),$=k.useCallback(K=>({vertical:$1(K,g.vertical),horizontal:A1(K,g.horizontal)}),[g.horizontal,g.vertical]),D=k.useCallback(K=>{const H={width:K.offsetWidth,height:K.offsetHeight},q=$(H);if(l==="none")return{top:null,left:null,transformOrigin:M1(q)};const Se=I();let ce=Se.top-q.vertical,de=Se.left-q.horizontal;const Ue=ce+H.height,$e=de+H.width,Re=eo(uh(i)),Be=Re.innerHeight-h,ut=Re.innerWidth-h;if(h!==null&&ceBe){const Pe=Ue-Be;ce-=Pe,q.vertical+=Pe}if(h!==null&&deut){const Pe=$e-ut;de-=Pe,q.horizontal+=Pe}return{top:`${Math.round(ce)}px`,left:`${Math.round(de)}px`,transformOrigin:M1(q)}},[i,l,I,$,h]),[M,N]=k.useState(v),A=k.useCallback(()=>{const K=b.current;if(!K)return;const H=D(K);H.top!==null&&K.style.setProperty("top",H.top),H.left!==null&&(K.style.left=H.left),K.style.transformOrigin=H.transformOrigin,N(!0)},[D]);k.useEffect(()=>(P&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[i,P,A]);const L=(K,H)=>{S&&S(K,H),A()},F=()=>{N(!1)};k.useEffect(()=>{v&&A()}),k.useImperativeHandle(o,()=>v?{updatePosition:()=>{A()}}:null,[v,A]),k.useEffect(()=>{if(!v)return;const K=Mk(()=>{A()}),H=eo(i);return H.addEventListener("resize",K),()=>{K.clear(),H.removeEventListener("resize",K)}},[i,v,A]);let Q=w;w==="auto"&&!p.muiSupportAuto&&(Q=void 0);const Y=d||(i?bn(uh(i)).body:void 0),te={slots:C,slotProps:{...m,paper:R}},[Z,oe]=An("paper",{elementType:Yk,externalForwardedProps:te,additionalProps:{elevation:f,className:X(_.paper,R==null?void 0:R.className),style:M?R.style:{...R.style,opacity:0}},ownerState:O}),[fe,{slotProps:ie,...V}]=An("root",{elementType:WD,externalForwardedProps:te,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Y,open:v},ownerState:O,className:X(_.root,u)}),ee=ct(b,oe.ref);return x.jsx(fe,{...V,...!rg(fe)&&{slotProps:ie,disableScrollLock:P},...E,ref:n,children:x.jsx(p,{appear:!0,in:v,onEntering:L,onExited:F,timeout:Q,...T,children:x.jsx(Z,{...oe,ref:ee,children:c})})})});function KD(e){return he("MuiMenu",e)}pe("MuiMenu",["root","paper","list"]);const qD={vertical:"top",horizontal:"right"},YD={vertical:"top",horizontal:"left"},XD=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},KD,t)},QD=G(GD,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JD=G(Yk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZD=G(hD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ig=k.forwardRef(function(t,n){const r=Te({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:v,...y}={},variant:C="selectedMenu",slots:m={},slotProps:g={},...p}=r,w=Nf(),S={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:v,PaperProps:d,transitionDuration:h,TransitionProps:y,variant:C},T=XD(S),P=o&&!a&&u,E=k.useRef(null),R=(M,N)=>{E.current&&E.current.adjustStyleForScrollbar(M,{direction:w?"rtl":"ltr"}),v&&v(M,N)},b=M=>{M.key==="Tab"&&(M.preventDefault(),c&&c(M,"tabKeyDown"))};let O=-1;k.Children.map(i,(M,N)=>{k.isValidElement(M)&&(M.props.disabled||(C==="selectedMenu"&&M.props.selected||O===-1)&&(O=N))});const _=m.paper??JD,I=g.paper??d,$=Xm({elementType:m.root,externalSlotProps:g.root,ownerState:S,className:[T.root,s]}),D=Xm({elementType:_,externalSlotProps:I,ownerState:S,className:T.paper});return x.jsx(QD,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?qD:YD,slots:{paper:_,root:m.root},slotProps:{root:$,paper:D},open:u,ref:n,transitionDuration:h,TransitionProps:{onEntering:R,...y},ownerState:S,...p,classes:f,children:x.jsx(ZD,{onKeyDown:b,actions:E,autoFocus:o&&(O===-1||a),autoFocusItem:P,variant:C,...l,className:X(T.list,l.className),children:i})})}),eL=Oe(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Bs=A5({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Hk({props:e,name:"MuiContainer"})});function tL(e){return he("MuiButton",e)}const Gi=pe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","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"]),nL=k.createContext({}),rL=k.createContext(void 0),oL=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${U(t)}`,`size${U(o)}`,`${i}Size${U(o)}`,`color${U(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${U(o)}`],endIcon:["icon","endIcon",`iconSize${U(o)}`]},l=xe(a,tL,s);return{...s,...l}},Xk=[{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}}}],iL=G(Ns,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${U(n.color)}`],t[`size${U(n.size)}`],t[`${n.variant}Size${U(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(ke(({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"},[`&.${Gi.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]},[`&.${Gi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Gi.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)",[`&.${Gi.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(en()).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)`:Me(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})`:Me(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})`:Me(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})`:Me(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Me(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"},[`&.${Gi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),sL=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Xk]}),aL=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${U(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Xk]}),Fo=k.forwardRef(function(t,n){const r=k.useContext(nL),o=k.useContext(rL),i=Ml(r,t),s=Te({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:y,fullWidth:C=!1,size:m="medium",startIcon:g,type:p,variant:w="text",...S}=s,T={...s,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:C,size:m,type:p,variant:w},P=oL(T),E=g&&x.jsx(sL,{className:P.startIcon,ownerState:T,children:g}),R=v&&x.jsx(aL,{className:P.endIcon,ownerState:T,children:v}),b=o||"";return x.jsxs(iL,{ownerState:T,className:X(r.className,P.root,u,b),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:X(P.focusVisible,y),ref:n,type:p,...S,classes:P,children:[E,a,R]})});function lL(e){return he("MuiDivider",e)}const D1=pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),cL=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return xe({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"]},lL,r)},uL=G("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]}})(ke(({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)`:Me(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",whiteSpace:"nowrap",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%"}}}]}))),dL=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Fs=k.forwardRef(function(t,n){const r=Te({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",...v}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:h},C=cL(y);return x.jsx(uL,{as:l,className:X(C.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...v,children:i?x.jsx(dL,{className:C.wrapper,ownerState:y,children:i}):null})});Fs&&(Fs.muiSkipListHighlight=!0);const L1=pe("MuiListItemIcon",["root","alignItemsFlexStart"]),j1=pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function fL(e){return he("MuiMenuItem",e)}const Oa=pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fL,s);return{...s,...l}},mL=G(Ns,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pL})(ke(({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"}},[`&.${Oa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Me(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Oa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Me(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Oa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Me(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})`:Me(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Oa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${D1.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${D1.inset}`]:{marginLeft:52},[`& .${j1.root}`]:{marginTop:0,marginBottom:0},[`& .${j1.inset}`]:{paddingLeft:36},[`& .${L1.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,[`& .${L1.root} svg`]:{fontSize:"1.25rem"}}}]}))),dh=k.forwardRef(function(t,n){const r=Te({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,v=k.useContext(ng),y=k.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),C=k.useRef(null);Cr(()=>{o&&C.current&&C.current.focus()},[o]);const m={...r,dense:y.dense,divider:a,disableGutters:l},g=hL(r),p=ct(C,n);let w;return r.disabled||(w=d!==void 0?d:-1),x.jsx(ng.Provider,{value:y,children:x.jsx(mL,{ref:p,role:u,tabIndex:w,component:i,focusVisibleClassName:X(g.focusVisible,c),className:X(g.root,f),...h,ownerState:m,classes:g})})}),sg=Oe(x.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"),ag={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"}},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"}}},gL={light:!1,theme:ag.light,toggle:()=>{}},tr=Mn.createContext(gL);function vL({children:e}){const[t,n]=k.useState(!1);k.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?ag.light:ag.dark;return x.jsx(tr.Provider,{value:{theme:o,light:t,toggle:r},children:e})}const dy=k.createContext(void 0);function Li(){return k.useContext(dy)}function yL(e){return he("PrivateSwitchBase",e)}pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bL=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${U(o)}`],input:["input"]};return xe(i,yL,t)},wL=G(Ns)({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}}]}),xL=G("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SL=k.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:v,name:y,onBlur:C,onChange:m,onFocus:g,readOnly:p,required:w=!1,tabIndex:S,type:T,value:P,...E}=t,[R,b]=Dl({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=Li(),_=L=>{g&&g(L),O&&O.onFocus&&O.onFocus(L)},I=L=>{C&&C(L),O&&O.onBlur&&O.onBlur(L)},$=L=>{if(L.nativeEvent.defaultPrevented)return;const F=L.target.checked;b(F),m&&m(L,F)};let D=l;O&&typeof D>"u"&&(D=O.disabled);const M=T==="checkbox"||T==="radio",N={...t,checked:R,disabled:D,disableFocusRipple:c,edge:u},A=bL(N);return x.jsxs(wL,{component:"span",className:X(A.root,s),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:_,onBlur:I,ownerState:N,ref:n,...E,children:[x.jsx(xL,{autoFocus:r,checked:o,defaultChecked:a,className:A.input,disabled:D,id:M?f:void 0,name:y,onChange:$,readOnly:p,ref:v,required:w,ownerState:N,tabIndex:S,type:T,...T==="checkbox"&&P===void 0?{}:{value:P},...h}),R?i:d]})});function CL(e){return he("MuiSwitch",e)}const Vt=pe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kL=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${U(n)}`,`size${U(r)}`],switchBase:["switchBase",`color${U(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=xe(a,CL,t);return{...t,...l}},TL=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${U(n.edge)}`],t[`size${U(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,[`& .${Vt.thumb}`]:{width:16,height:16},[`& .${Vt.switchBase}`]:{padding:4,[`&.${Vt.checked}`]:{transform:"translateX(16px)"}}}}]}),PL=G(SL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Vt.input}`]:t.input},n.color!=="default"&&t[`color${U(n.color)}`]]}})(ke(({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}),[`&.${Vt.checked}`]:{transform:"translateX(20px)"},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Vt.checked} + .${Vt.track}`]:{opacity:.5},[`&.${Vt.disabled} + .${Vt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Vt.input}`]:{left:"-100%",width:"300%"}})),ke(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Me(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(en(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Vt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Me(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Lf(e.palette[t].main,.62):Df(e.palette[t].main,.55)}`}},[`&.${Vt.checked} + .${Vt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),EL=G("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(ke(({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}`}))),OL=G("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(ke(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),RL=k.forwardRef(function(t,n){const r=Te({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=kL(u),f=x.jsx(OL,{className:d.thumb,ownerState:u});return x.jsxs(TL,{className:X(d.root,o),sx:l,ownerState:u,children:[x.jsx(PL,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),x.jsx(EL,{className:d.track,ownerState:u})]})}),IL=Oe([x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 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"),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),_L=Oe(x.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"),$L=Oe(x.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),AL=Oe(x.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"),Qk=Oe([x.jsx("path",{d:"m12 2-5.5 9h11z"},"0"),x.jsx("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),x.jsx("path",{d:"M3 13.5h8v8H3z"},"2")],"Category"),ML=Oe(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),DL=Oe(x.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"),LL=Oe(x.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),jL=Oe(x.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"),NL=Oe(x.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"),BL=Oe(x.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"),Jk=Oe(x.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"),Zk=Oe(x.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"),eT=Oe(x.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"),FL=Oe(x.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"),fy=Oe(x.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"),zL=Oe(x.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"),VL=Oe(x.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"),HL=Oe([x.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"),x.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"),UL=Oe(x.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 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),WL=Oe(x.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"),GL=Oe(x.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"),KL=Oe(x.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),qL=Oe(x.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"),N1=Oe(x.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"),YL=Oe(x.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 XL(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 Nl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lg=e=>Array.isArray(e);function tT(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 py(e,t,n,r){if(typeof t=="function"){const[o,i]=B1(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]=B1(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Qf(e,t,n){const r=e.getProps();return py(r,t,n!==void 0?n:r.custom,e)}const hy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],my=["initial",...hy],cc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qo=new Set(cc),Hr=e=>e*1e3,Ur=e=>e/1e3,QL={type:"spring",stiffness:500,damping:25,restSpeed:10},JL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZL={type:"keyframes",duration:.8},ej={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tj=(e,{keyframes:t})=>t.length>2?ZL:qo.has(e)?e.startsWith("scale")?JL(t[1]):QL:ej;function gy(e,t){return e[t]||e.default||e}const nj={skipAnimations:!1,useManualTiming:!1},rj=e=>e!==null;function Jf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rj),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Nt=e=>e;function oj(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 qc=["read","resolveKeyframes","update","preRender","render","postRender"],ij=40;function nT(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=qc.reduce((m,g)=>(m[g]=oj(i),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,ij),1),o.timestamp=m,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))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:qc.reduce((m,g)=>{const p=s[g];return m[g]=(w,S=!1,T=!1)=>(n||v(),p.schedule(w,S,T)),m},{}),cancel:m=>{for(let g=0;g(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sj=1e-7,aj=12;function lj(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=rT(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>sj&&++alj(i,0,1,e,n);return i=>i===0||i===1?i:rT(o(i),t,r)}const oT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iT=e=>t=>1-e(1-t),sT=uc(.33,1.53,.69,.99),vy=iT(sT),aT=oT(vy),lT=e=>(e*=2)<1?.5*vy(e):.5*(2-Math.pow(2,-10*(e-1))),yy=e=>1-Math.sin(Math.acos(e)),cT=iT(yy),uT=oT(yy),dT=e=>/^0[^.\s]+$/u.test(e);function cj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dT(e):!0}let cg=Nt;const fT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),pT=e=>t=>typeof t=="string"&&t.startsWith(e),hT=pT("--"),uj=pT("var(--"),by=e=>uj(e)?dj.test(e.split("/*")[0].trim()):!1,dj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pj(e){const t=fj.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function mT(e,t,n=1){const[r,o]=pj(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return fT(s)?parseFloat(s):s}return by(o)?mT(o,t,n+1):o}const Vo=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Fl={...la,transform:e=>Vo(0,1,e)},Yc={...la,default:1},dc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fo=dc("deg"),vr=dc("%"),ae=dc("px"),hj=dc("vh"),mj=dc("vw"),F1={...vr,parse:e=>vr.parse(e)/100,transform:e=>vr.transform(e*100)},gj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),z1=e=>e===la||e===ae,V1=(e,t)=>parseFloat(e.split(", ")[t]),H1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return V1(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?V1(i[1],e):0}},vj=new Set(["x","y","z"]),yj=cc.filter(e=>!vj.has(e));function bj(e){const t=[];return yj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const zs={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:H1(4,13),y:H1(5,14)};zs.translateX=zs.x;zs.translateY=zs.y;const gT=e=>t=>t.test(e),wj={test:e=>e==="auto",parse:e=>e},vT=[la,ae,vr,fo,mj,hj,wj],U1=e=>vT.find(gT(e)),yi=new Set;let ug=!1,dg=!1;function yT(){if(dg){const e=Array.from(yi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=bj(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)})}dg=!1,ug=!1,yi.forEach(e=>e.complete()),yi.clear()}function bT(){yi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dg=!0)})}function xj(){bT(),yT()}class wy{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?(yi.add(this),ug||(ug=!0,je.read(bT),je.resolveKeyframes(yT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,xy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sj(e){return e==null}const Cj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sy=(e,t)=>n=>!!(typeof n=="string"&&Cj.test(n)&&n.startsWith(e)||t&&!Sj(n)&&Object.prototype.hasOwnProperty.call(n,t)),wT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(xy);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},kj=e=>Vo(0,255,e),ph={...la,transform:e=>Math.round(kj(e))},pi={test:Sy("rgb","red"),parse:wT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ph.transform(e)+", "+ph.transform(t)+", "+ph.transform(n)+", "+rl(Fl.transform(r))+")"};function Tj(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 fg={test:Sy("#"),parse:Tj,transform:pi.transform},us={test:Sy("hsl","hue"),parse:wT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vr.transform(rl(t))+", "+vr.transform(rl(n))+", "+rl(Fl.transform(r))+")"},Mt={test:e=>pi.test(e)||fg.test(e)||us.test(e),parse:e=>pi.test(e)?pi.parse(e):us.test(e)?us.parse(e):fg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pi.transform(e):us.transform(e)},Pj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ej(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pj))===null||n===void 0?void 0:n.length)||0)>0}const xT="number",ST="color",Oj="var",Rj="var(",W1="${}",Ij=/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 zl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Ij,l=>(Mt.test(l)?(r.color.push(i),o.push(ST),n.push(Mt.parse(l))):l.startsWith(Rj)?(r.var.push(i),o.push(Oj),n.push(l)):(r.number.push(i),o.push(xT),n.push(parseFloat(l))),++i,W1)).split(W1);return{values:n,split:a,indexes:r,types:o}}function CT(e){return zl(e).values}function kT(e){const{split:t,types:n}=zl(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function $j(e){const t=CT(e);return kT(e)(t.map(_j))}const Ho={test:Ej,parse:CT,createTransformer:kT,getAnimatableNone:$j},Aj=new Set(["brightness","contrast","saturate","opacity"]);function Mj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xy)||[];if(!r)return e;const o=n.replace(r,"");let i=Aj.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Dj=/\b([a-z-]*)\(.*?\)/gu,pg={...Ho,getAnimatableNone:e=>{const t=e.match(Dj);return t?t.map(Mj).join(" "):e}},Lj={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,radius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,backgroundPositionX:ae,backgroundPositionY:ae},jj={rotate:fo,rotateX:fo,rotateY:fo,rotateZ:fo,scale:Yc,scaleX:Yc,scaleY:Yc,scaleZ:Yc,skew:fo,skewX:fo,skewY:fo,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Fl,originX:F1,originY:F1,originZ:ae},G1={...la,transform:Math.round},Cy={...Lj,...jj,zIndex:G1,size:ae,fillOpacity:Fl,strokeOpacity:Fl,numOctaves:G1},Nj={...Cy,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:pg,WebkitFilter:pg},ky=e=>Nj[e];function TT(e,t){let n=ky(e);return n!==pg&&(n=Ho),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Bj=new Set(["auto","none","0"]);function Fj(e,t,n){let r=0,o;for(;r{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Ty(e){return typeof e=="function"}let xu;function zj(){xu=void 0}const yr={now:()=>(xu===void 0&&yr.set(Pt.isProcessing||nj.useManualTiming?Pt.timestamp:performance.now()),xu),set:e=>{xu=e,queueMicrotask(zj)}},K1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ho.test(e)||e==="0")&&!e.startsWith("url("));function Vj(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nUj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&xj(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Hj(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(Jf(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 OT(e,t){return t?e*(1e3/t):0}const Wj=5;function RT(e,t,n){const r=Math.max(t-Wj,0);return OT(n-e(r),t-r)}const hh=.001,Gj=.01,Kj=10,qj=.05,Yj=1;function Xj({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Vo(qj,Yj,s),e=Vo(Gj,Kj,Ur(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,h=hg(c,s),v=Math.exp(-d);return hh-f/h*v},i=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),y=hg(Math.pow(c,2),s);return(-o(c)+hh>0?-1:1)*((f-h)*v)/y}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-hh+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Jj(o,i,a);if(e=Hr(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 Qj=12;function Jj(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function t4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!q1(e,e4)&&q1(e,Zj)){const n=Xj(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function IT({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}=t4({...r,velocity:-Ur(r.velocity||0)}),h=d||0,v=l/(2*Math.sqrt(a*c)),y=i-o,C=Ur(Math.sqrt(a/c)),m=Math.abs(y)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let g;if(v<1){const p=hg(C,v);g=w=>{const S=Math.exp(-v*C*w);return i-S*((h+v*C*y)/p*Math.sin(p*w)+y*Math.cos(p*w))}}else if(v===1)g=p=>i-Math.exp(-C*p)*(y+(h+C*y)*p);else{const p=C*Math.sqrt(v*v-1);g=w=>{const S=Math.exp(-v*C*w),T=Math.min(p*w,300);return i-S*((h+v*C*y)*Math.sinh(T)+p*y*Math.cosh(T))/p}}return{calculatedDuration:f&&u||null,next:p=>{const w=g(p);if(f)s.done=p>=u;else{let S=0;v<1&&(S=p===0?Hr(h):RT(g,p,w));const T=Math.abs(S)<=n,P=Math.abs(i-w)<=t;s.done=T&&P}return s.value=s.done?i:w,s}}}function Y1({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=E=>a!==void 0&&El,v=E=>a===void 0?l:l===void 0||Math.abs(a-E)-y*Math.exp(-E/r),p=E=>m+g(E),w=E=>{const R=g(E),b=p(E);f.done=Math.abs(R)<=c,f.value=f.done?m:b};let S,T;const P=E=>{h(f.value)&&(S=E,T=IT({keyframes:[f.value,v(f.value)],velocity:RT(p,E,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:E=>{let R=!1;return!T&&S===void 0&&(R=!0,w(E),P(E)),S!==void 0&&E>=S?T.next(E-S):(!R&&w(E),f)}}}const n4=uc(.42,0,1,1),r4=uc(0,0,.58,1),_T=uc(.42,0,.58,1),o4=e=>Array.isArray(e)&&typeof e[0]!="number",X1={linear:Nt,easeIn:n4,easeInOut:_T,easeOut:r4,circIn:yy,circInOut:uT,circOut:cT,backIn:vy,backInOut:aT,backOut:sT,anticipate:lT},Q1=e=>{if(Array.isArray(e)){cg(e.length===4);const[t,n,r,o]=e;return uc(t,n,r,o)}else if(typeof e=="string")return cg(X1[e]!==void 0),X1[e];return e},i4=(e,t)=>n=>t(e(n)),Wr=(...e)=>e.reduce(i4),Vs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},et=(e,t,n)=>e+(t-e)*n;function mh(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 s4({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=mh(l,a,e+1/3),i=mh(l,a,e),s=mh(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function fd(e,t){return n=>n>0?t:e}const gh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},a4=[fg,pi,us],l4=e=>a4.find(t=>t.test(e));function J1(e){const t=l4(e);if(!t)return!1;let n=t.parse(e);return t===us&&(n=s4(n)),n}const Z1=(e,t)=>{const n=J1(e),r=J1(t);if(!n||!r)return fd(e,t);const o={...n};return i=>(o.red=gh(n.red,r.red,i),o.green=gh(n.green,r.green,i),o.blue=gh(n.blue,r.blue,i),o.alpha=et(n.alpha,r.alpha,i),pi.transform(o))},mg=new Set(["none","hidden"]);function c4(e,t){return mg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function u4(e,t){return n=>et(e,t,n)}function Py(e){return typeof e=="number"?u4:typeof e=="string"?by(e)?fd:Mt.test(e)?Z1:p4:Array.isArray(e)?$T:typeof e=="object"?Mt.test(e)?Z1:d4:fd}function $T(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Py(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function f4(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Ho.createTransformer(t),r=zl(e),o=zl(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?mg.has(e)&&!o.values.length||mg.has(t)&&!r.values.length?c4(e,t):Wr($T(f4(r,o),o.values),n):fd(e,t)};function AT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?et(e,t,n):Py(e)(e,t)}function h4(e,t,n){const r=[],o=n||AT,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=h4(t,r,o),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(Vo(e[0],e[i-1],c)):l}function g4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Vs(0,t,r);e.push(et(n,1,o))}}function v4(e){const t=[0];return g4(t,e.length-1),t}function y4(e,t){return e.map(n=>n*t)}function b4(e,t){return e.map(()=>t||_T).splice(0,e.length-1)}function pd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=o4(r)?r.map(Q1):Q1(r),i={done:!1,value:t[0]},s=y4(n&&n.length===t.length?n:v4(t),e),a=m4(s,t,{ease:Array.isArray(o)?o:b4(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const ew=2e4;function w4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ew?1/0:t}const x4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>je.update(t,!0),stop:()=>zo(t),now:()=>Pt.isProcessing?Pt.timestamp:yr.now()}},S4={decay:Y1,inertia:Y1,tween:pd,keyframes:pd,spring:IT},C4=e=>e/100;class Ey extends ET{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)||wy,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=Ty(n)?n:S4[n]||pd;let l,c;a!==pd&&typeof t[0]!="number"&&(l=Wr(C4,AT(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=w4(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:E}=this.options;return{done:!0,value:E[E.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:v,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 m=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let p=this.currentTime,w=i;if(h){const E=Math.min(this.currentTime,u)/d;let R=Math.floor(E),b=E%1;!b&&E>=1&&(b=1),b===1&&R--,R=Math.min(R,h+1),!!(R%2)&&(v==="reverse"?(b=1-b,y&&(b-=y/d)):v==="mirror"&&(w=s)),p=Vo(0,1,b)*d}const S=g?{done:!1,value:l[0]}:w.next(p);a&&(S.value=a(S.value));let{done:T}=S;!g&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return P&&o!==void 0&&(S.value=Jf(l,this.options,o)),C&&C(S.value),P&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Ur(t.calculatedDuration):0}get time(){return Ur(this.currentTime)}set time(t){t=Hr(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=Ur(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=x4,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 MT=new Set(["opacity","clipPath","filter","transform"]),DT=e=>Array.isArray(e)&&typeof e[0]=="number",k4=10,T4=(e,t)=>{let n="";const r=Math.max(Math.round(t/k4),2);for(let o=0;o(t===void 0&&(t=e()),t)}const P4={linearEasing:void 0};function E4(e,t){const n=Oy(e);return()=>{var r;return(r=P4[t])!==null&&r!==void 0?r:n()}}const hd=E4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function LT(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in gg||hd())||DT(e)||Array.isArray(e)&&e.every(LT))}const Ha=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ha([0,.65,.55,1]),circOut:Ha([.55,0,1,.45]),backIn:Ha([.31,.01,.66,-.59]),backOut:Ha([.33,1.53,.69,.99])};function jT(e,t){if(e)return typeof e=="function"&&hd()?T4(e,t):DT(e)?Ha(e):Array.isArray(e)?e.map(n=>jT(n,t)||gg.easeOut):gg[e]}function O4(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=jT(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 tw(e,t){e.timeline=t,e.onfinish=null}const R4=Oy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),md=10,I4=2e4;function _4(e){return Ty(e.type)||e.type==="spring"||!LT(e.ease)}function $4(e,t){const n=new Ey({...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"&&hd()&&A4(s)&&(s=NT[s]),_4(this.options)){const{onComplete:f,onUpdate:h,motionValue:v,element:y,...C}=this.options,m=$4(t,C);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,a="keyframes"}const d=O4(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(tw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Jf(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 Ur(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ur(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hr(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 Nt;const{animation:r}=n;tw(r,t)}return Nt}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,v=new Ey({...h,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=Hr(this.time);c.setWithVelocity(v.sample(y-md).value,v.sample(y).value,md)}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 R4()&&r&&MT.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const M4=Oy(()=>window.ScrollTimeline!==void 0);class D4{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;rM4()&&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 L4({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 Ry=(e,t,n,r={},o,i)=>s=>{const a=gy(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Hr(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};L4(a)||(u={...u,...tj(e,u)}),u.duration&&(u.duration=Hr(u.duration)),u.repeatDelay&&(u.repeatDelay=Hr(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=Jf(u.keyframes,a);if(f!==void 0)return je.update(()=>{u.onUpdate(f),u.onComplete()}),new D4([])}return!i&&nw.supports(u)?new nw(u):new Ey(u)},j4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),N4=e=>lg(e)?e[e.length-1]||0:e;function fc(e,t){e.indexOf(t)===-1&&e.push(t)}function Iy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class _y{constructor(){this.subscriptions=[]}add(t){return fc(this.subscriptions,t),()=>Iy(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 BT{constructor(t,n={}){this.version="11.9.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=yr.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=yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=B4(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 _y);const r=this.events[t].add(n);return t==="change"?()=>{r(),je.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=yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rw);return OT(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 Vl(e,t){return new BT(e,t)}function F4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vl(n))}function z4(e,t){const n=Qf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=N4(i[s]);F4(e,s,a)}}const Zf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),V4="framerAppearId",FT="data-"+Zf(V4);function zT(e){return e.props[FT]}function VT(e){if(qo.has(e))return"transform";if(MT.has(e))return Zf(e)}class H4 extends BT{constructor(){super(...arguments),this.values=[]}add(t){const n=VT(t);n&&(fc(this.values,n),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}const Lt=e=>!!(e&&e.getVelocity);function U4(e){return!!(Lt(e)&&e.add)}function vg(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new H4("auto"),e.addValue("willChange",r)),U4(r))return r.add(t)}function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function HT(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&&W4(u,d))continue;const v={delay:n,...gy(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const m=zT(e);if(m){const g=window.MotionHandoffAnimation(m,d,je);g!==null&&(v.startTime=g,y=!0)}}vg(e,d),f.start(Ry(d,f,h,e.shouldReduceMotion&&qo.has(d)?{type:!1}:v,e,y));const C=f.animation;C&&c.push(C)}return a&&Promise.all(c).then(()=>{je.update(()=>{a&&z4(e,a)})}),c}function yg(e,t,n={}){var r;const o=Qf(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(HT(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return G4(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 G4(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(K4).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(yg(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function K4(e,t){return e.sortNodePosition(t)}function q4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>yg(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=yg(e,t,n);else{const o=typeof t=="function"?Qf(e,t,n.custom):t;r=Promise.all(HT(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Y4=my.length;function UT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?UT(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})=>q4(e,n,r)))}function Z4(e){let t=J4(e),n=ow(),r=!0;const o=l=>(c,u)=>{var d;const f=Qf(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:v,...y}=f;c={...c,...y,...v}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=UT(e.parent)||{},d=[],f=new Set;let h={},v=1/0;for(let C=0;Cv&&w,R=!1;const b=Array.isArray(p)?p:[p];let O=b.reduce(o(m),{});S===!1&&(O={});const{prevResolvedValues:_={}}=g,I={..._,...O},$=N=>{E=!0,f.has(N)&&(R=!0,f.delete(N)),g.needsAnimating[N]=!0;const A=e.getValue(N);A&&(A.liveStyle=!1)};for(const N in I){const A=O[N],L=_[N];if(h.hasOwnProperty(N))continue;let F=!1;lg(A)&&lg(L)?F=!tT(A,L):F=A!==L,F?A!=null?$(N):f.add(N):A!==void 0&&f.has(N)?$(N):g.protectedKeys[N]=!0}g.prevProp=p,g.prevResolvedValues=O,g.isActive&&(h={...h,...O}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(T&&P)||R)&&d.push(...b.map(N=>({animation:N,options:{type:m}})))}if(f.size){const C={};f.forEach(m=>{const g=e.getBaseTarget(m),p=e.getValue(m);p&&(p.liveStyle=!0),C[m]=g??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=ow(),r=!0}}}function eN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tT(t,e):!1}function Jo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ow(){return{animate:Jo(!0),whileInView:Jo(),whileHover:Jo(),whileTap:Jo(),whileDrag:Jo(),whileFocus:Jo(),exit:Jo()}}class Yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tN extends Yo{constructor(t){super(t),t.animationState||(t.animationState=Z4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Nl(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 nN=0;class rN extends Yo{constructor(){super(...arguments),this.id=nN++}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 oN={animation:{Feature:tN},exit:{Feature:rN}},WT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ep(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const iN=e=>t=>WT(t)&&e(t,ep(t));function jr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Gr(e,t,n,r){return jr(e,t,iN(n),r)}const iw=(e,t)=>Math.abs(e-t);function sN(e,t){const n=iw(e.x,t.x),r=iw(e.y,t.y);return Math.sqrt(n**2+r**2)}class GT{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=yh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=sN(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:v}=d,{timestamp:y}=Pt;this.history.push({...v,timestamp:y});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=vh(f,this.transformPagePoint),je.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=yh(d.type==="pointercancel"?this.lastMoveEventInfo:vh(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,C),v&&v(d,C)},!WT(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=ep(t),a=vh(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Pt;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,yh(a,this.history)),this.removeListeners=Wr(Gr(this.contextWindow,"pointermove",this.handlePointerMove),Gr(this.contextWindow,"pointerup",this.handlePointerUp),Gr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),zo(this.updatePoint)}}function vh(e,t){return t?{point:t(e.point)}:e}function sw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yh({point:e},t){return{point:e,delta:sw(e,KT(t)),offset:sw(e,aN(t)),velocity:lN(t,.1)}}function aN(e){return e[0]}function KT(e){return e[e.length-1]}function lN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=KT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Hr(t)));)n--;if(!r)return{x:0,y:0};const i=Ur(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 qT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const aw=qT("dragHorizontal"),lw=qT("dragVertical");function YT(e){let t=!1;if(e==="y")t=lw();else if(e==="x")t=aw();else{const n=aw(),r=lw();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function XT(){const e=YT(!0);return e?(e(),!1):!0}function ds(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const QT=1e-4,cN=1-QT,uN=1+QT,JT=.01,dN=0-JT,fN=0+JT;function wn(e){return e.max-e.min}function pN(e,t,n){return Math.abs(e-t)<=n}function cw(e,t,n,r=.5){e.origin=r,e.originPoint=et(t.min,t.max,e.origin),e.scale=wn(n)/wn(t),e.translate=et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cN&&e.scale<=uN||isNaN(e.scale))&&(e.scale=1),(e.translate>=dN&&e.translate<=fN||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,n,r){cw(e.x,t.x,n.x,r?r.originX:void 0),cw(e.y,t.y,n.y,r?r.originY:void 0)}function uw(e,t,n){e.min=n.min+t.min,e.max=e.min+wn(t)}function hN(e,t,n){uw(e.x,t.x,n.x),uw(e.y,t.y,n.y)}function dw(e,t,n){e.min=t.min-n.min,e.max=e.min+wn(t)}function il(e,t,n){dw(e.x,t.x,n.x),dw(e.y,t.y,n.y)}function mN(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?et(n,e,r.max):Math.min(e,n)),e}function fw(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 gN(e,{top:t,left:n,bottom:r,right:o}){return{x:fw(e.x,n,o),y:fw(e.y,t,r)}}function pw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Vs(t.min,t.max-r,e.min):r>o&&(n=Vs(e.min,e.max-o,t.min)),Vo(0,1,n)}function bN(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 bg=.35;function wN(e=bg){return e===!1?e=0:e===!0&&(e=bg),{x:hw(e,"left","right"),y:hw(e,"top","bottom")}}function hw(e,t,n){return{min:mw(e,t),max:mw(e,n)}}function mw(e,t){return typeof e=="number"?e:e[t]||0}const gw=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:gw(),y:gw()}),vw=()=>({min:0,max:0}),dt=()=>({x:vw(),y:vw()});function En(e){return[e("x"),e("y")]}function ZT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SN(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 bh(e){return e===void 0||e===1}function wg({scale:e,scaleX:t,scaleY:n}){return!bh(e)||!bh(t)||!bh(n)}function si(e){return wg(e)||eP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function eP(e){return yw(e.x)||yw(e.y)}function yw(e){return e&&e!=="0%"}function gd(e,t,n){const r=e-n,o=t*r;return n+o}function bw(e,t,n,r,o){return o!==void 0&&(e=gd(e,o,r)),gd(e,n,r)+t}function xg(e,t=0,n=1,r,o){e.min=bw(e.min,t,n,r,o),e.max=bw(e.max,t,n,r,o)}function tP(e,{x:t,y:n}){xg(e.x,t.translate,t.scale,t.originPoint),xg(e.y,n.translate,n.scale,n.originPoint)}const ww=.999999999999,xw=1.0000000000001;function CN(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aww&&(t.x=1),t.yww&&(t.y=1)}function ps(e,t){e.min=e.min+t,e.max=e.max+t}function Sw(e,t,n,r,o=.5){const i=et(e.min,e.max,o);xg(e,t,n,i,r)}function hs(e,t){Sw(e.x,t.x,t.scaleX,t.scale,t.originX),Sw(e.y,t.y,t.scaleY,t.scale,t.originY)}function nP(e,t){return ZT(SN(e.getBoundingClientRect(),t))}function kN(e,t,n){const r=nP(e,n),{scroll:o}=t;return o&&(ps(r.x,o.offset.x),ps(r.y,o.offset.y)),r}const rP=({current:e})=>e?e.ownerDocument.defaultView:null,TN=new WeakMap;class PN{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=dt(),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(ep(u,"page").point)},i=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:v}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=YT(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),En(C=>{let m=this.getAxisMotionValue(C).get()||0;if(vr.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const p=g.layout.layoutBox[C];p&&(m=wn(p)*(parseFloat(m)/100))}}this.originPoint[C]=m}),v&&je.postRender(()=>v(u,d)),vg(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=d;if(h&&this.currentDirection===null){this.currentDirection=EN(C),this.currentDirection!==null&&v&&v(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=()=>En(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 GT(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:rP(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&&je.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||!Xc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mN(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&&ds(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=gN(o.layoutBox,n):this.constraints=!1,this.elastic=wN(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&En(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=bN(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ds(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=kN(r,o.root,this.visualElement.getTransformPagePoint());let s=vN(o.layout.layoutBox,i);if(n){const a=n(xN(s));this.hasMutatedConstraints=!!a,a&&(s=ZT(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=En(u=>{if(!Xc(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,v={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return vg(this.visualElement,t),r.start(Ry(t,r,0,n,this.visualElement,!1))}stopAnimation(){En(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){En(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){En(n=>{const{drag:r}=this.getProps();if(!Xc(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]-et(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ds(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};En(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=yN({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(),En(s=>{if(!Xc(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(et(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;TN.set(this.visualElement,this);const t=this.visualElement.current,n=Gr(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ds(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()),je.read(r);const s=jr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(En(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=bg,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Xc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ON extends Yo{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new PN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Cw=e=>(t,n)=>{e&&je.postRender(()=>e(t,n))};class RN extends Yo{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new GT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Cw(t),onStart:Cw(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&je.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Gr(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 tp=k.createContext(null);function IN(){const e=k.useContext(tp);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=k.useId();k.useEffect(()=>r(o),[]);const i=k.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const $y=k.createContext({}),oP=k.createContext({}),Su={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ra={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const n=kw(e,t.target.x),r=kw(e,t.target.y);return`${n}% ${r}%`}},_N={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ho.parse(e);if(o.length>5)return r;const i=Ho.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=et(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},vd={};function $N(e){Object.assign(vd,e)}const{schedule:Ay,cancel:IY}=nT(queueMicrotask,!1);class AN extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;$N(MN),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()})),Su.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()||je.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ay.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 iP(e){const[t,n]=IN(),r=k.useContext($y);return x.jsx(AN,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(oP),isPresent:t,safeToRemove:n})}const MN={borderRadius:{...Ra,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ra,borderTopRightRadius:Ra,borderBottomLeftRadius:Ra,borderBottomRightRadius:Ra,boxShadow:_N},sP=["TopLeft","TopRight","BottomLeft","BottomRight"],DN=sP.length,Tw=e=>typeof e=="string"?parseFloat(e):e,Pw=e=>typeof e=="number"||ae.test(e);function LN(e,t,n,r,o,i){o?(e.opacity=et(0,n.opacity!==void 0?n.opacity:1,jN(r)),e.opacityExit=et(t.opacity!==void 0?t.opacity:1,0,NN(r))):i&&(e.opacity=et(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Vs(e,t,r))}function Ow(e,t){e.min=t.min,e.max=t.max}function Pn(e,t){Ow(e.x,t.x),Ow(e.y,t.y)}function Rw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Iw(e,t,n,r,o){return e-=t,e=gd(e,1/n,r),o!==void 0&&(e=gd(e,1/o,r)),e}function BN(e,t=0,n=1,r=.5,o,i=e,s=e){if(vr.test(t)&&(t=parseFloat(t),t=et(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=et(i.min,i.max,r);e===i&&(a-=t),e.min=Iw(e.min,t,n,a,o),e.max=Iw(e.max,t,n,a,o)}function _w(e,t,[n,r,o],i,s){BN(e,t[n],t[r],t[o],t.scale,i,s)}const FN=["x","scaleX","originX"],zN=["y","scaleY","originY"];function $w(e,t,n,r){_w(e.x,t,FN,n?n.x:void 0,r?r.x:void 0),_w(e.y,t,zN,n?n.y:void 0,r?r.y:void 0)}function Aw(e){return e.translate===0&&e.scale===1}function lP(e){return Aw(e.x)&&Aw(e.y)}function Mw(e,t){return e.min===t.min&&e.max===t.max}function VN(e,t){return Mw(e.x,t.x)&&Mw(e.y,t.y)}function Dw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cP(e,t){return Dw(e.x,t.x)&&Dw(e.y,t.y)}function Lw(e){return wn(e.x)/wn(e.y)}function jw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class HN{constructor(){this.members=[]}add(t){fc(this.members,t),t.scheduleRender()}remove(t){if(Iy(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 UN(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:v}=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) `),v&&(r+=`skewY(${v}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 WN=(e,t)=>e.depth-t.depth;class GN{constructor(){this.children=[],this.isDirty=!1}add(t){fc(this.children,t),this.isDirty=!0}remove(t){Iy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WN),this.isDirty=!1,this.children.forEach(t)}}function Cu(e){const t=Lt(e)?e.get():e;return j4(t)?t.toValue():t}function KN(e,t){const n=yr.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(zo(r),e(i-t))};return je.read(r,!0),()=>zo(r)}function qN(e){return e instanceof SVGElement&&e.tagName!=="svg"}function YN(e,t,n){const r=Lt(e)?e:Vl(e);return r.start(Ry("",r,t,n)),r.animation}const ai={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ua=typeof window<"u"&&window.MotionDebug!==void 0,wh=["","X","Y","Z"],XN={visibility:"hidden"},Nw=1e3;let QN=0;function xh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function uP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=zT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",je,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&uP(r)}function dP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=QN++,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,Ua&&(ai.totalNodes=ai.resolvedTargetDeltas=ai.recalculatedProjection=0),this.nodes.forEach(eB),this.nodes.forEach(iB),this.nodes.forEach(sB),this.nodes.forEach(tB),Ua&&window.MotionDebug.record(ai)},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=KN(f,250),Su.hasAnimatedSinceResize&&(Su.hasAnimatedSinceResize=!1,this.nodes.forEach(Fw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||dB,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=u.getProps(),g=!this.targetLayout||!cP(this.targetLayout,v)||h,p=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,p);const w={...gy(y,"layout"),onPlay:C,onComplete:m};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Fw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,zo(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(aB),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&&uP(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 S=w/1e3;zw(d.x,s.x,S),zw(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(il(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cB(this.relativeTarget,this.relativeTargetOrigin,f,S),p&&VN(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=dt()),Pn(p,this.relativeTarget)),y&&(this.animationValues=u,LN(u,c,this.latestValues,S,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&(zo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=je.update(()=>{Su.hasAnimatedSinceResize=!0,this.currentAnimation=YN(0,Nw,{...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(Nw),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&&fP(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||dt();const d=wn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=wn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Pn(a,l),hs(a,u),ol(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new HN),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&&xh("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(Bw),this.root.sharedNodes.clear()}}}function JN(e){e.updateLayout()}function ZN(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"?En(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=wn(f);f.min=r[d].min,f.max=f.min+h}):fP(i,n.layoutBox,r)&&En(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=wn(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=fs();ol(a,r,n.layoutBox);const l=fs();s?ol(l,e.applyTransform(o,!0),n.measuredBox):ol(l,r,n.layoutBox);const c=!lP(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 v=dt();il(v,n.layoutBox,f.layoutBox);const y=dt();il(y,r,h.layoutBox),cP(v,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,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 eB(e){Ua&&ai.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 tB(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nB(e){e.clearSnapshot()}function Bw(e){e.clearMeasurements()}function rB(e){e.isLayoutDirty=!1}function oB(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iB(e){e.resolveTargetDelta()}function sB(e){e.calcProjection()}function aB(e){e.resetSkewAndRotation()}function lB(e){e.removeLeadSnapshot()}function zw(e,t,n){e.translate=et(t.translate,0,n),e.scale=et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vw(e,t,n,r){e.min=et(t.min,n.min,r),e.max=et(t.max,n.max,r)}function cB(e,t,n,r){Vw(e.x,t.x,n.x,r),Vw(e.y,t.y,n.y,r)}function uB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const dB={duration:.45,ease:[.4,0,.1,1]},Hw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uw=Hw("applewebkit/")&&!Hw("chrome/")?Math.round:Nt;function Ww(e){e.min=Uw(e.min),e.max=Uw(e.max)}function fB(e){Ww(e.x),Ww(e.y)}function fP(e,t,n){return e==="position"||e==="preserve-aspect"&&!pN(Lw(t),Lw(n),.2)}function pB(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hB=dP({attachResizeListener:(e,t)=>jr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sh={current:void 0},pP=dP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sh.current){const e=new hB({});e.mount(window),e.setOptions({layoutScroll:!0}),Sh.current=e}return Sh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mB={pan:{Feature:RN},drag:{Feature:ON,ProjectionNode:pP,MeasureLayout:iP}};function Gw(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||XT())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&je.postRender(()=>l(i,s))};return Gr(e.current,n,o,{passive:!e.getProps()[r]})}class gB extends Yo{mount(){this.unmount=Wr(Gw(this.node,!0),Gw(this.node,!1))}unmount(){}}class vB extends Yo{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=Wr(jr(this.node.current,"focus",()=>this.onFocus()),jr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hP=(e,t)=>t?e===t?!0:hP(e,t.parentElement):!1;function Ch(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ep(n))}class yB extends Yo{constructor(){super(...arguments),this.removeStartListeners=Nt,this.removeEndListeners=Nt,this.removeAccessibleListeners=Nt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Gr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),f=!d&&!hP(this.node.current,a.target)?u:c;f&&je.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Gr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Wr(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()||Ch("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&je.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=jr(this.node.current,"keyup",s),Ch("down",(a,l)=>{this.startPress(a,l)})},n=jr(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ch("cancel",(i,s)=>this.cancelPress(i,s))},o=jr(this.node.current,"blur",r);this.removeAccessibleListeners=Wr(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&&je.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!XT()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&je.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Gr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=jr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sg=new WeakMap,kh=new WeakMap,bB=e=>{const t=Sg.get(e.target);t&&t(e)},wB=e=>{e.forEach(bB)};function xB({root:e,...t}){const n=e||document;kh.has(n)||kh.set(n,{});const r=kh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(wB,{root:e,...t})),r[o]}function SB(e,t,n){const r=xB(t);return Sg.set(e,n),r.observe(e),()=>{Sg.delete(e),r.unobserve(e)}}const CB={some:0,all:1};class kB extends Yo{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:CB[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 SB(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(TB(t,n))&&this.startObserver()}unmount(){}}function TB({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PB={inView:{Feature:kB},tap:{Feature:yB},focus:{Feature:vB},hover:{Feature:gB}},EB={layout:{ProjectionNode:pP,MeasureLayout:iP}},My=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),np=k.createContext({}),Dy=typeof window<"u",mP=Dy?k.useLayoutEffect:k.useEffect,gP=k.createContext({strict:!1});let Kw=!1;function OB(e,t,n,r,o){var i;const{visualElement:s}=k.useContext(np),a=k.useContext(gP),l=k.useContext(tp),c=k.useContext(My).reducedMotion,u=k.useRef();r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,f=k.useContext(oP);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&IB(u.current,n,o,f),k.useInsertionEffect(()=>{d&&d.update(n,l)});const h=n[FT],v=k.useRef(!!h&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,h)));return mP(()=>{d&&(d.updateFeatures(),Ay.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),k.useEffect(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current=!1,Kw||(Kw=!0,queueMicrotask(RB)))}),d}function RB(){window.MotionHandoffIsComplete=!0}function IB(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:vP(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ds(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function vP(e){if(e)return e.options.allowProjection!==!1?e.projection:vP(e.parent)}function _B(e,t,n){return k.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ds(n)&&(n.current=r))},[t])}function rp(e){return Nl(e.animate)||my.some(t=>Bl(e[t]))}function yP(e){return!!(rp(e)||e.variants)}function $B(e,t){if(rp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Bl(n)?n:void 0,animate:Bl(r)?r:void 0}}return e.inherit!==!1?t:{}}function AB(e){const{initial:t,animate:n}=$B(e,k.useContext(np));return k.useMemo(()=>({initial:t,animate:n}),[qw(t),qw(n)])}function qw(e){return Array.isArray(e)?e.join(" "):e}const Yw={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"]},Hs={};for(const e in Yw)Hs[e]={isEnabled:t=>Yw[e].some(n=>!!t[n])};function MB(e){for(const t in e)Hs[t]={...Hs[t],...e[t]}}const DB=Symbol.for("motionComponentSymbol");function LB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&MB(e);function i(a,l){let c;const u={...k.useContext(My),...a,layoutId:jB(a)},{isStatic:d}=u,f=AB(a),h=r(a,d);if(!d&&Dy){NB();const v=BB(u);c=v.MeasureLayout,f.visualElement=OB(o,h,u,t,v.ProjectionNode)}return x.jsxs(np.Provider,{value:f,children:[c&&f.visualElement?x.jsx(c,{visualElement:f.visualElement,...u}):null,n(o,a,_B(h,f.visualElement,l),h,d,f.visualElement)]})}const s=k.forwardRef(i);return s[DB]=o,s}function jB({layoutId:e}){const t=k.useContext($y).id;return t&&e!==void 0?t+"-"+e:e}function NB(e,t){k.useContext(gP).strict}function BB(e){const{drag:t,layout:n}=Hs;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 FB=["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 Ly(e){return typeof e!="string"||e.includes("-")?!1:!!(FB.indexOf(e)>-1||/[A-Z]/u.test(e))}function bP(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 wP=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 xP(e,t,n,r){bP(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(wP.has(o)?o:Zf(o),t.attrs[o])}function SP(e,{layout:t,layoutId:n}){return qo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}function jy(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Lt(o[s])||t.style&&Lt(t.style[s])||SP(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 n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function CP(e,t,n){const r=jy(e,t,n);for(const o in e)if(Lt(e[o])||Lt(t[o])){const i=cc.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Ny(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}function zB({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:HB(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=c=>r(o,c,l)),l}const kP=e=>(t,n)=>{const r=k.useContext(np),o=k.useContext(tp),i=()=>zB(e,t,r,o,n);return n?i():Ny(i)};function VB(e,t){const n=VT(t);n&&fc(e,n)}function Xw(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const g in C){let p=C[g];if(Array.isArray(p)){const w=v?p.length-1:0;p=p[w]}p!==null&&(s[g]=p)}for(const g in m)s[g]=m[g]}),l&&(d&&u!==!1&&!Nl(d)&&Xw(e,d,C=>{for(const m in C)VB(a,m)}),a.length&&(s.willChange=a.join(","))),s}const By=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),TP=()=>({...By(),attrs:{}}),PP=(e,t)=>t&&typeof e=="number"?t.transform(e):e,UB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WB=cc.length;function GB(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",QB={useVisualState:kP({scrapeMotionValuesFromProps:CP,createRenderState:TP,onMount:(e,t,{renderState:n,latestValues:r})=>{je.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),je.render(()=>{zy(n,r,Vy(t.tagName),e.transformTemplate),xP(t,n)})}})},JB={useVisualState:kP({applyWillChange:!0,scrapeMotionValuesFromProps:jy,createRenderState:By})};function EP(e,t,n){for(const r in t)!Lt(t[r])&&!SP(r,n)&&(e[r]=t[r])}function ZB({transformTemplate:e},t){return k.useMemo(()=>{const n=By();return Fy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function eF(e,t){const n=e.style||{},r={};return EP(r,n,e),Object.assign(r,ZB(e,t)),r}function tF(e,t){const n={},r=eF(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 nF=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 yd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nF.has(e)}let OP=e=>!yd(e);function rF(e){e&&(OP=t=>t.startsWith("on")?!yd(t):e(t))}try{rF(require("@emotion/is-prop-valid").default)}catch{}function oF(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(OP(o)||n===!0&&yd(o)||!t&&!yd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function iF(e,t,n,r){const o=k.useMemo(()=>{const i=TP();return zy(i,t,Vy(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};EP(i,e.style,e),o.style={...i,...o.style}}return o}function sF(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Ly(n)?iF:tF)(r,i,s,n),c=oF(r,typeof n=="string",e),u=n!==k.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=k.useMemo(()=>Lt(d)?d.get():d,[d]);return k.createElement(n,{...u,children:f})}}function aF(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Ly(r)?QB:JB,preloadedFeatures:e,useRender:sF(o),createVisualElement:t,Component:r};return LB(s)}}const Cg={current:null},RP={current:!1};function lF(){if(RP.current=!0,!!Dy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cg.current=e.matches;e.addListener(t),t()}else Cg.current=!1}function cF(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Lt(o))e.addValue(r,o);else if(Lt(i))e.addValue(r,Vl(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,Vl(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Jw=new WeakMap,uF=[...vT,Mt,Ho],dF=e=>uF.find(gT(e)),Zw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fF{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wy,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=yr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),RP.current||lF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Jw.delete(this.current),this.projection&&this.projection.unmount(),zo(this.notifyUpdate),zo(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=qo.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&je.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 Hs){const n=Hs[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):dt()}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=Vl(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"&&(fT(o)||dT(o))?o=parseFloat(o):!dF(o)&&Ho.test(n)&&(o=TT(t,n)),this.setBaseTarget(t,Lt(o)?o.get():o)),Lt(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=py(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&&!Lt(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 _y),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class IP extends fF{constructor(){super(...arguments),this.KeyframeResolver=PT}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 pF(e){return window.getComputedStyle(e)}class hF extends IP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=bP}readValueFromInstance(t,n){if(qo.has(n)){const r=ky(n);return r&&r.default||0}else{const r=pF(t),o=(hT(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nP(t,n)}build(t,n,r){Fy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jy(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class mF extends IP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qo.has(n)){const r=ky(n);return r&&r.default||0}return n=wP.has(n)?n:Zf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return CP(t,n,r)}build(t,n,r){zy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){xP(t,n,r,o)}mount(t){this.isSVGTag=Vy(t.tagName),super.mount(t)}}const gF=(e,t)=>Ly(e)?new mF(t):new hF(t,{allowProjection:e!==k.Fragment}),vF=aF({...oN,...PB,...mB,...EB},gF),gn=XL(vF);class yF extends k.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 bF({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),o=k.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=k.useContext(My);return k.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; + height: ${a}px !important; + top: ${l}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),x.jsx(yF,{isPresent:t,childRef:r,sizeRef:o,children:k.cloneElement(e,{ref:r})})}const wF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Ny(xF),l=k.useId(),c=k.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u=>{a.set(u,!0);for(const d of a.values())if(!d)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?[Math.random()]:[n]);return k.useMemo(()=>{a.forEach((u,d)=>a.set(d,!1))},[n]),k.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=x.jsx(bF,{isPresent:n,children:e})),x.jsx(tp.Provider,{value:c,children:e})};function xF(){return new Map}const Qc=e=>e.key||"";function ex(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const SF=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=k.useMemo(()=>ex(e),[e]),l=a.map(Qc),c=k.useRef(!0),u=k.useRef(a),d=Ny(()=>new Map),[f,h]=k.useState(a),[v,y]=k.useState(a);mP(()=>{c.current=!1,u.current=a;for(let g=0;g{const p=Qc(g),w=a===v||l.includes(p),S=()=>{if(d.has(p))d.set(p,!0);else return;let T=!0;d.forEach(P=>{P||(T=!1)}),T&&(m==null||m(),y(u.current),o&&o())};return x.jsx(wF,{isPresent:w,initial:!c.current||r?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:w?void 0:S,children:g},p)})})},CF=G(RL)(({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}})),tx=G("div")({display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24});function kF(){const{light:e,toggle:t}=k.useContext(tr);return x.jsxs(gn.div,{whileHover:{scale:1.05},whileTap:{scale:.95},style:{display:"flex",alignItems:"center"},children:[x.jsx(tx,{children:x.jsx(YL,{style:{color:e?"#FFD700":"#A9A9A9"}})}),x.jsx(CF,{checked:!e,onChange:t,inputProps:{"aria-label":"toggle theme"}}),x.jsx(tx,{children:x.jsx(HL,{style:{color:e?"#A9A9A9":"#4169E1"}})})]})}const TF=Oe(x.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 PF(e){return he("MuiAvatar",e)}pe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const EF=e=>{const{classes:t,variant:n,colorDefault:r}=e;return xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},PF,t)},OF=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ke(({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]})}}}]}))),RF=G("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),IF=G(TF,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function _F({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=k.useState(!1);return k.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 Hy=k.forwardRef(function(t,n){const r=Te({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:v="circular",...y}=r;let C=null;const m=_F({...u,src:f,srcSet:h}),g=f||h,p=g&&m!=="error",w={...r,colorDefault:!p,component:a,variant:v};delete w.ownerState;const S=EF(w),[T,P]=An("img",{className:S.img,elementType:RF,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:f,srcSet:h,sizes:d},ownerState:w});return p?C=x.jsx(T,{...P}):i||i===0?C=i:g&&o?C=o[0]:C=x.jsx(IF,{ownerState:w,className:S.fallback}),x.jsx(OF,{as:a,className:X(S.root,s),ref:n,...y,ownerState:w,children:C})});var nx={};/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 _P=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},$F=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("")},$P={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(_P(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):$F(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 v=c<<6&192|d;r.push(v)}}}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 AF extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const MF=function(e){const t=_P(e);return $P.encodeByteArray(t,!0)},AP=function(e){return MF(e).replace(/\./g,"")},MP=function(e){try{return $P.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 DF(){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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 LF=()=>DF().__FIREBASE_DEFAULTS__,jF=()=>{if(typeof process>"u"||typeof nx>"u")return;const e=nx.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},NF=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&MP(e[1]);return t&&JSON.parse(t)},Uy=()=>{try{return LF()||jF()||NF()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},BF=e=>{var t,n;return(n=(t=Uy())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},DP=()=>{var e;return(e=Uy())===null||e===void 0?void 0:e.config},LP=e=>{var t;return(t=Uy())===null||t===void 0?void 0:t[`_${e}`]};/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 FF{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 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Wt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function zF(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Wt())}function VF(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function jP(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function HF(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function UF(){const e=Wt();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function NP(){try{return typeof indexedDB=="object"}catch{return!1}}function BP(){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 WF(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 GF="FirebaseError";class Or extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=GF,Object.setPrototypeOf(this,Or.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ji.prototype.create)}}class ji{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?KF(i,r):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new Or(o,a,r)}}function KF(e,t){return e.replace(qF,(n,r)=>{const o=t[r];return o!=null?String(o):`<${r}?>`})}const qF=/\{\$([^}]+)}/g;function YF(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Hl(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(rx(i)&&rx(s)){if(!Hl(i,s))return!1}else if(i!==s)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function rx(e){return e!==null&&typeof e=="object"}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 pc(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 XF(e,t){const n=new QF(e,t);return n.subscribe.bind(n)}class QF{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.");JF(t,["next","error","complete"])?o=t:o={next:t,error:n,complete:r},o.next===void 0&&(o.next=Th),o.error===void 0&&(o.error=Th),o.complete===void 0&&(o.complete=Th);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 JF(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 Th(){}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 ZF=1e3,e6=2,t6=4*60*60*1e3,n6=.5;function ox(e,t=ZF,n=e6){const r=t*Math.pow(n,e),o=Math.round(n6*r*(Math.random()-.5)*2);return Math.min(t6,r+o)}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Rr(e){return e&&e._delegate?e._delegate:e}class kr{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 li="[DEFAULT]";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 r6{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 FF;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(i6(t))try{this.getOrInitializeService({instanceIdentifier:li})}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=li){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=li){return this.instances.has(t)}getOptions(t=li){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:o6(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=li){return this.component?this.component.multipleInstances?t:li:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function o6(e){return e===li?void 0:e}function i6(e){return e.instantiationMode==="EAGER"}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 s6{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 r6(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** + * @license + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Ve;(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"})(Ve||(Ve={}));const a6={debug:Ve.DEBUG,verbose:Ve.VERBOSE,info:Ve.INFO,warn:Ve.WARN,error:Ve.ERROR,silent:Ve.SILENT},l6=Ve.INFO,c6={[Ve.DEBUG]:"log",[Ve.VERBOSE]:"log",[Ve.INFO]:"info",[Ve.WARN]:"warn",[Ve.ERROR]:"error"},u6=(e,t,...n)=>{if(tt.some(n=>e instanceof n);let ix,sx;function f6(){return ix||(ix=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function p6(){return sx||(sx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const FP=new WeakMap,kg=new WeakMap,zP=new WeakMap,Ph=new WeakMap,Gy=new WeakMap;function h6(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(Do(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&FP.set(n,e)}).catch(()=>{}),Gy.set(t,e),t}function m6(e){if(kg.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)});kg.set(e,t)}let Tg={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return kg.get(e);if(t==="objectStoreNames")return e.objectStoreNames||zP.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Do(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 g6(e){Tg=e(Tg)}function v6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Eh(this),t,...n);return zP.set(r,t.sort?t.sort():[t]),Do(r)}:p6().includes(e)?function(...t){return e.apply(Eh(this),t),Do(FP.get(this))}:function(...t){return Do(e.apply(Eh(this),t))}}function y6(e){return typeof e=="function"?v6(e):(e instanceof IDBTransaction&&m6(e),d6(e,f6())?new Proxy(e,Tg):e)}function Do(e){if(e instanceof IDBRequest)return h6(e);if(Ph.has(e))return Ph.get(e);const t=y6(e);return t!==e&&(Ph.set(e,t),Gy.set(t,e)),t}const Eh=e=>Gy.get(e);function VP(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=Do(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Do(s.result),l.oldVersion,l.newVersion,Do(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 b6=["get","getKey","getAll","getAllKeys","count"],w6=["put","add","delete","clear"],Oh=new Map;function ax(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Oh.get(t))return Oh.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=w6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||b6.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 Oh.set(t,i),i}g6(e=>({...e,get:(t,n,r)=>ax(t,n)||e.get(t,n,r),has:(t,n)=>!!ax(t,n)||e.has(t,n)}));/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 x6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(S6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function S6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Pg="@firebase/app",lx="0.10.14";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 to=new Wy("@firebase/app"),C6="@firebase/app-compat",k6="@firebase/analytics-compat",T6="@firebase/analytics",P6="@firebase/app-check-compat",E6="@firebase/app-check",O6="@firebase/auth",R6="@firebase/auth-compat",I6="@firebase/database",_6="@firebase/data-connect",$6="@firebase/database-compat",A6="@firebase/functions",M6="@firebase/functions-compat",D6="@firebase/installations",L6="@firebase/installations-compat",j6="@firebase/messaging",N6="@firebase/messaging-compat",B6="@firebase/performance",F6="@firebase/performance-compat",z6="@firebase/remote-config",V6="@firebase/remote-config-compat",H6="@firebase/storage",U6="@firebase/storage-compat",W6="@firebase/firestore",G6="@firebase/vertexai",K6="@firebase/firestore-compat",q6="firebase",Y6="11.0.0";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Eg="[DEFAULT]",X6={[Pg]:"fire-core",[C6]:"fire-core-compat",[T6]:"fire-analytics",[k6]:"fire-analytics-compat",[E6]:"fire-app-check",[P6]:"fire-app-check-compat",[O6]:"fire-auth",[R6]:"fire-auth-compat",[I6]:"fire-rtdb",[_6]:"fire-data-connect",[$6]:"fire-rtdb-compat",[A6]:"fire-fn",[M6]:"fire-fn-compat",[D6]:"fire-iid",[L6]:"fire-iid-compat",[j6]:"fire-fcm",[N6]:"fire-fcm-compat",[B6]:"fire-perf",[F6]:"fire-perf-compat",[z6]:"fire-rc",[V6]:"fire-rc-compat",[H6]:"fire-gcs",[U6]:"fire-gcs-compat",[W6]:"fire-fst",[K6]:"fire-fst-compat",[G6]:"fire-vertex","fire-js":"fire-js",[q6]:"fire-js-all"};/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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=new Map,Q6=new Map,Og=new Map;function cx(e,t){try{e.container.addComponent(t)}catch(n){to.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function no(e){const t=e.name;if(Og.has(t))return to.debug(`There were multiple attempts to register component ${t}.`),!1;Og.set(t,e);for(const n of bd.values())cx(n,e);for(const n of Q6.values())cx(n,e);return!0}function ca(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Nr(e){return e.settings!==void 0}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 J6={"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."},Lo=new ji("app","Firebase",J6);/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Z6{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 kr("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 Lo.create("app-deleted",{appName:this._name})}}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 hc=Y6;function HP(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Eg,automaticDataCollectionEnabled:!1},t),o=r.name;if(typeof o!="string"||!o)throw Lo.create("bad-app-name",{appName:String(o)});if(n||(n=DP()),!n)throw Lo.create("no-options");const i=bd.get(o);if(i){if(Hl(n,i.options)&&Hl(r,i.config))return i;throw Lo.create("duplicate-app",{appName:o})}const s=new s6(o);for(const l of Og.values())s.addComponent(l);const a=new Z6(n,r,s);return bd.set(o,a),a}function UP(e=Eg){const t=bd.get(e);if(!t&&e===Eg&&DP())return HP();if(!t)throw Lo.create("no-app",{appName:e});return t}function br(e,t,n){var r;let o=(r=X6[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 "/")`),to.warn(a.join(" "));return}no(new kr(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 ez="firebase-heartbeat-database",tz=1,Ul="firebase-heartbeat-store";let Rh=null;function WP(){return Rh||(Rh=VP(ez,tz,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ul)}catch(n){console.warn(n)}}}}).catch(e=>{throw Lo.create("idb-open",{originalErrorMessage:e.message})})),Rh}async function nz(e){try{const n=(await WP()).transaction(Ul),r=await n.objectStore(Ul).get(GP(e));return await n.done,r}catch(t){if(t instanceof Or)to.warn(t.message);else{const n=Lo.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});to.warn(n.message)}}}async function ux(e,t){try{const r=(await WP()).transaction(Ul,"readwrite");await r.objectStore(Ul).put(t,GP(e)),await r.done}catch(n){if(n instanceof Or)to.warn(n.message);else{const r=Lo.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});to.warn(r.message)}}}function GP(e){return`${e.name}!${e.options.appId}`}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 rz=1024,oz=30*24*60*60*1e3;class iz{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new az(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=dx();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<=oz}),this._storage.overwrite(this._heartbeatsCache))}catch(r){to.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=dx(),{heartbeatsToSend:r,unsentEntries:o}=sz(this._heartbeatsCache.heartbeats),i=AP(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 to.warn(n),""}}}function dx(){return new Date().toISOString().substring(0,10)}function sz(e,t=rz){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),fx(n)>t){i.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),fx(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class az{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return NP()?BP().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await nz(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 ux(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 ux(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function fx(e){return AP(JSON.stringify({version:2,heartbeats:e})).length}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 lz(e){no(new kr("platform-logger",t=>new x6(t),"PRIVATE")),no(new kr("heartbeat",t=>new iz(t),"PRIVATE")),br(Pg,lx,e),br(Pg,lx,"esm2017"),br("fire-js","")}lz("");function Ky(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}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 mc{constructor(t,n){this.shortDelay=t,this.longDelay=n,ro(n>t,"Short delay should be less than long delay!"),this.isMobile=zF()||HF()}get(){return pz()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Xy(e,t){ro(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 YP{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;Br("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;Br("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;Br("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 mz={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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 gz=new mc(3e4,6e4);function Qy(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function ua(e,t,n,r,o={}){return XP(e,o,async()=>{let i={},s={};r&&(t==="GET"?s=r:i={body:JSON.stringify(r)});const a=pc(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 VF()||(c.referrerPolicy="no-referrer"),YP.fetch()(QP(e,e.config.apiHost,n,a),c)})}async function XP(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},mz),t);try{const o=new yz(e),i=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw Jc(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 Jc(e,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Jc(e,"email-already-in-use",s);if(l==="USER_DISABLED")throw Jc(e,"user-disabled",s);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw qy(e,u,c);Tr(e,u)}}catch(o){if(o instanceof Or)throw o;Tr(e,"network-request-failed",{message:String(o)})}}async function vz(e,t,n,r,o={}){const i=await ua(e,t,n,r,o);return"mfaPendingCredential"in i&&Tr(e,"multi-factor-auth-required",{_serverResponse:i}),i}function QP(e,t,n,r){const o=`${t}${n}?${r}`;return e.config.emulator?Xy(e.config,o):`${e.config.apiScheme}://${o}`}class yz{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Zn(this.auth,"network-request-failed")),gz.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Jc(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=Zn(e,t,r);return o.customData._tokenResponse=n,o}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 bz(e,t){return ua(e,"POST","/v1/accounts:delete",t)}async function JP(e,t){return ua(e,"POST","/v1/accounts:lookup",t)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 sl(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function wz(e,t=!1){const n=Rr(e),r=await n.getIdToken(t),o=Jy(r);le(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:sl(Ih(o.auth_time)),issuedAtTime:sl(Ih(o.iat)),expirationTime:sl(Ih(o.exp)),signInProvider:s||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function Ih(e){return Number(e)*1e3}function Jy(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return ku("JWT malformed, contained fewer than 3 sections"),null;try{const o=MP(n);return o?JSON.parse(o):(ku("Failed to decode base64 JWT payload"),null)}catch(o){return ku("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function hx(e){const t=Jy(e);return le(t,"internal-error"),le(typeof t.exp<"u","internal-error"),le(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Wl(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Or&&xz(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function xz({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Sz{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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Ig{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=sl(this.lastLoginAt),this.creationTime=sl(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 xd(e){var t;const n=e.auth,r=await e.getIdToken(),o=await Wl(e,JP(n,{idToken:r}));le(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?ZP(i.providerUserInfo):[],a=kz(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 Ig(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function Cz(e){const t=Rr(e);await xd(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function kz(e,t){return[...e.filter(r=>!t.some(o=>o.providerId===r.providerId)),...t]}function ZP(e){return e.map(t=>{var{providerId:n}=t,r=Ky(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Tz(e,t){const n=await XP(e,{},async()=>{const r=pc({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:i}=e.config,s=QP(e,o,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",YP.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Pz(e,t){return ua(e,"POST","/v2/accounts:revokeToken",Qy(e,t))}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Cs{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){le(t.idToken,"internal-error"),le(typeof t.idToken<"u","internal-error"),le(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):hx(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){le(t.length!==0,"internal-error");const n=hx(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(le(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 Tz(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 Cs;return r&&(le(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),o&&(le(typeof o=="string","internal-error",{appName:t}),s.accessToken=o),i&&(le(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 Cs,this.toJSON())}_performRefresh(){return Br("not implemented")}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 uo(e,t){le(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class Fr{constructor(t){var{uid:n,auth:r,stsTokenManager:o}=t,i=Ky(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Sz(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 Ig(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await Wl(this,this.stsTokenManager.getToken(this.auth,t));return le(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return wz(this,t)}reload(){return Cz(this)}_assign(t){this!==t&&(le(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 Fr(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){le(!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 xd(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Nr(this.auth.app))return Promise.reject(bi(this.auth));const t=await this.getIdToken();return await Wl(this,bz(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,v=(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,m=(c=n.createdAt)!==null&&c!==void 0?c:void 0,g=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:p,emailVerified:w,isAnonymous:S,providerData:T,stsTokenManager:P}=n;le(p&&P,t,"internal-error");const E=Cs.fromJSON(this.name,P);le(typeof p=="string",t,"internal-error"),uo(d,t.name),uo(f,t.name),le(typeof w=="boolean",t,"internal-error"),le(typeof S=="boolean",t,"internal-error"),uo(h,t.name),uo(v,t.name),uo(y,t.name),uo(C,t.name),uo(m,t.name),uo(g,t.name);const R=new Fr({uid:p,auth:t,email:f,emailVerified:w,displayName:d,isAnonymous:S,photoURL:v,phoneNumber:h,tenantId:y,stsTokenManager:E,createdAt:m,lastLoginAt:g});return T&&Array.isArray(T)&&(R.providerData=T.map(b=>Object.assign({},b))),C&&(R._redirectEventId=C),R}static async _fromIdTokenResponse(t,n,r=!1){const o=new Cs;o.updateFromServerResponse(n);const i=new Fr({uid:n.localId,auth:t,stsTokenManager:o,isAnonymous:r});return await xd(i),i}static async _fromGetAccountInfoResponse(t,n,r){const o=n.users[0];le(o.localId!==void 0,"internal-error");const i=o.providerUserInfo!==void 0?ZP(o.providerUserInfo):[],s=!(o.email&&o.passwordHash)&&!(i!=null&&i.length),a=new Cs;a.updateFromIdToken(r);const l=new Fr({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 Ig(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(i!=null&&i.length)};return Object.assign(l,c),l}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 mx=new Map;function zr(e){ro(e instanceof Function,"Expected a class definition");let t=mx.get(e);return t?(ro(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,mx.set(e,t),t)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 eE{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){}}eE.type="NONE";const gx=eE;/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Tu(e,t,n){return`firebase:${e}:${t}:${n}`}class ks{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:o,name:i}=this.auth;this.fullUserKey=Tu(this.userKey,o.apiKey,i),this.fullPersistenceKey=Tu("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?Fr._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 ks(zr(gx),t,r);const o=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=o[0]||zr(gx);const s=Tu(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=Fr._fromJSON(t,u);c!==i&&(a=d),i=c;break}}catch{}const l=o.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new ks(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 ks(i,t,r))}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 vx(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(oE(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(tE(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(sE(t))return"Blackberry";if(aE(t))return"Webos";if(nE(t))return"Safari";if((t.includes("chrome/")||rE(t))&&!t.includes("edge/"))return"Chrome";if(iE(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 tE(e=Wt()){return/firefox\//i.test(e)}function nE(e=Wt()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function rE(e=Wt()){return/crios\//i.test(e)}function oE(e=Wt()){return/iemobile/i.test(e)}function iE(e=Wt()){return/android/i.test(e)}function sE(e=Wt()){return/blackberry/i.test(e)}function aE(e=Wt()){return/webos/i.test(e)}function Zy(e=Wt()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Ez(e=Wt()){var t;return Zy(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function Oz(){return UF()&&document.documentMode===10}function lE(e=Wt()){return Zy(e)||iE(e)||aE(e)||sE(e)||/windows phone/i.test(e)||oE(e)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 cE(e,t=[]){let n;switch(e){case"Browser":n=vx(Wt());break;case"Worker":n=`${vx(Wt())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${hc}/${r}`}/** + * @license + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Rz{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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Iz(e,t={}){return ua(e,"GET","/v2/passwordPolicy",Qy(e,t))}/** + * @license + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 _z=6;class $z{constructor(t){var n,r,o,i;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:_z,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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Az{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 yx(this),this.idTokenSubscription=new yx(this),this.beforeStateQueue=new Rz(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=qP,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=zr(n)),this._initializationPromise=this.queue(async()=>{var r,o;if(!this._deleted&&(this.persistenceManager=await ks.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 JP(this,{idToken:t}),r=await Fr._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(Nr(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 le(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 xd(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=hz()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Nr(this.app))return Promise.reject(bi(this));const n=t?Rr(t):null;return n&&le(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&&le(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 Nr(this.app)?Promise.reject(bi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Nr(this.app)?Promise.reject(bi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(zr(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 Iz(this),n=new $z(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new ji("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 Pz(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&&zr(t)||this._popupRedirectResolver;le(n,this,"argument-error"),this.redirectPersistenceManager=await ks.create(this,[zr(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(le(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 le(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=cE(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&&uz(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function op(e){return Rr(e)}class yx{constructor(t){this.auth=t,this.observer=null,this.addObserver=XF(n=>this.observer=n)}get next(){return le(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 e0={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Mz(e){e0=e}function Dz(e){return e0.loadJS(e)}function Lz(){return e0.gapiScript}function jz(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Nz(e,t){const n=ca(e,"auth");if(n.isInitialized()){const o=n.getImmediate(),i=n.getOptions();if(Hl(i,t??{}))return o;Tr(o,"already-initialized")}return n.initialize({options:t})}function Bz(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(zr);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function Fz(e,t,n){const r=op(e);le(r._canInitEmulator,r,"emulator-config-failed"),le(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!1,i=uE(t),{host:s,port:a}=zz(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})}),Vz()}function uE(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function zz(e){const t=uE(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:bx(r.substr(i.length+1))}}else{const[i,s]=r.split(":");return{host:i,port:bx(s)}}}function bx(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function Vz(){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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 dE{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Br("not implemented")}_getIdTokenResponse(t){return Br("not implemented")}_linkToIdToken(t,n){return Br("not implemented")}_getReauthenticationResolver(t){return Br("not implemented")}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Ts(e,t){return vz(e,"POST","/v1/accounts:signInWithIdp",Qy(e,t))}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Hz="http://localhost";class Oi extends dE{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new Oi(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):Tr("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=Ky(n,["providerId","signInMethod"]);if(!r||!o)return null;const s=new Oi(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 Ts(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Ts(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Ts(t,n)}buildRequest(){const t={requestUri:Hz,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=pc(n)}return t}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 t0{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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 gc extends t0{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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 yo extends gc{constructor(){super("facebook.com")}static credential(t){return Oi._fromParams({providerId:yo.PROVIDER_ID,signInMethod:yo.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return yo.credentialFromTaggedObject(t)}static credentialFromError(t){return yo.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return yo.credential(t.oauthAccessToken)}catch{return null}}}yo.FACEBOOK_SIGN_IN_METHOD="facebook.com";yo.PROVIDER_ID="facebook.com";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Mr extends gc{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return Oi._fromParams({providerId:Mr.PROVIDER_ID,signInMethod:Mr.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return Mr.credentialFromTaggedObject(t)}static credentialFromError(t){return Mr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Mr.credential(n,r)}catch{return null}}}Mr.GOOGLE_SIGN_IN_METHOD="google.com";Mr.PROVIDER_ID="google.com";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 bo extends gc{constructor(){super("github.com")}static credential(t){return Oi._fromParams({providerId:bo.PROVIDER_ID,signInMethod:bo.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return bo.credentialFromTaggedObject(t)}static credentialFromError(t){return bo.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return bo.credential(t.oauthAccessToken)}catch{return null}}}bo.GITHUB_SIGN_IN_METHOD="github.com";bo.PROVIDER_ID="github.com";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 wo extends gc{constructor(){super("twitter.com")}static credential(t,n){return Oi._fromParams({providerId:wo.PROVIDER_ID,signInMethod:wo.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return wo.credentialFromTaggedObject(t)}static credentialFromError(t){return wo.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return wo.credential(n,r)}catch{return null}}}wo.TWITTER_SIGN_IN_METHOD="twitter.com";wo.PROVIDER_ID="twitter.com";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Us{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 Fr._fromIdTokenResponse(t,r,o),s=wx(r);return new Us({user:i,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const o=wx(r);return new Us({user:t,providerId:o,_tokenResponse:r,operationType:n})}}function wx(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Sd extends Or{constructor(t,n,r,o){var i;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,Sd.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 Sd(t,n,r,o)}}function fE(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Sd._fromErrorAndOperation(e,i,t,r):i})}async function Uz(e,t,n=!1){const r=await Wl(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Us._forOperation(e,"link",r)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Wz(e,t,n=!1){const{auth:r}=e;if(Nr(r.app))return Promise.reject(bi(r));const o="reauthenticate";try{const i=await Wl(e,fE(r,o,t,e),n);le(i.idToken,r,"internal-error");const s=Jy(i.idToken);le(s,r,"internal-error");const{sub:a}=s;return le(e.uid===a,r,"user-mismatch"),Us._forOperation(e,o,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&Tr(r,"user-mismatch"),i}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Gz(e,t,n=!1){if(Nr(e.app))return Promise.reject(bi(e));const r="signIn",o=await fE(e,r,t),i=await Us._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}function Kz(e,t,n,r){return Rr(e).onIdTokenChanged(t,n,r)}function qz(e,t,n){return Rr(e).beforeAuthStateChanged(t,n)}function Yz(e,t,n,r){return Rr(e).onAuthStateChanged(t,n,r)}function Xz(e){return Rr(e).signOut()}const Cd="__sak";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 pE{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Cd,"1"),this.storage.removeItem(Cd),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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Qz=1e3,Jz=10;class hE extends pE{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=lE(),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);Oz()&&i!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,Jz):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)})},Qz)}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]}}hE.type="LOCAL";const Zz=hE;/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 mE extends pE{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}mE.type="SESSION";const gE=mE;/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 e8(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 ip{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 ip(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 e8(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)}}ip.receivers=[];/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 n0(e="",t=10){let n="";for(let r=0;r{const c=n0("",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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 wr(){return window}function n8(e){wr().location.href=e}/** + * @license + * Copyright 2020 Google LLC. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 vE(){return typeof wr().WorkerGlobalScope<"u"&&typeof wr().importScripts=="function"}async function r8(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function o8(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function i8(){return vE()?self:null}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 yE="firebaseLocalStorageDb",s8=1,kd="firebaseLocalStorage",bE="fbase_key";class vc{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 sp(e,t){return e.transaction([kd],t?"readwrite":"readonly").objectStore(kd)}function a8(){const e=indexedDB.deleteDatabase(yE);return new vc(e).toPromise()}function _g(){const e=indexedDB.open(yE,s8);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(kd,{keyPath:bE})}catch(o){n(o)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(kd)?t(r):(r.close(),await a8(),t(await _g()))})})}async function xx(e,t,n){const r=sp(e,!0).put({[bE]:t,value:n});return new vc(r).toPromise()}async function l8(e,t){const n=sp(e,!1).get(t),r=await new vc(n).toPromise();return r===void 0?null:r.value}function Sx(e,t){const n=sp(e,!0).delete(t);return new vc(n).toPromise()}const c8=800,u8=3;class wE{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 _g(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>u8)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return vE()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=ip._getInstance(i8()),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 r8(),!this.activeServiceWorker)return;this.sender=new t8(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||o8()!==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 _g();return await xx(t,Cd,"1"),await Sx(t,Cd),!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=>xx(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>l8(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Sx(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const i=sp(o,!1).getAll();return new vc(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(),c8)}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()}}wE.type="LOCAL";const d8=wE;new mc(3e4,6e4);/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 xE(e,t){return t?zr(t):(le(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 r0 extends dE{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Ts(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Ts(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Ts(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 f8(e){return Gz(e.auth,new r0(e),e.bypassAuthState)}function p8(e){const{auth:t,user:n}=e;return le(n,t,"internal-error"),Wz(n,new r0(e),e.bypassAuthState)}async function h8(e){const{auth:t,user:n}=e;return le(n,t,"internal-error"),Uz(n,new r0(e),e.bypassAuthState)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 SE{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 f8;case"linkViaPopup":case"linkViaRedirect":return h8;case"reauthViaPopup":case"reauthViaRedirect":return p8;default:Tr(this.auth,"internal-error")}}resolve(t){ro(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){ro(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 m8=new mc(2e3,1e4);async function g8(e,t,n){if(Nr(e.app))return Promise.reject(Zn(e,"operation-not-supported-in-this-environment"));const r=op(e);dz(e,t,t0);const o=xE(r,n);return new hi(r,"signInViaPopup",t,o).executeNotNull()}class hi extends SE{constructor(t,n,r,o,i){super(t,n,o,i),this.provider=r,this.authWindow=null,this.pollId=null,hi.currentPopupAction&&hi.currentPopupAction.cancel(),hi.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return le(t,this.auth,"internal-error"),t}async onExecution(){ro(this.filter.length===1,"Popup operations only handle one event");const t=n0();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(Zn(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(Zn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,hi.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(Zn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,m8.get())};t()}}hi.currentPopupAction=null;/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 v8="pendingRedirect",Pu=new Map;class y8 extends SE{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Pu.get(this.auth._key());if(!t){try{const r=await b8(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Pu.set(this.auth._key(),t)}return this.bypassAuthState||Pu.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 b8(e,t){const n=S8(t),r=x8(e);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function w8(e,t){Pu.set(e._key(),t)}function x8(e){return zr(e._redirectPersistence)}function S8(e){return Tu(v8,e.config.apiKey,e.name)}async function C8(e,t,n=!1){if(Nr(e.app))return Promise.reject(bi(e));const r=op(e),o=xE(r,t),s=await new y8(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 k8=10*60*1e3;class T8{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||!P8(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!CE(t)){const o=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Zn(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>=k8&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cx(t))}saveEventToCache(t){this.cachedEventUids.add(Cx(t)),this.lastProcessedEventTime=Date.now()}}function Cx(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function CE({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function P8(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return CE(e);default:return!1}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 E8(e,t={}){return ua(e,"GET","/v1/projects",t)}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 O8=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,R8=/^https?/;async function I8(e){if(e.config.emulator)return;const{authorizedDomains:t}=await E8(e);for(const n of t)try{if(_8(n))return}catch{}Tr(e,"unauthorized-domain")}function _8(e){const t=Rg(),{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(!R8.test(n))return!1;if(O8.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/** + * @license + * Copyright 2020 Google LLC. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 $8=new mc(3e4,6e4);function kx(){const e=wr().___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(){kx(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{kx(),n(Zn(e,"network-request-failed"))},timeout:$8.get()})}if(!((o=(r=wr().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((i=wr().gapi)===null||i===void 0)&&i.load)s();else{const a=jz("iframefcb");return wr()[a]=()=>{gapi.load?s():n(Zn(e,"network-request-failed"))},Dz(`${Lz()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw Eu=null,t})}let Eu=null;function M8(e){return Eu=Eu||A8(e),Eu}/** + * @license + * Copyright 2020 Google LLC. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 D8=new mc(5e3,15e3),L8="__/auth/iframe",j8="emulator/auth/iframe",N8={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},B8=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function F8(e){const t=e.config;le(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?Xy(t,j8):`https://${e.config.authDomain}/${L8}`,r={apiKey:t.apiKey,appName:e.name,v:hc},o=B8.get(e.config.apiHost);o&&(r.eid=o);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${pc(r).slice(1)}`}async function z8(e){const t=await M8(e),n=wr().gapi;return le(n,e,"internal-error"),t.open({where:document.body,url:F8(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:N8,dontclear:!0},r=>new Promise(async(o,i)=>{await r.restyle({setHideOnLeave:!1});const s=Zn(e,"network-request-failed"),a=wr().setTimeout(()=>{i(s)},D8.get());function l(){wr().clearTimeout(a),o(r)}r.ping(l).then(l,()=>{i(s)})}))}/** + * @license + * Copyright 2020 Google LLC. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 V8={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},H8=500,U8=600,W8="_blank",G8="http://localhost";class Tx{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function K8(e,t,n,r=H8,o=U8){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({},V8),{width:r.toString(),height:o.toString(),top:i,left:s}),c=Wt().toLowerCase();n&&(a=rE(c)?W8:n),tE(c)&&(t=t||G8,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[h,v])=>`${f}${h}=${v},`,"");if(Ez(c)&&a!=="_self")return q8(t||"",a),new Tx(null);const d=window.open(t||"",a,u);le(d,e,"popup-blocked");try{d.focus()}catch{}return new Tx(d)}function q8(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Y8="__/auth/handler",X8="emulator/auth/handler",Q8=encodeURIComponent("fac");async function Px(e,t,n,r,o,i){le(e.config.authDomain,e,"auth-domain-config-required"),le(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:hc,eventId:o};if(t instanceof t0){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",YF(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(t instanceof gc){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?`#${Q8}=${encodeURIComponent(l)}`:"";return`${J8(e)}?${pc(a).slice(1)}${c}`}function J8({config:e}){return e.emulator?Xy(e,X8):`https://${e.authDomain}/${Y8}`}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 _h="webStorageSupport";class Z8{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=gE,this._completeRedirectFn=C8,this._overrideRedirectResult=w8}async _openPopup(t,n,r,o){var i;ro((i=this.eventManagers[t._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const s=await Px(t,n,r,Rg(),o);return K8(t,s,n0())}async _openRedirect(t,n,r,o){await this._originValidation(t);const i=await Px(t,n,r,Rg(),o);return n8(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):(ro(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 z8(t),r=new T8(t);return n.register("authEvent",o=>(le(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(_h,{type:_h},o=>{var i;const s=(i=o==null?void 0:o[0])===null||i===void 0?void 0:i[_h];s!==void 0&&n(!!s),Tr(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=I8(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return lE()||nE()||Zy()}}const eV=Z8;var Ex="@firebase/auth",Ox="1.8.0";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 tV{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(){le(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 nV(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 rV(e){no(new kr("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;le(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:cE(e)},c=new Az(r,o,i,l);return Bz(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),no(new kr("auth-internal",t=>{const n=op(t.getProvider("auth").getImmediate());return(r=>new tV(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),br(Ex,Ox,nV(e)),br(Ex,Ox,"esm2017")}/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 oV=5*60,iV=LP("authIdTokenMaxAge")||oV;let Rx=null;const sV=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>iV)return;const o=n==null?void 0:n.token;Rx!==o&&(Rx=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function aV(e=UP()){const t=ca(e,"auth");if(t.isInitialized())return t.getImmediate();const n=Nz(e,{popupRedirectResolver:eV,persistence:[d8,Zz,gE]}),r=LP("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const s=sV(i.toString());qz(n,s,()=>s(n.currentUser)),Kz(n,a=>s(a))}}const o=BF("auth");return o&&Fz(n,`http://${o}`),n}function lV(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}Mz({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=o=>{const i=Zn("internal-error");i.customData=o,n(i)},r.type="text/javascript",r.charset="UTF-8",lV().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="});rV("Browser");var cV="firebase",uV="11.0.0";/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */br(cV,uV,"app");const kE="@firebase/installations",o0="0.6.10";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 TE=1e4,PE=`w:${o0}`,EE="FIS_v2",dV="https://firebaseinstallations.googleapis.com/v1",fV=60*60*1e3,pV="installations",hV="Installations";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 mV={"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."},Ri=new ji(pV,hV,mV);function OE(e){return e instanceof Or&&e.code.includes("request-failed")}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 RE({projectId:e}){return`${dV}/projects/${e}/installations`}function IE(e){return{token:e.token,requestStatus:2,expiresIn:vV(e.expiresIn),creationTime:Date.now()}}async function _E(e,t){const r=(await t.json()).error;return Ri.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function $E({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function gV(e,{refreshToken:t}){const n=$E(e);return n.append("Authorization",yV(t)),n}async function AE(e){const t=await e();return t.status>=500&&t.status<600?e():t}function vV(e){return Number(e.replace("s","000"))}function yV(e){return`${EE} ${e}`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 bV({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=RE(e),o=$E(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:EE,appId:e.appId,sdkVersion:PE},a={method:"POST",headers:o,body:JSON.stringify(s)},l=await AE(()=>fetch(r,a));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:IE(c.authToken)}}else throw await _E("Create Installation",l)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 ME(e){return new Promise(t=>{setTimeout(t,e)})}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 wV(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 xV=/^[cdef][\w-]{21}$/,$g="";function SV(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=CV(e);return xV.test(n)?n:$g}catch{return $g}}function CV(e){return wV(e).substr(0,22)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 ap(e){return`${e.appName}!${e.appId}`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 DE=new Map;function LE(e,t){const n=ap(e);jE(n,t),kV(n,t)}function jE(e,t){const n=DE.get(e);if(n)for(const r of n)r(t)}function kV(e,t){const n=TV();n&&n.postMessage({key:e,fid:t}),PV()}let mi=null;function TV(){return!mi&&"BroadcastChannel"in self&&(mi=new BroadcastChannel("[Firebase] FID Change"),mi.onmessage=e=>{jE(e.data.key,e.data.fid)}),mi}function PV(){DE.size===0&&mi&&(mi.close(),mi=null)}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 EV="firebase-installations-database",OV=1,Ii="firebase-installations-store";let $h=null;function i0(){return $h||($h=VP(EV,OV,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Ii)}}})),$h}async function Td(e,t){const n=ap(e),o=(await i0()).transaction(Ii,"readwrite"),i=o.objectStore(Ii),s=await i.get(n);return await i.put(t,n),await o.done,(!s||s.fid!==t.fid)&&LE(e,t.fid),t}async function NE(e){const t=ap(e),r=(await i0()).transaction(Ii,"readwrite");await r.objectStore(Ii).delete(t),await r.done}async function lp(e,t){const n=ap(e),o=(await i0()).transaction(Ii,"readwrite"),i=o.objectStore(Ii),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)&&LE(e,a.fid),a}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 s0(e){let t;const n=await lp(e.appConfig,r=>{const o=RV(r),i=IV(e,o);return t=i.registrationPromise,i.installationEntry});return n.fid===$g?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function RV(e){const t=e||{fid:SV(),registrationStatus:0};return BE(t)}function IV(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(Ri.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=_V(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:$V(e)}:{installationEntry:t}}async function _V(e,t){try{const n=await bV(e,t);return Td(e.appConfig,n)}catch(n){throw OE(n)&&n.customData.serverCode===409?await NE(e.appConfig):await Td(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function $V(e){let t=await Ix(e.appConfig);for(;t.registrationStatus===1;)await ME(100),t=await Ix(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await s0(e);return r||n}return t}function Ix(e){return lp(e,t=>{if(!t)throw Ri.create("installation-not-found");return BE(t)})}function BE(e){return AV(e)?{fid:e.fid,registrationStatus:0}:e}function AV(e){return e.registrationStatus===1&&e.registrationTime+TEfetch(r,a));if(l.ok){const c=await l.json();return IE(c)}else throw await _E("Generate Auth Token",l)}function DV(e,{fid:t}){return`${RE(e)}/${t}/authTokens:generate`}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 a0(e,t=!1){let n;const r=await lp(e.appConfig,i=>{if(!FE(i))throw Ri.create("not-registered");const s=i.authToken;if(!t&&NV(s))return i;if(s.requestStatus===1)return n=LV(e,t),i;{if(!navigator.onLine)throw Ri.create("app-offline");const a=FV(i);return n=jV(e,a),a}});return n?await n:r.authToken}async function LV(e,t){let n=await _x(e.appConfig);for(;n.authToken.requestStatus===1;)await ME(100),n=await _x(e.appConfig);const r=n.authToken;return r.requestStatus===0?a0(e,t):r}function _x(e){return lp(e,t=>{if(!FE(t))throw Ri.create("not-registered");const n=t.authToken;return zV(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function jV(e,t){try{const n=await MV(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Td(e.appConfig,r),n}catch(n){if(OE(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await NE(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Td(e.appConfig,r)}throw n}}function FE(e){return e!==void 0&&e.registrationStatus===2}function NV(e){return e.requestStatus===2&&!BV(e)}function BV(e){const t=Date.now();return t{const t=e.getProvider("app").getImmediate(),n=WV(t),r=ca(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},qV=e=>{const t=e.getProvider("app").getImmediate(),n=ca(t,zE).getImmediate();return{getId:()=>VV(n),getToken:o=>HV(n,o)}};function YV(){no(new kr(zE,KV,"PUBLIC")),no(new kr(GV,qV,"PRIVATE"))}YV();br(kE,o0);br(kE,o0,"esm2017");/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 Pd="analytics",XV="firebase_id",QV="origin",JV=60*1e3,ZV="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",l0="https://www.googletagmanager.com/gtag/js";/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 on=new Wy("@firebase/analytics");/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 e9={"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}."},vn=new ji("analytics","Analytics",e9);/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 t9(e){if(!e.startsWith(l0)){const t=vn.create("invalid-gtag-resource",{gtagURL:e});return on.warn(t.message),""}return e}function VE(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function n9(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function r9(e,t){const n=n9("firebase-js-sdk-policy",{createScriptURL:t9}),r=document.createElement("script"),o=`${l0}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function o9(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function i9(e,t,n,r,o,i){const s=r[o];try{if(s)await t[s];else{const l=(await VE(n)).find(c=>c.measurementId===o);l&&await t[l.appId]}}catch(a){on.error(a)}e("config",o,i)}async function s9(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 VE(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){on.error(i)}}function a9(e,t,n,r){async function o(i,...s){try{if(i==="event"){const[a,l]=s;await s9(e,t,n,a,l)}else if(i==="config"){const[a,l]=s;await i9(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){on.error(a)}}return o}function l9(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]=a9(i,e,t,n),{gtagCore:i,wrappedGtag:window[o]}}function c9(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(l0)&&n.src.includes(e))return n;return null}/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 u9=30,d9=1e3;class f9{constructor(t={},n=d9){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 HE=new f9;function p9(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function h9(e){var t;const{appId:n,apiKey:r}=e,o={method:"GET",headers:p9(r)},i=ZV.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 vn.create("config-fetch-failed",{httpStatus:s.status,responseMessage:a})}return s.json()}async function m9(e,t=HE,n){const{appId:r,apiKey:o,measurementId:i}=e.options;if(!r)throw vn.create("no-app-id");if(!o){if(i)return{measurementId:i,appId:r};throw vn.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new y9;return setTimeout(async()=>{a.abort()},JV),UE({appId:r,apiKey:o,measurementId:i},s,a,t)}async function UE(e,{throttleEndTimeMillis:t,backoffCount:n},r,o=HE){var i;const{appId:s,measurementId:a}=e;try{await g9(r,t)}catch(l){if(a)return on.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 h9(e);return o.deleteThrottleMetadata(s),l}catch(l){const c=l;if(!v9(c)){if(o.deleteThrottleMetadata(s),a)return on.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?ox(n,o.intervalMillis,u9):ox(n,o.intervalMillis),d={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return o.setThrottleMetadata(s,d),on.debug(`Calling attemptFetch again in ${u} millis`),UE(e,d,r,o)}}function g9(e,t){return new Promise((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener(()=>{clearTimeout(i),r(vn.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function v9(e){if(!(e instanceof Or)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class y9{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function b9(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 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 w9(){if(NP())try{await BP()}catch(e){return on.warn(vn.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return on.warn(vn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function x9(e,t,n,r,o,i,s){var a;const l=m9(e);l.then(h=>{n[h.measurementId]=h.appId,e.options.measurementId&&h.measurementId!==e.options.measurementId&&on.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=>on.error(h)),t.push(l);const c=w9().then(h=>{if(h)return r.getId()}),[u,d]=await Promise.all([l,c]);c9(i)||r9(i,u.measurementId),o("js",new Date);const f=(a=s==null?void 0:s.config)!==null&&a!==void 0?a:{};return f[QV]="firebase",f.update=!0,d!=null&&(f[XV]=d),o("config",u.measurementId,f),u.measurementId}/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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 S9{constructor(t){this.app=t}_delete(){return delete al[this.app.options.appId],Promise.resolve()}}let al={},$x=[];const Ax={};let Mh="dataLayer",C9="gtag",Mx,WE,Dx=!1;function k9(){const e=[];if(jP()&&e.push("This is a browser extension environment."),WF()||e.push("Cookies are not available."),e.length>0){const t=e.map((r,o)=>`(${o+1}) ${r}`).join(" "),n=vn.create("invalid-analytics-context",{errorInfo:t});on.warn(n.message)}}function T9(e,t,n){k9();const r=e.options.appId;if(!r)throw vn.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)on.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 vn.create("no-api-key");if(al[r]!=null)throw vn.create("already-exists",{id:r});if(!Dx){o9(Mh);const{wrappedGtag:i,gtagCore:s}=l9(al,$x,Ax,Mh,C9);WE=i,Mx=s,Dx=!0}return al[r]=x9(e,$x,Ax,t,Mx,Mh,n),new S9(e)}function P9(e=UP()){e=Rr(e);const t=ca(e,Pd);return t.isInitialized()?t.getImmediate():E9(e)}function E9(e,t={}){const n=ca(e,Pd);if(n.isInitialized()){const o=n.getImmediate();if(Hl(t,n.getOptions()))return o;throw vn.create("already-initialized")}return n.initialize({options:t})}function O9(e,t,n,r){e=Rr(e),b9(WE,al[e.app.options.appId],t,n,r).catch(o=>on.error(o))}const Lx="@firebase/analytics",jx="0.10.9";function R9(){no(new kr(Pd,(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("installations-internal").getImmediate();return T9(r,o,n)},"PUBLIC")),no(new kr("analytics-internal",e,"PRIVATE")),br(Lx,jx),br(Lx,jx,"esm2017");function e(t){try{const n=t.getProvider(Pd).getImmediate();return{logEvent:(r,o,i)=>O9(n,r,o,i)}}catch(n){throw vn.create("interop-component-reg-failed",{reason:n})}}}R9();const I9={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"},_9=HP(I9);P9(_9);const Dh=aV(),GE=k.createContext(),$9=({children:e})=>{const[t,n]=k.useState({}),r=()=>{const i=new Mr;g8(Dh,i)},o=()=>{Xz(Dh)};return k.useEffect(()=>{const i=Yz(Dh,s=>{n(s)});return()=>{i()}},[]),x.jsx(GE.Provider,{value:{googleSignIn:r,logOut:o,user:t},children:e})},A9=()=>k.useContext(GE);var sn="top",Fn="bottom",zn="right",an="left",c0="auto",yc=[sn,Fn,zn,an],Ws="start",Gl="end",M9="clippingParents",KE="viewport",Ia="popper",D9="reference",Nx=yc.reduce(function(e,t){return e.concat([t+"-"+Ws,t+"-"+Gl])},[]),qE=[].concat(yc,[c0]).reduce(function(e,t){return e.concat([t,t+"-"+Ws,t+"-"+Gl])},[]),L9="beforeRead",j9="read",N9="afterRead",B9="beforeMain",F9="main",z9="afterMain",V9="beforeWrite",H9="write",U9="afterWrite",W9=[L9,j9,N9,B9,F9,z9,V9,H9,U9];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _i(e){var t=xn(e).Element;return e instanceof t||e instanceof Element}function jn(e){var t=xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function u0(e){if(typeof ShadowRoot>"u")return!1;var t=xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function G9(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];!jn(i)||!Pr(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 K9(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},{});!jn(o)||!Pr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const q9={name:"applyStyles",enabled:!0,phase:"write",fn:G9,effect:K9,requires:["computeStyles"]};function xr(e){return e.split("-")[0]}var wi=Math.max,Ed=Math.min,Gs=Math.round;function Ag(){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 YE(){return!/^((?!chrome|android).)*safari/i.test(Ag())}function Ks(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&jn(e)&&(o=e.offsetWidth>0&&Gs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Gs(r.height)/e.offsetHeight||1);var s=_i(e)?xn(e):window,a=s.visualViewport,l=!YE()&&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 d0(e){var t=Ks(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 XE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oo(e){return xn(e).getComputedStyle(e)}function Y9(e){return["table","td","th"].indexOf(Pr(e))>=0}function Xo(e){return((_i(e)?e.ownerDocument:e.document)||window.document).documentElement}function cp(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(u0(e)?e.host:null)||Xo(e)}function Bx(e){return!jn(e)||oo(e).position==="fixed"?null:e.offsetParent}function X9(e){var t=/firefox/i.test(Ag()),n=/Trident/i.test(Ag());if(n&&jn(e)){var r=oo(e);if(r.position==="fixed")return null}var o=cp(e);for(u0(o)&&(o=o.host);jn(o)&&["html","body"].indexOf(Pr(o))<0;){var i=oo(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 bc(e){for(var t=xn(e),n=Bx(e);n&&Y9(n)&&oo(n).position==="static";)n=Bx(n);return n&&(Pr(n)==="html"||Pr(n)==="body"&&oo(n).position==="static")?t:n||X9(e)||t}function f0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ll(e,t,n){return wi(e,Ed(t,n))}function Q9(e,t,n){var r=ll(e,t,n);return r>n?n:r}function QE(){return{top:0,right:0,bottom:0,left:0}}function JE(e){return Object.assign({},QE(),e)}function ZE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var J9=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,JE(typeof t!="number"?t:ZE(t,yc))};function Z9(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=xr(n.placement),l=f0(a),c=[an,zn].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var d=J9(o.padding,n),f=d0(i),h=l==="y"?sn:an,v=l==="y"?Fn:zn,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],C=s[l]-n.rects.reference[l],m=bc(i),g=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,p=y/2-C/2,w=d[h],S=g-f[u]-d[v],T=g/2-f[u]/2+p,P=ll(w,T,S),E=l;n.modifiersData[r]=(t={},t[E]=P,t.centerOffset=P-T,t)}}function e7(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)||XE(t.elements.popper,o)&&(t.elements.arrow=o))}const t7={name:"arrow",enabled:!0,phase:"main",fn:Z9,effect:e7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qs(e){return e.split("-")[1]}var n7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r7(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Gs(n*o)/o||0,y:Gs(r*o)/o||0}}function Fx(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,v=s.y,y=v===void 0?0:v,C=typeof u=="function"?u({x:h,y}):{x:h,y};h=C.x,y=C.y;var m=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),p=an,w=sn,S=window;if(c){var T=bc(n),P="clientHeight",E="clientWidth";if(T===xn(n)&&(T=Xo(n),oo(T).position!=="static"&&a==="absolute"&&(P="scrollHeight",E="scrollWidth")),T=T,o===sn||(o===an||o===zn)&&i===Gl){w=Fn;var R=d&&T===S&&S.visualViewport?S.visualViewport.height:T[P];y-=R-r.height,y*=l?1:-1}if(o===an||(o===sn||o===Fn)&&i===Gl){p=zn;var b=d&&T===S&&S.visualViewport?S.visualViewport.width:T[E];h-=b-r.width,h*=l?1:-1}}var O=Object.assign({position:a},c&&n7),_=u===!0?r7({x:h,y},xn(n)):{x:h,y};if(h=_.x,y=_.y,l){var I;return Object.assign({},O,(I={},I[w]=g?"0":"",I[p]=m?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",I))}return Object.assign({},O,(t={},t[w]=g?y+"px":"",t[p]=m?h+"px":"",t.transform="",t))}function o7(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:xr(t.placement),variation:qs(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,Fx(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,Fx(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 i7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o7,data:{}};var Zc={passive:!0};function s7(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=xn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Zc)}),a&&l.addEventListener("resize",n.update,Zc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Zc)}),a&&l.removeEventListener("resize",n.update,Zc)}}const a7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:s7,data:{}};var l7={left:"right",right:"left",bottom:"top",top:"bottom"};function Ou(e){return e.replace(/left|right|bottom|top/g,function(t){return l7[t]})}var c7={start:"end",end:"start"};function zx(e){return e.replace(/start|end/g,function(t){return c7[t]})}function p0(e){var t=xn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function h0(e){return Ks(Xo(e)).left+p0(e).scrollLeft}function u7(e,t){var n=xn(e),r=Xo(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=YE();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+h0(e),y:l}}function d7(e){var t,n=Xo(e),r=p0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=wi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=wi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+h0(e),l=-r.scrollTop;return oo(o||n).direction==="rtl"&&(a+=wi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function m0(e){var t=oo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eO(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:jn(e)&&m0(e)?e:eO(cp(e))}function cl(e,t){var n;t===void 0&&(t=[]);var r=eO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=xn(r),s=o?[i].concat(i.visualViewport||[],m0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(cl(cp(s)))}function Mg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f7(e,t){var n=Ks(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 Vx(e,t,n){return t===KE?Mg(u7(e,n)):_i(t)?f7(t,n):Mg(d7(Xo(e)))}function p7(e){var t=cl(cp(e)),n=["absolute","fixed"].indexOf(oo(e).position)>=0,r=n&&jn(e)?bc(e):e;return _i(r)?t.filter(function(o){return _i(o)&&XE(o,r)&&Pr(o)!=="body"}):[]}function h7(e,t,n,r){var o=t==="clippingParents"?p7(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=Vx(e,c,r);return l.top=wi(u.top,l.top),l.right=Ed(u.right,l.right),l.bottom=Ed(u.bottom,l.bottom),l.left=wi(u.left,l.left),l},Vx(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 tO(e){var t=e.reference,n=e.element,r=e.placement,o=r?xr(r):null,i=r?qs(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case sn:l={x:s,y:t.y-n.height};break;case Fn:l={x:s,y:t.y+t.height};break;case zn:l={x:t.x+t.width,y:a};break;case an:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?f0(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ws:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Gl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Kl(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?M9:a,c=n.rootBoundary,u=c===void 0?KE:c,d=n.elementContext,f=d===void 0?Ia:d,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,C=y===void 0?0:y,m=JE(typeof C!="number"?C:ZE(C,yc)),g=f===Ia?D9:Ia,p=e.rects.popper,w=e.elements[v?g:f],S=h7(_i(w)?w:w.contextElement||Xo(e.elements.popper),l,u,s),T=Ks(e.elements.reference),P=tO({reference:T,element:p,strategy:"absolute",placement:o}),E=Mg(Object.assign({},p,P)),R=f===Ia?E:T,b={top:S.top-R.top+m.top,bottom:R.bottom-S.bottom+m.bottom,left:S.left-R.left+m.left,right:R.right-S.right+m.right},O=e.modifiersData.offset;if(f===Ia&&O){var _=O[o];Object.keys(b).forEach(function(I){var $=[zn,Fn].indexOf(I)>=0?1:-1,D=[sn,Fn].indexOf(I)>=0?"y":"x";b[I]+=_[D]*$})}return b}function m7(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?qE:l,u=qs(r),d=u?a?Nx:Nx.filter(function(v){return qs(v)===u}):yc,f=d.filter(function(v){return c.indexOf(v)>=0});f.length===0&&(f=d);var h=f.reduce(function(v,y){return v[y]=Kl(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[xr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function g7(e){if(xr(e)===c0)return[];var t=Ou(e);return[zx(e),t,zx(t)]}function v7(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,v=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,m=xr(C),g=m===C,p=l||(g||!v?[Ou(C)]:g7(C)),w=[C].concat(p).reduce(function(Z,oe){return Z.concat(xr(oe)===c0?m7(t,{placement:oe,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:y}):oe)},[]),S=t.rects.reference,T=t.rects.popper,P=new Map,E=!0,R=w[0],b=0;b=0,D=$?"width":"height",M=Kl(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=$?I?zn:an:I?Fn:sn;S[D]>T[D]&&(N=Ou(N));var A=Ou(N),L=[];if(i&&L.push(M[_]<=0),a&&L.push(M[N]<=0,M[A]<=0),L.every(function(Z){return Z})){R=O,E=!1;break}P.set(O,L)}if(E)for(var F=v?3:1,Q=function(oe){var fe=w.find(function(ie){var V=P.get(ie);if(V)return V.slice(0,oe).every(function(ee){return ee})});if(fe)return R=fe,"break"},Y=F;Y>0;Y--){var te=Q(Y);if(te==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const y7={name:"flip",enabled:!0,phase:"main",fn:v7,requiresIfExists:["offset"],data:{_skip:!1}};function Hx(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 Ux(e){return[sn,zn,Fn,an].some(function(t){return e[t]>=0})}function b7(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Kl(t,{elementContext:"reference"}),a=Kl(t,{altBoundary:!0}),l=Hx(s,r),c=Hx(a,o,i),u=Ux(l),d=Ux(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 w7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b7};function x7(e,t,n){var r=xr(e),o=[an,sn].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,[an,zn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function S7(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=qE.reduce(function(u,d){return u[d]=x7(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 C7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S7};function k7(e){var t=e.state,n=e.name;t.modifiersData[n]=tO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const T7={name:"popperOffsets",enabled:!0,phase:"read",fn:k7,data:{}};function P7(e){return e==="x"?"y":"x"}function E7(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,v=n.tetherOffset,y=v===void 0?0:v,C=Kl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=xr(t.placement),g=qs(t.placement),p=!g,w=f0(m),S=P7(w),T=t.modifiersData.popperOffsets,P=t.rects.reference,E=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,b=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(T){if(i){var I,$=w==="y"?sn:an,D=w==="y"?Fn:zn,M=w==="y"?"height":"width",N=T[w],A=N+C[$],L=N-C[D],F=h?-E[M]/2:0,Q=g===Ws?P[M]:E[M],Y=g===Ws?-E[M]:-P[M],te=t.elements.arrow,Z=h&&te?d0(te):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QE(),fe=oe[$],ie=oe[D],V=ll(0,P[M],Z[M]),ee=p?P[M]/2-F-V-fe-b.mainAxis:Q-V-fe-b.mainAxis,K=p?-P[M]/2+F+V+ie+b.mainAxis:Y+V+ie+b.mainAxis,H=t.elements.arrow&&bc(t.elements.arrow),q=H?w==="y"?H.clientTop||0:H.clientLeft||0:0,Se=(I=O==null?void 0:O[w])!=null?I:0,ce=N+ee-Se-q,de=N+K-Se,Ue=ll(h?Ed(A,ce):A,N,h?wi(L,de):L);T[w]=Ue,_[w]=Ue-N}if(a){var $e,Re=w==="x"?sn:an,Be=w==="x"?Fn:zn,ut=T[S],Pe=S==="y"?"height":"width",Ft=ut+C[Re],ne=ut-C[Be],Xe=[sn,an].indexOf(m)!==-1,nr=($e=O==null?void 0:O[S])!=null?$e:0,qt=Xe?Ft:ut-P[Pe]-E[Pe]-nr+b.altAxis,Yt=Xe?ut+P[Pe]+E[Pe]-nr-b.altAxis:ne,rr=h&&Xe?Q9(qt,ut,Yt):ll(h?qt:Ft,ut,h?Yt:ne);T[S]=rr,_[S]=rr-ut}t.modifiersData[r]=_}}const O7={name:"preventOverflow",enabled:!0,phase:"main",fn:E7,requiresIfExists:["offset"]};function R7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function I7(e){return e===xn(e)||!jn(e)?p0(e):R7(e)}function _7(e){var t=e.getBoundingClientRect(),n=Gs(t.width)/e.offsetWidth||1,r=Gs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $7(e,t,n){n===void 0&&(n=!1);var r=jn(t),o=jn(t)&&_7(t),i=Xo(t),s=Ks(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Pr(t)!=="body"||m0(i))&&(a=I7(t)),jn(t)?(l=Ks(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=h0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function A7(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 M7(e){var t=A7(e);return W9.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function D7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function L7(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 Wx={placement:"bottom",modifiers:[],strategy:"absolute"};function Gx(){for(var e=arguments.length,t=new Array(e),n=0;n{const{classes:t}=e;return xe({root:["root"]},F7,t)},U7={},W7=k.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:v,ownerState:y,...C}=t,m=k.useRef(null),g=ct(m,n),p=k.useRef(null),w=ct(p,d),S=k.useRef(w);Cr(()=>{S.current=w},[w]),k.useImperativeHandle(d,()=>p.current,[]);const T=z7(c,i),[P,E]=k.useState(T),[R,b]=k.useState(Dg(r));k.useEffect(()=>{p.current&&p.current.forceUpdate()}),k.useEffect(()=>{r&&b(Dg(r))},[r]),Cr(()=>{if(!R||!l)return;const D=A=>{E(A.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{D(A)}}];a!=null&&(M=M.concat(a)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const N=B7(R,m.current,{placement:T,...u,modifiers:M});return S.current(N),()=>{N.destroy(),S.current(null)}},[R,s,a,l,u,T]);const O={placement:P};v!==null&&(O.TransitionProps=v);const _=H7(t),I=h.root??"div",$=Xm({elementType:I,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:_.root});return x.jsx(I,{...$,children:typeof o=="function"?o(O):o})}),G7=k.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=U7,popperRef:h,style:v,transition:y=!1,slotProps:C={},slots:m={},...g}=t,[p,w]=k.useState(!0),S=()=>{w(!1)},T=()=>{w(!0)};if(!l&&!u&&(!y||p))return null;let P;if(i)P=i;else if(r){const b=Dg(r);P=b&&V7(b)?bn(b).body:bn(null).body}const E=!u&&l&&(!y||p)?"none":void 0,R=y?{in:u,onEnter:S,onExited:T}:void 0;return x.jsx(qk,{disablePortal:a,container:P,children:x.jsx(W7,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:y?!p:u,placement:d,popperOptions:f,popperRef:h,slotProps:C,slots:m,...g,style:{position:"fixed",top:0,left:0,display:E,...v},TransitionProps:R,children:o})})}),K7=G(G7,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nO=k.forwardRef(function(t,n){const r=Nf(),o=Te({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:v,popperOptions:y,popperRef:C,transition:m,slots:g,slotProps:p,...w}=o,S=(g==null?void 0:g.root)??(a==null?void 0:a.Root),T={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:v,popperOptions:y,popperRef:C,transition:m,...w};return x.jsx(K7,{as:s,direction:r?"rtl":"ltr",slots:{root:S},slotProps:p??l,...T,ref:n})}),q7=Oe(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Y7(e){return he("MuiChip",e)}const ge=pe("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"]),X7=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${U(r)}`,`color${U(o)}`,a&&"clickable",a&&`clickableColor${U(o)}`,s&&"deletable",s&&`deletableColor${U(o)}`,`${l}${U(o)}`],label:["label",`label${U(r)}`],avatar:["avatar",`avatar${U(r)}`,`avatarColor${U(o)}`],icon:["icon",`icon${U(r)}`,`iconColor${U(i)}`],deleteIcon:["deleteIcon",`deleteIcon${U(r)}`,`deleteIconColor${U(o)}`,`deleteIcon${U(l)}Color${U(o)}`]};return xe(c,Y7,t)},Q7=G("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[{[`& .${ge.avatar}`]:t.avatar},{[`& .${ge.avatar}`]:t[`avatar${U(a)}`]},{[`& .${ge.avatar}`]:t[`avatarColor${U(r)}`]},{[`& .${ge.icon}`]:t.icon},{[`& .${ge.icon}`]:t[`icon${U(a)}`]},{[`& .${ge.icon}`]:t[`iconColor${U(o)}`]},{[`& .${ge.deleteIcon}`]:t.deleteIcon},{[`& .${ge.deleteIcon}`]:t[`deleteIcon${U(a)}`]},{[`& .${ge.deleteIcon}`]:t[`deleteIconColor${U(r)}`]},{[`& .${ge.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(r)}`]},t.root,t[`size${U(a)}`],t[`color${U(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${U(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${U(r)}`],t[l],t[`${l}${U(r)}`]]}})(ke(({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",[`&.${ge.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ge.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ge.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ge.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ge.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ge.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ge.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Me(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)`:Me(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ge.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ge.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(en(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ge.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Me(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ge.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ge.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Me(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(en(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ge.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}))`:Me(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Me(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(en(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ge.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]}`,[`&.${ge.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ge.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ge.avatar}`]:{marginLeft:4},[`& .${ge.avatarSmall}`]:{marginLeft:2},[`& .${ge.icon}`]:{marginLeft:4},[`& .${ge.iconSmall}`]:{marginLeft:2},[`& .${ge.deleteIcon}`]:{marginRight:5},[`& .${ge.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(en()).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)`:Me(e.palette[n].main,.7)}`,[`&.${ge.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Me(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Me(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${ge.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Me(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),J7=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${U(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 Kx(e){return e.key==="Backspace"||e.key==="Delete"}const Wa=k.forwardRef(function(t,n){const r=Te({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:v,onKeyDown:y,onKeyUp:C,size:m="medium",variant:g="filled",tabIndex:p,skipFocusWhenDisabled:w=!1,...S}=r,T=k.useRef(null),P=ct(T,n),E=L=>{L.stopPropagation(),v&&v(L)},R=L=>{L.currentTarget===L.target&&Kx(L)&&L.preventDefault(),y&&y(L)},b=L=>{L.currentTarget===L.target&&v&&Kx(L)&&v(L),C&&C(L)},O=s!==!1&&h?!0:s,_=O||v?Ns:l||"div",I={...r,component:_,disabled:u,size:m,color:a,iconColor:k.isValidElement(d)&&d.props.color||a,onDelete:!!v,clickable:O,variant:g},$=X7(I),D=_===Ns?{component:l||"div",focusVisibleClassName:$.focusVisible,...v&&{disableRipple:!0}}:{};let M=null;v&&(M=c&&k.isValidElement(c)?k.cloneElement(c,{className:X(c.props.className,$.deleteIcon),onClick:E}):x.jsx(q7,{className:X($.deleteIcon),onClick:E}));let N=null;o&&k.isValidElement(o)&&(N=k.cloneElement(o,{className:X($.avatar,o.props.className)}));let A=null;return d&&k.isValidElement(d)&&(A=k.cloneElement(d,{className:X($.icon,d.props.className)})),x.jsxs(Q7,{as:_,className:X($.root,i),disabled:O&&u?!0:void 0,onClick:h,onKeyDown:R,onKeyUp:b,ref:P,tabIndex:w&&u?-1:p,ownerState:I,...D,...S,children:[N||A,x.jsx(J7,{className:X($.label),ownerState:I,children:f}),M]})});function eu(e){return parseInt(e,10)||0}const Z7={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const tH=k.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=t,{current:c}=k.useRef(a!=null),u=k.useRef(null),d=ct(n,u),f=k.useRef(null),h=k.useRef(null),v=k.useCallback(()=>{const m=u.current,p=eo(m).getComputedStyle(m);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=h.current;w.style.width=p.width,w.value=m.value||t.placeholder||"x",w.value.slice(-1)===` +`&&(w.value+=" ");const S=p.boxSizing,T=eu(p.paddingBottom)+eu(p.paddingTop),P=eu(p.borderBottomWidth)+eu(p.borderTopWidth),E=w.scrollHeight;w.value="x";const R=w.scrollHeight;let b=E;i&&(b=Math.max(Number(i)*R,b)),o&&(b=Math.min(Number(o)*R,b)),b=Math.max(b,R);const O=b+(S==="border-box"?T+P:0),_=Math.abs(b-E)<=1;return{outerHeightStyle:O,overflowing:_}},[o,i,t.placeholder]),y=k.useCallback(()=>{const m=v();if(eH(m))return;const g=m.outerHeightStyle,p=u.current;f.current!==g&&(f.current=g,p.style.height=`${g}px`),p.style.overflow=m.overflowing?"hidden":""},[v]);Cr(()=>{const m=()=>{y()};let g;const p=Mk(m),w=u.current,S=eo(w);S.addEventListener("resize",p);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(m),T.observe(w)),()=>{p.clear(),cancelAnimationFrame(g),S.removeEventListener("resize",p),T&&T.disconnect()}},[v,y]),Cr(()=>{y()});const C=m=>{c||y(),r&&r(m)};return x.jsxs(k.Fragment,{children:[x.jsx("textarea",{value:a,onChange:C,ref:d,rows:i,style:s,...l}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...Z7.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function da({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 qx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Od(e,t=!1){return e&&(qx(e.value)&&e.value!==""||t&&qx(e.defaultValue)&&e.defaultValue!=="")}function nH(e){return e.startAdornment}function rH(e){return he("MuiInputBase",e)}const Ys=pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Yx;const up=(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${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},dp=(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]},oH=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:v}=e,y={root:["root",`color${U(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${U(f)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return xe(y,rH,t)},fp=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:up})(ke(({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",[`&.${Ys.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%"}}]}))),pp=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dp})(ke(({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] + .${Ys.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},[`&.${Ys.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"}}]}})),Xx=f3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),g0=k.forwardRef(function(t,n){const r=Te({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:v,error:y,fullWidth:C=!1,id:m,inputComponent:g="input",inputProps:p={},inputRef:w,margin:S,maxRows:T,minRows:P,multiline:E=!1,name:R,onBlur:b,onChange:O,onClick:_,onFocus:I,onKeyDown:$,onKeyUp:D,placeholder:M,readOnly:N,renderSuffix:A,rows:L,size:F,slotProps:Q={},slots:Y={},startAdornment:te,type:Z="text",value:oe,...fe}=r,ie=p.value!=null?p.value:oe,{current:V}=k.useRef(ie!=null),ee=k.useRef(),K=k.useCallback(Ce=>{},[]),H=ct(ee,w,p.ref,K),[q,Se]=k.useState(!1),ce=Li(),de=da({props:r,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});de.focused=ce?ce.focused:q,k.useEffect(()=>{!ce&&f&&q&&(Se(!1),b&&b())},[ce,f,q,b]);const Ue=ce&&ce.onFilled,$e=ce&&ce.onEmpty,Re=k.useCallback(Ce=>{Od(Ce)?Ue&&Ue():$e&&$e()},[Ue,$e]);Cr(()=>{V&&Re({value:ie})},[ie,Re,V]);const Be=Ce=>{I&&I(Ce),p.onFocus&&p.onFocus(Ce),ce&&ce.onFocus?ce.onFocus(Ce):Se(!0)},ut=Ce=>{b&&b(Ce),p.onBlur&&p.onBlur(Ce),ce&&ce.onBlur?ce.onBlur(Ce):Se(!1)},Pe=(Ce,...Wn)=>{if(!V){const Qo=Ce.target||ee.current;if(Qo==null)throw new Error(Jr(1));Re({value:Qo.value})}p.onChange&&p.onChange(Ce,...Wn),O&&O(Ce,...Wn)};k.useEffect(()=>{Re(ee.current)},[]);const Ft=Ce=>{ee.current&&Ce.currentTarget===Ce.target&&ee.current.focus(),_&&_(Ce)};let ne=g,Xe=p;E&&ne==="input"&&(L?Xe={type:void 0,minRows:L,maxRows:L,...Xe}:Xe={type:void 0,maxRows:T,minRows:P,...Xe},ne=tH);const nr=Ce=>{Re(Ce.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};k.useEffect(()=>{ce&&ce.setAdornedStart(!!te)},[ce,te]);const qt={...r,color:de.color||"primary",disabled:de.disabled,endAdornment:v,error:de.error,focused:de.focused,formControl:ce,fullWidth:C,hiddenLabel:de.hiddenLabel,multiline:E,size:de.size,startAdornment:te,type:Z},Yt=oH(qt),rr=Y.root||c.Root||fp,Xt=Q.root||u.root||{},or=Y.input||c.Input||pp;return Xe={...Xe,...Q.input??u.input},x.jsxs(k.Fragment,{children:[!h&&typeof Xx=="function"&&(Yx||(Yx=x.jsx(Xx,{}))),x.jsxs(rr,{...Xt,ref:n,onClick:Ft,...fe,...!rg(rr)&&{ownerState:{...qt,...Xt.ownerState}},className:X(Yt.root,Xt.className,a,N&&"MuiInputBase-readOnly"),children:[te,x.jsx(dy.Provider,{value:null,children:x.jsx(or,{"aria-invalid":de.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:de.disabled,id:m,onAnimationStart:nr,name:R,placeholder:M,readOnly:N,required:de.required,rows:L,value:ie,onKeyDown:$,onKeyUp:D,type:Z,...Xe,...!rg(or)&&{as:ne,ownerState:{...qt,...Xe.ownerState}},ref:H,className:X(Yt.input,Xe.className,N&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Pe,onFocus:Be})}),v,A?A({...de,startAdornment:te}):null]})]})});function iH(e){return he("MuiInput",e)}const _a={...Ys,...pe("MuiInput",["root","underline","input"])};function sH(e){return he("MuiOutlinedInput",e)}const ar={...Ys,...pe("MuiOutlinedInput",["root","notchedOutline","input"])};function aH(e){return he("MuiFilledInput",e)}const Zo={...Ys,...pe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lH=Oe(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function cH(e){return he("MuiCard",e)}pe("MuiCard",["root"]);const uH=e=>{const{classes:t}=e;return xe({root:["root"]},cH,t)},dH=G(Ei,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),rO=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...s}=r,a={...r,raised:i},l=uH(a);return x.jsx(dH,{className:X(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a,...s})});function fH(e){return he("MuiCardContent",e)}pe("MuiCardContent",["root"]);const pH=e=>{const{classes:t}=e;return xe({root:["root"]},fH,t)},hH=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),oO=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=pH(a);return x.jsx(hH,{as:i,className:X(l.root,o),ownerState:a,ref:n,...s})});function mH(e){return he("MuiCardMedia",e)}pe("MuiCardMedia",["root","media","img"]);const gH=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return xe({root:["root",n&&"media",r&&"img"]},mH,t)},vH=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),yH=["video","audio","picture","iframe","img"],bH=["picture","img"],wH=k.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:c,...u}=r,d=yH.includes(s),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,h={...r,component:s,isMediaComponent:d,isImageComponent:bH.includes(s)},v=gH(h);return x.jsx(vH,{className:X(v.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})}),xH=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${U(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=xe(l,aH,t);return{...t,...c}},SH=G(fp,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...up(e,t),!n.disableUnderline&&t.underline]}})(ke(({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}},[`&.${Zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Zo.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"},[`&.${Zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zo.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(.${Zo.disabled}, .${Zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(en()).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}}]}})),CH=G(pp,{name:"MuiFilledInput",slot:"Input",overridesResolver:dp})(ke(({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}}]}))),Rd=k.forwardRef(function(t,n){const r=Te({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",...v}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:h},C=xH(r),m={root:{ownerState:y},input:{ownerState:y}},g=d??s?jt(m,d??s):m,p=f.root??i.Root??SH,w=f.input??i.Input??CH;return x.jsx(g0,{slots:{root:p,input:w},componentsProps:g,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...v,classes:C})});Rd&&(Rd.muiName="Input");function kH(e){return he("MuiFormControl",e)}pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const TH=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${U(n)}`,r&&"fullWidth"]};return xe(o,kH,t)},PH=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${U(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%"}}]}),EH=k.forwardRef(function(t,n){const r=Te({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:v=!1,size:y="medium",variant:C="outlined",...m}=r,g={...r,color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:h,required:v,size:y,variant:C},p=TH(g),[w,S]=k.useState(()=>{let I=!1;return o&&k.Children.forEach(o,$=>{if(!rh($,["Input","Select"]))return;const D=rh($,["Select"])?$.props.input:$;D&&nH(D.props)&&(I=!0)}),I}),[T,P]=k.useState(()=>{let I=!1;return o&&k.Children.forEach(o,$=>{rh($,["Input","Select"])&&(Od($.props,!0)||Od($.props.inputProps,!0))&&(I=!0)}),I}),[E,R]=k.useState(!1);l&&E&&R(!1);const b=u!==void 0&&!l?u:E;let O;k.useRef(!1);const _=k.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:l,error:c,filled:T,focused:b,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{R(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{R(!0)},registerEffect:O,required:v,variant:C}),[w,s,l,c,T,b,d,f,O,v,y,C]);return x.jsx(dy.Provider,{value:_,children:x.jsx(PH,{as:a,ownerState:g,className:X(p.root,i),ref:n,...m,children:o})})});function OH(e){return he("MuiFormHelperText",e)}const Qx=pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Jx;const RH=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${U(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return xe(c,OH,t)},IH=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${U(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qx.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}}]}))),_H=k.forwardRef(function(t,n){const r=Te({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,...v}=r,y=Li(),C=da({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),m={...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 m.ownerState;const g=RH(m);return x.jsx(IH,{as:s,className:X(g.root,i),ref:n,...v,ownerState:m,children:o===" "?Jx||(Jx=x.jsx("span",{className:"notranslate",children:"​"})):o})});function $H(e){return he("MuiFormLabel",e)}const ul=pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),AH=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${U(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return xe(l,$H,t)},MH=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(ke(({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(en()).map(([t])=>({props:{color:t},style:{[`&.${ul.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ul.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),DH=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ke(({theme:e})=>({[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}}))),LH=k.forwardRef(function(t,n){const r=Te({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,v=Li(),y=da({props:r,muiFormControl:v,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},m=AH(C);return x.jsxs(MH,{as:a,ownerState:C,className:X(m.root,i),ref:n,...h,children:[o,y.required&&x.jsxs(DH,{ownerState:C,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),jH=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},iH,t);return{...t,...o}},NH=G(fp,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...up(e,t),!n.disableUnderline&&t.underline]}})(ke(({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"},[`&.${_a.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_a.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(.${_a.disabled}, .${_a.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_a.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(en()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),BH=G(pp,{name:"MuiInput",slot:"Input",overridesResolver:dp})({}),Id=k.forwardRef(function(t,n){const r=Te({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,v=jH(r),C={root:{ownerState:{disableUnderline:o}}},m=u??s?jt(u??s,C):C,g=d.root??i.Root??NH,p=d.input??i.Input??BH;return x.jsx(g0,{slots:{root:g,input:p},slotProps:m,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...h,classes:v})});Id&&(Id.muiName="Input");function FH(e){return he("MuiInputLabel",e)}pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zH=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${U(r)}`,s],asterisk:[a&&"asterisk"]},c=xe(l,FH,t);return{...t,...c}},VH=G(LH,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ul.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]]}})(ke(({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)"}}]}))),HH=k.forwardRef(function(t,n){const r=Te({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...c}=r,u=Li();let d=s;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=da({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},v=zH(h);return x.jsx(VH,{"data-shrink":d,ref:n,className:X(v.root,l),...c,ownerState:h,classes:v})});function UH(e){return he("MuiNativeSelect",e)}const v0=pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),WH=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${U(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(a,UH,t)},iO=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${v0.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}}}]})),GH=G(iO,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${v0.multiple}`]:t.multiple}]}})({}),sO=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${v0.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}}]})),KH=G(sO,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),qH=k.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=WH(u);return x.jsxs(k.Fragment,{children:[x.jsx(GH,{ownerState:u,className:X(d.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:x.jsx(KH,{as:s,ownerState:u,className:d.icon})]})});var Zx;const YH=G("fieldset",{shouldForwardProp:Tn})({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%"}),XH=G("legend",{shouldForwardProp:Tn})(ke(({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 QH(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 x.jsx(YH,{"aria-hidden":!0,className:r,ownerState:l,...s,children:x.jsx(XH,{ownerState:l,children:a?x.jsx("span",{children:o}):Zx||(Zx=x.jsx("span",{className:"notranslate",children:"​"}))})})}const JH=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sH,t);return{...t,...r}},ZH=G(fp,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:up})(ke(({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 .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ar.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ar.focused} .${ar.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(en()).map(([n])=>({props:{color:n},style:{[`&.${ar.focused} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ar.error} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ar.disabled} .${ar.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"}}]}})),eU=G(QH,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ke(({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}})),tU=G(pp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dp})(ke(({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}}]}))),_d=k.forwardRef(function(t,n){var r;const o=Te({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,v=JH(o),y=Li(),C=da({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...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},g=d.root??i.Root??ZH,p=d.input??i.Input??tU;return x.jsx(g0,{slots:{root:g,input:p},renderSuffix:w=>x.jsx(eU,{ownerState:m,className:v.notchedOutline,label:l!=null&&l!==""&&C.required?r||(r=x.jsxs(k.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f,...h,classes:{...v,notchedOutline:null}})});_d&&(_d.muiName="Input");const nU=Oe(x.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"),rU=Oe(x.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 oU(e){return he("MuiRating",e)}const $a=pe("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function iU(e){const t=e.toString().split(".")[1];return t?t.length:0}function Lh(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(iU(t)))}const sU=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${U(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 xe(a,oU,t)},aU=G("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${U(n.size)}`],n.readOnly&&t.readOnly]}})(ke(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${$a.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${$a.focusVisible} .${$a.iconActive}`]:{outline:"1px solid #999"},[`& .${$a.visuallyHidden}`]:v5,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"}}]}))),aO=G("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%"}}]}),lU=G("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]}})(ke(({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}}]}))),cU=G("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>iy(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 uU(e){const{value:t,...n}=e;return x.jsx("span",{...n})}function eS(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:v,onChange:y,onClick:C,onFocus:m,readOnly:g,ownerState:p,ratingValue:w,ratingValueRounded:S}=e,T=s?d===w:d<=w,P=d<=a,E=d<=o,R=d===S,b=`${h}-${ac()}`,O=x.jsx(lU,{as:c,value:d,className:X(t.icon,T?t.iconFilled:t.iconEmpty,P&&t.iconHover,E&&t.iconFocus,u&&t.iconActive),ownerState:{...p,iconEmpty:!T,iconFilled:T,iconHover:P,iconFocus:E,iconActive:u},children:r&&!T?r:l});return g?x.jsx("span",{...f,children:O}):x.jsxs(k.Fragment,{children:[x.jsxs(aO,{ownerState:{...p,emptyValueFocused:void 0},htmlFor:b,...f,children:[O,x.jsx("span",{className:t.visuallyHidden,children:i(d)})]}),x.jsx("input",{className:t.visuallyHidden,onFocus:m,onBlur:v,onChange:y,onClick:C,disabled:n,value:d,id:b,type:"radio",name:h,checked:R})]})}const dU=x.jsx(nU,{fontSize:"inherit"}),fU=x.jsx(rU,{fontSize:"inherit"});function pU(e){return`${e||"0"} Star${e!==1?"s":""}`}const lO=k.forwardRef(function(t,n){const r=Te({name:"MuiRating",props:t}),{className:o,defaultValue:i=null,disabled:s=!1,emptyIcon:a=fU,emptyLabelText:l="Empty",getLabelText:c=pU,highlightSelectedOnly:u=!1,icon:d=dU,IconContainerComponent:f=uU,max:h=5,name:v,onChange:y,onChangeActive:C,onMouseLeave:m,onMouseMove:g,precision:p=1,readOnly:w=!1,size:S="medium",value:T,...P}=r,E=ac(v),[R,b]=Dl({controlled:T,default:i,name:"Rating"}),O=Lh(R,p),_=Nf(),[{hover:I,focus:$},D]=k.useState({hover:-1,focus:-1});let M=O;I!==-1&&(M=I),$!==-1&&(M=$);const[N,A]=k.useState(!1),L=k.useRef(),F=ct(L,n),Q=H=>{g&&g(H);const q=L.current,{right:Se,left:ce,width:de}=q.getBoundingClientRect();let Ue;_?Ue=(Se-H.clientX)/de:Ue=(H.clientX-ce)/de;let $e=Lh(h*Ue+p/2,p);$e=$k($e,p,h),D(Re=>Re.hover===$e&&Re.focus===$e?Re:{hover:$e,focus:$e}),A(!1),C&&I!==$e&&C(H,$e)},Y=H=>{m&&m(H);const q=-1;D({hover:q,focus:q}),C&&I!==q&&C(H,q)},te=H=>{let q=H.target.value===""?null:parseFloat(H.target.value);I!==-1&&(q=I),b(q),y&&y(H,q)},Z=H=>{H.clientX===0&&H.clientY===0||(D({hover:-1,focus:-1}),b(null),y&&parseFloat(H.target.value)===O&&y(H,null))},oe=H=>{js(H.target)&&A(!0);const q=parseFloat(H.target.value);D(Se=>({hover:Se.hover,focus:q}))},fe=H=>{if(I!==-1)return;js(H.target)||A(!1);const q=-1;D(Se=>({hover:Se.hover,focus:q}))},[ie,V]=k.useState(!1),ee={...r,defaultValue:i,disabled:s,emptyIcon:a,emptyLabelText:l,emptyValueFocused:ie,focusVisible:N,getLabelText:c,icon:d,IconContainerComponent:f,max:h,precision:p,readOnly:w,size:S},K=sU(ee);return x.jsxs(aU,{ref:F,onMouseMove:Q,onMouseLeave:Y,className:X(K.root,o,w&&"MuiRating-readOnly"),ownerState:ee,role:w?"img":null,"aria-label":w?c(M):null,...P,children:[Array.from(new Array(h)).map((H,q)=>{const Se=q+1,ce={classes:K,disabled:s,emptyIcon:a,focus:$,getLabelText:c,highlightSelectedOnly:u,hover:I,icon:d,IconContainerComponent:f,name:E,onBlur:fe,onChange:te,onClick:Z,onFocus:oe,ratingValue:M,ratingValueRounded:O,readOnly:w,ownerState:ee},de=Se===Math.ceil(M)&&(I!==-1||$!==-1);if(p<1){const Ue=Array.from(new Array(1/p));return x.jsx(cU,{className:X(K.decimal,de&&K.iconActive),ownerState:ee,iconActive:de,children:Ue.map(($e,Re)=>{const Be=Lh(Se-1+(Re+1)*p,p);return x.jsx(eS,{...ce,isActive:!1,itemValue:Be,labelProps:{style:Ue.length-1===Re?{}:{width:Be===M?`${(Re+1)*p*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Be)})},Se)}return x.jsx(eS,{...ce,isActive:de,itemValue:Se},Se)}),!w&&!s&&x.jsxs(aO,{className:X(K.label,K.labelEmptyValue),ownerState:ee,children:[x.jsx("input",{className:K.visuallyHidden,value:"",id:`${E}-empty`,type:"radio",name:E,checked:O==null,onFocus:()=>V(!0),onBlur:()=>V(!1),onChange:te}),x.jsx("span",{className:K.visuallyHidden,children:l})]})]})});function hU(e){return he("MuiSelect",e)}const Aa=pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var tS;const mU=G(iO,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Aa.select}`]:t.select},{[`&.${Aa.select}`]:t[n.variant]},{[`&.${Aa.error}`]:t.error},{[`&.${Aa.multiple}`]:t.multiple}]}})({[`&.${Aa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gU=G(sO,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${U(n.variant)}`],n.open&&t.iconOpen]}})({}),vU=G("input",{shouldForwardProp:e=>iy(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 nS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yU(e){return e==null||typeof e=="string"&&!e.trim()}const bU=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${U(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(a,hU,t)},wU=k.forwardRef(function(t,n){var Qo;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:v,inputRef:y,labelId:C,MenuProps:m={},multiple:g,name:p,onBlur:w,onChange:S,onClose:T,onFocus:P,onOpen:E,open:R,readOnly:b,renderValue:O,SelectDisplayProps:_={},tabIndex:I,type:$,value:D,variant:M="standard",...N}=t,[A,L]=Dl({controlled:D,default:u,name:"Select"}),[F,Q]=Dl({controlled:R,default:c,name:"Select"}),Y=k.useRef(null),te=k.useRef(null),[Z,oe]=k.useState(null),{current:fe}=k.useRef(R!=null),[ie,V]=k.useState(),ee=ct(n,y),K=k.useCallback(re=>{te.current=re,re&&oe(re)},[]),H=Z==null?void 0:Z.parentNode;k.useImperativeHandle(ee,()=>({focus:()=>{te.current.focus()},node:Y.current,value:A}),[A]),k.useEffect(()=>{c&&F&&Z&&!fe&&(V(s?null:H.clientWidth),te.current.focus())},[Z,s]),k.useEffect(()=>{i&&te.current.focus()},[i]),k.useEffect(()=>{if(!C)return;const re=bn(te.current).getElementById(C);if(re){const Ae=()=>{getSelection().isCollapsed&&te.current.focus()};return re.addEventListener("click",Ae),()=>{re.removeEventListener("click",Ae)}}},[C]);const q=(re,Ae)=>{re?E&&E(Ae):T&&T(Ae),fe||(V(s?null:H.clientWidth),Q(re))},Se=re=>{re.button===0&&(re.preventDefault(),te.current.focus(),q(!0,re))},ce=re=>{q(!1,re)},de=k.Children.toArray(a),Ue=re=>{const Ae=de.find(gt=>gt.props.value===re.target.value);Ae!==void 0&&(L(Ae.props.value),S&&S(re,Ae))},$e=re=>Ae=>{let gt;if(Ae.currentTarget.hasAttribute("tabindex")){if(g){gt=Array.isArray(A)?A.slice():[];const Ir=A.indexOf(re.props.value);Ir===-1?gt.push(re.props.value):gt.splice(Ir,1)}else gt=re.props.value;if(re.props.onClick&&re.props.onClick(Ae),A!==gt&&(L(gt),S)){const Ir=Ae.nativeEvent||Ae,ma=new Ir.constructor(Ir.type,Ir);Object.defineProperty(ma,"target",{writable:!0,value:{value:gt,name:p}}),S(ma,re)}g||q(!1,Ae)}},Re=re=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(re.key)&&(re.preventDefault(),q(!0,re))},Be=Z!==null&&F,ut=re=>{!Be&&w&&(Object.defineProperty(re,"target",{writable:!0,value:{value:A,name:p}}),w(re))};delete N["aria-invalid"];let Pe,Ft;const ne=[];let Xe=!1;(Od({value:A})||f)&&(O?Pe=O(A):Xe=!0);const nr=de.map(re=>{if(!k.isValidElement(re))return null;let Ae;if(g){if(!Array.isArray(A))throw new Error(Jr(2));Ae=A.some(gt=>nS(gt,re.props.value)),Ae&&Xe&&ne.push(re.props.children)}else Ae=nS(A,re.props.value),Ae&&Xe&&(Ft=re.props.children);return k.cloneElement(re,{"aria-selected":Ae?"true":"false",onClick:$e(re),onKeyUp:gt=>{gt.key===" "&>.preventDefault(),re.props.onKeyUp&&re.props.onKeyUp(gt)},role:"option",selected:Ae,value:void 0,"data-value":re.props.value})});Xe&&(g?ne.length===0?Pe=null:Pe=ne.reduce((re,Ae,gt)=>(re.push(Ae),gt{const{classes:t}=e;return t},y0={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},SU=G(Id,y0)(""),CU=G(_d,y0)(""),kU=G(Rd,y0)(""),cO=k.forwardRef(function(t,n){const r=Hk({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=lH,id:d,input:f,inputProps:h,label:v,labelId:y,MenuProps:C,multiple:m=!1,native:g=!1,onClose:p,onOpen:w,open:S,renderValue:T,SelectDisplayProps:P,variant:E="outlined",...R}=r,b=g?qH:wU,O=Li(),_=da({props:r,muiFormControl:O,states:["variant","error"]}),I=_.variant||E,$={...r,variant:I,classes:s},D=xU($),{root:M,...N}=D,A=f||{standard:x.jsx(SU,{ownerState:$}),outlined:x.jsx(CU,{label:v,ownerState:$}),filled:x.jsx(kU,{ownerState:$})}[I],L=ct(n,aa(A));return x.jsx(k.Fragment,{children:k.cloneElement(A,{inputComponent:b,inputProps:{children:i,error:_.error,IconComponent:u,variant:I,type:void 0,multiple:m,...g?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:C,onClose:p,onOpen:w,open:S,renderValue:T,SelectDisplayProps:{id:d,...P}},...h,classes:h?jt(N,h.classes):N,...f?f.props.inputProps:{}},...(m&&g||c)&&I==="outlined"?{notched:!0}:{},ref:L,className:X(A.props.className,a,D.root),...!f&&{variant:I},...R})})});cO.muiName="Select";function TU(e){return he("MuiTooltip",e)}const at=pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function PU(e){return Math.round(e*1e5)/1e5}const EU=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${U(i.split("-")[0])}`],arrow:["arrow"]};return xe(s,TU,t)},OU=G(nO,{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]}})(ke(({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"] .${at.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${at.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${at.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${at.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${at.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${at.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${at.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${at.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),RU=G("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${U(n.placement.split("-")[0])}`]]}})(ke(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Me(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,[`.${at.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${at.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${at.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${at.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:`${PU(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${at.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${at.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${at.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${at.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${at.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${at.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${at.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${at.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${at.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${at.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),IU=G("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ke(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Me(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let tu=!1;const rS=new jf;let Ma={x:0,y:0};function nu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const _U=k.forwardRef(function(t,n){var A0,M0,D0;const r=Te({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:v=100,enterNextDelay:y=0,enterTouchDelay:C=700,followCursor:m=!1,id:g,leaveDelay:p=0,leaveTouchDelay:w=1500,onClose:S,onOpen:T,open:P,placement:E="bottom",PopperComponent:R,PopperProps:b={},slotProps:O={},slots:_={},title:I,TransitionComponent:$=jl,TransitionProps:D,...M}=r,N=k.isValidElement(i)?i:x.jsx("span",{children:i}),A=Ff(),L=Nf(),[F,Q]=k.useState(),[Y,te]=k.useState(null),Z=k.useRef(!1),oe=f||m,fe=ls(),ie=ls(),V=ls(),ee=ls(),[K,H]=Dl({controlled:P,default:!1,name:"Tooltip",state:"open"});let q=K;const Se=ac(g),ce=k.useRef(),de=To(()=>{ce.current!==void 0&&(document.body.style.WebkitUserSelect=ce.current,ce.current=void 0),ee.clear()});k.useEffect(()=>de,[de]);const Ue=me=>{rS.clear(),tu=!0,H(!0),T&&!q&&T(me)},$e=To(me=>{rS.start(800+p,()=>{tu=!1}),H(!1),S&&q&&S(me),fe.start(A.transitions.duration.shortest,()=>{Z.current=!1})}),Re=me=>{Z.current&&me.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),V.clear(),v||tu&&y?ie.start(tu?y:v,()=>{Ue(me)}):Ue(me))},Be=me=>{ie.clear(),V.start(p,()=>{$e(me)})},[,ut]=k.useState(!1),Pe=me=>{js(me.target)||(ut(!1),Be(me))},Ft=me=>{F||Q(me.currentTarget),js(me.target)&&(ut(!0),Re(me))},ne=me=>{Z.current=!0;const Gn=N.props;Gn.onTouchStart&&Gn.onTouchStart(me)},Xe=me=>{ne(me),V.clear(),fe.clear(),de(),ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ee.start(C,()=>{document.body.style.WebkitUserSelect=ce.current,Re(me)})},nr=me=>{N.props.onTouchEnd&&N.props.onTouchEnd(me),de(),V.start(w,()=>{$e(me)})};k.useEffect(()=>{if(!q)return;function me(Gn){Gn.key==="Escape"&&$e(Gn)}return document.addEventListener("keydown",me),()=>{document.removeEventListener("keydown",me)}},[$e,q]);const qt=ct(aa(N),Q,n);!I&&I!==0&&(q=!1);const Yt=k.useRef(),rr=me=>{const Gn=N.props;Gn.onMouseMove&&Gn.onMouseMove(me),Ma={x:me.clientX,y:me.clientY},Yt.current&&Yt.current.update()},Xt={},or=typeof I=="string";c?(Xt.title=!q&&or&&!d?I:null,Xt["aria-describedby"]=q?Se:null):(Xt["aria-label"]=or?I:null,Xt["aria-labelledby"]=q&&!or?Se:null);const Ce={...Xt,...M,...N.props,className:X(M.className,N.props.className),onTouchStart:ne,ref:qt,...m?{onMouseMove:rr}:{}},Wn={};h||(Ce.onTouchStart=Xe,Ce.onTouchEnd=nr),d||(Ce.onMouseOver=nu(Re,Ce.onMouseOver),Ce.onMouseLeave=nu(Be,Ce.onMouseLeave),oe||(Wn.onMouseOver=Re,Wn.onMouseLeave=Be)),u||(Ce.onFocus=nu(Ft,Ce.onFocus),Ce.onBlur=nu(Pe,Ce.onBlur),oe||(Wn.onFocus=Ft,Wn.onBlur=Pe));const Qo=k.useMemo(()=>{var Gn;let me=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(Gn=b.popperOptions)!=null&&Gn.modifiers&&(me=me.concat(b.popperOptions.modifiers)),{...b.popperOptions,modifiers:me}},[Y,b]),re={...r,isRtl:L,arrow:o,disableInteractive:oe,placement:E,PopperComponentProp:R,touch:Z.current},Ae=EU(re),gt=_.popper??a.Popper??OU,Ir=_.transition??a.Transition??$??jl,ma=_.tooltip??a.Tooltip??RU,$0=_.arrow??a.Arrow??IU,uR=cs(gt,{...b,...O.popper??l.popper,className:X(Ae.popper,b==null?void 0:b.className,(A0=O.popper??l.popper)==null?void 0:A0.className)},re),dR=cs(Ir,{...D,...O.transition??l.transition},re),fR=cs(ma,{...O.tooltip??l.tooltip,className:X(Ae.tooltip,(M0=O.tooltip??l.tooltip)==null?void 0:M0.className)},re),pR=cs($0,{...O.arrow??l.arrow,className:X(Ae.arrow,(D0=O.arrow??l.arrow)==null?void 0:D0.className)},re);return x.jsxs(k.Fragment,{children:[k.cloneElement(N,Ce),x.jsx(gt,{as:R??nO,placement:E,anchorEl:m?{getBoundingClientRect:()=>({top:Ma.y,left:Ma.x,right:Ma.x,bottom:Ma.y,width:0,height:0})}:F,popperRef:Yt,open:F?q:!1,id:Se,transition:!0,...Wn,...uR,popperOptions:Qo,children:({TransitionProps:me})=>x.jsx(Ir,{timeout:A.transitions.duration.shorter,...me,...dR,children:x.jsxs(ma,{...fR,children:[I,o?x.jsx($0,{...pR,ref:te}):null]})})})]})});function $U(e){return he("MuiTextField",e)}pe("MuiTextField",["root"]);const AU={standard:Id,filled:Rd,outlined:_d},MU=e=>{const{classes:t}=e;return xe({root:["root"]},$U,t)},DU=G(EH,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jh=k.forwardRef(function(t,n){const r=Te({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:v,id:y,InputLabelProps:C,inputProps:m,InputProps:g,inputRef:p,label:w,maxRows:S,minRows:T,multiline:P=!1,name:E,onBlur:R,onChange:b,onFocus:O,placeholder:_,required:I=!1,rows:$,select:D=!1,SelectProps:M,slots:N={},slotProps:A={},type:L,value:F,variant:Q="outlined",...Y}=r,te={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:h,multiline:P,required:I,select:D,variant:Q},Z=MU(te),oe=ac(y),fe=v&&oe?`${oe}-helper-text`:void 0,ie=w&&oe?`${oe}-label`:void 0,V=AU[Q],ee={slots:N,slotProps:{input:g,inputLabel:C,htmlInput:m,formHelperText:f,select:M,...A}},K={},H=ee.slotProps.inputLabel;Q==="outlined"&&(H&&typeof H.shrink<"u"&&(K.notched=H.shrink),K.label=w),D&&((!M||!M.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const[q,Se]=An("input",{elementType:V,externalForwardedProps:ee,additionalProps:K,ownerState:te}),[ce,de]=An("inputLabel",{elementType:HH,externalForwardedProps:ee,ownerState:te}),[Ue,$e]=An("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:te}),[Re,Be]=An("formHelperText",{elementType:_H,externalForwardedProps:ee,ownerState:te}),[ut,Pe]=An("select",{elementType:cO,externalForwardedProps:ee,ownerState:te}),Ft=x.jsx(q,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:h,multiline:P,name:E,rows:$,maxRows:S,minRows:T,type:L,value:F,id:oe,inputRef:p,onBlur:R,onChange:b,onFocus:O,placeholder:_,inputProps:$e,slots:{input:N.htmlInput?Ue:void 0},...Se});return x.jsxs(DU,{className:X(Z.root,a),disabled:u,error:d,fullWidth:h,ref:n,required:I,color:l,variant:Q,ownerState:te,...Y,children:[w!=null&&w!==""&&x.jsx(ce,{htmlFor:oe,id:ie,...de,children:w}),D?x.jsx(ut,{"aria-describedby":fe,id:oe,labelId:ie,value:F,input:Ft,...Pe,children:s}):Ft,v&&x.jsx(Re,{id:fe,...Be,children:v})]})}),oS=[{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"}],LU=[{name:"Profile",icon:x.jsx(UL,{}),path:"/fer-lab1/profile"},{name:"Dashboard",icon:x.jsx(LL,{}),path:"/fer-lab1/orchid-management"},{name:"Logout",icon:x.jsx(VL,{})}];function jU(){const[e,t]=k.useState(null),[n,r]=k.useState(null),{theme:o,light:i}=k.useContext(tr),s=nc(),[a,l]=k.useState(!1),{googleSignIn:c,user:u,logOut:d}=A9(),f=k.useCallback(()=>{const S=window.scrollY>10;S!==a&&l(S)},[a]);k.useEffect(()=>(window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}),[f]);const h=S=>{t(S.currentTarget)},v=S=>{r(S.currentTarget)},y=()=>{t(null)},C=()=>{r(null)},m=()=>i?a?"white":"#333333":"white",g=async()=>{try{await c()}catch(S){console.log(S)}},p=async()=>{try{await d(),C()}catch(S){console.log(S)}},w=S=>{S==="Logout"&&p(),C()};return x.jsx(S3,{position:"fixed",sx:{backgroundColor:a?o.header.backgroundColor:"transparent",boxShadow:a?3:0,transition:"all 0.3s ease-in-out"},children:x.jsx(Bs,{maxWidth:"xl",children:x.jsxs(O3,{disableGutters:!0,children:[x.jsx(gn.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.5},children:x.jsx(sg,{sx:{display:{xs:"none",md:"flex"},mr:1,fontSize:40,color:m()}})}),x.jsx(cr,{to:"/fer-lab1/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:x.jsx(ue,{variant:"h6",noWrap:!0,sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:m(),textDecoration:"none"},children:"ORCHID HAVEN"})}),x.jsxs(be,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[x.jsx(pn,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:h,sx:{color:m()},children:x.jsx(eL,{})}),x.jsxs(ig,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:y,sx:{display:{xs:"block",md:"none"},"& .MuiPaper-root":{backgroundColor:o.card.backgroundColor,color:o.card.color}},disableScrollLock:!0,children:[oS.map(S=>x.jsx(dh,{onClick:y,component:cr,to:S.path,children:x.jsx(ue,{textAlign:"center",children:S.name})},S.name)),!u&&x.jsx(dh,{onClick:g,children:x.jsx(ue,{textAlign:"center",children:"Login"})})]})]}),x.jsx(sg,{sx:{display:{xs:"flex",md:"none"},mr:1,fontSize:32,color:m()}}),x.jsx(ue,{variant:"h5",noWrap:!0,component:cr,to:"/fer-lab1/",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:m(),textDecoration:"none"},children:"ORCHID HAVEN"}),x.jsx(be,{sx:{flexGrow:1,display:{xs:"none",md:"flex"},justifyContent:"center"},children:oS.map(S=>x.jsx(Fo,{component:cr,to:S.path,onClick:y,sx:{my:2,mx:1,color:m(),display:"block",fontFamily:"Poppins, sans-serif",fontWeight:500,position:"relative","&::after":{content:'""',position:"absolute",width:"100%",height:"2px",bottom:0,left:0,backgroundColor:m(),transform:s.pathname===S.path?"scaleX(1)":"scaleX(0)",transition:"transform 0.3s ease-in-out"},"&:hover::after":{transform:"scaleX(1)"}},children:S.name},S.name))}),x.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[x.jsx(SF,{children:u?x.jsx(gn.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:x.jsx(_U,{title:"Open settings",children:x.jsx(pn,{onClick:v,sx:{p:0},children:x.jsx(Hy,{alt:u.displayName,src:u.photoURL,sx:{width:40,height:40,border:`2px solid ${m()}`}})})})}):x.jsx(gn.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3},children:x.jsx(Fo,{variant:"outlined",startIcon:x.jsx(zL,{}),onClick:g,sx:{color:m(),borderColor:m(),"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},display:{xs:"none",md:"flex"}},children:"Login"})})}),x.jsx(ig,{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:C,disableScrollLock:!0,children:LU.map(S=>x.jsxs(dh,{onClick:()=>w(S.name),to:S.path,children:[S.icon,x.jsx(ue,{sx:{ml:1},children:S.name})]},S.name))}),x.jsx(kF,{})]})]})})})}const Da={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"}},uO="$$joy";function Lg(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 xo(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 dO(e){if(!xo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dO(e[n])}),t}function Kr(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return xo(e)&&xo(t)&&Object.keys(t).forEach(o=>{xo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&xo(e[o])?r[o]=Kr(e[o],t[o],n):n.clone?r[o]=xo(t[o])?dO(t[o]):t[o]:r[o]=t[o]}),r}const FU=["values","unit","step"],zU=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)=>z({},n,{[r.key]:r.val}),{})};function fO(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=pt(e,FU),i=zU(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 v=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${b0[e]}px)`};function io(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||iS;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||iS;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||b0).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 HU(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function UU(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Sr(e){if(typeof e!="string")throw new Error(Lg(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hp(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 $d(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=hp(e,n)||r,t&&(o=t(o,r,e)),o}function mt(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=hp(l,r)||{};return io(s,a,d=>{let f=$d(c,o,d);return d===f&&typeof d=="string"&&(f=$d(c,o,`${t}${d==="default"?"":Sr(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function WU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const GU={m:"margin",p:"padding"},KU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qU=WU(e=>{if(e.length>2)if(sS[e])e=sS[e];else return[e];const[t,n]=e.split(""),r=GU[t],o=KU[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),w0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],x0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...w0,...x0];function wc(e,t,n,r){var o;const i=(o=hp(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 pO(e){return wc(e,"spacing",8)}function xc(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 YU(e,t){return n=>e.reduce((r,o)=>(r[o]=xc(t,n),r),{})}function XU(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=qU(n),i=YU(o,r),s=e[n];return io(e,s,i)}function hO(e,t){const n=pO(e.theme);return Object.keys(e).map(r=>XU(e,t,r,n)).reduce(dl,{})}function it(e){return hO(e,w0)}it.propTypes={};it.filterProps=w0;function st(e){return hO(e,x0)}st.propTypes={};st.filterProps=x0;function mO(e=8){if(e.mui)return e;const t=pO({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 mp(...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]?dl(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $n(e){return typeof e!="number"?e:`${e}px solid`}function Un(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const QU=Un("border",$n),JU=Un("borderTop",$n),ZU=Un("borderRight",$n),eW=Un("borderBottom",$n),tW=Un("borderLeft",$n),nW=Un("borderColor"),rW=Un("borderTopColor"),oW=Un("borderRightColor"),iW=Un("borderBottomColor"),sW=Un("borderLeftColor"),aW=Un("outline",$n),lW=Un("outlineColor"),gp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:xc(t,r)});return io(e,e.borderRadius,n)}return null};gp.propTypes={};gp.filterProps=["borderRadius"];mp(QU,JU,ZU,eW,tW,nW,rW,oW,iW,sW,gp,aW,lW);const vp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wc(e.theme,"spacing",8),n=r=>({gap:xc(t,r)});return io(e,e.gap,n)}return null};vp.propTypes={};vp.filterProps=["gap"];const yp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wc(e.theme,"spacing",8),n=r=>({columnGap:xc(t,r)});return io(e,e.columnGap,n)}return null};yp.propTypes={};yp.filterProps=["columnGap"];const bp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wc(e.theme,"spacing",8),n=r=>({rowGap:xc(t,r)});return io(e,e.rowGap,n)}return null};bp.propTypes={};bp.filterProps=["rowGap"];const cW=mt({prop:"gridColumn"}),uW=mt({prop:"gridRow"}),dW=mt({prop:"gridAutoFlow"}),fW=mt({prop:"gridAutoColumns"}),pW=mt({prop:"gridAutoRows"}),hW=mt({prop:"gridTemplateColumns"}),mW=mt({prop:"gridTemplateRows"}),gW=mt({prop:"gridTemplateAreas"}),vW=mt({prop:"gridArea"});mp(vp,yp,bp,cW,uW,dW,fW,pW,hW,mW,gW,vW);function Ps(e,t){return t==="grey"?t:e}const yW=mt({prop:"color",themeKey:"palette",transform:Ps}),bW=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ps}),wW=mt({prop:"backgroundColor",themeKey:"palette",transform:Ps});mp(yW,bW,wW);function dn(e){return e<=1&&e!==0?`${e*100}%`:e}const xW=mt({prop:"width",transform:dn}),S0=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])||b0[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:dn(n)}};return io(e,e.maxWidth,t)}return null};S0.filterProps=["maxWidth"];const SW=mt({prop:"minWidth",transform:dn}),CW=mt({prop:"height",transform:dn}),kW=mt({prop:"maxHeight",transform:dn}),TW=mt({prop:"minHeight",transform:dn});mt({prop:"size",cssProperty:"width",transform:dn});mt({prop:"size",cssProperty:"height",transform:dn});const PW=mt({prop:"boxSizing"});mp(xW,S0,SW,CW,kW,TW,PW);const wp={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gp},color:{themeKey:"palette",transform:Ps},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ps},backgroundColor:{themeKey:"palette",transform:Ps},p:{style:st},pt:{style:st},pr:{style:st},pb:{style:st},pl:{style:st},px:{style:st},py:{style:st},padding:{style:st},paddingTop:{style:st},paddingRight:{style:st},paddingBottom:{style:st},paddingLeft:{style:st},paddingX:{style:st},paddingY:{style:st},paddingInline:{style:st},paddingInlineStart:{style:st},paddingInlineEnd:{style:st},paddingBlock:{style:st},paddingBlockStart:{style:st},paddingBlockEnd:{style:st},m:{style:it},mt:{style:it},mr:{style:it},mb:{style:it},ml:{style:it},mx:{style:it},my:{style:it},margin:{style:it},marginTop:{style:it},marginRight:{style:it},marginBottom:{style:it},marginLeft:{style:it},marginX:{style:it},marginY:{style:it},marginInline:{style:it},marginInlineStart:{style:it},marginInlineEnd:{style:it},marginBlock:{style:it},marginBlockStart:{style:it},marginBlockEnd:{style:it},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:vp},rowGap:{style:bp},columnGap:{style:yp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dn},maxWidth:{style:S0},minWidth:{transform:dn},height:{transform:dn},maxHeight:{transform:dn},minHeight:{transform:dn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function EW(...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 OW(e,t){return typeof e=="function"?e(t):e}function RW(){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=hp(o,c)||{};return d?d(s):io(s,r,v=>{let y=$d(f,u,v);return v===y&&typeof v=="string"&&(y=$d(f,u,`${n}${v==="default"?"":Sr(v)}`,v)),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:wp;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=HU(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(h=>{const v=OW(c[h],i);if(v!=null)if(typeof v=="object")if(s[h])f=dl(f,e(h,v,i,s));else{const y=io({theme:i},v,C=>({[h]:C}));EW(y,v)?f[h]=t({sx:v,theme:i}):f=dl(f,y)}else f=dl(f,e(h,v,i,s))}),UU(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const xp=RW();xp.filterProps=["sx"];function gO(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 IW=["breakpoints","palette","spacing","shape"];function C0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=pt(e,IW),a=fO(n),l=mO(o);let c=Kr({breakpoints:a,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:l,shape:z({},VU,i)},s);return c.applyStyles=gO,c=t.reduce((u,d)=>Kr(u,d),c),c.unstable_sxConfig=z({},wp,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return xp({sx:d,theme:this})},c}function _W(e){return Object.keys(e).length===0}function $W(e=null){const t=k.useContext(_f);return!t||_W(t)?e:t}const AW=C0();function vO(e=AW){return $W(e)}const MW=["sx"],DW=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:wp;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function LW(e){const{sx:t}=e,n=pt(e,MW),{systemProps:r,otherProps:o}=DW(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return xo(a)?z({},r,a):r}:i=z({},r,t),z({},o,{sx:i})}const aS=e=>e,jW=()=>{let e=aS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=aS}}},NW=jW(),BW={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 k0(e,t,n="Mui"){const r=BW[t];return r?`${n}-${r}`:`${NW.generate(e)}-${t}`}function FW(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=k0(e,o,n)}),r}const zW=["ownerState"],VW=["variants"],HW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function UW(e){return Object.keys(e).length===0}function WW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GW=C0(),KW=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ru({defaultTheme:e,theme:t,themeId:n}){return UW(t)?e:t[n]||t}function qW(e){return e?(t,n)=>n[e]:null}function Ru(e,t){let{ownerState:n}=t,r=pt(t,zW);const o=typeof e=="function"?e(z({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ru(i,z({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=pt(o,VW);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(z({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(z({ownerState:n},r,n)):l.style))}),a}return o}function yO(e={}){const{themeId:t,defaultTheme:n=GW,rootShouldForwardProp:r=Nh,slotShouldForwardProp:o=Nh}=e,i=s=>xp(z({},s,{theme:ru(z({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{BU(s,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=qW(KW(c))}=a,h=pt(a,HW),v=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=d||!1;let C,m=Nh;c==="Root"||c==="root"?m=r:c?m=o:WW(s)&&(m=void 0);const g=NU(s,z({shouldForwardProp:m,label:C},h)),p=S=>typeof S=="function"&&S.__emotion_real!==S||xo(S)?T=>Ru(S,z({},T,{theme:ru({theme:T.theme,defaultTheme:n,themeId:t})})):S,w=(S,...T)=>{let P=p(S);const E=T?T.map(p):[];l&&f&&E.push(O=>{const _=ru(z({},O,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[l]||!_.components[l].styleOverrides)return null;const I=_.components[l].styleOverrides,$={};return Object.entries(I).forEach(([D,M])=>{$[D]=Ru(M,z({},O,{theme:_}))}),f(O,$)}),l&&!v&&E.push(O=>{var _;const I=ru(z({},O,{defaultTheme:n,themeId:t})),$=I==null||(_=I.components)==null||(_=_[l])==null?void 0:_.variants;return Ru({variants:$},z({},O,{theme:I}))}),y||E.push(i);const R=E.length-T.length;if(Array.isArray(S)&&R>0){const O=new Array(R).fill("");P=[...S,...O],P.raw=[...S.raw,...O]}const b=g(P,...E);return s.muiName&&(b.muiName=s.muiName),b};return g.withConfig&&(w.withConfig=g.withConfig),w}}const YW=yO();function bO(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},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]=z({},i),Object.keys(o).forEach(s=>{n[r][s]=bO(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function XW(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bO(t.components[n].defaultProps,r)}function wO({props:e,name:t,defaultTheme:n,themeId:r}){let o=vO(n);return r&&(o=o[r]||o),XW({theme:o,name:t,props:e})}function QW(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 xO(e){if(e.type)return e;if(e.charAt(0)==="#")return xO(QW(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Lg(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(Lg(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ei=e=>{const t=xO(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function SO(e,t){var n,r;return k.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 JW(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ZW(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{JW(n,t)})},e)}function eG(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 T0(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 lS=(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])})},tG=(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)},nG=(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 Bh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return tG(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]:nG(a,l)}),lS(i,a,`var(${u})`,c),lS(s,a,`var(${u}, ${l})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}function rG(e,t){if(ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oG(e){var t=rG(e,"string");return ql(t)=="symbol"?t:t+""}const iG=["colorSchemes","components","defaultColorScheme"];function sG(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=pt(e,iG),{vars:i,css:s,varsWithDefaults:a}=Bh(o,t);let l=a;const c={},{[r]:u}=n,d=pt(n,[r].map(oG));if(Object.entries(d||{}).forEach(([h,v])=>{const{vars:y,css:C,varsWithDefaults:m}=Bh(v,t);l=Kr(l,m),c[h]={css:C,vars:y}}),u){const{css:h,vars:v,varsWithDefaults:y}=Bh(u,t);l=Kr(l,y),c[r]={css:h,vars:v}}return{vars:l,generateCssVars:h=>{var v;if(!h){var y;const m=z({},s);return{css:m,vars:i,selector:(t==null||(y=t.getSelector)==null?void 0:y.call(t,h,m))||":root"}}const C=z({},c[h].css);return{css:C,vars:c[h].vars,selector:(t==null||(v=t.getSelector)==null?void 0:v.call(t,h,C))||":root"}}}}const aG=(e,t)=>e.filter(n=>t.includes(n)),fa=(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:aG(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 so(e){return e?`Level${e}`:""}function Sc(e){return e.unstable_level>0&&e.container}function CO(e){return function(n){return`var(--Grid-${n}Spacing${so(e.unstable_level)})`}}function P0(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${so(e.unstable_level-1)})`}}function E0(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${so(e.unstable_level-1)})`}const lG=({theme:e,ownerState:t})=>{const n=CO(t),r={};return fa(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} / ${E0(t)}${Sc(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},cG=({theme:e,ownerState:t})=>{const n={};return fa(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${E0(t)})`}),r(n,i)}),n},uG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Sc(t)?{[`--Grid-columns${so(t.unstable_level)}`]:E0(t)}:{"--Grid-columns":12};return fa(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${so(t.unstable_level)}`]:o})}),n},dG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=P0(t),r=Sc(t)?{[`--Grid-rowSpacing${so(t.unstable_level)}`]:n("row")}:{};return fa(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${so(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},fG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=P0(t),r=Sc(t)?{[`--Grid-columnSpacing${so(t.unstable_level)}`]:n("column")}:{};return fa(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${so(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},pG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return fa(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},hG=({ownerState:e})=>{const t=CO(e),n=P0(e);return z({minWidth:0,boxSizing:"border-box"},e.container&&z({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||Sc(e))&&z({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},mG=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},gG=(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[]},vG=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],yG=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],bG=C0(),wG=YW("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function xG(e){return wO({props:e,name:"MuiGrid",defaultTheme:bG})}function SG(e={}){const{createStyledComponent:t=wG,useThemeProps:n=xG,componentName:r="MuiGrid"}=e,o=k.createContext(void 0),i=(l,c)=>{const{container:u,direction:d,spacing:f,wrap:h,gridSize:v}=l,y={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...vG(d),...mG(v),...u?gG(f,c.breakpoints.keys[0]):[]]};return eG(y,C=>k0(r,C),{})},s=t(uG,fG,dG,lG,pG,hG,cG),a=k.forwardRef(function(c,u){var d,f,h,v,y,C,m,g;const p=vO(),w=n(c),S=LW(w),T=k.useContext(o),{className:P,children:E,columns:R=12,container:b=!1,component:O="div",direction:_="row",wrap:I="wrap",spacing:$=0,rowSpacing:D=$,columnSpacing:M=$,disableEqualOverflow:N,unstable_level:A=0}=S,L=pt(S,yG);let F=N;A&&N!==void 0&&(F=c.disableEqualOverflow);const Q={},Y={},te={};Object.entries(L).forEach(([H,q])=>{p.breakpoints.values[H]!==void 0?Q[H]=q:p.breakpoints.values[H.replace("Offset","")]!==void 0?Y[H.replace("Offset","")]=q:te[H]=q});const Z=(d=c.columns)!=null?d:A?void 0:R,oe=(f=c.spacing)!=null?f:A?void 0:$,fe=(h=(v=c.rowSpacing)!=null?v:c.spacing)!=null?h:A?void 0:D,ie=(y=(C=c.columnSpacing)!=null?C:c.spacing)!=null?y:A?void 0:M,V=z({},S,{level:A,columns:Z,container:b,direction:_,wrap:I,spacing:oe,rowSpacing:fe,columnSpacing:ie,gridSize:Q,gridOffset:Y,disableEqualOverflow:(m=(g=F)!=null?g:T)!=null?m:!1,parentDisableEqualOverflow:T}),ee=i(V,p);let K=x.jsx(s,z({ref:u,as:O,ownerState:V,className:X(ee.root,P)},te,{children:k.Children.map(E,H=>{if(k.isValidElement(H)&&SO(H,["Grid"])){var q;return k.cloneElement(H,{unstable_level:(q=H.props.unstable_level)!=null?q:A+1})}return H})}));return F!==void 0&&F!==(T??!1)&&(K=x.jsx(o.Provider,{value:F,children:K})),K});return a.muiName="Grid",a}const CG=z({},wp,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function kG(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 pa=(e,t)=>k0(e,t,"Mui"),Ni=(e,t)=>FW(e,t,"Mui"),TG=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))$/)}),cS=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},uS=(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")),cS(r,o,s)}}),r},$t=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach(i=>{const[s,a]=i;TG(a)&&typeof a=="object"&&(n=z({},n,{[s]:uS(e,a,l=>`var(--variant-${l}, ${r(`palette-${s}-${l}`,o[s][l])})`)}))})}return n.context=uS(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},PG=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],EG=["colorSchemes"],OG=(e="joy")=>T0(e);function RG(e){var t,n,r,o,i,s,a,l,c,u;const d={},{cssVarPrefix:f="joy",breakpoints:h,spacing:v,components:y,variants:C,shouldSkipGeneratingVar:m=kG}=d,g=pt(d,PG),p=OG(f),w={primary:Da.blue,neutral:Da.grey,danger:Da.red,success:Da.green,warning:Da.yellow,common:{white:"#FFF",black:"#000"}},S=V=>{var ee;const K=V.split("-"),H=K[1],q=K[2];return p(V,(ee=w[H])==null?void 0:ee[q])},T=V=>({plainColor:S(`palette-${V}-500`),plainHoverBg:S(`palette-${V}-100`),plainActiveBg:S(`palette-${V}-200`),plainDisabledColor:S("palette-neutral-400"),outlinedColor:S(`palette-${V}-500`),outlinedBorder:S(`palette-${V}-300`),outlinedHoverBg:S(`palette-${V}-100`),outlinedActiveBg:S(`palette-${V}-200`),outlinedDisabledColor:S("palette-neutral-400"),outlinedDisabledBorder:S("palette-neutral-200"),softColor:S(`palette-${V}-700`),softBg:S(`palette-${V}-100`),softHoverBg:S(`palette-${V}-200`),softActiveColor:S(`palette-${V}-800`),softActiveBg:S(`palette-${V}-300`),softDisabledColor:S("palette-neutral-400"),softDisabledBg:S("palette-neutral-50"),solidColor:S("palette-common-white"),solidBg:S(`palette-${V}-500`),solidHoverBg:S(`palette-${V}-600`),solidActiveBg:S(`palette-${V}-700`),solidDisabledColor:S("palette-neutral-400"),solidDisabledBg:S("palette-neutral-100")}),P=V=>({plainColor:S(`palette-${V}-300`),plainHoverBg:S(`palette-${V}-800`),plainActiveBg:S(`palette-${V}-700`),plainDisabledColor:S("palette-neutral-500"),outlinedColor:S(`palette-${V}-200`),outlinedBorder:S(`palette-${V}-700`),outlinedHoverBg:S(`palette-${V}-800`),outlinedActiveBg:S(`palette-${V}-700`),outlinedDisabledColor:S("palette-neutral-500"),outlinedDisabledBorder:S("palette-neutral-800"),softColor:S(`palette-${V}-200`),softBg:S(`palette-${V}-800`),softHoverBg:S(`palette-${V}-700`),softActiveColor:S(`palette-${V}-100`),softActiveBg:S(`palette-${V}-600`),softDisabledColor:S("palette-neutral-500"),softDisabledBg:S("palette-neutral-800"),solidColor:S("palette-common-white"),solidBg:S(`palette-${V}-500`),solidHoverBg:S(`palette-${V}-600`),solidActiveBg:S(`palette-${V}-700`),solidDisabledColor:S("palette-neutral-500"),solidDisabledBg:S("palette-neutral-800")}),E={palette:{mode:"light",primary:z({},w.primary,T("primary")),neutral:z({},w.neutral,T("neutral"),{plainColor:S("palette-neutral-700"),plainHoverColor:S("palette-neutral-900"),outlinedColor:S("palette-neutral-700")}),danger:z({},w.danger,T("danger")),success:z({},w.success,T("success")),warning:z({},w.warning,T("warning")),common:{white:"#FFF",black:"#000"},text:{primary:S("palette-neutral-800"),secondary:S("palette-neutral-700"),tertiary:S("palette-neutral-600"),icon:S("palette-neutral-500")},background:{body:S("palette-common-white"),surface:S("palette-neutral-50"),popup:S("palette-common-white"),level1:S("palette-neutral-100"),level2:S("palette-neutral-200"),level3:S("palette-neutral-300"),tooltip:S("palette-neutral-500"),backdrop:`rgba(${p("palette-neutral-darkChannel",ei(w.neutral[900]))} / 0.25)`},divider:`rgba(${p("palette-neutral-mainChannel",ei(w.neutral[500]))} / 0.2)`,focusVisible:S("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},R={palette:{mode:"dark",primary:z({},w.primary,P("primary")),neutral:z({},w.neutral,P("neutral"),{plainColor:S("palette-neutral-300"),plainHoverColor:S("palette-neutral-300")}),danger:z({},w.danger,P("danger")),success:z({},w.success,P("success")),warning:z({},w.warning,P("warning")),common:{white:"#FFF",black:"#000"},text:{primary:S("palette-neutral-100"),secondary:S("palette-neutral-300"),tertiary:S("palette-neutral-400"),icon:S("palette-neutral-400")},background:{body:S("palette-common-black"),surface:S("palette-neutral-900"),popup:S("palette-common-black"),level1:S("palette-neutral-800"),level2:S("palette-neutral-700"),level3:S("palette-neutral-600"),tooltip:S("palette-neutral-600"),backdrop:`rgba(${p("palette-neutral-darkChannel",ei(w.neutral[50]))} / 0.25)`},divider:`rgba(${p("palette-neutral-mainChannel",ei(w.neutral[500]))} / 0.16)`,focusVisible:S("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},b='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',O=z({body:`"Inter", ${p(`fontFamily-fallback, ${b}`)}`,display:`"Inter", ${p(`fontFamily-fallback, ${b}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:b},g.fontFamily),_=z({sm:300,md:500,lg:600,xl:700},g.fontWeight),I=z({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},g.fontSize),$=z({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},g.lineHeight),D=(t=(n=g.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:E.shadowRing,M=(r=(o=g.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowChannel)!=null?r:E.shadowChannel,N=(i=(s=g.colorSchemes)==null||(s=s.light)==null?void 0:s.shadowOpacity)!=null?i:E.shadowOpacity,A={colorSchemes:{light:E,dark:R},fontSize:I,fontFamily:O,fontWeight:_,focus:{thickness:"2px",selector:`&.${pa("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${p("focus-thickness",(a=(l=g.focus)==null?void 0:l.thickness)!=null?a:"2px")})`,outline:`${p("focus-thickness",(c=(u=g.focus)==null?void 0:u.thickness)!=null?c:"2px")} solid ${p("palette-focusVisible",w.primary[500])}`}},lineHeight:$,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${p("shadowRing",D)}, 0px 1px 2px 0px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)})`,sm:`${p("shadowRing",D)}, 0px 1px 2px 0px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)}), 0px 2px 4px 0px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)})`,md:`${p("shadowRing",D)}, 0px 2px 8px -2px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)}), 0px 6px 12px -2px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)})`,lg:`${p("shadowRing",D)}, 0px 2px 8px -2px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)}), 0px 12px 16px -4px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)})`,xl:`${p("shadowRing",D)}, 0px 2px 8px -2px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)}), 0px 20px 24px -4px rgba(${p("shadowChannel",M)} / ${p("shadowOpacity",N)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:p(`fontFamily-display, ${O.display}`),fontWeight:p(`fontWeight-xl, ${_.xl}`),fontSize:p(`fontSize-xl4, ${I.xl4}`),lineHeight:p(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${E.palette.text.primary}`)},h2:{fontFamily:p(`fontFamily-display, ${O.display}`),fontWeight:p(`fontWeight-xl, ${_.xl}`),fontSize:p(`fontSize-xl3, ${I.xl3}`),lineHeight:p(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${E.palette.text.primary}`)},h3:{fontFamily:p(`fontFamily-display, ${O.display}`),fontWeight:p(`fontWeight-lg, ${_.lg}`),fontSize:p(`fontSize-xl2, ${I.xl2}`),lineHeight:p(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${E.palette.text.primary}`)},h4:{fontFamily:p(`fontFamily-display, ${O.display}`),fontWeight:p(`fontWeight-lg, ${_.lg}`),fontSize:p(`fontSize-xl, ${I.xl}`),lineHeight:p(`lineHeight-md, ${$.md}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${E.palette.text.primary}`)},"title-lg":{fontFamily:p(`fontFamily-body, ${O.body}`),fontWeight:p(`fontWeight-lg, ${_.lg}`),fontSize:p(`fontSize-lg, ${I.lg}`),lineHeight:p(`lineHeight-xs, ${$.xs}`),color:p(`palette-text-primary, ${E.palette.text.primary}`)},"title-md":{fontFamily:p(`fontFamily-body, ${O.body}`),fontWeight:p(`fontWeight-md, ${_.md}`),fontSize:p(`fontSize-md, ${I.md}`),lineHeight:p(`lineHeight-md, ${$.md}`),color:p(`palette-text-primary, ${E.palette.text.primary}`)},"title-sm":{fontFamily:p(`fontFamily-body, ${O.body}`),fontWeight:p(`fontWeight-md, ${_.md}`),fontSize:p(`fontSize-sm, ${I.sm}`),lineHeight:p(`lineHeight-sm, ${$.sm}`),color:p(`palette-text-primary, ${E.palette.text.primary}`)},"body-lg":{fontFamily:p(`fontFamily-body, ${O.body}`),fontSize:p(`fontSize-lg, ${I.lg}`),lineHeight:p(`lineHeight-md, ${$.md}`),color:p(`palette-text-secondary, ${E.palette.text.secondary}`)},"body-md":{fontFamily:p(`fontFamily-body, ${O.body}`),fontSize:p(`fontSize-md, ${I.md}`),lineHeight:p(`lineHeight-md, ${$.md}`),color:p(`palette-text-secondary, ${E.palette.text.secondary}`)},"body-sm":{fontFamily:p(`fontFamily-body, ${O.body}`),fontSize:p(`fontSize-sm, ${I.sm}`),lineHeight:p(`lineHeight-md, ${$.md}`),color:p(`palette-text-tertiary, ${E.palette.text.tertiary}`)},"body-xs":{fontFamily:p(`fontFamily-body, ${O.body}`),fontWeight:p(`fontWeight-md, ${_.md}`),fontSize:p(`fontSize-xs, ${I.xs}`),lineHeight:p(`lineHeight-md, ${$.md}`),color:p(`palette-text-tertiary, ${E.palette.text.tertiary}`)}}},L=g?Kr(A,g):A,{colorSchemes:F}=L,Q=pt(L,EG),Y=z({colorSchemes:F},Q,{breakpoints:fO(h??{}),components:Kr({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:V,theme:ee})=>{var K;const H=V.instanceFontSize;return z({margin:"var(--Icon-margin)"},V.fontSize&&V.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${ee.vars.fontSize[V.fontSize]})`},!V.htmlColor&&z({color:`var(--Icon-color, ${Y.vars.palette.text.icon})`},V.color&&V.color!=="inherit"&&ee.vars.palette[V.color]&&{color:`rgba(${(K=ee.vars.palette[V.color])==null?void 0:K.mainChannel} / 1)`}),H&&H!=="inherit"&&{"--Icon-fontSize":ee.vars.fontSize[H]})}}}},y),cssVarPrefix:f,getCssVar:p,spacing:mO(v)});function te(V,ee){Object.keys(ee).forEach(K=>{const H={main:"500",light:"200",dark:"700"};V==="dark"&&(H.main=400),!ee[K].mainChannel&&ee[K][H.main]&&(ee[K].mainChannel=ei(ee[K][H.main])),!ee[K].lightChannel&&ee[K][H.light]&&(ee[K].lightChannel=ei(ee[K][H.light])),!ee[K].darkChannel&&ee[K][H.dark]&&(ee[K].darkChannel=ei(ee[K][H.dark]))})}Object.entries(Y.colorSchemes).forEach(([V,ee])=>{te(V,ee.palette)});const Z={prefix:f,shouldSkipGeneratingVar:m},{vars:oe,generateCssVars:fe}=sG(z({colorSchemes:F},Q),Z);Y.vars=oe,Y.generateCssVars=fe,Y.unstable_sxConfig=z({},CG,void 0),Y.unstable_sx=function(ee){return xp({sx:ee,theme:this})},Y.getColorSchemeSelector=V=>V==="light"?"&":`&[data-joy-color-scheme="${V}"], [data-joy-color-scheme="${V}"] &`;const ie={getCssVar:p,palette:Y.colorSchemes.light.palette};return Y.variants=Kr({plain:$t("plain",ie),plainHover:$t("plainHover",ie),plainActive:$t("plainActive",ie),plainDisabled:$t("plainDisabled",ie),outlined:$t("outlined",ie),outlinedHover:$t("outlinedHover",ie),outlinedActive:$t("outlinedActive",ie),outlinedDisabled:$t("outlinedDisabled",ie),soft:$t("soft",ie),softHover:$t("softHover",ie),softActive:$t("softActive",ie),softDisabled:$t("softDisabled",ie),solid:$t("solid",ie),solidHover:$t("solidHover",ie),solidActive:$t("solidActive",ie),solidDisabled:$t("solidDisabled",ie)},C),Y.palette=z({},Y.colorSchemes.light.palette,{colorScheme:"light"}),Y.shouldSkipGeneratingVar=m,Y.applyStyles=gO,Y}const kO=RG(),lo=yO({defaultTheme:kO,themeId:uO});function ha({props:e,name:t}){return wO({props:e,name:t,defaultTheme:z({},kO,{components:{}}),themeId:uO})}function IG(e){return typeof e=="string"}function _G(e,t,n){return e===void 0||IG(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}function $G(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 AG(e,t,n){return typeof e=="function"?e(t,n):e}function Cc(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 dS(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 MG(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=X(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=z({},n,o,r);return h.length>0&&(y.className=h),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=$G(z({},o,r)),a=dS(r),l=dS(o),c=t(s),u=X(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=z({},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=z({},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 DG=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],LG=["component","slots","slotProps"],jG=["component"];function Xs(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=pt(t,DG),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=pt(i,LG),h=u[e]||r,v=AG(d[e],o),y=MG(z({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:v})),{props:{component:C},internalRef:m}=y,g=pt(y.props,jG),p=ZW(m,v==null?void 0:v.ref,t.ref),w=s?s(g):{},S=z({},o,w),T=e==="root"?C||c:C,P=_G(h,z({},e==="root"&&!c&&!u[e]&&a,e!=="root"&&!u[e]&&a,g,T&&{as:T},{ref:p}),S);return Object.keys(w).forEach(E=>{delete P[E]}),[h,P]}const NG=({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=z({},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},O0=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Ad="data-skip-inverted-colors",TO=`& :not([${Ad}], [${Ad}] *)`,PO=e=>{var t,n,r,o,i,s,a,l,c,u,d,f,h,v,y,C,m,g,p,w,S,T;const P=O0(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")]:{[P("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[P("--palette-background-body")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.body} !important`,[P("--palette-background-surface")]:`${(r=e.colorSchemes.light)==null?void 0:r.palette.background.surface} !important`,[P("--palette-background-popup")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.popup} !important`,[P("--palette-background-level1")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.level1} !important`,[P("--palette-background-level2")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level2} !important`,[P("--palette-background-level3")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.level3} !important`,[P("--palette-text-primary")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[P("--palette-text-secondary")]:`${(c=e.colorSchemes.light)==null?void 0:c.palette.text.secondary} !important`,[P("--palette-text-tertiary")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.text.tertiary} !important`,[P("--palette-divider")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[P("--palette-focusVisible")]:`${(f=e.colorSchemes.dark)==null?void 0:f.palette.focusVisible} !important`,[P("--palette-background-body")]:`${(h=e.colorSchemes.dark)==null?void 0:h.palette.background.body} !important`,[P("--palette-background-surface")]:`${(v=e.colorSchemes.dark)==null?void 0:v.palette.background.surface} !important`,[P("--palette-background-popup")]:`${(y=e.colorSchemes.dark)==null?void 0:y.palette.background.popup} !important`,[P("--palette-background-level1")]:`${(C=e.colorSchemes.dark)==null?void 0:C.palette.background.level1} !important`,[P("--palette-background-level2")]:`${(m=e.colorSchemes.dark)==null?void 0:m.palette.background.level2} !important`,[P("--palette-background-level3")]:`${(g=e.colorSchemes.dark)==null?void 0:g.palette.background.level3} !important`,[P("--palette-text-primary")]:`${(p=e.colorSchemes.dark)==null?void 0:p.palette.text.primary} !important`,[P("--palette-text-secondary")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.text.secondary} !important`,[P("--palette-text-tertiary")]:`${(S=e.colorSchemes.dark)==null?void 0:S.palette.text.tertiary} !important`,[P("--palette-divider")]:`${(T=e.colorSchemes.dark)==null?void 0:T.palette.divider} !important`}}};function BG(e){return e.theme!==void 0}const FG=e=>t=>{const n=BG(t)?t.theme:t,r=T0(n.cssVarPrefix),o=O0(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[TO]:{"--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)`}},[`&, & [${Ad}]`]:PO(n)}},zG=e=>t=>{const{theme:n=t}=t,r=T0(n.cssVarPrefix),o=O0(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[TO]:{"--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)`}},[`&, & [${Ad}]`]:PO(n)}};function VG(e){return pa("MuiAspectRatio",e)}Ni("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const HG=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","flex","slots","slotProps"],UG=e=>{const{variant:t,color:n}=e,r={root:["root"],content:["content",t&&`variant${Sr(t)}`,n&&`color${Sr(n)}`]};return Cc(r,VG,{})},WG=lo("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)"}}),GG=lo("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return z({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])}),Md=k.forwardRef(function(t,n){const r=ha({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:v={}}=r,y=pt(r,HG),C=z({},r,{flex:f,minHeight:s,maxHeight:a,objectFit:l,ratio:i,color:c,variant:u}),m=UG(C),g=z({},y,{component:d,slots:h,slotProps:v}),[p,w]=Xs("root",{ref:n,className:m.root,elementType:WG,externalForwardedProps:g,ownerState:C}),[S,T]=Xs("content",{className:m.content,elementType:GG,externalForwardedProps:g,ownerState:C});return x.jsx(p,z({},w,{children:x.jsx(S,z({},T,{children:k.Children.map(o,(P,E)=>E===0&&k.isValidElement(P)?k.cloneElement(P,{"data-first-child":""}):P)}))}))}),fS=Ni("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);function KG(e){return pa("MuiCard",e)}const Ki=Ni("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),qG=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],YG=e=>{const{size:t,variant:n,color:r,orientation:o}=e,i={root:["root",o,n&&`variant${Sr(n)}`,r&&`color${Sr(r)}`,t&&`size${Sr(t)}`]};return Cc(i,KG,{})},XG=lo("div")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:i}=NG({theme:e,ownerState:t},["p","padding","borderRadius"]);return[z({"--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&&FG(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&zG(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}]}),QG=lo(XG,{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EO=k.forwardRef(function(t,n){const r=ha({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,v=pt(r,qG),y=z({},r,{color:i,component:s,orientation:d,size:l,variant:c,invertedColors:a}),C=YG(y),m=z({},v,{component:s,slots:f,slotProps:h}),[g,p]=Xs("root",{ref:n,className:X(C.root,o),elementType:QG,externalForwardedProps:m,ownerState:y});return x.jsx(g,z({},p,{children:k.Children.map(u,(w,S)=>{if(!k.isValidElement(w))return w;const T={};if(SO(w,["Divider"])){T.inset="inset"in w.props?w.props.inset:"context";const P=d==="vertical"?"horizontal":"vertical";T.orientation="orientation"in w.props?w.props.orientation:P}return S===0&&(T["data-first-child"]=""),S===k.Children.count(u)-1&&(T["data-last-child"]=""),k.cloneElement(w,T)})}))});function JG(e){return pa("MuiCardOverflow",e)}const ZG=Ni("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function eK(e){return pa("MuiDivider",e)}Ni("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);function tK(e){return pa("MuiCardContent",e)}Ni("MuiCardContent",["root"]);const nK=["className","component","children","orientation","slots","slotProps"],rK=()=>Cc({root:["root"]},tK,{}),oK=lo("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)",[`.${ZG.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),iK=lo(oK,{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pS=k.forwardRef(function(t,n){const r=ha({props:t,name:"JoyCardContent"}),{className:o,component:i="div",children:s,orientation:a="vertical",slots:l={},slotProps:c={}}=r,u=pt(r,nK),d=z({},u,{component:i,slots:l,slotProps:c}),f=z({},r,{component:i,orientation:a}),h=rK(),[v,y]=Xs("root",{ref:n,className:X(h.root,o),elementType:iK,externalForwardedProps:d,ownerState:f});return x.jsx(v,z({},y,{children:s}))}),sK=Ni("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]),aK=["className","component","children","color","variant","slots","slotProps"],lK=e=>{const{variant:t,color:n}=e,r={root:["root",t&&`variant${Sr(t)}`,n&&`color${Sr(n)}`]};return Cc(r,JG,{})},cK=lo("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 z({alignSelf:"stretch",position:"relative",display:"flex",flexDirection:"var(--_CardOverflow-flexDirection)",margin:"var(--_CardOverflow-margin)",borderRadius:"var(--_CardOverflow-radius)",padding:"var(--_CardOverflow-padding)",[`.${Ki.vertical} &, .${Ki.horizontal} .${Ki.vertical} &, .${sK.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)"},[`& > .${fS.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)"}},[`.${Ki.horizontal} &, .${Ki.vertical} .${Ki.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)"},[`& > .${fS.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])}),Iu=k.forwardRef(function(t,n){const r=ha({props:t,name:"JoyCardOverflow"}),{className:o,component:i="div",children:s,color:a="neutral",variant:l="plain",slots:c={},slotProps:u={}}=r,d=pt(r,aK),f=z({},r,{component:i,color:a,variant:l}),h=lK(f),v=z({},d,{component:i,slots:c,slotProps:u}),[y,C]=Xs("root",{ref:n,className:X(h.root,o),elementType:cK,externalForwardedProps:v,ownerState:f});return x.jsx(y,z({},C,{children:s}))});Iu.muiName="CardOverflow";const uK=["className","children","component","inset","orientation","role","slots","slotProps"],dK=e=>{const{orientation:t,inset:n}=e,r={root:["root",t,n&&`inset${Sr(n)}`]};return Cc(r,eK,{})},fK=lo("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>z({"--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?z({"--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)"})),OO=k.forwardRef(function(t,n){const r=ha({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=pt(r,uK),h=z({},r,{inset:a,role:c,orientation:l,component:s}),v=dK(h),y=z({},f,{component:s,slots:u,slotProps:d}),[C,m]=Xs("root",{ref:n,className:X(v.root,o),elementType:fK,externalForwardedProps:y,ownerState:h,additionalProps:z({as:s,role:c},c==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return x.jsx(C,z({},m,{children:i}))});OO.muiName="Divider";const Ze=SG({createStyledComponent:lo("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ha({props:e,name:"JoyGrid"})});function pK(){const{theme:e}=k.useContext(tr),t={color:e.text.secondary,textDecoration:"none",display:"block",padding:"8px 0",transition:"color 0.3s ease","&:hover":{color:e.text.primary}};return x.jsx(be,{component:"footer",sx:{py:6,px:2,backgroundColor:e.footer.backgroundColor,color:e.text.secondary,borderTop:`1px solid ${e.divider}`},children:x.jsxs(Bs,{maxWidth:"lg",children:[x.jsxs(Ze,{container:!0,spacing:4,justifyContent:"space-between",children:[x.jsxs(Ze,{item:!0,xs:12,sm:4,children:[x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(sg,{sx:{fontSize:40,mr:1,color:e.icon.color}}),x.jsx(ue,{variant:"h5",color:e.text.primary,sx:{fontWeight:"bold"},children:"Orchid Haven"})]}),x.jsx(ue,{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."})]}),x.jsxs(Ze,{item:!0,xs:12,sm:4,children:[x.jsx(ue,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Quick Links"}),x.jsxs(be,{sx:{display:"flex",flexDirection:"column"},children:[x.jsx(cr,{to:"/fer-lab1/",style:t,children:"Home"}),x.jsx(cr,{to:"/fer-lab1/natural",style:t,children:"Special Orchid"}),x.jsx(cr,{to:"/fer-lab1/news",style:t,children:"Orchid News"}),x.jsx(cr,{to:"/fer-lab1/contact",style:t,children:"Contact Us"})]})]}),x.jsxs(Ze,{item:!0,xs:12,sm:4,children:[x.jsx(ue,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Stay Connected"}),x.jsx(ue,{variant:"body2",color:e.text.secondary,gutterBottom:!0,children:"Follow us on social media for daily orchid inspiration and tips."}),x.jsxs(be,{children:[x.jsx(pn,{color:"inherit","aria-label":"Facebook",href:"https://www.facebook.com/hoangnguyen.c1002/",children:x.jsx(Jk,{})}),x.jsx(pn,{color:"inherit","aria-label":"Twitter",href:"https://www.linkedin.com/in/hoang-nguyen-c1002/",children:x.jsx(FL,{})}),x.jsx(pn,{color:"inherit","aria-label":"Instagram",href:"https://www.instagram.com/__hoang.nguyeen__/",children:x.jsx(eT,{})}),x.jsx(pn,{color:"inherit","aria-label":"Github",href:"https://github.com/Hoang-Nguyen-Huy",children:x.jsx(Zk,{})})]})]})]}),x.jsx(Fs,{sx:{my:4,backgroundColor:e.divider}}),x.jsxs(be,{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center",children:[x.jsxs(ue,{variant:"body2",color:e.text.secondary,children:["© ",new Date().getFullYear()," Orchid Haven. All rights reserved."]}),x.jsxs(be,{children:[x.jsx(cr,{to:"#",style:{...t,display:"inline",marginRight:"16px"},children:"Privacy Policy"}),x.jsx(cr,{to:"#",style:{...t,display:"inline"},children:"Terms of Service"})]})]})]})})}const Sp=[{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."}];function hK({orchid:e}){const[t,n]=k.useState(!1),[r,o]=k.useState(null);return{isVisible:t,detail:r,showModal:a=>{o(a),n(!0)},hideModal:()=>n(!1)}}const mK=gn(EO);function R0({orchid:e}){const{isVisible:t,showModal:n,hideModal:r}=hK({orchid:e}),o=Wv(),{theme:i}=k.useContext(tr),s=()=>{o(`/fer-lab1/${e.Id}`)};return x.jsxs(x.Fragment,{children:[x.jsxs(mK,{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:[x.jsx(Iu,{children:x.jsx(Md,{variant:"outlined",ratio:"2",onClick:()=>n(e),children:x.jsx(gn.img,{src:e.image+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name,whileHover:{scale:1.1},transition:{duration:.3}})})}),x.jsxs(pS,{children:[x.jsx(ue,{level:"title-md",sx:{color:i.text.primary,fontWeight:"bold",mb:.5},children:e.name}),x.jsxs(be,{children:[x.jsxs(ue,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[x.jsx(fy,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.origin]}),x.jsxs(ue,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[x.jsx(Qk,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.category]})]})]}),x.jsxs(Iu,{variant:"soft",sx:{bgcolor:i.action.hover},children:[x.jsx(OO,{inset:"context",sx:{bgcolor:i.divider}}),x.jsxs(pS,{orientation:"horizontal",sx:{justifyContent:"space-between"},children:[x.jsx(lO,{name:"read-only",value:e.rating,readOnly:!0}),x.jsx(gn.div,{whileHover:{scale:1.1},whileTap:{scale:.95},children:x.jsx(Fo,{variant:"outlined",onClick:s,sx:{color:i.button.primary,borderColor:i.button.primary,"&:hover":{backgroundColor:i.button.hover,borderColor:i.button.hover}},children:"Detail"})})]})]})]}),x.jsx(uy,{open:t,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:x.jsxs(be,{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:[x.jsx(EO,{children:x.jsx(Iu,{children:x.jsx(Md,{ratio:"2",children:x.jsx("img",{src:e.image+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name})})})}),x.jsx(ue,{id:"modal-modal-description",sx:{mt:2,color:i.text.primary},children:e.detail})]})})]})}function gK(){const{theme:e}=k.useContext(tr);return x.jsx(be,{sx:{width:"100%"},children:x.jsx(Ze,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:Sp.map(t=>x.jsx(Ze,{item:!0,xs:12,sm:6,md:4,children:x.jsx(R0,{orchid:t},t.Id)},t.Id))})})}var RO={},IO={},Cp={},_O={};(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})(_O);var vK="Expected a function",hS=NaN,yK="[object Symbol]",bK=/^\s+|\s+$/g,wK=/^[-+]0x[0-9a-f]+$/i,xK=/^0b[01]+$/i,SK=/^0o[0-7]+$/i,CK=parseInt,kK=typeof Tc=="object"&&Tc&&Tc.Object===Object&&Tc,TK=typeof self=="object"&&self&&self.Object===Object&&self,PK=kK||TK||Function("return this")(),EK=Object.prototype,OK=EK.toString,RK=Math.max,IK=Math.min,Fh=function(){return PK.Date.now()};function _K(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(vK);t=mS(t)||0,jg(n)&&(u=!!n.leading,d="maxWait"in n,i=d?RK(mS(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(T){var P=r,E=o;return r=o=void 0,c=T,s=e.apply(E,P),s}function v(T){return c=T,a=setTimeout(m,t),u?h(T):s}function y(T){var P=T-l,E=T-c,R=t-P;return d?IK(R,i-E):R}function C(T){var P=T-l,E=T-c;return l===void 0||P>=t||P<0||d&&E>=i}function m(){var T=Fh();if(C(T))return g(T);a=setTimeout(m,y(T))}function g(T){return a=void 0,f&&r?h(T):(r=o=void 0,s)}function p(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function w(){return a===void 0?s:g(Fh())}function S(){var T=Fh(),P=C(T);if(r=arguments,o=this,l=T,P){if(a===void 0)return v(l);if(d)return a=setTimeout(m,t),h(l)}return a===void 0&&(a=setTimeout(m,t)),s}return S.cancel=p,S.flush=w,S}function jg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $K(e){return!!e&&typeof e=="object"}function AK(e){return typeof e=="symbol"||$K(e)&&OK.call(e)==yK}function mS(e){if(typeof e=="number")return e;if(AK(e))return hS;if(jg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=jg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(bK,"");var n=xK.test(e);return n||SK.test(e)?CK(e.slice(2),n?2:8):wK.test(e)?hS:+e}var MK=_K,$O={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},zK=W.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},Ng=W.getWidth=function(t){return t&&t.offsetWidth||0},NO=W.getHeight=function(t){return t&&t.offsetHeight||0},BO=W.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"},FO=W.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};W.extractObject=function(t,n){var r={};return n.forEach(function(o){return r[o]=t[o]}),r};W.initializedState=function(t){var n=DK.default.Children.count(t.children),r=t.listRef,o=Math.ceil(Ng(r)),i=t.trackRef&&t.trackRef.node,s=Math.ceil(Ng(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&&NO(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=DO(qe(qe({},t),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(h);var v={slideCount:n,slideWidth:a,listWidth:o,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:f};return t.autoplaying===null&&t.autoplay&&(v.autoplaying="playing"),v};W.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,v=t.lazyLoadedList;if(n&&r)return{};var y=s,C,m,g,p={},w={},S=i?s:MO(s,0,a-1);if(o){if(!i&&(s<0||s>=a))return{};s<0?y=s+a:s>=a&&(y=s-a),l&&v.indexOf(y)<0&&(v=v.concat(y)),p={animating:!0,currentSlide:y,lazyLoadedList:v,targetSlide:y},w={animating:!1,targetSlide:y}}else C=y,y<0?(C=y+a,i?a%d!==0&&(C=a-a%d):C=0):!FO(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),m=Ld(qe(qe({},t),{},{slideIndex:y})),g=Ld(qe(qe({},t),{},{slideIndex:C})),i||(m===g&&(y=C),m=g),l&&(v=v.concat(DO(qe(qe({},t),{},{currentSlide:y})))),h?(p={animating:!0,currentSlide:C,trackStyle:zO(qe(qe({},t),{},{left:m})),lazyLoadedList:v,targetSlide:S},w={animating:!1,currentSlide:C,trackStyle:Dd(qe(qe({},t),{},{left:g})),swipeLeft:null,targetSlide:S}):p={currentSlide:C,trackStyle:Dd(qe(qe({},t),{},{left:g})),lazyLoadedList:v,targetSlide:S};return{state:p,nextState:w}};W.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,v=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&&!v&&(o=d-i,a=o===-1?u-1:o),v||(a=f-l);else if(n.message==="next")i=r===0?l:r,a=d+i,h&&!v&&(a=(d+l)%u+r),v||(a=f+l);else if(n.message==="dots")a=n.index*n.slidesToScroll;else if(n.message==="children"){if(a=n.index,v){var y=WK(qe(qe({},t),{},{targetSlide:a}));a>n.currentSlide&&y==="left"?a=a-u:a10)return{scrolling:!0};a&&(g.swipeLength=R);var b=(l?-1:1)*(g.curX>g.startX?1:-1);a&&(b=g.curY>g.startY?1:-1);var O=Math.ceil(y/C),_=BO(n.touchObject,a),I=g.swipeLength;return m||(c===0&&(_==="right"||_==="down")||c+1>=O&&(_==="left"||_==="up")||!FO(n)&&(_==="left"||_==="up"))&&(I=g.swipeLength*u,d===!1&&f&&(f(_),P.edgeDragged=!0)),!h&&p&&(p(_),P.swiped=!0),i?T=E+I*(w/S)*b:l?T=E-I*b:T=E+I*b,a&&(T=E+I*b),P=qe(qe({},P),{},{touchObject:g,swipeLeft:T,trackStyle:Dd(qe(qe({},n),{},{left:T}))}),Math.abs(g.curX-g.startX)10&&(P.swiping=!0,Es(t)),P}};W.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,v=n.currentSlide,y=n.infinite;if(!r)return o&&Es(t),{};var C=l?c/a:s/a,m=BO(i,l),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return g;if(i.swipeLength>C){Es(t),f&&f(m);var p,w,S=y?v:h;switch(m){case"left":case"up":w=S+yS(n),p=u?vS(n,w):w,g.currentDirection=0;break;case"right":case"down":w=S-yS(n),p=u?vS(n,w):w,g.currentDirection=1;break;default:p=S}g.triggerSlideHandler=p}else{var T=Ld(n);g.trackStyle=zO(qe(qe({},n),{},{left:T}))}return g};var VK=W.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+Ng(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},_0=W.checkSpecKeys=function(t,n){return n.reduce(function(r,o){return r&&t.hasOwnProperty(o)},!0)?null:console.error("Keys Missing:",t)},Dd=W.getTrackCSS=function(t){_0(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,o=t.slideCount+2*t.slidesToShow;t.vertical?r=o*t.slideHeight:n=UK(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=qe(qe({},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},zO=W.getTrackAnimateCSS=function(t){_0(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=Dd(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},Ld=W.getTrackLeft=function(t){if(t.unslick)return 0;_0(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,v=t.vertical,y=0,C,m,g=0;if(h||t.slideCount===1)return 0;var p=0;if(o?(p=-_u(t),s%l!==0&&n+l>s&&(p=-(n>s?a-(n-s):s%l)),i&&(p+=parseInt(a/2))):(s%l!==0&&n+l>s&&(p=a-s%l),i&&(p=parseInt(a/2))),y=p*c,g=p*f,v?C=n*f*-1+g:C=n*c*-1+y,d===!0){var w,S=r&&r.node;if(w=n+_u(t),m=S&&S.childNodes[w],C=m?m.offsetLeft*-1:0,i===!0){w=o?n+_u(t):n,m=S&&S.children[w],C=0;for(var T=0;Tt.currentSlide?t.targetSlide>t.currentSlide+GK(t)?"left":"right":t.targetSlide0&&(s+=1),o&&n%2===0&&(s+=1),s}return o?0:n-1},KK=W.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};W.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var qK=W.validSettings=Object.keys(LK.default);function YK(e){return qK.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});Tp.Track=void 0;var mo=VO(k),zh=VO(kp),Vh=W;function VO(e){return e&&e.__esModule?e:{default:e}}function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function Bg(){return Bg=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}},rq=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},Uh=function(t,n){return t.key||n},oq=function(t){var n,r=[],o=[],i=[],s=mo.default.Children.count(t.children),a=(0,Vh.lazyStartIndex)(t),l=(0,Vh.lazyEndIndex)(t);return mo.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=mo.default.createElement("div",null);var h=rq(Qt(Qt({},t),{},{index:u})),v=d.props.className||"",y=Hh(Qt(Qt({},t),{},{index:u}));if(r.push(mo.default.cloneElement(d,{key:"original"+Uh(d,u),"data-index":u,className:(0,zh.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:Qt(Qt({outline:"none"},d.props.style||{}),h),onClick:function(g){d.props&&d.props.onClick&&d.props.onClick(g),t.focusOnSelect&&t.focusOnSelect(f)}})),t.infinite&&t.fade===!1){var C=s-u;C<=(0,Vh.getPreClones)(t)&&(n=-C,n>=a&&(d=c),y=Hh(Qt(Qt({},t),{},{index:n})),o.push(mo.default.cloneElement(d,{key:"precloned"+Uh(d,n),"data-index":n,tabIndex:"-1",className:(0,zh.default)(y,v),"aria-hidden":!y["slick-active"],style:Qt(Qt({},d.props.style||{}),h),onClick:function(g){d.props&&d.props.onClick&&d.props.onClick(g),t.focusOnSelect&&t.focusOnSelect(f)}}))),n=s+u,n=w&&f<=g:f===w}),T={message:"dots",index:C,slidesToScroll:c,currentSlide:f},P=this.clickHandler.bind(this,T);y=y.concat(ou.default.createElement("li",{key:C,className:S},ou.default.cloneElement(this.props.customPaging(C),{onClick:P})))}return ou.default.cloneElement(this.props.appendDots(y),sq({className:this.props.dotsClass},v))}}]),n}(ou.default.PureComponent);var Zs={};function ea(e){"@babel/helpers - typeof";return ea=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},ea(e)}Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PrevArrow=Zs.NextArrow=void 0;var Os=YO(k),qO=YO(kp),vq=W;function YO(e){return e&&e.__esModule?e:{default:e}}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!Wg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oq?(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(){!Wg||!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=Eq.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}(),rR=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ta(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new jq(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 ta(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 Nq(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}(),iR=typeof WeakMap<"u"?new WeakMap:new nR,sR=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=Rq.getInstance(),r=new Bq(t,n,this);iR.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){sR.prototype[e]=function(){var t;return(t=iR.get(this))[e].apply(t,arguments)}});var Fq=function(){return typeof Vd.ResizeObserver<"u"?Vd.ResizeObserver:sR}();const zq=Object.freeze(Object.defineProperty({__proto__:null,default:Fq},Symbol.toStringTag,{value:"Module"})),Vq=vR(zq);Object.defineProperty(Cp,"__esModule",{value:!0});Cp.InnerSlider=void 0;var zt=kc(k),Hq=kc(_O),Uq=kc(MK),Wq=kc(kp),Qe=W,Gq=Tp,Kq=Pp,kS=Zs,qq=kc(Vq);function kc(e){return e&&e.__esModule?e:{default:e}}function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function Ud(){return Ud=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 Xq(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 TS(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 se(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=se({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 qq.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)}),ye(ve(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()}),ye(ve(o),"componentDidUpdate",function(s){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var a=(0,Qe.getOnDemandLazySlides)(se(se({},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=se(se({listRef:o.list,trackRef:o.track},o.props),o.state),c=o.didPropsChange(s);c&&o.updateState(l,c,function(){o.state.currentSlide>=zt.default.Children.count(o.props.children)&&o.changeSlide({message:"index",index:zt.default.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),o.props.autoplay?o.autoPlay("update"):o.pause("paused")})}),ye(ve(o),"onWindowResized",function(s){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=(0,Uq.default)(function(){return o.resizeWindow(s)},50),o.debouncedResize()}),ye(ve(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=se(se({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}}),ye(ve(o),"updateState",function(s,a,l){var c=(0,Qe.initializedState)(s);s=se(se(se({},s),c),{},{slideIndex:c.currentSlide});var u=(0,Qe.getTrackLeft)(s);s=se(se({},s),{},{left:u});var d=(0,Qe.getTrackCSS)(s);(a||zt.default.Children.count(o.props.children)!==zt.default.Children.count(s.children))&&(c.trackStyle=d),o.setState(c,l)}),ye(ve(o),"ssrInit",function(){if(o.props.variableWidth){var s=0,a=0,l=[],c=(0,Qe.getPreClones)(se(se(se({},o.props),o.state),{},{slideCount:o.props.children.length})),u=(0,Qe.getPostClones)(se(se(se({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach(function(P){l.push(P.props.style.width),s+=P.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()}))})}),ye(ve(o),"progressiveLazyLoad",function(){for(var s=[],a=se(se({},o.props),o.state),l=o.state.currentSlide;l=-(0,Qe.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)}),ye(ve(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,v=o.state.currentSlide,y=(0,Qe.slideHandler)(se(se(se({index:s},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!a})),C=y.state,m=y.nextState;if(C){u&&u(v,C.currentSlide);var g=C.lazyLoadedList.filter(function(p){return o.state.lazyLoadedList.indexOf(p)<0});d&&g.length>0&&d(g),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),h&&h(v),delete o.animationEndCallback),o.setState(C,function(){c&&o.asNavForIndex!==s&&(o.asNavForIndex=s,c.innerSlider.slideHandler(s)),m&&(o.animationEndCallback=setTimeout(function(){var p=m.animating,w=Yq(m,["animating"]);o.setState(w,function(){o.callbackTimers.push(setTimeout(function(){return o.setState({animating:p})},10)),h&&h(C.currentSlide),delete o.animationEndCallback})},f))})}}),ye(ve(o),"changeSlide",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=se(se({},o.props),o.state),c=(0,Qe.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()}}),ye(ve(o),"clickHandler",function(s){o.clickable===!1&&(s.stopPropagation(),s.preventDefault()),o.clickable=!0}),ye(ve(o),"keyHandler",function(s){var a=(0,Qe.keyHandler)(s,o.props.accessibility,o.props.rtl);a!==""&&o.changeSlide({message:a})}),ye(ve(o),"selectHandler",function(s){o.changeSlide(s)}),ye(ve(o),"disableBodyScroll",function(){var s=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=s}),ye(ve(o),"enableBodyScroll",function(){window.ontouchmove=null}),ye(ve(o),"swipeStart",function(s){o.props.verticalSwiping&&o.disableBodyScroll();var a=(0,Qe.swipeStart)(s,o.props.swipe,o.props.draggable);a!==""&&o.setState(a)}),ye(ve(o),"swipeMove",function(s){var a=(0,Qe.swipeMove)(s,se(se(se({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));a&&(a.swiping&&(o.clickable=!1),o.setState(a))}),ye(ve(o),"swipeEnd",function(s){var a=(0,Qe.swipeEnd)(s,se(se(se({},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())}}),ye(ve(o),"touchEnd",function(s){o.swipeEnd(s),o.clickable=!0}),ye(ve(o),"slickPrev",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"previous"})},0))}),ye(ve(o),"slickNext",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"next"})},0))}),ye(ve(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))}),ye(ve(o),"play",function(){var s;if(o.props.rtl)s=o.state.currentSlide-o.props.slidesToScroll;else if((0,Qe.canGoNext)(se(se({},o.props),o.state)))s=o.state.currentSlide+o.props.slidesToScroll;else return!1;o.slideHandler(s)}),ye(ve(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"})}),ye(ve(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"})}),ye(ve(o),"onDotsOver",function(){return o.props.autoplay&&o.pause("hovered")}),ye(ve(o),"onDotsLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),ye(ve(o),"onTrackOver",function(){return o.props.autoplay&&o.pause("hovered")}),ye(ve(o),"onTrackLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),ye(ve(o),"onSlideFocus",function(){return o.props.autoplay&&o.pause("focused")}),ye(ve(o),"onSlideBlur",function(){return o.props.autoplay&&o.state.autoplaying==="focused"&&o.autoPlay("blur")}),ye(ve(o),"render",function(){var s=(0,Wq.default)("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=se(se({},o.props),o.state),l=(0,Qe.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=se(se({},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,Qe.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=o.props.pauseOnDotsHover;d=se(se({},d),{},{clickHandler:o.changeSlide,onMouseEnter:f?o.onDotsLeave:null,onMouseOver:f?o.onDotsOver:null,onMouseLeave:f?o.onDotsLeave:null}),u=zt.default.createElement(Kq.Dots,d)}var h,v,y=(0,Qe.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=o.changeSlide,o.props.arrows&&(h=zt.default.createElement(kS.PrevArrow,y),v=zt.default.createElement(kS.NextArrow,y));var C=null;o.props.vertical&&(C={height:o.state.listHeight});var m=null;o.props.vertical===!1?o.props.centerMode===!0&&(m={padding:"0px "+o.props.centerPadding}):o.props.centerMode===!0&&(m={padding:o.props.centerPadding+" 0px"});var g=se(se({},C),m),p=o.props.touchMove,w={className:"slick-list",style:g,onClick:o.clickHandler,onMouseDown:p?o.swipeStart:null,onMouseMove:o.state.dragging&&p?o.swipeMove:null,onMouseUp:p?o.swipeEnd:null,onMouseLeave:o.state.dragging&&p?o.swipeEnd:null,onTouchStart:p?o.swipeStart:null,onTouchMove:o.state.dragging&&p?o.swipeMove:null,onTouchEnd:p?o.touchEnd:null,onTouchCancel:o.state.dragging&&p?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},S={className:s,dir:"ltr",style:o.props.style};return o.props.unslick&&(w={className:"slick-list"},S={className:s}),zt.default.createElement("div",S,o.props.unslick?"":h,zt.default.createElement("div",Ud({ref:o.listRefHandler},w),zt.default.createElement(Gq.Track,Ud({ref:o.trackRefHandler},l),o.props.children)),o.props.unslick?"":v,o.props.unslick?"":u)}),o.list=null,o.track=null,o.state=se(se({},Hq.default),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:zt.default.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var i=o.ssrInit();return o.state=se(se({},o.state),i),o}return Zq(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 I.innerSlider.slickGoTo($,D)}),S(g(I),"slickPause",function(){return I.innerSlider.pause("paused")}),S(g(I),"slickPlay",function(){return I.innerSlider.autoPlay("play")}),I.state={breakpoint:null},I._responsiveMediaHandlers=[],I}return h(O,[{key:"media",value:function(I,$){E.register(I,$),this._responsiveMediaHandlers.push({query:I,handler:$})}},{key:"componentDidMount",value:function(){var I=this;if(this.props.responsive){var $=this.props.responsive.map(function(M){return M.breakpoint});$.sort(function(M,N){return M-N}),$.forEach(function(M,N){var A;N===0?A=(0,r.default)({minWidth:0,maxWidth:M}):A=(0,r.default)({minWidth:$[N-1]+1,maxWidth:M}),(0,i.canUseDOM)()&&I.media(A,function(){I.setState({breakpoint:M})})});var D=(0,r.default)({minWidth:$.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(D,function(){I.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(I){E.unregister(I.query,I.handler)})}},{key:"render",value:function(){var I=this,$,D;this.state.breakpoint?(D=this.props.responsive.filter(function(oe){return oe.breakpoint===I.state.breakpoint}),$=D[0].settings==="unslick"?"unslick":u(u(u({},o.default),this.props),D[0].settings)):$=u(u({},o.default),this.props),$.centerMode&&($.slidesToScroll>1,$.slidesToScroll=1),$.fade&&($.slidesToShow>1,$.slidesToScroll>1,$.slidesToShow=1,$.slidesToScroll=1);var M=t.default.Children.toArray(this.props.children);M=M.filter(function(oe){return typeof oe=="string"?!!oe.trim():!!oe}),$.variableWidth&&($.rows>1||$.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),$.variableWidth=!1);for(var N=[],A=null,L=0;L=M.length));te+=1)Y.push(t.default.cloneElement(M[te],{key:100*L+10*Q+te,tabIndex:-1,style:{width:"".concat(100/$.slidesPerRow,"%"),display:"inline-block"}}));F.push(t.default.createElement("div",{key:10*L+Q},Y))}$.variableWidth?N.push(t.default.createElement("div",{key:L,style:{width:A}},F)):N.push(t.default.createElement("div",{key:L},F))}if($==="unslick"){var Z="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:Z},M)}else N.length<=$.slidesToShow&&!$.infinite&&($.unslick=!0);return t.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,i.filterSettings)($)),N)}}]),O}(t.default.Component)})(IO);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(IO);function n(r){return r&&r.__esModule?r:{default:r}}e.default=t.default})(RO);const hY=Kg(RO),$S=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"},mY=({currentOrchid:e,theme:t})=>{const n=Sp.filter(o=>o.Id!==e.Id&&(o.category===e.category||o.color===e.color||$S(o.origin)===$S(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 x.jsxs("div",{className:"related-orchids-slider",style:{marginTop:"3rem",paddingBottom:"32px"},children:[x.jsx(ue,{variant:"h5",component:"h2",sx:{mb:3,color:t.text.primary,fontWeight:"bold",textAlign:"center"},children:"Related Orchids"}),x.jsx(hY,{...r,children:n.map(o=>x.jsx("div",{style:{padding:"0 10px"},children:x.jsx(R0,{orchid:o,theme:t})},o.Id))}),x.jsx("style",{jsx:!0,global:!0,children:` + .related-orchids-slider .slick-list { + margin: 0 -10px; + } + .related-orchids-slider .slick-slide > div { + margin: 0 10px; + } + .related-orchids-slider .slick-dots li button:before { + color: ${t.text.primary}; + opacity: 0.25; + font-size: 10px; + } + .related-orchids-slider .slick-dots li.slick-active button:before { + color: ${t.text.primary}; + opacity: 0.75; + } + .related-orchids-slider .slick-prev, + .related-orchids-slider .slick-next { + z-index: 1; + } + .related-orchids-slider .slick-prev { + left: -25px; + } + .related-orchids-slider .slick-next { + right: -25px; + } + .related-orchids-slider .slick-prev:before, + .related-orchids-slider .slick-next:before { + color: ${t.text.primary}; + } + `})]})},gY=gn(be);function vY(){const{id:e}=v$(),t=Wv(),n=Sp.find(s=>s.Id===e),{theme:r}=k.useContext(tr),[o,i]=k.useState(!1);return n?x.jsxs(be,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",bgcolor:r.mainContent.backgroundColor,color:r.text.primary,pt:{xs:8,sm:10}},children:[x.jsxs(Bs,{maxWidth:"lg",sx:{py:4},children:[x.jsx(Fo,{onClick:()=>t("/fer-lab1"),variant:"contained",startIcon:x.jsx($L,{}),sx:{mb:3,backgroundColor:r.button.primary,"&:hover":{backgroundColor:r.button.hover}},children:"Back to List"}),x.jsx(gY,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:x.jsx(Ei,{elevation:3,sx:{overflow:"hidden",borderRadius:2,backgroundColor:r.card.backgroundColor,color:r.text.primary,boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:x.jsxs(Ze,{container:!0,spacing:0,children:[x.jsx(Ze,{item:!0,xs:12,md:6,children:x.jsxs(be,{sx:{position:"relative"},children:[x.jsx(Md,{ratio:"4/3",children:x.jsx("img",{src:n.image,alt:n.name,style:{width:"100%",height:"100%",objectFit:"cover"}})}),x.jsx(Fo,{variant:"contained",startIcon:x.jsx(GL,{}),onClick:()=>i(!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"})]})}),x.jsx(Ze,{item:!0,xs:12,md:6,children:x.jsxs(be,{sx:{p:4},children:[x.jsx(ue,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:r.text.primary},children:n.name}),x.jsxs(be,{sx:{display:"flex",alignItems:"center",mb:2},children:[x.jsx(lO,{name:"read-only",value:n.rating,readOnly:!0,precision:.5,emptyIcon:x.jsx(N1,{style:{opacity:.55},fontSize:"inherit"})}),x.jsxs(ue,{variant:"body1",sx:{ml:1,color:r.text.secondary},children:["(",n.rating,"/5)"]})]}),x.jsx(Fs,{sx:{my:2}}),x.jsxs(ue,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(fy,{sx:{mr:1,color:r.icon.color}}),"Origin:"," ",x.jsx(Wa,{label:n.origin,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsxs(ue,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(Qk,{sx:{mr:1,color:r.icon.color}}),"Category:"," ",x.jsx(Wa,{label:n.category,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsxs(ue,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(DL,{sx:{mr:1,color:r.icon.color}}),"Color:"," ",x.jsx(Wa,{label:n.color,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsx(Fs,{sx:{my:2}}),x.jsx(ue,{variant:"body1",paragraph:!0,sx:{color:r.text.secondary,lineHeight:1.6},children:n.detail}),n.isSpecial&&x.jsx(Wa,{icon:x.jsx(N1,{}),label:"Special Orchid",color:"warning",sx:{mt:2}})]})})]})})}),x.jsx(mY,{currentOrchid:n,theme:r})]}),x.jsx(uy,{open:o,onClose:()=>i(!1),"aria-labelledby":"video-modal-title","aria-describedby":"video-modal-description",children:x.jsxs(be,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:800,bgcolor:r.card.backgroundColor,boxShadow:24,p:4,borderRadius:2},children:[x.jsx(be,{sx:{display:"flex",justifyContent:"flex-end",mb:2},children:x.jsx(pn,{onClick:()=>i(!1),sx:{color:r.text.primary},children:x.jsx(ML,{})})}),x.jsx(Md,{ratio:"16/9",children:x.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})})]})})]}):x.jsx(Bs,{maxWidth:"lg",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",bgcolor:r.mainContent.backgroundColor},children:x.jsx(ue,{variant:"h4",color:r.text.primary,children:"Orchid not found"})})}function yY(){const{theme:e}=k.useContext(tr),t=Sp.filter(n=>n.isSpecial);return x.jsx(be,{sx:{width:"100%"},children:x.jsx(Ze,{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(n=>x.jsx(Ze,{item:!0,xs:12,sm:6,md:4,children:x.jsx(R0,{orchid:n},n.Id)},n.Id))})})}const bY="/fer-lab1/assets/avt-D_utLsXG.jpg",qi=gn(be),wY=gn(rO),Xh=({icon:e,title:t,content:n,theme:r})=>x.jsx(wY,{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:x.jsxs(oO,{children:[x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[Mn.cloneElement(e,{style:{color:r.icon.color}}),x.jsx(ue,{variant:"h6",component:"h3",ml:1,color:r.text.primary,children:t})]}),x.jsx(ue,{variant:"body1",color:r.text.secondary,children:n})]})});function xY(){const{theme:e}=k.useContext(tr);return x.jsx(be,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary},children:x.jsx(Bs,{maxWidth:!1,sx:{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,flex:"1 0 auto",padding:"2rem",paddingBottom:"4rem"},children:x.jsxs(be,{py:8,children:[x.jsx(qi,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},mb:6,children:x.jsx(ue,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"About Me"})}),x.jsxs(Ze,{container:!0,spacing:4,children:[x.jsx(Ze,{item:!0,xs:12,md:4,children:x.jsx(qi,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:x.jsxs(be,{textAlign:"center",children:[x.jsx(Hy,{alt:"Nguyen Huy Hoang",src:bY,sx:{width:200,height:200,margin:"auto",mb:2}}),x.jsx(ue,{variant:"h4",component:"h2",gutterBottom:!0,color:e.text.primary,children:"Nguyen Huy Hoang"}),x.jsx(ue,{variant:"subtitle1",color:e.text.secondary,gutterBottom:!0,children:"Software Engineering Student"}),x.jsxs(be,{children:[x.jsx(pn,{"aria-label":"Facebook",sx:{color:e.icon.color},href:"https://www.facebook.com/hoangnguyen.c1002/",children:x.jsx(Jk,{})}),x.jsx(pn,{"aria-label":"Instagram",sx:{color:e.icon.color},href:"https://www.instagram.com/__hoang.nguyeen__/",children:x.jsx(eT,{})}),x.jsx(pn,{"aria-label":"GitHub",sx:{color:e.icon.color},href:"https://github.com/Hoang-Nguyen-Huy",children:x.jsx(Zk,{})})]})]})})}),x.jsx(Ze,{item:!0,xs:12,md:8,children:x.jsxs(qi,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},children:[x.jsx(ue,{variant:"h5",component:"h3",gutterBottom:!0,color:e.text.primary,children:"Education"}),x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(KL,{sx:{color:e.icon.color,mr:1}}),x.jsx(ue,{variant:"body1",color:e.text.primary,children:"FPT University, Ho Chi Minh City"})]}),x.jsx(ue,{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."})]})})]}),x.jsxs(be,{mt:8,children:[x.jsx(ue,{variant:"h4",component:"h2",align:"center",gutterBottom:!0,color:e.text.primary,children:"Our Approach"}),x.jsxs(Ze,{container:!0,spacing:4,mt:2,children:[x.jsx(Ze,{item:!0,xs:12,md:4,children:x.jsx(qi,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},children:x.jsx(Xh,{icon:x.jsx(NL,{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})})}),x.jsx(Ze,{item:!0,xs:12,md:4,children:x.jsx(qi,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},children:x.jsx(Xh,{icon:x.jsx(BL,{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})})}),x.jsx(Ze,{item:!0,xs:12,md:4,children:x.jsx(qi,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:1},children:x.jsx(Xh,{icon:x.jsx(_L,{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 SY=gn(Ei),CY=gn(be);function kY(){const{theme:e}=k.useContext(tr),[t,n]=k.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 x.jsx(be,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,paddingTop:"8px"},children:x.jsxs(Bs,{maxWidth:!1,sx:{py:8,backgroundColor:e.mainContent.backgroundColor,minHeight:"100vh",padding:"2rem"},children:[x.jsx(ue,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"Contact Us"}),x.jsxs(Ze,{container:!0,spacing:4,justifyContent:"center",children:[x.jsx(Ze,{item:!0,xs:12,md:6,children:x.jsx(SY,{elevation:3,initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5},sx:{p:4,backgroundColor:e.card.backgroundColor},children:x.jsxs("form",{onSubmit:o,children:[x.jsx(jh,{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}}}),x.jsx(jh,{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}}}),x.jsx(jh,{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}}}),x.jsx(Fo,{type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!0,sx:{mt:2},children:"Send Message"})]})})}),x.jsx(Ze,{item:!0,xs:12,md:6,children:x.jsx(CY,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:x.jsxs(Ei,{elevation:3,sx:{p:4,height:"100%",backgroundColor:e.card.backgroundColor},children:[x.jsx(ue,{variant:"h5",gutterBottom:!0,color:e.text.primary,children:"Contact Information"}),x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(pn,{sx:{color:e.icon.color,mr:1},children:x.jsx(jL,{})}),x.jsx(ue,{color:e.text.primary,children:"contact@example.com"})]}),x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(pn,{sx:{color:e.icon.color,mr:1},children:x.jsx(WL,{})}),x.jsx(ue,{color:e.text.primary,children:"+1 (123) 456-7890"})]}),x.jsxs(be,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(pn,{sx:{color:e.icon.color,mr:1},children:x.jsx(fy,{})}),x.jsx(ue,{color:e.text.primary,children:"Lô E2a-7, Đường D1, Đ. D1, Long Thạnh Mỹ, Thành Phố Thủ Đức, Hồ Chí Minh"})]}),x.jsxs(be,{mt:4,children:[x.jsx(ue,{variant:"h6",gutterBottom:!0,color:e.text.primary,children:"Find Us On Map"}),x.jsx(Ei,{elevation:2,sx:{height:250,overflow:"hidden"},children:x.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 TY=[{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"}],PY=gn(rO);function EY(){const{theme:e}=k.useContext(tr);return x.jsxs(be,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px - 56px)",backgroundColor:e.mainContent.backgroundColor,padding:{xs:2,sm:4,md:6}},children:[x.jsx(ue,{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"}),x.jsx(Ze,{container:!0,spacing:4,children:TY.map((t,n)=>x.jsx(Ze,{item:!0,xs:12,sm:6,md:4,children:x.jsxs(PY,{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:[x.jsx(wH,{component:"img",height:"200",image:t.image,alt:t.title,sx:{objectFit:"cover"}}),x.jsxs(oO,{sx:{flexGrow:1,position:"relative"},children:[x.jsx(Wa,{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]}}),x.jsx(ue,{gutterBottom:!0,variant:"h5",component:"h2",sx:{fontWeight:"bold",color:e.text.primary},children:t.title}),x.jsx(ue,{variant:"body2",sx:{color:e.text.secondary,mb:2},children:t.excerpt}),x.jsx(Fs,{sx:{mb:2,backgroundColor:e.divider}}),x.jsxs(be,{sx:{display:"flex",alignItems:"center",mb:2},children:[x.jsx(Hy,{src:t.author.avatar,sx:{width:32,height:32,mr:1}}),x.jsx(ue,{variant:"subtitle2",sx:{color:e.text.primary,mr:2},children:t.author.name}),x.jsx(IL,{sx:{fontSize:16,mr:.5,color:e.icon.color}}),x.jsx(ue,{variant:"caption",sx:{color:e.text.secondary},children:new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),x.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[x.jsx(Fo,{startIcon:x.jsx(AL,{}),size:"small",sx:{color:e.button.primary},children:"Save"}),x.jsx(Fo,{startIcon:x.jsx(qL,{}),size:"small",sx:{color:e.button.primary},children:"Share"})]})]})]})},t.id))})]})}function OY(){return x.jsxs("div",{style:{position:"relative"},children:[x.jsx(jU,{}),x.jsxs(_$,{children:[x.jsx(ri,{path:"/fer-lab1/",element:x.jsx(gK,{})}),x.jsx(ri,{path:"/fer-lab1/natural",element:x.jsx(yY,{})}),x.jsx(ri,{path:"/fer-lab1/:id",element:x.jsx(vY,{})}),x.jsx(ri,{path:"/fer-lab1/news",element:x.jsx(EY,{})}),x.jsx(ri,{path:"/fer-lab1/about",element:x.jsx(xY,{})}),x.jsx(ri,{path:"/fer-lab1/contact",element:x.jsx(kY,{})})]}),x.jsx(pK,{})]})}W2(document.getElementById("root")).render(x.jsx(k.StrictMode,{children:x.jsx($9,{children:x.jsx(N$,{children:x.jsx(vL,{children:x.jsx(OY,{})})})})})); diff --git a/assets/index-CWoPqGAR.js b/assets/index-CWoPqGAR.js deleted file mode 100644 index 0fea60b..0000000 --- a/assets/index-CWoPqGAR.js +++ /dev/null @@ -1,204 +0,0 @@ -var q2=Object.defineProperty;var Y2=(e,t,n)=>t in e?q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ss=(e,t,n)=>Y2(e,typeof t!="symbol"?t+"":t,n);function X2(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 Ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q2(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 B1={exports:{}},Ju={},z1={exports:{}},he={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ta=Symbol.for("react.element"),Z2=Symbol.for("react.portal"),J2=Symbol.for("react.fragment"),ek=Symbol.for("react.strict_mode"),tk=Symbol.for("react.profiler"),nk=Symbol.for("react.provider"),rk=Symbol.for("react.context"),ok=Symbol.for("react.forward_ref"),ik=Symbol.for("react.suspense"),sk=Symbol.for("react.memo"),ak=Symbol.for("react.lazy"),jg=Symbol.iterator;function lk(e){return e===null||typeof e!="object"?null:(e=jg&&e[jg]||e["@@iterator"],typeof e=="function"?e:null)}var N1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F1=Object.assign,V1={};function Gi(e,t,n){this.props=e,this.context=t,this.refs=V1,this.updater=n||N1}Gi.prototype.isReactComponent={};Gi.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")};Gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H1(){}H1.prototype=Gi.prototype;function Sh(e,t,n){this.props=e,this.context=t,this.refs=V1,this.updater=n||N1}var wh=Sh.prototype=new H1;wh.constructor=Sh;F1(wh,Gi.prototype);wh.isPureReactComponent=!0;var Ig=Array.isArray,W1=Object.prototype.hasOwnProperty,Ch={current:null},U1={key:!0,ref:!0,__self:!0,__source:!0};function G1(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)W1.call(t,r)&&!U1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,Z=j[X];if(0>>1;Xo(ue,V))weo(se,ue)?(j[X]=se,j[we]=V,X=we):(j[X]=ue,j[te]=V,X=te);else if(weo(se,V))j[X]=se,j[we]=V,X=we;else break e}}return L}function o(j,L){var V=j.sortIndex-L.sortIndex;return V!==0?V:j.id-L.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=[],u=[],c=1,d=null,f=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(j){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=j)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(j){if(y=!1,p(j),!g)if(n(l)!==null)g=!0,D(k);else{var L=n(u);L!==null&&B(S,L.startTime-j)}}function k(j,L){g=!1,y&&(y=!1,m(T),T=-1),v=!0;var V=f;try{for(p(L),d=n(l);d!==null&&(!(d.expirationTime>L)||j&&!E());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var Z=X(d.expirationTime<=L);L=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),p(L)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var te=n(u);te!==null&&B(S,te.startTime-L),ee=!1}return ee}finally{d=null,f=V,v=!1}}var P=!1,$=null,T=-1,O=5,b=-1;function E(){return!(e.unstable_now()-bj||125X?(j.sortIndex=V,t(u,j),n(l)===null&&j===n(u)&&(y?(m(T),T=-1):y=!0,B(S,V-X))):(j.sortIndex=Z,t(l,j),g||v||(g=!0,D(k))),j},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(j){var L=f;return function(){var V=f;f=L;try{return j.apply(this,arguments)}finally{f=V}}}})(Q1);X1.exports=Q1;var bk=X1.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xk=C,tn=bk;function z(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"),Df=Object.prototype.hasOwnProperty,Sk=/^[: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]*$/,Lg={},Dg={};function wk(e){return Df.call(Dg,e)?!0:Df.call(Lg,e)?!1:Sk.test(e)?Dg[e]=!0:(Lg[e]=!0,!1)}function Ck(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 kk(e,t,n,r){if(t===null||typeof t>"u"||Ck(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 Nt(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 kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kt[e]=new Nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kt[t]=new Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kt[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kt[e]=new Nt(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){kt[e]=new Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kt[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kt[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kt[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kt[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ph=/[\-:]([a-z])/g;function $h(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(Ph,$h);kt[t]=new Nt(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(Ph,$h);kt[t]=new Nt(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(Ph,$h);kt[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});kt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Th(e,t,n,r){var o=kt.hasOwnProperty(t)?kt[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{Td=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ks(e):""}function Pk(e){switch(e.tag){case 5:return ks(e.type);case 16:return ks("Lazy");case 13:return ks("Suspense");case 19:return ks("SuspenseList");case 0:case 2:case 15:return e=Ed(e.type,!1),e;case 11:return e=Ed(e.type.render,!1),e;case 1:return e=Ed(e.type,!0),e;default:return""}}function Ff(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 Qo:return"Fragment";case Xo:return"Portal";case Bf:return"Profiler";case Eh:return"StrictMode";case zf:return"Suspense";case Nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eb:return(e.displayName||"Context")+".Consumer";case J1:return(e._context.displayName||"Context")+".Provider";case Oh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rh:return t=e.displayName||null,t!==null?t:Ff(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Ff(e(t))}catch{}}return null}function $k(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 Ff(t);case 8:return t===Eh?"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 Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tk(e){var t=nb(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 Za(e){e._valueTracker||(e._valueTracker=Tk(e))}function rb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(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 Vf(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wr(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 ob(e,t){t=t.checked,t!=null&&Th(e,"checked",t,!1)}function Hf(e,t){ob(e,t);var n=Wr(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")?Wf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wf(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ng(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 Wf(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ps=Array.isArray;function hi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Is={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ek=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(e){Ek.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Is[t]=Is[e]})});function lb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Is.hasOwnProperty(e)&&Is[e]?(""+t).trim():t+"px"}function ub(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ok=Ye({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 Kf(e,t){if(t){if(Ok[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function qf(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 Yf=null;function Mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xf=null,mi=null,gi=null;function Hg(e){if(e=Ra(e)){if(typeof Xf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=oc(t),Xf(e.stateNode,e.type,t))}}function cb(e){mi?gi?gi.push(e):gi=[e]:mi=e}function db(){if(mi){var e=mi,t=gi;if(gi=mi=null,Hg(e),t)for(e=0;e>>=0,e===0?32:31-(Nk(e)/Fk|0)|0}var el=64,tl=4194304;function $s(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 Ql(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=$s(a):(i&=s,i!==0&&(r=$s(i)))}else s=n&~o,s!==0?r=$s(s):i!==0&&(r=$s(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 Ea(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=n}function Uk(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=Ls),Zg=" ",Jg=!1;function Mb(e,t){switch(e){case"keyup":return bP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ab(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zo=!1;function SP(e,t){switch(e){case"compositionend":return Ab(t);case"keypress":return t.which!==32?null:(Jg=!0,Zg);case"textInput":return e=t.data,e===Zg&&Jg?null:e;default:return null}}function wP(e,t){if(Zo)return e==="compositionend"||!zh&&Mb(e,t)?(e=Ob(),Tl=Lh=Ar=null,Zo=!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=rv(n)}}function Lb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Db(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function Nh(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 MP(e){var t=Db(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lb(n.ownerDocument.documentElement,n)){if(r!==null&&Nh(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=ov(n,i);var s=ov(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,Jo=null,np=null,Bs=null,rp=!1;function iv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rp||Jo==null||Jo!==Kl(r)||(r=Jo,"selectionStart"in r&&Nh(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}),Bs&&ra(Bs,r)||(Bs=r,r=eu(np,"onSelect"),0ni||(e.current=up[ni],up[ni]=null,ni--)}function Ie(e,t){ni++,up[ni]=e.current,e.current=t}var Ur={},It=Zr(Ur),Ut=Zr(!1),Co=Ur;function $i(e,t){var n=e.type.contextTypes;if(!n)return Ur;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 Gt(e){return e=e.childContextTypes,e!=null}function nu(){ze(Ut),ze(It)}function fv(e,t,n){if(It.current!==Ur)throw Error(z(168));Ie(It,t),Ie(Ut,n)}function Gb(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(z(108,$k(e)||"Unknown",o));return Ye({},n,r)}function ru(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,Co=It.current,Ie(It,e),Ie(Ut,Ut.current),!0}function pv(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Gb(e,t,Co),r.__reactInternalMemoizedMergedChildContext=e,ze(Ut),ze(It),Ie(It,e)):ze(Ut),Ie(Ut,n)}var nr=null,ic=!1,Vd=!1;function Kb(e){nr===null?nr=[e]:nr.push(e)}function HP(e){ic=!0,Kb(e)}function Jr(){if(!Vd&&nr!==null){Vd=!0;var e=0,t=$e;try{var n=nr;for($e=1;e>=s,o-=s,rr=1<<32-On(t)+o|n<T?(O=$,$=null):O=$.sibling;var b=f(m,$,p[T],S);if(b===null){$===null&&($=O);break}e&&$&&b.alternate===null&&t(m,$),h=i(b,h,T),P===null?k=b:P.sibling=b,P=b,$=O}if(T===p.length)return n(m,$),He&&ao(m,T),k;if($===null){for(;TT?(O=$,$=null):O=$.sibling;var E=f(m,$,b.value,S);if(E===null){$===null&&($=O);break}e&&$&&E.alternate===null&&t(m,$),h=i(E,h,T),P===null?k=E:P.sibling=E,P=E,$=O}if(b.done)return n(m,$),He&&ao(m,T),k;if($===null){for(;!b.done;T++,b=p.next())b=d(m,b.value,S),b!==null&&(h=i(b,h,T),P===null?k=b:P.sibling=b,P=b);return He&&ao(m,T),k}for($=r(m,$);!b.done;T++,b=p.next())b=v($,m,T,b.value,S),b!==null&&(e&&b.alternate!==null&&$.delete(b.key===null?T:b.key),h=i(b,h,T),P===null?k=b:P.sibling=b,P=b);return e&&$.forEach(function(R){return t(m,R)}),He&&ao(m,T),k}function w(m,h,p,S){if(typeof p=="object"&&p!==null&&p.type===Qo&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Qa:e:{for(var k=p.key,P=h;P!==null;){if(P.key===k){if(k=p.type,k===Qo){if(P.tag===7){n(m,P.sibling),h=o(P,p.props.children),h.return=m,m=h;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$r&&gv(k)===P.type){n(m,P.sibling),h=o(P,p.props),h.ref=fs(m,P,p),h.return=m,m=h;break e}n(m,P);break}else t(m,P);P=P.sibling}p.type===Qo?(h=So(p.props.children,m.mode,S,p.key),h.return=m,m=h):(S=_l(p.type,p.key,p.props,null,m.mode,S),S.ref=fs(m,h,p),S.return=m,m=S)}return s(m);case Xo:e:{for(P=p.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(m,h.sibling),h=o(h,p.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Xd(p,m.mode,S),h.return=m,m=h}return s(m);case $r:return P=p._init,w(m,h,P(p._payload),S)}if(Ps(p))return g(m,h,p,S);if(as(p))return y(m,h,p,S);ll(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,p),h.return=m,m=h):(n(m,h),h=Yd(p,m.mode,S),h.return=m,m=h),s(m)):n(m,h)}return w}var Ei=Qb(!0),Zb=Qb(!1),su=Zr(null),au=null,ii=null,Wh=null;function Uh(){Wh=ii=au=null}function Gh(e){var t=su.current;ze(su),e._currentValue=t}function fp(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 yi(e,t){au=e,Wh=ii=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ht=!0),e.firstContext=null)}function xn(e){var t=e._currentValue;if(Wh!==e)if(e={context:e,memoizedValue:t,next:null},ii===null){if(au===null)throw Error(z(308));ii=e,au.dependencies={lanes:0,firstContext:e}}else ii=ii.next=e;return t}var go=null;function Kh(e){go===null?go=[e]:go.push(e)}function Jb(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Kh(t)):(n.next=o.next,o.next=n),t.interleaved=n,hr(e,r)}function hr(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 Tr=!1;function qh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ex(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 sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,be&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,hr(e,n)}return o=r.interleaved,o===null?(t.next=t,Kh(r)):(t.next=o.next,o.next=t),r.interleaved=t,hr(e,n)}function Ol(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,jh(e,n)}}function vv(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 lu(e,t,n,r){var o=e.updateQueue;Tr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(f=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=Ye({},d,f);break e;case 2:Tr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,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(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,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);$o|=s,e.lanes=s,e.memoizedState=d}}function yv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Wd.transition;Wd.transition={};try{e(!1),t()}finally{$e=n,Wd.transition=r}}function vx(){return Sn().memoizedState}function KP(e,t,n){var r=Fr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yx(e))bx(t,n);else if(n=Jb(e,t,n,r),n!==null){var o=Bt();Rn(n,e,r,o),xx(n,t,r)}}function qP(e,t,n){var r=Fr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yx(e))bx(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,Mn(a,s)){var l=t.interleaved;l===null?(o.next=o,Kh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Jb(e,t,o,r),n!==null&&(o=Bt(),Rn(n,e,r,o),xx(n,t,r))}}function yx(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function bx(e,t){zs=cu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jh(e,n)}}var du={readContext:xn,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},YP={readContext:xn,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:xv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,fx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zn();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=KP.bind(null,qe,e),[r.memoizedState,e]},useRef:function(e){var t=zn();return e={current:e},t.memoizedState=e},useState:bv,useDebugValue:nm,useDeferredValue:function(e){return zn().memoizedState=e},useTransition:function(){var e=bv(!1),t=e[0];return e=GP.bind(null,e[1]),zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qe,o=zn();if(He){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),gt===null)throw Error(z(349));Po&30||ox(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xv(sx.bind(null,r,i,e),[e]),r.flags|=2048,da(9,ix.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zn(),t=gt.identifierPrefix;if(He){var n=or,r=rr;n=(r&~(1<<32-On(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ua++,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[Hn]=t,e[sa]=r,Rx(e,t,!1,!1),t.stateNode=e;e:{switch(s=qf(n,r),n){case"dialog":Be("cancel",e),Be("close",e),o=r;break;case"iframe":case"object":case"embed":Be("load",e),o=r;break;case"video":case"audio":for(o=0;oMi&&(t.flags|=128,r=!0,ps(i,!1),t.lanes=4194304)}else{if(!r)if(e=uu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ps(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!He)return $t(t),null}else 2*ot()-i.renderingStartTime>Mi&&n!==1073741824&&(t.flags|=128,r=!0,ps(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=ot(),t.sibling=null,n=Ue.current,Ie(Ue,r?n&1|2:n&1),t):($t(t),null);case 22:case 23:return lm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Yt&1073741824&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function r$(e,t){switch(Vh(t),t.tag){case 1:return Gt(t.type)&&nu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oi(),ze(Ut),ze(It),Qh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xh(t),null;case 13:if(ze(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(Ue),null;case 4:return Oi(),null;case 10:return Gh(t.type._context),null;case 22:case 23:return lm(),null;case 24:return null;default:return null}}var cl=!1,Rt=!1,o$=typeof WeakSet=="function"?WeakSet:Set,q=null;function si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tt(e,t,r)}else n.current=null}function Sp(e,t,n){try{n()}catch(r){tt(e,t,r)}}var Mv=!1;function i$(e,t){if(op=Zl,e=Db(),Nh(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,u=0,c=0,d=e,f=null;t:for(;;){for(var v;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),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ip={focusedElem:e,selectionRange:n},Zl=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:$n(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(S){tt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return g=Mv,Mv=!1,g}function Ns(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Sp(t,n,i)}o=o.next}while(o!==r)}}function lc(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 wp(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 jx(e){var t=e.alternate;t!==null&&(e.alternate=null,jx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hn],delete t[sa],delete t[lp],delete t[FP],delete t[VP])),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 Ix(e){return e.tag===5||e.tag===3||e.tag===4}function Av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ix(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 Cp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tu));else if(r!==4&&(e=e.child,e!==null))for(Cp(e,t,n),e=e.sibling;e!==null;)Cp(e,t,n),e=e.sibling}function kp(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(kp(e,t,n),e=e.sibling;e!==null;)kp(e,t,n),e=e.sibling}var xt=null,Tn=!1;function kr(e,t,n){for(n=n.child;n!==null;)_x(e,t,n),n=n.sibling}function _x(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(ec,n)}catch{}switch(n.tag){case 5:Rt||si(n,t);case 6:var r=xt,o=Tn;xt=null,kr(e,t,n),xt=r,Tn=o,xt!==null&&(Tn?(e=xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xt.removeChild(n.stateNode));break;case 18:xt!==null&&(Tn?(e=xt,n=n.stateNode,e.nodeType===8?Fd(e.parentNode,n):e.nodeType===1&&Fd(e,n),ta(e)):Fd(xt,n.stateNode));break;case 4:r=xt,o=Tn,xt=n.stateNode.containerInfo,Tn=!0,kr(e,t,n),xt=r,Tn=o;break;case 0:case 11:case 14:case 15:if(!Rt&&(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)&&Sp(n,t,s),o=o.next}while(o!==r)}kr(e,t,n);break;case 1:if(!Rt&&(si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){tt(n,t,a)}kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:n.mode&1?(Rt=(r=Rt)||n.memoizedState!==null,kr(e,t,n),Rt=r):kr(e,t,n);break;default:kr(e,t,n)}}function jv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o$),t.forEach(function(r){var o=h$.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a$(r/1960))-r,10e?16:e,jr===null)var r=!1;else{if(e=jr,jr=null,hu=0,be&6)throw Error(z(331));var o=be;for(be|=4,q=e.current;q!==null;){var i=q,s=i.child;if(q.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lot()-sm?xo(e,0):im|=n),Kt(e,t)}function Hx(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=Bt();e=hr(e,t),e!==null&&(Ea(e,t,n),Kt(e,n))}function p$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hx(e,n)}function h$(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(z(314))}r!==null&&r.delete(t),Hx(e,n)}var Wx;Wx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ut.current)Ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ht=!1,t$(e,t,n);Ht=!!(e.flags&131072)}else Ht=!1,He&&t.flags&1048576&&qb(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var o=$i(t,It.current);yi(t,n),o=Jh(null,t,r,e,o,n);var i=em();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,Gt(r)?(i=!0,ru(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qh(t),o.updater=ac,t.stateNode=o,o._reactInternals=t,hp(t,r,e,n),t=vp(null,t,r,!0,i,n)):(t.tag=0,He&&i&&Fh(t),Dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=g$(r),e=$n(r,e),o){case 0:t=gp(null,t,r,e,n);break e;case 1:t=Ev(null,t,r,e,n);break e;case 11:t=$v(null,t,r,e,n);break e;case 14:t=Tv(null,t,r,$n(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$n(r,o),gp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$n(r,o),Ev(e,t,r,o,n);case 3:e:{if(Tx(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ex(e,t),lu(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=Ri(Error(z(423)),t),t=Ov(e,t,r,n,o);break e}else if(r!==o){o=Ri(Error(z(424)),t),t=Ov(e,t,r,n,o);break e}else for(Zt=Br(t.stateNode.containerInfo.firstChild),Jt=t,He=!0,En=null,n=Zb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ti(),r===o){t=mr(e,t,n);break e}Dt(e,t,r,n)}t=t.child}return t;case 5:return tx(t),e===null&&dp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,sp(r,o)?s=null:i!==null&&sp(r,i)&&(t.flags|=32),$x(e,t),Dt(e,t,s,n),t.child;case 6:return e===null&&dp(t),null;case 13:return Ex(e,t,n);case 4:return Yh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ei(t,null,r,n):Dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$n(r,o),$v(e,t,r,o,n);case 7:return Dt(e,t,t.pendingProps,n),t.child;case 8:return Dt(e,t,t.pendingProps.children,n),t.child;case 12:return Dt(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,Ie(su,r._currentValue),r._currentValue=s,i!==null)if(Mn(i.value,s)){if(i.children===o.children&&!Ut.current){t=mr(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=sr(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),fp(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(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),fp(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}Dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yi(t,n),o=xn(o),r=r(o),t.flags|=1,Dt(e,t,r,n),t.child;case 14:return r=t.type,o=$n(r,t.pendingProps),o=$n(r.type,o),Tv(e,t,r,o,n);case 15:return kx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$n(r,o),Al(e,t),t.tag=1,Gt(r)?(e=!0,ru(t)):e=!1,yi(t,n),Sx(t,r,o),hp(t,r,o,n),vp(null,t,r,!0,e,n);case 19:return Ox(e,t,n);case 22:return Px(e,t,n)}throw Error(z(156,t.tag))};function Ux(e,t){return yb(e,t)}function m$(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 vn(e,t,n,r){return new m$(e,t,n,r)}function cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g$(e){if(typeof e=="function")return cm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Oh)return 11;if(e===Rh)return 14}return 2}function Vr(e,t){var n=e.alternate;return n===null?(n=vn(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 _l(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")cm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qo:return So(n.children,o,i,t);case Eh:s=8,o|=8;break;case Bf:return e=vn(12,n,t,o|2),e.elementType=Bf,e.lanes=i,e;case zf:return e=vn(13,n,t,o),e.elementType=zf,e.lanes=i,e;case Nf:return e=vn(19,n,t,o),e.elementType=Nf,e.lanes=i,e;case tb:return cc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J1:s=10;break e;case eb:s=9;break e;case Oh:s=11;break e;case Rh:s=14;break e;case $r:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=vn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function So(e,t,n,r){return e=vn(7,e,r,t),e.lanes=n,e}function cc(e,t,n,r){return e=vn(22,e,r,t),e.elementType=tb,e.lanes=n,e.stateNode={isHidden:!1},e}function Yd(e,t,n){return e=vn(6,e,null,t),e.lanes=n,e}function Xd(e,t,n){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v$(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=Rd(0),this.expirationTimes=Rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dm(e,t,n,r,o,i,s,a,l){return e=new v$(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(i),e}function y$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yx)}catch(e){console.error(e)}}Yx(),Y1.exports=rn;var mm=Y1.exports;const pl=xh(mm);var Xx,Fv=mm;Xx=Fv.createRoot,Fv.hydrateRoot;/** - * @remix-run/router v1.19.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k$(){return Math.random().toString(36).substr(2,8)}function Hv(e,t){return{usr:e.state,key:e.key,idx:t}}function Op(e,t,n,r){return n===void 0&&(n=null),pa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yi(t):t,{state:n,key:t&&t.key||r||k$()})}function vu(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 Yi(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 P$(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Ir.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(pa({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Ir.Pop;let w=c(),m=w==null?null:w-u;u=w,l&&l({action:a,location:y.location,delta:m})}function f(w,m){a=Ir.Push;let h=Op(y.location,w,m);u=c()+1;let p=Hv(h,u),S=y.createHref(h);try{s.pushState(p,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}i&&l&&l({action:a,location:y.location,delta:1})}function v(w,m){a=Ir.Replace;let h=Op(y.location,w,m);u=c();let p=Hv(h,u),S=y.createHref(h);s.replaceState(p,"",S),i&&l&&l({action:a,location:y.location,delta:0})}function g(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:vu(w);return h=h.replace(/ $/,"%20"),ct(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Vv,d),l=w,()=>{o.removeEventListener(Vv,d),l=null}},createHref(w){return t(o,w)},createURL:g,encodeLocation(w){let m=g(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:v,go(w){return s.go(w)}};return y}var Wv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wv||(Wv={}));function $$(e,t,n){return n===void 0&&(n="/"),T$(e,t,n,!1)}function T$(e,t,n,r){let o=typeof t=="string"?Yi(t):t,i=gm(o.pathname||"/",n);if(i==null)return null;let s=Zx(e);E$(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("/")&&(ct(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 u=Hr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(ct(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zx(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_$(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Jx(i.path))o(i,s,l)}),t}function Jx(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=Jx(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 E$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const O$=/^:[\w-]+$/,R$=3,M$=2,A$=1,j$=10,I$=-2,Uv=e=>e==="*";function _$(e,t){let n=e.split("/"),r=n.length;return n.some(Uv)&&(r+=I$),t&&(r+=M$),n.filter(o=>!Uv(o)).reduce((o,i)=>o+(O$.test(i)?R$:i===""?A$:j$),r)}function L$(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 D$(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:f,isOptional:v}=c;if(f==="*"){let y=a[d]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[d];return v&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function B$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qx(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 z$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qx(!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 gm(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 N$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yi(e):e;return{pathname:n?n.startsWith("/")?n:F$(n,t):t,search:W$(r),hash:U$(o)}}function F$(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 Qd(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 V$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eS(e,t){let n=V$(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tS(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Yi(e):(o=pa({},e),ct(!o.pathname||!o.pathname.includes("?"),Qd("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Qd("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Qd("#","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=N$(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hr=e=>e.join("/").replace(/\/\/+/g,"/"),H$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,U$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nS=["post","put","patch","delete"];new Set(nS);const K$=["get",...nS];new Set(K$);/** - * React Router v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=tS(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Hr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function Q$(){let{matches:e}=C.useContext(eo),t=e[e.length-1];return t?t.params:{}}function iS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(Io),{matches:o}=C.useContext(eo),{pathname:i}=ja(),s=JSON.stringify(eS(o,r.v7_relativeSplatPath));return C.useMemo(()=>tS(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function Z$(e,t){return J$(e,t)}function J$(e,t,n,r){Aa()||ct(!1);let{navigator:o}=C.useContext(Io),{matches:i}=C.useContext(eo),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=ja(),c;if(t){var d;let w=typeof t=="string"?Yi(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||ct(!1),c=w}else c=u;let f=c.pathname||"/",v=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=$$(e,{pathname:v}),y=o5(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Hr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Hr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?C.createElement(mc.Provider,{value:{location:ha({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ir.Pop}},y):y}function e5(){let e=l5(),t=G$(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 C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,null)}const t5=C.createElement(e5,null);class n5 extends C.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?C.createElement(eo.Provider,{value:this.props.routeContext},C.createElement(rS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function r5(e){let{routeContext:t,match:n,children:r}=e,o=C.useContext(vm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(eo.Provider,{value:t},r)}function o5(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 c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||ct(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let v,g=!1,y=null,w=null;n&&(v=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||t5,l&&(u<0&&f===0?(g=!0,w=null):u===f&&(g=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),h=()=>{let p;return v?p=y:g?p=w:d.route.Component?p=C.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=c,C.createElement(r5,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?C.createElement(n5,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var sS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sS||{}),yu=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}(yu||{});function i5(e){let t=C.useContext(vm);return t||ct(!1),t}function s5(e){let t=C.useContext(q$);return t||ct(!1),t}function a5(e){let t=C.useContext(eo);return t||ct(!1),t}function aS(e){let t=a5(),n=t.matches[t.matches.length-1];return n.route.id||ct(!1),n.route.id}function l5(){var e;let t=C.useContext(rS),n=s5(yu.UseRouteError),r=aS(yu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function u5(){let{router:e}=i5(sS.UseNavigateStable),t=aS(yu.UseNavigateStable),n=C.useRef(!1);return oS(()=>{n.current=!0}),C.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ha({fromRouteId:t},i)))},[e,t])}function uo(e){ct(!1)}function c5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ir.Pop,navigator:i,static:s=!1,future:a}=e;Aa()&&ct(!1);let l=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:l,navigator:i,static:s,future:ha({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Yi(r));let{pathname:c="/",search:d="",hash:f="",state:v=null,key:g="default"}=r,y=C.useMemo(()=>{let w=gm(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:v,key:g},navigationType:o}},[l,c,d,f,v,g,o]);return y==null?null:C.createElement(Io.Provider,{value:u},C.createElement(mc.Provider,{children:n,value:y}))}function d5(e){let{children:t,location:n}=e;return Z$(Rp(t),n)}new Promise(()=>{});function Rp(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,o)=>{if(!C.isValidElement(r))return;let i=[...t,o];if(r.type===C.Fragment){n.push.apply(n,Rp(r.props.children,i));return}r.type!==uo&&ct(!1),!r.props.index||!r.props.children||ct(!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=Rp(r.props.children,i)),n.push(s)}),n}/** - * React Router DOM v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function p5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h5(e,t){return e.button===0&&(!t||t==="_self")&&!p5(e)}const m5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],g5="6";try{window.__reactRouterVersion=g5}catch{}const v5="startTransition",Kv=Gl[v5];function y5(e){let{basename:t,children:n,future:r,window:o}=e,i=C.useRef();i.current==null&&(i.current=C$({window:o,v5Compat:!0}));let s=i.current,[a,l]=C.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=C.useCallback(d=>{u&&Kv?Kv(()=>l(d)):l(d)},[l,u]);return C.useLayoutEffect(()=>s.listen(c),[s,c]),C.createElement(c5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const b5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",x5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nn=C.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=f5(t,m5),{basename:v}=C.useContext(Io),g,y=!1;if(typeof u=="string"&&x5.test(u)&&(g=u,b5))try{let p=new URL(window.location.href),S=u.startsWith("//")?new URL(p.protocol+u):new URL(u),k=gm(S.pathname,v);S.origin===p.origin&&k!=null?u=k+S.search+S.hash:y=!0}catch{}let w=Y$(u,{relative:o}),m=S5(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:d});function h(p){r&&r(p),p.defaultPrevented||m(p)}return C.createElement("a",Mp({},f,{href:g||w,onClick:y||i?r:h,ref:n,target:l}))});var qv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qv||(qv={}));var Yv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yv||(Yv={}));function S5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=ym(),u=ja(),c=iS(e,{relative:s});return C.useCallback(d=>{if(h5(d,n)){d.preventDefault();let f=r!==void 0?r:vu(u)===vu(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function lS(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 F(e){if(typeof e!="string")throw new Error(gr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Wn(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 uS(e){if(!Wn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uS(e[n])}),t}function At(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Wn(e)&&Wn(t)&&Object.keys(t).forEach(o=>{Wn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Wn(e[o])?r[o]=At(e[o],t[o],n):n.clone?r[o]=Wn(t[o])?uS(t[o]):t[o]:r[o]=t[o]}),r}function Hs(e,t){return t?At(e,t,{clone:!1}):e}function w5(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 C5(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function k5(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 P5(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 gc={xs:0,sm:600,md:900,lg:1200,xl:1536},Xv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gc[e]}px)`},$5={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Xv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Xv;return Object.keys(t).reduce((s,a)=>{if(C5(i.keys,a)){const l=k5(r.containerQueries?r:$5,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||gc).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 T5(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function E5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vc(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 bu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vc(e,n)||r,t&&(o=t(o,r,e)),o}function st(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,u=vc(l,r)||{};return vr(s,a,d=>{let f=bu(u,o,d);return d===f&&typeof d=="string"&&(f=bu(u,o,`${t}${d==="default"?"":F(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function O5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const R5={m:"margin",p:"padding"},M5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},A5=O5(e=>{if(e.length>2)if(Qv[e])e=Qv[e];else return[e];const[t,n]=e.split(""),r=R5[t],o=M5[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),bm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bm,...xm];function Ia(e,t,n,r){const o=vc(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 Sm(e){return Ia(e,"spacing",8)}function _a(e,t){return typeof t=="string"||t==null?t:e(t)}function j5(e,t){return n=>e.reduce((r,o)=>(r[o]=_a(t,n),r),{})}function I5(e,t,n,r){if(!t.includes(n))return null;const o=A5(n),i=j5(o,r),s=e[n];return vr(e,s,i)}function cS(e,t){const n=Sm(e.theme);return Object.keys(e).map(r=>I5(e,t,r,n)).reduce(Hs,{})}function Qe(e){return cS(e,bm)}Qe.propTypes={};Qe.filterProps=bm;function Ze(e){return cS(e,xm)}Ze.propTypes={};Ze.filterProps=xm;function yc(...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]?Hs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pn(e){return typeof e!="number"?e:`${e}px solid`}function wn(e,t){return st({prop:e,themeKey:"borders",transform:t})}const _5=wn("border",pn),L5=wn("borderTop",pn),D5=wn("borderRight",pn),B5=wn("borderBottom",pn),z5=wn("borderLeft",pn),N5=wn("borderColor"),F5=wn("borderTopColor"),V5=wn("borderRightColor"),H5=wn("borderBottomColor"),W5=wn("borderLeftColor"),U5=wn("outline",pn),G5=wn("outlineColor"),bc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ia(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:_a(t,r)});return vr(e,e.borderRadius,n)}return null};bc.propTypes={};bc.filterProps=["borderRadius"];yc(_5,L5,D5,B5,z5,N5,F5,V5,H5,W5,bc,U5,G5);const xc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ia(e.theme,"spacing",8),n=r=>({gap:_a(t,r)});return vr(e,e.gap,n)}return null};xc.propTypes={};xc.filterProps=["gap"];const Sc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ia(e.theme,"spacing",8),n=r=>({columnGap:_a(t,r)});return vr(e,e.columnGap,n)}return null};Sc.propTypes={};Sc.filterProps=["columnGap"];const wc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ia(e.theme,"spacing",8),n=r=>({rowGap:_a(t,r)});return vr(e,e.rowGap,n)}return null};wc.propTypes={};wc.filterProps=["rowGap"];const K5=st({prop:"gridColumn"}),q5=st({prop:"gridRow"}),Y5=st({prop:"gridAutoFlow"}),X5=st({prop:"gridAutoColumns"}),Q5=st({prop:"gridAutoRows"}),Z5=st({prop:"gridTemplateColumns"}),J5=st({prop:"gridTemplateRows"}),eT=st({prop:"gridTemplateAreas"}),tT=st({prop:"gridArea"});yc(xc,Sc,wc,K5,q5,Y5,X5,Q5,Z5,J5,eT,tT);function xi(e,t){return t==="grey"?t:e}const nT=st({prop:"color",themeKey:"palette",transform:xi}),rT=st({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xi}),oT=st({prop:"backgroundColor",themeKey:"palette",transform:xi});yc(nT,rT,oT);function Xt(e){return e<=1&&e!==0?`${e*100}%`:e}const iT=st({prop:"width",transform:Xt}),wm=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])||gc[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:Xt(n)}};return vr(e,e.maxWidth,t)}return null};wm.filterProps=["maxWidth"];const sT=st({prop:"minWidth",transform:Xt}),aT=st({prop:"height",transform:Xt}),lT=st({prop:"maxHeight",transform:Xt}),uT=st({prop:"minHeight",transform:Xt});st({prop:"size",cssProperty:"width",transform:Xt});st({prop:"size",cssProperty:"height",transform:Xt});const cT=st({prop:"boxSizing"});yc(iT,wm,sT,aT,lT,uT,cT);const La={border:{themeKey:"borders",transform:pn},borderTop:{themeKey:"borders",transform:pn},borderRight:{themeKey:"borders",transform:pn},borderBottom:{themeKey:"borders",transform:pn},borderLeft:{themeKey:"borders",transform:pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bc},color:{themeKey:"palette",transform:xi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xi},backgroundColor:{themeKey:"palette",transform:xi},p:{style:Ze},pt:{style:Ze},pr:{style:Ze},pb:{style:Ze},pl:{style:Ze},px:{style:Ze},py:{style:Ze},padding:{style:Ze},paddingTop:{style:Ze},paddingRight:{style:Ze},paddingBottom:{style:Ze},paddingLeft:{style:Ze},paddingX:{style:Ze},paddingY:{style:Ze},paddingInline:{style:Ze},paddingInlineStart:{style:Ze},paddingInlineEnd:{style:Ze},paddingBlock:{style:Ze},paddingBlockStart:{style:Ze},paddingBlockEnd:{style:Ze},m:{style:Qe},mt:{style:Qe},mr:{style:Qe},mb:{style:Qe},ml:{style:Qe},mx:{style:Qe},my:{style:Qe},margin:{style:Qe},marginTop:{style:Qe},marginRight:{style:Qe},marginBottom:{style:Qe},marginLeft:{style:Qe},marginX:{style:Qe},marginY:{style:Qe},marginInline:{style:Qe},marginInlineStart:{style:Qe},marginInlineEnd:{style:Qe},marginBlock:{style:Qe},marginBlockStart:{style:Qe},marginBlockEnd:{style:Qe},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:xc},rowGap:{style:wc},columnGap:{style:Sc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xt},maxWidth:{style:wm},minWidth:{transform:Xt},height:{transform:Xt},maxHeight:{transform:Xt},minHeight:{transform:Xt},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 dT(...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 fT(e,t){return typeof e=="function"?e(t):e}function pT(){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:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=vc(o,u)||{};return d?d(s):vr(s,r,g=>{let y=bu(f,c,g);return g===y&&typeof g=="string"&&(y=bu(f,c,`${n}${g==="default"?"":F(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??La;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 u=T5(o.breakpoints),c=Object.keys(u);let d=u;return Object.keys(l).forEach(f=>{const v=fT(l[f],o);if(v!=null)if(typeof v=="object")if(i[f])d=Hs(d,e(f,v,o,i));else{const g=vr({theme:o},v,y=>({[f]:y}));dT(g,v)?d[f]=t({sx:v,theme:o}):d=Hs(d,g)}else d=Hs(d,e(f,v,o,i))}),w5(o,E5(c,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const Eo=pT();Eo.filterProps=["sx"];const hT=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??La;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function dS(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=hT(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Wn(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?wt(Xi,--qt):0,Ai--,lt===10&&(Ai=1,kc--),lt}function en(){return lt=qt2||ga(lt)>3?"":" "}function MT(e,t){for(;--t&&en()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return Da(e,Ll()+(t<6&&Kn()==32&&en()==32))}function jp(e){for(;en();)switch(lt){case e:return qt;case 34:case 39:e!==34&&e!==39&&jp(lt);break;case 40:e===41&&jp(e);break;case 92:en();break}return qt}function AT(e,t){for(;en()&&e+lt!==57;)if(e+lt===84&&Kn()===47)break;return"/*"+Da(t,qt-1)+"*"+Cc(e===47?e:en())}function jT(e){for(;!ga(Kn());)en();return Da(e,qt)}function IT(e){return yS(Bl("",null,null,null,[""],e=vS(e),0,[0],e))}function Bl(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,y=1,w=1,m=1,h=0,p="",S=o,k=i,P=r,$=p;w;)switch(g=h,h=en()){case 40:if(g!=108&&wt($,d-1)==58){Ap($+=ke(Dl(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:$+=Dl(h);break;case 9:case 10:case 13:case 32:$+=RT(g);break;case 92:$+=MT(Ll()-1,7);continue;case 47:switch(Kn()){case 42:case 47:hl(_T(AT(en(),Ll()),t,n),l);break;default:$+="/"}break;case 123*y:a[u++]=Fn($)*m;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:m==-1&&($=ke($,/\f/g,"")),v>0&&Fn($)-d&&hl(v>32?Jv($+";",r,n,d-1):Jv(ke($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(hl(P=Zv($,t,n,u,c,o,a,p,S=[],k=[],d),i),h===123)if(c===0)Bl($,t,P,P,S,i,d,a,k);else switch(f===99&&wt($,3)===110?100:f){case 100:case 108:case 109:case 115:Bl(e,P,P,r&&hl(Zv(e,P,P,0,0,o,a,p,o,S=[],d),k),o,k,d,a,r?S:k);break;default:Bl($,P,P,P,[""],k,0,a,k)}}u=c=v=0,y=m=1,p=$="",d=s;break;case 58:d=1+Fn($),v=g;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&OT()==125)continue}switch($+=Cc(h),h*y){case 38:m=c>0?1:($+="\f",-1);break;case 44:a[u++]=(Fn($)-1)*m,m=1;break;case 64:Kn()===45&&($+=Dl(en())),f=Kn(),c=d=Fn(p=$+=jT(Ll())),h++;break;case 45:g===45&&Fn($)==2&&(y=0)}}return i}function Zv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Pm(f),g=0,y=0,w=0;g0?f[m]+" "+h:ke(h,/&\f/g,f[m])))&&(l[w++]=p);return Pc(e,t,n,o===0?Cm:a,l,u,c)}function _T(e,t,n){return Pc(e,t,n,pS,Cc(ET()),ma(e,2,-2),0)}function Jv(e,t,n,r){return Pc(e,t,n,km,ma(e,0,r),ma(e,r+1,-1),r)}function Si(e,t){for(var n="",r=Pm(e),o=0;o6)switch(wt(e,t+1)){case 109:if(wt(e,t+4)!==45)break;case 102:return ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+xu+(wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ap(e,"stretch")?bS(ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wt(e,t+1)!==115)break;case 6444:switch(wt(e,Fn(e)-3-(~Ap(e,"!important")&&10))){case 107:return ke(e,":",":"+Ce)+e;case 101:return ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(wt(e,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(wt(e,t+11)){case 114:return Ce+e+Et+ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ce+e+Et+ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ce+e+Et+ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ce+e+Et+e+e}return e}var WT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case km:t.return=bS(t.value,t.length);break;case hS:return Si([ms(t,{value:ke(t.value,"@","@"+Ce)})],o);case Cm:if(t.length)return TT(t.props,function(i){switch($T(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Si([ms(t,{props:[ke(i,/:(read-\w+)/,":"+xu+"$1")]})],o);case"::placeholder":return Si([ms(t,{props:[ke(i,/:(plac\w+)/,":"+Ce+"input-$1")]}),ms(t,{props:[ke(i,/:(plac\w+)/,":"+xu+"$1")]}),ms(t,{props:[ke(i,/:(plac\w+)/,Et+"input-$1")]})],o)}return""})}},UT=[WT],GT=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 w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||UT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),m=1;m=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 oE={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},iE=!1,sE=/[A-Z]|^ms/g,aE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$S=function(t){return t.charCodeAt(1)===45},t0=function(t){return t!=null&&typeof t!="boolean"},Zd=fS(function(e){return $S(e)?e:e.replace(sE,"-$&").toLowerCase()}),n0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aE,function(r,o,i){return Vn={name:o,styles:i,next:Vn},o})}return oE[t]!==1&&!$S(t)&&typeof n=="number"&&n!==0?n+"px":n},lE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function va(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 Vn={name:o.name,styles:o.styles,next:Vn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Vn={name:s.name,styles:s.styles,next:Vn},s=s.next;var a=i.styles+";";return a}return uE(e,t,n)}case"function":{if(e!==void 0){var l=Vn,u=n(e);return Vn=l,va(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function uE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?hE:mE},s0=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},gE=!1,vE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kS(n,r,o),dE(function(){return PS(n,r,o)}),null},yE=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=s0(t,n,r),l=a||i0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(xE(o)?n:o):t;return x.jsx(fE,{styles:r})}/** - * @mui/styled-engine v6.1.3 - * - * @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 RS(e,t){return Su(e,t)}function wE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const a0=[];function l0(e){return a0[0]=e,Lc(a0)}const CE=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 kE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=CE(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 u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(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 $E(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 Bc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=kE(n),l=MS(o);let u=At({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...PE,...i}},s);return u=P5(u),u.applyStyles=$E,u=t.reduce((c,d)=>At(c,d),u),u.unstable_sxConfig={...La,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(d){return Eo({sx:d,theme:this})},u}function TE(e){return Object.keys(e).length===0}function EE(e=null){const t=C.useContext(Dc);return!t||TE(t)?e:t}const OE=Bc();function zc(e=OE){return EE(e)}function RE({styles:e,themeId:t,defaultTheme:n={}}){const r=zc(n),o=typeof e=="function"?e(t&&r[t]||r):e;return x.jsx(SE,{styles:o})}const u0=e=>e,ME=()=>{let e=u0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=u0}}},AS=ME();function AE(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=RS("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Eo);return C.forwardRef(function(l,u){const c=zc(n),{className:d,component:f="div",...v}=dS(l);return x.jsx(i,{as:f,ref:u,className:Y(d,o?o(r):r),theme:t&&c[t]||c,...v})})}const jE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ge(e,t,n="Mui"){const r=jE[t];return r?`${n}-${r}`:`${AS.generate(e)}-${t}`}function le(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function jS(e){const{variants:t,...n}=e,r={variants:t,style:l0(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=l0(o.style))}),r}const IE=Bc();function Jd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _E(e){return e?(t,n)=>n[e]:null}function LE(e,t,n){e.theme=BE(e.theme)?n:e.theme[t]||e.theme}function zl(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>zl(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 IS(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function IS(e,t,n=[]){var o;let r;e:for(let i=0;i{wE(a,k=>k.filter(P=>P!==Eo));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:v=_E(NE(c)),...g}=l,y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,w=f||!1;let m=Jd;c==="Root"||c==="root"?m=r:c?m=o:zE(a)&&(m=void 0);const h=RS(a,{shouldForwardProp:m,label:DE(),...g}),p=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function($){return zl($,k)};if(Wn(k)){const P=jS(k);return P.variants?function(T){return zl(T,P)}:P.style}return k},S=(...k)=>{const P=[],$=k.map(p),T=[];if(P.push(i),u&&v&&T.push(function(R){var D,B;const A=(B=(D=R.theme.components)==null?void 0:D[u])==null?void 0:B.styleOverrides;if(!A)return null;const _={};for(const j in A)_[j]=zl(R,A[j]);return v(R,_)}),u&&!y&&T.push(function(R){var _,D;const M=R.theme,A=(D=(_=M==null?void 0:M.components)==null?void 0:_[u])==null?void 0:D.variants;return A?IS(R,A):null}),w||T.push(Eo),Array.isArray($[0])){const E=$.shift(),R=new Array(P.length).fill(""),M=new Array(T.length).fill("");let A;A=[...R,...E,...M],A.raw=[...R,...E.raw,...M],P.unshift(A)}const O=[...P,...$,...T],b=h(...O);return a.muiName&&(b.muiName=a.muiName),b};return h.withConfig&&(S.withConfig=h.withConfig),S}}function DE(e,t){return void 0}function BE(e){for(const t in e)return!1;return!0}function zE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function NE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const FE=_S();function ya(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]=ya(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function VE(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ya(t.components[n].defaultProps,r)}function LS({props:e,name:t,defaultTheme:n,themeId:r}){let o=zc(n);return r&&(o=o[r]||o),VE({theme:o,name:t,props:e})}const Gr=typeof window<"u"?C.useLayoutEffect:C.useEffect;function DS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rm(e,t=0,n=1){return DS(e,t,n)}function HE(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 Kr(e){if(e.type)return e;if(e.charAt(0)==="#")return Kr(HE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(gr(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(gr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const WE=e=>{const t=Kr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Es=(e,t)=>{try{return WE(e)}catch{return e}};function Nc(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 BS(e){e=Kr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,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])),Nc({type:a,values:l})}function Ip(e){e=Kr(e);let t=e.type==="hsl"||e.type==="hsla"?Kr(BS(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 UE(e,t){const n=Ip(e),r=Ip(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function je(e,t){return e=Kr(e),t=Rm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nc(e)}function ml(e,t,n){try{return je(e,t)}catch{return e}}function Fc(e,t){if(e=Kr(e),t=Rm(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 Nc(e)}function Me(e,t,n){try{return Fc(e,t)}catch{return e}}function Vc(e,t){if(e=Kr(e),t=Rm(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 Nc(e)}function Ae(e,t,n){try{return Vc(e,t)}catch{return e}}function GE(e,t=.15){return Ip(e)>.5?Fc(e,t):Vc(e,t)}function gl(e,t,n){try{return GE(e,t)}catch{return e}}function c0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zS(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 ef(e,t){var n,r,o;return C.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 An(e){return e&&e.ownerDocument||document}function yr(e){return An(e).defaultView||window}function _p(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let d0=0;function KE(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(d0+=1,n(`mui-${d0}`))},[t]),r}const qE={...Gl},f0=qE.useId;function Hc(e){if(f0!==void 0){const t=f0();return e??t}return KE(e)}function wu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=C.useRef(e!==void 0),[i,s]=C.useState(t),a=o?e:i,l=C.useCallback(u=>{o||s(u)},[]);return[a,l]}function li(e){const t=C.useRef(e);return Gr(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function ht(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{_p(n,t)})},e)}const p0={};function NS(e,t){const n=C.useRef(p0);return n.current===p0&&(n.current=e(t)),n}const YE=[];function XE(e){C.useEffect(e,YE)}class Mm{constructor(){ss(this,"currentId",null);ss(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ss(this,"disposeEffect",()=>this.clear)}static create(){return new Mm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function FS(){const e=NS(Mm.create).current;return XE(e.disposeEffect),e}function Cu(e){try{return e.matches(":focus-visible")}catch{}return!1}function VS(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const QE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ZE(e){return typeof e=="string"}function HS(e,t,n){return e===void 0||ZE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function WS(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 h0(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 US(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Y(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const s=WS({...o,...r}),a=h0(r),l=h0(o),u=t(s),c=Y(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...u,...n,...l,...a};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function GS(e,t,n){return typeof e=="function"?e(t,n):e}function m0(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:GS(n,r),{props:a,internalRef:l}=US({...i,externalSlotProps:s}),u=ht(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return HS(t,{...a,ref:u},r)}function Ba(e){var t;return parseInt(C.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const JE=C.createContext(),KS=()=>C.useContext(JE)??!1,eO=C.createContext(void 0);function tO(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?ya(o.defaultProps,r):!o.styleOverrides&&!o.variants?ya(o,r):r}function nO({props:e,name:t}){const n=C.useContext(eO);return tO({props:e,name:t,theme:{components:n}})}const g0={theme:void 0};function rO(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(g0.theme=o.theme,i=jS(e(g0)),t=i,n=o.theme),i}}function oO(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 v0=(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])})},iO=(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)},sO=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function tf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return iO(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const c=`--${n?`${n}-`:""}${a.join("-")}`,d=sO(a,l);Object.assign(o,{[c]:d}),v0(i,a,`var(${c})`,u),v0(s,a,`var(${c}, ${d})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function aO(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=tf(l,t);let f=d;const v={},{[a]:g,...y}=i;if(Object.entries(y||{}).forEach(([p,S])=>{const{vars:k,css:P,varsWithDefaults:$}=tf(S,t);f=At(f,$),v[p]={css:P,vars:k}}),g){const{css:p,vars:S,varsWithDefaults:k}=tf(g,t);f=At(f,k),v[a]={css:p,vars:S}}function w(p,S){var P,$;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),p){if(k==="media")return e.defaultColorScheme===p?":root":{[`@media (prefers-color-scheme: ${(($=(P=i[p])==null?void 0:P.palette)==null?void 0:$.mode)||p})`]:{":root":S}};if(k)return e.defaultColorScheme===p?`:root, ${k.replace("%s",String(p))}`:k.replace("%s",String(p))}return":root"}return{vars:f,generateThemeVars:()=>{let p={...u};return Object.entries(v).forEach(([,{vars:S}])=>{p=At(p,S)}),p},generateStyleSheets:()=>{var T,O;const p=[],S=e.defaultColorScheme||"light";function k(b,E){Object.keys(E).length&&p.push(typeof b=="string"?{[b]:{...E}}:b)}k(n(void 0,{...c}),c);const{[S]:P,...$}=v;if(P){const{css:b}=P,E=(O=(T=i[S])==null?void 0:T.palette)==null?void 0:O.mode,R=!r&&E?{colorScheme:E,...b}:{...b};k(n(S,{...R}),R)}return Object.entries($).forEach(([b,{css:E}])=>{var A,_;const R=(_=(A=i[b])==null?void 0:A.palette)==null?void 0:_.mode,M=!r&&R?{colorScheme:R,...E}:{...E};k(n(b,{...M}),M)}),p}}}function lO(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 uO=Bc(),cO=FE("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${F(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),dO=e=>LS({props:e,name:"MuiContainer",defaultTheme:uO}),fO=(e,t)=>{const n=l=>ge(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${F(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ve(a,n,r)};function pO(e={}){const{createStyledComponent:t=cO,useThemeProps:n=dO,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,u)=>{const c=u,d=s.breakpoints.values[c];return d!==0&&(l[s.breakpoints.up(c)]={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 C.forwardRef(function(a,l){const u=n(a),{className:c,component:d="div",disableGutters:f=!1,fixed:v=!1,maxWidth:g="lg",classes:y,...w}=u,m={...u,component:d,disableGutters:f,fixed:v,maxWidth:g},h=fO(m,r);return x.jsx(o,{as:d,ownerState:m,className:Y(h.root,c),ref:l,...w})})}const ba={black:"#000",white:"#fff"},hO={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"},No={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"},Fo={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"},gs={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"},Vo={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"},Ho={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"},Wo={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"},y0={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:ba.white,default:ba.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}},nf={text:{primary:ba.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:ba.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function b0(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=Vc(e.main,o):t==="dark"&&(e.dark=Fc(e.main,i)))}function mO(e="light"){return e==="dark"?{main:Vo[200],light:Vo[50],dark:Vo[400]}:{main:Vo[700],light:Vo[400],dark:Vo[800]}}function gO(e="light"){return e==="dark"?{main:No[200],light:No[50],dark:No[400]}:{main:No[500],light:No[300],dark:No[700]}}function vO(e="light"){return e==="dark"?{main:Fo[500],light:Fo[300],dark:Fo[700]}:{main:Fo[700],light:Fo[400],dark:Fo[800]}}function yO(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[700],light:Ho[500],dark:Ho[900]}}function bO(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[800],light:Wo[500],dark:Wo[900]}}function xO(e="light"){return e==="dark"?{main:gs[400],light:gs[300],dark:gs[700]}:{main:"#ed6c02",light:gs[500],dark:gs[900]}}function Am(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||mO(t),s=e.secondary||gO(t),a=e.error||vO(t),l=e.info||yO(t),u=e.success||bO(t),c=e.warning||xO(t);function d(y){return UE(y,nf.text.primary)>=n?nf.text.primary:y0.text.primary}const f=({color:y,name:w,mainShade:m=500,lightShade:h=300,darkShade:p=700})=>{if(y={...y},!y.main&&y[m]&&(y.main=y[m]),!y.hasOwnProperty("main"))throw new Error(gr(11,w?` (${w})`:"",m));if(typeof y.main!="string")throw new Error(gr(12,w?` (${w})`:"",JSON.stringify(y.main)));return b0(y,"light",h,r),b0(y,"dark",p,r),y.contrastText||(y.contrastText=d(y.main)),y},v={dark:nf,light:y0};return At({common:{...ba},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:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:hO,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...v[t]},o)}function SO(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 wO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function CO(e){return Math.round(e*1e5)/1e5}const x0={textTransform:"uppercase"},S0='"Roboto", "Helvetica", "Arial", sans-serif';function kO(e,t){const{fontFamily:n=S0,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t,f=r/14,v=c||(w=>`${w/l*f}rem`),g=(w,m,h,p,S)=>({fontFamily:n,fontWeight:w,fontSize:v(m),lineHeight:h,...n===S0?{letterSpacing:`${CO(p/m)}em`}:{},...S,...u}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,x0),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,x0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:l,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...y},d,{clone:!1})}const PO=.2,$O=.14,TO=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${PO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$O})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TO})`].join(",")}const EO=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],OO={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)"},RO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w0(e){return`${Math.round(e)}ms`}function MO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function AO(e){const t={...OO,...e.easing},n={...RO,...e.duration};return{getAutoHeightDuration:MO,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...u}=i;return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:w0(s)} ${a} ${typeof l=="string"?l:w0(l)}`).join(",")},...e,easing:t,duration:n}}const jO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Lp(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=e;if(e.vars)throw new Error(gr(20));const c=Am(i),d=Bc(e);let f=At(d,{mixins:wO(d.breakpoints,r),palette:c,shadows:EO.slice(),typography:kO(c,a),transitions:AO(s),zIndex:{...jO}});return f=At(f,u),f=t.reduce((v,g)=>At(v,g),f),f.unstable_sxConfig={...La,...u==null?void 0:u.unstable_sxConfig},f.unstable_sx=function(g){return Eo({sx:g,theme:this})},f}function Dp(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 IO=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Dp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function YS(e){return e==="dark"?IO:[]}function _O(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Am(t);return{palette:i,opacity:{...qS(i.mode),...n},overlays:r||YS(i.mode),...o}}function LO(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 DO=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],BO=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 DO(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 zO(e){return Wn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function NO(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i{e[n]||(e[n]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function Os(e){return!e||!e.startsWith("hsl")?e:BS(e)}function er(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Es(Os(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 VO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Dn=e=>{try{return e()}catch{}},HO=(e="mui")=>oO(e);function rf(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=_O({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=Lp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...qS(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||YS(o)},s}function WO(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=LO,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&c!=="light"?"light":c),f=HO(i),{[d]:v,light:g,dark:y,...w}=n,m={...w};let h=v;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(h=!0),!h)throw new Error(gr(21,d));const p=rf(m,h,u,d);g&&!m.light&&rf(m,g,void 0,"light"),y&&!m.dark&&rf(m,y,void 0,"dark");let S={defaultColorScheme:d,...p,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:m,font:{...SO(p.typography),...p.font},spacing:VO(u.spacing)};Object.keys(S.colorSchemes).forEach(O=>{const b=S.colorSchemes[O].palette,E=R=>{const M=R.split("-"),A=M[1],_=M[2];return f(R,b[A][_])};if(b.mode==="light"&&(I(b.common,"background","#fff"),I(b.common,"onBackground","#000")),b.mode==="dark"&&(I(b.common,"background","#000"),I(b.common,"onBackground","#fff")),FO(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){I(b.Alert,"errorColor",Me(b.error.light,.6)),I(b.Alert,"infoColor",Me(b.info.light,.6)),I(b.Alert,"successColor",Me(b.success.light,.6)),I(b.Alert,"warningColor",Me(b.warning.light,.6)),I(b.Alert,"errorFilledBg",E("palette-error-main")),I(b.Alert,"infoFilledBg",E("palette-info-main")),I(b.Alert,"successFilledBg",E("palette-success-main")),I(b.Alert,"warningFilledBg",E("palette-warning-main")),I(b.Alert,"errorFilledColor",Dn(()=>b.getContrastText(b.error.main))),I(b.Alert,"infoFilledColor",Dn(()=>b.getContrastText(b.info.main))),I(b.Alert,"successFilledColor",Dn(()=>b.getContrastText(b.success.main))),I(b.Alert,"warningFilledColor",Dn(()=>b.getContrastText(b.warning.main))),I(b.Alert,"errorStandardBg",Ae(b.error.light,.9)),I(b.Alert,"infoStandardBg",Ae(b.info.light,.9)),I(b.Alert,"successStandardBg",Ae(b.success.light,.9)),I(b.Alert,"warningStandardBg",Ae(b.warning.light,.9)),I(b.Alert,"errorIconColor",E("palette-error-main")),I(b.Alert,"infoIconColor",E("palette-info-main")),I(b.Alert,"successIconColor",E("palette-success-main")),I(b.Alert,"warningIconColor",E("palette-warning-main")),I(b.AppBar,"defaultBg",E("palette-grey-100")),I(b.Avatar,"defaultBg",E("palette-grey-400")),I(b.Button,"inheritContainedBg",E("palette-grey-300")),I(b.Button,"inheritContainedHoverBg",E("palette-grey-A100")),I(b.Chip,"defaultBorder",E("palette-grey-400")),I(b.Chip,"defaultAvatarColor",E("palette-grey-700")),I(b.Chip,"defaultIconColor",E("palette-grey-700")),I(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),I(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),I(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),I(b.LinearProgress,"primaryBg",Ae(b.primary.main,.62)),I(b.LinearProgress,"secondaryBg",Ae(b.secondary.main,.62)),I(b.LinearProgress,"errorBg",Ae(b.error.main,.62)),I(b.LinearProgress,"infoBg",Ae(b.info.main,.62)),I(b.LinearProgress,"successBg",Ae(b.success.main,.62)),I(b.LinearProgress,"warningBg",Ae(b.warning.main,.62)),I(b.Skeleton,"bg",`rgba(${E("palette-text-primaryChannel")} / 0.11)`),I(b.Slider,"primaryTrack",Ae(b.primary.main,.62)),I(b.Slider,"secondaryTrack",Ae(b.secondary.main,.62)),I(b.Slider,"errorTrack",Ae(b.error.main,.62)),I(b.Slider,"infoTrack",Ae(b.info.main,.62)),I(b.Slider,"successTrack",Ae(b.success.main,.62)),I(b.Slider,"warningTrack",Ae(b.warning.main,.62));const R=gl(b.background.default,.8);I(b.SnackbarContent,"bg",R),I(b.SnackbarContent,"color",Dn(()=>b.getContrastText(R))),I(b.SpeedDialAction,"fabHoverBg",gl(b.background.paper,.15)),I(b.StepConnector,"border",E("palette-grey-400")),I(b.StepContent,"border",E("palette-grey-400")),I(b.Switch,"defaultColor",E("palette-common-white")),I(b.Switch,"defaultDisabledColor",E("palette-grey-100")),I(b.Switch,"primaryDisabledColor",Ae(b.primary.main,.62)),I(b.Switch,"secondaryDisabledColor",Ae(b.secondary.main,.62)),I(b.Switch,"errorDisabledColor",Ae(b.error.main,.62)),I(b.Switch,"infoDisabledColor",Ae(b.info.main,.62)),I(b.Switch,"successDisabledColor",Ae(b.success.main,.62)),I(b.Switch,"warningDisabledColor",Ae(b.warning.main,.62)),I(b.TableCell,"border",Ae(ml(b.divider,1),.88)),I(b.Tooltip,"bg",ml(b.grey[700],.92))}if(b.mode==="dark"){I(b.Alert,"errorColor",Ae(b.error.light,.6)),I(b.Alert,"infoColor",Ae(b.info.light,.6)),I(b.Alert,"successColor",Ae(b.success.light,.6)),I(b.Alert,"warningColor",Ae(b.warning.light,.6)),I(b.Alert,"errorFilledBg",E("palette-error-dark")),I(b.Alert,"infoFilledBg",E("palette-info-dark")),I(b.Alert,"successFilledBg",E("palette-success-dark")),I(b.Alert,"warningFilledBg",E("palette-warning-dark")),I(b.Alert,"errorFilledColor",Dn(()=>b.getContrastText(b.error.dark))),I(b.Alert,"infoFilledColor",Dn(()=>b.getContrastText(b.info.dark))),I(b.Alert,"successFilledColor",Dn(()=>b.getContrastText(b.success.dark))),I(b.Alert,"warningFilledColor",Dn(()=>b.getContrastText(b.warning.dark))),I(b.Alert,"errorStandardBg",Me(b.error.light,.9)),I(b.Alert,"infoStandardBg",Me(b.info.light,.9)),I(b.Alert,"successStandardBg",Me(b.success.light,.9)),I(b.Alert,"warningStandardBg",Me(b.warning.light,.9)),I(b.Alert,"errorIconColor",E("palette-error-main")),I(b.Alert,"infoIconColor",E("palette-info-main")),I(b.Alert,"successIconColor",E("palette-success-main")),I(b.Alert,"warningIconColor",E("palette-warning-main")),I(b.AppBar,"defaultBg",E("palette-grey-900")),I(b.AppBar,"darkBg",E("palette-background-paper")),I(b.AppBar,"darkColor",E("palette-text-primary")),I(b.Avatar,"defaultBg",E("palette-grey-600")),I(b.Button,"inheritContainedBg",E("palette-grey-800")),I(b.Button,"inheritContainedHoverBg",E("palette-grey-700")),I(b.Chip,"defaultBorder",E("palette-grey-700")),I(b.Chip,"defaultAvatarColor",E("palette-grey-300")),I(b.Chip,"defaultIconColor",E("palette-grey-300")),I(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),I(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),I(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),I(b.LinearProgress,"primaryBg",Me(b.primary.main,.5)),I(b.LinearProgress,"secondaryBg",Me(b.secondary.main,.5)),I(b.LinearProgress,"errorBg",Me(b.error.main,.5)),I(b.LinearProgress,"infoBg",Me(b.info.main,.5)),I(b.LinearProgress,"successBg",Me(b.success.main,.5)),I(b.LinearProgress,"warningBg",Me(b.warning.main,.5)),I(b.Skeleton,"bg",`rgba(${E("palette-text-primaryChannel")} / 0.13)`),I(b.Slider,"primaryTrack",Me(b.primary.main,.5)),I(b.Slider,"secondaryTrack",Me(b.secondary.main,.5)),I(b.Slider,"errorTrack",Me(b.error.main,.5)),I(b.Slider,"infoTrack",Me(b.info.main,.5)),I(b.Slider,"successTrack",Me(b.success.main,.5)),I(b.Slider,"warningTrack",Me(b.warning.main,.5));const R=gl(b.background.default,.98);I(b.SnackbarContent,"bg",R),I(b.SnackbarContent,"color",Dn(()=>b.getContrastText(R))),I(b.SpeedDialAction,"fabHoverBg",gl(b.background.paper,.15)),I(b.StepConnector,"border",E("palette-grey-600")),I(b.StepContent,"border",E("palette-grey-600")),I(b.Switch,"defaultColor",E("palette-grey-300")),I(b.Switch,"defaultDisabledColor",E("palette-grey-600")),I(b.Switch,"primaryDisabledColor",Me(b.primary.main,.55)),I(b.Switch,"secondaryDisabledColor",Me(b.secondary.main,.55)),I(b.Switch,"errorDisabledColor",Me(b.error.main,.55)),I(b.Switch,"infoDisabledColor",Me(b.info.main,.55)),I(b.Switch,"successDisabledColor",Me(b.success.main,.55)),I(b.Switch,"warningDisabledColor",Me(b.warning.main,.55)),I(b.TableCell,"border",Me(ml(b.divider,1),.68)),I(b.Tooltip,"bg",ml(b.grey[700],.92))}er(b.background,"default"),er(b.background,"paper"),er(b.common,"background"),er(b.common,"onBackground"),er(b,"divider"),Object.keys(b).forEach(R=>{const M=b[R];M&&typeof M=="object"&&(M.main&&I(b[R],"mainChannel",Es(Os(M.main))),M.light&&I(b[R],"lightChannel",Es(Os(M.light))),M.dark&&I(b[R],"darkChannel",Es(Os(M.dark))),M.contrastText&&I(b[R],"contrastTextChannel",Es(Os(M.contrastText))),R==="text"&&(er(b[R],"primary"),er(b[R],"secondary")),R==="action"&&(M.active&&er(b[R],"active"),M.selected&&er(b[R],"selected")))})}),S=t.reduce((O,b)=>At(O,b),S);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:BO(S)},{vars:P,generateThemeVars:$,generateStyleSheets:T}=aO(S,k);return S.vars=P,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([O,b])=>{S[O]=b}),S.generateThemeVars=$,S.generateStyleSheets=T,S.generateSpacing=function(){return MS(u.spacing,Sm(this))},S.getColorSchemeSelector=lO(a),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...La,...u==null?void 0:u.unstable_sxConfig},S.unstable_sx=function(b){return Eo({sx:b,theme:this})},S.toRuntimeSource=NO,S}function C0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Am({...n===!0?{}:n.palette,mode:t})})}function XS(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],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Lp(e,...t);let c=n;"palette"in e||u[a]&&(u[a]!==!0?c=u[a].palette:a==="dark"&&(c={mode:"dark"}));const d=Lp({...e,palette:c},...t);return d.defaultColorScheme=a,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},C0(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},C0(d,"light",u.light)),d}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),WO({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Wc=XS(),za="$$material";function jm(){const e=zc(Wc);return e[za]||e}function UO(e){return x.jsx(RE,{...e,defaultTheme:Wc,themeId:za})}function Im(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const an=e=>Im(e)&&e!=="classes",G=_S({themeId:za,defaultTheme:Wc,rootShouldForwardProp:an});function GO(e){return function(n){return x.jsx(UO,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function KO(){return dS}const xe=rO;function Se(e){return nO(e)}function qO(e){return typeof e.main=="string"}function YO(e,t=[]){if(!qO(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wt(e=[]){return([,t])=>t&&YO(t,e)}function XO(e){return ge("MuiPaper",e)}le("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 QO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(i,XO,o)},ZO=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(xe(({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)"}}]}))),Oo=C.forwardRef(function(t,n){var v;const r=Se({props:t,name:"MuiPaper"}),o=jm(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...c}=r,d={...r,component:s,elevation:a,square:l,variant:u},f=QO(d);return x.jsx(ZO,{as:s,ownerState:d,className:Y(f.root,i),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(v=o.vars.overlays)==null?void 0:v[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${je("#fff",Dp(a))}, ${je("#fff",Dp(a))})`}},...c.style}})});function JO(e){return ge("MuiAppBar",e)}le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const eR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${F(t)}`,`position${F(n)}`]};return ve(o,JO,r)},k0=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,tR=G(Oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${F(n.position)}`],t[`color${F(n.color)}`]]}})(xe(({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(Wt(["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?k0(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?k0(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"})}}]}))),nR=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,u={...r,color:i,position:a,enableColorOnDark:s},c=eR(u);return x.jsx(tR,{square:!0,component:"header",ownerState:u,elevation:4,className:Y(c.root,o,a==="fixed"&&"mui-fixed"),ref:n,...l})});function QS({props:e,name:t}){return LS({props:e,name:t,defaultTheme:Wc,themeId:za})}const rR=le("MuiBox",["root"]),oR=XS(),me=AE({themeId:za,defaultTheme:oR,defaultClassName:rR.root,generateClassName:AS.generate});function iR(e){return ge("MuiToolbar",e)}le("MuiToolbar",["root","gutters","regular","dense"]);const sR=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ve({root:["root",!n&&"gutters",r]},iR,t)},aR=G("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(xe(({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}]}))),lR=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular",...l}=r,u={...r,component:i,disableGutters:s,variant:a},c=sR(u);return x.jsx(aR,{as:i,className:Y(c.root,o),ref:n,ownerState:u,...l})});class ku{constructor(){ss(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ku}static use(){const t=NS(ku.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=cR(),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 uR(){return ku.use()}function cR(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function it(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 Bp(e,t){return Bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bp(e,t)}function ZS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bp(e,t)}const P0={disabled:!1},Pu=gn.createContext(null);var dR=function(t){return t.scrollTop},Rs="unmounted",co="exited",fo="entering",Yo="entered",zp="exiting",Qn=function(e){ZS(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=co,i.appearStatus=fo):l=Yo:r.unmountOnExit||r.mountOnEnter?l=Rs:l=co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Rs?{status:co}: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!==fo&&s!==Yo&&(i=fo):(s===fo||s===Yo)&&(i=zp)}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===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:pl.findDOMNode(this);s&&dR(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===co&&this.setState({status:Rs})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[pl.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||P0.disabled){this.safeSetState({status:Yo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:fo},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Yo},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:pl.findDOMNode(this);if(!i||P0.disabled){this.safeSetState({status:co},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:zp},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:co},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:pl.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],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Rs)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=it(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gn.createElement(Pu.Provider,{value:null},typeof s=="function"?s(o,a):gn.cloneElement(gn.Children.only(s),a))},t}(gn.Component);Qn.contextType=Pu;Qn.propTypes={};function Uo(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uo,onEntering:Uo,onEntered:Uo,onExit:Uo,onExiting:Uo,onExited:Uo};Qn.UNMOUNTED=Rs;Qn.EXITED=co;Qn.ENTERING=fo;Qn.ENTERED=Yo;Qn.EXITING=zp;function fR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _m(e,t){var n=function(i){return t&&C.isValidElement(i)?t(i):i},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pR(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}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,u);return()=>{clearTimeout(y)}}},[l,a,u]),x.jsx("span",{className:f,style:v,children:x.jsx("span",{className:g})})}const cn=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Np=550,bR=80,xR=Om` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,SR=Om` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,wR=Om` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,CR=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kR=G(yR,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${cn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${xR}; - animation-duration: ${Np}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - &.${cn.ripplePulsate} { - animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; - } - - & .${cn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${cn.childLeaving} { - opacity: 0; - animation-name: ${SR}; - animation-duration: ${Np}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - & .${cn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${wR}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,PR=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=C.useState([]),c=C.useRef(0),d=C.useRef(null);C.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=C.useRef(!1),v=FS(),g=C.useRef(null),y=C.useRef(null),w=C.useCallback(S=>{const{pulsate:k,rippleX:P,rippleY:$,rippleSize:T,cb:O}=S;u(b=>[...b,x.jsx(kR,{classes:{ripple:Y(i.ripple,cn.ripple),rippleVisible:Y(i.rippleVisible,cn.rippleVisible),ripplePulsate:Y(i.ripplePulsate,cn.ripplePulsate),child:Y(i.child,cn.child),childLeaving:Y(i.childLeaving,cn.childLeaving),childPulsate:Y(i.childPulsate,cn.childPulsate)},timeout:Np,pulsate:k,rippleX:P,rippleY:$,rippleSize:T},c.current)]),c.current+=1,d.current=O},[i]),m=C.useCallback((S={},k={},P=()=>{})=>{const{pulsate:$=!1,center:T=o||k.pulsate,fakeElement:O=!1}=k;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const b=O?null:y.current,E=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,M,A;if(T||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)R=Math.round(E.width/2),M=Math.round(E.height/2);else{const{clientX:_,clientY:D}=S.touches&&S.touches.length>0?S.touches[0]:S;R=Math.round(_-E.left),M=Math.round(D-E.top)}if(T)A=Math.sqrt((2*E.width**2+E.height**2)/3),A%2===0&&(A+=1);else{const _=Math.max(Math.abs((b?b.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((b?b.clientHeight:0)-M),M)*2+2;A=Math.sqrt(_**2+D**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{w({pulsate:$,rippleX:R,rippleY:M,rippleSize:A,cb:P})},v.start(bR,()=>{g.current&&(g.current(),g.current=null)})):w({pulsate:$,rippleX:R,rippleY:M,rippleSize:A,cb:P})},[o,w,v]),h=C.useCallback(()=>{m({},{pulsate:!0})},[m]),p=C.useCallback((S,k)=>{if(v.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{p(S,k)});return}g.current=null,u(P=>P.length>0?P.slice(1):P),d.current=k},[v]);return C.useImperativeHandle(n,()=>({pulsate:h,start:m,stop:p}),[h,m,p]),x.jsx(CR,{className:Y(cn.root,i.root,s),ref:y,...a,children:x.jsx(Lm,{component:null,exit:!0,children:l})})});function $R(e){return ge("MuiButtonBase",e)}const TR=le("MuiButtonBase",["root","disabled","focusVisible"]),ER=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ve({root:["root",t&&"disabled",n&&"focusVisible"]},$R,o);return n&&r&&(s.root+=` ${r}`),s},OR=G("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ji=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:v,LinkComponent:g="a",onBlur:y,onClick:w,onContextMenu:m,onDragLeave:h,onFocus:p,onFocusVisible:S,onKeyDown:k,onKeyUp:P,onMouseDown:$,onMouseLeave:T,onMouseUp:O,onTouchEnd:b,onTouchMove:E,onTouchStart:R,tabIndex:M=0,TouchRippleProps:A,touchRippleRef:_,type:D,...B}=r,j=C.useRef(null),L=uR(),V=ht(L.ref,_),[X,Z]=C.useState(!1);u&&X&&Z(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{Z(!0),j.current.focus()}}),[]);const ee=L.shouldMount&&!c&&!u;C.useEffect(()=>{X&&f&&!c&&L.pulsate()},[c,f,X,L]);function te(ne,yt,ns=d){return li(Jn=>(yt&&yt(Jn),ns||L[ne](Jn),!0))}const ue=te("start",$),we=te("stop",m),se=te("stop",h),U=te("stop",O),J=te("stop",ne=>{X&&ne.preventDefault(),T&&T(ne)}),K=te("start",R),H=te("stop",b),Q=te("stop",E),Pe=te("stop",ne=>{Cu(ne.target)||Z(!1),y&&y(ne)},!1),ce=li(ne=>{j.current||(j.current=ne.currentTarget),Cu(ne.target)&&(Z(!0),S&&S(ne)),p&&p(ne)}),ye=()=>{const ne=j.current;return l&&l!=="button"&&!(ne.tagName==="A"&&ne.href)},dt=li(ne=>{f&&!ne.repeat&&X&&ne.key===" "&&L.stop(ne,()=>{L.start(ne)}),ne.target===ne.currentTarget&&ye()&&ne.key===" "&&ne.preventDefault(),k&&k(ne),ne.target===ne.currentTarget&&ye()&&ne.key==="Enter"&&!u&&(ne.preventDefault(),w&&w(ne))}),Xe=li(ne=>{f&&ne.key===" "&&X&&!ne.defaultPrevented&&L.stop(ne,()=>{L.pulsate(ne)}),P&&P(ne),w&&ne.target===ne.currentTarget&&ye()&&ne.key===" "&&!ne.defaultPrevented&&w(ne)});let _e=l;_e==="button"&&(B.href||B.to)&&(_e=g);const nt={};_e==="button"?(nt.type=D===void 0?"button":D,nt.disabled=u):(!B.href&&!B.to&&(nt.role="button"),u&&(nt["aria-disabled"]=u));const _n=ht(n,j),Le={...r,centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:M,focusVisible:X},Zn=ER(Le);return x.jsxs(OR,{as:_e,className:Y(Zn.root,a),ownerState:Le,onBlur:Pe,onClick:w,onContextMenu:we,onFocus:ce,onKeyDown:dt,onKeyUp:Xe,onMouseDown:ue,onMouseLeave:J,onMouseUp:U,onDragLeave:se,onTouchEnd:H,onTouchMove:Q,onTouchStart:K,ref:_n,tabIndex:u?-1:M,type:D,...nt,...B,children:[s,ee?x.jsx(PR,{ref:V,center:i,...A}):null]})});function RR(e){return ge("MuiIconButton",e)}const MR=le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),AR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${F(r)}`,o&&`edge${F(o)}`,`size${F(i)}`]};return ve(s,RR,t)},jR=G(ji,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${F(n.color)}`],n.edge&&t[`edge${F(n.edge)}`],t[`size${F(n.size)}`]]}})(xe(({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:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@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}}]})),xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${MR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),yn=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,disableRipple:c=!1,size:d="medium",...f}=r,v={...r,edge:o,color:a,disabled:l,disableFocusRipple:u,disableRipple:c,size:d},g=AR(v);return x.jsx(jR,{className:Y(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,disableRipple:c,ref:n,...f,ownerState:v,children:i})});function IR(e){return ge("MuiTypography",e)}le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _R={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},LR=KO(),DR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${F(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ve(a,IR,s)},BR=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${F(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(xe(({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(Wt()).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${F(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}}]}})),$0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ae=C.forwardRef(function(t,n){const{color:r,...o}=Se({props:t,name:"MuiTypography"}),i=!_R[r],s=LR({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:v="body1",variantMapping:g=$0,...y}=s,w={...s,align:a,color:r,className:l,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:v,variantMapping:g},m=u||(f?"p":g[v]||$0[v])||"span",h=DR(w);return x.jsx(BR,{as:m,ref:n,className:Y(h.root,l),...y,ownerState:w,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});var Re={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dm=Symbol.for("react.element"),Bm=Symbol.for("react.portal"),Uc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),Kc=Symbol.for("react.profiler"),qc=Symbol.for("react.provider"),Yc=Symbol.for("react.context"),zR=Symbol.for("react.server_context"),Xc=Symbol.for("react.forward_ref"),Qc=Symbol.for("react.suspense"),Zc=Symbol.for("react.suspense_list"),Jc=Symbol.for("react.memo"),ed=Symbol.for("react.lazy"),NR=Symbol.for("react.offscreen"),JS;JS=Symbol.for("react.module.reference");function Cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dm:switch(e=e.type,e){case Uc:case Kc:case Gc:case Qc:case Zc:return e;default:switch(e=e&&e.$$typeof,e){case zR:case Yc:case Xc:case ed:case Jc:case qc:return e;default:return t}}case Bm:return t}}}Re.ContextConsumer=Yc;Re.ContextProvider=qc;Re.Element=Dm;Re.ForwardRef=Xc;Re.Fragment=Uc;Re.Lazy=ed;Re.Memo=Jc;Re.Portal=Bm;Re.Profiler=Kc;Re.StrictMode=Gc;Re.Suspense=Qc;Re.SuspenseList=Zc;Re.isAsyncMode=function(){return!1};Re.isConcurrentMode=function(){return!1};Re.isContextConsumer=function(e){return Cn(e)===Yc};Re.isContextProvider=function(e){return Cn(e)===qc};Re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dm};Re.isForwardRef=function(e){return Cn(e)===Xc};Re.isFragment=function(e){return Cn(e)===Uc};Re.isLazy=function(e){return Cn(e)===ed};Re.isMemo=function(e){return Cn(e)===Jc};Re.isPortal=function(e){return Cn(e)===Bm};Re.isProfiler=function(e){return Cn(e)===Kc};Re.isStrictMode=function(e){return Cn(e)===Gc};Re.isSuspense=function(e){return Cn(e)===Qc};Re.isSuspenseList=function(e){return Cn(e)===Zc};Re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uc||e===Kc||e===Gc||e===Qc||e===Zc||e===NR||typeof e=="object"&&e!==null&&(e.$$typeof===ed||e.$$typeof===Jc||e.$$typeof===qc||e.$$typeof===Yc||e.$$typeof===Xc||e.$$typeof===JS||e.getModuleId!==void 0)};Re.typeOf=Cn;const Fp=C.createContext({});function FR(e){return ge("MuiList",e)}le("MuiList",["root","padding","dense","subheader"]);const VR=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ve({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},FR,t)},HR=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),WR=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u,...c}=r,d=C.useMemo(()=>({dense:a}),[a]),f={...r,component:s,dense:a,disablePadding:l},v=VR(f);return x.jsx(Fp.Provider,{value:d,children:x.jsxs(HR,{as:s,className:Y(v.root,i),ref:n,ownerState:f,...c,children:[u,o]})})});function UR(e){return ge("MuiSvgIcon",e)}le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GR=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${F(t)}`,`fontSize${F(n)}`]};return ve(o,UR,r)},KR=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${F(n.color)}`],t[`fontSize${F(n.fontSize)}`]]}})(xe(({theme:e})=>{var t,n,r,o,i,s,a,l,u,c,d,f,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props: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:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var w,m;return{props:{color:y},style:{color:(m=(w=(e.vars??e).palette)==null?void 0:w[y])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),$u=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...v}=r,g=C.isValidElement(o)&&o.type==="svg",y={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:g},w={};c||(w.viewBox=f);const m=GR(y);return x.jsxs(KR,{as:a,className:Y(m.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...v,...g&&o.props,ownerState:y,children:[g?o.props.children:o,d?x.jsx("title",{children:d}):null]})});$u&&($u.muiName="SvgIcon");function Ee(e,t){function n(r,o){return x.jsx($u,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=$u.muiName,C.memo(C.forwardRef(n))}function of(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function T0(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ew(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 vs(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")||!ew(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const qR=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...f}=t,v=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gr(()=>{o&&v.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(p,{direction:S})=>{const k=!v.current.style.width;if(p.clientHeight{const S=v.current,k=p.key;if(p.ctrlKey||p.metaKey||p.altKey){c&&c(p);return}const $=An(S).activeElement;if(k==="ArrowDown")p.preventDefault(),vs(S,$,u,l,of);else if(k==="ArrowUp")p.preventDefault(),vs(S,$,u,l,T0);else if(k==="Home")p.preventDefault(),vs(S,null,u,l,of);else if(k==="End")p.preventDefault(),vs(S,null,u,l,T0);else if(k.length===1){const T=g.current,O=k.toLowerCase(),b=performance.now();T.keys.length>0&&(b-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&O!==T.keys[0]&&(T.repeating=!1)),T.lastTime=b,T.keys.push(O);const E=$&&!T.repeating&&ew($,T);T.previousKeyMatched&&(E||vs(S,$,!1,l,of,T))?p.preventDefault():T.previousKeyMatched=!1}c&&c(p)},w=ht(v,n);let m=-1;C.Children.forEach(s,(p,S)=>{if(!C.isValidElement(p)){m===S&&(m+=1,m>=s.length&&(m=-1));return}p.props.disabled||(d==="selectedMenu"&&p.props.selected||m===-1)&&(m=S),m===S&&(p.props.disabled||p.props.muiSkipListHighlight||p.type.muiSkipListHighlight)&&(m+=1,m>=s.length&&(m=-1))});const h=C.Children.map(s,(p,S)=>{if(S===m){const k={};return i&&(k.autoFocus=!0),p.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),C.cloneElement(p,k)}return p});return x.jsx(WR,{role:"menu",ref:w,className:a,onKeyDown:y,tabIndex:o?0:-1,...f,children:h})});function Vp(e){return typeof e=="string"}const tw=e=>e.scrollTop;function Tu(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 Hp(e){return`scale(${e}, ${e**2})`}const YR={entering:{opacity:1,transform:Hp(1)},entered:{opacity:1,transform:"none"}},sf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wp=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:v,style:g,timeout:y="auto",TransitionComponent:w=Qn,...m}=t,h=FS(),p=C.useRef(),S=jm(),k=C.useRef(null),P=ht(k,Ba(i),n),$=_=>D=>{if(_){const B=k.current;D===void 0?_(B):_(B,D)}},T=$(c),O=$((_,D)=>{tw(_);const{duration:B,delay:j,easing:L}=Tu({style:g,timeout:y,easing:s},{mode:"enter"});let V;y==="auto"?(V=S.transitions.getAutoHeightDuration(_.clientHeight),p.current=V):V=B,_.style.transition=[S.transitions.create("opacity",{duration:V,delay:j}),S.transitions.create("transform",{duration:sf?V:V*.666,delay:j,easing:L})].join(","),l&&l(_,D)}),b=$(u),E=$(v),R=$(_=>{const{duration:D,delay:B,easing:j}=Tu({style:g,timeout:y,easing:s},{mode:"exit"});let L;y==="auto"?(L=S.transitions.getAutoHeightDuration(_.clientHeight),p.current=L):L=D,_.style.transition=[S.transitions.create("opacity",{duration:L,delay:B}),S.transitions.create("transform",{duration:sf?L:L*.666,delay:sf?B:B||L*.333,easing:j})].join(","),_.style.opacity=0,_.style.transform=Hp(.75),d&&d(_)}),M=$(f),A=_=>{y==="auto"&&h.start(p.current||0,_),r&&r(k.current,_)};return x.jsx(w,{appear:o,in:a,nodeRef:k,onEnter:O,onEntered:b,onEntering:T,onExit:R,onExited:M,onExiting:E,addEndListener:A,timeout:y==="auto"?null:y,...m,children:(_,D)=>C.cloneElement(i,{style:{opacity:0,transform:Hp(.75),visibility:_==="exited"&&!a?"hidden":void 0,...YR[_],...g,...i.props.style},ref:P,...D})})});Wp&&(Wp.muiSupportAuto=!0);function XR(e){const t=An(e);return t.body===e?yr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ws(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function E0(e){return parseInt(yr(e).getComputedStyle(e).paddingRight,10)||0}function QR(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 O0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=!i.includes(s),l=!QR(s);a&&l&&Ws(s,o)})}function af(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ZR(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(XR(r)){const s=VS(yr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${E0(r)+s}px`;const a=An(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${E0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=An(r).body;else{const s=r.parentElement,a=yr(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 JR(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class e3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ws(t.modalRef,!1);const o=JR(n);O0(n,t.mount,t.modalRef,o,!0);const i=af(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=af(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=ZR(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=af(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&&Ws(t.modalRef,n),O0(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&&Ws(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const t3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n3(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 r3(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 o3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r3(e))}function i3(e){const t=[],n=[];return Array.from(e.querySelectorAll(t3)).forEach((r,o)=>{const i=n3(r);i===-1||!o3(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 s3(){return!0}function a3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=i3,isEnabled:s=s3,open:a}=e,l=C.useRef(!1),u=C.useRef(null),c=C.useRef(null),d=C.useRef(null),f=C.useRef(null),v=C.useRef(!1),g=C.useRef(null),y=ht(Ba(t),g),w=C.useRef(null);C.useEffect(()=>{!a||!g.current||(v.current=!n)},[n,a]),C.useEffect(()=>{if(!a||!g.current)return;const p=An(g.current);return g.current.contains(p.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),C.useEffect(()=>{if(!a||!g.current)return;const p=An(g.current),S=$=>{w.current=$,!(r||!s()||$.key!=="Tab")&&p.activeElement===g.current&&$.shiftKey&&(l.current=!0,c.current&&c.current.focus())},k=()=>{var O,b;const $=g.current;if($===null)return;if(!p.hasFocus()||!s()||l.current){l.current=!1;return}if($.contains(p.activeElement)||r&&p.activeElement!==u.current&&p.activeElement!==c.current)return;if(p.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!v.current)return;let T=[];if((p.activeElement===u.current||p.activeElement===c.current)&&(T=i(g.current)),T.length>0){const E=!!((O=w.current)!=null&&O.shiftKey&&((b=w.current)==null?void 0:b.key)==="Tab"),R=T[0],M=T[T.length-1];typeof R!="string"&&typeof M!="string"&&(E?M.focus():R.focus())}else $.focus()};p.addEventListener("focusin",k),p.addEventListener("keydown",S,!0);const P=setInterval(()=>{p.activeElement&&p.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),p.removeEventListener("focusin",k),p.removeEventListener("keydown",S,!0)}},[n,r,o,s,a,i]);const m=p=>{d.current===null&&(d.current=p.relatedTarget),v.current=!0,f.current=p.target;const S=t.props.onFocus;S&&S(p)},h=p=>{d.current===null&&(d.current=p.relatedTarget),v.current=!0};return x.jsxs(C.Fragment,{children:[x.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:y,onFocus:m}),x.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}function l3(e){return typeof e=="function"?e():e}const u3=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=C.useState(null),l=ht(C.isValidElement(r)?Ba(r):null,n);if(Gr(()=>{i||a(l3(o)||document.body)},[o,i]),Gr(()=>{if(s&&!i)return _p(n,s),()=>{_p(n,null)}},[n,s,i]),i){if(C.isValidElement(r)){const u={ref:l};return C.cloneElement(r,u)}return x.jsx(C.Fragment,{children:r})}return x.jsx(C.Fragment,{children:s&&mm.createPortal(r,s)})});function mn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,v=c[e]||r,g=GS(d[e],o),{props:{component:y,...w},internalRef:m}=US({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:g}),h=ht(m,g==null?void 0:g.ref,t.ref),p=s?s(w):{},S={...o,...p},k=e==="root"?y||u:y,P=HS(v,{...e==="root"&&!u&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...w,...k&&{as:k},ref:h},S);return Object.keys(p).forEach($=>{delete P[$]}),[v,P]}const c3={entering:{opacity:1},entered:{opacity:1}},d3=C.forwardRef(function(t,n){const r=jm(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:v,onExited:g,onExiting:y,style:w,timeout:m=o,TransitionComponent:h=Qn,...p}=t,S=C.useRef(null),k=ht(S,Ba(a),n),P=A=>_=>{if(A){const D=S.current;_===void 0?A(D):A(D,_)}},$=P(f),T=P((A,_)=>{tw(A);const D=Tu({style:w,timeout:m,easing:l},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",D),A.style.transition=r.transitions.create("opacity",D),c&&c(A,_)}),O=P(d),b=P(y),E=P(A=>{const _=Tu({style:w,timeout:m,easing:l},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",_),A.style.transition=r.transitions.create("opacity",_),v&&v(A)}),R=P(g),M=A=>{i&&i(S.current,A)};return x.jsx(h,{appear:s,in:u,nodeRef:S,onEnter:T,onEntered:O,onEntering:$,onExit:E,onExited:R,onExiting:b,addEndListener:M,timeout:m,...p,children:(A,_)=>C.cloneElement(a,{style:{opacity:0,visibility:A==="exited"&&!u?"hidden":void 0,...c3[A],...w,...a.props.style},ref:k,..._})})});function f3(e){return ge("MuiBackdrop",e)}le("MuiBackdrop",["root","invisible"]);const p3=e=>{const{ownerState:t,...n}=e;return n},h3=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},f3,t)},m3=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),g3=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:c={},slotProps:d={},slots:f={},TransitionComponent:v,transitionDuration:g,...y}=r,w={...r,component:s,invisible:a},m=h3(w),h={transition:v,root:u.Root,...f},p={...c,...d},S={slots:h,slotProps:p},[k,P]=mn("root",{elementType:m3,externalForwardedProps:S,className:Y(m.root,i),ownerState:w}),[$,T]=mn("transition",{elementType:d3,externalForwardedProps:S,ownerState:w}),O=p3(T);return x.jsx($,{in:l,timeout:g,...y,...O,children:x.jsx(k,{"aria-hidden":!0,...P,classes:m,ref:n,children:o})})});function v3(e){return typeof e=="function"?e():e}function y3(e){return e?e.props.hasOwnProperty("in"):!1}const vl=new e3;function b3(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:c}=e,d=C.useRef({}),f=C.useRef(null),v=C.useRef(null),g=ht(v,c),[y,w]=C.useState(!u),m=y3(a);let h=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(h=!1);const p=()=>An(f.current),S=()=>(d.current.modalRef=v.current,d.current.mount=f.current,d.current),k=()=>{vl.mount(S(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},P=li(()=>{const _=v3(t)||p().body;vl.add(S(),_),v.current&&k()}),$=()=>vl.isTopModal(S()),T=li(_=>{f.current=_,_&&(u&&$()?k():v.current&&Ws(v.current,h))}),O=C.useCallback(()=>{vl.remove(S(),h)},[h]);C.useEffect(()=>()=>{O()},[O]),C.useEffect(()=>{u?P():(!m||!o)&&O()},[u,O,m,o,P]);const b=_=>D=>{var B;(B=_.onKeyDown)==null||B.call(_,D),!(D.key!=="Escape"||D.which===229||!$())&&(n||(D.stopPropagation(),l&&l(D,"escapeKeyDown")))},E=_=>D=>{var B;(B=_.onClick)==null||B.call(_,D),D.target===D.currentTarget&&l&&l(D,"backdropClick")};return{getRootProps:(_={})=>{const D=WS(e);delete D.onTransitionEnter,delete D.onTransitionExited;const B={...D,..._};return{role:"presentation",...B,onKeyDown:b(B),ref:g}},getBackdropProps:(_={})=>{const D=_;return{"aria-hidden":!0,...D,onClick:E(D),open:u}},getTransitionProps:()=>{const _=()=>{w(!1),i&&i()},D=()=>{w(!0),s&&s(),o&&O()};return{onEnter:c0(_,a==null?void 0:a.props.onEnter),onExited:c0(D,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:T,isTopModal:$,exited:y,hasTransition:m}}function x3(e){return ge("MuiModal",e)}le("MuiModal",["root","hidden","backdrop"]);const S3=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},x3,r)},w3=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(xe(({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"}}]}))),C3=G(g3,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zm=C.forwardRef(function(t,n){const r=Se({name:"MuiModal",props:t}),{BackdropComponent:o=C3,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:u,container:c,component:d,components:f={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:m=!1,disableRestoreFocus:h=!1,disableScrollLock:p=!1,hideBackdrop:S=!1,keepMounted:k=!1,onBackdropClick:P,onClose:$,onTransitionEnter:T,onTransitionExited:O,open:b,slotProps:E={},slots:R={},theme:M,...A}=r,_={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:m,disableRestoreFocus:h,disableScrollLock:p,hideBackdrop:S,keepMounted:k},{getRootProps:D,getBackdropProps:B,getTransitionProps:j,portalRef:L,isTopModal:V,exited:X,hasTransition:Z}=b3({..._,rootRef:n}),ee={..._,exited:X},te=S3(ee),ue={};if(u.props.tabIndex===void 0&&(ue.tabIndex="-1"),Z){const{onEnter:Q,onExited:Pe}=j();ue.onEnter=Q,ue.onExited=Pe}const we={...A,slots:{root:f.Root,backdrop:f.Backdrop,...R},slotProps:{...v,...E}},[se,U]=mn("root",{elementType:w3,externalForwardedProps:we,getSlotProps:D,additionalProps:{ref:n,as:d},ownerState:ee,className:Y(a,te==null?void 0:te.root,!ee.open&&ee.exited&&(te==null?void 0:te.hidden))}),[J,K]=mn("backdrop",{elementType:o,externalForwardedProps:we,additionalProps:i,getSlotProps:Q=>B({...Q,onClick:Pe=>{P&&P(Pe),Q!=null&&Q.onClick&&Q.onClick(Pe)}}),className:Y(i==null?void 0:i.className,te==null?void 0:te.backdrop),ownerState:ee}),H=ht(i==null?void 0:i.ref,K.ref);return!k&&!b&&(!Z||X)?null:x.jsx(u3,{ref:L,container:c,disablePortal:m,children:x.jsxs(se,{...U,children:[!S&&o?x.jsx(J,{...K,ref:H}):null,x.jsx(a3,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:h,isEnabled:V,open:b,children:C.cloneElement(u,ue)})]})})});function k3(e){return ge("MuiPopover",e)}le("MuiPopover",["root","paper"]);function R0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function M0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function A0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lf(e){return typeof e=="function"?e():e}const P3=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},k3,t)},$3=G(zm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nw=G(Oo,{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}),T3=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:w={},slotProps:m={},transformOrigin:h={vertical:"top",horizontal:"left"},TransitionComponent:p=Wp,transitionDuration:S="auto",TransitionProps:{onEntering:k,...P}={},disableScrollLock:$=!1,...T}=r,O=(m==null?void 0:m.paper)??y,b=C.useRef(),E={...r,anchorOrigin:s,anchorReference:l,elevation:f,marginThreshold:v,externalPaperSlotProps:O,transformOrigin:h,TransitionComponent:p,transitionDuration:S,TransitionProps:P},R=P3(E),M=C.useCallback(()=>{if(l==="anchorPosition")return a;const K=lf(i),Q=(K&&K.nodeType===1?K:An(b.current).body).getBoundingClientRect();return{top:Q.top+R0(Q,s.vertical),left:Q.left+M0(Q,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),A=C.useCallback(K=>({vertical:R0(K,h.vertical),horizontal:M0(K,h.horizontal)}),[h.horizontal,h.vertical]),_=C.useCallback(K=>{const H={width:K.offsetWidth,height:K.offsetHeight},Q=A(H);if(l==="none")return{top:null,left:null,transformOrigin:A0(Q)};const Pe=M();let ce=Pe.top-Q.vertical,ye=Pe.left-Q.horizontal;const dt=ce+H.height,Xe=ye+H.width,_e=yr(lf(i)),nt=_e.innerHeight-v,_n=_e.innerWidth-v;if(v!==null&&cent){const Le=dt-nt;ce-=Le,Q.vertical+=Le}if(v!==null&&ye_n){const Le=Xe-_n;ye-=Le,Q.horizontal+=Le}return{top:`${Math.round(ce)}px`,left:`${Math.round(ye)}px`,transformOrigin:A0(Q)}},[i,l,M,A,v]),[D,B]=C.useState(g),j=C.useCallback(()=>{const K=b.current;if(!K)return;const H=_(K);H.top!==null&&K.style.setProperty("top",H.top),H.left!==null&&(K.style.left=H.left),K.style.transformOrigin=H.transformOrigin,B(!0)},[_]);C.useEffect(()=>($&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[i,$,j]);const L=(K,H)=>{k&&k(K,H),j()},V=()=>{B(!1)};C.useEffect(()=>{g&&j()}),C.useImperativeHandle(o,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),C.useEffect(()=>{if(!g)return;const K=zS(()=>{j()}),H=yr(i);return H.addEventListener("resize",K),()=>{K.clear(),H.removeEventListener("resize",K)}},[i,g,j]);let X=S;S==="auto"&&!p.muiSupportAuto&&(X=void 0);const Z=d||(i?An(lf(i)).body:void 0),ee={slots:w,slotProps:{...m,paper:O}},[te,ue]=mn("paper",{elementType:nw,externalForwardedProps:ee,additionalProps:{elevation:f,className:Y(R.paper,O==null?void 0:O.className),style:D?O.style:{...O.style,opacity:0}},ownerState:E}),[we,{slotProps:se,...U}]=mn("root",{elementType:$3,externalForwardedProps:ee,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Z,open:g},ownerState:E,className:Y(R.root,c)}),J=ht(b,ue.ref);return x.jsx(we,{...U,...!Vp(we)&&{slotProps:se,disableScrollLock:$},...T,ref:n,children:x.jsx(p,{appear:!0,in:g,onEntering:L,onExited:V,timeout:X,...P,children:x.jsx(te,{...ue,ref:J,children:u})})})});function E3(e){return ge("MuiMenu",e)}le("MuiMenu",["root","paper","list"]);const O3={vertical:"top",horizontal:"right"},R3={vertical:"top",horizontal:"left"},M3=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},E3,t)},A3=G(T3,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j3=G(nw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),I3=G(qR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rw=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:u,open:c,PaperProps:d={},PopoverClasses:f,transitionDuration:v="auto",TransitionProps:{onEntering:g,...y}={},variant:w="selectedMenu",slots:m={},slotProps:h={},...p}=r,S=KS(),k={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:v,TransitionProps:y,variant:w},P=M3(k),$=o&&!a&&c,T=C.useRef(null),O=(D,B)=>{T.current&&T.current.adjustStyleForScrollbar(D,{direction:S?"rtl":"ltr"}),g&&g(D,B)},b=D=>{D.key==="Tab"&&(D.preventDefault(),u&&u(D,"tabKeyDown"))};let E=-1;C.Children.map(i,(D,B)=>{C.isValidElement(D)&&(D.props.disabled||(w==="selectedMenu"&&D.props.selected||E===-1)&&(E=B))});const R=m.paper??j3,M=h.paper??d,A=m0({elementType:m.root,externalSlotProps:h.root,ownerState:k,className:[P.root,s]}),_=m0({elementType:R,externalSlotProps:M,ownerState:k,className:P.paper});return x.jsx(A3,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?O3:R3,slots:{paper:R,root:m.root},slotProps:{root:A,paper:_},open:c,ref:n,transitionDuration:v,TransitionProps:{onEntering:O,...y},ownerState:k,...p,classes:f,children:x.jsx(I3,{onKeyDown:b,actions:T,autoFocus:o&&(E===-1||a),autoFocusItem:$,variant:w,...l,className:Y(P.list,l.className),children:i})})}),_3=Ee(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Ii=pO({createStyledComponent:G("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${F(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>QS({props:e,name:"MuiContainer"})});function L3(e){return ge("MuiButton",e)}const Go=le("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"]),D3=C.createContext({}),B3=C.createContext(void 0),z3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${F(t)}`,`size${F(o)}`,`${i}Size${F(o)}`,`color${F(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${F(o)}`],endIcon:["icon","endIcon",`iconSize${F(o)}`]},l=ve(a,L3,s);return{...s,...l}},ow=[{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}}}],N3=G(ji,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${F(n.color)}`],t[`size${F(n.size)}`],t[`${n.variant}Size${F(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(xe(({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"},[`&.${Go.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]},[`&.${Go.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Go.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)",[`&.${Go.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(Wt()).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)`:je(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})`:je(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})`:je(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})`:je(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:je(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"},[`&.${Go.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Go.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),F3=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${F(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...ow]}),V3=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${F(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...ow]}),Ro=C.forwardRef(function(t,n){const r=C.useContext(D3),o=C.useContext(B3),i=ya(r,t),s=Se({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:w=!1,size:m="medium",startIcon:h,type:p,variant:S="text",...k}=s,P={...s,color:l,component:u,disabled:d,disableElevation:f,disableFocusRipple:v,fullWidth:w,size:m,type:p,variant:S},$=z3(P),T=h&&x.jsx(F3,{className:$.startIcon,ownerState:P,children:h}),O=g&&x.jsx(V3,{className:$.endIcon,ownerState:P,children:g}),b=o||"";return x.jsxs(N3,{ownerState:P,className:Y(r.className,$.root,c,b),component:u,disabled:d,focusRipple:!v,focusVisibleClassName:Y($.focusVisible,y),ref:n,type:p,...k,classes:$,children:[T,a,O]})});function H3(e){return ge("MuiDivider",e)}const j0=le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),W3=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"]},H3,r)},U3=G("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]}})(xe(({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)`:je(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",whiteSpace:"nowrap",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%"}}}]}))),G3=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(xe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),_i=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,orientation:a="horizontal",component:l=i||a==="vertical"?"div":"hr",flexItem:u=!1,light:c=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:v="fullWidth",...g}=r,y={...r,absolute:o,component:l,flexItem:u,light:c,orientation:a,role:d,textAlign:f,variant:v},w=W3(y);return x.jsx(U3,{as:l,className:Y(w.root,s),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...g,children:i?x.jsx(G3,{className:w.wrapper,ownerState:y,children:i}):null})});_i&&(_i.muiSkipListHighlight=!0);const I0=le("MuiListItemIcon",["root","alignItemsFlexStart"]),_0=le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function K3(e){return ge("MuiMenuItem",e)}const ys=le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),q3=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y3=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"]},K3,s);return{...s,...l}},X3=G(ji,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:q3})(xe(({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"}},[`&.${ys.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ys.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ys.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(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})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ys.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ys.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${j0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${j0.inset}`]:{marginLeft:52},[`& .${_0.root}`]:{marginTop:0,marginBottom:0},[`& .${_0.inset}`]:{paddingLeft:36},[`& .${I0.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,[`& .${I0.root} svg`]:{fontSize:"1.25rem"}}}]}))),Q3=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f,...v}=r,g=C.useContext(Fp),y=C.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),w=C.useRef(null);Gr(()=>{o&&w.current&&w.current.focus()},[o]);const m={...r,dense:y.dense,divider:a,disableGutters:l},h=Y3(r),p=ht(w,n);let S;return r.disabled||(S=d!==void 0?d:-1),x.jsx(Fp.Provider,{value:y,children:x.jsx(X3,{ref:p,role:c,tabIndex:S,component:i,focusVisibleClassName:Y(h.focusVisible,u),className:Y(h.root,f),...v,ownerState:m,classes:h})})}),Up=Ee(x.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"),Gp={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"}},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"}}},Z3={light:!1,theme:Gp.light,toggle:()=>{}},In=gn.createContext(Z3);function J3({children:e}){const[t,n]=C.useState(!1);C.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?Gp.light:Gp.dark;return x.jsx(In.Provider,{value:{theme:o,light:t,toggle:r},children:e})}const Nm=C.createContext(void 0);function _o(){return C.useContext(Nm)}function eM(e){return ge("PrivateSwitchBase",e)}le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tM=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${F(o)}`],input:["input"]};return ve(i,eM,t)},nM=G(ji)({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}}]}),rM=G("input",{shouldForwardProp:an})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oM=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:v,inputRef:g,name:y,onBlur:w,onChange:m,onFocus:h,readOnly:p,required:S=!1,tabIndex:k,type:P,value:$,...T}=t,[O,b]=wu({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),E=_o(),R=L=>{h&&h(L),E&&E.onFocus&&E.onFocus(L)},M=L=>{w&&w(L),E&&E.onBlur&&E.onBlur(L)},A=L=>{if(L.nativeEvent.defaultPrevented)return;const V=L.target.checked;b(V),m&&m(L,V)};let _=l;E&&typeof _>"u"&&(_=E.disabled);const D=P==="checkbox"||P==="radio",B={...t,checked:O,disabled:_,disableFocusRipple:u,edge:c},j=tM(B);return x.jsxs(nM,{component:"span",className:Y(j.root,s),centerRipple:!0,focusRipple:!u,disabled:_,tabIndex:null,role:void 0,onFocus:R,onBlur:M,ownerState:B,ref:n,...T,children:[x.jsx(rM,{autoFocus:r,checked:o,defaultChecked:a,className:j.input,disabled:_,id:D?f:void 0,name:y,onChange:A,readOnly:p,ref:g,required:S,ownerState:B,tabIndex:k,type:P,...P==="checkbox"&&$===void 0?{}:{value:$},...v}),O?i:d]})});function iM(e){return ge("MuiSwitch",e)}const Lt=le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),sM=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${F(n)}`,`size${F(r)}`],switchBase:["switchBase",`color${F(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ve(a,iM,t);return{...t,...l}},aM=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${F(n.edge)}`],t[`size${F(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,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),lM=G(oM,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${F(n.color)}`]]}})(xe(({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}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}})),xe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Wt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Vc(e.palette[t].main,.62):Fc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),uM=G("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(xe(({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}`}))),cM=G("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(xe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),dM=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l,...u}=r,c={...r,color:i,edge:s,size:a},d=sM(c),f=x.jsx(cM,{className:d.thumb,ownerState:c});return x.jsxs(aM,{className:Y(d.root,o),sx:l,ownerState:c,children:[x.jsx(lM,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:c,...u,classes:{...d,root:d.switchBase}}),x.jsx(uM,{className:d.track,ownerState:c})]})}),fM=Ee([x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 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"),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),pM=Ee(x.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"),hM=Ee(x.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),mM=Ee(x.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"),iw=Ee([x.jsx("path",{d:"m12 2-5.5 9h11z"},"0"),x.jsx("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),x.jsx("path",{d:"M3 13.5h8v8H3z"},"2")],"Category"),gM=Ee(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),vM=Ee(x.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"),yM=Ee(x.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"),bM=Ee(x.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"),xM=Ee(x.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"),sw=Ee(x.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"),aw=Ee(x.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"),lw=Ee(x.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"),SM=Ee(x.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"),Fm=Ee(x.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"),wM=Ee([x.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"),x.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"),CM=Ee(x.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"),kM=Ee(x.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"),PM=Ee(x.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),$M=Ee(x.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"),L0=Ee(x.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"),TM=Ee(x.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 EM(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 xa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Kp=e=>Array.isArray(e);function uw(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 Vm(e,t,n,r){if(typeof t=="function"){const[o,i]=D0(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]=D0(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function td(e,t,n){const r=e.getProps();return Vm(r,t,n!==void 0?n:r.custom,e)}const Hm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wm=["initial",...Hm],Na=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],to=new Set(Na),ar=e=>e*1e3,lr=e=>e/1e3,OM={type:"spring",stiffness:500,damping:25,restSpeed:10},RM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jM=(e,{keyframes:t})=>t.length>2?MM:to.has(e)?e.startsWith("scale")?RM(t[1]):OM:AM;function Um(e,t){return e[t]||e.default||e}const IM={skipAnimations:!1,useManualTiming:!1},_M=e=>e!==null;function nd(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(_M),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const jt=e=>e;function LM(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(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const v=d&&r?t:n;return c&&i.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const yl=["read","resolveKeyframes","update","preRender","render","postRender"],DM=40;function cw(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=yl.reduce((m,h)=>(m[h]=LM(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,v=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,DM),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},g=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:yl.reduce((m,h)=>{const p=s[h];return m[h]=(S,k=!1,P=!1)=>(n||g(),p.schedule(S,k,P)),m},{}),cancel:m=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BM=1e-7,zM=12;function NM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=dw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>BM&&++aNM(i,0,1,e,n);return i=>i===0||i===1?i:dw(o(i),t,r)}const fw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pw=e=>t=>1-e(1-t),hw=Fa(.33,1.53,.69,.99),Gm=pw(hw),mw=fw(Gm),gw=e=>(e*=2)<1?.5*Gm(e):.5*(2-Math.pow(2,-10*(e-1))),Km=e=>1-Math.sin(Math.acos(e)),vw=pw(Km),yw=fw(Km),bw=e=>/^0[^.\s]+$/u.test(e);function FM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bw(e):!0}let qp=jt;const xw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Sw=e=>t=>typeof t=="string"&&t.startsWith(e),ww=Sw("--"),VM=Sw("var(--"),qm=e=>VM(e)?HM.test(e.split("/*")[0].trim()):!1,HM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,WM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UM(e){const t=WM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Cw(e,t,n=1){const[r,o]=UM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return xw(s)?parseFloat(s):s}return qm(o)?Cw(o,t,n+1):o}const Yr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},wa={...Qi,transform:e=>Yr(0,1,e)},bl={...Qi,default:1},Va=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=Va("deg"),qn=Va("%"),oe=Va("px"),GM=Va("vh"),KM=Va("vw"),B0={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},qM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),z0=e=>e===Qi||e===oe,N0=(e,t)=>parseFloat(e.split(", ")[t]),F0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return N0(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?N0(i[1],e):0}},YM=new Set(["x","y","z"]),XM=Na.filter(e=>!YM.has(e));function QM(e){const t=[];return XM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Li={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:F0(4,13),y:F0(5,14)};Li.translateX=Li.x;Li.translateY=Li.y;const kw=e=>t=>t.test(e),ZM={test:e=>e==="auto",parse:e=>e},Pw=[Qi,oe,qn,Pr,KM,GM,ZM],V0=e=>Pw.find(kw(e)),wo=new Set;let Yp=!1,Xp=!1;function $w(){if(Xp){const e=Array.from(wo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=QM(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)})}Xp=!1,Yp=!1,wo.forEach(e=>e.complete()),wo.clear()}function Tw(){wo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xp=!0)})}function JM(){Tw(),$w()}class Ym{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?(wo.add(this),Yp||(Yp=!0,Oe.read(Tw),Oe.resolveKeyframes($w))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Xm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function e4(e){return e==null}const t4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qm=(e,t)=>n=>!!(typeof n=="string"&&t4.test(n)&&n.startsWith(e)||t&&!e4(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ew=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Xm);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},n4=e=>Yr(0,255,e),cf={...Qi,transform:e=>Math.round(n4(e))},bo={test:Qm("rgb","red"),parse:Ew("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cf.transform(e)+", "+cf.transform(t)+", "+cf.transform(n)+", "+Us(wa.transform(r))+")"};function r4(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 Qp={test:Qm("#"),parse:r4,transform:bo.transform},ui={test:Qm("hsl","hue"),parse:Ew("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(Us(t))+", "+qn.transform(Us(n))+", "+Us(wa.transform(r))+")"},Ot={test:e=>bo.test(e)||Qp.test(e)||ui.test(e),parse:e=>bo.test(e)?bo.parse(e):ui.test(e)?ui.parse(e):Qp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bo.transform(e):ui.transform(e)},o4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(o4))===null||n===void 0?void 0:n.length)||0)>0}const Ow="number",Rw="color",s4="var",a4="var(",H0="${}",l4=/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 Ca(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(l4,l=>(Ot.test(l)?(r.color.push(i),o.push(Rw),n.push(Ot.parse(l))):l.startsWith(a4)?(r.var.push(i),o.push(s4),n.push(l)):(r.number.push(i),o.push(Ow),n.push(parseFloat(l))),++i,H0)).split(H0);return{values:n,split:a,indexes:r,types:o}}function Mw(e){return Ca(e).values}function Aw(e){const{split:t,types:n}=Ca(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function c4(e){const t=Mw(e);return Aw(e)(t.map(u4))}const Xr={test:i4,parse:Mw,createTransformer:Aw,getAnimatableNone:c4},d4=new Set(["brightness","contrast","saturate","opacity"]);function f4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xm)||[];if(!r)return e;const o=n.replace(r,"");let i=d4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const p4=/\b([a-z-]*)\(.*?\)/gu,Zp={...Xr,getAnimatableNone:e=>{const t=e.match(p4);return t?t.map(f4).join(" "):e}},h4={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,backgroundPositionX:oe,backgroundPositionY:oe},m4={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:bl,scaleX:bl,scaleY:bl,scaleZ:bl,skew:Pr,skewX:Pr,skewY:Pr,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:wa,originX:B0,originY:B0,originZ:oe},W0={...Qi,transform:Math.round},Zm={...h4,...m4,zIndex:W0,size:oe,fillOpacity:wa,strokeOpacity:wa,numOctaves:W0},g4={...Zm,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Zp,WebkitFilter:Zp},Jm=e=>g4[e];function jw(e,t){let n=Jm(e);return n!==Zp&&(n=Xr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const v4=new Set(["auto","none","0"]);function y4(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function eg(e){return typeof e=="function"}let Nl;function b4(){Nl=void 0}const Yn={now:()=>(Nl===void 0&&Yn.set(St.isProcessing||IM.useManualTiming?St.timestamp:performance.now()),Nl),set:e=>{Nl=e,queueMicrotask(b4)}},U0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xr.test(e)||e==="0")&&!e.startsWith("url("));function x4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nw4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&JM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!S4(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(nd(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Lw(e,t){return t?e*(1e3/t):0}const C4=5;function Dw(e,t,n){const r=Math.max(t-C4,0);return Lw(n-e(r),t-r)}const df=.001,k4=.01,P4=10,$4=.05,T4=1;function E4({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Yr($4,T4,s),e=Yr(k4,P4,lr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,v=Jp(u,s),g=Math.exp(-d);return df-f/v*g},i=u=>{const d=u*s*e,f=d*n+n,v=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=Jp(Math.pow(u,2),s);return(-o(u)+df>0?-1:1)*((f-v)*g)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-df+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=R4(o,i,a);if(e=ar(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const O4=12;function R4(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function j4(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!G0(e,A4)&&G0(e,M4)){const n=E4(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Bw({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:u,duration:c,velocity:d,isResolvedFromDuration:f}=j4({...r,velocity:-lr(r.velocity||0)}),v=d||0,g=l/(2*Math.sqrt(a*u)),y=i-o,w=lr(Math.sqrt(a/u)),m=Math.abs(y)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let h;if(g<1){const p=Jp(w,g);h=S=>{const k=Math.exp(-g*w*S);return i-k*((v+g*w*y)/p*Math.sin(p*S)+y*Math.cos(p*S))}}else if(g===1)h=p=>i-Math.exp(-w*p)*(y+(v+w*y)*p);else{const p=w*Math.sqrt(g*g-1);h=S=>{const k=Math.exp(-g*w*S),P=Math.min(p*S,300);return i-k*((v+g*w*y)*Math.sinh(P)+p*y*Math.cosh(P))/p}}return{calculatedDuration:f&&c||null,next:p=>{const S=h(p);if(f)s.done=p>=c;else{let k=0;g<1&&(k=p===0?ar(v):Dw(h,p,S));const P=Math.abs(k)<=n,$=Math.abs(i-S)<=t;s.done=P&&$}return s.value=s.done?i:S,s}}}function K0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},v=T=>a!==void 0&&Tl,g=T=>a===void 0?l:l===void 0||Math.abs(a-T)-y*Math.exp(-T/r),p=T=>m+h(T),S=T=>{const O=h(T),b=p(T);f.done=Math.abs(O)<=u,f.value=f.done?m:b};let k,P;const $=T=>{v(f.value)&&(k=T,P=Bw({keyframes:[f.value,g(f.value)],velocity:Dw(p,T,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:T=>{let O=!1;return!P&&k===void 0&&(O=!0,S(T),$(T)),k!==void 0&&T>=k?P.next(T-k):(!O&&S(T),f)}}}const I4=Fa(.42,0,1,1),_4=Fa(0,0,.58,1),zw=Fa(.42,0,.58,1),L4=e=>Array.isArray(e)&&typeof e[0]!="number",q0={linear:jt,easeIn:I4,easeInOut:zw,easeOut:_4,circIn:Km,circInOut:yw,circOut:vw,backIn:Gm,backInOut:mw,backOut:hw,anticipate:gw},Y0=e=>{if(Array.isArray(e)){qp(e.length===4);const[t,n,r,o]=e;return Fa(t,n,r,o)}else if(typeof e=="string")return qp(q0[e]!==void 0),q0[e];return e},D4=(e,t)=>n=>t(e(n)),ur=(...e)=>e.reduce(D4),Di=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ke=(e,t,n)=>e+(t-e)*n;function ff(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 B4({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=ff(l,a,e+1/3),i=ff(l,a,e),s=ff(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Eu(e,t){return n=>n>0?t:e}const pf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},z4=[Qp,bo,ui],N4=e=>z4.find(t=>t.test(e));function X0(e){const t=N4(e);if(!t)return!1;let n=t.parse(e);return t===ui&&(n=B4(n)),n}const Q0=(e,t)=>{const n=X0(e),r=X0(t);if(!n||!r)return Eu(e,t);const o={...n};return i=>(o.red=pf(n.red,r.red,i),o.green=pf(n.green,r.green,i),o.blue=pf(n.blue,r.blue,i),o.alpha=Ke(n.alpha,r.alpha,i),bo.transform(o))},eh=new Set(["none","hidden"]);function F4(e,t){return eh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function V4(e,t){return n=>Ke(e,t,n)}function tg(e){return typeof e=="number"?V4:typeof e=="string"?qm(e)?Eu:Ot.test(e)?Q0:U4:Array.isArray(e)?Nw:typeof e=="object"?Ot.test(e)?Q0:H4:Eu}function Nw(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>tg(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function W4(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=Xr.createTransformer(t),r=Ca(e),o=Ca(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?eh.has(e)&&!o.values.length||eh.has(t)&&!r.values.length?F4(e,t):ur(Nw(W4(r,o),o.values),n):Eu(e,t)};function Fw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ke(e,t,n):tg(e)(e,t)}function G4(e,t,n){const r=[],o=n||Fw,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=G4(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Yr(e[0],e[i-1],u)):l}function q4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Di(0,t,r);e.push(Ke(n,1,o))}}function Y4(e){const t=[0];return q4(t,e.length-1),t}function X4(e,t){return e.map(n=>n*t)}function Q4(e,t){return e.map(()=>t||zw).splice(0,e.length-1)}function Ou({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=L4(r)?r.map(Y0):Y0(r),i={done:!1,value:t[0]},s=X4(n&&n.length===t.length?n:Y4(t),e),a=K4(s,t,{ease:Array.isArray(o)?o:Q4(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Z0=2e4;function Z4(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Z0?1/0:t}const J4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Oe.update(t,!0),stop:()=>qr(t),now:()=>St.isProcessing?St.timestamp:Yn.now()}},eA={decay:K0,inertia:K0,tween:Ou,keyframes:Ou,spring:Bw},tA=e=>e/100;class ng extends _w{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)||Ym,a=(l,u)=>this.onKeyframesResolved(l,u);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=eg(n)?n:eA[n]||Ou;let l,u;a!==Ou&&typeof t[0]!="number"&&(l=ur(tA,Fw(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Z4(c));const{calculatedDuration:d}=c,f=d+o,v=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:v}}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:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:v,repeatType:g,repeatDelay:y,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/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 m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let p=this.currentTime,S=i;if(v){const T=Math.min(this.currentTime,c)/d;let O=Math.floor(T),b=T%1;!b&&T>=1&&(b=1),b===1&&O--,O=Math.min(O,v+1),!!(O%2)&&(g==="reverse"?(b=1-b,y&&(b-=y/d)):g==="mirror"&&(S=s)),p=Yr(0,1,b)*d}const k=h?{done:!1,value:l[0]}:S.next(p);a&&(k.value=a(k.value));let{done:P}=k;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return $&&o!==void 0&&(k.value=nd(l,this.options,o)),w&&w(k.value),$&&this.finish(),k}get duration(){const{resolved:t}=this;return t?lr(t.calculatedDuration):0}get time(){return lr(this.currentTime)}set time(t){t=ar(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=lr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=J4,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 Vw=new Set(["opacity","clipPath","filter","transform"]),Hw=e=>Array.isArray(e)&&typeof e[0]=="number",nA=10,rA=(e,t)=>{let n="";const r=Math.max(Math.round(t/nA),2);for(let o=0;o(t===void 0&&(t=e()),t)}const oA={linearEasing:void 0};function iA(e,t){const n=rg(e);return()=>{var r;return(r=oA[t])!==null&&r!==void 0?r:n()}}const Ru=iA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Ww(e){return!!(typeof e=="function"&&Ru()||!e||typeof e=="string"&&(e in th||Ru())||Hw(e)||Array.isArray(e)&&e.every(Ww))}const Ms=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,th={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ms([0,.65,.55,1]),circOut:Ms([.55,0,1,.45]),backIn:Ms([.31,.01,.66,-.59]),backOut:Ms([.33,1.53,.69,.99])};function Uw(e,t){if(e)return typeof e=="function"&&Ru()?rA(e,t):Hw(e)?Ms(e):Array.isArray(e)?e.map(n=>Uw(n,t)||th.easeOut):th[e]}function sA(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Uw(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function J0(e,t){e.timeline=t,e.onfinish=null}const aA=rg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mu=10,lA=2e4;function uA(e){return eg(e.type)||e.type==="spring"||!Ww(e.ease)}function cA(e,t){const n=new ng({...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:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Ru()&&dA(s)&&(s=Gw[s]),uA(this.options)){const{onComplete:f,onUpdate:v,motionValue:g,element:y,...w}=this.options,m=cA(t,w);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,a="keyframes"}const d=sA(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(J0(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(nd(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 lr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return lr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ar(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 jt;const{animation:r}=n;J0(r,t)}return jt}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:u,onUpdate:c,onComplete:d,element:f,...v}=this.options,g=new ng({...v,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=ar(this.time);u.setWithVelocity(g.sample(y-Mu).value,g.sample(y).value,Mu)}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 aA()&&r&&Vw.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const fA=rg(()=>window.ScrollTimeline!==void 0);class pA{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;rfA()&&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 hA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const og=(e,t,n,r={},o,i)=>s=>{const a=Um(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ar(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,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};hA(a)||(c={...c,...jM(e,c)}),c.duration&&(c.duration=ar(c.duration)),c.repeatDelay&&(c.repeatDelay=ar(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=nd(c.keyframes,a);if(f!==void 0)return Oe.update(()=>{c.onUpdate(f),c.onComplete()}),new pA([])}return!i&&ey.supports(c)?new ey(c):new ng(c)},mA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),gA=e=>Kp(e)?e[e.length-1]||0:e;function Ha(e,t){e.indexOf(t)===-1&&e.push(t)}function ig(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class sg{constructor(){this.subscriptions=[]}add(t){return Ha(this.subscriptions,t),()=>ig(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 Kw{constructor(t,n={}){this.version="11.9.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Yn.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=Yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vA(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 sg);const r=this.events[t].add(n);return t==="change"?()=>{r(),Oe.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=Yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ty)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ty);return Lw(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 ka(e,t){return new Kw(e,t)}function yA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ka(n))}function bA(e,t){const n=td(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=gA(i[s]);yA(e,s,a)}}const rd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xA="framerAppearId",qw="data-"+rd(xA);function Yw(e){return e.props[qw]}function Xw(e){if(to.has(e))return"transform";if(Vw.has(e))return rd(e)}class SA extends Kw{constructor(){super(...arguments),this.values=[]}add(t){const n=Xw(t);n&&(Ha(this.values,n),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}const Mt=e=>!!(e&&e.getVelocity);function wA(e){return!!(Mt(e)&&e.add)}function nh(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new SA("auto"),e.addValue("willChange",r)),wA(r))return r.add(t)}function CA({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Qw(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=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),v=l[d];if(v===void 0||c&&CA(c,d))continue;const g={delay:n,...Um(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const m=Yw(e);if(m){const h=window.MotionHandoffAnimation(m,d,Oe);h!==null&&(g.startTime=h,y=!0)}}nh(e,d),f.start(og(d,f,v,e.shouldReduceMotion&&to.has(d)?{type:!1}:g,e,y));const w=f.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{Oe.update(()=>{a&&bA(e,a)})}),u}function rh(e,t,n={}){var r;const o=td(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(Qw(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return kA(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function kA(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(PA).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(rh(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function PA(e,t){return e.sortNodePosition(t)}function $A(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>rh(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=rh(e,t,n);else{const o=typeof t=="function"?td(e,t,n.custom):t;r=Promise.all(Qw(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const TA=Wm.length;function Zw(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Zw(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})=>$A(e,n,r)))}function MA(e){let t=RA(e),n=ny(),r=!0;const o=l=>(u,c)=>{var d;const f=td(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:v,transitionEnd:g,...y}=f;u={...u,...y,...g}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Zw(e.parent)||{},d=[],f=new Set;let v={},g=1/0;for(let w=0;wg&&S,O=!1;const b=Array.isArray(p)?p:[p];let E=b.reduce(o(m),{});k===!1&&(E={});const{prevResolvedValues:R={}}=h,M={...R,...E},A=B=>{T=!0,f.has(B)&&(O=!0,f.delete(B)),h.needsAnimating[B]=!0;const j=e.getValue(B);j&&(j.liveStyle=!1)};for(const B in M){const j=E[B],L=R[B];if(v.hasOwnProperty(B))continue;let V=!1;Kp(j)&&Kp(L)?V=!uw(j,L):V=j!==L,V?j!=null?A(B):f.add(B):j!==void 0&&f.has(B)?A(B):h.protectedKeys[B]=!0}h.prevProp=p,h.prevResolvedValues=E,h.isActive&&(v={...v,...E}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(P&&$)||O)&&d.push(...b.map(B=>({animation:B,options:{type:m}})))}if(f.size){const w={};f.forEach(m=>{const h=e.getBaseTarget(m),p=e.getValue(m);p&&(p.liveStyle=!0),w[m]=h??null}),d.push({animation:w})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var v;return(v=f.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;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=ny(),r=!0}}}function AA(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uw(t,e):!1}function oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ny(){return{animate:oo(!0),whileInView:oo(),whileHover:oo(),whileTap:oo(),whileDrag:oo(),whileFocus:oo(),exit:oo()}}class no{constructor(t){this.isMounted=!1,this.node=t}update(){}}class jA extends no{constructor(t){super(t),t.animationState||(t.animationState=MA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xa(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 IA=0;class _A extends no{constructor(){super(...arguments),this.id=IA++}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 LA={animation:{Feature:jA},exit:{Feature:_A}},Jw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function od(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const DA=e=>t=>Jw(t)&&e(t,od(t));function ir(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function cr(e,t,n,r){return ir(e,t,DA(n),r)}const ry=(e,t)=>Math.abs(e-t);function BA(e,t){const n=ry(e.x,t.x),r=ry(e.y,t.y);return Math.sqrt(n**2+r**2)}class eC{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=mf(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=BA(d.offset,{x:0,y:0})>=3;if(!f&&!v)return;const{point:g}=d,{timestamp:y}=St;this.history.push({...g,timestamp:y});const{onStart:w,onMove:m}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=hf(f,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=mf(d.type==="pointercancel"?this.lastMoveEventInfo:hf(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,w),g&&g(d,w)},!Jw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=od(t),a=hf(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=St;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,mf(a,this.history)),this.removeListeners=ur(cr(this.contextWindow,"pointermove",this.handlePointerMove),cr(this.contextWindow,"pointerup",this.handlePointerUp),cr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qr(this.updatePoint)}}function hf(e,t){return t?{point:t(e.point)}:e}function oy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mf({point:e},t){return{point:e,delta:oy(e,tC(t)),offset:oy(e,zA(t)),velocity:NA(t,.1)}}function zA(e){return e[0]}function tC(e){return e[e.length-1]}function NA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=tC(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ar(t)));)n--;if(!r)return{x:0,y:0};const i=lr(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 nC(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const iy=nC("dragHorizontal"),sy=nC("dragVertical");function rC(e){let t=!1;if(e==="y")t=sy();else if(e==="x")t=iy();else{const n=iy(),r=sy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function oC(){const e=rC(!0);return e?(e(),!1):!0}function ci(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const iC=1e-4,FA=1-iC,VA=1+iC,sC=.01,HA=0-sC,WA=0+sC;function nn(e){return e.max-e.min}function UA(e,t,n){return Math.abs(e-t)<=n}function ay(e,t,n,r=.5){e.origin=r,e.originPoint=Ke(t.min,t.max,e.origin),e.scale=nn(n)/nn(t),e.translate=Ke(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FA&&e.scale<=VA||isNaN(e.scale))&&(e.scale=1),(e.translate>=HA&&e.translate<=WA||isNaN(e.translate))&&(e.translate=0)}function Gs(e,t,n,r){ay(e.x,t.x,n.x,r?r.originX:void 0),ay(e.y,t.y,n.y,r?r.originY:void 0)}function ly(e,t,n){e.min=n.min+t.min,e.max=e.min+nn(t)}function GA(e,t,n){ly(e.x,t.x,n.x),ly(e.y,t.y,n.y)}function uy(e,t,n){e.min=t.min-n.min,e.max=e.min+nn(t)}function Ks(e,t,n){uy(e.x,t.x,n.x),uy(e.y,t.y,n.y)}function KA(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ke(n,e,r.max):Math.min(e,n)),e}function cy(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 qA(e,{top:t,left:n,bottom:r,right:o}){return{x:cy(e.x,n,o),y:cy(e.y,t,r)}}function dy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Di(t.min,t.max-r,e.min):r>o&&(n=Di(e.min,e.max-o,t.min)),Yr(0,1,n)}function QA(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 oh=.35;function ZA(e=oh){return e===!1?e=0:e===!0&&(e=oh),{x:fy(e,"left","right"),y:fy(e,"top","bottom")}}function fy(e,t,n){return{min:py(e,t),max:py(e,n)}}function py(e,t){return typeof e=="number"?e:e[t]||0}const hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),di=()=>({x:hy(),y:hy()}),my=()=>({min:0,max:0}),rt=()=>({x:my(),y:my()});function un(e){return[e("x"),e("y")]}function aC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function JA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ej(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 gf(e){return e===void 0||e===1}function ih({scale:e,scaleX:t,scaleY:n}){return!gf(e)||!gf(t)||!gf(n)}function po(e){return ih(e)||lC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lC(e){return gy(e.x)||gy(e.y)}function gy(e){return e&&e!=="0%"}function Au(e,t,n){const r=e-n,o=t*r;return n+o}function vy(e,t,n,r,o){return o!==void 0&&(e=Au(e,o,r)),Au(e,n,r)+t}function sh(e,t=0,n=1,r,o){e.min=vy(e.min,t,n,r,o),e.max=vy(e.max,t,n,r,o)}function uC(e,{x:t,y:n}){sh(e.x,t.translate,t.scale,t.originPoint),sh(e.y,n.translate,n.scale,n.originPoint)}const yy=.999999999999,by=1.0000000000001;function tj(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;ayy&&(t.x=1),t.yyy&&(t.y=1)}function fi(e,t){e.min=e.min+t,e.max=e.max+t}function xy(e,t,n,r,o=.5){const i=Ke(e.min,e.max,o);sh(e,t,n,i,r)}function pi(e,t){xy(e.x,t.x,t.scaleX,t.scale,t.originX),xy(e.y,t.y,t.scaleY,t.scale,t.originY)}function cC(e,t){return aC(ej(e.getBoundingClientRect(),t))}function nj(e,t,n){const r=cC(e,n),{scroll:o}=t;return o&&(fi(r.x,o.offset.x),fi(r.y,o.offset.y)),r}const dC=({current:e})=>e?e.ownerDocument.defaultView:null,rj=new WeakMap;class oj{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=rt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(od(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:v,onDragStart:g}=this.getProps();if(f&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rC(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),un(w=>{let m=this.getAxisMotionValue(w).get()||0;if(qn.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const p=h.layout.layoutBox[w];p&&(m=nn(p)*(parseFloat(m)/100))}}this.originPoint[w]=m}),g&&Oe.postRender(()=>g(c,d)),nh(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(v&&this.currentDirection===null){this.currentDirection=ij(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>un(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new eC(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:dC(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&&Oe.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||!xl(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=KA(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&&ci(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=qA(o.layoutBox,n):this.constraints=!1,this.elastic=ZA(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&un(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=QA(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ci(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=nj(r,o.root,this.visualElement.getTransformPagePoint());let s=YA(o.layout.layoutBox,i);if(n){const a=n(JA(s));this.hasMutatedConstraints=!!a,a&&(s=aC(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=un(c=>{if(!xl(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,v=o?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nh(this.visualElement,t),r.start(og(t,r,0,n,this.visualElement,!1))}stopAnimation(){un(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){un(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){un(n=>{const{drag:r}=this.getProps();if(!xl(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]-Ke(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ci(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};un(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=XA({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(),un(s=>{if(!xl(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Ke(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;rj.set(this.visualElement,this);const t=this.visualElement.current,n=cr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ci(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()),Oe.read(r);const s=ir(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(un(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].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=oh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function xl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ij(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class sj extends no{constructor(t){super(t),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new oj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sy=e=>(t,n)=>{e&&Oe.postRender(()=>e(t,n))};class aj extends no{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(t){this.session=new eC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Sy(t),onStart:Sy(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Oe.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=cr(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 ag=C.createContext(null);function lj(){const e=C.useContext(ag);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.useId();C.useEffect(()=>r(o),[]);const i=C.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const fC=C.createContext({}),pC=C.createContext({}),Fl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=wy(e,t.target.x),r=wy(e,t.target.y);return`${n}% ${r}%`}},uj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Xr.parse(e);if(o.length>5)return r;const i=Xr.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 u=Ke(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},ju={};function cj(e){Object.assign(ju,e)}const{schedule:lg,cancel:_z}=cw(queueMicrotask,!1);class dj extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;cj(fj),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()})),Fl.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()||Oe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lg.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 hC(e){const[t,n]=lj(),r=C.useContext(fC);return x.jsx(dj,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(pC),isPresent:t,safeToRemove:n})}const fj={borderRadius:{...bs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bs,borderTopRightRadius:bs,borderBottomLeftRadius:bs,borderBottomRightRadius:bs,boxShadow:uj},mC=["TopLeft","TopRight","BottomLeft","BottomRight"],pj=mC.length,Cy=e=>typeof e=="string"?parseFloat(e):e,ky=e=>typeof e=="number"||oe.test(e);function hj(e,t,n,r,o,i){o?(e.opacity=Ke(0,n.opacity!==void 0?n.opacity:1,mj(r)),e.opacityExit=Ke(t.opacity!==void 0?t.opacity:1,0,gj(r))):i&&(e.opacity=Ke(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Di(e,t,r))}function $y(e,t){e.min=t.min,e.max=t.max}function ln(e,t){$y(e.x,t.x),$y(e.y,t.y)}function Ty(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ey(e,t,n,r,o){return e-=t,e=Au(e,1/n,r),o!==void 0&&(e=Au(e,1/o,r)),e}function vj(e,t=0,n=1,r=.5,o,i=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=Ke(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ke(i.min,i.max,r);e===i&&(a-=t),e.min=Ey(e.min,t,n,a,o),e.max=Ey(e.max,t,n,a,o)}function Oy(e,t,[n,r,o],i,s){vj(e,t[n],t[r],t[o],t.scale,i,s)}const yj=["x","scaleX","originX"],bj=["y","scaleY","originY"];function Ry(e,t,n,r){Oy(e.x,t,yj,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,bj,n?n.y:void 0,r?r.y:void 0)}function My(e){return e.translate===0&&e.scale===1}function vC(e){return My(e.x)&&My(e.y)}function Ay(e,t){return e.min===t.min&&e.max===t.max}function xj(e,t){return Ay(e.x,t.x)&&Ay(e.y,t.y)}function jy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yC(e,t){return jy(e.x,t.x)&&jy(e.y,t.y)}function Iy(e){return nn(e.x)/nn(e.y)}function _y(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Sj{constructor(){this.members=[]}add(t){Ha(this.members,t),t.scheduleRender()}remove(t){if(ig(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 wj(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:u,rotate:c,rotateX:d,rotateY:f,skewX:v,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),v&&(r+=`skewX(${v}deg) `),g&&(r+=`skewY(${g}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 Cj=(e,t)=>e.depth-t.depth;class kj{constructor(){this.children=[],this.isDirty=!1}add(t){Ha(this.children,t),this.isDirty=!0}remove(t){ig(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Cj),this.isDirty=!1,this.children.forEach(t)}}function Vl(e){const t=Mt(e)?e.get():e;return mA(t)?t.toValue():t}function Pj(e,t){const n=Yn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(qr(r),e(i-t))};return Oe.read(r,!0),()=>qr(r)}function $j(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Tj(e,t,n){const r=Mt(e)?e:ka(e);return r.start(og("",r,t,n)),r.animation}const ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},As=typeof window<"u"&&window.MotionDebug!==void 0,vf=["","X","Y","Z"],Ej={visibility:"hidden"},Ly=1e3;let Oj=0;function yf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Yw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Oe,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bC(r)}function xC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Oj++,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,As&&(ho.totalNodes=ho.resolvedTargetDeltas=ho.recalculatedProjection=0),this.nodes.forEach(Aj),this.nodes.forEach(Dj),this.nodes.forEach(Bj),this.nodes.forEach(jj),As&&window.MotionDebug.record(ho)},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=Pj(f,250),Fl.hasAnimatedSinceResize&&(Fl.hasAnimatedSinceResize=!1,this.nodes.forEach(By))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||Hj,{onLayoutAnimationStart:w,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!yC(this.targetLayout,g)||v,p=!f&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,p);const S={...Um(y,"layout"),onPlay:w,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||By(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,qr(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(zj),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&&bC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 k=S/1e3;zy(d.x,s.x,k),zy(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ks(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fj(this.relativeTarget,this.relativeTargetOrigin,f,k),p&&xj(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=rt()),ln(p,this.relativeTarget)),y&&(this.animationValues=c,hj(c,u,this.latestValues,k,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},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&&(qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update(()=>{Fl.hasAnimatedSinceResize=!0,this.currentAnimation=Tj(0,Ly,{...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(Ly),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&SC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||rt();const d=nn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=nn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ln(a,l),pi(a,c),Gs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Sj),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.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 u=this.getStack();u&&u.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 u={};l.z&&yf("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Dy),this.root.sharedNodes.clear()}}}function Rj(e){e.updateLayout()}function Mj(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"?un(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],v=nn(f);f.min=r[d].min,f.max=f.min+v}):SC(i,n.layoutBox,r)&&un(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],v=nn(r[d]);f.max=f.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=di();Gs(a,r,n.layoutBox);const l=di();s?Gs(l,e.applyTransform(o,!0),n.measuredBox):Gs(l,r,n.layoutBox);const u=!vC(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:v}=d;if(f&&v){const g=rt();Ks(g,n.layoutBox,f.layoutBox);const y=rt();Ks(y,r,v.layoutBox),yC(g,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Aj(e){As&&ho.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 jj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ij(e){e.clearSnapshot()}function Dy(e){e.clearMeasurements()}function _j(e){e.isLayoutDirty=!1}function Lj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function By(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Dj(e){e.resolveTargetDelta()}function Bj(e){e.calcProjection()}function zj(e){e.resetSkewAndRotation()}function Nj(e){e.removeLeadSnapshot()}function zy(e,t,n){e.translate=Ke(t.translate,0,n),e.scale=Ke(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ny(e,t,n,r){e.min=Ke(t.min,n.min,r),e.max=Ke(t.max,n.max,r)}function Fj(e,t,n,r){Ny(e.x,t.x,n.x,r),Ny(e.y,t.y,n.y,r)}function Vj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Hj={duration:.45,ease:[.4,0,.1,1]},Fy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Vy=Fy("applewebkit/")&&!Fy("chrome/")?Math.round:jt;function Hy(e){e.min=Vy(e.min),e.max=Vy(e.max)}function Wj(e){Hy(e.x),Hy(e.y)}function SC(e,t,n){return e==="position"||e==="preserve-aspect"&&!UA(Iy(t),Iy(n),.2)}function Uj(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Gj=xC({attachResizeListener:(e,t)=>ir(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bf={current:void 0},wC=xC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bf.current){const e=new Gj({});e.mount(window),e.setOptions({layoutScroll:!0}),bf.current=e}return bf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kj={pan:{Feature:aj},drag:{Feature:sj,ProjectionNode:wC,MeasureLayout:hC}};function Wy(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||oC())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Oe.postRender(()=>l(i,s))};return cr(e.current,n,o,{passive:!e.getProps()[r]})}class qj extends no{mount(){this.unmount=ur(Wy(this.node,!0),Wy(this.node,!1))}unmount(){}}class Yj extends no{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=ur(ir(this.node.current,"focus",()=>this.onFocus()),ir(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const CC=(e,t)=>t?e===t?!0:CC(e,t.parentElement):!1;function xf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,od(n))}class Xj extends no{constructor(){super(...arguments),this.removeStartListeners=jt,this.removeEndListeners=jt,this.removeAccessibleListeners=jt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=cr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!CC(this.node.current,a.target)?c:u;f&&Oe.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=cr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ur(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()||xf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Oe.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=ir(this.node.current,"keyup",s),xf("down",(a,l)=>{this.startPress(a,l)})},n=ir(this.node.current,"keydown",t),r=()=>{this.isPressing&&xf("cancel",(i,s)=>this.cancelPress(i,s))},o=ir(this.node.current,"blur",r);this.removeAccessibleListeners=ur(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&&Oe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!oC()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Oe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=cr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ir(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ur(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ah=new WeakMap,Sf=new WeakMap,Qj=e=>{const t=ah.get(e.target);t&&t(e)},Zj=e=>{e.forEach(Qj)};function Jj({root:e,...t}){const n=e||document;Sf.has(n)||Sf.set(n,{});const r=Sf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Zj,{root:e,...t})),r[o]}function eI(e,t,n){const r=Jj(t);return ah.set(e,n),r.observe(e),()=>{ah.delete(e),r.unobserve(e)}}const tI={some:0,all:1};class nI extends no{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:tI[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return eI(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(rI(t,n))&&this.startObserver()}unmount(){}}function rI({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oI={inView:{Feature:nI},tap:{Feature:Xj},focus:{Feature:Yj},hover:{Feature:qj}},iI={layout:{ProjectionNode:wC,MeasureLayout:hC}},kC=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),id=C.createContext({}),ug=typeof window<"u",sI=ug?C.useLayoutEffect:C.useEffect,PC=C.createContext({strict:!1});let Uy=!1;function aI(e,t,n,r,o){var i;const{visualElement:s}=C.useContext(id),a=C.useContext(PC),l=C.useContext(ag),u=C.useContext(kC).reducedMotion,c=C.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=c.current,f=C.useContext(pC);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&uI(c.current,n,o,f),C.useInsertionEffect(()=>{d&&d.update(n,l)});const v=n[qw],g=C.useRef(!!v&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,v)));return sI(()=>{d&&(d.updateFeatures(),lg.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),C.useEffect(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current=!1,Uy||(Uy=!0,queueMicrotask(lI)))}),d}function lI(){window.MotionHandoffIsComplete=!0}function uI(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$C(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ci(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function $C(e){if(e)return e.options.allowProjection!==!1?e.projection:$C(e.parent)}function cI(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ci(n)&&(n.current=r))},[t])}function sd(e){return xa(e.animate)||Wm.some(t=>Sa(e[t]))}function TC(e){return!!(sd(e)||e.variants)}function dI(e,t){if(sd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sa(n)?n:void 0,animate:Sa(r)?r:void 0}}return e.inherit!==!1?t:{}}function fI(e){const{initial:t,animate:n}=dI(e,C.useContext(id));return C.useMemo(()=>({initial:t,animate:n}),[Gy(t),Gy(n)])}function Gy(e){return Array.isArray(e)?e.join(" "):e}const Ky={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"]},Bi={};for(const e in Ky)Bi[e]={isEnabled:t=>Ky[e].some(n=>!!t[n])};function pI(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}const hI=Symbol.for("motionComponentSymbol");function mI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&pI(e);function i(a,l){let u;const c={...C.useContext(kC),...a,layoutId:gI(a)},{isStatic:d}=c,f=fI(a),v=r(a,d);if(!d&&ug){vI();const g=yI(c);u=g.MeasureLayout,f.visualElement=aI(o,v,c,t,g.ProjectionNode)}return x.jsxs(id.Provider,{value:f,children:[u&&f.visualElement?x.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,cI(v,f.visualElement,l),v,d,f.visualElement)]})}const s=C.forwardRef(i);return s[hI]=o,s}function gI({layoutId:e}){const t=C.useContext(fC).id;return t&&e!==void 0?t+"-"+e:e}function vI(e,t){C.useContext(PC).strict}function yI(e){const{drag:t,layout:n}=Bi;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 bI=["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 cg(e){return typeof e!="string"||e.includes("-")?!1:!!(bI.indexOf(e)>-1||/[A-Z]/u.test(e))}function EC(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 OC=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 RC(e,t,n,r){EC(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(OC.has(o)?o:rd(o),t.attrs[o])}function MC(e,{layout:t,layoutId:n}){return to.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function dg(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Mt(o[s])||t.style&&Mt(t.style[s])||MC(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 n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function AC(e,t,n){const r=dg(e,t,n);for(const o in e)if(Mt(e[o])||Mt(t[o])){const i=Na.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function xI(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}function SI({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:CI(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const jC=e=>(t,n)=>{const r=C.useContext(id),o=C.useContext(ag),i=()=>SI(e,t,r,o,n);return n?i():xI(i)};function wI(e,t){const n=Xw(t);n&&Ha(e,n)}function qy(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const h in w){let p=w[h];if(Array.isArray(p)){const S=g?p.length-1:0;p=p[S]}p!==null&&(s[h]=p)}for(const h in m)s[h]=m[h]}),l&&(d&&c!==!1&&!xa(d)&&qy(e,d,w=>{for(const m in w)wI(a,m)}),a.length&&(s.willChange=a.join(","))),s}const fg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),IC=()=>({...fg(),attrs:{}}),_C=(e,t)=>t&&typeof e=="number"?t.transform(e):e,kI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PI=Na.length;function $I(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",MI={useVisualState:jC({scrapeMotionValuesFromProps:AC,createRenderState:IC,onMount:(e,t,{renderState:n,latestValues:r})=>{Oe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Oe.render(()=>{hg(n,r,mg(t.tagName),e.transformTemplate),RC(t,n)})}})},AI={useVisualState:jC({applyWillChange:!0,scrapeMotionValuesFromProps:dg,createRenderState:fg})};function LC(e,t,n){for(const r in t)!Mt(t[r])&&!MC(r,n)&&(e[r]=t[r])}function jI({transformTemplate:e},t){return C.useMemo(()=>{const n=fg();return pg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function II(e,t){const n=e.style||{},r={};return LC(r,n,e),Object.assign(r,jI(e,t)),r}function _I(e,t){const n={},r=II(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 LI=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 Iu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LI.has(e)}let DC=e=>!Iu(e);function DI(e){e&&(DC=t=>t.startsWith("on")?!Iu(t):e(t))}try{DI(require("@emotion/is-prop-valid").default)}catch{}function BI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(DC(o)||n===!0&&Iu(o)||!t&&!Iu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function zI(e,t,n,r){const o=C.useMemo(()=>{const i=IC();return hg(i,t,mg(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};LC(i,e.style,e),o.style={...i,...o.style}}return o}function NI(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(cg(n)?zI:_I)(r,i,s,n),u=BI(r,typeof n=="string",e),c=n!==C.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=C.useMemo(()=>Mt(d)?d.get():d,[d]);return C.createElement(n,{...c,children:f})}}function FI(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...cg(r)?MI:AI,preloadedFeatures:e,useRender:NI(o),createVisualElement:t,Component:r};return mI(s)}}const lh={current:null},BC={current:!1};function VI(){if(BC.current=!0,!!ug)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lh.current=e.matches;e.addListener(t),t()}else lh.current=!1}function HI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Mt(o))e.addValue(r,o);else if(Mt(i))e.addValue(r,ka(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,ka(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xy=new WeakMap,WI=[...Pw,Ot,Xr],UI=e=>WI.find(kw(e)),Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ym,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=Yn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),BC.current||VI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Xy.delete(this.current),this.projection&&this.projection.unmount(),qr(this.notifyUpdate),qr(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=to.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Oe.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 Bi){const n=Bi[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):rt()}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=ka(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"&&(xw(o)||bw(o))?o=parseFloat(o):!UI(o)&&Xr.test(n)&&(o=jw(t,n)),this.setBaseTarget(t,Mt(o)?o.get():o)),Mt(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=Vm(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&&!Mt(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 sg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class zC extends GI{constructor(){super(...arguments),this.KeyframeResolver=Iw}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 KI(e){return window.getComputedStyle(e)}class qI extends zC{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=EC}readValueFromInstance(t,n){if(to.has(n)){const r=Jm(n);return r&&r.default||0}else{const r=KI(t),o=(ww(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cC(t,n)}build(t,n,r){pg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return dg(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Mt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class YI extends zC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(to.has(n)){const r=Jm(n);return r&&r.default||0}return n=OC.has(n)?n:rd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return AC(t,n,r)}build(t,n,r){hg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){RC(t,n,r,o)}mount(t){this.isSVGTag=mg(t.tagName),super.mount(t)}}const XI=(e,t)=>cg(e)?new YI(t):new qI(t,{allowProjection:e!==C.Fragment}),QI=FI({...LA,...oI,...Kj,...iI},XI),jn=EM(QI),ZI=G(dM)(({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}})),Zy=G("div")({display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24});function JI(){const{light:e,toggle:t}=C.useContext(In);return x.jsxs(jn.div,{whileHover:{scale:1.05},whileTap:{scale:.95},style:{display:"flex",alignItems:"center"},children:[x.jsx(Zy,{children:x.jsx(TM,{style:{color:e?"#FFD700":"#A9A9A9"}})}),x.jsx(ZI,{checked:!e,onChange:t,inputProps:{"aria-label":"toggle theme"}}),x.jsx(Zy,{children:x.jsx(wM,{style:{color:e?"#A9A9A9":"#4169E1"}})})]})}const Jy=[{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"}];function e_(){const[e,t]=C.useState(null),{theme:n,light:r}=C.useContext(In),o=ja(),[i,s]=C.useState(!1);C.useEffect(()=>{const c=()=>{const d=window.scrollY>10;d!==i&&s(d)};return document.addEventListener("scroll",c),()=>{document.removeEventListener("scroll",c)}},[i]);const a=c=>{t(c.currentTarget)},l=()=>{t(null)},u=()=>r?i?"white":"#333333":"white";return x.jsx(nR,{position:"fixed",sx:{backgroundColor:i?n.header.backgroundColor:"transparent",boxShadow:i?3:0,transition:"all 0.3s ease-in-out"},children:x.jsx(Ii,{maxWidth:"xl",children:x.jsxs(lR,{disableGutters:!0,children:[x.jsx(jn.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.5},children:x.jsx(Up,{sx:{display:{xs:"none",md:"flex"},mr:1,fontSize:40,color:u()}})}),x.jsx(Nn,{to:"/fer-lab1/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:x.jsx(ae,{variant:"h6",noWrap:!0,sx:{mr:2,display:{xs:"none",md:"flex"},fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:u(),textDecoration:"none"},children:"ORCHID HAVEN"})}),x.jsxs(me,{sx:{flexGrow:1,display:{xs:"flex",md:"none"}},children:[x.jsx(yn,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:a,sx:{color:u()},children:x.jsx(_3,{})}),x.jsx(rw,{id:"menu-appbar",anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"left"},open:!!e,onClose:l,sx:{display:{xs:"block",md:"none"}},children:Jy.map(c=>x.jsx(Q3,{onClick:l,component:Nn,to:c.path,children:x.jsx(ae,{textAlign:"center",children:c.name})},c.name))})]}),x.jsx(Up,{sx:{display:{xs:"flex",md:"none"},mr:1,fontSize:32,color:u()}}),x.jsx(ae,{variant:"h5",noWrap:!0,component:Nn,to:"/fer-lab1/",sx:{mr:2,display:{xs:"flex",md:"none"},flexGrow:1,fontFamily:"Poppins, sans-serif",fontWeight:700,letterSpacing:".3rem",color:u(),textDecoration:"none"},children:"ORCHID HAVEN"}),x.jsx(me,{sx:{flexGrow:1,display:{xs:"none",md:"flex"},justifyContent:"center"},children:Jy.map(c=>x.jsx(Ro,{component:Nn,to:c.path,onClick:l,sx:{my:2,mx:1,color:u(),display:"block",fontFamily:"Poppins, sans-serif",fontWeight:500,position:"relative","&::after":{content:'""',position:"absolute",width:"100%",height:"2px",bottom:0,left:0,backgroundColor:u(),transform:o.pathname===c.path?"scaleX(1)":"scaleX(0)",transition:"transform 0.3s ease-in-out"},"&:hover::after":{transform:"scaleX(1)"}},children:c.name},c.name))}),x.jsx(JI,{})]})})})}const t_=Ee(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function n_(e){return ge("MuiChip",e)}const de=le("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"]),r_=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${F(r)}`,`color${F(o)}`,a&&"clickable",a&&`clickableColor${F(o)}`,s&&"deletable",s&&`deletableColor${F(o)}`,`${l}${F(o)}`],label:["label",`label${F(r)}`],avatar:["avatar",`avatar${F(r)}`,`avatarColor${F(o)}`],icon:["icon",`icon${F(r)}`,`iconColor${F(i)}`],deleteIcon:["deleteIcon",`deleteIcon${F(r)}`,`deleteIconColor${F(o)}`,`deleteIcon${F(l)}Color${F(o)}`]};return ve(u,n_,t)},o_=G("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[{[`& .${de.avatar}`]:t.avatar},{[`& .${de.avatar}`]:t[`avatar${F(a)}`]},{[`& .${de.avatar}`]:t[`avatarColor${F(r)}`]},{[`& .${de.icon}`]:t.icon},{[`& .${de.icon}`]:t[`icon${F(a)}`]},{[`& .${de.icon}`]:t[`iconColor${F(o)}`]},{[`& .${de.deleteIcon}`]:t.deleteIcon},{[`& .${de.deleteIcon}`]:t[`deleteIcon${F(a)}`]},{[`& .${de.deleteIcon}`]:t[`deleteIconColor${F(r)}`]},{[`& .${de.deleteIcon}`]:t[`deleteIcon${F(l)}Color${F(r)}`]},t.root,t[`size${F(a)}`],t[`color${F(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${F(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${F(r)}`],t[l],t[`${l}${F(r)}`]]}})(xe(({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",[`&.${de.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${de.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${de.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${de.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${de.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${de.icon}`]:{marginLeft:5,marginRight:-6},[`& .${de.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:je(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)`:je(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${de.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${de.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Wt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${de.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:je(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${de.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${de.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${de.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${de.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}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${de.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Wt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${de.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]}`,[`&.${de.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${de.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${de.avatar}`]:{marginLeft:4},[`& .${de.avatarSmall}`]:{marginLeft:2},[`& .${de.icon}`]:{marginLeft:4},[`& .${de.iconSmall}`]:{marginLeft:2},[`& .${de.deleteIcon}`]:{marginRight:5},[`& .${de.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Wt()).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)`:je(e.palette[n].main,.7)}`,[`&.${de.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${de.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:je(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${de.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:je(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),i_=G("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${F(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 e1(e){return e.key==="Backspace"||e.key==="Delete"}const js=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:w,size:m="medium",variant:h="filled",tabIndex:p,skipFocusWhenDisabled:S=!1,...k}=r,P=C.useRef(null),$=ht(P,n),T=L=>{L.stopPropagation(),g&&g(L)},O=L=>{L.currentTarget===L.target&&e1(L)&&L.preventDefault(),y&&y(L)},b=L=>{L.currentTarget===L.target&&g&&e1(L)&&g(L),w&&w(L)},E=s!==!1&&v?!0:s,R=E||g?ji:l||"div",M={...r,component:R,disabled:c,size:m,color:a,iconColor:C.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:E,variant:h},A=r_(M),_=R===ji?{component:l||"div",focusVisibleClassName:A.focusVisible,...g&&{disableRipple:!0}}:{};let D=null;g&&(D=u&&C.isValidElement(u)?C.cloneElement(u,{className:Y(u.props.className,A.deleteIcon),onClick:T}):x.jsx(t_,{className:Y(A.deleteIcon),onClick:T}));let B=null;o&&C.isValidElement(o)&&(B=C.cloneElement(o,{className:Y(A.avatar,o.props.className)}));let j=null;return d&&C.isValidElement(d)&&(j=C.cloneElement(d,{className:Y(A.icon,d.props.className)})),x.jsxs(o_,{as:R,className:Y(A.root,i),disabled:E&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:b,ref:$,tabIndex:S&&c?-1:p,ownerState:M,..._,...k,children:[B||j,x.jsx(i_,{className:Y(A.label),ownerState:M,children:f}),D]})});function Sl(e){return parseInt(e,10)||0}const s_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function a_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const l_=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=t,{current:u}=C.useRef(a!=null),c=C.useRef(null),d=ht(n,c),f=C.useRef(null),v=C.useRef(null),g=C.useCallback(()=>{const m=c.current,p=yr(m).getComputedStyle(m);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=v.current;S.style.width=p.width,S.value=m.value||t.placeholder||"x",S.value.slice(-1)===` -`&&(S.value+=" ");const k=p.boxSizing,P=Sl(p.paddingBottom)+Sl(p.paddingTop),$=Sl(p.borderBottomWidth)+Sl(p.borderTopWidth),T=S.scrollHeight;S.value="x";const O=S.scrollHeight;let b=T;i&&(b=Math.max(Number(i)*O,b)),o&&(b=Math.min(Number(o)*O,b)),b=Math.max(b,O);const E=b+(k==="border-box"?P+$:0),R=Math.abs(b-T)<=1;return{outerHeightStyle:E,overflowing:R}},[o,i,t.placeholder]),y=C.useCallback(()=>{const m=g();if(a_(m))return;const h=m.outerHeightStyle,p=c.current;f.current!==h&&(f.current=h,p.style.height=`${h}px`),p.style.overflow=m.overflowing?"hidden":""},[g]);Gr(()=>{const m=()=>{y()};let h;const p=zS(m),S=c.current,k=yr(S);k.addEventListener("resize",p);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(m),P.observe(S)),()=>{p.clear(),cancelAnimationFrame(h),k.removeEventListener("resize",p),P&&P.disconnect()}},[g,y]),Gr(()=>{y()});const w=m=>{u||y(),r&&r(m)};return x.jsxs(C.Fragment,{children:[x.jsx("textarea",{value:a,onChange:w,ref:d,rows:i,style:s,...l}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...s_.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Zi({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 t1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _u(e,t=!1){return e&&(t1(e.value)&&e.value!==""||t&&t1(e.defaultValue)&&e.defaultValue!=="")}function u_(e){return e.startAdornment}function c_(e){return ge("MuiInputBase",e)}const zi=le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var n1;const ad=(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${F(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ld=(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]},d_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:v,type:g}=e,y={root:["root",`color${F(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${F(f)}`,c&&"multiline",v&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return ve(y,c_,t)},ud=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ad})(xe(({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",[`&.${zi.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%"}}]}))),cd=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ld})(xe(({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] + .${zi.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},[`&.${zi.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"}}]}})),r1=GO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),gg=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:v,endAdornment:g,error:y,fullWidth:w=!1,id:m,inputComponent:h="input",inputProps:p={},inputRef:S,margin:k,maxRows:P,minRows:$,multiline:T=!1,name:O,onBlur:b,onChange:E,onClick:R,onFocus:M,onKeyDown:A,onKeyUp:_,placeholder:D,readOnly:B,renderSuffix:j,rows:L,size:V,slotProps:X={},slots:Z={},startAdornment:ee,type:te="text",value:ue,...we}=r,se=p.value!=null?p.value:ue,{current:U}=C.useRef(se!=null),J=C.useRef(),K=C.useCallback(Ne=>{},[]),H=ht(J,S,p.ref,K),[Q,Pe]=C.useState(!1),ce=_o(),ye=Zi({props:r,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ce?ce.focused:Q,C.useEffect(()=>{!ce&&f&&Q&&(Pe(!1),b&&b())},[ce,f,Q,b]);const dt=ce&&ce.onFilled,Xe=ce&&ce.onEmpty,_e=C.useCallback(Ne=>{_u(Ne)?dt&&dt():Xe&&Xe()},[dt,Xe]);Gr(()=>{U&&_e({value:se})},[se,_e,U]);const nt=Ne=>{M&&M(Ne),p.onFocus&&p.onFocus(Ne),ce&&ce.onFocus?ce.onFocus(Ne):Pe(!0)},_n=Ne=>{b&&b(Ne),p.onBlur&&p.onBlur(Ne),ce&&ce.onBlur?ce.onBlur(Ne):Pe(!1)},Le=(Ne,...os)=>{if(!U){const is=Ne.target||J.current;if(is==null)throw new Error(gr(1));_e({value:is.value})}p.onChange&&p.onChange(Ne,...os),E&&E(Ne,...os)};C.useEffect(()=>{_e(J.current)},[]);const Zn=Ne=>{J.current&&Ne.currentTarget===Ne.target&&J.current.focus(),R&&R(Ne)};let ne=h,yt=p;T&&ne==="input"&&(L?yt={type:void 0,minRows:L,maxRows:L,...yt}:yt={type:void 0,maxRows:P,minRows:$,...yt},ne=l_);const ns=Ne=>{_e(Ne.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};C.useEffect(()=>{ce&&ce.setAdornedStart(!!ee)},[ce,ee]);const Jn={...r,color:ye.color||"primary",disabled:ye.disabled,endAdornment:g,error:ye.error,focused:ye.focused,formControl:ce,fullWidth:w,hiddenLabel:ye.hiddenLabel,multiline:T,size:ye.size,startAdornment:ee,type:te},ro=d_(Jn),rs=Z.root||u.Root||ud,Cr=X.root||c.root||{},Do=Z.input||u.Input||cd;return yt={...yt,...X.input??c.input},x.jsxs(C.Fragment,{children:[!v&&typeof r1=="function"&&(n1||(n1=x.jsx(r1,{}))),x.jsxs(rs,{...Cr,ref:n,onClick:Zn,...we,...!Vp(rs)&&{ownerState:{...Jn,...Cr.ownerState}},className:Y(ro.root,Cr.className,a,B&&"MuiInputBase-readOnly"),children:[ee,x.jsx(Nm.Provider,{value:null,children:x.jsx(Do,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:ye.disabled,id:m,onAnimationStart:ns,name:O,placeholder:D,readOnly:B,required:ye.required,rows:L,value:se,onKeyDown:A,onKeyUp:_,type:te,...yt,...!Vp(Do)&&{as:ne,ownerState:{...Jn,...yt.ownerState}},ref:H,className:Y(ro.input,yt.className,B&&"MuiInputBase-readOnly"),onBlur:_n,onChange:Le,onFocus:nt})}),g,j?j({...ye,startAdornment:ee}):null]})]})});function f_(e){return ge("MuiInput",e)}const xs={...zi,...le("MuiInput",["root","underline","input"])};function p_(e){return ge("MuiOutlinedInput",e)}const Bn={...zi,...le("MuiOutlinedInput",["root","notchedOutline","input"])};function h_(e){return ge("MuiFilledInput",e)}const io={...zi,...le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},m_=Ee(x.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),g_=Ee(x.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 v_(e){return ge("MuiAvatar",e)}le("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const y_=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ve({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},v_,t)},b_=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(xe(({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]})}}}]}))),x_=G("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),S_=G(g_,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function w_({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=C.useState(!1);return C.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 NC=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:v,variant:g="circular",...y}=r;let w=null;const m=w_({...c,src:f,srcSet:v}),h=f||v,p=h&&m!=="error",S={...r,colorDefault:!p,component:a,variant:g};delete S.ownerState;const k=y_(S),[P,$]=mn("img",{className:k.img,elementType:x_,externalForwardedProps:{slots:l,slotProps:{img:{...c,...u.img}}},additionalProps:{alt:o,src:f,srcSet:v,sizes:d},ownerState:S});return p?w=x.jsx(P,{...$}):i||i===0?w=i:h&&o?w=o[0]:w=x.jsx(S_,{ownerState:S,className:k.fallback}),x.jsx(b_,{as:a,className:Y(k.root,s),ref:n,...y,ownerState:S,children:w})});function C_(e){return ge("MuiCard",e)}le("MuiCard",["root"]);const k_=e=>{const{classes:t}=e;return ve({root:["root"]},C_,t)},P_=G(Oo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),FC=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...s}=r,a={...r,raised:i},l=k_(a);return x.jsx(P_,{className:Y(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a,...s})});function $_(e){return ge("MuiCardContent",e)}le("MuiCardContent",["root"]);const T_=e=>{const{classes:t}=e;return ve({root:["root"]},$_,t)},E_=G("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),VC=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=T_(a);return x.jsx(E_,{as:i,className:Y(l.root,o),ownerState:a,ref:n,...s})});function O_(e){return ge("MuiCardMedia",e)}le("MuiCardMedia",["root","media","img"]);const R_=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ve({root:["root",n&&"media",r&&"img"]},O_,t)},M_=G("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),A_=["video","audio","picture","iframe","img"],j_=["picture","img"],I_=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:s="div",image:a,src:l,style:u,...c}=r,d=A_.includes(s),f=!d&&a?{backgroundImage:`url("${a}")`,...u}:u,v={...r,component:s,isMediaComponent:d,isImageComponent:j_.includes(s)},g=R_(v);return x.jsx(M_,{className:Y(g.root,i),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:v,src:d?a||l:void 0,...c,children:o})}),__=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${F(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},u=ve(l,h_,t);return{...t,...u}},L_=G(ud,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ad(e,t),!n.disableUnderline&&t.underline]}})(xe(({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}},[`&.${io.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${io.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"},[`&.${io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${io.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(.${io.disabled}, .${io.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${io.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).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}}]}})),D_=G(cd,{name:"MuiFilledInput",slot:"Input",overridesResolver:ld})(xe(({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}}]}))),Lu=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:c=!1,slotProps:d,slots:f={},type:v="text",...g}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:c,type:v},w=__(r),m={root:{ownerState:y},input:{ownerState:y}},h=d??s?At(m,d??s):m,p=f.root??i.Root??L_,S=f.input??i.Input??D_;return x.jsx(gg,{slots:{root:p,input:S},componentsProps:h,fullWidth:a,inputComponent:u,multiline:c,ref:n,type:v,...g,classes:w})});Lu&&(Lu.muiName="Input");function B_(e){return ge("MuiFormControl",e)}le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const z_=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${F(n)}`,r&&"fullWidth"]};return ve(o,B_,t)},N_=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${F(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%"}}]}),F_=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:v="none",required:g=!1,size:y="medium",variant:w="outlined",...m}=r,h={...r,color:s,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:v,required:g,size:y,variant:w},p=z_(h),[S,k]=C.useState(()=>{let M=!1;return o&&C.Children.forEach(o,A=>{if(!ef(A,["Input","Select"]))return;const _=ef(A,["Select"])?A.props.input:A;_&&u_(_.props)&&(M=!0)}),M}),[P,$]=C.useState(()=>{let M=!1;return o&&C.Children.forEach(o,A=>{ef(A,["Input","Select"])&&(_u(A.props,!0)||_u(A.props.inputProps,!0))&&(M=!0)}),M}),[T,O]=C.useState(!1);l&&T&&O(!1);const b=c!==void 0&&!l?c:T;let E;C.useRef(!1);const R=C.useMemo(()=>({adornedStart:S,setAdornedStart:k,color:s,disabled:l,error:u,filled:P,focused:b,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{O(!0)},registerEffect:E,required:g,variant:w}),[S,s,l,u,P,b,d,f,E,g,y,w]);return x.jsx(Nm.Provider,{value:R,children:x.jsx(N_,{as:a,ownerState:h,className:Y(p.root,i),ref:n,...m,children:o})})});function V_(e){return ge("MuiFormHelperText",e)}const o1=le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var i1;const H_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${F(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ve(u,V_,t)},W_=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${F(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${o1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${o1.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}}]}))),U_=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:u,focused:c,margin:d,required:f,variant:v,...g}=r,y=_o(),w=Zi({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),m={...r,component:s,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete m.ownerState;const h=H_(m);return x.jsx(W_,{as:s,className:Y(h.root,i),ref:n,...g,ownerState:m,children:o===" "?i1||(i1=x.jsx("span",{className:"notranslate",children:"​"})):o})});function G_(e){return ge("MuiFormLabel",e)}const qs=le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),K_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${F(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ve(l,G_,t)},q_=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(xe(({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(Wt()).map(([t])=>({props:{color:t},style:{[`&.${qs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${qs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Y_=G("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(xe(({theme:e})=>({[`&.${qs.error}`]:{color:(e.vars||e).palette.error.main}}))),X_=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:u,filled:c,focused:d,required:f,...v}=r,g=_o(),y=Zi({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},m=K_(w);return x.jsxs(q_,{as:a,ownerState:w,className:Y(m.root,i),ref:n,...v,children:[o,y.required&&x.jsxs(Y_,{ownerState:w,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),Q_=e=>{const{classes:t,disableUnderline:n}=e,o=ve({root:["root",!n&&"underline"],input:["input"]},f_,t);return{...t,...o}},Z_=G(ud,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ad(e,t),!n.disableUnderline&&t.underline]}})(xe(({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"},[`&.${xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xs.disabled}, .${xs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${xs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),J_=G(cd,{name:"MuiInput",slot:"Input",overridesResolver:ld})({}),Du=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...v}=r,g=Q_(r),w={root:{ownerState:{disableUnderline:o}}},m=c??s?At(c??s,w):w,h=d.root??i.Root??Z_,p=d.input??i.Input??J_;return x.jsx(gg,{slots:{root:h,input:p},slotProps:m,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:f,...v,classes:g})});Du&&(Du.muiName="Input");function eL(e){return ge("MuiInputLabel",e)}le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tL=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${F(r)}`,s],asterisk:[a&&"asterisk"]},u=ve(l,eL,t);return{...t,...u}},nL=G(X_,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qs.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]]}})(xe(({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)"}}]}))),rL=C.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...u}=r,c=_o();let d=s;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Zi({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),v={...r,disableAnimation:o,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=tL(v);return x.jsx(nL,{"data-shrink":d,ref:n,className:Y(g.root,l),...u,ownerState:v,classes:g})});function oL(e){return ge("MuiNativeSelect",e)}const vg=le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iL=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${F(n)}`,i&&"iconOpen",r&&"disabled"]};return ve(a,oL,t)},HC=G("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${vg.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}}}]})),sL=G(HC,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:an,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vg.multiple}`]:t.multiple}]}})({}),WC=G("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${vg.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}}]})),aL=G(WC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${F(n.variant)}`],n.open&&t.iconOpen]}})({}),lL=C.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...u}=t,c={...t,disabled:o,variant:l,error:i},d=iL(c);return x.jsxs(C.Fragment,{children:[x.jsx(sL,{ownerState:c,className:Y(d.select,r),disabled:o,ref:a||n,...u}),t.multiple?null:x.jsx(aL,{as:s,ownerState:c,className:d.icon})]})});var s1;const uL=G("fieldset",{shouldForwardProp:an})({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%"}),cL=G("legend",{shouldForwardProp:an})(xe(({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 dL(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 x.jsx(uL,{"aria-hidden":!0,className:r,ownerState:l,...s,children:x.jsx(cL,{ownerState:l,children:a?x.jsx("span",{children:o}):s1||(s1=x.jsx("span",{className:"notranslate",children:"​"}))})})}const fL=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p_,t);return{...t,...r}},pL=G(ud,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ad})(xe(({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 .${Bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Bn.focused} .${Bn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wt()).map(([n])=>({props:{color:n},style:{[`&.${Bn.focused} .${Bn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Bn.error} .${Bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bn.disabled} .${Bn.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"}}]}})),hL=G(dL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(xe(({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}})),mL=G(cd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ld})(xe(({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}}]}))),Bu=C.forwardRef(function(t,n){var r;const o=Se({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:c,slots:d={},type:f="text",...v}=o,g=fL(o),y=_o(),w=Zi({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...o,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:s,hiddenLabel:w.hiddenLabel,multiline:u,size:w.size,type:f},h=d.root??i.Root??pL,p=d.input??i.Input??mL;return x.jsx(gg,{slots:{root:h,input:p},renderSuffix:S=>x.jsx(hL,{ownerState:m,className:g.notchedOutline,label:l!=null&&l!==""&&w.required?r||(r=x.jsxs(C.Fragment,{children:[l," ","*"]})):l,notched:typeof c<"u"?c:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:s,inputComponent:a,multiline:u,ref:n,type:f,...v,classes:{...g,notchedOutline:null}})});Bu&&(Bu.muiName="Input");const gL=Ee(x.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"),vL=Ee(x.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 yL(e){return ge("MuiRating",e)}const Ss=le("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function bL(e){const t=e.toString().split(".")[1];return t?t.length:0}function wf(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(bL(t)))}const xL=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${F(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,yL,t)},SL=G("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ss.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${F(n.size)}`],n.readOnly&&t.readOnly]}})(xe(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Ss.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ss.focusVisible} .${Ss.iconActive}`]:{outline:"1px solid #999"},[`& .${Ss.visuallyHidden}`]:QE,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"}}]}))),UC=G("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%"}}]}),wL=G("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]}})(xe(({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}}]}))),CL=G("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Im(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 kL(e){const{value:t,...n}=e;return x.jsx("span",{...n})}function a1(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:u,isActive:c,itemValue:d,labelProps:f,name:v,onBlur:g,onChange:y,onClick:w,onFocus:m,readOnly:h,ownerState:p,ratingValue:S,ratingValueRounded:k}=e,P=s?d===S:d<=S,$=d<=a,T=d<=o,O=d===k,b=`${v}-${Hc()}`,E=x.jsx(wL,{as:u,value:d,className:Y(t.icon,P?t.iconFilled:t.iconEmpty,$&&t.iconHover,T&&t.iconFocus,c&&t.iconActive),ownerState:{...p,iconEmpty:!P,iconFilled:P,iconHover:$,iconFocus:T,iconActive:c},children:r&&!P?r:l});return h?x.jsx("span",{...f,children:E}):x.jsxs(C.Fragment,{children:[x.jsxs(UC,{ownerState:{...p,emptyValueFocused:void 0},htmlFor:b,...f,children:[E,x.jsx("span",{className:t.visuallyHidden,children:i(d)})]}),x.jsx("input",{className:t.visuallyHidden,onFocus:m,onBlur:g,onChange:y,onClick:w,disabled:n,value:d,id:b,type:"radio",name:v,checked:O})]})}const PL=x.jsx(gL,{fontSize:"inherit"}),$L=x.jsx(vL,{fontSize:"inherit"});function TL(e){return`${e||"0"} Star${e!==1?"s":""}`}const GC=C.forwardRef(function(t,n){const r=Se({name:"MuiRating",props:t}),{className:o,defaultValue:i=null,disabled:s=!1,emptyIcon:a=$L,emptyLabelText:l="Empty",getLabelText:u=TL,highlightSelectedOnly:c=!1,icon:d=PL,IconContainerComponent:f=kL,max:v=5,name:g,onChange:y,onChangeActive:w,onMouseLeave:m,onMouseMove:h,precision:p=1,readOnly:S=!1,size:k="medium",value:P,...$}=r,T=Hc(g),[O,b]=wu({controlled:P,default:i,name:"Rating"}),E=wf(O,p),R=KS(),[{hover:M,focus:A},_]=C.useState({hover:-1,focus:-1});let D=E;M!==-1&&(D=M),A!==-1&&(D=A);const[B,j]=C.useState(!1),L=C.useRef(),V=ht(L,n),X=H=>{h&&h(H);const Q=L.current,{right:Pe,left:ce,width:ye}=Q.getBoundingClientRect();let dt;R?dt=(Pe-H.clientX)/ye:dt=(H.clientX-ce)/ye;let Xe=wf(v*dt+p/2,p);Xe=DS(Xe,p,v),_(_e=>_e.hover===Xe&&_e.focus===Xe?_e:{hover:Xe,focus:Xe}),j(!1),w&&M!==Xe&&w(H,Xe)},Z=H=>{m&&m(H);const Q=-1;_({hover:Q,focus:Q}),w&&M!==Q&&w(H,Q)},ee=H=>{let Q=H.target.value===""?null:parseFloat(H.target.value);M!==-1&&(Q=M),b(Q),y&&y(H,Q)},te=H=>{H.clientX===0&&H.clientY===0||(_({hover:-1,focus:-1}),b(null),y&&parseFloat(H.target.value)===E&&y(H,null))},ue=H=>{Cu(H.target)&&j(!0);const Q=parseFloat(H.target.value);_(Pe=>({hover:Pe.hover,focus:Q}))},we=H=>{if(M!==-1)return;Cu(H.target)||j(!1);const Q=-1;_(Pe=>({hover:Pe.hover,focus:Q}))},[se,U]=C.useState(!1),J={...r,defaultValue:i,disabled:s,emptyIcon:a,emptyLabelText:l,emptyValueFocused:se,focusVisible:B,getLabelText:u,icon:d,IconContainerComponent:f,max:v,precision:p,readOnly:S,size:k},K=xL(J);return x.jsxs(SL,{ref:V,onMouseMove:X,onMouseLeave:Z,className:Y(K.root,o,S&&"MuiRating-readOnly"),ownerState:J,role:S?"img":null,"aria-label":S?u(D):null,...$,children:[Array.from(new Array(v)).map((H,Q)=>{const Pe=Q+1,ce={classes:K,disabled:s,emptyIcon:a,focus:A,getLabelText:u,highlightSelectedOnly:c,hover:M,icon:d,IconContainerComponent:f,name:T,onBlur:we,onChange:ee,onClick:te,onFocus:ue,ratingValue:D,ratingValueRounded:E,readOnly:S,ownerState:J},ye=Pe===Math.ceil(D)&&(M!==-1||A!==-1);if(p<1){const dt=Array.from(new Array(1/p));return x.jsx(CL,{className:Y(K.decimal,ye&&K.iconActive),ownerState:J,iconActive:ye,children:dt.map((Xe,_e)=>{const nt=wf(Pe-1+(_e+1)*p,p);return x.jsx(a1,{...ce,isActive:!1,itemValue:nt,labelProps:{style:dt.length-1===_e?{}:{width:nt===D?`${(_e+1)*p*100}%`:"0%",overflow:"hidden",position:"absolute"}}},nt)})},Pe)}return x.jsx(a1,{...ce,isActive:ye,itemValue:Pe},Pe)}),!S&&!s&&x.jsxs(UC,{className:Y(K.label,K.labelEmptyValue),ownerState:J,children:[x.jsx("input",{className:K.visuallyHidden,value:"",id:`${T}-empty`,type:"radio",name:T,checked:E==null,onFocus:()=>U(!0),onBlur:()=>U(!1),onChange:ee}),x.jsx("span",{className:K.visuallyHidden,children:l})]})]})});function EL(e){return ge("MuiSelect",e)}const ws=le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var l1;const OL=G(HC,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ws.select}`]:t.select},{[`&.${ws.select}`]:t[n.variant]},{[`&.${ws.error}`]:t.error},{[`&.${ws.multiple}`]:t.multiple}]}})({[`&.${ws.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),RL=G(WC,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${F(n.variant)}`],n.open&&t.iconOpen]}})({}),ML=G("input",{shouldForwardProp:e=>Im(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 u1(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function AL(e){return e==null||typeof e=="string"&&!e.trim()}const jL=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${F(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(a,EL,t)},IL=C.forwardRef(function(t,n){var is;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:v=!1,IconComponent:g,inputRef:y,labelId:w,MenuProps:m={},multiple:h,name:p,onBlur:S,onChange:k,onClose:P,onFocus:$,onOpen:T,open:O,readOnly:b,renderValue:E,SelectDisplayProps:R={},tabIndex:M,type:A,value:_,variant:D="standard",...B}=t,[j,L]=wu({controlled:_,default:c,name:"Select"}),[V,X]=wu({controlled:O,default:u,name:"Select"}),Z=C.useRef(null),ee=C.useRef(null),[te,ue]=C.useState(null),{current:we}=C.useRef(O!=null),[se,U]=C.useState(),J=ht(n,y),K=C.useCallback(ie=>{ee.current=ie,ie&&ue(ie)},[]),H=te==null?void 0:te.parentNode;C.useImperativeHandle(J,()=>({focus:()=>{ee.current.focus()},node:Z.current,value:j}),[j]),C.useEffect(()=>{u&&V&&te&&!we&&(U(s?null:H.clientWidth),ee.current.focus())},[te,s]),C.useEffect(()=>{i&&ee.current.focus()},[i]),C.useEffect(()=>{if(!w)return;const ie=An(ee.current).getElementById(w);if(ie){const De=()=>{getSelection().isCollapsed&&ee.current.focus()};return ie.addEventListener("click",De),()=>{ie.removeEventListener("click",De)}}},[w]);const Q=(ie,De)=>{ie?T&&T(De):P&&P(De),we||(U(s?null:H.clientWidth),X(ie))},Pe=ie=>{ie.button===0&&(ie.preventDefault(),ee.current.focus(),Q(!0,ie))},ce=ie=>{Q(!1,ie)},ye=C.Children.toArray(a),dt=ie=>{const De=ye.find(bt=>bt.props.value===ie.target.value);De!==void 0&&(L(De.props.value),k&&k(ie,De))},Xe=ie=>De=>{let bt;if(De.currentTarget.hasAttribute("tabindex")){if(h){bt=Array.isArray(j)?j.slice():[];const Bo=j.indexOf(ie.props.value);Bo===-1?bt.push(ie.props.value):bt.splice(Bo,1)}else bt=ie.props.value;if(ie.props.onClick&&ie.props.onClick(De),j!==bt&&(L(bt),k)){const Bo=De.nativeEvent||De,Ag=new Bo.constructor(Bo.type,Bo);Object.defineProperty(Ag,"target",{writable:!0,value:{value:bt,name:p}}),k(Ag,ie)}h||Q(!1,De)}},_e=ie=>{b||[" ","ArrowUp","ArrowDown","Enter"].includes(ie.key)&&(ie.preventDefault(),Q(!0,ie))},nt=te!==null&&V,_n=ie=>{!nt&&S&&(Object.defineProperty(ie,"target",{writable:!0,value:{value:j,name:p}}),S(ie))};delete B["aria-invalid"];let Le,Zn;const ne=[];let yt=!1;(_u({value:j})||f)&&(E?Le=E(j):yt=!0);const ns=ye.map(ie=>{if(!C.isValidElement(ie))return null;let De;if(h){if(!Array.isArray(j))throw new Error(gr(2));De=j.some(bt=>u1(bt,ie.props.value)),De&&yt&&ne.push(ie.props.children)}else De=u1(j,ie.props.value),De&&yt&&(Zn=ie.props.children);return C.cloneElement(ie,{"aria-selected":De?"true":"false",onClick:Xe(ie),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),ie.props.onKeyUp&&ie.props.onKeyUp(bt)},role:"option",selected:De,value:void 0,"data-value":ie.props.value})});yt&&(h?ne.length===0?Le=null:Le=ne.reduce((ie,De,bt)=>(ie.push(De),bt{const{classes:t}=e;return t},yg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>an(e)&&e!=="variant",slot:"Root"},LL=G(Du,yg)(""),DL=G(Bu,yg)(""),BL=G(Lu,yg)(""),KC=C.forwardRef(function(t,n){const r=QS({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=m_,id:d,input:f,inputProps:v,label:g,labelId:y,MenuProps:w,multiple:m=!1,native:h=!1,onClose:p,onOpen:S,open:k,renderValue:P,SelectDisplayProps:$,variant:T="outlined",...O}=r,b=h?lL:IL,E=_o(),R=Zi({props:r,muiFormControl:E,states:["variant","error"]}),M=R.variant||T,A={...r,variant:M,classes:s},_=_L(A),{root:D,...B}=_,j=f||{standard:x.jsx(LL,{ownerState:A}),outlined:x.jsx(DL,{label:g,ownerState:A}),filled:x.jsx(BL,{ownerState:A})}[M],L=ht(n,Ba(j));return x.jsx(C.Fragment,{children:C.cloneElement(j,{inputComponent:b,inputProps:{children:i,error:R.error,IconComponent:c,variant:M,type:void 0,multiple:m,...h?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:w,onClose:p,onOpen:S,open:k,renderValue:P,SelectDisplayProps:{id:d,...$}},...v,classes:v?At(B,v.classes):B,...f?f.props.inputProps:{}},...(m&&h||u)&&M==="outlined"?{notched:!0}:{},ref:L,className:Y(j.props.className,a,_.root),...!f&&{variant:M},...O})})});KC.muiName="Select";function zL(e){return ge("MuiTextField",e)}le("MuiTextField",["root"]);const NL={standard:Du,filled:Lu,outlined:Bu},FL=e=>{const{classes:t}=e;return ve({root:["root"]},zL,t)},VL=G(F_,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cf=C.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:w,inputProps:m,InputProps:h,inputRef:p,label:S,maxRows:k,minRows:P,multiline:$=!1,name:T,onBlur:O,onChange:b,onFocus:E,placeholder:R,required:M=!1,rows:A,select:_=!1,SelectProps:D,slots:B={},slotProps:j={},type:L,value:V,variant:X="outlined",...Z}=r,ee={...r,autoFocus:i,color:l,disabled:c,error:d,fullWidth:v,multiline:$,required:M,select:_,variant:X},te=FL(ee),ue=Hc(y),we=g&&ue?`${ue}-helper-text`:void 0,se=S&&ue?`${ue}-label`:void 0,U=NL[X],J={slots:B,slotProps:{input:h,inputLabel:w,htmlInput:m,formHelperText:f,select:D,...j}},K={},H=J.slotProps.inputLabel;X==="outlined"&&(H&&typeof H.shrink<"u"&&(K.notched=H.shrink),K.label=S),_&&((!D||!D.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const[Q,Pe]=mn("input",{elementType:U,externalForwardedProps:J,additionalProps:K,ownerState:ee}),[ce,ye]=mn("inputLabel",{elementType:rL,externalForwardedProps:J,ownerState:ee}),[dt,Xe]=mn("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:ee}),[_e,nt]=mn("formHelperText",{elementType:U_,externalForwardedProps:J,ownerState:ee}),[_n,Le]=mn("select",{elementType:KC,externalForwardedProps:J,ownerState:ee}),Zn=x.jsx(Q,{"aria-describedby":we,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:v,multiline:$,name:T,rows:A,maxRows:k,minRows:P,type:L,value:V,id:ue,inputRef:p,onBlur:O,onChange:b,onFocus:E,placeholder:R,inputProps:Xe,slots:{input:B.htmlInput?dt:void 0},...Pe});return x.jsxs(VL,{className:Y(te.root,a),disabled:c,error:d,fullWidth:v,ref:n,required:M,color:l,variant:X,ownerState:ee,...Z,children:[S!=null&&S!==""&&x.jsx(ce,{htmlFor:ue,id:se,...ye,children:S}),_?x.jsx(_n,{"aria-describedby":we,id:ue,labelId:se,value:V,input:Zn,...Le,children:s}):Zn,g&&x.jsx(_e,{id:we,...nt,children:g})]})}),Cs={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"}},qC="$$joy";function uh(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 Mr(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 YC(e){if(!Mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=YC(e[n])}),t}function dr(e,t,n={clone:!0}){const r=n.clone?N({},e):e;return Mr(e)&&Mr(t)&&Object.keys(t).forEach(o=>{Mr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Mr(e[o])?r[o]=dr(e[o],t[o],n):n.clone?r[o]=Mr(t[o])?YC(t[o]):t[o]:r[o]=t[o]}),r}const UL=["values","unit","step"],GL=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({},n,{[r.key]:r.val}),{})};function XC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=it(e,UL),i=GL(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 u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${bg[e]}px)`};function br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||c1;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||c1;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||bg).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 qL(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function YL(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Xn(e){if(typeof e!="string")throw new Error(uh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dd(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 zu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=dd(e,n)||r,t&&(o=t(o,r,e)),o}function at(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,u=dd(l,r)||{};return br(s,a,d=>{let f=zu(u,o,d);return d===f&&typeof d=="string"&&(f=zu(u,o,`${t}${d==="default"?"":Xn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function XL(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QL={m:"margin",p:"padding"},ZL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JL=XL(e=>{if(e.length>2)if(d1[e])e=d1[e];else return[e];const[t,n]=e.split(""),r=QL[t],o=ZL[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),xg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...xg,...Sg];function Wa(e,t,n,r){var o;const i=(o=dd(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 QC(e){return Wa(e,"spacing",8)}function Ua(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 eD(e,t){return n=>e.reduce((r,o)=>(r[o]=Ua(t,n),r),{})}function tD(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=JL(n),i=eD(o,r),s=e[n];return br(e,s,i)}function ZC(e,t){const n=QC(e.theme);return Object.keys(e).map(r=>tD(e,t,r,n)).reduce(Ys,{})}function Je(e){return ZC(e,xg)}Je.propTypes={};Je.filterProps=xg;function et(e){return ZC(e,Sg)}et.propTypes={};et.filterProps=Sg;function JC(e=8){if(e.mui)return e;const t=QC({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 fd(...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]?Ys(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function hn(e){return typeof e!="number"?e:`${e}px solid`}function kn(e,t){return at({prop:e,themeKey:"borders",transform:t})}const nD=kn("border",hn),rD=kn("borderTop",hn),oD=kn("borderRight",hn),iD=kn("borderBottom",hn),sD=kn("borderLeft",hn),aD=kn("borderColor"),lD=kn("borderTopColor"),uD=kn("borderRightColor"),cD=kn("borderBottomColor"),dD=kn("borderLeftColor"),fD=kn("outline",hn),pD=kn("outlineColor"),pd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wa(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ua(t,r)});return br(e,e.borderRadius,n)}return null};pd.propTypes={};pd.filterProps=["borderRadius"];fd(nD,rD,oD,iD,sD,aD,lD,uD,cD,dD,pd,fD,pD);const hd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wa(e.theme,"spacing",8),n=r=>({gap:Ua(t,r)});return br(e,e.gap,n)}return null};hd.propTypes={};hd.filterProps=["gap"];const md=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wa(e.theme,"spacing",8),n=r=>({columnGap:Ua(t,r)});return br(e,e.columnGap,n)}return null};md.propTypes={};md.filterProps=["columnGap"];const gd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wa(e.theme,"spacing",8),n=r=>({rowGap:Ua(t,r)});return br(e,e.rowGap,n)}return null};gd.propTypes={};gd.filterProps=["rowGap"];const hD=at({prop:"gridColumn"}),mD=at({prop:"gridRow"}),gD=at({prop:"gridAutoFlow"}),vD=at({prop:"gridAutoColumns"}),yD=at({prop:"gridAutoRows"}),bD=at({prop:"gridTemplateColumns"}),xD=at({prop:"gridTemplateRows"}),SD=at({prop:"gridTemplateAreas"}),wD=at({prop:"gridArea"});fd(hd,md,gd,hD,mD,gD,vD,yD,bD,xD,SD,wD);function wi(e,t){return t==="grey"?t:e}const CD=at({prop:"color",themeKey:"palette",transform:wi}),kD=at({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wi}),PD=at({prop:"backgroundColor",themeKey:"palette",transform:wi});fd(CD,kD,PD);function Qt(e){return e<=1&&e!==0?`${e*100}%`:e}const $D=at({prop:"width",transform:Qt}),wg=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])||bg[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:Qt(n)}};return br(e,e.maxWidth,t)}return null};wg.filterProps=["maxWidth"];const TD=at({prop:"minWidth",transform:Qt}),ED=at({prop:"height",transform:Qt}),OD=at({prop:"maxHeight",transform:Qt}),RD=at({prop:"minHeight",transform:Qt});at({prop:"size",cssProperty:"width",transform:Qt});at({prop:"size",cssProperty:"height",transform:Qt});const MD=at({prop:"boxSizing"});fd($D,wg,TD,ED,OD,RD,MD);const vd={border:{themeKey:"borders",transform:hn},borderTop:{themeKey:"borders",transform:hn},borderRight:{themeKey:"borders",transform:hn},borderBottom:{themeKey:"borders",transform:hn},borderLeft:{themeKey:"borders",transform:hn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pd},color:{themeKey:"palette",transform:wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wi},backgroundColor:{themeKey:"palette",transform:wi},p:{style:et},pt:{style:et},pr:{style:et},pb:{style:et},pl:{style:et},px:{style:et},py:{style:et},padding:{style:et},paddingTop:{style:et},paddingRight:{style:et},paddingBottom:{style:et},paddingLeft:{style:et},paddingX:{style:et},paddingY:{style:et},paddingInline:{style:et},paddingInlineStart:{style:et},paddingInlineEnd:{style:et},paddingBlock:{style:et},paddingBlockStart:{style:et},paddingBlockEnd:{style:et},m:{style:Je},mt:{style:Je},mr:{style:Je},mb:{style:Je},ml:{style:Je},mx:{style:Je},my:{style:Je},margin:{style:Je},marginTop:{style:Je},marginRight:{style:Je},marginBottom:{style:Je},marginLeft:{style:Je},marginX:{style:Je},marginY:{style:Je},marginInline:{style:Je},marginInlineStart:{style:Je},marginInlineEnd:{style:Je},marginBlock:{style:Je},marginBlockStart:{style:Je},marginBlockEnd:{style:Je},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:hd},rowGap:{style:gd},columnGap:{style:md},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qt},maxWidth:{style:wg},minWidth:{transform:Qt},height:{transform:Qt},maxHeight:{transform:Qt},minHeight:{transform:Qt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function AD(...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 jD(e,t){return typeof e=="function"?e(t):e}function ID(){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:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=dd(o,u)||{};return d?d(s):br(s,r,g=>{let y=zu(f,c,g);return g===y&&typeof g=="string"&&(y=zu(f,c,`${n}${g==="default"?"":Xn(g)}`,g)),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:vd;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=qL(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=jD(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=Ys(f,e(v,g,i,s));else{const y=br({theme:i},g,w=>({[v]:w}));AD(y,g)?f[v]=t({sx:g,theme:i}):f=Ys(f,y)}else f=Ys(f,e(v,g,i,s))}),YL(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const yd=ID();yd.filterProps=["sx"];function e2(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 _D=["breakpoints","palette","spacing","shape"];function Cg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=it(e,_D),a=XC(n),l=JC(o);let u=dr({breakpoints:a,direction:"ltr",components:{},palette:N({mode:"light"},r),spacing:l,shape:N({},KL,i)},s);return u.applyStyles=e2,u=t.reduce((c,d)=>dr(c,d),u),u.unstable_sxConfig=N({},vd,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return yd({sx:d,theme:this})},u}function LD(e){return Object.keys(e).length===0}function DD(e=null){const t=C.useContext(Dc);return!t||LD(t)?e:t}const BD=Cg();function t2(e=BD){return DD(e)}const zD=["sx"],ND=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vd;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function FD(e){const{sx:t}=e,n=it(e,zD),{systemProps:r,otherProps:o}=ND(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Mr(a)?N({},r,a):r}:i=N({},r,t),N({},o,{sx:i})}const f1=e=>e,VD=()=>{let e=f1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=f1}}},HD=VD(),WD={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 kg(e,t,n="Mui"){const r=WD[t];return r?`${n}-${r}`:`${HD.generate(e)}-${t}`}function UD(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=kg(e,o,n)}),r}const GD=["ownerState"],KD=["variants"],qD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function YD(e){return Object.keys(e).length===0}function XD(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QD=Cg(),ZD=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wl({defaultTheme:e,theme:t,themeId:n}){return YD(t)?e:t[n]||t}function JD(e){return e?(t,n)=>n[e]:null}function Hl(e,t){let{ownerState:n}=t,r=it(t,GD);const o=typeof e=="function"?e(N({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Hl(i,N({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=it(o,KD);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(N({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(N({ownerState:n},r,n)):l.style))}),a}return o}function n2(e={}){const{themeId:t,defaultTheme:n=QD,rootShouldForwardProp:r=kf,slotShouldForwardProp:o=kf}=e,i=s=>yd(N({},s,{theme:wl(N({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{WL(s,k=>k.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=JD(ZD(u))}=a,v=it(a,qD),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let w,m=kf;u==="Root"||u==="root"?m=r:u?m=o:XD(s)&&(m=void 0);const h=HL(s,N({shouldForwardProp:m,label:w},v)),p=k=>typeof k=="function"&&k.__emotion_real!==k||Mr(k)?P=>Hl(k,N({},P,{theme:wl({theme:P.theme,defaultTheme:n,themeId:t})})):k,S=(k,...P)=>{let $=p(k);const T=P?P.map(p):[];l&&f&&T.push(E=>{const R=wl(N({},E,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const M=R.components[l].styleOverrides,A={};return Object.entries(M).forEach(([_,D])=>{A[_]=Hl(D,N({},E,{theme:R}))}),f(E,A)}),l&&!g&&T.push(E=>{var R;const M=wl(N({},E,{defaultTheme:n,themeId:t})),A=M==null||(R=M.components)==null||(R=R[l])==null?void 0:R.variants;return Hl({variants:A},N({},E,{theme:M}))}),y||T.push(i);const O=T.length-P.length;if(Array.isArray(k)&&O>0){const E=new Array(O).fill("");$=[...k,...E],$.raw=[...k.raw,...E]}const b=h($,...T);return s.muiName&&(b.muiName=s.muiName),b};return h.withConfig&&(S.withConfig=h.withConfig),S}}const e6=n2();function r2(e,t){const n=N({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=N({},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]=N({},i),Object.keys(o).forEach(s=>{n[r][s]=r2(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function t6(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:r2(t.components[n].defaultProps,r)}function o2({props:e,name:t,defaultTheme:n,themeId:r}){let o=t2(n);return r&&(o=o[r]||o),t6({theme:o,name:t,props:e})}function n6(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 i2(e){if(e.type)return e;if(e.charAt(0)==="#")return i2(n6(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(uh(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(uh(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const so=e=>{const t=i2(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function s2(e,t){var n,r;return C.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 r6(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function o6(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{r6(n,t)})},e)}function i6(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 Pg(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 p1=(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])})},s6=(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)},a6=(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 Pf(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return s6(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const c=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(o,{[c]:a6(a,l)}),p1(i,a,`var(${c})`,u),p1(s,a,`var(${c}, ${l})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function l6(e,t){if(Pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function u6(e){var t=l6(e,"string");return Pa(t)=="symbol"?t:t+""}const c6=["colorSchemes","components","defaultColorScheme"];function d6(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=it(e,c6),{vars:i,css:s,varsWithDefaults:a}=Pf(o,t);let l=a;const u={},{[r]:c}=n,d=it(n,[r].map(u6));if(Object.entries(d||{}).forEach(([v,g])=>{const{vars:y,css:w,varsWithDefaults:m}=Pf(g,t);l=dr(l,m),u[v]={css:w,vars:y}}),c){const{css:v,vars:g,varsWithDefaults:y}=Pf(c,t);l=dr(l,y),u[r]={css:v,vars:g}}return{vars:l,generateCssVars:v=>{var g;if(!v){var y;const m=N({},s);return{css:m,vars:i,selector:(t==null||(y=t.getSelector)==null?void 0:y.call(t,v,m))||":root"}}const w=N({},u[v].css);return{css:w,vars:u[v].vars,selector:(t==null||(g=t.getSelector)==null?void 0:g.call(t,v,w))||":root"}}}}const f6=(e,t)=>e.filter(n=>t.includes(n)),Ji=(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:f6(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 xr(e){return e?`Level${e}`:""}function Ga(e){return e.unstable_level>0&&e.container}function a2(e){return function(n){return`var(--Grid-${n}Spacing${xr(e.unstable_level)})`}}function $g(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${xr(e.unstable_level-1)})`}}function Tg(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${xr(e.unstable_level-1)})`}const p6=({theme:e,ownerState:t})=>{const n=a2(t),r={};return Ji(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} / ${Tg(t)}${Ga(t)?` + ${n("column")}`:""})`}),o(r,s)}),r},h6=({theme:e,ownerState:t})=>{const n={};return Ji(e.breakpoints,t.gridOffset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Tg(t)})`}),r(n,i)}),n},m6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Ga(t)?{[`--Grid-columns${xr(t.unstable_level)}`]:Tg(t)}:{"--Grid-columns":12};return Ji(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${xr(t.unstable_level)}`]:o})}),n},g6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=$g(t),r=Ga(t)?{[`--Grid-rowSpacing${xr(t.unstable_level)}`]:n("row")}:{};return Ji(e.breakpoints,t.rowSpacing,(o,i)=>{var s;o(r,{[`--Grid-rowSpacing${xr(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},v6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=$g(t),r=Ga(t)?{[`--Grid-columnSpacing${xr(t.unstable_level)}`]:n("column")}:{};return Ji(e.breakpoints,t.columnSpacing,(o,i)=>{var s;o(r,{[`--Grid-columnSpacing${xr(t.unstable_level)}`]:typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i)})}),r},y6=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ji(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},b6=({ownerState:e})=>{const t=a2(e),n=$g(e);return N({minWidth:0,boxSizing:"border-box"},e.container&&N({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||Ga(e))&&N({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},x6=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},S6=(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[]},w6=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],C6=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],k6=Cg(),P6=e6("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function $6(e){return o2({props:e,name:"MuiGrid",defaultTheme:k6})}function T6(e={}){const{createStyledComponent:t=P6,useThemeProps:n=$6,componentName:r="MuiGrid"}=e,o=C.createContext(void 0),i=(l,u)=>{const{container:c,direction:d,spacing:f,wrap:v,gridSize:g}=l,y={root:["root",c&&"container",v!=="wrap"&&`wrap-xs-${String(v)}`,...w6(d),...x6(g),...c?S6(f,u.breakpoints.keys[0]):[]]};return i6(y,w=>kg(r,w),{})},s=t(m6,v6,g6,p6,y6,b6,h6),a=C.forwardRef(function(u,c){var d,f,v,g,y,w,m,h;const p=t2(),S=n(u),k=FD(S),P=C.useContext(o),{className:$,children:T,columns:O=12,container:b=!1,component:E="div",direction:R="row",wrap:M="wrap",spacing:A=0,rowSpacing:_=A,columnSpacing:D=A,disableEqualOverflow:B,unstable_level:j=0}=k,L=it(k,C6);let V=B;j&&B!==void 0&&(V=u.disableEqualOverflow);const X={},Z={},ee={};Object.entries(L).forEach(([H,Q])=>{p.breakpoints.values[H]!==void 0?X[H]=Q:p.breakpoints.values[H.replace("Offset","")]!==void 0?Z[H.replace("Offset","")]=Q:ee[H]=Q});const te=(d=u.columns)!=null?d:j?void 0:O,ue=(f=u.spacing)!=null?f:j?void 0:A,we=(v=(g=u.rowSpacing)!=null?g:u.spacing)!=null?v:j?void 0:_,se=(y=(w=u.columnSpacing)!=null?w:u.spacing)!=null?y:j?void 0:D,U=N({},k,{level:j,columns:te,container:b,direction:R,wrap:M,spacing:ue,rowSpacing:we,columnSpacing:se,gridSize:X,gridOffset:Z,disableEqualOverflow:(m=(h=V)!=null?h:P)!=null?m:!1,parentDisableEqualOverflow:P}),J=i(U,p);let K=x.jsx(s,N({ref:c,as:E,ownerState:U,className:Y(J.root,$)},ee,{children:C.Children.map(T,H=>{if(C.isValidElement(H)&&s2(H,["Grid"])){var Q;return C.cloneElement(H,{unstable_level:(Q=H.props.unstable_level)!=null?Q:j+1})}return H})}));return V!==void 0&&V!==(P??!1)&&(K=x.jsx(o.Provider,{value:V,children:K})),K});return a.muiName="Grid",a}const E6=N({},vd,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function O6(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 es=(e,t)=>kg(e,t,"Mui"),Lo=(e,t)=>UD(e,t,"Mui"),R6=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))$/)}),h1=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},m1=(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")),h1(r,o,s)}}),r},Tt=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach(i=>{const[s,a]=i;R6(a)&&typeof a=="object"&&(n=N({},n,{[s]:m1(e,a,l=>`var(--variant-${l}, ${r(`palette-${s}-${l}`,o[s][l])})`)}))})}return n.context=m1(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},M6=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],A6=["colorSchemes"],j6=(e="joy")=>Pg(e);function I6(e){var t,n,r,o,i,s,a,l,u,c;const d={},{cssVarPrefix:f="joy",breakpoints:v,spacing:g,components:y,variants:w,shouldSkipGeneratingVar:m=O6}=d,h=it(d,M6),p=j6(f),S={primary:Cs.blue,neutral:Cs.grey,danger:Cs.red,success:Cs.green,warning:Cs.yellow,common:{white:"#FFF",black:"#000"}},k=U=>{var J;const K=U.split("-"),H=K[1],Q=K[2];return p(U,(J=S[H])==null?void 0:J[Q])},P=U=>({plainColor:k(`palette-${U}-500`),plainHoverBg:k(`palette-${U}-100`),plainActiveBg:k(`palette-${U}-200`),plainDisabledColor:k("palette-neutral-400"),outlinedColor:k(`palette-${U}-500`),outlinedBorder:k(`palette-${U}-300`),outlinedHoverBg:k(`palette-${U}-100`),outlinedActiveBg:k(`palette-${U}-200`),outlinedDisabledColor:k("palette-neutral-400"),outlinedDisabledBorder:k("palette-neutral-200"),softColor:k(`palette-${U}-700`),softBg:k(`palette-${U}-100`),softHoverBg:k(`palette-${U}-200`),softActiveColor:k(`palette-${U}-800`),softActiveBg:k(`palette-${U}-300`),softDisabledColor:k("palette-neutral-400"),softDisabledBg:k("palette-neutral-50"),solidColor:k("palette-common-white"),solidBg:k(`palette-${U}-500`),solidHoverBg:k(`palette-${U}-600`),solidActiveBg:k(`palette-${U}-700`),solidDisabledColor:k("palette-neutral-400"),solidDisabledBg:k("palette-neutral-100")}),$=U=>({plainColor:k(`palette-${U}-300`),plainHoverBg:k(`palette-${U}-800`),plainActiveBg:k(`palette-${U}-700`),plainDisabledColor:k("palette-neutral-500"),outlinedColor:k(`palette-${U}-200`),outlinedBorder:k(`palette-${U}-700`),outlinedHoverBg:k(`palette-${U}-800`),outlinedActiveBg:k(`palette-${U}-700`),outlinedDisabledColor:k("palette-neutral-500"),outlinedDisabledBorder:k("palette-neutral-800"),softColor:k(`palette-${U}-200`),softBg:k(`palette-${U}-800`),softHoverBg:k(`palette-${U}-700`),softActiveColor:k(`palette-${U}-100`),softActiveBg:k(`palette-${U}-600`),softDisabledColor:k("palette-neutral-500"),softDisabledBg:k("palette-neutral-800"),solidColor:k("palette-common-white"),solidBg:k(`palette-${U}-500`),solidHoverBg:k(`palette-${U}-600`),solidActiveBg:k(`palette-${U}-700`),solidDisabledColor:k("palette-neutral-500"),solidDisabledBg:k("palette-neutral-800")}),T={palette:{mode:"light",primary:N({},S.primary,P("primary")),neutral:N({},S.neutral,P("neutral"),{plainColor:k("palette-neutral-700"),plainHoverColor:k("palette-neutral-900"),outlinedColor:k("palette-neutral-700")}),danger:N({},S.danger,P("danger")),success:N({},S.success,P("success")),warning:N({},S.warning,P("warning")),common:{white:"#FFF",black:"#000"},text:{primary:k("palette-neutral-800"),secondary:k("palette-neutral-700"),tertiary:k("palette-neutral-600"),icon:k("palette-neutral-500")},background:{body:k("palette-common-white"),surface:k("palette-neutral-50"),popup:k("palette-common-white"),level1:k("palette-neutral-100"),level2:k("palette-neutral-200"),level3:k("palette-neutral-300"),tooltip:k("palette-neutral-500"),backdrop:`rgba(${p("palette-neutral-darkChannel",so(S.neutral[900]))} / 0.25)`},divider:`rgba(${p("palette-neutral-mainChannel",so(S.neutral[500]))} / 0.2)`,focusVisible:k("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},O={palette:{mode:"dark",primary:N({},S.primary,$("primary")),neutral:N({},S.neutral,$("neutral"),{plainColor:k("palette-neutral-300"),plainHoverColor:k("palette-neutral-300")}),danger:N({},S.danger,$("danger")),success:N({},S.success,$("success")),warning:N({},S.warning,$("warning")),common:{white:"#FFF",black:"#000"},text:{primary:k("palette-neutral-100"),secondary:k("palette-neutral-300"),tertiary:k("palette-neutral-400"),icon:k("palette-neutral-400")},background:{body:k("palette-common-black"),surface:k("palette-neutral-900"),popup:k("palette-common-black"),level1:k("palette-neutral-800"),level2:k("palette-neutral-700"),level3:k("palette-neutral-600"),tooltip:k("palette-neutral-600"),backdrop:`rgba(${p("palette-neutral-darkChannel",so(S.neutral[50]))} / 0.25)`},divider:`rgba(${p("palette-neutral-mainChannel",so(S.neutral[500]))} / 0.16)`,focusVisible:k("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},b='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',E=N({body:`"Inter", ${p(`fontFamily-fallback, ${b}`)}`,display:`"Inter", ${p(`fontFamily-fallback, ${b}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:b},h.fontFamily),R=N({sm:300,md:500,lg:600,xl:700},h.fontWeight),M=N({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},h.fontSize),A=N({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},h.lineHeight),_=(t=(n=h.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:T.shadowRing,D=(r=(o=h.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowChannel)!=null?r:T.shadowChannel,B=(i=(s=h.colorSchemes)==null||(s=s.light)==null?void 0:s.shadowOpacity)!=null?i:T.shadowOpacity,j={colorSchemes:{light:T,dark:O},fontSize:M,fontFamily:E,fontWeight:R,focus:{thickness:"2px",selector:`&.${es("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${p("focus-thickness",(a=(l=h.focus)==null?void 0:l.thickness)!=null?a:"2px")})`,outline:`${p("focus-thickness",(u=(c=h.focus)==null?void 0:c.thickness)!=null?u:"2px")} solid ${p("palette-focusVisible",S.primary[500])}`}},lineHeight:A,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${p("shadowRing",_)}, 0px 1px 2px 0px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)})`,sm:`${p("shadowRing",_)}, 0px 1px 2px 0px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)}), 0px 2px 4px 0px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)})`,md:`${p("shadowRing",_)}, 0px 2px 8px -2px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)}), 0px 6px 12px -2px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)})`,lg:`${p("shadowRing",_)}, 0px 2px 8px -2px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)}), 0px 12px 16px -4px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)})`,xl:`${p("shadowRing",_)}, 0px 2px 8px -2px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)}), 0px 20px 24px -4px rgba(${p("shadowChannel",D)} / ${p("shadowOpacity",B)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:p(`fontFamily-display, ${E.display}`),fontWeight:p(`fontWeight-xl, ${R.xl}`),fontSize:p(`fontSize-xl4, ${M.xl4}`),lineHeight:p(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${T.palette.text.primary}`)},h2:{fontFamily:p(`fontFamily-display, ${E.display}`),fontWeight:p(`fontWeight-xl, ${R.xl}`),fontSize:p(`fontSize-xl3, ${M.xl3}`),lineHeight:p(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${T.palette.text.primary}`)},h3:{fontFamily:p(`fontFamily-display, ${E.display}`),fontWeight:p(`fontWeight-lg, ${R.lg}`),fontSize:p(`fontSize-xl2, ${M.xl2}`),lineHeight:p(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${T.palette.text.primary}`)},h4:{fontFamily:p(`fontFamily-display, ${E.display}`),fontWeight:p(`fontWeight-lg, ${R.lg}`),fontSize:p(`fontSize-xl, ${M.xl}`),lineHeight:p(`lineHeight-md, ${A.md}`),letterSpacing:"-0.025em",color:p(`palette-text-primary, ${T.palette.text.primary}`)},"title-lg":{fontFamily:p(`fontFamily-body, ${E.body}`),fontWeight:p(`fontWeight-lg, ${R.lg}`),fontSize:p(`fontSize-lg, ${M.lg}`),lineHeight:p(`lineHeight-xs, ${A.xs}`),color:p(`palette-text-primary, ${T.palette.text.primary}`)},"title-md":{fontFamily:p(`fontFamily-body, ${E.body}`),fontWeight:p(`fontWeight-md, ${R.md}`),fontSize:p(`fontSize-md, ${M.md}`),lineHeight:p(`lineHeight-md, ${A.md}`),color:p(`palette-text-primary, ${T.palette.text.primary}`)},"title-sm":{fontFamily:p(`fontFamily-body, ${E.body}`),fontWeight:p(`fontWeight-md, ${R.md}`),fontSize:p(`fontSize-sm, ${M.sm}`),lineHeight:p(`lineHeight-sm, ${A.sm}`),color:p(`palette-text-primary, ${T.palette.text.primary}`)},"body-lg":{fontFamily:p(`fontFamily-body, ${E.body}`),fontSize:p(`fontSize-lg, ${M.lg}`),lineHeight:p(`lineHeight-md, ${A.md}`),color:p(`palette-text-secondary, ${T.palette.text.secondary}`)},"body-md":{fontFamily:p(`fontFamily-body, ${E.body}`),fontSize:p(`fontSize-md, ${M.md}`),lineHeight:p(`lineHeight-md, ${A.md}`),color:p(`palette-text-secondary, ${T.palette.text.secondary}`)},"body-sm":{fontFamily:p(`fontFamily-body, ${E.body}`),fontSize:p(`fontSize-sm, ${M.sm}`),lineHeight:p(`lineHeight-md, ${A.md}`),color:p(`palette-text-tertiary, ${T.palette.text.tertiary}`)},"body-xs":{fontFamily:p(`fontFamily-body, ${E.body}`),fontWeight:p(`fontWeight-md, ${R.md}`),fontSize:p(`fontSize-xs, ${M.xs}`),lineHeight:p(`lineHeight-md, ${A.md}`),color:p(`palette-text-tertiary, ${T.palette.text.tertiary}`)}}},L=h?dr(j,h):j,{colorSchemes:V}=L,X=it(L,A6),Z=N({colorSchemes:V},X,{breakpoints:XC(v??{}),components:dr({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:U,theme:J})=>{var K;const H=U.instanceFontSize;return N({margin:"var(--Icon-margin)"},U.fontSize&&U.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${J.vars.fontSize[U.fontSize]})`},!U.htmlColor&&N({color:`var(--Icon-color, ${Z.vars.palette.text.icon})`},U.color&&U.color!=="inherit"&&J.vars.palette[U.color]&&{color:`rgba(${(K=J.vars.palette[U.color])==null?void 0:K.mainChannel} / 1)`}),H&&H!=="inherit"&&{"--Icon-fontSize":J.vars.fontSize[H]})}}}},y),cssVarPrefix:f,getCssVar:p,spacing:JC(g)});function ee(U,J){Object.keys(J).forEach(K=>{const H={main:"500",light:"200",dark:"700"};U==="dark"&&(H.main=400),!J[K].mainChannel&&J[K][H.main]&&(J[K].mainChannel=so(J[K][H.main])),!J[K].lightChannel&&J[K][H.light]&&(J[K].lightChannel=so(J[K][H.light])),!J[K].darkChannel&&J[K][H.dark]&&(J[K].darkChannel=so(J[K][H.dark]))})}Object.entries(Z.colorSchemes).forEach(([U,J])=>{ee(U,J.palette)});const te={prefix:f,shouldSkipGeneratingVar:m},{vars:ue,generateCssVars:we}=d6(N({colorSchemes:V},X),te);Z.vars=ue,Z.generateCssVars=we,Z.unstable_sxConfig=N({},E6,void 0),Z.unstable_sx=function(J){return yd({sx:J,theme:this})},Z.getColorSchemeSelector=U=>U==="light"?"&":`&[data-joy-color-scheme="${U}"], [data-joy-color-scheme="${U}"] &`;const se={getCssVar:p,palette:Z.colorSchemes.light.palette};return Z.variants=dr({plain:Tt("plain",se),plainHover:Tt("plainHover",se),plainActive:Tt("plainActive",se),plainDisabled:Tt("plainDisabled",se),outlined:Tt("outlined",se),outlinedHover:Tt("outlinedHover",se),outlinedActive:Tt("outlinedActive",se),outlinedDisabled:Tt("outlinedDisabled",se),soft:Tt("soft",se),softHover:Tt("softHover",se),softActive:Tt("softActive",se),softDisabled:Tt("softDisabled",se),solid:Tt("solid",se),solidHover:Tt("solidHover",se),solidActive:Tt("solidActive",se),solidDisabled:Tt("solidDisabled",se)},w),Z.palette=N({},Z.colorSchemes.light.palette,{colorScheme:"light"}),Z.shouldSkipGeneratingVar=m,Z.applyStyles=e2,Z}const l2=I6(),wr=n2({defaultTheme:l2,themeId:qC});function ts({props:e,name:t}){return o2({props:e,name:t,defaultTheme:N({},l2,{components:{}}),themeId:qC})}function _6(e){return typeof e=="string"}function L6(e,t,n){return e===void 0||_6(e)?t:N({},t,{ownerState:N({},t.ownerState,n)})}function D6(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 B6(e,t,n){return typeof e=="function"?e(t,n):e}function Ka(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 g1(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 z6(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Y(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=N({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=N({},n,o,r);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const s=D6(N({},o,r)),a=g1(r),l=g1(o),u=t(s),c=Y(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=N({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=N({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const N6=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],F6=["component","slots","slotProps"],V6=["component"];function Ni(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=it(t,N6),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=it(i,F6),v=c[e]||r,g=B6(d[e],o),y=z6(N({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:g})),{props:{component:w},internalRef:m}=y,h=it(y.props,V6),p=o6(m,g==null?void 0:g.ref,t.ref),S=s?s(h):{},k=N({},o,S),P=e==="root"?w||u:w,$=L6(v,N({},e==="root"&&!u&&!c[e]&&a,e!=="root"&&!c[e]&&a,h,P&&{as:P},{ref:p}),k);return Object.keys(S).forEach(T=>{delete $[T]}),[v,$]}const H6=({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=N({},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},Eg=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Nu="data-skip-inverted-colors",u2=`& :not([${Nu}], [${Nu}] *)`,c2=e=>{var t,n,r,o,i,s,a,l,u,c,d,f,v,g,y,w,m,h,p,S,k,P;const $=Eg(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")]:{[$("--palette-focusVisible")]:`${(t=e.colorSchemes.light)==null?void 0:t.palette.focusVisible} !important`,[$("--palette-background-body")]:`${(n=e.colorSchemes.light)==null?void 0:n.palette.background.body} !important`,[$("--palette-background-surface")]:`${(r=e.colorSchemes.light)==null?void 0:r.palette.background.surface} !important`,[$("--palette-background-popup")]:`${(o=e.colorSchemes.light)==null?void 0:o.palette.background.popup} !important`,[$("--palette-background-level1")]:`${(i=e.colorSchemes.light)==null?void 0:i.palette.background.level1} !important`,[$("--palette-background-level2")]:`${(s=e.colorSchemes.light)==null?void 0:s.palette.background.level2} !important`,[$("--palette-background-level3")]:`${(a=e.colorSchemes.light)==null?void 0:a.palette.background.level3} !important`,[$("--palette-text-primary")]:`${(l=e.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[$("--palette-text-secondary")]:`${(u=e.colorSchemes.light)==null?void 0:u.palette.text.secondary} !important`,[$("--palette-text-tertiary")]:`${(c=e.colorSchemes.light)==null?void 0:c.palette.text.tertiary} !important`,[$("--palette-divider")]:`${(d=e.colorSchemes.light)==null?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[$("--palette-focusVisible")]:`${(f=e.colorSchemes.dark)==null?void 0:f.palette.focusVisible} !important`,[$("--palette-background-body")]:`${(v=e.colorSchemes.dark)==null?void 0:v.palette.background.body} !important`,[$("--palette-background-surface")]:`${(g=e.colorSchemes.dark)==null?void 0:g.palette.background.surface} !important`,[$("--palette-background-popup")]:`${(y=e.colorSchemes.dark)==null?void 0:y.palette.background.popup} !important`,[$("--palette-background-level1")]:`${(w=e.colorSchemes.dark)==null?void 0:w.palette.background.level1} !important`,[$("--palette-background-level2")]:`${(m=e.colorSchemes.dark)==null?void 0:m.palette.background.level2} !important`,[$("--palette-background-level3")]:`${(h=e.colorSchemes.dark)==null?void 0:h.palette.background.level3} !important`,[$("--palette-text-primary")]:`${(p=e.colorSchemes.dark)==null?void 0:p.palette.text.primary} !important`,[$("--palette-text-secondary")]:`${(S=e.colorSchemes.dark)==null?void 0:S.palette.text.secondary} !important`,[$("--palette-text-tertiary")]:`${(k=e.colorSchemes.dark)==null?void 0:k.palette.text.tertiary} !important`,[$("--palette-divider")]:`${(P=e.colorSchemes.dark)==null?void 0:P.palette.divider} !important`}}};function W6(e){return e.theme!==void 0}const U6=e=>t=>{const n=W6(t)?t.theme:t,r=Pg(n.cssVarPrefix),o=Eg(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[u2]:{"--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)`}},[`&, & [${Nu}]`]:c2(n)}},G6=e=>t=>{const{theme:n=t}=t,r=Pg(n.cssVarPrefix),o=Eg(n.cssVarPrefix),i=s=>{const a=s.split("-");return r(s,n.palette[a[1]][a[2]])};return{[u2]:{"--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)`}},[`&, & [${Nu}]`]:c2(n)}};function K6(e){return es("MuiAspectRatio",e)}Lo("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const q6=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","flex","slots","slotProps"],Y6=e=>{const{variant:t,color:n}=e,r={root:["root"],content:["content",t&&`variant${Xn(t)}`,n&&`color${Xn(n)}`]};return Ka(r,K6,{})},X6=wr("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)"}}),Q6=wr("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return N({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])}),Fu=C.forwardRef(function(t,n){const r=ts({props:t,name:"JoyAspectRatio"}),{children:o,ratio:i="16 / 9",minHeight:s,maxHeight:a,objectFit:l="cover",color:u="neutral",variant:c="soft",component:d,flex:f=!1,slots:v={},slotProps:g={}}=r,y=it(r,q6),w=N({},r,{flex:f,minHeight:s,maxHeight:a,objectFit:l,ratio:i,color:u,variant:c}),m=Y6(w),h=N({},y,{component:d,slots:v,slotProps:g}),[p,S]=Ni("root",{ref:n,className:m.root,elementType:X6,externalForwardedProps:h,ownerState:w}),[k,P]=Ni("content",{className:m.content,elementType:Q6,externalForwardedProps:h,ownerState:w});return x.jsx(p,N({},S,{children:x.jsx(k,N({},P,{children:C.Children.map(o,($,T)=>T===0&&C.isValidElement($)?C.cloneElement($,{"data-first-child":""}):$)}))}))}),v1=Lo("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);function Z6(e){return es("MuiCard",e)}const Ko=Lo("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),J6=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],eB=e=>{const{size:t,variant:n,color:r,orientation:o}=e,i={root:["root",o,n&&`variant${Xn(n)}`,r&&`color${Xn(r)}`,t&&`size${Xn(t)}`]};return Ka(i,Z6,{})},tB=wr("div")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:i}=H6({theme:e,ownerState:t},["p","padding","borderRadius"]);return[N({"--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&&U6(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&G6(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}]}),nB=wr(tB,{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d2=C.forwardRef(function(t,n){const r=ts({props:t,name:"JoyCard"}),{className:o,color:i="neutral",component:s="div",invertedColors:a=!1,size:l="md",variant:u="outlined",children:c,orientation:d="vertical",slots:f={},slotProps:v={}}=r,g=it(r,J6),y=N({},r,{color:i,component:s,orientation:d,size:l,variant:u,invertedColors:a}),w=eB(y),m=N({},g,{component:s,slots:f,slotProps:v}),[h,p]=Ni("root",{ref:n,className:Y(w.root,o),elementType:nB,externalForwardedProps:m,ownerState:y});return x.jsx(h,N({},p,{children:C.Children.map(c,(S,k)=>{if(!C.isValidElement(S))return S;const P={};if(s2(S,["Divider"])){P.inset="inset"in S.props?S.props.inset:"context";const $=d==="vertical"?"horizontal":"vertical";P.orientation="orientation"in S.props?S.props.orientation:$}return k===0&&(P["data-first-child"]=""),k===C.Children.count(c)-1&&(P["data-last-child"]=""),C.cloneElement(S,P)})}))});function rB(e){return es("MuiCardOverflow",e)}const oB=Lo("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function iB(e){return es("MuiDivider",e)}Lo("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);function sB(e){return es("MuiCardContent",e)}Lo("MuiCardContent",["root"]);const aB=["className","component","children","orientation","slots","slotProps"],lB=()=>Ka({root:["root"]},sB,{}),uB=wr("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)",[`.${oB.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),cB=wr(uB,{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({}),y1=C.forwardRef(function(t,n){const r=ts({props:t,name:"JoyCardContent"}),{className:o,component:i="div",children:s,orientation:a="vertical",slots:l={},slotProps:u={}}=r,c=it(r,aB),d=N({},c,{component:i,slots:l,slotProps:u}),f=N({},r,{component:i,orientation:a}),v=lB(),[g,y]=Ni("root",{ref:n,className:Y(v.root,o),elementType:cB,externalForwardedProps:d,ownerState:f});return x.jsx(g,N({},y,{children:s}))}),dB=Lo("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]),fB=["className","component","children","color","variant","slots","slotProps"],pB=e=>{const{variant:t,color:n}=e,r={root:["root",t&&`variant${Xn(t)}`,n&&`color${Xn(n)}`]};return Ka(r,rB,{})},hB=wr("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 N({alignSelf:"stretch",position:"relative",display:"flex",flexDirection:"var(--_CardOverflow-flexDirection)",margin:"var(--_CardOverflow-margin)",borderRadius:"var(--_CardOverflow-radius)",padding:"var(--_CardOverflow-padding)",[`.${Ko.vertical} &, .${Ko.horizontal} .${Ko.vertical} &, .${dB.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)"},[`& > .${v1.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)"}},[`.${Ko.horizontal} &, .${Ko.vertical} .${Ko.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)"},[`& > .${v1.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])}),Wl=C.forwardRef(function(t,n){const r=ts({props:t,name:"JoyCardOverflow"}),{className:o,component:i="div",children:s,color:a="neutral",variant:l="plain",slots:u={},slotProps:c={}}=r,d=it(r,fB),f=N({},r,{component:i,color:a,variant:l}),v=pB(f),g=N({},d,{component:i,slots:u,slotProps:c}),[y,w]=Ni("root",{ref:n,className:Y(v.root,o),elementType:hB,externalForwardedProps:g,ownerState:f});return x.jsx(y,N({},w,{children:s}))});Wl.muiName="CardOverflow";const mB=["className","children","component","inset","orientation","role","slots","slotProps"],gB=e=>{const{orientation:t,inset:n}=e,r={root:["root",t,n&&`inset${Xn(n)}`]};return Ka(r,iB,{})},vB=wr("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>N({"--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?N({"--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)"})),f2=C.forwardRef(function(t,n){const r=ts({props:t,name:"JoyDivider"}),{className:o,children:i,component:s=i!=null?"div":"hr",inset:a,orientation:l="horizontal",role:u=s!=="hr"?"separator":void 0,slots:c={},slotProps:d={}}=r,f=it(r,mB),v=N({},r,{inset:a,role:u,orientation:l,component:s}),g=gB(v),y=N({},f,{component:s,slots:c,slotProps:d}),[w,m]=Ni("root",{ref:n,className:Y(g.root,o),elementType:vB,externalForwardedProps:y,ownerState:v,additionalProps:N({as:s,role:u},u==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return x.jsx(w,N({},m,{children:i}))});f2.muiName="Divider";const Ge=T6({createStyledComponent:wr("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ts({props:e,name:"JoyGrid"})});function yB(){const{theme:e}=C.useContext(In),t={color:e.text.secondary,textDecoration:"none",display:"block",padding:"8px 0",transition:"color 0.3s ease","&:hover":{color:e.text.primary}};return x.jsx(me,{component:"footer",sx:{py:6,px:2,backgroundColor:e.footer.backgroundColor,color:e.text.secondary,borderTop:`1px solid ${e.divider}`},children:x.jsxs(Ii,{maxWidth:"lg",children:[x.jsxs(Ge,{container:!0,spacing:4,justifyContent:"space-between",children:[x.jsxs(Ge,{item:!0,xs:12,sm:4,children:[x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(Up,{sx:{fontSize:40,mr:1,color:e.icon.color}}),x.jsx(ae,{variant:"h5",color:e.text.primary,sx:{fontWeight:"bold"},children:"Orchid Haven"})]}),x.jsx(ae,{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."})]}),x.jsxs(Ge,{item:!0,xs:12,sm:4,children:[x.jsx(ae,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Quick Links"}),x.jsxs(me,{sx:{display:"flex",flexDirection:"column"},children:[x.jsx(Nn,{to:"/fer-lab1/",style:t,children:"Home"}),x.jsx(Nn,{to:"/fer-lab1/natural",style:t,children:"Special Orchid"}),x.jsx(Nn,{to:"/fer-lab1/news",style:t,children:"Orchid News"}),x.jsx(Nn,{to:"/fer-lab1/contact",style:t,children:"Contact Us"})]})]}),x.jsxs(Ge,{item:!0,xs:12,sm:4,children:[x.jsx(ae,{variant:"h6",color:e.text.primary,gutterBottom:!0,children:"Stay Connected"}),x.jsx(ae,{variant:"body2",color:e.text.secondary,gutterBottom:!0,children:"Follow us on social media for daily orchid inspiration and tips."}),x.jsxs(me,{children:[x.jsx(yn,{color:"inherit","aria-label":"Facebook",href:"https://www.facebook.com/hoangnguyen.c1002/",children:x.jsx(sw,{})}),x.jsx(yn,{color:"inherit","aria-label":"Twitter",href:"https://www.linkedin.com/in/hoang-nguyen-c1002/",children:x.jsx(SM,{})}),x.jsx(yn,{color:"inherit","aria-label":"Instagram",href:"https://www.instagram.com/__hoang.nguyeen__/",children:x.jsx(lw,{})}),x.jsx(yn,{color:"inherit","aria-label":"Github",href:"https://github.com/Hoang-Nguyen-Huy",children:x.jsx(aw,{})})]})]})]}),x.jsx(_i,{sx:{my:4,backgroundColor:e.divider}}),x.jsxs(me,{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center",children:[x.jsxs(ae,{variant:"body2",color:e.text.secondary,children:["© ",new Date().getFullYear()," Orchid Haven. All rights reserved."]}),x.jsxs(me,{children:[x.jsx(Nn,{to:"#",style:{...t,display:"inline",marginRight:"16px"},children:"Privacy Policy"}),x.jsx(Nn,{to:"#",style:{...t,display:"inline"},children:"Terms of Service"})]})]})]})})}const bd=[{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."}];function bB({orchid:e}){const[t,n]=C.useState(!1),[r,o]=C.useState(null);return{isVisible:t,detail:r,showModal:a=>{o(a),n(!0)},hideModal:()=>n(!1)}}const xB=jn(d2);function Og({orchid:e}){const{isVisible:t,showModal:n,hideModal:r}=bB({orchid:e}),o=ym(),{theme:i}=C.useContext(In),s=()=>{o(`/fer-lab1/${e.Id}`)};return x.jsxs(x.Fragment,{children:[x.jsxs(xB,{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:[x.jsx(Wl,{children:x.jsx(Fu,{variant:"outlined",ratio:"2",onClick:()=>n(e),children:x.jsx(jn.img,{src:e.image+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name,whileHover:{scale:1.1},transition:{duration:.3}})})}),x.jsxs(y1,{children:[x.jsx(ae,{level:"title-md",sx:{color:i.text.primary,fontWeight:"bold",mb:.5},children:e.name}),x.jsxs(me,{children:[x.jsxs(ae,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[x.jsx(Fm,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.origin]}),x.jsxs(ae,{level:"body-sm",sx:{color:i.text.secondary,mb:2,alignItems:"center",display:"flex"},children:[x.jsx(iw,{sx:{marginRight:"4px",width:"16px",color:i.icon.color}}),e.category]})]})]}),x.jsxs(Wl,{variant:"soft",sx:{bgcolor:i.action.hover},children:[x.jsx(f2,{inset:"context",sx:{bgcolor:i.divider}}),x.jsxs(y1,{orientation:"horizontal",sx:{justifyContent:"space-between"},children:[x.jsx(GC,{name:"read-only",value:e.rating,readOnly:!0}),x.jsx(jn.div,{whileHover:{scale:1.1},whileTap:{scale:.95},children:x.jsx(Ro,{variant:"outlined",onClick:s,sx:{color:i.button.primary,borderColor:i.button.primary,"&:hover":{backgroundColor:i.button.hover,borderColor:i.button.hover}},children:"Detail"})})]})]})]}),x.jsx(zm,{open:t,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:x.jsxs(me,{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:[x.jsx(d2,{children:x.jsx(Wl,{children:x.jsx(Fu,{ratio:"2",children:x.jsx("img",{src:e.image+"?auto=format&fit=crop&w=318",srcSet:e.image+"?auto=format&fit=crop&w=318&dpr=2 2x",loading:"lazy",alt:e.name})})})}),x.jsx(ae,{id:"modal-modal-description",sx:{mt:2,color:i.text.primary},children:e.detail})]})})]})}function SB(){const{theme:e}=C.useContext(In);return x.jsx(me,{sx:{width:"100%"},children:x.jsx(Ge,{container:!0,spacing:{xs:3,md:4,lg:4},sx:{padding:2,width:"100%",margin:"0 auto",backgroundColor:e.mainContent.backgroundColor,paddingTop:"36px"},children:bd.map(t=>x.jsx(Ge,{item:!0,xs:12,sm:6,md:4,children:x.jsx(Og,{orchid:t},t.Id)},t.Id))})})}var p2={},h2={},xd={},m2={};(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})(m2);var wB="Expected a function",b1=NaN,CB="[object Symbol]",kB=/^\s+|\s+$/g,PB=/^[-+]0x[0-9a-f]+$/i,$B=/^0b[01]+$/i,TB=/^0o[0-7]+$/i,EB=parseInt,OB=typeof Ya=="object"&&Ya&&Ya.Object===Object&&Ya,RB=typeof self=="object"&&self&&self.Object===Object&&self,MB=OB||RB||Function("return this")(),AB=Object.prototype,jB=AB.toString,IB=Math.max,_B=Math.min,$f=function(){return MB.Date.now()};function LB(e,t,n){var r,o,i,s,a,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(wB);t=x1(t)||0,ch(n)&&(c=!!n.leading,d="maxWait"in n,i=d?IB(x1(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function v(P){var $=r,T=o;return r=o=void 0,u=P,s=e.apply(T,$),s}function g(P){return u=P,a=setTimeout(m,t),c?v(P):s}function y(P){var $=P-l,T=P-u,O=t-$;return d?_B(O,i-T):O}function w(P){var $=P-l,T=P-u;return l===void 0||$>=t||$<0||d&&T>=i}function m(){var P=$f();if(w(P))return h(P);a=setTimeout(m,y(P))}function h(P){return a=void 0,f&&r?v(P):(r=o=void 0,s)}function p(){a!==void 0&&clearTimeout(a),u=0,r=l=o=a=void 0}function S(){return a===void 0?s:h($f())}function k(){var P=$f(),$=w(P);if(r=arguments,o=this,l=P,$){if(a===void 0)return g(l);if(d)return a=setTimeout(m,t),v(l)}return a===void 0&&(a=setTimeout(m,t)),s}return k.cancel=p,k.flush=S,k}function ch(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function DB(e){return!!e&&typeof e=="object"}function BB(e){return typeof e=="symbol"||DB(e)&&jB.call(e)==CB}function x1(e){if(typeof e=="number")return e;if(BB(e))return b1;if(ch(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ch(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(kB,"");var n=$B.test(e);return n||TB.test(e)?EB(e.slice(2),n?2:8):PB.test(e)?b1:+e}var zB=LB,g2={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},GB=W.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},dh=W.getWidth=function(t){return t&&t.offsetWidth||0},w2=W.getHeight=function(t){return t&&t.offsetHeight||0},C2=W.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"},k2=W.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};W.extractObject=function(t,n){var r={};return n.forEach(function(o){return r[o]=t[o]}),r};W.initializedState=function(t){var n=NB.default.Children.count(t.children),r=t.listRef,o=Math.ceil(dh(r)),i=t.trackRef&&t.trackRef.node,s=Math.ceil(dh(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 u=r&&w2(r.querySelector('[data-index="0"]')),c=u*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||[],v=b2(Ve(Ve({},t),{},{currentSlide:d,lazyLoadedList:f}));f=f.concat(v);var g={slideCount:n,slideWidth:a,listWidth:o,trackWidth:s,currentSlide:d,slideHeight:u,listHeight:c,lazyLoadedList:f};return t.autoplaying===null&&t.autoplay&&(g.autoplaying="playing"),g};W.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,u=t.currentSlide,c=t.centerMode,d=t.slidesToScroll,f=t.slidesToShow,v=t.useCSS,g=t.lazyLoadedList;if(n&&r)return{};var y=s,w,m,h,p={},S={},k=i?s:y2(s,0,a-1);if(o){if(!i&&(s<0||s>=a))return{};s<0?y=s+a:s>=a&&(y=s-a),l&&g.indexOf(y)<0&&(g=g.concat(y)),p={animating:!0,currentSlide:y,lazyLoadedList:g,targetSlide:y},S={animating:!1,targetSlide:y}}else w=y,y<0?(w=y+a,i?a%d!==0&&(w=a-a%d):w=0):!k2(t)&&y>u?y=w=u:c&&y>=a?(y=i?a:a-1,w=i?0:a-1):y>=a&&(w=y-a,i?a%d!==0&&(w=0):w=a-f),!i&&y+f>=a&&(w=a-f),m=Hu(Ve(Ve({},t),{},{slideIndex:y})),h=Hu(Ve(Ve({},t),{},{slideIndex:w})),i||(m===h&&(y=w),m=h),l&&(g=g.concat(b2(Ve(Ve({},t),{},{currentSlide:y})))),v?(p={animating:!0,currentSlide:w,trackStyle:P2(Ve(Ve({},t),{},{left:m})),lazyLoadedList:g,targetSlide:k},S={animating:!1,currentSlide:w,trackStyle:Vu(Ve(Ve({},t),{},{left:h})),swipeLeft:null,targetSlide:k}):p={currentSlide:w,trackStyle:Vu(Ve(Ve({},t),{},{left:h})),lazyLoadedList:g,targetSlide:k};return{state:p,nextState:S}};W.changeSlide=function(t,n){var r,o,i,s,a,l=t.slidesToScroll,u=t.slidesToShow,c=t.slideCount,d=t.currentSlide,f=t.targetSlide,v=t.lazyLoad,g=t.infinite;if(s=c%l!==0,r=s?0:(c-d)%l,n.message==="previous")i=r===0?l:u-r,a=d-i,v&&!g&&(o=d-i,a=o===-1?c-1:o),g||(a=f-l);else if(n.message==="next")i=r===0?l:r,a=d+i,v&&!g&&(a=(d+l)%c+r),g||(a=f+l);else if(n.message==="dots")a=n.index*n.slidesToScroll;else if(n.message==="children"){if(a=n.index,g){var y=XB(Ve(Ve({},t),{},{targetSlide:a}));a>n.currentSlide&&y==="left"?a=a-c:a10)return{scrolling:!0};a&&(h.swipeLength=O);var b=(l?-1:1)*(h.curX>h.startX?1:-1);a&&(b=h.curY>h.startY?1:-1);var E=Math.ceil(y/w),R=C2(n.touchObject,a),M=h.swipeLength;return m||(u===0&&(R==="right"||R==="down")||u+1>=E&&(R==="left"||R==="up")||!k2(n)&&(R==="left"||R==="up"))&&(M=h.swipeLength*c,d===!1&&f&&(f(R),$.edgeDragged=!0)),!v&&p&&(p(R),$.swiped=!0),i?P=T+M*(S/k)*b:l?P=T-M*b:P=T+M*b,a&&(P=T+M*b),$=Ve(Ve({},$),{},{touchObject:h,swipeLeft:P,trackStyle:Vu(Ve(Ve({},n),{},{left:P}))}),Math.abs(h.curX-h.startX)10&&($.swiping=!0,Ci(t)),$}};W.swipeEnd=function(t,n){var r=n.dragging,o=n.swipe,i=n.touchObject,s=n.listWidth,a=n.touchThreshold,l=n.verticalSwiping,u=n.listHeight,c=n.swipeToSlide,d=n.scrolling,f=n.onSwipe,v=n.targetSlide,g=n.currentSlide,y=n.infinite;if(!r)return o&&Ci(t),{};var w=l?u/a:s/a,m=C2(i,l),h={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d||!i.swipeLength)return h;if(i.swipeLength>w){Ci(t),f&&f(m);var p,S,k=y?g:v;switch(m){case"left":case"up":S=k+C1(n),p=c?w1(n,S):S,h.currentDirection=0;break;case"right":case"down":S=k-C1(n),p=c?w1(n,S):S,h.currentDirection=1;break;default:p=k}h.triggerSlideHandler=p}else{var P=Hu(n);h.trackStyle=P2(Ve(Ve({},n),{},{left:P}))}return h};var KB=W.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+dh(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},Mg=W.checkSpecKeys=function(t,n){return n.reduce(function(r,o){return r&&t.hasOwnProperty(o)},!0)?null:console.error("Keys Missing:",t)},Vu=W.getTrackCSS=function(t){Mg(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r,o=t.slideCount+2*t.slidesToShow;t.vertical?r=o*t.slideHeight:n=YB(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=Ve(Ve({},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},P2=W.getTrackAnimateCSS=function(t){Mg(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=Vu(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},Hu=W.getTrackLeft=function(t){if(t.unslick)return 0;Mg(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,u=t.slideWidth,c=t.listWidth,d=t.variableWidth,f=t.slideHeight,v=t.fade,g=t.vertical,y=0,w,m,h=0;if(v||t.slideCount===1)return 0;var p=0;if(o?(p=-Ul(t),s%l!==0&&n+l>s&&(p=-(n>s?a-(n-s):s%l)),i&&(p+=parseInt(a/2))):(s%l!==0&&n+l>s&&(p=a-s%l),i&&(p=parseInt(a/2))),y=p*u,h=p*f,g?w=n*f*-1+h:w=n*u*-1+y,d===!0){var S,k=r&&r.node;if(S=n+Ul(t),m=k&&k.childNodes[S],w=m?m.offsetLeft*-1:0,i===!0){S=o?n+Ul(t):n,m=k&&k.children[S],w=0;for(var P=0;Pt.currentSlide?t.targetSlide>t.currentSlide+QB(t)?"left":"right":t.targetSlide0&&(s+=1),o&&n%2===0&&(s+=1),s}return o?0:n-1},ZB=W.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};W.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var JB=W.validSettings=Object.keys(FB.default);function e8(e){return JB.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}var wd={};Object.defineProperty(wd,"__esModule",{value:!0});wd.Track=void 0;var Er=$2(C),Tf=$2(Sd),Ef=W;function $2(e){return e&&e.__esModule?e:{default:e}}function Fi(e){"@babel/helpers - typeof";return Fi=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},Fi(e)}function fh(){return fh=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}},l8=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},Rf=function(t,n){return t.key||n},u8=function(t){var n,r=[],o=[],i=[],s=Er.default.Children.count(t.children),a=(0,Ef.lazyStartIndex)(t),l=(0,Ef.lazyEndIndex)(t);return Er.default.Children.forEach(t.children,function(u,c){var d,f={message:"children",index:c,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0?d=u:d=Er.default.createElement("div",null);var v=l8(Ft(Ft({},t),{},{index:c})),g=d.props.className||"",y=Of(Ft(Ft({},t),{},{index:c}));if(r.push(Er.default.cloneElement(d,{key:"original"+Rf(d,c),"data-index":c,className:(0,Tf.default)(y,g),tabIndex:"-1","aria-hidden":!y["slick-active"],style:Ft(Ft({outline:"none"},d.props.style||{}),v),onClick:function(h){d.props&&d.props.onClick&&d.props.onClick(h),t.focusOnSelect&&t.focusOnSelect(f)}})),t.infinite&&t.fade===!1){var w=s-c;w<=(0,Ef.getPreClones)(t)&&(n=-w,n>=a&&(d=u),y=Of(Ft(Ft({},t),{},{index:n})),o.push(Er.default.cloneElement(d,{key:"precloned"+Rf(d,n),"data-index":n,tabIndex:"-1",className:(0,Tf.default)(y,g),"aria-hidden":!y["slick-active"],style:Ft(Ft({},d.props.style||{}),v),onClick:function(h){d.props&&d.props.onClick&&d.props.onClick(h),t.focusOnSelect&&t.focusOnSelect(f)}}))),n=s+c,n=S&&f<=h:f===S}),P={message:"dots",index:w,slidesToScroll:u,currentSlide:f},$=this.clickHandler.bind(this,P);y=y.concat(Cl.default.createElement("li",{key:w,className:k},Cl.default.cloneElement(this.props.customPaging(w),{onClick:$})))}return Cl.default.cloneElement(this.props.appendDots(y),d8({className:this.props.dotsClass},g))}}]),n}(Cl.default.PureComponent);var Hi={};function Wi(e){"@babel/helpers - typeof";return Wi=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},Wi(e)}Object.defineProperty(Hi,"__esModule",{value:!0});Hi.PrevArrow=Hi.NextArrow=void 0;var ki=j2(C),A2=j2(Sd),w8=W;function j2(e){return e&&e.__esModule?e:{default:e}}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!yh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),j8?(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(){!yh||!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=A8.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}(),F2=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ui(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new V8(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 Ui(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 H8(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}(),H2=typeof WeakMap<"u"?new WeakMap:new N2,W2=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=I8.getInstance(),r=new W8(t,n,this);H2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){W2.prototype[e]=function(){var t;return(t=H2.get(this))[e].apply(t,arguments)}});var U8=function(){return typeof Yu.ResizeObserver<"u"?Yu.ResizeObserver:W2}();const G8=Object.freeze(Object.defineProperty({__proto__:null,default:U8},Symbol.toStringTag,{value:"Module"})),K8=Q2(G8);Object.defineProperty(xd,"__esModule",{value:!0});xd.InnerSlider=void 0;var _t=qa(C),q8=qa(m2),Y8=qa(zB),X8=qa(Sd),We=W,Q8=wd,Z8=Cd,O1=Hi,J8=qa(K8);function qa(e){return e&&e.__esModule?e:{default:e}}function Mo(e){"@babel/helpers - typeof";return Mo=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},Mo(e)}function Qu(){return Qu=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 tz(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 R1(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 re(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=re({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 J8.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)}),pe(fe(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()}),pe(fe(o),"componentDidUpdate",function(s){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var a=(0,We.getOnDemandLazySlides)(re(re({},o.props),o.state));a.length>0&&(o.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(a)}}),o.props.onLazyLoad&&o.props.onLazyLoad(a))}o.adaptHeight();var l=re(re({listRef:o.list,trackRef:o.track},o.props),o.state),u=o.didPropsChange(s);u&&o.updateState(l,u,function(){o.state.currentSlide>=_t.default.Children.count(o.props.children)&&o.changeSlide({message:"index",index:_t.default.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),o.props.autoplay?o.autoPlay("update"):o.pause("paused")})}),pe(fe(o),"onWindowResized",function(s){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=(0,Y8.default)(function(){return o.resizeWindow(s)},50),o.debouncedResize()}),pe(fe(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=re(re({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}}),pe(fe(o),"updateState",function(s,a,l){var u=(0,We.initializedState)(s);s=re(re(re({},s),u),{},{slideIndex:u.currentSlide});var c=(0,We.getTrackLeft)(s);s=re(re({},s),{},{left:c});var d=(0,We.getTrackCSS)(s);(a||_t.default.Children.count(o.props.children)!==_t.default.Children.count(s.children))&&(u.trackStyle=d),o.setState(u,l)}),pe(fe(o),"ssrInit",function(){if(o.props.variableWidth){var s=0,a=0,l=[],u=(0,We.getPreClones)(re(re(re({},o.props),o.state),{},{slideCount:o.props.children.length})),c=(0,We.getPostClones)(re(re(re({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach(function($){l.push($.props.style.width),s+=$.props.style.width});for(var d=0;d=a&&o.onWindowResized()};if(!u.onclick)u.onclick=function(){return u.parentNode.focus()};else{var d=u.onclick;u.onclick=function(f){d(f),u.parentNode.focus()}}u.onload||(o.props.lazyLoad?u.onload=function(){o.adaptHeight(),o.callbackTimers.push(setTimeout(o.onWindowResized,o.props.speed))}:(u.onload=c,u.onerror=function(){c(),o.props.onLazyLoadError&&o.props.onLazyLoadError()}))})}),pe(fe(o),"progressiveLazyLoad",function(){for(var s=[],a=re(re({},o.props),o.state),l=o.state.currentSlide;l=-(0,We.getPreClones)(a);u--)if(o.state.lazyLoadedList.indexOf(u)<0){s.push(u);break}s.length>0?(o.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),o.props.onLazyLoad&&o.props.onLazyLoad(s)):o.lazyLoadTimer&&(clearInterval(o.lazyLoadTimer),delete o.lazyLoadTimer)}),pe(fe(o),"slideHandler",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=o.props,u=l.asNavFor,c=l.beforeChange,d=l.onLazyLoad,f=l.speed,v=l.afterChange,g=o.state.currentSlide,y=(0,We.slideHandler)(re(re(re({index:s},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!a})),w=y.state,m=y.nextState;if(w){c&&c(g,w.currentSlide);var h=w.lazyLoadedList.filter(function(p){return o.state.lazyLoadedList.indexOf(p)<0});d&&h.length>0&&d(h),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),v&&v(g),delete o.animationEndCallback),o.setState(w,function(){u&&o.asNavForIndex!==s&&(o.asNavForIndex=s,u.innerSlider.slideHandler(s)),m&&(o.animationEndCallback=setTimeout(function(){var p=m.animating,S=ez(m,["animating"]);o.setState(S,function(){o.callbackTimers.push(setTimeout(function(){return o.setState({animating:p})},10)),v&&v(w.currentSlide),delete o.animationEndCallback})},f))})}}),pe(fe(o),"changeSlide",function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=re(re({},o.props),o.state),u=(0,We.changeSlide)(l,s);if(!(u!==0&&!u)&&(a===!0?o.slideHandler(u,a):o.slideHandler(u),o.props.autoplay&&o.autoPlay("update"),o.props.focusOnSelect)){var c=o.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),pe(fe(o),"clickHandler",function(s){o.clickable===!1&&(s.stopPropagation(),s.preventDefault()),o.clickable=!0}),pe(fe(o),"keyHandler",function(s){var a=(0,We.keyHandler)(s,o.props.accessibility,o.props.rtl);a!==""&&o.changeSlide({message:a})}),pe(fe(o),"selectHandler",function(s){o.changeSlide(s)}),pe(fe(o),"disableBodyScroll",function(){var s=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=s}),pe(fe(o),"enableBodyScroll",function(){window.ontouchmove=null}),pe(fe(o),"swipeStart",function(s){o.props.verticalSwiping&&o.disableBodyScroll();var a=(0,We.swipeStart)(s,o.props.swipe,o.props.draggable);a!==""&&o.setState(a)}),pe(fe(o),"swipeMove",function(s){var a=(0,We.swipeMove)(s,re(re(re({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));a&&(a.swiping&&(o.clickable=!1),o.setState(a))}),pe(fe(o),"swipeEnd",function(s){var a=(0,We.swipeEnd)(s,re(re(re({},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())}}),pe(fe(o),"touchEnd",function(s){o.swipeEnd(s),o.clickable=!0}),pe(fe(o),"slickPrev",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"previous"})},0))}),pe(fe(o),"slickNext",function(){o.callbackTimers.push(setTimeout(function(){return o.changeSlide({message:"next"})},0))}),pe(fe(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))}),pe(fe(o),"play",function(){var s;if(o.props.rtl)s=o.state.currentSlide-o.props.slidesToScroll;else if((0,We.canGoNext)(re(re({},o.props),o.state)))s=o.state.currentSlide+o.props.slidesToScroll;else return!1;o.slideHandler(s)}),pe(fe(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"})}),pe(fe(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"})}),pe(fe(o),"onDotsOver",function(){return o.props.autoplay&&o.pause("hovered")}),pe(fe(o),"onDotsLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),pe(fe(o),"onTrackOver",function(){return o.props.autoplay&&o.pause("hovered")}),pe(fe(o),"onTrackLeave",function(){return o.props.autoplay&&o.state.autoplaying==="hovered"&&o.autoPlay("leave")}),pe(fe(o),"onSlideFocus",function(){return o.props.autoplay&&o.pause("focused")}),pe(fe(o),"onSlideBlur",function(){return o.props.autoplay&&o.state.autoplaying==="focused"&&o.autoPlay("blur")}),pe(fe(o),"render",function(){var s=(0,X8.default)("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=re(re({},o.props),o.state),l=(0,We.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"]),u=o.props.pauseOnHover;l=re(re({},l),{},{onMouseEnter:u?o.onTrackOver:null,onMouseLeave:u?o.onTrackLeave:null,onMouseOver:u?o.onTrackOver:null,focusOnSelect:o.props.focusOnSelect&&o.clickable?o.selectHandler:null});var c;if(o.props.dots===!0&&o.state.slideCount>=o.props.slidesToShow){var d=(0,We.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=o.props.pauseOnDotsHover;d=re(re({},d),{},{clickHandler:o.changeSlide,onMouseEnter:f?o.onDotsLeave:null,onMouseOver:f?o.onDotsOver:null,onMouseLeave:f?o.onDotsLeave:null}),c=_t.default.createElement(Z8.Dots,d)}var v,g,y=(0,We.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);y.clickHandler=o.changeSlide,o.props.arrows&&(v=_t.default.createElement(O1.PrevArrow,y),g=_t.default.createElement(O1.NextArrow,y));var w=null;o.props.vertical&&(w={height:o.state.listHeight});var m=null;o.props.vertical===!1?o.props.centerMode===!0&&(m={padding:"0px "+o.props.centerPadding}):o.props.centerMode===!0&&(m={padding:o.props.centerPadding+" 0px"});var h=re(re({},w),m),p=o.props.touchMove,S={className:"slick-list",style:h,onClick:o.clickHandler,onMouseDown:p?o.swipeStart:null,onMouseMove:o.state.dragging&&p?o.swipeMove:null,onMouseUp:p?o.swipeEnd:null,onMouseLeave:o.state.dragging&&p?o.swipeEnd:null,onTouchStart:p?o.swipeStart:null,onTouchMove:o.state.dragging&&p?o.swipeMove:null,onTouchEnd:p?o.touchEnd:null,onTouchCancel:o.state.dragging&&p?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},k={className:s,dir:"ltr",style:o.props.style};return o.props.unslick&&(S={className:"slick-list"},k={className:s}),_t.default.createElement("div",k,o.props.unslick?"":v,_t.default.createElement("div",Qu({ref:o.listRefHandler},S),_t.default.createElement(Q8.Track,Qu({ref:o.trackRefHandler},l),o.props.children)),o.props.unslick?"":g,o.props.unslick?"":c)}),o.list=null,o.track=null,o.state=re(re({},q8.default),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:_t.default.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var i=o.ssrInit();return o.state=re(re({},o.state),i),o}return oz(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 M.innerSlider.slickGoTo(A,_)}),k(h(M),"slickPause",function(){return M.innerSlider.pause("paused")}),k(h(M),"slickPlay",function(){return M.innerSlider.autoPlay("play")}),M.state={breakpoint:null},M._responsiveMediaHandlers=[],M}return v(E,[{key:"media",value:function(M,A){T.register(M,A),this._responsiveMediaHandlers.push({query:M,handler:A})}},{key:"componentDidMount",value:function(){var M=this;if(this.props.responsive){var A=this.props.responsive.map(function(D){return D.breakpoint});A.sort(function(D,B){return D-B}),A.forEach(function(D,B){var j;B===0?j=(0,r.default)({minWidth:0,maxWidth:D}):j=(0,r.default)({minWidth:A[B-1]+1,maxWidth:D}),(0,i.canUseDOM)()&&M.media(j,function(){M.setState({breakpoint:D})})});var _=(0,r.default)({minWidth:A.slice(-1)[0]});(0,i.canUseDOM)()&&this.media(_,function(){M.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(M){T.unregister(M.query,M.handler)})}},{key:"render",value:function(){var M=this,A,_;this.state.breakpoint?(_=this.props.responsive.filter(function(ue){return ue.breakpoint===M.state.breakpoint}),A=_[0].settings==="unslick"?"unslick":c(c(c({},o.default),this.props),_[0].settings)):A=c(c({},o.default),this.props),A.centerMode&&(A.slidesToScroll>1,A.slidesToScroll=1),A.fade&&(A.slidesToShow>1,A.slidesToScroll>1,A.slidesToShow=1,A.slidesToScroll=1);var D=t.default.Children.toArray(this.props.children);D=D.filter(function(ue){return typeof ue=="string"?!!ue.trim():!!ue}),A.variableWidth&&(A.rows>1||A.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),A.variableWidth=!1);for(var B=[],j=null,L=0;L=D.length));ee+=1)Z.push(t.default.cloneElement(D[ee],{key:100*L+10*X+ee,tabIndex:-1,style:{width:"".concat(100/A.slidesPerRow,"%"),display:"inline-block"}}));V.push(t.default.createElement("div",{key:10*L+X},Z))}A.variableWidth?B.push(t.default.createElement("div",{key:L,style:{width:j}},V)):B.push(t.default.createElement("div",{key:L},V))}if(A==="unslick"){var te="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:te},D)}else B.length<=A.slidesToShow&&!A.infinite&&(A.unslick=!0);return t.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,i.filterSettings)(A)),B)}}]),E}(t.default.Component)})(h2);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(h2);function n(r){return r&&r.__esModule?r:{default:r}}e.default=t.default})(p2);const bz=xh(p2),D1=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"},xz=({currentOrchid:e,theme:t})=>{const n=bd.filter(o=>o.Id!==e.Id&&(o.category===e.category||o.color===e.color||D1(o.origin)===D1(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 x.jsxs("div",{className:"related-orchids-slider",style:{marginTop:"3rem",paddingBottom:"32px"},children:[x.jsx(ae,{variant:"h5",component:"h2",sx:{mb:3,color:t.text.primary,fontWeight:"bold",textAlign:"center"},children:"Related Orchids"}),x.jsx(bz,{...r,children:n.map(o=>x.jsx("div",{style:{padding:"0 10px"},children:x.jsx(Og,{orchid:o,theme:t})},o.Id))}),x.jsx("style",{jsx:!0,global:!0,children:` - .related-orchids-slider .slick-list { - margin: 0 -10px; - } - .related-orchids-slider .slick-slide > div { - margin: 0 10px; - } - .related-orchids-slider .slick-dots li button:before { - color: ${t.text.primary}; - opacity: 0.25; - font-size: 10px; - } - .related-orchids-slider .slick-dots li.slick-active button:before { - color: ${t.text.primary}; - opacity: 0.75; - } - .related-orchids-slider .slick-prev, - .related-orchids-slider .slick-next { - z-index: 1; - } - .related-orchids-slider .slick-prev { - left: -25px; - } - .related-orchids-slider .slick-next { - right: -25px; - } - .related-orchids-slider .slick-prev:before, - .related-orchids-slider .slick-next:before { - color: ${t.text.primary}; - } - `})]})},Sz=jn(me);function wz(){const{id:e}=Q$(),t=ym(),n=bd.find(s=>s.Id===e),{theme:r}=C.useContext(In),[o,i]=C.useState(!1);return n?x.jsxs(me,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px)",bgcolor:r.mainContent.backgroundColor,color:r.text.primary,pt:{xs:8,sm:10}},children:[x.jsxs(Ii,{maxWidth:"lg",sx:{py:4},children:[x.jsx(Ro,{onClick:()=>t("/fer-lab1"),variant:"contained",startIcon:x.jsx(hM,{}),sx:{mb:3,backgroundColor:r.button.primary,"&:hover":{backgroundColor:r.button.hover}},children:"Back to List"}),x.jsx(Sz,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:x.jsx(Oo,{elevation:3,sx:{overflow:"hidden",borderRadius:2,backgroundColor:r.card.backgroundColor,color:r.text.primary,boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:x.jsxs(Ge,{container:!0,spacing:0,children:[x.jsx(Ge,{item:!0,xs:12,md:6,children:x.jsxs(me,{sx:{position:"relative"},children:[x.jsx(Fu,{ratio:"4/3",children:x.jsx("img",{src:n.image,alt:n.name,style:{width:"100%",height:"100%",objectFit:"cover"}})}),x.jsx(Ro,{variant:"contained",startIcon:x.jsx(kM,{}),onClick:()=>i(!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"})]})}),x.jsx(Ge,{item:!0,xs:12,md:6,children:x.jsxs(me,{sx:{p:4},children:[x.jsx(ae,{variant:"h4",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:r.text.primary},children:n.name}),x.jsxs(me,{sx:{display:"flex",alignItems:"center",mb:2},children:[x.jsx(GC,{name:"read-only",value:n.rating,readOnly:!0,precision:.5,emptyIcon:x.jsx(L0,{style:{opacity:.55},fontSize:"inherit"})}),x.jsxs(ae,{variant:"body1",sx:{ml:1,color:r.text.secondary},children:["(",n.rating,"/5)"]})]}),x.jsx(_i,{sx:{my:2}}),x.jsxs(ae,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(Fm,{sx:{mr:1,color:r.icon.color}}),"Origin:"," ",x.jsx(js,{label:n.origin,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsxs(ae,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(iw,{sx:{mr:1,color:r.icon.color}}),"Category:"," ",x.jsx(js,{label:n.category,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsxs(ae,{variant:"body1",sx:{mb:2,display:"flex",alignItems:"center"},children:[x.jsx(vM,{sx:{mr:1,color:r.icon.color}}),"Color:"," ",x.jsx(js,{label:n.color,sx:{ml:1,backgroundColor:r.chip.backgroundColor,color:r.chip.color}})]}),x.jsx(_i,{sx:{my:2}}),x.jsx(ae,{variant:"body1",paragraph:!0,sx:{color:r.text.secondary,lineHeight:1.6},children:n.detail}),n.isSpecial&&x.jsx(js,{icon:x.jsx(L0,{}),label:"Special Orchid",color:"warning",sx:{mt:2}})]})})]})})}),x.jsx(xz,{currentOrchid:n,theme:r})]}),x.jsx(zm,{open:o,onClose:()=>i(!1),"aria-labelledby":"video-modal-title","aria-describedby":"video-modal-description",children:x.jsxs(me,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",maxWidth:800,bgcolor:r.card.backgroundColor,boxShadow:24,p:4,borderRadius:2},children:[x.jsx(me,{sx:{display:"flex",justifyContent:"flex-end",mb:2},children:x.jsx(yn,{onClick:()=>i(!1),sx:{color:r.text.primary},children:x.jsx(gM,{})})}),x.jsx(Fu,{ratio:"16/9",children:x.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})})]})})]}):x.jsx(Ii,{maxWidth:"lg",sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",bgcolor:r.mainContent.backgroundColor},children:x.jsx(ae,{variant:"h4",color:r.text.primary,children:"Orchid not found"})})}function Cz(){const{theme:e}=C.useContext(In),t=bd.filter(n=>n.isSpecial);return x.jsx(me,{sx:{width:"100%"},children:x.jsx(Ge,{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(n=>x.jsx(Ge,{item:!0,xs:12,sm:6,md:4,children:x.jsx(Og,{orchid:n},n.Id)},n.Id))})})}const kz="/fer-lab1/assets/avt-D_utLsXG.jpg",qo=jn(me),Pz=jn(FC),Lf=({icon:e,title:t,content:n,theme:r})=>x.jsx(Pz,{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:x.jsxs(VC,{children:[x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[gn.cloneElement(e,{style:{color:r.icon.color}}),x.jsx(ae,{variant:"h6",component:"h3",ml:1,color:r.text.primary,children:t})]}),x.jsx(ae,{variant:"body1",color:r.text.secondary,children:n})]})});function $z(){const{theme:e}=C.useContext(In);return x.jsx(me,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary},children:x.jsx(Ii,{maxWidth:!1,sx:{backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,flex:"1 0 auto",padding:"2rem",paddingBottom:"4rem"},children:x.jsxs(me,{py:8,children:[x.jsx(qo,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.5},mb:6,children:x.jsx(ae,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"About Me"})}),x.jsxs(Ge,{container:!0,spacing:4,children:[x.jsx(Ge,{item:!0,xs:12,md:4,children:x.jsx(qo,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:x.jsxs(me,{textAlign:"center",children:[x.jsx(NC,{alt:"Nguyen Huy Hoang",src:kz,sx:{width:200,height:200,margin:"auto",mb:2}}),x.jsx(ae,{variant:"h4",component:"h2",gutterBottom:!0,color:e.text.primary,children:"Nguyen Huy Hoang"}),x.jsx(ae,{variant:"subtitle1",color:e.text.secondary,gutterBottom:!0,children:"Software Engineering Student"}),x.jsxs(me,{children:[x.jsx(yn,{"aria-label":"Facebook",sx:{color:e.icon.color},href:"https://www.facebook.com/hoangnguyen.c1002/",children:x.jsx(sw,{})}),x.jsx(yn,{"aria-label":"Instagram",sx:{color:e.icon.color},href:"https://www.instagram.com/__hoang.nguyeen__/",children:x.jsx(lw,{})}),x.jsx(yn,{"aria-label":"GitHub",sx:{color:e.icon.color},href:"https://github.com/Hoang-Nguyen-Huy",children:x.jsx(aw,{})})]})]})})}),x.jsx(Ge,{item:!0,xs:12,md:8,children:x.jsxs(qo,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},children:[x.jsx(ae,{variant:"h5",component:"h3",gutterBottom:!0,color:e.text.primary,children:"Education"}),x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(PM,{sx:{color:e.icon.color,mr:1}}),x.jsx(ae,{variant:"body1",color:e.text.primary,children:"FPT University, Ho Chi Minh City"})]}),x.jsx(ae,{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."})]})})]}),x.jsxs(me,{mt:8,children:[x.jsx(ae,{variant:"h4",component:"h2",align:"center",gutterBottom:!0,color:e.text.primary,children:"Our Approach"}),x.jsxs(Ge,{container:!0,spacing:4,mt:2,children:[x.jsx(Ge,{item:!0,xs:12,md:4,children:x.jsx(qo,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},children:x.jsx(Lf,{icon:x.jsx(bM,{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})})}),x.jsx(Ge,{item:!0,xs:12,md:4,children:x.jsx(qo,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},children:x.jsx(Lf,{icon:x.jsx(xM,{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})})}),x.jsx(Ge,{item:!0,xs:12,md:4,children:x.jsx(qo,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:1},children:x.jsx(Lf,{icon:x.jsx(pM,{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 Tz=jn(Oo),Ez=jn(me);function Oz(){const{theme:e}=C.useContext(In),[t,n]=C.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 x.jsx(me,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:e.mainContent.backgroundColor,color:e.text.primary,paddingTop:"8px"},children:x.jsxs(Ii,{maxWidth:!1,sx:{py:8,backgroundColor:e.mainContent.backgroundColor,minHeight:"100vh",padding:"2rem"},children:[x.jsx(ae,{variant:"h2",component:"h1",align:"center",gutterBottom:!0,color:e.text.primary,children:"Contact Us"}),x.jsxs(Ge,{container:!0,spacing:4,justifyContent:"center",children:[x.jsx(Ge,{item:!0,xs:12,md:6,children:x.jsx(Tz,{elevation:3,initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5},sx:{p:4,backgroundColor:e.card.backgroundColor},children:x.jsxs("form",{onSubmit:o,children:[x.jsx(Cf,{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}}}),x.jsx(Cf,{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}}}),x.jsx(Cf,{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}}}),x.jsx(Ro,{type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!0,sx:{mt:2},children:"Send Message"})]})})}),x.jsx(Ge,{item:!0,xs:12,md:6,children:x.jsx(Ez,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:x.jsxs(Oo,{elevation:3,sx:{p:4,height:"100%",backgroundColor:e.card.backgroundColor},children:[x.jsx(ae,{variant:"h5",gutterBottom:!0,color:e.text.primary,children:"Contact Information"}),x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(yn,{sx:{color:e.icon.color,mr:1},children:x.jsx(yM,{})}),x.jsx(ae,{color:e.text.primary,children:"contact@example.com"})]}),x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(yn,{sx:{color:e.icon.color,mr:1},children:x.jsx(CM,{})}),x.jsx(ae,{color:e.text.primary,children:"+1 (123) 456-7890"})]}),x.jsxs(me,{display:"flex",alignItems:"center",mb:2,children:[x.jsx(yn,{sx:{color:e.icon.color,mr:1},children:x.jsx(Fm,{})}),x.jsx(ae,{color:e.text.primary,children:"Lô E2a-7, Đường D1, Đ. D1, Long Thạnh Mỹ, Thành Phố Thủ Đức, Hồ Chí Minh"})]}),x.jsxs(me,{mt:4,children:[x.jsx(ae,{variant:"h6",gutterBottom:!0,color:e.text.primary,children:"Find Us On Map"}),x.jsx(Oo,{elevation:2,sx:{height:250,overflow:"hidden"},children:x.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 Rz=[{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"}],Mz=jn(FC);function Az(){const{theme:e}=C.useContext(In);return x.jsxs(me,{sx:{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 64px - 56px)",backgroundColor:e.mainContent.backgroundColor,padding:{xs:2,sm:4,md:6}},children:[x.jsx(ae,{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"}),x.jsx(Ge,{container:!0,spacing:4,children:Rz.map((t,n)=>x.jsx(Ge,{item:!0,xs:12,sm:6,md:4,children:x.jsxs(Mz,{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:[x.jsx(I_,{component:"img",height:"200",image:t.image,alt:t.title,sx:{objectFit:"cover"}}),x.jsxs(VC,{sx:{flexGrow:1,position:"relative"},children:[x.jsx(js,{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]}}),x.jsx(ae,{gutterBottom:!0,variant:"h5",component:"h2",sx:{fontWeight:"bold",color:e.text.primary},children:t.title}),x.jsx(ae,{variant:"body2",sx:{color:e.text.secondary,mb:2},children:t.excerpt}),x.jsx(_i,{sx:{mb:2,backgroundColor:e.divider}}),x.jsxs(me,{sx:{display:"flex",alignItems:"center",mb:2},children:[x.jsx(NC,{src:t.author.avatar,sx:{width:32,height:32,mr:1}}),x.jsx(ae,{variant:"subtitle2",sx:{color:e.text.primary,mr:2},children:t.author.name}),x.jsx(fM,{sx:{fontSize:16,mr:.5,color:e.icon.color}}),x.jsx(ae,{variant:"caption",sx:{color:e.text.secondary},children:new Date(t.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),x.jsxs(me,{sx:{display:"flex",justifyContent:"space-between"},children:[x.jsx(Ro,{startIcon:x.jsx(mM,{}),size:"small",sx:{color:e.button.primary},children:"Save"}),x.jsx(Ro,{startIcon:x.jsx($M,{}),size:"small",sx:{color:e.button.primary},children:"Share"})]})]})]})},t.id))})]})}function jz(){return x.jsxs("div",{style:{position:"relative"},children:[x.jsx(e_,{}),x.jsxs(d5,{children:[x.jsx(uo,{path:"/fer-lab1/",element:x.jsx(SB,{})}),x.jsx(uo,{path:"/fer-lab1/natural",element:x.jsx(Cz,{})}),x.jsx(uo,{path:"/fer-lab1/:id",element:x.jsx(wz,{})}),x.jsx(uo,{path:"/fer-lab1/news",element:x.jsx(Az,{})}),x.jsx(uo,{path:"/fer-lab1/about",element:x.jsx($z,{})}),x.jsx(uo,{path:"/fer-lab1/contact",element:x.jsx(Oz,{})})]}),x.jsx(yB,{})]})}Xx(document.getElementById("root")).render(x.jsx(C.StrictMode,{children:x.jsx(y5,{children:x.jsx(J3,{children:x.jsx(jz,{})})})})); diff --git a/index.html b/index.html index 9726fdf..22f2306 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React - +