From 4402f8a43612380e1b5d76afbf13b0ab7c755671 Mon Sep 17 00:00:00 2001 From: lawtlee Date: Sat, 2 Dec 2023 16:02:19 -0800 Subject: [PATCH] Updates --- .../{index-mWCtnyVI.js => index-flAlMa-W.js} | 92 +++++++++---------- index.html | 2 +- 2 files changed, 47 insertions(+), 47 deletions(-) rename assets/{index-mWCtnyVI.js => index-flAlMa-W.js} (97%) diff --git a/assets/index-mWCtnyVI.js b/assets/index-flAlMa-W.js similarity index 97% rename from assets/index-mWCtnyVI.js rename to assets/index-flAlMa-W.js index d82f6dc..6f4dd30 100644 --- a/assets/index-mWCtnyVI.js +++ b/assets/index-flAlMa-W.js @@ -30,14 +30,14 @@ function CS(t,e){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tg=Object.prototype.hasOwnProperty,yN=/^[: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]*$/,C_={},R_={};function vN(t){return Tg.call(R_,t)?!0:Tg.call(C_,t)?!1:yN.test(t)?R_[t]=!0:(C_[t]=!0,!1)}function _N(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function wN(t,e,n,r){if(e===null||typeof e>"u"||_N(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function bn(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var on={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){on[t]=new bn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];on[e]=new bn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){on[t]=new bn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){on[t]=new bn(t,2,!1,t,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(t){on[t]=new bn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){on[t]=new bn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){on[t]=new bn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){on[t]=new bn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){on[t]=new bn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Tv=/[\-:]([a-z])/g;function Sv(t){return t[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(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){on[t]=new bn(t,1,!1,t.toLowerCase(),null,!1,!1)});on.xlinkHref=new bn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){on[t]=new bn(t,1,!1,t.toLowerCase(),null,!0,!0)});function Iv(t,e,n,r){var i=on.hasOwnProperty(e)?on[e]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tg=Object.prototype.hasOwnProperty,yN=/^[: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]*$/,C_={},R_={};function vN(t){return Tg.call(R_,t)?!0:Tg.call(C_,t)?!1:yN.test(t)?R_[t]=!0:(C_[t]=!0,!1)}function _N(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function wN(t,e,n,r){if(e===null||typeof e>"u"||_N(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function bn(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var on={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){on[t]=new bn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];on[e]=new bn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){on[t]=new bn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){on[t]=new bn(t,2,!1,t,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(t){on[t]=new bn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){on[t]=new bn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){on[t]=new bn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){on[t]=new bn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){on[t]=new bn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Tv=/[\-:]([a-z])/g;function Sv(t){return t[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(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Tv,Sv);on[e]=new bn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){on[t]=new bn(t,1,!1,t.toLowerCase(),null,!1,!1)});on.xlinkHref=new bn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){on[t]=new bn(t,1,!1,t.toLowerCase(),null,!0,!0)});function Iv(t,e,n,r){var i=on.hasOwnProperty(e)?on[e]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{am=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ml(t):""}function EN(t){switch(t.tag){case 5:return Ml(t.type);case 16:return Ml("Lazy");case 13:return Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 2:case 15:return t=lm(t.type,!1),t;case 11:return t=lm(t.type.render,!1),t;case 1:return t=lm(t.type,!0),t;default:return""}}function Rg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Uo:return"Fragment";case $o:return"Portal";case Sg:return"Profiler";case Cv:return"StrictMode";case Ig:return"Suspense";case Cg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case HS:return(t.displayName||"Context")+".Consumer";case zS:return(t._context.displayName||"Context")+".Provider";case Rv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case bv:return e=t.displayName||null,e!==null?e:Rg(t.type)||"Memo";case Li:e=t._payload,t=t._init;try{return Rg(t(e))}catch{}}return null}function xN(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rg(e);case 8:return e===Cv?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function us(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function KS(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function TN(t){var e=KS(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gc(t){t._valueTracker||(t._valueTracker=TN(t))}function qS(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=KS(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Jd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function bg(t,e){var n=e.checked;return ct({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function P_(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=us(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function GS(t,e){e=e.checked,e!=null&&Iv(t,"checked",e,!1)}function Pg(t,e){GS(t,e);var n=us(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ag(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ag(t,e.type,us(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function A_(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ag(t,e,n){(e!=="number"||Jd(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ol=Array.isArray;function la(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Qc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Eu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gl={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},SN=["Webkit","ms","Moz","O"];Object.keys(Gl).forEach(function(t){SN.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Gl[e]=Gl[t]})});function JS(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Gl.hasOwnProperty(t)&&Gl[t]?(""+e).trim():e+"px"}function ZS(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=JS(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var IN=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dg(t,e){if(e){if(IN[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error($(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error($(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error($(61))}if(e.style!=null&&typeof e.style!="object")throw Error($(62))}}function Mg(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Og=null;function Pv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Lg=null,ua=null,ca=null;function D_(t){if(t=fc(t)){if(typeof Lg!="function")throw Error($(280));var e=t.stateNode;e&&(e=yf(e),Lg(t.stateNode,t.type,e))}}function eI(t){ua?ca?ca.push(t):ca=[t]:ua=t}function tI(){if(ua){var t=ua,e=ca;if(ca=ua=null,D_(t),e)for(t=0;t>>=0,t===0?32:31-(LN(t)/VN|0)|0}var Yc=64,Xc=4194304;function Ll(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function nh(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ll(a):(s&=o,s!==0&&(r=Ll(s)))}else o=n&~i,o!==0?r=Ll(o):s!==0&&(r=Ll(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function dc(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Tr(e),t[e]=n}function UN(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Yl),B_=" ",z_=!1;function EI(t,e){switch(t){case"keyup":return mD.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xI(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Bo=!1;function yD(t,e){switch(t){case"compositionend":return xI(e);case"keypress":return e.which!==32?null:(z_=!0,B_);case"textInput":return t=e.data,t===B_&&z_?null:t;default:return null}}function vD(t,e){if(Bo)return t==="compositionend"||!Vv&&EI(t,e)?(t=_I(),bd=Mv=Ki=null,Bo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=q_(n)}}function CI(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?CI(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function RI(){for(var t=window,e=Jd();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Jd(t.document)}return e}function Fv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function RD(t){var e=RI(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&CI(n.ownerDocument.documentElement,n)){if(r!==null&&Fv(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=G_(n,s);var o=G_(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zo=null,Bg=null,Jl=null,zg=!1;function Q_(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zg||zo==null||zo!==Jd(r)||(r=zo,"selectionStart"in r&&Fv(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}),Jl&&Ru(Jl,r)||(Jl=r,r=sh(Bg,"onSelect"),0Ko||(t.current=Qg[Ko],Qg[Ko]=null,Ko--)}function Ge(t,e){Ko++,Qg[Ko]=t.current,t.current=e}var cs={},gn=ws(cs),Mn=ws(!1),eo=cs;function Ta(t,e){var n=t.type.contextTypes;if(!n)return cs;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function On(t){return t=t.childContextTypes,t!=null}function ah(){Je(Mn),Je(gn)}function nw(t,e,n){if(gn.current!==cs)throw Error($(168));Ge(gn,e),Ge(Mn,n)}function LI(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error($(108,xN(t)||"Unknown",i));return ct({},n,r)}function lh(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||cs,eo=gn.current,Ge(gn,t),Ge(Mn,Mn.current),!0}function rw(t,e,n){var r=t.stateNode;if(!r)throw Error($(169));n?(t=LI(t,e,eo),r.__reactInternalMemoizedMergedChildContext=t,Je(Mn),Je(gn),Ge(gn,t)):Je(Mn),Ge(Mn,n)}var ri=null,vf=!1,xm=!1;function VI(t){ri===null?ri=[t]:ri.push(t)}function jD(t){vf=!0,VI(t)}function Es(){if(!xm&&ri!==null){xm=!0;var t=0,e=Ve;try{var n=ri;for(Ve=1;t>=o,i-=o,ii=1<<32-Tr(e)+i|n<C?(k=T,T=null):k=T.sibling;var P=h(w,T,_[C],g);if(P===null){T===null&&(T=k);break}t&&T&&P.alternate===null&&e(w,T),v=s(P,v,C),I===null?S=P:I.sibling=P,I=P,T=k}if(C===_.length)return n(w,T),rt&&Ms(w,C),S;if(T===null){for(;C<_.length;C++)T=d(w,_[C],g),T!==null&&(v=s(T,v,C),I===null?S=T:I.sibling=T,I=T);return rt&&Ms(w,C),S}for(T=r(w,T);C<_.length;C++)k=f(T,w,C,_[C],g),k!==null&&(t&&k.alternate!==null&&T.delete(k.key===null?C:k.key),v=s(k,v,C),I===null?S=k:I.sibling=k,I=k);return t&&T.forEach(function(L){return e(w,L)}),rt&&Ms(w,C),S}function y(w,v,_,g){var S=cl(_);if(typeof S!="function")throw Error($(150));if(_=S.call(_),_==null)throw Error($(151));for(var I=S=null,T=v,C=v=0,k=null,P=_.next();T!==null&&!P.done;C++,P=_.next()){T.index>C?(k=T,T=null):k=T.sibling;var L=h(w,T,P.value,g);if(L===null){T===null&&(T=k);break}t&&T&&L.alternate===null&&e(w,T),v=s(L,v,C),I===null?S=L:I.sibling=L,I=L,T=k}if(P.done)return n(w,T),rt&&Ms(w,C),S;if(T===null){for(;!P.done;C++,P=_.next())P=d(w,P.value,g),P!==null&&(v=s(P,v,C),I===null?S=P:I.sibling=P,I=P);return rt&&Ms(w,C),S}for(T=r(w,T);!P.done;C++,P=_.next())P=f(T,w,C,P.value,g),P!==null&&(t&&P.alternate!==null&&T.delete(P.key===null?C:P.key),v=s(P,v,C),I===null?S=P:I.sibling=P,I=P);return t&&T.forEach(function(B){return e(w,B)}),rt&&Ms(w,C),S}function x(w,v,_,g){if(typeof _=="object"&&_!==null&&_.type===Uo&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case qc:e:{for(var S=_.key,I=v;I!==null;){if(I.key===S){if(S=_.type,S===Uo){if(I.tag===7){n(w,I.sibling),v=i(I,_.props.children),v.return=w,w=v;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Li&&cw(S)===I.type){n(w,I.sibling),v=i(I,_.props),v.ref=ml(w,I,_),v.return=w,w=v;break e}n(w,I);break}else e(w,I);I=I.sibling}_.type===Uo?(v=Xs(_.props.children,w.mode,g,_.key),v.return=w,w=v):(g=Ld(_.type,_.key,_.props,null,w.mode,g),g.ref=ml(w,v,_),g.return=w,w=g)}return o(w);case $o:e:{for(I=_.key;v!==null;){if(v.key===I)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(w,v.sibling),v=i(v,_.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else e(w,v);v=v.sibling}v=Am(_,w.mode,g),v.return=w,w=v}return o(w);case Li:return I=_._init,x(w,v,I(_._payload),g)}if(Ol(_))return m(w,v,_,g);if(cl(_))return y(w,v,_,g);id(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(w,v.sibling),v=i(v,_),v.return=w,w=v):(n(w,v),v=Pm(_,w.mode,g),v.return=w,w=v),o(w)):n(w,v)}return x}var Ia=WI(!0),KI=WI(!1),pc={},zr=ws(pc),ku=ws(pc),Nu=ws(pc);function zs(t){if(t===pc)throw Error($(174));return t}function qv(t,e){switch(Ge(Nu,e),Ge(ku,t),Ge(zr,pc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ng(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ng(e,t)}Je(zr),Ge(zr,e)}function Ca(){Je(zr),Je(ku),Je(Nu)}function qI(t){zs(Nu.current);var e=zs(zr.current),n=Ng(e,t.type);e!==n&&(Ge(ku,t),Ge(zr,n))}function Gv(t){ku.current===t&&(Je(zr),Je(ku))}var at=ws(0);function ph(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Tm=[];function Qv(){for(var t=0;tn?n:4,t(!0);var r=Sm.transition;Sm.transition={};try{t(!1),e()}finally{Ve=n,Sm.transition=r}}function uC(){return fr().memoizedState}function zD(t,e,n){var r=ts(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cC(t))dC(e,n);else if(n=UI(t,e,n,r),n!==null){var i=In();Sr(n,t,r,i),hC(n,e,r)}}function HD(t,e,n){var r=ts(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cC(t))dC(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ir(a,o)){var l=e.interleaved;l===null?(i.next=i,Wv(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=UI(t,e,i,r),n!==null&&(i=In(),Sr(n,t,r,i),hC(n,e,r))}}function cC(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function dC(t,e){Zl=mh=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function hC(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,kv(t,n)}}var gh={readContext:hr,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},WD={readContext:hr,useCallback:function(t,e){return Dr().memoizedState=[t,e===void 0?null:e],t},useContext:hr,useEffect:hw,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Nd(4194308,4,iC.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Nd(4,2,t,e)},useMemo:function(t,e){var n=Dr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Dr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=zD.bind(null,ut,t),[r.memoizedState,t]},useRef:function(t){var e=Dr();return t={current:t},e.memoizedState=t},useState:dw,useDebugValue:e0,useDeferredValue:function(t){return Dr().memoizedState=t},useTransition:function(){var t=dw(!1),e=t[0];return t=BD.bind(null,t[1]),Dr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ut,i=Dr();if(rt){if(n===void 0)throw Error($(407));n=n()}else{if(n=e(),Wt===null)throw Error($(349));no&30||YI(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,hw(JI.bind(null,r,s,t),[t]),r.flags|=2048,Ou(9,XI.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Dr(),e=Wt.identifierPrefix;if(rt){var n=si,r=ii;n=(r&~(1<<32-Tr(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Du++,0")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{am=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ml(t):""}function EN(t){switch(t.tag){case 5:return Ml(t.type);case 16:return Ml("Lazy");case 13:return Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 2:case 15:return t=lm(t.type,!1),t;case 11:return t=lm(t.type.render,!1),t;case 1:return t=lm(t.type,!0),t;default:return""}}function Rg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Uo:return"Fragment";case $o:return"Portal";case Sg:return"Profiler";case Cv:return"StrictMode";case Ig:return"Suspense";case Cg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case HS:return(t.displayName||"Context")+".Consumer";case zS:return(t._context.displayName||"Context")+".Provider";case Rv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case bv:return e=t.displayName||null,e!==null?e:Rg(t.type)||"Memo";case Vi:e=t._payload,t=t._init;try{return Rg(t(e))}catch{}}return null}function xN(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rg(e);case 8:return e===Cv?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function cs(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function KS(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function TN(t){var e=KS(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gc(t){t._valueTracker||(t._valueTracker=TN(t))}function qS(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=KS(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Jd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function bg(t,e){var n=e.checked;return ct({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function P_(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=cs(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function GS(t,e){e=e.checked,e!=null&&Iv(t,"checked",e,!1)}function Pg(t,e){GS(t,e);var n=cs(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ag(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ag(t,e.type,cs(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function A_(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ag(t,e,n){(e!=="number"||Jd(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ol=Array.isArray;function la(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Qc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Eu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gl={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},SN=["Webkit","ms","Moz","O"];Object.keys(Gl).forEach(function(t){SN.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Gl[e]=Gl[t]})});function JS(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Gl.hasOwnProperty(t)&&Gl[t]?(""+e).trim():e+"px"}function ZS(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=JS(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var IN=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dg(t,e){if(e){if(IN[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error($(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error($(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error($(61))}if(e.style!=null&&typeof e.style!="object")throw Error($(62))}}function Mg(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Og=null;function Pv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Lg=null,ua=null,ca=null;function D_(t){if(t=fc(t)){if(typeof Lg!="function")throw Error($(280));var e=t.stateNode;e&&(e=yf(e),Lg(t.stateNode,t.type,e))}}function eI(t){ua?ca?ca.push(t):ca=[t]:ua=t}function tI(){if(ua){var t=ua,e=ca;if(ca=ua=null,D_(t),e)for(t=0;t>>=0,t===0?32:31-(LN(t)/VN|0)|0}var Yc=64,Xc=4194304;function Ll(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function nh(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ll(a):(s&=o,s!==0&&(r=Ll(s)))}else o=n&~i,o!==0?r=Ll(o):s!==0&&(r=Ll(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function dc(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Tr(e),t[e]=n}function UN(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Yl),B_=" ",z_=!1;function EI(t,e){switch(t){case"keyup":return mD.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xI(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Bo=!1;function yD(t,e){switch(t){case"compositionend":return xI(e);case"keypress":return e.which!==32?null:(z_=!0,B_);case"textInput":return t=e.data,t===B_&&z_?null:t;default:return null}}function vD(t,e){if(Bo)return t==="compositionend"||!Vv&&EI(t,e)?(t=_I(),bd=Mv=qi=null,Bo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=q_(n)}}function CI(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?CI(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function RI(){for(var t=window,e=Jd();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Jd(t.document)}return e}function Fv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function RD(t){var e=RI(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&CI(n.ownerDocument.documentElement,n)){if(r!==null&&Fv(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=G_(n,s);var o=G_(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zo=null,Bg=null,Jl=null,zg=!1;function Q_(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zg||zo==null||zo!==Jd(r)||(r=zo,"selectionStart"in r&&Fv(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}),Jl&&Ru(Jl,r)||(Jl=r,r=sh(Bg,"onSelect"),0Ko||(t.current=Qg[Ko],Qg[Ko]=null,Ko--)}function Ge(t,e){Ko++,Qg[Ko]=t.current,t.current=e}var ds={},gn=Es(ds),Mn=Es(!1),eo=ds;function Ta(t,e){var n=t.type.contextTypes;if(!n)return ds;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function On(t){return t=t.childContextTypes,t!=null}function ah(){Je(Mn),Je(gn)}function nw(t,e,n){if(gn.current!==ds)throw Error($(168));Ge(gn,e),Ge(Mn,n)}function LI(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error($(108,xN(t)||"Unknown",i));return ct({},n,r)}function lh(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ds,eo=gn.current,Ge(gn,t),Ge(Mn,Mn.current),!0}function rw(t,e,n){var r=t.stateNode;if(!r)throw Error($(169));n?(t=LI(t,e,eo),r.__reactInternalMemoizedMergedChildContext=t,Je(Mn),Je(gn),Ge(gn,t)):Je(Mn),Ge(Mn,n)}var ri=null,vf=!1,xm=!1;function VI(t){ri===null?ri=[t]:ri.push(t)}function jD(t){vf=!0,VI(t)}function xs(){if(!xm&&ri!==null){xm=!0;var t=0,e=Ve;try{var n=ri;for(Ve=1;t>=o,i-=o,ii=1<<32-Tr(e)+i|n<C?(k=T,T=null):k=T.sibling;var P=h(w,T,_[C],g);if(P===null){T===null&&(T=k);break}t&&T&&P.alternate===null&&e(w,T),v=s(P,v,C),I===null?S=P:I.sibling=P,I=P,T=k}if(C===_.length)return n(w,T),rt&&Ms(w,C),S;if(T===null){for(;C<_.length;C++)T=d(w,_[C],g),T!==null&&(v=s(T,v,C),I===null?S=T:I.sibling=T,I=T);return rt&&Ms(w,C),S}for(T=r(w,T);C<_.length;C++)k=f(T,w,C,_[C],g),k!==null&&(t&&k.alternate!==null&&T.delete(k.key===null?C:k.key),v=s(k,v,C),I===null?S=k:I.sibling=k,I=k);return t&&T.forEach(function(L){return e(w,L)}),rt&&Ms(w,C),S}function y(w,v,_,g){var S=cl(_);if(typeof S!="function")throw Error($(150));if(_=S.call(_),_==null)throw Error($(151));for(var I=S=null,T=v,C=v=0,k=null,P=_.next();T!==null&&!P.done;C++,P=_.next()){T.index>C?(k=T,T=null):k=T.sibling;var L=h(w,T,P.value,g);if(L===null){T===null&&(T=k);break}t&&T&&L.alternate===null&&e(w,T),v=s(L,v,C),I===null?S=L:I.sibling=L,I=L,T=k}if(P.done)return n(w,T),rt&&Ms(w,C),S;if(T===null){for(;!P.done;C++,P=_.next())P=d(w,P.value,g),P!==null&&(v=s(P,v,C),I===null?S=P:I.sibling=P,I=P);return rt&&Ms(w,C),S}for(T=r(w,T);!P.done;C++,P=_.next())P=f(T,w,C,P.value,g),P!==null&&(t&&P.alternate!==null&&T.delete(P.key===null?C:P.key),v=s(P,v,C),I===null?S=P:I.sibling=P,I=P);return t&&T.forEach(function(B){return e(w,B)}),rt&&Ms(w,C),S}function x(w,v,_,g){if(typeof _=="object"&&_!==null&&_.type===Uo&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case qc:e:{for(var S=_.key,I=v;I!==null;){if(I.key===S){if(S=_.type,S===Uo){if(I.tag===7){n(w,I.sibling),v=i(I,_.props.children),v.return=w,w=v;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Vi&&cw(S)===I.type){n(w,I.sibling),v=i(I,_.props),v.ref=ml(w,I,_),v.return=w,w=v;break e}n(w,I);break}else e(w,I);I=I.sibling}_.type===Uo?(v=Xs(_.props.children,w.mode,g,_.key),v.return=w,w=v):(g=Ld(_.type,_.key,_.props,null,w.mode,g),g.ref=ml(w,v,_),g.return=w,w=g)}return o(w);case $o:e:{for(I=_.key;v!==null;){if(v.key===I)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(w,v.sibling),v=i(v,_.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else e(w,v);v=v.sibling}v=Am(_,w.mode,g),v.return=w,w=v}return o(w);case Vi:return I=_._init,x(w,v,I(_._payload),g)}if(Ol(_))return m(w,v,_,g);if(cl(_))return y(w,v,_,g);id(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(w,v.sibling),v=i(v,_),v.return=w,w=v):(n(w,v),v=Pm(_,w.mode,g),v.return=w,w=v),o(w)):n(w,v)}return x}var Ia=WI(!0),KI=WI(!1),pc={},zr=Es(pc),ku=Es(pc),Nu=Es(pc);function zs(t){if(t===pc)throw Error($(174));return t}function qv(t,e){switch(Ge(Nu,e),Ge(ku,t),Ge(zr,pc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ng(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ng(e,t)}Je(zr),Ge(zr,e)}function Ca(){Je(zr),Je(ku),Je(Nu)}function qI(t){zs(Nu.current);var e=zs(zr.current),n=Ng(e,t.type);e!==n&&(Ge(ku,t),Ge(zr,n))}function Gv(t){ku.current===t&&(Je(zr),Je(ku))}var at=Es(0);function ph(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Tm=[];function Qv(){for(var t=0;tn?n:4,t(!0);var r=Sm.transition;Sm.transition={};try{t(!1),e()}finally{Ve=n,Sm.transition=r}}function uC(){return fr().memoizedState}function zD(t,e,n){var r=ns(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cC(t))dC(e,n);else if(n=UI(t,e,n,r),n!==null){var i=In();Sr(n,t,r,i),hC(n,e,r)}}function HD(t,e,n){var r=ns(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cC(t))dC(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ir(a,o)){var l=e.interleaved;l===null?(i.next=i,Wv(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=UI(t,e,i,r),n!==null&&(i=In(),Sr(n,t,r,i),hC(n,e,r))}}function cC(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function dC(t,e){Zl=mh=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function hC(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,kv(t,n)}}var gh={readContext:hr,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},WD={readContext:hr,useCallback:function(t,e){return Dr().memoizedState=[t,e===void 0?null:e],t},useContext:hr,useEffect:hw,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Nd(4194308,4,iC.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Nd(4,2,t,e)},useMemo:function(t,e){var n=Dr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Dr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=zD.bind(null,ut,t),[r.memoizedState,t]},useRef:function(t){var e=Dr();return t={current:t},e.memoizedState=t},useState:dw,useDebugValue:e0,useDeferredValue:function(t){return Dr().memoizedState=t},useTransition:function(){var t=dw(!1),e=t[0];return t=BD.bind(null,t[1]),Dr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ut,i=Dr();if(rt){if(n===void 0)throw Error($(407));n=n()}else{if(n=e(),Wt===null)throw Error($(349));no&30||YI(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,hw(JI.bind(null,r,s,t),[t]),r.flags|=2048,Ou(9,XI.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Dr(),e=Wt.identifierPrefix;if(rt){var n=si,r=ii;n=(r&~(1<<32-Tr(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Du++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Vr]=e,t[Au]=r,EC(t,e,!1,!1),e.stateNode=t;e:{switch(o=Mg(n,r),n){case"dialog":Ye("cancel",t),Ye("close",t),i=r;break;case"iframe":case"object":case"embed":Ye("load",t),i=r;break;case"video":case"audio":for(i=0;iba&&(e.flags|=128,r=!0,gl(s,!1),e.lanes=4194304)}else{if(!r)if(t=ph(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),gl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!rt)return ln(e),null}else 2*xt()-s.renderingStartTime>ba&&n!==1073741824&&(e.flags|=128,r=!0,gl(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=xt(),e.sibling=null,n=at.current,Ge(at,r?n&1|2:n&1),e):(ln(e),null);case 22:case 23:return o0(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?$n&1073741824&&(ln(e),e.subtreeFlags&6&&(e.flags|=8192)):ln(e),null;case 24:return null;case 25:return null}throw Error($(156,e.tag))}function ZD(t,e){switch($v(e),e.tag){case 1:return On(e.type)&&ah(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ca(),Je(Mn),Je(gn),Qv(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Gv(e),null;case 13:if(Je(at),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error($(340));Sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Je(at),null;case 4:return Ca(),null;case 10:return Hv(e.type._context),null;case 22:case 23:return o0(),null;case 24:return null;default:return null}}var od=!1,hn=!1,e4=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Yo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pt(t,e,r)}else n.current=null}function ay(t,e,n){try{n()}catch(r){pt(t,e,r)}}var Ew=!1;function t4(t,e){if(Hg=rh,t=RI(),Fv(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++u===i&&(a=o),h===s&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wg={focusedElem:t,selectionRange:n},rh=!1,Q=e;Q!==null;)if(e=Q,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Q=t;else for(;Q!==null;){e=Q;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,w=e.stateNode,v=w.getSnapshotBeforeUpdate(e.elementType===e.type?y:yr(e.type,y),x);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(g){pt(e,e.return,g)}if(t=e.sibling,t!==null){t.return=e.return,Q=t;break}Q=e.return}return m=Ew,Ew=!1,m}function eu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&ay(e,n,s)}i=i.next}while(i!==r)}}function Ef(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ly(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function SC(t){var e=t.alternate;e!==null&&(t.alternate=null,SC(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Vr],delete e[Au],delete e[Gg],delete e[VD],delete e[FD])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function IC(t){return t.tag===5||t.tag===3||t.tag===4}function xw(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||IC(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function uy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=oh));else if(r!==4&&(t=t.child,t!==null))for(uy(t,e,n),t=t.sibling;t!==null;)uy(t,e,n),t=t.sibling}function cy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(cy(t,e,n),t=t.sibling;t!==null;)cy(t,e,n),t=t.sibling}var Xt=null,vr=!1;function ki(t,e,n){for(n=n.child;n!==null;)CC(t,e,n),n=n.sibling}function CC(t,e,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(ff,n)}catch{}switch(n.tag){case 5:hn||Yo(n,e);case 6:var r=Xt,i=vr;Xt=null,ki(t,e,n),Xt=r,vr=i,Xt!==null&&(vr?(t=Xt,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Xt.removeChild(n.stateNode));break;case 18:Xt!==null&&(vr?(t=Xt,n=n.stateNode,t.nodeType===8?Em(t.parentNode,n):t.nodeType===1&&Em(t,n),Iu(t)):Em(Xt,n.stateNode));break;case 4:r=Xt,i=vr,Xt=n.stateNode.containerInfo,vr=!0,ki(t,e,n),Xt=r,vr=i;break;case 0:case 11:case 14:case 15:if(!hn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ay(n,e,o),i=i.next}while(i!==r)}ki(t,e,n);break;case 1:if(!hn&&(Yo(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pt(n,e,a)}ki(t,e,n);break;case 21:ki(t,e,n);break;case 22:n.mode&1?(hn=(r=hn)||n.memoizedState!==null,ki(t,e,n),hn=r):ki(t,e,n);break;default:ki(t,e,n)}}function Tw(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new e4),e.forEach(function(r){var i=c4.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gr(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r4(r/1960))-r,10t?16:t,qi===null)var r=!1;else{if(t=qi,qi=null,_h=0,Ae&6)throw Error($(331));var i=Ae;for(Ae|=4,Q=t.current;Q!==null;){var s=Q,o=s.child;if(Q.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lxt()-i0?Ys(t,0):r0|=n),Ln(t,e)}function MC(t,e){e===0&&(t.mode&1?(e=Xc,Xc<<=1,!(Xc&130023424)&&(Xc=4194304)):e=1);var n=In();t=vi(t,e),t!==null&&(dc(t,e,n),Ln(t,n))}function u4(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),MC(t,n)}function c4(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(e),MC(t,n)}var OC;OC=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Mn.current)Dn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Dn=!1,XD(t,e,n);Dn=!!(t.flags&131072)}else Dn=!1,rt&&e.flags&1048576&&FI(e,ch,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Dd(t,e),t=e.pendingProps;var i=Ta(e,gn.current);ha(e,n),i=Xv(null,e,r,t,i,n);var s=Jv();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,On(r)?(s=!0,lh(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Kv(e),i.updater=_f,e.stateNode=i,i._reactInternals=e,ey(e,r,t,n),e=ry(null,e,r,!0,s,n)):(e.tag=0,rt&&s&&jv(e),Tn(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Dd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=h4(r),t=yr(r,t),i){case 0:e=ny(null,e,r,t,n);break e;case 1:e=vw(null,e,r,t,n);break e;case 11:e=gw(null,e,r,t,n);break e;case 14:e=yw(null,e,r,yr(r.type,t),n);break e}throw Error($(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),ny(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),vw(t,e,r,i,n);case 3:e:{if(vC(e),t===null)throw Error($(387));r=e.pendingProps,s=e.memoizedState,i=s.element,BI(t,e),fh(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Ra(Error($(423)),e),e=_w(t,e,r,n,i);break e}else if(r!==i){i=Ra(Error($(424)),e),e=_w(t,e,r,n,i);break e}else for(zn=Ji(e.stateNode.containerInfo.firstChild),Hn=e,rt=!0,wr=null,n=KI(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sa(),r===i){e=_i(t,e,n);break e}Tn(t,e,r,n)}e=e.child}return e;case 5:return qI(e),t===null&&Xg(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Kg(r,i)?o=null:s!==null&&Kg(r,s)&&(e.flags|=32),yC(t,e),Tn(t,e,o,n),e.child;case 6:return t===null&&Xg(e),null;case 13:return _C(t,e,n);case 4:return qv(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Ia(e,null,r,n):Tn(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),gw(t,e,r,i,n);case 7:return Tn(t,e,e.pendingProps,n),e.child;case 8:return Tn(t,e,e.pendingProps.children,n),e.child;case 12:return Tn(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,Ge(dh,r._currentValue),r._currentValue=o,s!==null)if(Ir(s.value,o)){if(s.children===i.children&&!Mn.current){e=_i(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=ci(-1,n&-n),l.tag=2;var u=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Jg(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error($(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Jg(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Tn(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,ha(e,n),i=hr(i),r=r(i),e.flags|=1,Tn(t,e,r,n),e.child;case 14:return r=e.type,i=yr(r,e.pendingProps),i=yr(r.type,i),yw(t,e,r,i,n);case 15:return mC(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),Dd(t,e),e.tag=1,On(r)?(t=!0,lh(e)):t=!1,ha(e,n),HI(e,r,i),ey(e,r,i,n),ry(null,e,r,!0,t,n);case 19:return wC(t,e,n);case 22:return gC(t,e,n)}throw Error($(156,e.tag))};function LC(t,e){return lI(t,e)}function d4(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 ur(t,e,n,r){return new d4(t,e,n,r)}function l0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function h4(t){if(typeof t=="function")return l0(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rv)return 11;if(t===bv)return 14}return 2}function ns(t,e){var n=t.alternate;return n===null?(n=ur(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ld(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")l0(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Uo:return Xs(n.children,i,s,e);case Cv:o=8,i|=8;break;case Sg:return t=ur(12,n,e,i|2),t.elementType=Sg,t.lanes=s,t;case Ig:return t=ur(13,n,e,i),t.elementType=Ig,t.lanes=s,t;case Cg:return t=ur(19,n,e,i),t.elementType=Cg,t.lanes=s,t;case WS:return Tf(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case zS:o=10;break e;case HS:o=9;break e;case Rv:o=11;break e;case bv:o=14;break e;case Li:o=16,r=null;break e}throw Error($(130,t==null?t:typeof t,""))}return e=ur(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Xs(t,e,n,r){return t=ur(7,t,r,e),t.lanes=n,t}function Tf(t,e,n,r){return t=ur(22,t,r,e),t.elementType=WS,t.lanes=n,t.stateNode={isHidden:!1},t}function Pm(t,e,n){return t=ur(6,t,null,e),t.lanes=n,t}function Am(t,e,n){return e=ur(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function f4(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cm(0),this.expirationTimes=cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cm(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function u0(t,e,n,r,i,s,o,a,l){return t=new f4(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=ur(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kv(s),t}function p4(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($C)}catch(t){console.error(t)}}$C(),FS.exports=Xn;var mc=FS.exports;const Fl=RS(mc),_4=CS({__proto__:null,default:Fl},[mc]);var kw=mc;xg.createRoot=kw.createRoot,xg.hydrateRoot=kw.hydrateRoot;/** +`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Rm(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function ty(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var GD=typeof WeakMap=="function"?WeakMap:Map;function fC(t,e,n){n=ci(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){vh||(vh=!0,dy=r),ty(t,e)},n}function pC(t,e,n){n=ci(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){ty(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ty(t,e),typeof r!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function fw(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new GD;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=l4.bind(null,t,e,n),e.then(t,t))}function pw(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function mw(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=ci(-1,1),e.tag=2,es(n,e,1))),n.lanes|=1),t)}var QD=Ci.ReactCurrentOwner,Dn=!1;function Tn(t,e,n,r){e.child=t===null?KI(e,null,n,r):Ia(e,t.child,n,r)}function gw(t,e,n,r,i){n=n.render;var s=e.ref;return ha(e,i),r=Xv(t,e,n,r,s,i),n=Jv(),t!==null&&!Dn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,_i(t,e,i)):(rt&&n&&jv(e),e.flags|=1,Tn(t,e,r,i),e.child)}function yw(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!l0(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,mC(t,e,s,r,i)):(t=Ld(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ru,n(o,r)&&t.ref===e.ref)return _i(t,e,i)}return e.flags|=1,t=rs(s,r),t.ref=e.ref,t.return=e,e.child=t}function mC(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(Ru(s,r)&&t.ref===e.ref)if(Dn=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(Dn=!0);else return e.lanes=t.lanes,_i(t,e,i)}return ny(t,e,n,r,i)}function gC(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(Xo,$n),$n|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ge(Xo,$n),$n|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Ge(Xo,$n),$n|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,Ge(Xo,$n),$n|=r;return Tn(t,e,i,n),e.child}function yC(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function ny(t,e,n,r,i){var s=On(n)?eo:gn.current;return s=Ta(e,s),ha(e,i),n=Xv(t,e,n,r,s,i),r=Jv(),t!==null&&!Dn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,_i(t,e,i)):(rt&&r&&jv(e),e.flags|=1,Tn(t,e,n,i),e.child)}function vw(t,e,n,r,i){if(On(n)){var s=!0;lh(e)}else s=!1;if(ha(e,i),e.stateNode===null)Dd(t,e),HI(e,n,r),ey(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=hr(u):(u=On(n)?eo:gn.current,u=Ta(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&uw(e,o,r,u),Fi=!1;var h=e.memoizedState;o.state=h,fh(e,r,o,i),l=e.memoizedState,a!==r||h!==l||Mn.current||Fi?(typeof c=="function"&&(Zg(e,n,c,r),l=e.memoizedState),(a=Fi||lw(e,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,BI(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:yr(e.type,a),o.props=u,d=e.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=hr(l):(l=On(n)?eo:gn.current,l=Ta(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&uw(e,o,r,l),Fi=!1,h=e.memoizedState,o.state=h,fh(e,r,o,i);var m=e.memoizedState;a!==d||h!==m||Mn.current||Fi?(typeof f=="function"&&(Zg(e,n,f,r),m=e.memoizedState),(u=Fi||lw(e,n,u,r,h,m,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return ry(t,e,n,r,s,i)}function ry(t,e,n,r,i,s){yC(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&rw(e,n,!1),_i(t,e,s);r=e.stateNode,QD.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=Ia(e,t.child,null,s),e.child=Ia(e,null,a,s)):Tn(t,e,a,s),e.memoizedState=r.state,i&&rw(e,n,!0),e.child}function vC(t){var e=t.stateNode;e.pendingContext?nw(t,e.pendingContext,e.pendingContext!==e.context):e.context&&nw(t,e.context,!1),qv(t,e.containerInfo)}function _w(t,e,n,r,i){return Sa(),Uv(i),e.flags|=256,Tn(t,e,n,r),e.child}var iy={dehydrated:null,treeContext:null,retryLane:0};function sy(t){return{baseLanes:t,cachePool:null,transitions:null}}function _C(t,e,n){var r=e.pendingProps,i=at.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Ge(at,i&1),t===null)return Xg(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Tf(o,r,0,null),t=Xs(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=sy(n),e.memoizedState=iy,t):t0(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return YD(t,e,o,r,a,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=rs(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=rs(a,s):(s=Xs(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?sy(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=iy,r}return s=t.child,t=s.sibling,r=rs(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function t0(t,e){return e=Tf({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function sd(t,e,n,r){return r!==null&&Uv(r),Ia(e,t.child,null,n),t=t0(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function YD(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=Rm(Error($(422))),sd(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Tf({mode:"visible",children:r.children},i,0,null),s=Xs(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&Ia(e,t.child,null,o),e.child.memoizedState=sy(o),e.memoizedState=iy,s);if(!(e.mode&1))return sd(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error($(419)),r=Rm(s,r,void 0),sd(t,e,o,r)}if(a=(o&t.childLanes)!==0,Dn||a){if(r=Wt,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,vi(t,i),Sr(r,t,i,-1))}return a0(),r=Rm(Error($(421))),sd(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=u4.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,zn=Zi(i.nextSibling),Hn=e,rt=!0,wr=null,t!==null&&(sr[or++]=ii,sr[or++]=si,sr[or++]=to,ii=t.id,si=t.overflow,to=e),e=t0(e,r.children),e.flags|=4096,e)}function ww(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Jg(t.return,e,n)}function bm(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function wC(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(Tn(t,e,r.children,n),r=at.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ww(t,n,e);else if(t.tag===19)ww(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ge(at,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&ph(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),bm(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&ph(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}bm(e,!0,n,null,s);break;case"together":bm(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Dd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function _i(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ro|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error($(153));if(e.child!==null){for(t=e.child,n=rs(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=rs(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function XD(t,e,n){switch(e.tag){case 3:vC(e),Sa();break;case 5:qI(e);break;case 1:On(e.type)&&lh(e);break;case 4:qv(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Ge(dh,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ge(at,at.current&1),e.flags|=128,null):n&e.child.childLanes?_C(t,e,n):(Ge(at,at.current&1),t=_i(t,e,n),t!==null?t.sibling:null);Ge(at,at.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return wC(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ge(at,at.current),r)break;return null;case 22:case 23:return e.lanes=0,gC(t,e,n)}return _i(t,e,n)}var EC,oy,xC,TC;EC=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};oy=function(){};xC=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,zs(zr.current);var s=null;switch(n){case"input":i=bg(t,i),r=bg(t,r),s=[];break;case"select":i=ct({},i,{value:void 0}),r=ct({},r,{value:void 0}),s=[];break;case"textarea":i=kg(t,i),r=kg(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=oh)}Dg(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wu.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wu.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ye("scroll",t),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};TC=function(t,e,n,r){n!==r&&(e.flags|=4)};function gl(t,e){if(!rt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ln(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function JD(t,e,n){var r=e.pendingProps;switch($v(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ln(e),null;case 1:return On(e.type)&&ah(),ln(e),null;case 3:return r=e.stateNode,Ca(),Je(Mn),Je(gn),Qv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(rd(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,wr!==null&&(py(wr),wr=null))),oy(t,e),ln(e),null;case 5:Gv(e);var i=zs(Nu.current);if(n=e.type,t!==null&&e.stateNode!=null)xC(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error($(166));return ln(e),null}if(t=zs(zr.current),rd(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Vr]=e,r[Au]=s,t=(e.mode&1)!==0,n){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Vr]=e,t[Au]=r,EC(t,e,!1,!1),e.stateNode=t;e:{switch(o=Mg(n,r),n){case"dialog":Ye("cancel",t),Ye("close",t),i=r;break;case"iframe":case"object":case"embed":Ye("load",t),i=r;break;case"video":case"audio":for(i=0;iba&&(e.flags|=128,r=!0,gl(s,!1),e.lanes=4194304)}else{if(!r)if(t=ph(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),gl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!rt)return ln(e),null}else 2*xt()-s.renderingStartTime>ba&&n!==1073741824&&(e.flags|=128,r=!0,gl(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=xt(),e.sibling=null,n=at.current,Ge(at,r?n&1|2:n&1),e):(ln(e),null);case 22:case 23:return o0(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?$n&1073741824&&(ln(e),e.subtreeFlags&6&&(e.flags|=8192)):ln(e),null;case 24:return null;case 25:return null}throw Error($(156,e.tag))}function ZD(t,e){switch($v(e),e.tag){case 1:return On(e.type)&&ah(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ca(),Je(Mn),Je(gn),Qv(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Gv(e),null;case 13:if(Je(at),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error($(340));Sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Je(at),null;case 4:return Ca(),null;case 10:return Hv(e.type._context),null;case 22:case 23:return o0(),null;case 24:return null;default:return null}}var od=!1,hn=!1,e4=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Yo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pt(t,e,r)}else n.current=null}function ay(t,e,n){try{n()}catch(r){pt(t,e,r)}}var Ew=!1;function t4(t,e){if(Hg=rh,t=RI(),Fv(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++u===i&&(a=o),h===s&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wg={focusedElem:t,selectionRange:n},rh=!1,Q=e;Q!==null;)if(e=Q,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Q=t;else for(;Q!==null;){e=Q;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,w=e.stateNode,v=w.getSnapshotBeforeUpdate(e.elementType===e.type?y:yr(e.type,y),x);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(g){pt(e,e.return,g)}if(t=e.sibling,t!==null){t.return=e.return,Q=t;break}Q=e.return}return m=Ew,Ew=!1,m}function eu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&ay(e,n,s)}i=i.next}while(i!==r)}}function Ef(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ly(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function SC(t){var e=t.alternate;e!==null&&(t.alternate=null,SC(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Vr],delete e[Au],delete e[Gg],delete e[VD],delete e[FD])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function IC(t){return t.tag===5||t.tag===3||t.tag===4}function xw(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||IC(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function uy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=oh));else if(r!==4&&(t=t.child,t!==null))for(uy(t,e,n),t=t.sibling;t!==null;)uy(t,e,n),t=t.sibling}function cy(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(cy(t,e,n),t=t.sibling;t!==null;)cy(t,e,n),t=t.sibling}var Xt=null,vr=!1;function Ni(t,e,n){for(n=n.child;n!==null;)CC(t,e,n),n=n.sibling}function CC(t,e,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(ff,n)}catch{}switch(n.tag){case 5:hn||Yo(n,e);case 6:var r=Xt,i=vr;Xt=null,Ni(t,e,n),Xt=r,vr=i,Xt!==null&&(vr?(t=Xt,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Xt.removeChild(n.stateNode));break;case 18:Xt!==null&&(vr?(t=Xt,n=n.stateNode,t.nodeType===8?Em(t.parentNode,n):t.nodeType===1&&Em(t,n),Iu(t)):Em(Xt,n.stateNode));break;case 4:r=Xt,i=vr,Xt=n.stateNode.containerInfo,vr=!0,Ni(t,e,n),Xt=r,vr=i;break;case 0:case 11:case 14:case 15:if(!hn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ay(n,e,o),i=i.next}while(i!==r)}Ni(t,e,n);break;case 1:if(!hn&&(Yo(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pt(n,e,a)}Ni(t,e,n);break;case 21:Ni(t,e,n);break;case 22:n.mode&1?(hn=(r=hn)||n.memoizedState!==null,Ni(t,e,n),hn=r):Ni(t,e,n);break;default:Ni(t,e,n)}}function Tw(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new e4),e.forEach(function(r){var i=c4.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gr(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r4(r/1960))-r,10t?16:t,Gi===null)var r=!1;else{if(t=Gi,Gi=null,_h=0,Ae&6)throw Error($(331));var i=Ae;for(Ae|=4,Q=t.current;Q!==null;){var s=Q,o=s.child;if(Q.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lxt()-i0?Ys(t,0):r0|=n),Ln(t,e)}function MC(t,e){e===0&&(t.mode&1?(e=Xc,Xc<<=1,!(Xc&130023424)&&(Xc=4194304)):e=1);var n=In();t=vi(t,e),t!==null&&(dc(t,e,n),Ln(t,n))}function u4(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),MC(t,n)}function c4(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(e),MC(t,n)}var OC;OC=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Mn.current)Dn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Dn=!1,XD(t,e,n);Dn=!!(t.flags&131072)}else Dn=!1,rt&&e.flags&1048576&&FI(e,ch,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Dd(t,e),t=e.pendingProps;var i=Ta(e,gn.current);ha(e,n),i=Xv(null,e,r,t,i,n);var s=Jv();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,On(r)?(s=!0,lh(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Kv(e),i.updater=_f,e.stateNode=i,i._reactInternals=e,ey(e,r,t,n),e=ry(null,e,r,!0,s,n)):(e.tag=0,rt&&s&&jv(e),Tn(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Dd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=h4(r),t=yr(r,t),i){case 0:e=ny(null,e,r,t,n);break e;case 1:e=vw(null,e,r,t,n);break e;case 11:e=gw(null,e,r,t,n);break e;case 14:e=yw(null,e,r,yr(r.type,t),n);break e}throw Error($(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),ny(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),vw(t,e,r,i,n);case 3:e:{if(vC(e),t===null)throw Error($(387));r=e.pendingProps,s=e.memoizedState,i=s.element,BI(t,e),fh(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Ra(Error($(423)),e),e=_w(t,e,r,n,i);break e}else if(r!==i){i=Ra(Error($(424)),e),e=_w(t,e,r,n,i);break e}else for(zn=Zi(e.stateNode.containerInfo.firstChild),Hn=e,rt=!0,wr=null,n=KI(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sa(),r===i){e=_i(t,e,n);break e}Tn(t,e,r,n)}e=e.child}return e;case 5:return qI(e),t===null&&Xg(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Kg(r,i)?o=null:s!==null&&Kg(r,s)&&(e.flags|=32),yC(t,e),Tn(t,e,o,n),e.child;case 6:return t===null&&Xg(e),null;case 13:return _C(t,e,n);case 4:return qv(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Ia(e,null,r,n):Tn(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),gw(t,e,r,i,n);case 7:return Tn(t,e,e.pendingProps,n),e.child;case 8:return Tn(t,e,e.pendingProps.children,n),e.child;case 12:return Tn(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,Ge(dh,r._currentValue),r._currentValue=o,s!==null)if(Ir(s.value,o)){if(s.children===i.children&&!Mn.current){e=_i(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=ci(-1,n&-n),l.tag=2;var u=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Jg(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error($(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Jg(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Tn(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,ha(e,n),i=hr(i),r=r(i),e.flags|=1,Tn(t,e,r,n),e.child;case 14:return r=e.type,i=yr(r,e.pendingProps),i=yr(r.type,i),yw(t,e,r,i,n);case 15:return mC(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:yr(r,i),Dd(t,e),e.tag=1,On(r)?(t=!0,lh(e)):t=!1,ha(e,n),HI(e,r,i),ey(e,r,i,n),ry(null,e,r,!0,t,n);case 19:return wC(t,e,n);case 22:return gC(t,e,n)}throw Error($(156,e.tag))};function LC(t,e){return lI(t,e)}function d4(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 ur(t,e,n,r){return new d4(t,e,n,r)}function l0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function h4(t){if(typeof t=="function")return l0(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Rv)return 11;if(t===bv)return 14}return 2}function rs(t,e){var n=t.alternate;return n===null?(n=ur(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ld(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")l0(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Uo:return Xs(n.children,i,s,e);case Cv:o=8,i|=8;break;case Sg:return t=ur(12,n,e,i|2),t.elementType=Sg,t.lanes=s,t;case Ig:return t=ur(13,n,e,i),t.elementType=Ig,t.lanes=s,t;case Cg:return t=ur(19,n,e,i),t.elementType=Cg,t.lanes=s,t;case WS:return Tf(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case zS:o=10;break e;case HS:o=9;break e;case Rv:o=11;break e;case bv:o=14;break e;case Vi:o=16,r=null;break e}throw Error($(130,t==null?t:typeof t,""))}return e=ur(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Xs(t,e,n,r){return t=ur(7,t,r,e),t.lanes=n,t}function Tf(t,e,n,r){return t=ur(22,t,r,e),t.elementType=WS,t.lanes=n,t.stateNode={isHidden:!1},t}function Pm(t,e,n){return t=ur(6,t,null,e),t.lanes=n,t}function Am(t,e,n){return e=ur(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function f4(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cm(0),this.expirationTimes=cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cm(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function u0(t,e,n,r,i,s,o,a,l){return t=new f4(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=ur(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kv(s),t}function p4(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($C)}catch(t){console.error(t)}}$C(),FS.exports=Xn;var mc=FS.exports;const Fl=RS(mc),_4=CS({__proto__:null,default:Fl},[mc]);var kw=mc;xg.createRoot=kw.createRoot,xg.hydrateRoot=kw.hydrateRoot;/** * @remix-run/router v1.13.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mt(){return mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function so(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function E4(){return Math.random().toString(36).substr(2,8)}function Dw(t,e){return{usr:t.state,key:t.key,idx:e}}function Vu(t,e,n,r){return n===void 0&&(n=null),mt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ri(e):e,{state:n,key:e&&e.key||r||E4()})}function oo(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ri(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function x4(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=wt.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(mt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=wt.Pop;let x=c(),w=x==null?null:x-u;u=x,l&&l({action:a,location:y.location,delta:w})}function h(x,w){a=wt.Push;let v=Vu(y.location,x,w);n&&n(v,x),u=c()+1;let _=Dw(v,u),g=y.createHref(v);try{o.pushState(_,"",g)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(g)}s&&l&&l({action:a,location:y.location,delta:1})}function f(x,w){a=wt.Replace;let v=Vu(y.location,x,w);n&&n(v,x),u=c();let _=Dw(v,u),g=y.createHref(v);o.replaceState(_,"",g),s&&l&&l({action:a,location:y.location,delta:0})}function m(x){let w=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof x=="string"?x:oo(x);return ye(w,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,w)}let y={get action(){return a},get location(){return t(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Nw,d),l=x,()=>{i.removeEventListener(Nw,d),l=null}},createHref(x){return e(i,x)},createURL:m,encodeLocation(x){let w=m(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:f,go(x){return o.go(x)}};return y}var Et;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Et||(Et={}));const T4=new Set(["lazy","caseSensitive","path","id","index","children"]);function S4(t){return t.index===!0}function my(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,s)=>{let o=[...n,s],a=typeof i.id=="string"?i.id:o.join("-");if(ye(i.index!==!0||!i.children,"Cannot specify children on an index route"),ye(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),S4(i)){let l=mt({},i,e(i),{id:a});return r[a]=l,l}else{let l=mt({},i,e(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=my(i.children,e,o,r)),l}})}function Jo(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Ri(e):e,i=Ga(r.pathname||"/",n);if(i==null)return null;let s=UC(t);C4(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(ye(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=di([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(ye(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),UC(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:D4(u,s.index),routesMeta:c})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of BC(s.path))i(s,o,l)}),e}function BC(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=BC(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function C4(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:M4(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const R4=/^:\w+$/,b4=3,P4=2,A4=1,k4=10,N4=-2,Mw=t=>t==="*";function D4(t,e){let n=t.split("/"),r=n.length;return n.some(Mw)&&(r+=N4),e&&(r+=P4),n.filter(i=>!Mw(i)).reduce((i,s)=>i+(R4.test(s)?b4:s===""?A4:k4),r)}function M4(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function O4(t,e){let{routesMeta:n}=t,r={},i="/",s=[];for(let o=0;o{let{paramName:h,isOptional:f}=c;if(h==="*"){let y=a[d]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return f&&!m?u[h]=void 0:u[h]=j4(m||"",h),u},{}),pathname:s,pathnameBase:o,pattern:t}}function V4(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),so(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function F4(t){try{return decodeURI(t)}catch(e){return so(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function j4(t,e){try{return decodeURIComponent(t)}catch(n){return so(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function Ga(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function $4(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Ri(t):t;return{pathname:n?n.startsWith("/")?n:U4(n,e):e,search:z4(r),hash:H4(i)}}function U4(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function km(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 zC(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function f0(t){return zC(t).map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function p0(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Ri(t):(i=mt({},t),ye(!i.pathname||!i.pathname.includes("?"),km("?","pathname","search",i)),ye(!i.pathname||!i.pathname.includes("#"),km("#","pathname","hash",i)),ye(!i.search||!i.search.includes("#"),km("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d.pop();i.pathname=h.join("/")}a="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=$4(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const di=t=>t.join("/").replace(/\/\/+/g,"/"),B4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),z4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,H4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class m0{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const WC=["post","put","patch","delete"],W4=new Set(WC),K4=["get",...WC],q4=new Set(K4),G4=new Set([301,302,303,307,308]),Q4=new Set([307,308]),Nm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},KC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X4=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),qC="remix-router-transitions";function J4(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;ye(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let b=t.detectErrorBoundary;i=A=>({hasErrorBoundary:b(A)})}else i=X4;let s={},o=my(t.routes,i,void 0,s),a,l=t.basename||"/",u=mt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),c=null,d=new Set,h=null,f=null,m=null,y=t.hydrationData!=null,x=Jo(o,t.history.location,l),w=null;if(x==null){let b=rr(404,{pathname:t.history.location.pathname}),{matches:A,route:M}=Bw(o);x=A,w={[M.id]:b}}let v=!x.some(b=>b.route.lazy)&&(!x.some(b=>b.route.loader)||t.hydrationData!=null),_,g={historyAction:t.history.action,location:t.history.location,matches:x,initialized:v,navigation:Nm,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||w,fetchers:new Map,blockers:new Map},S=wt.Pop,I=!1,T,C=!1,k=new Map,P=null,L=!1,B=!1,U=[],O=[],D=new Map,z=0,q=-1,N=new Map,j=new Set,H=new Map,G=new Map,J=new Set,we=new Map,te=new Map,Ie=!1;function ge(){if(c=t.history.listen(b=>{let{action:A,location:M,delta:W}=b;if(Ie){Ie=!1;return}so(te.size===0||W!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Ue({currentLocation:g.location,nextLocation:M,historyAction:A});if(X&&W!=null){Ie=!0,t.history.go(W*-1),ne(X,{state:"blocked",location:M,proceed(){ne(X,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),t.history.go(W)},reset(){let Ee=new Map(g.blockers);Ee.set(X,vl),_e({blockers:Ee})}});return}return ae(A,M)}),n){uM(e,k);let b=()=>cM(e,k);e.addEventListener("pagehide",b),P=()=>e.removeEventListener("pagehide",b)}return g.initialized||ae(wt.Pop,g.location),_}function tt(){c&&c(),P&&P(),d.clear(),T&&T.abort(),g.fetchers.forEach((b,A)=>wn(A)),g.blockers.forEach((b,A)=>Pi(A))}function Ot(b){return d.add(b),()=>d.delete(b)}function _e(b,A){A===void 0&&(A={}),g=mt({},g,b);let M=[],W=[];u.v7_fetcherPersist&&g.fetchers.forEach((X,Ee)=>{X.state==="idle"&&(J.has(Ee)?W.push(Ee):M.push(Ee))}),[...d].forEach(X=>X(g,{deletedFetchers:W,unstable_viewTransitionOpts:A.viewTransitionOpts,unstable_flushSync:A.flushSync===!0})),u.v7_fetcherPersist&&(M.forEach(X=>g.fetchers.delete(X)),W.forEach(X=>wn(X)))}function Qe(b,A,M){var W,X;let{flushSync:Ee}=M===void 0?{}:M,le=g.actionData!=null&&g.navigation.formMethod!=null&&_r(g.navigation.formMethod)&&g.navigation.state==="loading"&&((W=b.state)==null?void 0:W._isRedirect)!==!0,oe;A.actionData?Object.keys(A.actionData).length>0?oe=A.actionData:oe=null:le?oe=g.actionData:oe=null;let Z=A.loaderData?Uw(g.loaderData,A.loaderData,A.matches||[],A.errors):g.loaderData,Re=g.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((Ke,ot)=>Re.set(ot,vl)));let Yt=I===!0||g.navigation.formMethod!=null&&_r(g.navigation.formMethod)&&((X=b.state)==null?void 0:X._isRedirect)!==!0;a&&(o=a,a=void 0),L||S===wt.Pop||(S===wt.Push?t.history.push(b,b.state):S===wt.Replace&&t.history.replace(b,b.state));let xe;if(S===wt.Pop){let Ke=k.get(g.location.pathname);Ke&&Ke.has(b.pathname)?xe={currentLocation:g.location,nextLocation:b}:k.has(b.pathname)&&(xe={currentLocation:b,nextLocation:g.location})}else if(C){let Ke=k.get(g.location.pathname);Ke?Ke.add(b.pathname):(Ke=new Set([b.pathname]),k.set(g.location.pathname,Ke)),xe={currentLocation:g.location,nextLocation:b}}_e(mt({},A,{actionData:oe,loaderData:Z,historyAction:S,location:b,initialized:!0,navigation:Nm,revalidation:"idle",restoreScrollPosition:E_(b,A.matches||g.matches),preventScrollReset:Yt,blockers:Re}),{viewTransitionOpts:xe,flushSync:Ee===!0}),S=wt.Pop,I=!1,C=!1,L=!1,B=!1,U=[],O=[]}async function me(b,A){if(typeof b=="number"){t.history.go(b);return}let M=gy(g.location,g.matches,l,u.v7_prependBasename,b,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:W,submission:X,error:Ee}=Ow(u.v7_normalizeFormMethod,!1,M,A),le=g.location,oe=Vu(g.location,W,A&&A.state);oe=mt({},oe,t.history.encodeLocation(oe));let Z=A&&A.replace!=null?A.replace:void 0,Re=wt.Push;Z===!0?Re=wt.Replace:Z===!1||X!=null&&_r(X.formMethod)&&X.formAction===g.location.pathname+g.location.search&&(Re=wt.Replace);let Yt=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,xe=(A&&A.unstable_flushSync)===!0,Ke=Ue({currentLocation:le,nextLocation:oe,historyAction:Re});if(Ke){ne(Ke,{state:"blocked",location:oe,proceed(){ne(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),me(b,A)},reset(){let ot=new Map(g.blockers);ot.set(Ke,vl),_e({blockers:ot})}});return}return await ae(Re,oe,{submission:X,pendingError:Ee,preventScrollReset:Yt,replace:A&&A.replace,enableViewTransition:A&&A.unstable_viewTransition,flushSync:xe})}function $e(){if(ze(),_e({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){ae(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}ae(S||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function ae(b,A,M){T&&T.abort(),T=null,S=b,L=(M&&M.startUninterruptedRevalidation)===!0,K2(g.location,g.matches),I=(M&&M.preventScrollReset)===!0,C=(M&&M.enableViewTransition)===!0;let W=a||o,X=M&&M.overrideNavigation,Ee=Jo(W,A,l),le=(M&&M.flushSync)===!0;if(!Ee){let ot=rr(404,{pathname:A.pathname}),{matches:En,route:kr}=Bw(W);_t(),Qe(A,{matches:En,loaderData:{},errors:{[kr.id]:ot}},{flushSync:le});return}if(g.initialized&&!B&&rM(g.location,A)&&!(M&&M.submission&&_r(M.submission.formMethod))){Qe(A,{matches:Ee},{flushSync:le});return}T=new AbortController;let oe=wl(t.history,A,T.signal,M&&M.submission),Z,Re;if(M&&M.pendingError)Re={[ru(Ee).route.id]:M.pendingError};else if(M&&M.submission&&_r(M.submission.formMethod)){let ot=await Me(oe,A,M.submission,Ee,{replace:M.replace,flushSync:le});if(ot.shortCircuited)return;Z=ot.pendingActionData,Re=ot.pendingActionError,X=Dm(A,M.submission),le=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Yt,loaderData:xe,errors:Ke}=await We(oe,A,Ee,X,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,le,Z,Re);Yt||(T=null,Qe(A,mt({matches:Ee},Z?{actionData:Z}:{},{loaderData:xe,errors:Ke})))}async function Me(b,A,M,W,X){X===void 0&&(X={}),ze();let Ee=aM(A,M);_e({navigation:Ee},{flushSync:X.flushSync===!0});let le,oe=vy(W,A);if(!oe.route.action&&!oe.route.lazy)le={type:Et.error,error:rr(405,{method:b.method,pathname:A.pathname,routeId:oe.route.id})};else if(le=await _l("action",b,oe,W,s,i,l),b.signal.aborted)return{shortCircuited:!0};if(pa(le)){let Z;return X&&X.replace!=null?Z=X.replace:Z=le.location===g.location.pathname+g.location.search,await Qt(g,le,{submission:M,replace:Z}),{shortCircuited:!0}}if(iu(le)){let Z=ru(W,oe.route.id);return(X&&X.replace)!==!0&&(S=wt.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:le.error}}}if(Hs(le))throw rr(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:le.data}}}async function We(b,A,M,W,X,Ee,le,oe,Z,Re){let Yt=W||Dm(A,X),xe=X||Ee||Ww(Yt),Ke=a||o,[ot,En]=Lw(t.history,g,M,xe,A,B,U,O,J,H,j,Ke,l,Z,Re);if(_t(qe=>!(M&&M.some(tr=>tr.route.id===qe))||ot&&ot.some(tr=>tr.route.id===qe)),q=++z,ot.length===0&&En.length===0){let qe=ie();return Qe(A,mt({matches:M,loaderData:{},errors:Re||null},Z?{actionData:Z}:{},qe?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe}),{shortCircuited:!0}}if(!L){En.forEach(tr=>{let It=g.fetchers.get(tr.key),ks=El(void 0,It?It.data:void 0);g.fetchers.set(tr.key,ks)});let qe=Z||g.actionData;_e(mt({navigation:Yt},qe?Object.keys(qe).length===0?{actionData:null}:{actionData:qe}:{},En.length>0?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe})}En.forEach(qe=>{D.has(qe.key)&&Ut(qe.key),qe.controller&&D.set(qe.key,qe.controller)});let kr=()=>En.forEach(qe=>Ut(qe.key));T&&T.signal.addEventListener("abort",kr);let{results:ul,loaderResults:tm,fetcherResults:Co}=await _n(g.matches,M,ot,En,b);if(b.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",kr),En.forEach(qe=>D.delete(qe.key));let mr=zw(ul);if(mr){if(mr.idx>=ot.length){let qe=En[mr.idx-ot.length].key;j.add(qe)}return await Qt(g,mr.result,{replace:le}),{shortCircuited:!0}}let{loaderData:Wc,errors:nm}=$w(g,M,ot,tm,Re,En,Co,we);we.forEach((qe,tr)=>{qe.subscribe(It=>{(It||qe.done)&&we.delete(tr)})});let rm=ie(),im=er(q),Ro=rm||im||En.length>0;return mt({loaderData:Wc,errors:nm},Ro?{fetchers:new Map(g.fetchers)}:{})}function Pr(b,A,M,W){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");D.has(b)&&Ut(b);let X=(W&&W.unstable_flushSync)===!0,Ee=a||o,le=gy(g.location,g.matches,l,u.v7_prependBasename,M,A,W==null?void 0:W.relative),oe=Jo(Ee,le,l);if(!oe){St(b,A,rr(404,{pathname:le}),{flushSync:X});return}let{path:Z,submission:Re,error:Yt}=Ow(u.v7_normalizeFormMethod,!0,le,W);if(Yt){St(b,A,Yt,{flushSync:X});return}let xe=vy(oe,Z);if(I=(W&&W.preventScrollReset)===!0,Re&&_r(Re.formMethod)){Pn(b,A,Z,xe,oe,X,Re);return}H.set(b,{routeId:A,path:Z}),An(b,A,Z,xe,oe,X,Re)}async function Pn(b,A,M,W,X,Ee,le){if(ze(),H.delete(b),!W.route.action&&!W.route.lazy){let It=rr(405,{method:le.formMethod,pathname:M,routeId:A});St(b,A,It,{flushSync:Ee});return}let oe=g.fetchers.get(b);$t(b,lM(le,oe),{flushSync:Ee});let Z=new AbortController,Re=wl(t.history,M,Z.signal,le);D.set(b,Z);let Yt=z,xe=await _l("action",Re,W,X,s,i,l);if(Re.signal.aborted){D.get(b)===Z&&D.delete(b);return}if(J.has(b)){$t(b,Mi(void 0));return}if(pa(xe))if(D.delete(b),q>Yt){$t(b,Mi(void 0));return}else return j.add(b),$t(b,El(le)),Qt(g,xe,{fetcherSubmission:le});if(iu(xe)){St(b,A,xe.error);return}if(Hs(xe))throw rr(400,{type:"defer-action"});let Ke=g.navigation.location||g.location,ot=wl(t.history,Ke,Z.signal),En=a||o,kr=g.navigation.state!=="idle"?Jo(En,g.navigation.location,l):g.matches;ye(kr,"Didn't find any matches after fetcher action");let ul=++z;N.set(b,ul);let tm=El(le,xe.data);g.fetchers.set(b,tm);let[Co,mr]=Lw(t.history,g,kr,le,Ke,B,U,O,J,H,j,En,l,{[W.route.id]:xe.data},void 0);mr.filter(It=>It.key!==b).forEach(It=>{let ks=It.key,x_=g.fetchers.get(ks),G2=El(void 0,x_?x_.data:void 0);g.fetchers.set(ks,G2),D.has(ks)&&Ut(ks),It.controller&&D.set(ks,It.controller)}),_e({fetchers:new Map(g.fetchers)});let Wc=()=>mr.forEach(It=>Ut(It.key));Z.signal.addEventListener("abort",Wc);let{results:nm,loaderResults:rm,fetcherResults:im}=await _n(g.matches,kr,Co,mr,ot);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Wc),N.delete(b),D.delete(b),mr.forEach(It=>D.delete(It.key));let Ro=zw(nm);if(Ro){if(Ro.idx>=Co.length){let It=mr[Ro.idx-Co.length].key;j.add(It)}return Qt(g,Ro.result)}let{loaderData:qe,errors:tr}=$w(g,g.matches,Co,rm,void 0,mr,im,we);if(g.fetchers.has(b)){let It=Mi(xe.data);g.fetchers.set(b,It)}er(ul),g.navigation.state==="loading"&&ul>q?(ye(S,"Expected pending action"),T&&T.abort(),Qe(g.navigation.location,{matches:kr,loaderData:qe,errors:tr,fetchers:new Map(g.fetchers)})):(_e({errors:tr,loaderData:Uw(g.loaderData,qe,kr,tr),fetchers:new Map(g.fetchers)}),B=!1)}async function An(b,A,M,W,X,Ee,le){let oe=g.fetchers.get(b);$t(b,El(le,oe?oe.data:void 0),{flushSync:Ee});let Z=new AbortController,Re=wl(t.history,M,Z.signal);D.set(b,Z);let Yt=z,xe=await _l("loader",Re,W,X,s,i,l);if(Hs(xe)&&(xe=await YC(xe,Re.signal,!0)||xe),D.get(b)===Z&&D.delete(b),!Re.signal.aborted){if(J.has(b)){$t(b,Mi(void 0));return}if(pa(xe))if(q>Yt){$t(b,Mi(void 0));return}else{j.add(b),await Qt(g,xe);return}if(iu(xe)){St(b,A,xe.error);return}ye(!Hs(xe),"Unhandled fetcher deferred data"),$t(b,Mi(xe.data))}}async function Qt(b,A,M){let{submission:W,fetcherSubmission:X,replace:Ee}=M===void 0?{}:M;A.revalidate&&(B=!0);let le=Vu(b.location,A.location,{_isRedirect:!0});if(ye(le,"Expected a location on the redirect navigation"),n){let Ke=!1;if(A.reloadDocument)Ke=!0;else if(KC.test(A.location)){const ot=t.history.createURL(A.location);Ke=ot.origin!==e.location.origin||Ga(ot.pathname,l)==null}if(Ke){Ee?e.location.replace(A.location):e.location.assign(A.location);return}}T=null;let oe=Ee===!0?wt.Replace:wt.Push,{formMethod:Z,formAction:Re,formEncType:Yt}=b.navigation;!W&&!X&&Z&&Re&&Yt&&(W=Ww(b.navigation));let xe=W||X;if(Q4.has(A.status)&&xe&&_r(xe.formMethod))await ae(oe,le,{submission:mt({},xe,{formAction:A.location}),preventScrollReset:I});else{let Ke=Dm(le,W);await ae(oe,le,{overrideNavigation:Ke,fetcherSubmission:X,preventScrollReset:I})}}async function _n(b,A,M,W,X){let Ee=await Promise.all([...M.map(Z=>_l("loader",X,Z,A,s,i,l)),...W.map(Z=>Z.matches&&Z.match&&Z.controller?_l("loader",wl(t.history,Z.path,Z.controller.signal),Z.match,Z.matches,s,i,l):{type:Et.error,error:rr(404,{pathname:Z.path})})]),le=Ee.slice(0,M.length),oe=Ee.slice(M.length);return await Promise.all([Hw(b,M,le,le.map(()=>X.signal),!1,g.loaderData),Hw(b,W.map(Z=>Z.match),oe,W.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:Ee,loaderResults:le,fetcherResults:oe}}function ze(){B=!0,U.push(..._t()),H.forEach((b,A)=>{D.has(A)&&(O.push(A),Ut(A))})}function $t(b,A,M){M===void 0&&(M={}),g.fetchers.set(b,A),_e({fetchers:new Map(g.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function St(b,A,M,W){W===void 0&&(W={});let X=ru(g.matches,A);wn(b),_e({errors:{[X.route.id]:M},fetchers:new Map(g.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function He(b){return u.v7_fetcherPersist&&(G.set(b,(G.get(b)||0)+1),J.has(b)&&J.delete(b)),g.fetchers.get(b)||Y4}function wn(b){let A=g.fetchers.get(b);D.has(b)&&!(A&&A.state==="loading"&&N.has(b))&&Ut(b),H.delete(b),N.delete(b),j.delete(b),J.delete(b),g.fetchers.delete(b)}function Ar(b){if(u.v7_fetcherPersist){let A=(G.get(b)||0)-1;A<=0?(G.delete(b),J.add(b)):G.set(b,A)}else wn(b);_e({fetchers:new Map(g.fetchers)})}function Ut(b){let A=D.get(b);ye(A,"Expected fetch controller: "+b),A.abort(),D.delete(b)}function Le(b){for(let A of b){let M=He(A),W=Mi(M.data);g.fetchers.set(A,W)}}function ie(){let b=[],A=!1;for(let M of j){let W=g.fetchers.get(M);ye(W,"Expected fetcher: "+M),W.state==="loading"&&(j.delete(M),b.push(M),A=!0)}return Le(b),A}function er(b){let A=[];for(let[M,W]of N)if(W0}function As(b,A){let M=g.blockers.get(b)||vl;return te.get(b)!==A&&te.set(b,A),M}function Pi(b){g.blockers.delete(b),te.delete(b)}function ne(b,A){let M=g.blockers.get(b)||vl;ye(M.state==="unblocked"&&A.state==="blocked"||M.state==="blocked"&&A.state==="blocked"||M.state==="blocked"&&A.state==="proceeding"||M.state==="blocked"&&A.state==="unblocked"||M.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+A.state);let W=new Map(g.blockers);W.set(b,A),_e({blockers:W})}function Ue(b){let{currentLocation:A,nextLocation:M,historyAction:W}=b;if(te.size===0)return;te.size>1&&so(!1,"A router only supports one blocker at a time");let X=Array.from(te.entries()),[Ee,le]=X[X.length-1],oe=g.blockers.get(Ee);if(!(oe&&oe.state==="proceeding")&&le({currentLocation:A,nextLocation:M,historyAction:W}))return Ee}function _t(b){let A=[];return we.forEach((M,W)=>{(!b||b(W))&&(M.cancel(),A.push(W),we.delete(W))}),A}function Ai(b,A,M){if(h=b,m=A,f=M||null,!y&&g.navigation===Nm){y=!0;let W=E_(g.location,g.matches);W!=null&&_e({restoreScrollPosition:W})}return()=>{h=null,m=null,f=null}}function ll(b,A){return f&&f(b,A.map(W=>I4(W,g.loaderData)))||b.key}function K2(b,A){if(h&&m){let M=ll(b,A);h[M]=m()}}function E_(b,A){if(h){let M=ll(b,A),W=h[M];if(typeof W=="number")return W}return null}function q2(b){s={},a=my(b,i,void 0,s)}return _={get basename(){return l},get state(){return g},get routes(){return o},get window(){return e},initialize:ge,subscribe:Ot,enableScrollRestoration:Ai,navigate:me,fetch:Pr,revalidate:$e,createHref:b=>t.history.createHref(b),encodeLocation:b=>t.history.encodeLocation(b),getFetcher:He,deleteFetcher:Ar,dispose:tt,getBlocker:As,deleteBlocker:Pi,_internalFetchControllers:D,_internalActiveDeferreds:we,_internalSetRoutes:q2},_}function Z4(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function gy(t,e,n,r,i,s,o){let a,l;if(s){a=[];for(let c of e)if(a.push(c),c.route.id===s){l=c;break}}else a=e,l=e[e.length-1];let u=p0(i||".",f0(a),Ga(t.pathname,n)||t.pathname,o==="path");return i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!g0(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:di([n,u.pathname])),oo(u)}function Ow(t,e,n,r){if(!r||!Z4(r))return{path:n};if(r.formMethod&&!oM(r.formMethod))return{path:n,error:rr(405,{method:r.formMethod})};let i=()=>({path:n,error:rr(400,{type:"invalid-body"})}),s=r.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=QC(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!_r(o))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((f,m)=>{let[y,x]=m;return""+f+y+"="+x+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!_r(o))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ye(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=yy(r.formData),u=r.formData;else if(r.body instanceof FormData)l=yy(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=jw(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=jw(l)}catch{return i()}let c={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(_r(c.formMethod))return{path:n,submission:c};let d=Ri(n);return e&&d.search&&g0(d.search)&&l.append("index",""),d.search="?"+l,{path:oo(d),submission:c}}function eM(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function Lw(t,e,n,r,i,s,o,a,l,u,c,d,h,f,m){let y=m?Object.values(m)[0]:f?Object.values(f)[0]:void 0,x=t.createURL(e.location),w=t.createURL(i),v=m?Object.keys(m)[0]:void 0,g=eM(n,v).filter((I,T)=>{if(I.route.lazy)return!0;if(I.route.loader==null)return!1;if(tM(e.loaderData,e.matches[T],I)||o.some(P=>P===I.route.id))return!0;let C=e.matches[T],k=I;return Vw(I,mt({currentUrl:x,currentParams:C.params,nextUrl:w,nextParams:k.params},r,{actionResult:y,defaultShouldRevalidate:s||x.pathname+x.search===w.pathname+w.search||x.search!==w.search||GC(C,k)}))}),S=[];return u.forEach((I,T)=>{if(!n.some(B=>B.route.id===I.routeId)||l.has(T))return;let C=Jo(d,I.path,h);if(!C){S.push({key:T,routeId:I.routeId,path:I.path,matches:null,match:null,controller:null});return}let k=e.fetchers.get(T),P=vy(C,I.path),L=!1;c.has(T)?L=!1:a.includes(T)?L=!0:k&&k.state!=="idle"&&k.data===void 0?L=s:L=Vw(P,mt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:s})),L&&S.push({key:T,routeId:I.routeId,path:I.path,matches:C,match:P,controller:new AbortController})}),[g,S]}function tM(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function GC(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Vw(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function Fw(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];ye(i,"No route found in manifest");let s={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";so(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!T4.has(o)&&(s[o]=r[o])}Object.assign(i,s),Object.assign(i,mt({},e(i),{lazy:void 0}))}async function _l(t,e,n,r,i,s,o,a){a===void 0&&(a={});let l,u,c,d=m=>{let y,x=new Promise((w,v)=>y=v);return c=()=>y(),e.signal.addEventListener("abort",c),Promise.race([m({request:e,params:n.params,context:a.requestContext}),x])};try{let m=n.route[t];if(n.route.lazy)if(m){let y,x=await Promise.all([d(m).catch(w=>{y=w}),Fw(n.route,s,i)]);if(y)throw y;u=x[0]}else if(await Fw(n.route,s,i),m=n.route[t],m)u=await d(m);else if(t==="action"){let y=new URL(e.url),x=y.pathname+y.search;throw rr(405,{method:e.method,pathname:x,routeId:n.route.id})}else return{type:Et.data,data:void 0};else if(m)u=await d(m);else{let y=new URL(e.url),x=y.pathname+y.search;throw rr(404,{pathname:x})}ye(u!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(m){l=Et.error,u=m}finally{c&&e.signal.removeEventListener("abort",c)}if(sM(u)){let m=u.status;if(G4.has(m)){let w=u.headers.get("Location");if(ye(w,"Redirects returned/thrown from loaders/actions must have a Location header"),!KC.test(w))w=gy(new URL(e.url),r.slice(0,r.indexOf(n)+1),o,!0,w);else if(!a.isStaticRequest){let v=new URL(e.url),_=w.startsWith("//")?new URL(v.protocol+w):new URL(w),g=Ga(_.pathname,o)!=null;_.origin===v.origin&&g&&(w=_.pathname+_.search+_.hash)}if(a.isStaticRequest)throw u.headers.set("Location",w),u;return{type:Et.redirect,status:m,location:w,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:l===Et.error?Et.error:Et.data,response:u};let y,x=u.headers.get("Content-Type");return x&&/\bapplication\/json\b/.test(x)?y=await u.json():y=await u.text(),l===Et.error?{type:l,error:new m0(m,u.statusText,y),headers:u.headers}:{type:Et.data,data:y,statusCode:u.status,headers:u.headers}}if(l===Et.error)return{type:l,error:u};if(iM(u)){var h,f;return{type:Et.deferred,deferredData:u,statusCode:(h=u.init)==null?void 0:h.status,headers:((f=u.init)==null?void 0:f.headers)&&new Headers(u.init.headers)}}return{type:Et.data,data:u}}function wl(t,e,n,r){let i=t.createURL(QC(e)).toString(),s={signal:n};if(r&&_r(r.formMethod)){let{formMethod:o,formEncType:a}=r;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=yy(r.formData):s.body=r.formData}return new Request(i,s)}function yy(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function jw(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function nM(t,e,n,r,i){let s={},o=null,a,l=!1,u={};return n.forEach((c,d)=>{let h=e[d].route.id;if(ye(!pa(c),"Cannot handle redirect results in processLoaderData"),iu(c)){let f=ru(t,h),m=c.error;r&&(m=Object.values(r)[0],r=void 0),o=o||{},o[f.route.id]==null&&(o[f.route.id]=m),s[h]=void 0,l||(l=!0,a=HC(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Hs(c)?(i.set(h,c.deferredData),s[h]=c.deferredData.data):s[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(a=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(o=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:u}}function $w(t,e,n,r,i,s,o,a){let{loaderData:l,errors:u}=nM(e,n,r,i,a);for(let c=0;cr.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function Bw(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function rr(t,e){let{pathname:n,routeId:r,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):t===404?(o="Not Found",a='No route matches URL "'+n+'"'):t===405&&(o="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new m0(t||500,o,new Error(a),!0)}function zw(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(pa(n))return{result:n,idx:e}}}function QC(t){let e=typeof t=="string"?Ri(t):t;return oo(mt({},e,{hash:""}))}function rM(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Hs(t){return t.type===Et.deferred}function iu(t){return t.type===Et.error}function pa(t){return(t&&t.type)===Et.redirect}function iM(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function sM(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function oM(t){return q4.has(t.toLowerCase())}function _r(t){return W4.has(t.toLowerCase())}async function Hw(t,e,n,r,i,s){for(let o=0;od.route.id===l.route.id),c=u!=null&&!GC(u,l)&&(s&&s[l.route.id])!==void 0;if(Hs(a)&&(i||c)){let d=r[o];ye(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await YC(a,d,i).then(h=>{h&&(n[o]=h||n[o])})}}}async function YC(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Et.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Et.error,error:i}}return{type:Et.data,data:t.deferredData.data}}}function g0(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function vy(t,e){let n=typeof e=="string"?Ri(e).search:e.search;if(t[t.length-1].route.index&&g0(n||""))return t[t.length-1];let r=zC(t);return r[r.length-1]}function Ww(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:o}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Dm(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function aM(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function El(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function lM(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Mi(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function uM(t,e){try{let n=t.sessionStorage.getItem(qC);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function cM(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(qC,JSON.stringify(n))}catch(r){so(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function mt(){return mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function so(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function E4(){return Math.random().toString(36).substr(2,8)}function Dw(t,e){return{usr:t.state,key:t.key,idx:e}}function Vu(t,e,n,r){return n===void 0&&(n=null),mt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ri(e):e,{state:n,key:e&&e.key||r||E4()})}function oo(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ri(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function x4(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=wt.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(mt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=wt.Pop;let x=c(),w=x==null?null:x-u;u=x,l&&l({action:a,location:y.location,delta:w})}function h(x,w){a=wt.Push;let v=Vu(y.location,x,w);n&&n(v,x),u=c()+1;let _=Dw(v,u),g=y.createHref(v);try{o.pushState(_,"",g)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(g)}s&&l&&l({action:a,location:y.location,delta:1})}function f(x,w){a=wt.Replace;let v=Vu(y.location,x,w);n&&n(v,x),u=c();let _=Dw(v,u),g=y.createHref(v);o.replaceState(_,"",g),s&&l&&l({action:a,location:y.location,delta:0})}function m(x){let w=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof x=="string"?x:oo(x);return ye(w,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,w)}let y={get action(){return a},get location(){return t(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Nw,d),l=x,()=>{i.removeEventListener(Nw,d),l=null}},createHref(x){return e(i,x)},createURL:m,encodeLocation(x){let w=m(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:f,go(x){return o.go(x)}};return y}var Et;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Et||(Et={}));const T4=new Set(["lazy","caseSensitive","path","id","index","children"]);function S4(t){return t.index===!0}function my(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,s)=>{let o=[...n,s],a=typeof i.id=="string"?i.id:o.join("-");if(ye(i.index!==!0||!i.children,"Cannot specify children on an index route"),ye(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),S4(i)){let l=mt({},i,e(i),{id:a});return r[a]=l,l}else{let l=mt({},i,e(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=my(i.children,e,o,r)),l}})}function Jo(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Ri(e):e,i=Ga(r.pathname||"/",n);if(i==null)return null;let s=UC(t);C4(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(ye(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=di([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(ye(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),UC(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:D4(u,s.index),routesMeta:c})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of BC(s.path))i(s,o,l)}),e}function BC(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=BC(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function C4(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:M4(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const R4=/^:\w+$/,b4=3,P4=2,A4=1,k4=10,N4=-2,Mw=t=>t==="*";function D4(t,e){let n=t.split("/"),r=n.length;return n.some(Mw)&&(r+=N4),e&&(r+=P4),n.filter(i=>!Mw(i)).reduce((i,s)=>i+(R4.test(s)?b4:s===""?A4:k4),r)}function M4(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function O4(t,e){let{routesMeta:n}=t,r={},i="/",s=[];for(let o=0;o{let{paramName:h,isOptional:f}=c;if(h==="*"){let y=a[d]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return f&&!m?u[h]=void 0:u[h]=j4(m||"",h),u},{}),pathname:s,pathnameBase:o,pattern:t}}function V4(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),so(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function F4(t){try{return decodeURI(t)}catch(e){return so(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function j4(t,e){try{return decodeURIComponent(t)}catch(n){return so(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function Ga(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function $4(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Ri(t):t;return{pathname:n?n.startsWith("/")?n:U4(n,e):e,search:z4(r),hash:H4(i)}}function U4(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function km(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 zC(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function f0(t){return zC(t).map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function p0(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Ri(t):(i=mt({},t),ye(!i.pathname||!i.pathname.includes("?"),km("?","pathname","search",i)),ye(!i.pathname||!i.pathname.includes("#"),km("#","pathname","hash",i)),ye(!i.search||!i.search.includes("#"),km("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d.pop();i.pathname=h.join("/")}a="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=$4(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const di=t=>t.join("/").replace(/\/\/+/g,"/"),B4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),z4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,H4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class m0{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const WC=["post","put","patch","delete"],W4=new Set(WC),K4=["get",...WC],q4=new Set(K4),G4=new Set([301,302,303,307,308]),Q4=new Set([307,308]),Nm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},KC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X4=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),qC="remix-router-transitions";function J4(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;ye(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let b=t.detectErrorBoundary;i=A=>({hasErrorBoundary:b(A)})}else i=X4;let s={},o=my(t.routes,i,void 0,s),a,l=t.basename||"/",u=mt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),c=null,d=new Set,h=null,f=null,m=null,y=t.hydrationData!=null,x=Jo(o,t.history.location,l),w=null;if(x==null){let b=rr(404,{pathname:t.history.location.pathname}),{matches:A,route:M}=Bw(o);x=A,w={[M.id]:b}}let v=!x.some(b=>b.route.lazy)&&(!x.some(b=>b.route.loader)||t.hydrationData!=null),_,g={historyAction:t.history.action,location:t.history.location,matches:x,initialized:v,navigation:Nm,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||w,fetchers:new Map,blockers:new Map},S=wt.Pop,I=!1,T,C=!1,k=new Map,P=null,L=!1,B=!1,U=[],O=[],D=new Map,z=0,q=-1,N=new Map,j=new Set,H=new Map,G=new Map,J=new Set,we=new Map,te=new Map,Ie=!1;function ge(){if(c=t.history.listen(b=>{let{action:A,location:M,delta:W}=b;if(Ie){Ie=!1;return}so(te.size===0||W!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Ue({currentLocation:g.location,nextLocation:M,historyAction:A});if(X&&W!=null){Ie=!0,t.history.go(W*-1),ne(X,{state:"blocked",location:M,proceed(){ne(X,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),t.history.go(W)},reset(){let Ee=new Map(g.blockers);Ee.set(X,vl),_e({blockers:Ee})}});return}return ae(A,M)}),n){uM(e,k);let b=()=>cM(e,k);e.addEventListener("pagehide",b),P=()=>e.removeEventListener("pagehide",b)}return g.initialized||ae(wt.Pop,g.location),_}function tt(){c&&c(),P&&P(),d.clear(),T&&T.abort(),g.fetchers.forEach((b,A)=>wn(A)),g.blockers.forEach((b,A)=>Ai(A))}function Ot(b){return d.add(b),()=>d.delete(b)}function _e(b,A){A===void 0&&(A={}),g=mt({},g,b);let M=[],W=[];u.v7_fetcherPersist&&g.fetchers.forEach((X,Ee)=>{X.state==="idle"&&(J.has(Ee)?W.push(Ee):M.push(Ee))}),[...d].forEach(X=>X(g,{deletedFetchers:W,unstable_viewTransitionOpts:A.viewTransitionOpts,unstable_flushSync:A.flushSync===!0})),u.v7_fetcherPersist&&(M.forEach(X=>g.fetchers.delete(X)),W.forEach(X=>wn(X)))}function Qe(b,A,M){var W,X;let{flushSync:Ee}=M===void 0?{}:M,le=g.actionData!=null&&g.navigation.formMethod!=null&&_r(g.navigation.formMethod)&&g.navigation.state==="loading"&&((W=b.state)==null?void 0:W._isRedirect)!==!0,oe;A.actionData?Object.keys(A.actionData).length>0?oe=A.actionData:oe=null:le?oe=g.actionData:oe=null;let Z=A.loaderData?Uw(g.loaderData,A.loaderData,A.matches||[],A.errors):g.loaderData,Re=g.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((Ke,ot)=>Re.set(ot,vl)));let Yt=I===!0||g.navigation.formMethod!=null&&_r(g.navigation.formMethod)&&((X=b.state)==null?void 0:X._isRedirect)!==!0;a&&(o=a,a=void 0),L||S===wt.Pop||(S===wt.Push?t.history.push(b,b.state):S===wt.Replace&&t.history.replace(b,b.state));let xe;if(S===wt.Pop){let Ke=k.get(g.location.pathname);Ke&&Ke.has(b.pathname)?xe={currentLocation:g.location,nextLocation:b}:k.has(b.pathname)&&(xe={currentLocation:b,nextLocation:g.location})}else if(C){let Ke=k.get(g.location.pathname);Ke?Ke.add(b.pathname):(Ke=new Set([b.pathname]),k.set(g.location.pathname,Ke)),xe={currentLocation:g.location,nextLocation:b}}_e(mt({},A,{actionData:oe,loaderData:Z,historyAction:S,location:b,initialized:!0,navigation:Nm,revalidation:"idle",restoreScrollPosition:E_(b,A.matches||g.matches),preventScrollReset:Yt,blockers:Re}),{viewTransitionOpts:xe,flushSync:Ee===!0}),S=wt.Pop,I=!1,C=!1,L=!1,B=!1,U=[],O=[]}async function me(b,A){if(typeof b=="number"){t.history.go(b);return}let M=gy(g.location,g.matches,l,u.v7_prependBasename,b,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:W,submission:X,error:Ee}=Ow(u.v7_normalizeFormMethod,!1,M,A),le=g.location,oe=Vu(g.location,W,A&&A.state);oe=mt({},oe,t.history.encodeLocation(oe));let Z=A&&A.replace!=null?A.replace:void 0,Re=wt.Push;Z===!0?Re=wt.Replace:Z===!1||X!=null&&_r(X.formMethod)&&X.formAction===g.location.pathname+g.location.search&&(Re=wt.Replace);let Yt=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,xe=(A&&A.unstable_flushSync)===!0,Ke=Ue({currentLocation:le,nextLocation:oe,historyAction:Re});if(Ke){ne(Ke,{state:"blocked",location:oe,proceed(){ne(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),me(b,A)},reset(){let ot=new Map(g.blockers);ot.set(Ke,vl),_e({blockers:ot})}});return}return await ae(Re,oe,{submission:X,pendingError:Ee,preventScrollReset:Yt,replace:A&&A.replace,enableViewTransition:A&&A.unstable_viewTransition,flushSync:xe})}function $e(){if(ze(),_e({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){ae(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}ae(S||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function ae(b,A,M){T&&T.abort(),T=null,S=b,L=(M&&M.startUninterruptedRevalidation)===!0,K2(g.location,g.matches),I=(M&&M.preventScrollReset)===!0,C=(M&&M.enableViewTransition)===!0;let W=a||o,X=M&&M.overrideNavigation,Ee=Jo(W,A,l),le=(M&&M.flushSync)===!0;if(!Ee){let ot=rr(404,{pathname:A.pathname}),{matches:En,route:kr}=Bw(W);_t(),Qe(A,{matches:En,loaderData:{},errors:{[kr.id]:ot}},{flushSync:le});return}if(g.initialized&&!B&&rM(g.location,A)&&!(M&&M.submission&&_r(M.submission.formMethod))){Qe(A,{matches:Ee},{flushSync:le});return}T=new AbortController;let oe=wl(t.history,A,T.signal,M&&M.submission),Z,Re;if(M&&M.pendingError)Re={[ru(Ee).route.id]:M.pendingError};else if(M&&M.submission&&_r(M.submission.formMethod)){let ot=await Me(oe,A,M.submission,Ee,{replace:M.replace,flushSync:le});if(ot.shortCircuited)return;Z=ot.pendingActionData,Re=ot.pendingActionError,X=Dm(A,M.submission),le=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Yt,loaderData:xe,errors:Ke}=await We(oe,A,Ee,X,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,le,Z,Re);Yt||(T=null,Qe(A,mt({matches:Ee},Z?{actionData:Z}:{},{loaderData:xe,errors:Ke})))}async function Me(b,A,M,W,X){X===void 0&&(X={}),ze();let Ee=aM(A,M);_e({navigation:Ee},{flushSync:X.flushSync===!0});let le,oe=vy(W,A);if(!oe.route.action&&!oe.route.lazy)le={type:Et.error,error:rr(405,{method:b.method,pathname:A.pathname,routeId:oe.route.id})};else if(le=await _l("action",b,oe,W,s,i,l),b.signal.aborted)return{shortCircuited:!0};if(pa(le)){let Z;return X&&X.replace!=null?Z=X.replace:Z=le.location===g.location.pathname+g.location.search,await Qt(g,le,{submission:M,replace:Z}),{shortCircuited:!0}}if(iu(le)){let Z=ru(W,oe.route.id);return(X&&X.replace)!==!0&&(S=wt.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:le.error}}}if(Hs(le))throw rr(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:le.data}}}async function We(b,A,M,W,X,Ee,le,oe,Z,Re){let Yt=W||Dm(A,X),xe=X||Ee||Ww(Yt),Ke=a||o,[ot,En]=Lw(t.history,g,M,xe,A,B,U,O,J,H,j,Ke,l,Z,Re);if(_t(qe=>!(M&&M.some(tr=>tr.route.id===qe))||ot&&ot.some(tr=>tr.route.id===qe)),q=++z,ot.length===0&&En.length===0){let qe=ie();return Qe(A,mt({matches:M,loaderData:{},errors:Re||null},Z?{actionData:Z}:{},qe?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe}),{shortCircuited:!0}}if(!L){En.forEach(tr=>{let It=g.fetchers.get(tr.key),ks=El(void 0,It?It.data:void 0);g.fetchers.set(tr.key,ks)});let qe=Z||g.actionData;_e(mt({navigation:Yt},qe?Object.keys(qe).length===0?{actionData:null}:{actionData:qe}:{},En.length>0?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe})}En.forEach(qe=>{D.has(qe.key)&&Ut(qe.key),qe.controller&&D.set(qe.key,qe.controller)});let kr=()=>En.forEach(qe=>Ut(qe.key));T&&T.signal.addEventListener("abort",kr);let{results:ul,loaderResults:tm,fetcherResults:Co}=await _n(g.matches,M,ot,En,b);if(b.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",kr),En.forEach(qe=>D.delete(qe.key));let mr=zw(ul);if(mr){if(mr.idx>=ot.length){let qe=En[mr.idx-ot.length].key;j.add(qe)}return await Qt(g,mr.result,{replace:le}),{shortCircuited:!0}}let{loaderData:Wc,errors:nm}=$w(g,M,ot,tm,Re,En,Co,we);we.forEach((qe,tr)=>{qe.subscribe(It=>{(It||qe.done)&&we.delete(tr)})});let rm=ie(),im=er(q),Ro=rm||im||En.length>0;return mt({loaderData:Wc,errors:nm},Ro?{fetchers:new Map(g.fetchers)}:{})}function Pr(b,A,M,W){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");D.has(b)&&Ut(b);let X=(W&&W.unstable_flushSync)===!0,Ee=a||o,le=gy(g.location,g.matches,l,u.v7_prependBasename,M,A,W==null?void 0:W.relative),oe=Jo(Ee,le,l);if(!oe){St(b,A,rr(404,{pathname:le}),{flushSync:X});return}let{path:Z,submission:Re,error:Yt}=Ow(u.v7_normalizeFormMethod,!0,le,W);if(Yt){St(b,A,Yt,{flushSync:X});return}let xe=vy(oe,Z);if(I=(W&&W.preventScrollReset)===!0,Re&&_r(Re.formMethod)){Pn(b,A,Z,xe,oe,X,Re);return}H.set(b,{routeId:A,path:Z}),An(b,A,Z,xe,oe,X,Re)}async function Pn(b,A,M,W,X,Ee,le){if(ze(),H.delete(b),!W.route.action&&!W.route.lazy){let It=rr(405,{method:le.formMethod,pathname:M,routeId:A});St(b,A,It,{flushSync:Ee});return}let oe=g.fetchers.get(b);$t(b,lM(le,oe),{flushSync:Ee});let Z=new AbortController,Re=wl(t.history,M,Z.signal,le);D.set(b,Z);let Yt=z,xe=await _l("action",Re,W,X,s,i,l);if(Re.signal.aborted){D.get(b)===Z&&D.delete(b);return}if(J.has(b)){$t(b,Oi(void 0));return}if(pa(xe))if(D.delete(b),q>Yt){$t(b,Oi(void 0));return}else return j.add(b),$t(b,El(le)),Qt(g,xe,{fetcherSubmission:le});if(iu(xe)){St(b,A,xe.error);return}if(Hs(xe))throw rr(400,{type:"defer-action"});let Ke=g.navigation.location||g.location,ot=wl(t.history,Ke,Z.signal),En=a||o,kr=g.navigation.state!=="idle"?Jo(En,g.navigation.location,l):g.matches;ye(kr,"Didn't find any matches after fetcher action");let ul=++z;N.set(b,ul);let tm=El(le,xe.data);g.fetchers.set(b,tm);let[Co,mr]=Lw(t.history,g,kr,le,Ke,B,U,O,J,H,j,En,l,{[W.route.id]:xe.data},void 0);mr.filter(It=>It.key!==b).forEach(It=>{let ks=It.key,x_=g.fetchers.get(ks),G2=El(void 0,x_?x_.data:void 0);g.fetchers.set(ks,G2),D.has(ks)&&Ut(ks),It.controller&&D.set(ks,It.controller)}),_e({fetchers:new Map(g.fetchers)});let Wc=()=>mr.forEach(It=>Ut(It.key));Z.signal.addEventListener("abort",Wc);let{results:nm,loaderResults:rm,fetcherResults:im}=await _n(g.matches,kr,Co,mr,ot);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Wc),N.delete(b),D.delete(b),mr.forEach(It=>D.delete(It.key));let Ro=zw(nm);if(Ro){if(Ro.idx>=Co.length){let It=mr[Ro.idx-Co.length].key;j.add(It)}return Qt(g,Ro.result)}let{loaderData:qe,errors:tr}=$w(g,g.matches,Co,rm,void 0,mr,im,we);if(g.fetchers.has(b)){let It=Oi(xe.data);g.fetchers.set(b,It)}er(ul),g.navigation.state==="loading"&&ul>q?(ye(S,"Expected pending action"),T&&T.abort(),Qe(g.navigation.location,{matches:kr,loaderData:qe,errors:tr,fetchers:new Map(g.fetchers)})):(_e({errors:tr,loaderData:Uw(g.loaderData,qe,kr,tr),fetchers:new Map(g.fetchers)}),B=!1)}async function An(b,A,M,W,X,Ee,le){let oe=g.fetchers.get(b);$t(b,El(le,oe?oe.data:void 0),{flushSync:Ee});let Z=new AbortController,Re=wl(t.history,M,Z.signal);D.set(b,Z);let Yt=z,xe=await _l("loader",Re,W,X,s,i,l);if(Hs(xe)&&(xe=await YC(xe,Re.signal,!0)||xe),D.get(b)===Z&&D.delete(b),!Re.signal.aborted){if(J.has(b)){$t(b,Oi(void 0));return}if(pa(xe))if(q>Yt){$t(b,Oi(void 0));return}else{j.add(b),await Qt(g,xe);return}if(iu(xe)){St(b,A,xe.error);return}ye(!Hs(xe),"Unhandled fetcher deferred data"),$t(b,Oi(xe.data))}}async function Qt(b,A,M){let{submission:W,fetcherSubmission:X,replace:Ee}=M===void 0?{}:M;A.revalidate&&(B=!0);let le=Vu(b.location,A.location,{_isRedirect:!0});if(ye(le,"Expected a location on the redirect navigation"),n){let Ke=!1;if(A.reloadDocument)Ke=!0;else if(KC.test(A.location)){const ot=t.history.createURL(A.location);Ke=ot.origin!==e.location.origin||Ga(ot.pathname,l)==null}if(Ke){Ee?e.location.replace(A.location):e.location.assign(A.location);return}}T=null;let oe=Ee===!0?wt.Replace:wt.Push,{formMethod:Z,formAction:Re,formEncType:Yt}=b.navigation;!W&&!X&&Z&&Re&&Yt&&(W=Ww(b.navigation));let xe=W||X;if(Q4.has(A.status)&&xe&&_r(xe.formMethod))await ae(oe,le,{submission:mt({},xe,{formAction:A.location}),preventScrollReset:I});else{let Ke=Dm(le,W);await ae(oe,le,{overrideNavigation:Ke,fetcherSubmission:X,preventScrollReset:I})}}async function _n(b,A,M,W,X){let Ee=await Promise.all([...M.map(Z=>_l("loader",X,Z,A,s,i,l)),...W.map(Z=>Z.matches&&Z.match&&Z.controller?_l("loader",wl(t.history,Z.path,Z.controller.signal),Z.match,Z.matches,s,i,l):{type:Et.error,error:rr(404,{pathname:Z.path})})]),le=Ee.slice(0,M.length),oe=Ee.slice(M.length);return await Promise.all([Hw(b,M,le,le.map(()=>X.signal),!1,g.loaderData),Hw(b,W.map(Z=>Z.match),oe,W.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:Ee,loaderResults:le,fetcherResults:oe}}function ze(){B=!0,U.push(..._t()),H.forEach((b,A)=>{D.has(A)&&(O.push(A),Ut(A))})}function $t(b,A,M){M===void 0&&(M={}),g.fetchers.set(b,A),_e({fetchers:new Map(g.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function St(b,A,M,W){W===void 0&&(W={});let X=ru(g.matches,A);wn(b),_e({errors:{[X.route.id]:M},fetchers:new Map(g.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function He(b){return u.v7_fetcherPersist&&(G.set(b,(G.get(b)||0)+1),J.has(b)&&J.delete(b)),g.fetchers.get(b)||Y4}function wn(b){let A=g.fetchers.get(b);D.has(b)&&!(A&&A.state==="loading"&&N.has(b))&&Ut(b),H.delete(b),N.delete(b),j.delete(b),J.delete(b),g.fetchers.delete(b)}function Ar(b){if(u.v7_fetcherPersist){let A=(G.get(b)||0)-1;A<=0?(G.delete(b),J.add(b)):G.set(b,A)}else wn(b);_e({fetchers:new Map(g.fetchers)})}function Ut(b){let A=D.get(b);ye(A,"Expected fetch controller: "+b),A.abort(),D.delete(b)}function Le(b){for(let A of b){let M=He(A),W=Oi(M.data);g.fetchers.set(A,W)}}function ie(){let b=[],A=!1;for(let M of j){let W=g.fetchers.get(M);ye(W,"Expected fetcher: "+M),W.state==="loading"&&(j.delete(M),b.push(M),A=!0)}return Le(b),A}function er(b){let A=[];for(let[M,W]of N)if(W0}function As(b,A){let M=g.blockers.get(b)||vl;return te.get(b)!==A&&te.set(b,A),M}function Ai(b){g.blockers.delete(b),te.delete(b)}function ne(b,A){let M=g.blockers.get(b)||vl;ye(M.state==="unblocked"&&A.state==="blocked"||M.state==="blocked"&&A.state==="blocked"||M.state==="blocked"&&A.state==="proceeding"||M.state==="blocked"&&A.state==="unblocked"||M.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+A.state);let W=new Map(g.blockers);W.set(b,A),_e({blockers:W})}function Ue(b){let{currentLocation:A,nextLocation:M,historyAction:W}=b;if(te.size===0)return;te.size>1&&so(!1,"A router only supports one blocker at a time");let X=Array.from(te.entries()),[Ee,le]=X[X.length-1],oe=g.blockers.get(Ee);if(!(oe&&oe.state==="proceeding")&&le({currentLocation:A,nextLocation:M,historyAction:W}))return Ee}function _t(b){let A=[];return we.forEach((M,W)=>{(!b||b(W))&&(M.cancel(),A.push(W),we.delete(W))}),A}function ki(b,A,M){if(h=b,m=A,f=M||null,!y&&g.navigation===Nm){y=!0;let W=E_(g.location,g.matches);W!=null&&_e({restoreScrollPosition:W})}return()=>{h=null,m=null,f=null}}function ll(b,A){return f&&f(b,A.map(W=>I4(W,g.loaderData)))||b.key}function K2(b,A){if(h&&m){let M=ll(b,A);h[M]=m()}}function E_(b,A){if(h){let M=ll(b,A),W=h[M];if(typeof W=="number")return W}return null}function q2(b){s={},a=my(b,i,void 0,s)}return _={get basename(){return l},get state(){return g},get routes(){return o},get window(){return e},initialize:ge,subscribe:Ot,enableScrollRestoration:ki,navigate:me,fetch:Pr,revalidate:$e,createHref:b=>t.history.createHref(b),encodeLocation:b=>t.history.encodeLocation(b),getFetcher:He,deleteFetcher:Ar,dispose:tt,getBlocker:As,deleteBlocker:Ai,_internalFetchControllers:D,_internalActiveDeferreds:we,_internalSetRoutes:q2},_}function Z4(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function gy(t,e,n,r,i,s,o){let a,l;if(s){a=[];for(let c of e)if(a.push(c),c.route.id===s){l=c;break}}else a=e,l=e[e.length-1];let u=p0(i||".",f0(a),Ga(t.pathname,n)||t.pathname,o==="path");return i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!g0(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:di([n,u.pathname])),oo(u)}function Ow(t,e,n,r){if(!r||!Z4(r))return{path:n};if(r.formMethod&&!oM(r.formMethod))return{path:n,error:rr(405,{method:r.formMethod})};let i=()=>({path:n,error:rr(400,{type:"invalid-body"})}),s=r.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=QC(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!_r(o))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((f,m)=>{let[y,x]=m;return""+f+y+"="+x+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!_r(o))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ye(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=yy(r.formData),u=r.formData;else if(r.body instanceof FormData)l=yy(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=jw(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=jw(l)}catch{return i()}let c={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(_r(c.formMethod))return{path:n,submission:c};let d=Ri(n);return e&&d.search&&g0(d.search)&&l.append("index",""),d.search="?"+l,{path:oo(d),submission:c}}function eM(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function Lw(t,e,n,r,i,s,o,a,l,u,c,d,h,f,m){let y=m?Object.values(m)[0]:f?Object.values(f)[0]:void 0,x=t.createURL(e.location),w=t.createURL(i),v=m?Object.keys(m)[0]:void 0,g=eM(n,v).filter((I,T)=>{if(I.route.lazy)return!0;if(I.route.loader==null)return!1;if(tM(e.loaderData,e.matches[T],I)||o.some(P=>P===I.route.id))return!0;let C=e.matches[T],k=I;return Vw(I,mt({currentUrl:x,currentParams:C.params,nextUrl:w,nextParams:k.params},r,{actionResult:y,defaultShouldRevalidate:s||x.pathname+x.search===w.pathname+w.search||x.search!==w.search||GC(C,k)}))}),S=[];return u.forEach((I,T)=>{if(!n.some(B=>B.route.id===I.routeId)||l.has(T))return;let C=Jo(d,I.path,h);if(!C){S.push({key:T,routeId:I.routeId,path:I.path,matches:null,match:null,controller:null});return}let k=e.fetchers.get(T),P=vy(C,I.path),L=!1;c.has(T)?L=!1:a.includes(T)?L=!0:k&&k.state!=="idle"&&k.data===void 0?L=s:L=Vw(P,mt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:s})),L&&S.push({key:T,routeId:I.routeId,path:I.path,matches:C,match:P,controller:new AbortController})}),[g,S]}function tM(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function GC(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Vw(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function Fw(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];ye(i,"No route found in manifest");let s={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";so(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!T4.has(o)&&(s[o]=r[o])}Object.assign(i,s),Object.assign(i,mt({},e(i),{lazy:void 0}))}async function _l(t,e,n,r,i,s,o,a){a===void 0&&(a={});let l,u,c,d=m=>{let y,x=new Promise((w,v)=>y=v);return c=()=>y(),e.signal.addEventListener("abort",c),Promise.race([m({request:e,params:n.params,context:a.requestContext}),x])};try{let m=n.route[t];if(n.route.lazy)if(m){let y,x=await Promise.all([d(m).catch(w=>{y=w}),Fw(n.route,s,i)]);if(y)throw y;u=x[0]}else if(await Fw(n.route,s,i),m=n.route[t],m)u=await d(m);else if(t==="action"){let y=new URL(e.url),x=y.pathname+y.search;throw rr(405,{method:e.method,pathname:x,routeId:n.route.id})}else return{type:Et.data,data:void 0};else if(m)u=await d(m);else{let y=new URL(e.url),x=y.pathname+y.search;throw rr(404,{pathname:x})}ye(u!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(m){l=Et.error,u=m}finally{c&&e.signal.removeEventListener("abort",c)}if(sM(u)){let m=u.status;if(G4.has(m)){let w=u.headers.get("Location");if(ye(w,"Redirects returned/thrown from loaders/actions must have a Location header"),!KC.test(w))w=gy(new URL(e.url),r.slice(0,r.indexOf(n)+1),o,!0,w);else if(!a.isStaticRequest){let v=new URL(e.url),_=w.startsWith("//")?new URL(v.protocol+w):new URL(w),g=Ga(_.pathname,o)!=null;_.origin===v.origin&&g&&(w=_.pathname+_.search+_.hash)}if(a.isStaticRequest)throw u.headers.set("Location",w),u;return{type:Et.redirect,status:m,location:w,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:l===Et.error?Et.error:Et.data,response:u};let y,x=u.headers.get("Content-Type");return x&&/\bapplication\/json\b/.test(x)?y=await u.json():y=await u.text(),l===Et.error?{type:l,error:new m0(m,u.statusText,y),headers:u.headers}:{type:Et.data,data:y,statusCode:u.status,headers:u.headers}}if(l===Et.error)return{type:l,error:u};if(iM(u)){var h,f;return{type:Et.deferred,deferredData:u,statusCode:(h=u.init)==null?void 0:h.status,headers:((f=u.init)==null?void 0:f.headers)&&new Headers(u.init.headers)}}return{type:Et.data,data:u}}function wl(t,e,n,r){let i=t.createURL(QC(e)).toString(),s={signal:n};if(r&&_r(r.formMethod)){let{formMethod:o,formEncType:a}=r;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=yy(r.formData):s.body=r.formData}return new Request(i,s)}function yy(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function jw(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function nM(t,e,n,r,i){let s={},o=null,a,l=!1,u={};return n.forEach((c,d)=>{let h=e[d].route.id;if(ye(!pa(c),"Cannot handle redirect results in processLoaderData"),iu(c)){let f=ru(t,h),m=c.error;r&&(m=Object.values(r)[0],r=void 0),o=o||{},o[f.route.id]==null&&(o[f.route.id]=m),s[h]=void 0,l||(l=!0,a=HC(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Hs(c)?(i.set(h,c.deferredData),s[h]=c.deferredData.data):s[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(a=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(o=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:u}}function $w(t,e,n,r,i,s,o,a){let{loaderData:l,errors:u}=nM(e,n,r,i,a);for(let c=0;cr.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function Bw(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function rr(t,e){let{pathname:n,routeId:r,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):t===404?(o="Not Found",a='No route matches URL "'+n+'"'):t===405&&(o="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new m0(t||500,o,new Error(a),!0)}function zw(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(pa(n))return{result:n,idx:e}}}function QC(t){let e=typeof t=="string"?Ri(t):t;return oo(mt({},e,{hash:""}))}function rM(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Hs(t){return t.type===Et.deferred}function iu(t){return t.type===Et.error}function pa(t){return(t&&t.type)===Et.redirect}function iM(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function sM(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function oM(t){return q4.has(t.toLowerCase())}function _r(t){return W4.has(t.toLowerCase())}async function Hw(t,e,n,r,i,s){for(let o=0;od.route.id===l.route.id),c=u!=null&&!GC(u,l)&&(s&&s[l.route.id])!==void 0;if(Hs(a)&&(i||c)){let d=r[o];ye(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await YC(a,d,i).then(h=>{h&&(n[o]=h||n[o])})}}}async function YC(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Et.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Et.error,error:i}}return{type:Et.data,data:t.deferredData.data}}}function g0(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function vy(t,e){let n=typeof e=="string"?Ri(e).search:e.search;if(t[t.length-1].route.index&&g0(n||""))return t[t.length-1];let r=zC(t);return r[r.length-1]}function Ww(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:o}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Dm(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function aM(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function El(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function lM(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Oi(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function uM(t,e){try{let n=t.sessionStorage.getItem(qC);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function cM(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(qC,JSON.stringify(n))}catch(r){so(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.20.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xh(){return xh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{o.current=!0}),E.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=p0(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:di([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}function fM(){let{matches:t}=E.useContext(xs),e=t[t.length-1];return e?e.params:{}}function eR(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=E.useContext(xs),{pathname:i}=vo(),s=JSON.stringify(f0(r));return E.useMemo(()=>p0(t,JSON.parse(s),i,n==="path"),[t,s,i,n])}function pM(t,e){return tR(t,e)}function tR(t,e,n){gc()||ye(!1);let{navigator:r}=E.useContext(Qa),{matches:i}=E.useContext(xs),s=i[i.length-1],o=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let l=vo(),u;if(e){var c;let y=typeof e=="string"?Ri(e):e;a==="/"||(c=y.pathname)!=null&&c.startsWith(a)||ye(!1),u=y}else u=l;let d=u.pathname||"/",h=a==="/"?d:d.slice(a.length)||"/",f=Jo(t,{pathname:h}),m=_M(f&&f.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:di([a,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:di([a,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return e&&m?E.createElement(Pf.Provider,{value:{location:xh({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wt.Pop}},m):m}function mM(){let t=TM(),e=HC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:i},n):null,s)}const gM=E.createElement(mM,null);class yM extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?E.createElement(xs.Provider,{value:this.props.routeContext},E.createElement(JC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vM(t){let{routeContext:e,match:n,children:r}=t,i=E.useContext(bf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(xs.Provider,{value:e},r)}function _M(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var i;if((i=n)!=null&&i.errors)t=n.matches;else return null}let s=t,o=(r=n)==null?void 0:r.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||ye(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;n&&(d=l.route.errorElement||gM);let h=e.concat(s.slice(0,u+1)),f=()=>{let m;return c?m=d:l.route.Component?m=E.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,E.createElement(vM,{match:l,routeContext:{outlet:a,matches:h,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?E.createElement(yM,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}var nR=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(nR||{}),Th=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Th||{});function wM(t){let e=E.useContext(bf);return e||ye(!1),e}function EM(t){let e=E.useContext(XC);return e||ye(!1),e}function xM(t){let e=E.useContext(xs);return e||ye(!1),e}function rR(t){let e=xM(),n=e.matches[e.matches.length-1];return n.route.id||ye(!1),n.route.id}function TM(){var t;let e=E.useContext(JC),n=EM(Th.UseRouteError),r=rR(Th.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function SM(){let{router:t}=wM(nR.UseNavigateStable),e=rR(Th.UseNavigateStable),n=E.useRef(!1);return ZC(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,xh({fromRouteId:e},s)))},[t,e])}function kn(t){ye(!1)}function IM(t){let{basename:e="/",children:n=null,location:r,navigationType:i=wt.Pop,navigator:s,static:o=!1}=t;gc()&&ye(!1);let a=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof r=="string"&&(r=Ri(r));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:f="default"}=r,m=E.useMemo(()=>{let y=Ga(u,a);return y==null?null:{location:{pathname:y,search:c,hash:d,state:h,key:f},navigationType:i}},[a,u,c,d,h,f,i]);return m==null?null:E.createElement(Qa.Provider,{value:l},E.createElement(Pf.Provider,{children:n,value:m}))}function iR(t){let{children:e,location:n}=t;return pM(_y(e),n)}new Promise(()=>{});function _y(t,e){e===void 0&&(e=[]);let n=[];return E.Children.forEach(t,(r,i)=>{if(!E.isValidElement(r))return;let s=[...e,i];if(r.type===E.Fragment){n.push.apply(n,_y(r.props.children,s));return}r.type!==kn&&ye(!1),!r.props.index||!r.props.children||ye(!1);let o={id:r.props.id||s.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&&(o.children=_y(r.props.children,s)),n.push(o)}),n}function CM(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:E.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:E.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + */function xh(){return xh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{o.current=!0}),E.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=p0(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:di([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}function fM(){let{matches:t}=E.useContext(Ts),e=t[t.length-1];return e?e.params:{}}function eR(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=E.useContext(Ts),{pathname:i}=vo(),s=JSON.stringify(f0(r));return E.useMemo(()=>p0(t,JSON.parse(s),i,n==="path"),[t,s,i,n])}function pM(t,e){return tR(t,e)}function tR(t,e,n){gc()||ye(!1);let{navigator:r}=E.useContext(Qa),{matches:i}=E.useContext(Ts),s=i[i.length-1],o=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let l=vo(),u;if(e){var c;let y=typeof e=="string"?Ri(e):e;a==="/"||(c=y.pathname)!=null&&c.startsWith(a)||ye(!1),u=y}else u=l;let d=u.pathname||"/",h=a==="/"?d:d.slice(a.length)||"/",f=Jo(t,{pathname:h}),m=_M(f&&f.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:di([a,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:di([a,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return e&&m?E.createElement(Pf.Provider,{value:{location:xh({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wt.Pop}},m):m}function mM(){let t=TM(),e=HC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:i},n):null,s)}const gM=E.createElement(mM,null);class yM extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?E.createElement(Ts.Provider,{value:this.props.routeContext},E.createElement(JC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vM(t){let{routeContext:e,match:n,children:r}=t,i=E.useContext(bf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ts.Provider,{value:e},r)}function _M(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var i;if((i=n)!=null&&i.errors)t=n.matches;else return null}let s=t,o=(r=n)==null?void 0:r.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||ye(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;n&&(d=l.route.errorElement||gM);let h=e.concat(s.slice(0,u+1)),f=()=>{let m;return c?m=d:l.route.Component?m=E.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,E.createElement(vM,{match:l,routeContext:{outlet:a,matches:h,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?E.createElement(yM,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}var nR=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(nR||{}),Th=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Th||{});function wM(t){let e=E.useContext(bf);return e||ye(!1),e}function EM(t){let e=E.useContext(XC);return e||ye(!1),e}function xM(t){let e=E.useContext(Ts);return e||ye(!1),e}function rR(t){let e=xM(),n=e.matches[e.matches.length-1];return n.route.id||ye(!1),n.route.id}function TM(){var t;let e=E.useContext(JC),n=EM(Th.UseRouteError),r=rR(Th.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function SM(){let{router:t}=wM(nR.UseNavigateStable),e=rR(Th.UseNavigateStable),n=E.useRef(!1);return ZC(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,xh({fromRouteId:e},s)))},[t,e])}function kn(t){ye(!1)}function IM(t){let{basename:e="/",children:n=null,location:r,navigationType:i=wt.Pop,navigator:s,static:o=!1}=t;gc()&&ye(!1);let a=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof r=="string"&&(r=Ri(r));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:f="default"}=r,m=E.useMemo(()=>{let y=Ga(u,a);return y==null?null:{location:{pathname:y,search:c,hash:d,state:h,key:f},navigationType:i}},[a,u,c,d,h,f,i]);return m==null?null:E.createElement(Qa.Provider,{value:l},E.createElement(Pf.Provider,{children:n,value:m}))}function iR(t){let{children:e,location:n}=t;return pM(_y(e),n)}new Promise(()=>{});function _y(t,e){e===void 0&&(e=[]);let n=[];return E.Children.forEach(t,(r,i)=>{if(!E.isValidElement(r))return;let s=[...e,i];if(r.type===E.Fragment){n.push.apply(n,_y(r.props.children,s));return}r.type!==kn&&ye(!1),!r.props.index||!r.props.children||ye(!1);let o={id:r.props.id||s.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&&(o.children=_y(r.props.children,s)),n.push(o)}),n}function CM(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:E.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:E.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** * React Router DOM v6.20.0 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Fu(){return Fu=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function bM(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function PM(t,e){return t.button===0&&(!e||e==="_self")&&!bM(t)}const AM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function kM(t,e){return J4({basename:e==null?void 0:e.basename,future:Fu({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:w4({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||NM(),routes:t,mapRouteProperties:CM,window:e==null?void 0:e.window}).initialize()}function NM(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Fu({},e,{errors:DM(e.errors)})),e}function DM(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new m0(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}const MM=E.createContext({isTransitioning:!1}),OM=E.createContext(new Map),LM="startTransition",Kw=Xd[LM],VM="flushSync",qw=_4[VM];function FM(t){Kw?Kw(t):t()}function xl(t){qw?qw(t):t()}let jM=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function $M(t){let{fallbackElement:e,router:n,future:r}=t,[i,s]=E.useState(n.state),[o,a]=E.useState(),[l,u]=E.useState({isTransitioning:!1}),[c,d]=E.useState(),[h,f]=E.useState(),[m,y]=E.useState(),x=E.useRef(new Map),{v7_startTransition:w}=r||{},v=E.useCallback(T=>{w?FM(T):T()},[w]),_=E.useCallback((T,C)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:L}=C;k.forEach(U=>x.current.delete(U)),T.fetchers.forEach((U,O)=>{U.data!==void 0&&x.current.set(O,U.data)});let B=n.window==null||typeof n.window.document.startViewTransition!="function";if(!L||B){P?xl(()=>s(T)):v(()=>s(T));return}if(P){xl(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let U=n.window.document.startViewTransition(()=>{xl(()=>s(T))});U.finished.finally(()=>{xl(()=>{d(void 0),f(void 0),a(void 0),u({isTransitioning:!1})})}),xl(()=>f(U));return}h?(c&&c.resolve(),h.skipTransition(),y({state:T,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(a(T),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,h,c,x,v]);E.useLayoutEffect(()=>n.subscribe(_),[n,_]),E.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new jM)},[l]),E.useEffect(()=>{if(c&&o&&n.window){let T=o,C=c.promise,k=n.window.document.startViewTransition(async()=>{v(()=>s(T)),await C});k.finished.finally(()=>{d(void 0),f(void 0),a(void 0),u({isTransitioning:!1})}),f(k)}},[v,o,c,n.window]),E.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,h,i.location,o]),E.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[l.isTransitioning,m]);let g=E.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,C,k)=>n.navigate(T,{state:C,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(T,C,k)=>n.navigate(T,{replace:!0,state:C,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",I=E.useMemo(()=>({router:n,navigator:g,static:!1,basename:S}),[n,g,S]);return E.createElement(E.Fragment,null,E.createElement(bf.Provider,{value:I},E.createElement(XC.Provider,{value:i},E.createElement(OM.Provider,{value:x.current},E.createElement(MM.Provider,{value:l},E.createElement(IM,{basename:S,location:i.location,navigationType:i.historyAction,navigator:g},i.initialized?E.createElement(UM,{routes:n.routes,state:i}):e))))),null)}function UM(t){let{routes:e,state:n}=t;return tR(e,void 0,n)}const BM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=E.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,h=RM(e,AM),{basename:f}=E.useContext(Qa),m,y=!1;if(typeof u=="string"&&zM.test(u)&&(m=u,BM))try{let _=new URL(window.location.href),g=u.startsWith("//")?new URL(_.protocol+u):new URL(u),S=Ga(g.pathname,f);g.origin===_.origin&&S!=null?u=S+g.search+g.hash:y=!0}catch{}let x=dM(u,{relative:i}),w=HM(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function v(_){r&&r(_),_.defaultPrevented||w(_)}return E.createElement("a",Fu({},h,{href:m||x,onClick:y||s?r:v,ref:n,target:l}))});var Gw;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Gw||(Gw={}));var Qw;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Qw||(Qw={}));function HM(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=e===void 0?{}:e,l=Ts(),u=vo(),c=eR(t,{relative:o});return E.useCallback(d=>{if(PM(d,n)){d.preventDefault();let h=r!==void 0?r:oo(u)===oo(c);l(t,{replace:h,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,t,s,o,a])}const sR=E.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Af=E.createContext({}),y0=E.createContext(null),kf=typeof document<"u",WM=kf?E.useLayoutEffect:E.useEffect,oR=E.createContext({strict:!1});function KM(t,e,n,r){const{visualElement:i}=E.useContext(Af),s=E.useContext(oR),o=E.useContext(y0),a=E.useContext(sR).reducedMotion,l=E.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;E.useInsertionEffect(()=>{u&&u.update(n,o)});const c=E.useRef(!!window.HandoffAppearAnimations);return WM(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Zo(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qM(t,e,n){return E.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Zo(n)&&(n.current=r))},[e])}function ju(t){return typeof t=="string"||Array.isArray(t)}function Nf(t){return typeof t=="object"&&typeof t.start=="function"}const v0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...v0];function Df(t){return Nf(t.animate)||_0.some(e=>ju(t[e]))}function aR(t){return!!(Df(t)||t.variants)}function GM(t,e){if(Df(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ju(n)?n:void 0,animate:ju(r)?r:void 0}}return t.inherit!==!1?e:{}}function QM(t){const{initial:e,animate:n}=GM(t,E.useContext(Af));return E.useMemo(()=>({initial:e,animate:n}),[Yw(e),Yw(n)])}function Yw(t){return Array.isArray(t)?t.join(" "):t}const Xw={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"]},$u={};for(const t in Xw)$u[t]={isEnabled:e=>Xw[t].some(n=>!!e[n])};function YM(t){for(const e in t)$u[e]={...$u[e],...t[e]}}const lR=E.createContext({}),uR=E.createContext({}),XM=Symbol.for("motionComponentSymbol");function JM({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&YM(t);function s(a,l){let u;const c={...E.useContext(sR),...a,layoutId:ZM(a)},{isStatic:d}=c,h=QM(a),f=r(a,d);if(!d&&kf){h.visualElement=KM(i,f,c,e);const m=E.useContext(uR),y=E.useContext(oR).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,y,t,m))}return E.createElement(Af.Provider,{value:h},u&&h.visualElement?E.createElement(u,{visualElement:h.visualElement,...c}):null,n(i,a,qM(f,h.visualElement,l),f,d,h.visualElement))}const o=E.forwardRef(s);return o[XM]=i,o}function ZM({layoutId:t}){const e=E.useContext(lR).id;return e&&t!==void 0?e+"-"+t:t}function eO(t){function e(r,i={}){return JM(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const tO=["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 w0(t){return typeof t!="string"||t.includes("-")?!1:!!(tO.indexOf(t)>-1||/[A-Z]/.test(t))}const Sh={};function nO(t){Object.assign(Sh,t)}const yc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_o=new Set(yc);function cR(t,{layout:e,layoutId:n}){return _o.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Sh[t]||t==="opacity")}const Fn=t=>!!(t&&t.getVelocity),rO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iO=yc.length;function sO(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),hR=dR("--"),wy=dR("var(--"),oO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,aO=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ds=(t,e,n)=>Math.min(Math.max(n,t),e),wo={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},su={...wo,transform:t=>ds(0,1,t)},ud={...wo,default:1},ou=t=>Math.round(t*1e5)/1e5,Mf=/(-)?([\d]*\.?[\d])+/g,fR=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vc(t){return typeof t=="string"}const _c=t=>({test:e=>vc(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Oi=_c("deg"),Hr=_c("%"),se=_c("px"),uO=_c("vh"),cO=_c("vw"),Jw={...Hr,parse:t=>Hr.parse(t)/100,transform:t=>Hr.transform(t*100)},Zw={...wo,transform:Math.round},pR={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,size:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,rotate:Oi,rotateX:Oi,rotateY:Oi,rotateZ:Oi,scale:ud,scaleX:ud,scaleY:ud,scaleZ:ud,skew:Oi,skewX:Oi,skewY:Oi,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:su,originX:Jw,originY:Jw,originZ:se,zIndex:Zw,fillOpacity:su,strokeOpacity:su,numOctaves:Zw};function E0(t,e,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const d in e){const h=e[d];if(hR(d)){s[d]=h;continue}const f=pR[d],m=aO(h,f);if(_o.has(d)){if(l=!0,o[d]=m,!c)continue;h!==(f.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):i[d]=m}if(e.transform||(l||r?i.transform=sO(t.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:f=0}=a;i.transformOrigin=`${d} ${h} ${f}`}}const x0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mR(t,e,n){for(const r in e)!Fn(e[r])&&!cR(r,n)&&(t[r]=e[r])}function dO({transformTemplate:t},e,n){return E.useMemo(()=>{const r=x0();return E0(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function hO(t,e,n){const r=t.style||{},i={};return mR(i,r,t),Object.assign(i,dO(t,e,n)),t.transformValues?t.transformValues(i):i}function fO(t,e,n){const r={},i=hO(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const pO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ih(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||pO.has(t)}let gR=t=>!Ih(t);function mO(t){t&&(gR=e=>e.startsWith("on")?!Ih(e):t(e))}try{mO(require("@emotion/is-prop-valid").default)}catch{}function gO(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(gR(i)||n===!0&&Ih(i)||!e&&!Ih(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function eE(t,e,n){return typeof t=="string"?t:se.transform(e+n*t)}function yO(t,e,n){const r=eE(e,t.x,t.width),i=eE(n,t.y,t.height);return`${r} ${i}`}const vO={offset:"stroke-dashoffset",array:"stroke-dasharray"},_O={offset:"strokeDashoffset",array:"strokeDasharray"};function wO(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?vO:_O;t[s.offset]=se.transform(-r);const o=se.transform(e),a=se.transform(n);t[s.array]=`${o} ${a}`}function T0(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,h){if(E0(t,u,c,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:m,dimensions:y}=t;f.transform&&(y&&(m.transform=f.transform),delete f.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=yO(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&wO(f,o,a,l,!1)}const yR=()=>({...x0(),attrs:{}}),S0=t=>typeof t=="string"&&t.toLowerCase()==="svg";function EO(t,e,n,r){const i=E.useMemo(()=>{const s=yR();return T0(s,e,{enableHardwareAcceleration:!1},S0(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};mR(s,t.style,t),i.style={...s,...i.style}}return i}function xO(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(w0(n)?EO:fO)(r,s,o,n),c={...gO(r,typeof n=="string",t),...l,ref:i},{children:d}=r,h=E.useMemo(()=>Fn(d)?d.get():d,[d]);return E.createElement(n,{...c,children:h})}}const I0=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vR(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const _R=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 wR(t,e,n,r){vR(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(_R.has(i)?i:I0(i),e.attrs[i])}function C0(t,e){const{style:n}=t,r={};for(const i in n)(Fn(n[i])||e.style&&Fn(e.style[i])||cR(i,t))&&(r[i]=n[i]);return r}function ER(t,e){const n=C0(t,e);for(const r in t)if(Fn(t[r])||Fn(e[r])){const i=yc.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function R0(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function TO(t){const e=E.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ch=t=>Array.isArray(t),SO=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),IO=t=>Ch(t)?t[t.length-1]||0:t;function Vd(t){const e=Fn(t)?t.get():t;return SO(e)?e.toValue():e}function CO({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,s){const o={latestValues:RO(r,i,s,t),renderState:e()};return n&&(o.mount=a=>n(r,a,o)),o}const xR=t=>(e,n)=>{const r=E.useContext(Af),i=E.useContext(y0),s=()=>CO(t,e,r,i);return n?s():TO(s)};function RO(t,e,n,r){const i={},s=r(t,{});for(const h in s)i[h]=Vd(s[h]);let{initial:o,animate:a}=t;const l=Df(t),u=aR(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!Nf(d)&&(Array.isArray(d)?d:[d]).forEach(f=>{const m=R0(t,f);if(!m)return;const{transitionEnd:y,transition:x,...w}=m;for(const v in w){let _=w[v];if(Array.isArray(_)){const g=c?_.length-1:0;_=_[g]}_!==null&&(i[v]=_)}for(const v in y)i[v]=y[v]}),i}const gt=t=>t;class tE{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function bO(t){let e=new tE,n=new tE,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,h=d?e:n;return u&&o.add(l),h.add(l)&&d&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let u=0;u(d[h]=bO(()=>n=!0),d),{}),o=d=>s[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,PO),1),i.timestamp=d,i.isProcessing=!0,cd.forEach(o),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:cd.reduce((d,h)=>{const f=s[h];return d[h]=(m,y=!1,x=!1)=>(n||l(),f.schedule(m,y,x)),d},{}),cancel:d=>cd.forEach(h=>s[h].cancel(d)),state:i,steps:s}}const{schedule:Ze,cancel:wi,state:Bt,steps:Mm}=AO(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),kO={useVisualState:xR({scrapeMotionValuesFromProps:ER,createRenderState:yR,onMount:(t,e,{renderState:n,latestValues:r})=>{Ze.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ze.render(()=>{T0(n,r,{enableHardwareAcceleration:!1},S0(e.tagName),t.transformTemplate),wR(e,n)})}})},NO={useVisualState:xR({scrapeMotionValuesFromProps:C0,createRenderState:x0})};function DO(t,{forwardMotionProps:e=!1},n,r){return{...w0(t)?kO:NO,preloadedFeatures:n,useRender:xO(e),createVisualElement:r,Component:t}}function oi(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const TR=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Of(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const MO=t=>e=>TR(e)&&t(e,Of(e));function hi(t,e,n,r){return oi(t,e,MO(n),r)}const OO=(t,e)=>n=>e(t(n)),rs=(...t)=>t.reduce(OO);function SR(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const nE=SR("dragHorizontal"),rE=SR("dragVertical");function IR(t){let e=!1;if(t==="y")e=rE();else if(t==="x")e=nE();else{const n=nE(),r=rE();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function CR(){const t=IR(!0);return t?(t(),!1):!0}class Ss{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iE(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||CR())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&Ze.update(()=>a[r](s,o))};return hi(t.current,n,i,{passive:!t.getProps()[r]})}class LO extends Ss{mount(){this.unmount=rs(iE(this.node,!0),iE(this.node,!1))}unmount(){}}class VO extends Ss{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=rs(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RR=(t,e)=>e?t===e?!0:RR(t,e.parentElement):!1;function Om(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Of(n))}class FO extends Ss{constructor(){super(...arguments),this.removeStartListeners=gt,this.removeEndListeners=gt,this.removeAccessibleListeners=gt,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),s=hi(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Ze.update(()=>{RR(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=hi(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=rs(s,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Om("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Ze.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=oi(this.node.current,"keyup",o),Om("down",(a,l)=>{this.startPress(a,l)})},n=oi(this.node.current,"keydown",e),r=()=>{this.isPressing&&Om("cancel",(s,o)=>this.cancelPress(s,o))},i=oi(this.node.current,"blur",r);this.removeAccessibleListeners=rs(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ze.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!CR()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ze.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=hi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=oi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rs(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ey=new WeakMap,Lm=new WeakMap,jO=t=>{const e=Ey.get(t.target);e&&e(t)},$O=t=>{t.forEach(jO)};function UO({root:t,...e}){const n=t||document;Lm.has(n)||Lm.set(n,{});const r=Lm.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver($O,{root:t,...e})),r[i]}function BO(t,e,n){const r=UO(e);return Ey.set(t,n),r.observe(t),()=>{Ey.delete(t),r.unobserve(t)}}const zO={some:0,all:1};class HO extends Ss{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zO[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!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(),h=u?c:d;h&&h(l)};return BO(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(WO(e,n))&&this.startObserver()}unmount(){}}function WO({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const KO={inView:{Feature:HO},tap:{Feature:FO},focus:{Feature:VO},hover:{Feature:LO}};function bR(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;re[r]=n.get()),e}function GO(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Lf(t,e,n){const r=t.getProps();return R0(r,e,n!==void 0?n:r.custom,qO(t),GO(t))}const QO="framerAppearId",YO="data-"+I0(QO);let XO=gt,b0=gt;const is=t=>t*1e3,fi=t=>t/1e3,JO={current:!1},PR=t=>Array.isArray(t)&&typeof t[0]=="number";function AR(t){return!!(!t||typeof t=="string"&&kR[t]||PR(t)||Array.isArray(t)&&t.every(AR))}const jl=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function NR(t){if(t)return PR(t)?jl(t):Array.isArray(t)?t.map(NR):kR[t]}function ZO(t,e,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=NR(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function eL(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const DR=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,tL=1e-7,nL=12;function rL(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=DR(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>tL&&++arL(s,0,1,t,n);return s=>s===0||s===1?s:DR(i(s),e,r)}const iL=wc(.42,0,1,1),sL=wc(0,0,.58,1),MR=wc(.42,0,.58,1),oL=t=>Array.isArray(t)&&typeof t[0]!="number",OR=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,LR=t=>e=>1-t(1-e),VR=t=>1-Math.sin(Math.acos(t)),P0=LR(VR),aL=OR(P0),FR=wc(.33,1.53,.69,.99),A0=LR(FR),lL=OR(A0),uL=t=>(t*=2)<1?.5*A0(t):.5*(2-Math.pow(2,-10*(t-1))),cL={linear:gt,easeIn:iL,easeInOut:MR,easeOut:sL,circIn:VR,circInOut:aL,circOut:P0,backIn:A0,backInOut:lL,backOut:FR,anticipate:uL},sE=t=>{if(Array.isArray(t)){b0(t.length===4);const[e,n,r,i]=t;return wc(e,n,r,i)}else if(typeof t=="string")return cL[t];return t},k0=(t,e)=>n=>!!(vc(n)&&lO.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),jR=(t,e,n)=>r=>{if(!vc(r))return r;const[i,s,o,a]=r.match(Mf);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},dL=t=>ds(0,255,t),Vm={...wo,transform:t=>Math.round(dL(t))},Ws={test:k0("rgb","red"),parse:jR("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Vm.transform(t)+", "+Vm.transform(e)+", "+Vm.transform(n)+", "+ou(su.transform(r))+")"};function hL(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xy={test:k0("#"),parse:hL,transform:Ws.transform},ea={test:k0("hsl","hue"),parse:jR("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Hr.transform(ou(e))+", "+Hr.transform(ou(n))+", "+ou(su.transform(r))+")"},xn={test:t=>Ws.test(t)||xy.test(t)||ea.test(t),parse:t=>Ws.test(t)?Ws.parse(t):ea.test(t)?ea.parse(t):xy.parse(t),transform:t=>vc(t)?t:t.hasOwnProperty("red")?Ws.transform(t):ea.transform(t)},lt=(t,e,n)=>-n*t+n*e+t;function Fm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fL({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Fm(l,a,t+1/3),s=Fm(l,a,t),o=Fm(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const jm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},pL=[xy,Ws,ea],mL=t=>pL.find(e=>e.test(t));function oE(t){const e=mL(t);let n=e.parse(t);return e===ea&&(n=fL(n)),n}const $R=(t,e)=>{const n=oE(t),r=oE(e),i={...n};return s=>(i.red=jm(n.red,r.red,s),i.green=jm(n.green,r.green,s),i.blue=jm(n.blue,r.blue,s),i.alpha=lt(n.alpha,r.alpha,s),Ws.transform(i))};function gL(t){var e,n;return isNaN(t)&&vc(t)&&(((e=t.match(Mf))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(fR))===null||n===void 0?void 0:n.length)||0)>0}const UR={regex:oO,countKey:"Vars",token:"${v}",parse:gt},BR={regex:fR,countKey:"Colors",token:"${c}",parse:xn.parse},zR={regex:Mf,countKey:"Numbers",token:"${n}",parse:wo.parse};function $m(t,{regex:e,countKey:n,token:r,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+n]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(i)))}function Rh(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&$m(n,UR),$m(n,BR),$m(n,zR),n}function HR(t){return Rh(t).values}function WR(t){const{values:e,numColors:n,numVars:r,tokenised:i}=Rh(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function vL(t){const e=HR(t);return WR(t)(e.map(yL))}const hs={test:gL,parse:HR,createTransformer:WR,getAnimatableNone:vL},KR=(t,e)=>n=>`${n>0?e:t}`;function qR(t,e){return typeof t=="number"?n=>lt(t,e,n):xn.test(t)?$R(t,e):t.startsWith("var(")?KR(t,e):QR(t,e)}const GR=(t,e)=>{const n=[...t],r=n.length,i=t.map((s,o)=>qR(s,e[o]));return s=>{for(let o=0;o{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=qR(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},QR=(t,e)=>{const n=hs.createTransformer(e),r=Rh(t),i=Rh(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?rs(GR(r.values,i.values),n):KR(t,e)},Uu=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},aE=(t,e)=>n=>lt(t,e,n);function wL(t){return typeof t=="number"?aE:typeof t=="string"?xn.test(t)?$R:QR:Array.isArray(t)?GR:typeof t=="object"?_L:aE}function EL(t,e,n){const r=[],i=n||wL(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=EL(e,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(ds(t[0],t[s-1],u)):l}function xL(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Uu(0,e,r);t.push(lt(n,1,i))}}function TL(t){const e=[0];return xL(e,t.length-1),e}function SL(t,e){return t.map(n=>n*e)}function IL(t,e){return t.map(()=>e||MR).splice(0,t.length-1)}function bh({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=oL(r)?r.map(sE):sE(r),s={done:!1,value:e[0]},o=SL(n&&n.length===e.length?n:TL(e),t),a=YR(o,e,{ease:Array.isArray(i)?i:IL(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function XR(t,e){return e?t*(1e3/e):0}const CL=5;function JR(t,e,n){const r=Math.max(e-CL,0);return XR(n-t(r),e-r)}const Um=.001,RL=.01,lE=10,bL=.05,PL=1;function AL({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,s;XO(t<=is(lE));let o=1-e;o=ds(bL,PL,o),t=ds(RL,lE,fi(t)),o<1?(i=u=>{const c=u*o,d=c*t,h=c-n,f=Ty(u,o),m=Math.exp(-d);return Um-h/f*m},s=u=>{const d=u*o*t,h=d*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-d),y=Ty(Math.pow(u,2),o);return(-i(u)+Um>0?-1:1)*((h-f)*m)/y}):(i=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-Um+c*d},s=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=NL(i,s,a);if(t=is(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:t}}}const kL=12;function NL(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function OL(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!uE(t,ML)&&uE(t,DL)){const n=AL(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function ZR({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=OL(r),f=c?-fi(c):0,m=l/(2*Math.sqrt(a*u)),y=s-i,x=fi(Math.sqrt(a/u)),w=Math.abs(y)<5;n||(n=w?.01:2),e||(e=w?.005:.5);let v;if(m<1){const _=Ty(x,m);v=g=>{const S=Math.exp(-m*x*g);return s-S*((f+m*x*y)/_*Math.sin(_*g)+y*Math.cos(_*g))}}else if(m===1)v=_=>s-Math.exp(-x*_)*(y+(f+x*y)*_);else{const _=x*Math.sqrt(m*m-1);v=g=>{const S=Math.exp(-m*x*g),I=Math.min(_*g,300);return s-S*((f+m*x*y)*Math.sinh(I)+_*y*Math.cosh(I))/_}}return{calculatedDuration:h&&d||null,next:_=>{const g=v(_);if(h)o.done=_>=d;else{let S=f;_!==0&&(m<1?S=JR(v,_,g):S=0);const I=Math.abs(S)<=n,T=Math.abs(s-g)<=e;o.done=I&&T}return o.value=o.done?s:g,o}}}function cE({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},f=C=>a!==void 0&&Cl,m=C=>a===void 0?l:l===void 0||Math.abs(a-C)-y*Math.exp(-C/r),_=C=>w+v(C),g=C=>{const k=v(C),P=_(C);h.done=Math.abs(k)<=u,h.value=h.done?w:P};let S,I;const T=C=>{f(h.value)&&(S=C,I=ZR({keyframes:[h.value,m(h.value)],velocity:JR(_,C,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:C=>{let k=!1;return!I&&S===void 0&&(k=!0,g(C),T(C)),S!==void 0&&C>S?I.next(C-S):(!k&&g(C),h)}}}const LL=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ze.update(e,!0),stop:()=>wi(e),now:()=>Bt.isProcessing?Bt.timestamp:performance.now()}},dE=2e4;function hE(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e=dE?1/0:e}const VL={decay:cE,inertia:cE,tween:bh,keyframes:bh,spring:ZR};function Ph({autoplay:t=!0,delay:e=0,driver:n=LL,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let f=1,m=!1,y,x;const w=()=>{x=new Promise(G=>{y=G})};w();let v;const _=VL[i]||bh;let g;_!==bh&&typeof r[0]!="number"&&(g=YR([0,100],r,{clamp:!1}),r=[0,100]);const S=_({...h,keyframes:r});let I;a==="mirror"&&(I=_({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",C=null,k=null,P=null;S.calculatedDuration===null&&s&&(S.calculatedDuration=hE(S));const{calculatedDuration:L}=S;let B=1/0,U=1/0;L!==null&&(B=L+o,U=B*(s+1)-o);let O=0;const D=G=>{if(k===null)return;f>0&&(k=Math.min(k,G)),f<0&&(k=Math.min(G-U/f,k)),C!==null?O=C:O=Math.round(G-k)*f;const J=O-e*(f>=0?1:-1),we=f>=0?J<0:J>U;O=Math.max(J,0),T==="finished"&&C===null&&(O=U);let te=O,Ie=S;if(s){const _e=O/B;let Qe=Math.floor(_e),me=_e%1;!me&&_e>=1&&(me=1),me===1&&Qe--,Qe=Math.min(Qe,s+1);const $e=!!(Qe%2);$e&&(a==="reverse"?(me=1-me,o&&(me-=o/B)):a==="mirror"&&(Ie=I));let ae=ds(0,1,me);O>U&&(ae=a==="reverse"&&$e?1:0),te=ae*B}const ge=we?{done:!1,value:r[0]}:Ie.next(te);g&&(ge.value=g(ge.value));let{done:tt}=ge;!we&&L!==null&&(tt=f>=0?O>=U:O<=0);const Ot=C===null&&(T==="finished"||T==="running"&&tt);return d&&d(ge.value),Ot&&N(),ge},z=()=>{v&&v.stop(),v=void 0},q=()=>{T="idle",z(),y(),w(),k=P=null},N=()=>{T="finished",c&&c(),z(),y()},j=()=>{if(m)return;v||(v=n(D));const G=v.now();l&&l(),C!==null?k=G-C:(!k||T==="finished")&&(k=G),T==="finished"&&w(),P=k,C=null,T="running",v.start()};t&&j();const H={then(G,J){return x.then(G,J)},get time(){return fi(O)},set time(G){G=is(G),O=G,C!==null||!v||f===0?C=G:k=v.now()-G/f},get duration(){const G=S.calculatedDuration===null?hE(S):S.calculatedDuration;return fi(G)},get speed(){return f},set speed(G){G===f||!v||(f=G,H.time=fi(O))},get state(){return T},play:j,pause:()=>{T="paused",C=O},stop:()=>{m=!0,T!=="idle"&&(T="idle",u&&u(),q())},cancel:()=>{P!==null&&D(P),q()},complete:()=>{T="finished"},sample:G=>(k=0,D(G))};return H}function FL(t){let e;return()=>(e===void 0&&(e=t()),e)}const jL=FL(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$L=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),dd=10,UL=2e4,BL=(t,e)=>e.type==="spring"||t==="backgroundColor"||!AR(e.ease);function zL(t,e,{onUpdate:n,onComplete:r,...i}){if(!(jL()&&$L.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const u=()=>{l=new Promise(v=>{a=v})};u();let{keyframes:c,duration:d=300,ease:h,times:f}=i;if(BL(e,i)){const v=Ph({...i,repeat:0,delay:0});let _={done:!1,value:c[0]};const g=[];let S=0;for(;!_.done&&Sm.cancel(),x=()=>{Ze.update(y),a(),u()};return m.onfinish=()=>{t.set(eL(c,i)),r&&r(),x()},{then(v,_){return l.then(v,_)},attachTimeline(v){return m.timeline=v,m.onfinish=null,gt},get time(){return fi(m.currentTime||0)},set time(v){m.currentTime=is(v)},get speed(){return m.playbackRate},set speed(v){m.playbackRate=v},get duration(){return fi(d)},play:()=>{o||(m.play(),wi(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:v}=m;if(v){const _=Ph({...i,autoplay:!1});t.setWithVelocity(_.sample(v-dd).value,_.sample(v).value,dd)}x()},complete:()=>m.finish(),cancel:x}}function HL({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:gt,pause:gt,stop:gt,then:s=>(s(),Promise.resolve()),cancel:gt,complete:gt});return e?Ph({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const WL={type:"spring",stiffness:500,damping:25,restSpeed:10},KL=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),qL={type:"keyframes",duration:.8},GL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QL=(t,{keyframes:e})=>e.length>2?qL:_o.has(t)?t.startsWith("scale")?KL(e[1]):WL:GL,Sy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(hs.test(e)||e==="0")&&!e.startsWith("url(")),YL=new Set(["brightness","contrast","saturate","opacity"]);function XL(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Mf)||[];if(!r)return t;const i=n.replace(r,"");let s=YL.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const JL=/([a-z-]*)\(.*?\)/g,Iy={...hs,getAnimatableNone:t=>{const e=t.match(JL);return e?e.map(XL).join(" "):t}},ZL={...pR,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:Iy,WebkitFilter:Iy},N0=t=>ZL[t];function eb(t,e){let n=N0(t);return n!==Iy&&(n=hs),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tb=t=>/^0[^.\s]+$/.test(t);function eV(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||tb(t)}function tV(t,e,n,r){const i=Sy(e,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:t.get();let a;const l=[];for(let u=0;ui=>{const s=nb(r,t)||{},o=s.delay||r.delay||0;let{elapsed:a=0}=r;a=a-is(o);const l=tV(e,t,n,s),u=l[0],c=l[l.length-1],d=Sy(t,u),h=Sy(t,c);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(nV(s)||(f={...f,...QL(t,f)}),f.duration&&(f.duration=is(f.duration)),f.repeatDelay&&(f.repeatDelay=is(f.repeatDelay)),!d||!h||JO.current||s.type===!1)return HL(f);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=zL(e,t,f);if(m)return m}return Ph(f)};function Ah(t){return!!(Fn(t)&&t.add)}const rb=t=>/^\-?\d*\.?\d+$/.test(t);function M0(t,e){t.indexOf(e)===-1&&t.push(e)}function O0(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class L0{constructor(){this.subscriptions=[]}add(e){return M0(this.subscriptions,e),()=>O0(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s!isNaN(parseFloat(t));class iV{constructor(e,n={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=Bt;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ze.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ze.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=rV(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new L0);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?XR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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 Pa(t,e){return new iV(t,e)}const ib=t=>e=>e.test(t),sV={test:t=>t==="auto",parse:t=>t},sb=[wo,se,Hr,Oi,cO,uO,sV],Tl=t=>sb.find(ib(t)),oV=[...sb,xn,hs],aV=t=>oV.find(ib(t));function lV(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pa(n))}function uV(t,e){const n=Lf(t,e);let{transitionEnd:r={},transition:i={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const a=IO(s[o]);lV(t,o,a)}}function cV(t,e,n){var r,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(d))),u.push(y)}return o&&Promise.all(u).then(()=>{o&&uV(t,o)}),u}function Cy(t,e,n={}){const r=Lf(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(ob(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return pV(t,e,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function pV(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(mV).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Cy(u,e,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function mV(t,e){return t.sortNodePosition(e)}function gV(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Cy(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Cy(t,e,n);else{const i=typeof e=="function"?Lf(t,e,n.custom):e;r=Promise.all(ob(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const yV=[...v0].reverse(),vV=v0.length;function _V(t){return e=>Promise.all(e.map(({animation:n,options:r})=>gV(t,n,r)))}function wV(t){let e=_V(t);const n=xV();let r=!0;const i=(l,u)=>{const c=Lf(t,u);if(c){const{transition:d,transitionEnd:h,...f}=c;l={...l,...f,...h}}return l};function s(l){e=l(t)}function o(l,u){const c=t.getProps(),d=t.getVariantContext(!0)||{},h=[],f=new Set;let m={},y=1/0;for(let w=0;wy&&S;const P=Array.isArray(g)?g:[g];let L=P.reduce(i,{});I===!1&&(L={});const{prevResolvedValues:B={}}=_,U={...B,...L},O=D=>{k=!0,f.delete(D),_.needsAnimating[D]=!0};for(const D in U){const z=L[D],q=B[D];m.hasOwnProperty(D)||(z!==q?Ch(z)&&Ch(q)?!bR(z,q)||C?O(D):_.protectedKeys[D]=!0:z!==void 0?O(D):f.add(D):z!==void 0&&f.has(D)?O(D):_.protectedKeys[D]=!0)}_.prevProp=g,_.prevResolvedValues=L,_.isActive&&(m={...m,...L}),r&&t.blockInitialAnimation&&(k=!1),k&&!T&&h.push(...P.map(D=>({animation:D,options:{type:v,...l}})))}if(f.size){const w={};f.forEach(v=>{const _=t.getBaseTarget(v);_!==void 0&&(w[v]=_)}),h.push({animation:w})}let x=!!h.length;return r&&c.initial===!1&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(h):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=o(c,l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function EV(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bR(e,t):!1}function Ns(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xV(){return{animate:Ns(!0),whileInView:Ns(),whileHover:Ns(),whileTap:Ns(),whileDrag:Ns(),whileFocus:Ns(),exit:Ns()}}class TV extends Ss{constructor(e){super(e),e.animationState||(e.animationState=wV(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Nf(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let SV=0;class IV extends Ss{constructor(){super(...arguments),this.id=SV++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&s.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const CV={animation:{Feature:TV},exit:{Feature:IV}},fE=(t,e)=>Math.abs(t-e);function RV(t,e){const n=fE(t.x,e.x),r=fE(t.y,e.y);return Math.sqrt(n**2+r**2)}class ab{constructor(e,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=zm(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=RV(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:h}=u,{timestamp:f}=Bt;this.history.push({...h,timestamp:f});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Bm(c,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:h}=this.handlers,f=zm(u.type==="pointercancel"?this.lastMoveEventInfo:Bm(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,f),h&&h(u,f)},!TR(e))return;this.handlers=n,this.transformPagePoint=r;const i=Of(e),s=Bm(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=Bt;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=n;l&&l(e,zm(s,this.history)),this.removeListeners=rs(hi(window,"pointermove",this.handlePointerMove),hi(window,"pointerup",this.handlePointerUp),hi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),wi(this.updatePoint)}}function Bm(t,e){return e?{point:e(t.point)}:t}function pE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zm({point:t},e){return{point:t,delta:pE(t,lb(e)),offset:pE(t,bV(e)),velocity:PV(e,.1)}}function bV(t){return t[0]}function lb(t){return t[t.length-1]}function PV(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=lb(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>is(e)));)n--;if(!r)return{x:0,y:0};const s=fi(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gn(t){return t.max-t.min}function Ry(t,e=0,n=.01){return Math.abs(t-e)<=n}function mE(t,e,n,r=.5){t.origin=r,t.originPoint=lt(e.min,e.max,t.origin),t.scale=Gn(n)/Gn(e),(Ry(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=lt(n.min,n.max,t.origin)-t.originPoint,(Ry(t.translate)||isNaN(t.translate))&&(t.translate=0)}function au(t,e,n,r){mE(t.x,e.x,n.x,r?r.originX:void 0),mE(t.y,e.y,n.y,r?r.originY:void 0)}function gE(t,e,n){t.min=n.min+e.min,t.max=t.min+Gn(e)}function AV(t,e,n){gE(t.x,e.x,n.x),gE(t.y,e.y,n.y)}function yE(t,e,n){t.min=e.min-n.min,t.max=t.min+Gn(e)}function lu(t,e,n){yE(t.x,e.x,n.x),yE(t.y,e.y,n.y)}function kV(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?lt(n,t,r.max):Math.min(t,n)),t}function vE(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function NV(t,{top:e,left:n,bottom:r,right:i}){return{x:vE(t.x,n,i),y:vE(t.y,e,r)}}function _E(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=Uu(e.min,e.max-r,t.min):r>i&&(n=Uu(t.min,t.max-i,e.min)),ds(0,1,n)}function OV(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const by=.35;function LV(t=by){return t===!1?t=0:t===!0&&(t=by),{x:wE(t,"left","right"),y:wE(t,"top","bottom")}}function wE(t,e,n){return{min:EE(t,e),max:EE(t,n)}}function EE(t,e){return typeof t=="number"?t:t[e]||0}const xE=()=>({translate:0,scale:1,origin:0,originPoint:0}),ta=()=>({x:xE(),y:xE()}),TE=()=>({min:0,max:0}),Rt=()=>({x:TE(),y:TE()});function Mr(t){return[t("x"),t("y")]}function ub({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function VV({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function FV(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hm(t){return t===void 0||t===1}function Py({scale:t,scaleX:e,scaleY:n}){return!Hm(t)||!Hm(e)||!Hm(n)}function Ls(t){return Py(t)||cb(t)||t.z||t.rotate||t.rotateX||t.rotateY}function cb(t){return SE(t.x)||SE(t.y)}function SE(t){return t&&t!=="0%"}function kh(t,e,n){const r=t-n,i=e*r;return n+i}function IE(t,e,n,r,i){return i!==void 0&&(t=kh(t,i,r)),kh(t,n,r)+e}function Ay(t,e=0,n=1,r,i){t.min=IE(t.min,e,n,r,i),t.max=IE(t.max,e,n,r,i)}function db(t,{x:e,y:n}){Ay(t.x,e.translate,e.scale,e.originPoint),Ay(t.y,n.translate,n.scale,n.originPoint)}function jV(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Fi(t,e){t.min=t.min+e,t.max=t.max+e}function RE(t,e,[n,r,i]){const s=e[i]!==void 0?e[i]:.5,o=lt(t.min,t.max,s);Ay(t,e[n],e[r],o,e.scale)}const $V=["x","scaleX","originX"],UV=["y","scaleY","originY"];function na(t,e){RE(t.x,e,$V),RE(t.y,e,UV)}function hb(t,e){return ub(FV(t.getBoundingClientRect(),e))}function BV(t,e,n){const r=hb(t,n),{scroll:i}=e;return i&&(Fi(r.x,i.offset.x),Fi(r.y,i.offset.y)),r}const zV=new WeakMap;class HV{constructor(e){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=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Of(l,"page").point)},s=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:h}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=IR(c),!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),Mr(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Hr.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[m];w&&(y=Gn(w)*(parseFloat(y)/100))}}this.originPoint[m]=y}),h&&Ze.update(()=>h(l,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},o=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:h,onDrag:f}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=WV(m),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),f&&f(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new ab(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ze.update(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.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(e,n,r){const{drag:i}=this.getProps();if(!r||!hd(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=kV(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;e&&Zo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=NV(r.layoutBox,e):this.constraints=!1,this.elastic=LV(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Mr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=OV(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zo(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=BV(r,i.root,this.visualElement.getTransformPagePoint());let o=DV(i.layout.layoutBox,s);if(n){const a=n(VV(o));this.hasMutatedConstraints=!!a,a&&(o=ub(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Mr(c=>{if(!hd(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=i?200:1e6,f=i?40:1e7,m={type:"inertia",velocity:r?e[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(D0(e,r,0,n))}stopAnimation(){Mr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Mr(n=>{const{drag:r}=this.getProps();if(!hd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-lt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Mr(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=MV({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Mr(o=>{if(!hd(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(lt(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;zV.set(this.visualElement,this);const e=this.visualElement.current,n=hi(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Zo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Mr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=by,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function hd(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function WV(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class KV extends Ss{constructor(e){super(e),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new HV(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const bE=t=>(e,n)=>{t&&Ze.update(()=>t(e,n))};class qV extends Ss{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(e){this.session=new ab(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:bE(e),onStart:bE(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Ze.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=hi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function GV(){const t=E.useContext(y0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=E.useId();return E.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Sl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(se.test(t))t=parseFloat(t);else return t;const n=PE(t,e.target.x),r=PE(t,e.target.y);return`${n}% ${r}%`}},QV={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=hs.parse(t);if(i.length>5)return r;const s=hs.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=lt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class YV extends Nt.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;nO(XV),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Fd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Ze.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fb(t){const[e,n]=GV(),r=E.useContext(lR);return Nt.createElement(YV,{...t,layoutGroup:r,switchLayoutGroup:E.useContext(uR),isPresent:e,safeToRemove:n})}const XV={borderRadius:{...Sl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sl,borderTopRightRadius:Sl,borderBottomLeftRadius:Sl,borderBottomRightRadius:Sl,boxShadow:QV},pb=["TopLeft","TopRight","BottomLeft","BottomRight"],JV=pb.length,AE=t=>typeof t=="string"?parseFloat(t):t,kE=t=>typeof t=="number"||se.test(t);function ZV(t,e,n,r,i,s){i?(t.opacity=lt(0,n.opacity!==void 0?n.opacity:1,e5(r)),t.opacityExit=lt(e.opacity!==void 0?e.opacity:1,0,t5(r))):s&&(t.opacity=lt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ore?1:n(Uu(t,e,r))}function DE(t,e){t.min=e.min,t.max=e.max}function nr(t,e){DE(t.x,e.x),DE(t.y,e.y)}function ME(t,e,n,r,i){return t-=e,t=kh(t,1/n,r),i!==void 0&&(t=kh(t,1/i,r)),t}function n5(t,e=0,n=1,r=.5,i,s=t,o=t){if(Hr.test(e)&&(e=parseFloat(e),e=lt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=lt(s.min,s.max,r);t===s&&(a-=e),t.min=ME(t.min,e,n,a,i),t.max=ME(t.max,e,n,a,i)}function OE(t,e,[n,r,i],s,o){n5(t,e[n],e[r],e[i],e.scale,s,o)}const r5=["x","scaleX","originX"],i5=["y","scaleY","originY"];function LE(t,e,n,r){OE(t.x,e,r5,n?n.x:void 0,r?r.x:void 0),OE(t.y,e,i5,n?n.y:void 0,r?r.y:void 0)}function VE(t){return t.translate===0&&t.scale===1}function gb(t){return VE(t.x)&&VE(t.y)}function s5(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function yb(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function FE(t){return Gn(t.x)/Gn(t.y)}class o5{constructor(){this.members=[]}add(e){M0(this.members,e),e.scheduleRender()}remove(e){if(O0(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jE(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(r+=`scale(${o}, ${a})`),r||"none"}const a5=(t,e)=>t.depth-e.depth;class l5{constructor(){this.children=[],this.isDirty=!1}add(e){M0(this.children,e),this.isDirty=!0}remove(e){O0(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(a5),this.isDirty=!1,this.children.forEach(e)}}function u5(t,e){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(wi(r),t(s-e))};return Ze.read(r,!0),()=>wi(r)}function c5(t){window.MotionDebug&&window.MotionDebug.record(t)}function d5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function h5(t,e,n){const r=Fn(t)?t:Pa(t);return r.start(D0("",r,e,n)),r.animation}const $E=["","X","Y","Z"],UE=1e3;let f5=0;const Vs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vb({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=f5++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Vs.totalNodes=Vs.resolvedTargetDeltas=Vs.recalculatedProjection=0,this.nodes.forEach(g5),this.nodes.forEach(E5),this.nodes.forEach(x5),this.nodes.forEach(y5),c5(Vs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=u5(h,250),Fd.hasAnimatedSinceResize&&(Fd.hasAnimatedSinceResize=!1,this.nodes.forEach(zE))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||R5,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!yb(this.targetLayout,m)||f,_=!h&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,_);const g={...nb(y,"layout"),onPlay:x,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g)}else h||zE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wi(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(T5),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(v5),this.sharedNodes.forEach(S5)}scheduleUpdateProjection(){Ze.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ze.postRender(()=>{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=g/1e3;HE(d.x,o.x,S),HE(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),I5(this.relativeTarget,this.relativeTargetOrigin,h,S),_&&s5(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Rt()),nr(_,this.relativeTarget)),y&&(this.animationValues=c,ZV(c,u,this.latestValues,S,v,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{Fd.hasAnimatedSinceResize=!0,this.currentAnimation=h5(0,UE,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(UE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&_b(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Rt();const d=Gn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=Gn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}nr(a,l),na(a,c),au(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new o5),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<$E.length;c++){const d="rotate"+$E[c];l[d]&&(u[d]=l[d],o.setStaticValue(d,0))}o.render();for(const c in u)o.setStaticValue(c,u[c]);o.scheduleRender()}getProjectionStyles(o={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Vd(o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Vd(o.pointerEvents)||""),this.hasProjected&&!Ls(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=jE(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:f,y:m}=this.projectionDelta;u.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in Sh){if(h[y]===void 0)continue;const{correct:x,applyTo:w}=Sh[y],v=u.transform==="none"?h[y]:x(h[y],d);if(w){const _=w.length;for(let g=0;g<_;g++)u[w[g]]=v}else u[y]=v}return this.options.layoutId&&(u.pointerEvents=d===this?Vd(o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(BE),this.root.sharedNodes.clear()}}}function p5(t){t.updateLayout()}function m5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?Mr(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=Gn(h);h.min=r[d].min,h.max=h.min+f}):_b(s,n.layoutBox,r)&&Mr(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=Gn(r[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const a=ta();au(a,r,n.layoutBox);const l=ta();o?au(l,t.applyTransform(i,!0),n.measuredBox):au(l,r,n.layoutBox);const u=!gb(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const m=Rt();lu(m,n.layoutBox,h.layoutBox);const y=Rt();lu(y,r,f.layoutBox),yb(m,y)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function g5(t){Vs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function y5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function v5(t){t.clearSnapshot()}function BE(t){t.clearMeasurements()}function _5(t){t.isLayoutDirty=!1}function w5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function E5(t){t.resolveTargetDelta()}function x5(t){t.calcProjection()}function T5(t){t.resetRotation()}function S5(t){t.removeLeadSnapshot()}function HE(t,e,n){t.translate=lt(e.translate,0,n),t.scale=lt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function WE(t,e,n,r){t.min=lt(e.min,n.min,r),t.max=lt(e.max,n.max,r)}function I5(t,e,n,r){WE(t.x,e.x,n.x,r),WE(t.y,e.y,n.y,r)}function C5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const R5={duration:.45,ease:[.4,0,.1,1]},KE=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),qE=KE("applewebkit/")&&!KE("chrome/")?Math.round:gt;function GE(t){t.min=qE(t.min),t.max=qE(t.max)}function b5(t){GE(t.x),GE(t.y)}function _b(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ry(FE(e),FE(n),.2)}const P5=vb({attachResizeListener:(t,e)=>oi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wm={current:void 0},wb=vb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Wm.current){const t=new P5({});t.mount(window),t.setOptions({layoutScroll:!0}),Wm.current=t}return Wm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),A5={pan:{Feature:qV},drag:{Feature:KV,ProjectionNode:wb,MeasureLayout:fb}},k5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function N5(t){const e=k5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function ky(t,e,n=1){const[r,i]=N5(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return rb(o)?parseFloat(o):o}else return wy(i)?ky(i,e,n+1):i}function D5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const s=i.get();if(!wy(s))return;const o=ky(s,r);o&&i.set(o)});for(const i in e){const s=e[i];if(!wy(s))continue;const o=ky(s,r);o&&(e[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:e,transitionEnd:n}}const M5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Eb=t=>M5.has(t),O5=t=>Object.keys(t).some(Eb),QE=t=>t===wo||t===se,YE=(t,e)=>parseFloat(t.split(", ")[e]),XE=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return YE(i[1],e);{const s=r.match(/^matrix\((.+)\)$/);return s?YE(s[1],t):0}},L5=new Set(["x","y","z"]),V5=yc.filter(t=>!L5.has(t));function F5(t){const e=[];return V5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Aa={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:XE(4,13),y:XE(5,14)};Aa.translateX=Aa.x;Aa.translateY=Aa.y;const j5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=Aa[u](r,s)}),e.render();const l=e.measureViewportBox();return n.forEach(u=>{const c=e.getValue(u);c&&c.jump(a[u]),t[u]=Aa[u](l,s)}),t},$5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(Eb);let s=[],o=!1;const a=[];if(i.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let c=n[l],d=Tl(c);const h=e[l];let f;if(Ch(h)){const m=h.length,y=h[0]===null?1:0;c=h[y],d=Tl(c);for(let x=y;x=0?window.pageYOffset:null,u=j5(e,t,a);return s.length&&s.forEach(([c,d])=>{t.getValue(c).set(d)}),t.render(),kf&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function U5(t,e,n,r){return O5(e)?$5(t,e,n,r):{target:e,transitionEnd:r}}const B5=(t,e,n,r)=>{const i=D5(t,e,r);return e=i.target,r=i.transitionEnd,U5(t,e,n,r)},Ny={current:null},xb={current:!1};function z5(){if(xb.current=!0,!!kf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ny.current=t.matches;t.addListener(e),e()}else Ny.current=!1}function H5(t,e,n){const{willChange:r}=e;for(const i in e){const s=e[i],o=n[i];if(Fn(s))t.addValue(i,s),Ah(r)&&r.add(i);else if(Fn(o))t.addValue(i,Pa(s,{owner:t})),Ah(r)&&r.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,Pa(a!==void 0?a:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const JE=new WeakMap,Tb=Object.keys($u),W5=Tb.length,ZE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],K5=_0.length;class q5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Ze.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Df(n),this.isVariantNode=aR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const h=c[d];a[d]!==void 0&&Fn(h)&&(h.set(a[d],!1),Ah(u)&&u.add(d))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,JE.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),xb.current||z5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ny.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){JE.delete(this.current),this.projection&&this.projection.unmount(),wi(this.notifyUpdate),wi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=_o.has(e),i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Ze.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:f})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Pa(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=R0(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Fn(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new L0),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Sb extends q5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},s){let o=hV(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){cV(this,r,o);const a=B5(this,r,o,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function G5(t){return window.getComputedStyle(t)}class Q5 extends Sb{readValueFromInstance(e,n){if(_o.has(n)){const r=N0(n);return r&&r.default||0}else{const r=G5(e),i=(hR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return hb(e,n)}build(e,n,r,i){E0(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return C0(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Fn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){vR(e,n,r,i)}}class Y5 extends Sb{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_o.has(n)){const r=N0(n);return r&&r.default||0}return n=_R.has(n)?n:I0(n),e.getAttribute(n)}measureInstanceViewportBox(){return Rt()}scrapeMotionValuesFromProps(e,n){return ER(e,n)}build(e,n,r,i){T0(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){wR(e,n,r,i)}mount(e){this.isSVGTag=S0(e.tagName),super.mount(e)}}const X5=(t,e)=>w0(t)?new Y5(e,{enableHardwareAcceleration:!1}):new Q5(e,{enableHardwareAcceleration:!0}),J5={layout:{ProjectionNode:wb,MeasureLayout:fb}},Z5={...CV,...KO,...A5,...J5},Un=eO((t,e)=>DO(t,e,Z5,X5)),ra=()=>p.jsx(Un.div,{className:"w-screen h-screen flex justify-center items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:2},children:p.jsx("img",{src:"/Coffee-Thoughts/404.png",alt:"Sorry this page doesn't exist"})}),e3={black:"#000",white:"#fff"},Bu=e3,t3={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"},Po=t3,n3={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"},Ao=n3,r3={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"},ko=r3,i3={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"},No=i3,s3={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"},Do=s3,o3={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"},Il=o3,a3={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"},l3=a3;function R(){return R=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=Ib(t[n])}),e}function Vn(t,e,n={clone:!0}){const r=n.clone?R({},t):t;return Ui(t)&&Ui(e)&&Object.keys(e).forEach(i=>{i!=="__proto__"&&(Ui(e[i])&&i in t&&Ui(t[i])?r[i]=Vn(t[i],e[i],n):n.clone?r[i]=Ui(e[i])?Ib(e[i]):e[i]:r[i]=e[i])}),r}function fs(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n=0)&&(n[i]=t[i]);return n}function bM(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function PM(t,e){return t.button===0&&(!e||e==="_self")&&!bM(t)}const AM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function kM(t,e){return J4({basename:e==null?void 0:e.basename,future:Fu({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:w4({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||NM(),routes:t,mapRouteProperties:CM,window:e==null?void 0:e.window}).initialize()}function NM(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Fu({},e,{errors:DM(e.errors)})),e}function DM(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new m0(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}const MM=E.createContext({isTransitioning:!1}),OM=E.createContext(new Map),LM="startTransition",Kw=Xd[LM],VM="flushSync",qw=_4[VM];function FM(t){Kw?Kw(t):t()}function xl(t){qw?qw(t):t()}let jM=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function $M(t){let{fallbackElement:e,router:n,future:r}=t,[i,s]=E.useState(n.state),[o,a]=E.useState(),[l,u]=E.useState({isTransitioning:!1}),[c,d]=E.useState(),[h,f]=E.useState(),[m,y]=E.useState(),x=E.useRef(new Map),{v7_startTransition:w}=r||{},v=E.useCallback(T=>{w?FM(T):T()},[w]),_=E.useCallback((T,C)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:L}=C;k.forEach(U=>x.current.delete(U)),T.fetchers.forEach((U,O)=>{U.data!==void 0&&x.current.set(O,U.data)});let B=n.window==null||typeof n.window.document.startViewTransition!="function";if(!L||B){P?xl(()=>s(T)):v(()=>s(T));return}if(P){xl(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let U=n.window.document.startViewTransition(()=>{xl(()=>s(T))});U.finished.finally(()=>{xl(()=>{d(void 0),f(void 0),a(void 0),u({isTransitioning:!1})})}),xl(()=>f(U));return}h?(c&&c.resolve(),h.skipTransition(),y({state:T,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(a(T),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,h,c,x,v]);E.useLayoutEffect(()=>n.subscribe(_),[n,_]),E.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new jM)},[l]),E.useEffect(()=>{if(c&&o&&n.window){let T=o,C=c.promise,k=n.window.document.startViewTransition(async()=>{v(()=>s(T)),await C});k.finished.finally(()=>{d(void 0),f(void 0),a(void 0),u({isTransitioning:!1})}),f(k)}},[v,o,c,n.window]),E.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,h,i.location,o]),E.useEffect(()=>{!l.isTransitioning&&m&&(a(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[l.isTransitioning,m]);let g=E.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:T=>n.navigate(T),push:(T,C,k)=>n.navigate(T,{state:C,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(T,C,k)=>n.navigate(T,{replace:!0,state:C,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",I=E.useMemo(()=>({router:n,navigator:g,static:!1,basename:S}),[n,g,S]);return E.createElement(E.Fragment,null,E.createElement(bf.Provider,{value:I},E.createElement(XC.Provider,{value:i},E.createElement(OM.Provider,{value:x.current},E.createElement(MM.Provider,{value:l},E.createElement(IM,{basename:S,location:i.location,navigationType:i.historyAction,navigator:g},i.initialized?E.createElement(UM,{routes:n.routes,state:i}):e))))),null)}function UM(t){let{routes:e,state:n}=t;return tR(e,void 0,n)}const BM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=E.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,h=RM(e,AM),{basename:f}=E.useContext(Qa),m,y=!1;if(typeof u=="string"&&zM.test(u)&&(m=u,BM))try{let _=new URL(window.location.href),g=u.startsWith("//")?new URL(_.protocol+u):new URL(u),S=Ga(g.pathname,f);g.origin===_.origin&&S!=null?u=S+g.search+g.hash:y=!0}catch{}let x=dM(u,{relative:i}),w=HM(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function v(_){r&&r(_),_.defaultPrevented||w(_)}return E.createElement("a",Fu({},h,{href:m||x,onClick:y||s?r:v,ref:n,target:l}))});var Gw;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Gw||(Gw={}));var Qw;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Qw||(Qw={}));function HM(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=e===void 0?{}:e,l=bi(),u=vo(),c=eR(t,{relative:o});return E.useCallback(d=>{if(PM(d,n)){d.preventDefault();let h=r!==void 0?r:oo(u)===oo(c);l(t,{replace:h,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,t,s,o,a])}const sR=E.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Af=E.createContext({}),y0=E.createContext(null),kf=typeof document<"u",WM=kf?E.useLayoutEffect:E.useEffect,oR=E.createContext({strict:!1});function KM(t,e,n,r){const{visualElement:i}=E.useContext(Af),s=E.useContext(oR),o=E.useContext(y0),a=E.useContext(sR).reducedMotion,l=E.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;E.useInsertionEffect(()=>{u&&u.update(n,o)});const c=E.useRef(!!window.HandoffAppearAnimations);return WM(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Zo(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qM(t,e,n){return E.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Zo(n)&&(n.current=r))},[e])}function ju(t){return typeof t=="string"||Array.isArray(t)}function Nf(t){return typeof t=="object"&&typeof t.start=="function"}const v0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...v0];function Df(t){return Nf(t.animate)||_0.some(e=>ju(t[e]))}function aR(t){return!!(Df(t)||t.variants)}function GM(t,e){if(Df(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ju(n)?n:void 0,animate:ju(r)?r:void 0}}return t.inherit!==!1?e:{}}function QM(t){const{initial:e,animate:n}=GM(t,E.useContext(Af));return E.useMemo(()=>({initial:e,animate:n}),[Yw(e),Yw(n)])}function Yw(t){return Array.isArray(t)?t.join(" "):t}const Xw={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"]},$u={};for(const t in Xw)$u[t]={isEnabled:e=>Xw[t].some(n=>!!e[n])};function YM(t){for(const e in t)$u[e]={...$u[e],...t[e]}}const lR=E.createContext({}),uR=E.createContext({}),XM=Symbol.for("motionComponentSymbol");function JM({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&YM(t);function s(a,l){let u;const c={...E.useContext(sR),...a,layoutId:ZM(a)},{isStatic:d}=c,h=QM(a),f=r(a,d);if(!d&&kf){h.visualElement=KM(i,f,c,e);const m=E.useContext(uR),y=E.useContext(oR).strict;h.visualElement&&(u=h.visualElement.loadFeatures(c,y,t,m))}return E.createElement(Af.Provider,{value:h},u&&h.visualElement?E.createElement(u,{visualElement:h.visualElement,...c}):null,n(i,a,qM(f,h.visualElement,l),f,d,h.visualElement))}const o=E.forwardRef(s);return o[XM]=i,o}function ZM({layoutId:t}){const e=E.useContext(lR).id;return e&&t!==void 0?e+"-"+t:t}function eO(t){function e(r,i={}){return JM(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const tO=["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 w0(t){return typeof t!="string"||t.includes("-")?!1:!!(tO.indexOf(t)>-1||/[A-Z]/.test(t))}const Sh={};function nO(t){Object.assign(Sh,t)}const yc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_o=new Set(yc);function cR(t,{layout:e,layoutId:n}){return _o.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Sh[t]||t==="opacity")}const Fn=t=>!!(t&&t.getVelocity),rO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iO=yc.length;function sO(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),hR=dR("--"),wy=dR("var(--"),oO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,aO=(t,e)=>e&&typeof t=="number"?e.transform(t):t,hs=(t,e,n)=>Math.min(Math.max(n,t),e),wo={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},su={...wo,transform:t=>hs(0,1,t)},ud={...wo,default:1},ou=t=>Math.round(t*1e5)/1e5,Mf=/(-)?([\d]*\.?[\d])+/g,fR=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vc(t){return typeof t=="string"}const _c=t=>({test:e=>vc(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Li=_c("deg"),Hr=_c("%"),se=_c("px"),uO=_c("vh"),cO=_c("vw"),Jw={...Hr,parse:t=>Hr.parse(t)/100,transform:t=>Hr.transform(t*100)},Zw={...wo,transform:Math.round},pR={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,size:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,rotate:Li,rotateX:Li,rotateY:Li,rotateZ:Li,scale:ud,scaleX:ud,scaleY:ud,scaleZ:ud,skew:Li,skewX:Li,skewY:Li,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:su,originX:Jw,originY:Jw,originZ:se,zIndex:Zw,fillOpacity:su,strokeOpacity:su,numOctaves:Zw};function E0(t,e,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const d in e){const h=e[d];if(hR(d)){s[d]=h;continue}const f=pR[d],m=aO(h,f);if(_o.has(d)){if(l=!0,o[d]=m,!c)continue;h!==(f.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):i[d]=m}if(e.transform||(l||r?i.transform=sO(t.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:h="50%",originZ:f=0}=a;i.transformOrigin=`${d} ${h} ${f}`}}const x0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mR(t,e,n){for(const r in e)!Fn(e[r])&&!cR(r,n)&&(t[r]=e[r])}function dO({transformTemplate:t},e,n){return E.useMemo(()=>{const r=x0();return E0(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function hO(t,e,n){const r=t.style||{},i={};return mR(i,r,t),Object.assign(i,dO(t,e,n)),t.transformValues?t.transformValues(i):i}function fO(t,e,n){const r={},i=hO(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const pO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ih(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||pO.has(t)}let gR=t=>!Ih(t);function mO(t){t&&(gR=e=>e.startsWith("on")?!Ih(e):t(e))}try{mO(require("@emotion/is-prop-valid").default)}catch{}function gO(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(gR(i)||n===!0&&Ih(i)||!e&&!Ih(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function eE(t,e,n){return typeof t=="string"?t:se.transform(e+n*t)}function yO(t,e,n){const r=eE(e,t.x,t.width),i=eE(n,t.y,t.height);return`${r} ${i}`}const vO={offset:"stroke-dashoffset",array:"stroke-dasharray"},_O={offset:"strokeDashoffset",array:"strokeDasharray"};function wO(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?vO:_O;t[s.offset]=se.transform(-r);const o=se.transform(e),a=se.transform(n);t[s.array]=`${o} ${a}`}function T0(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,h){if(E0(t,u,c,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:m,dimensions:y}=t;f.transform&&(y&&(m.transform=f.transform),delete f.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=yO(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&wO(f,o,a,l,!1)}const yR=()=>({...x0(),attrs:{}}),S0=t=>typeof t=="string"&&t.toLowerCase()==="svg";function EO(t,e,n,r){const i=E.useMemo(()=>{const s=yR();return T0(s,e,{enableHardwareAcceleration:!1},S0(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};mR(s,t.style,t),i.style={...s,...i.style}}return i}function xO(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(w0(n)?EO:fO)(r,s,o,n),c={...gO(r,typeof n=="string",t),...l,ref:i},{children:d}=r,h=E.useMemo(()=>Fn(d)?d.get():d,[d]);return E.createElement(n,{...c,children:h})}}const I0=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vR(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const _R=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 wR(t,e,n,r){vR(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(_R.has(i)?i:I0(i),e.attrs[i])}function C0(t,e){const{style:n}=t,r={};for(const i in n)(Fn(n[i])||e.style&&Fn(e.style[i])||cR(i,t))&&(r[i]=n[i]);return r}function ER(t,e){const n=C0(t,e);for(const r in t)if(Fn(t[r])||Fn(e[r])){const i=yc.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function R0(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function TO(t){const e=E.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ch=t=>Array.isArray(t),SO=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),IO=t=>Ch(t)?t[t.length-1]||0:t;function Vd(t){const e=Fn(t)?t.get():t;return SO(e)?e.toValue():e}function CO({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,s){const o={latestValues:RO(r,i,s,t),renderState:e()};return n&&(o.mount=a=>n(r,a,o)),o}const xR=t=>(e,n)=>{const r=E.useContext(Af),i=E.useContext(y0),s=()=>CO(t,e,r,i);return n?s():TO(s)};function RO(t,e,n,r){const i={},s=r(t,{});for(const h in s)i[h]=Vd(s[h]);let{initial:o,animate:a}=t;const l=Df(t),u=aR(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!Nf(d)&&(Array.isArray(d)?d:[d]).forEach(f=>{const m=R0(t,f);if(!m)return;const{transitionEnd:y,transition:x,...w}=m;for(const v in w){let _=w[v];if(Array.isArray(_)){const g=c?_.length-1:0;_=_[g]}_!==null&&(i[v]=_)}for(const v in y)i[v]=y[v]}),i}const gt=t=>t;class tE{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function bO(t){let e=new tE,n=new tE,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,h=d?e:n;return u&&o.add(l),h.add(l)&&d&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let u=0;u(d[h]=bO(()=>n=!0),d),{}),o=d=>s[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,PO),1),i.timestamp=d,i.isProcessing=!0,cd.forEach(o),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:cd.reduce((d,h)=>{const f=s[h];return d[h]=(m,y=!1,x=!1)=>(n||l(),f.schedule(m,y,x)),d},{}),cancel:d=>cd.forEach(h=>s[h].cancel(d)),state:i,steps:s}}const{schedule:Ze,cancel:wi,state:Bt,steps:Mm}=AO(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),kO={useVisualState:xR({scrapeMotionValuesFromProps:ER,createRenderState:yR,onMount:(t,e,{renderState:n,latestValues:r})=>{Ze.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ze.render(()=>{T0(n,r,{enableHardwareAcceleration:!1},S0(e.tagName),t.transformTemplate),wR(e,n)})}})},NO={useVisualState:xR({scrapeMotionValuesFromProps:C0,createRenderState:x0})};function DO(t,{forwardMotionProps:e=!1},n,r){return{...w0(t)?kO:NO,preloadedFeatures:n,useRender:xO(e),createVisualElement:r,Component:t}}function oi(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const TR=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Of(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const MO=t=>e=>TR(e)&&t(e,Of(e));function hi(t,e,n,r){return oi(t,e,MO(n),r)}const OO=(t,e)=>n=>e(t(n)),is=(...t)=>t.reduce(OO);function SR(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const nE=SR("dragHorizontal"),rE=SR("dragVertical");function IR(t){let e=!1;if(t==="y")e=rE();else if(t==="x")e=nE();else{const n=nE(),r=rE();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function CR(){const t=IR(!0);return t?(t(),!1):!0}class Ss{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iE(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||CR())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&Ze.update(()=>a[r](s,o))};return hi(t.current,n,i,{passive:!t.getProps()[r]})}class LO extends Ss{mount(){this.unmount=is(iE(this.node,!0),iE(this.node,!1))}unmount(){}}class VO extends Ss{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=is(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RR=(t,e)=>e?t===e?!0:RR(t,e.parentElement):!1;function Om(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Of(n))}class FO extends Ss{constructor(){super(...arguments),this.removeStartListeners=gt,this.removeEndListeners=gt,this.removeAccessibleListeners=gt,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),s=hi(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Ze.update(()=>{RR(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=hi(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=is(s,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Om("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Ze.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=oi(this.node.current,"keyup",o),Om("down",(a,l)=>{this.startPress(a,l)})},n=oi(this.node.current,"keydown",e),r=()=>{this.isPressing&&Om("cancel",(s,o)=>this.cancelPress(s,o))},i=oi(this.node.current,"blur",r);this.removeAccessibleListeners=is(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ze.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!CR()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ze.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=hi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=oi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=is(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ey=new WeakMap,Lm=new WeakMap,jO=t=>{const e=Ey.get(t.target);e&&e(t)},$O=t=>{t.forEach(jO)};function UO({root:t,...e}){const n=t||document;Lm.has(n)||Lm.set(n,{});const r=Lm.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver($O,{root:t,...e})),r[i]}function BO(t,e,n){const r=UO(e);return Ey.set(t,n),r.observe(t),()=>{Ey.delete(t),r.unobserve(t)}}const zO={some:0,all:1};class HO extends Ss{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zO[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!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(),h=u?c:d;h&&h(l)};return BO(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(WO(e,n))&&this.startObserver()}unmount(){}}function WO({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const KO={inView:{Feature:HO},tap:{Feature:FO},focus:{Feature:VO},hover:{Feature:LO}};function bR(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;re[r]=n.get()),e}function GO(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Lf(t,e,n){const r=t.getProps();return R0(r,e,n!==void 0?n:r.custom,qO(t),GO(t))}const QO="framerAppearId",YO="data-"+I0(QO);let XO=gt,b0=gt;const ss=t=>t*1e3,fi=t=>t/1e3,JO={current:!1},PR=t=>Array.isArray(t)&&typeof t[0]=="number";function AR(t){return!!(!t||typeof t=="string"&&kR[t]||PR(t)||Array.isArray(t)&&t.every(AR))}const jl=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,kR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function NR(t){if(t)return PR(t)?jl(t):Array.isArray(t)?t.map(NR):kR[t]}function ZO(t,e,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=NR(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function eL(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const DR=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,tL=1e-7,nL=12;function rL(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=DR(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>tL&&++arL(s,0,1,t,n);return s=>s===0||s===1?s:DR(i(s),e,r)}const iL=wc(.42,0,1,1),sL=wc(0,0,.58,1),MR=wc(.42,0,.58,1),oL=t=>Array.isArray(t)&&typeof t[0]!="number",OR=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,LR=t=>e=>1-t(1-e),VR=t=>1-Math.sin(Math.acos(t)),P0=LR(VR),aL=OR(P0),FR=wc(.33,1.53,.69,.99),A0=LR(FR),lL=OR(A0),uL=t=>(t*=2)<1?.5*A0(t):.5*(2-Math.pow(2,-10*(t-1))),cL={linear:gt,easeIn:iL,easeInOut:MR,easeOut:sL,circIn:VR,circInOut:aL,circOut:P0,backIn:A0,backInOut:lL,backOut:FR,anticipate:uL},sE=t=>{if(Array.isArray(t)){b0(t.length===4);const[e,n,r,i]=t;return wc(e,n,r,i)}else if(typeof t=="string")return cL[t];return t},k0=(t,e)=>n=>!!(vc(n)&&lO.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),jR=(t,e,n)=>r=>{if(!vc(r))return r;const[i,s,o,a]=r.match(Mf);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},dL=t=>hs(0,255,t),Vm={...wo,transform:t=>Math.round(dL(t))},Ws={test:k0("rgb","red"),parse:jR("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Vm.transform(t)+", "+Vm.transform(e)+", "+Vm.transform(n)+", "+ou(su.transform(r))+")"};function hL(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xy={test:k0("#"),parse:hL,transform:Ws.transform},ea={test:k0("hsl","hue"),parse:jR("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Hr.transform(ou(e))+", "+Hr.transform(ou(n))+", "+ou(su.transform(r))+")"},xn={test:t=>Ws.test(t)||xy.test(t)||ea.test(t),parse:t=>Ws.test(t)?Ws.parse(t):ea.test(t)?ea.parse(t):xy.parse(t),transform:t=>vc(t)?t:t.hasOwnProperty("red")?Ws.transform(t):ea.transform(t)},lt=(t,e,n)=>-n*t+n*e+t;function Fm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fL({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Fm(l,a,t+1/3),s=Fm(l,a,t),o=Fm(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const jm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},pL=[xy,Ws,ea],mL=t=>pL.find(e=>e.test(t));function oE(t){const e=mL(t);let n=e.parse(t);return e===ea&&(n=fL(n)),n}const $R=(t,e)=>{const n=oE(t),r=oE(e),i={...n};return s=>(i.red=jm(n.red,r.red,s),i.green=jm(n.green,r.green,s),i.blue=jm(n.blue,r.blue,s),i.alpha=lt(n.alpha,r.alpha,s),Ws.transform(i))};function gL(t){var e,n;return isNaN(t)&&vc(t)&&(((e=t.match(Mf))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(fR))===null||n===void 0?void 0:n.length)||0)>0}const UR={regex:oO,countKey:"Vars",token:"${v}",parse:gt},BR={regex:fR,countKey:"Colors",token:"${c}",parse:xn.parse},zR={regex:Mf,countKey:"Numbers",token:"${n}",parse:wo.parse};function $m(t,{regex:e,countKey:n,token:r,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+n]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(i)))}function Rh(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&$m(n,UR),$m(n,BR),$m(n,zR),n}function HR(t){return Rh(t).values}function WR(t){const{values:e,numColors:n,numVars:r,tokenised:i}=Rh(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function vL(t){const e=HR(t);return WR(t)(e.map(yL))}const fs={test:gL,parse:HR,createTransformer:WR,getAnimatableNone:vL},KR=(t,e)=>n=>`${n>0?e:t}`;function qR(t,e){return typeof t=="number"?n=>lt(t,e,n):xn.test(t)?$R(t,e):t.startsWith("var(")?KR(t,e):QR(t,e)}const GR=(t,e)=>{const n=[...t],r=n.length,i=t.map((s,o)=>qR(s,e[o]));return s=>{for(let o=0;o{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=qR(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},QR=(t,e)=>{const n=fs.createTransformer(e),r=Rh(t),i=Rh(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?is(GR(r.values,i.values),n):KR(t,e)},Uu=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},aE=(t,e)=>n=>lt(t,e,n);function wL(t){return typeof t=="number"?aE:typeof t=="string"?xn.test(t)?$R:QR:Array.isArray(t)?GR:typeof t=="object"?_L:aE}function EL(t,e,n){const r=[],i=n||wL(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=EL(e,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(hs(t[0],t[s-1],u)):l}function xL(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Uu(0,e,r);t.push(lt(n,1,i))}}function TL(t){const e=[0];return xL(e,t.length-1),e}function SL(t,e){return t.map(n=>n*e)}function IL(t,e){return t.map(()=>e||MR).splice(0,t.length-1)}function bh({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=oL(r)?r.map(sE):sE(r),s={done:!1,value:e[0]},o=SL(n&&n.length===e.length?n:TL(e),t),a=YR(o,e,{ease:Array.isArray(i)?i:IL(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function XR(t,e){return e?t*(1e3/e):0}const CL=5;function JR(t,e,n){const r=Math.max(e-CL,0);return XR(n-t(r),e-r)}const Um=.001,RL=.01,lE=10,bL=.05,PL=1;function AL({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,s;XO(t<=ss(lE));let o=1-e;o=hs(bL,PL,o),t=hs(RL,lE,fi(t)),o<1?(i=u=>{const c=u*o,d=c*t,h=c-n,f=Ty(u,o),m=Math.exp(-d);return Um-h/f*m},s=u=>{const d=u*o*t,h=d*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-d),y=Ty(Math.pow(u,2),o);return(-i(u)+Um>0?-1:1)*((h-f)*m)/y}):(i=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-Um+c*d},s=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=NL(i,s,a);if(t=ss(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:t}}}const kL=12;function NL(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function OL(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!uE(t,ML)&&uE(t,DL)){const n=AL(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function ZR({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=OL(r),f=c?-fi(c):0,m=l/(2*Math.sqrt(a*u)),y=s-i,x=fi(Math.sqrt(a/u)),w=Math.abs(y)<5;n||(n=w?.01:2),e||(e=w?.005:.5);let v;if(m<1){const _=Ty(x,m);v=g=>{const S=Math.exp(-m*x*g);return s-S*((f+m*x*y)/_*Math.sin(_*g)+y*Math.cos(_*g))}}else if(m===1)v=_=>s-Math.exp(-x*_)*(y+(f+x*y)*_);else{const _=x*Math.sqrt(m*m-1);v=g=>{const S=Math.exp(-m*x*g),I=Math.min(_*g,300);return s-S*((f+m*x*y)*Math.sinh(I)+_*y*Math.cosh(I))/_}}return{calculatedDuration:h&&d||null,next:_=>{const g=v(_);if(h)o.done=_>=d;else{let S=f;_!==0&&(m<1?S=JR(v,_,g):S=0);const I=Math.abs(S)<=n,T=Math.abs(s-g)<=e;o.done=I&&T}return o.value=o.done?s:g,o}}}function cE({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},f=C=>a!==void 0&&Cl,m=C=>a===void 0?l:l===void 0||Math.abs(a-C)-y*Math.exp(-C/r),_=C=>w+v(C),g=C=>{const k=v(C),P=_(C);h.done=Math.abs(k)<=u,h.value=h.done?w:P};let S,I;const T=C=>{f(h.value)&&(S=C,I=ZR({keyframes:[h.value,m(h.value)],velocity:JR(_,C,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:C=>{let k=!1;return!I&&S===void 0&&(k=!0,g(C),T(C)),S!==void 0&&C>S?I.next(C-S):(!k&&g(C),h)}}}const LL=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ze.update(e,!0),stop:()=>wi(e),now:()=>Bt.isProcessing?Bt.timestamp:performance.now()}},dE=2e4;function hE(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e=dE?1/0:e}const VL={decay:cE,inertia:cE,tween:bh,keyframes:bh,spring:ZR};function Ph({autoplay:t=!0,delay:e=0,driver:n=LL,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let f=1,m=!1,y,x;const w=()=>{x=new Promise(G=>{y=G})};w();let v;const _=VL[i]||bh;let g;_!==bh&&typeof r[0]!="number"&&(g=YR([0,100],r,{clamp:!1}),r=[0,100]);const S=_({...h,keyframes:r});let I;a==="mirror"&&(I=_({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",C=null,k=null,P=null;S.calculatedDuration===null&&s&&(S.calculatedDuration=hE(S));const{calculatedDuration:L}=S;let B=1/0,U=1/0;L!==null&&(B=L+o,U=B*(s+1)-o);let O=0;const D=G=>{if(k===null)return;f>0&&(k=Math.min(k,G)),f<0&&(k=Math.min(G-U/f,k)),C!==null?O=C:O=Math.round(G-k)*f;const J=O-e*(f>=0?1:-1),we=f>=0?J<0:J>U;O=Math.max(J,0),T==="finished"&&C===null&&(O=U);let te=O,Ie=S;if(s){const _e=O/B;let Qe=Math.floor(_e),me=_e%1;!me&&_e>=1&&(me=1),me===1&&Qe--,Qe=Math.min(Qe,s+1);const $e=!!(Qe%2);$e&&(a==="reverse"?(me=1-me,o&&(me-=o/B)):a==="mirror"&&(Ie=I));let ae=hs(0,1,me);O>U&&(ae=a==="reverse"&&$e?1:0),te=ae*B}const ge=we?{done:!1,value:r[0]}:Ie.next(te);g&&(ge.value=g(ge.value));let{done:tt}=ge;!we&&L!==null&&(tt=f>=0?O>=U:O<=0);const Ot=C===null&&(T==="finished"||T==="running"&&tt);return d&&d(ge.value),Ot&&N(),ge},z=()=>{v&&v.stop(),v=void 0},q=()=>{T="idle",z(),y(),w(),k=P=null},N=()=>{T="finished",c&&c(),z(),y()},j=()=>{if(m)return;v||(v=n(D));const G=v.now();l&&l(),C!==null?k=G-C:(!k||T==="finished")&&(k=G),T==="finished"&&w(),P=k,C=null,T="running",v.start()};t&&j();const H={then(G,J){return x.then(G,J)},get time(){return fi(O)},set time(G){G=ss(G),O=G,C!==null||!v||f===0?C=G:k=v.now()-G/f},get duration(){const G=S.calculatedDuration===null?hE(S):S.calculatedDuration;return fi(G)},get speed(){return f},set speed(G){G===f||!v||(f=G,H.time=fi(O))},get state(){return T},play:j,pause:()=>{T="paused",C=O},stop:()=>{m=!0,T!=="idle"&&(T="idle",u&&u(),q())},cancel:()=>{P!==null&&D(P),q()},complete:()=>{T="finished"},sample:G=>(k=0,D(G))};return H}function FL(t){let e;return()=>(e===void 0&&(e=t()),e)}const jL=FL(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$L=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),dd=10,UL=2e4,BL=(t,e)=>e.type==="spring"||t==="backgroundColor"||!AR(e.ease);function zL(t,e,{onUpdate:n,onComplete:r,...i}){if(!(jL()&&$L.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const u=()=>{l=new Promise(v=>{a=v})};u();let{keyframes:c,duration:d=300,ease:h,times:f}=i;if(BL(e,i)){const v=Ph({...i,repeat:0,delay:0});let _={done:!1,value:c[0]};const g=[];let S=0;for(;!_.done&&Sm.cancel(),x=()=>{Ze.update(y),a(),u()};return m.onfinish=()=>{t.set(eL(c,i)),r&&r(),x()},{then(v,_){return l.then(v,_)},attachTimeline(v){return m.timeline=v,m.onfinish=null,gt},get time(){return fi(m.currentTime||0)},set time(v){m.currentTime=ss(v)},get speed(){return m.playbackRate},set speed(v){m.playbackRate=v},get duration(){return fi(d)},play:()=>{o||(m.play(),wi(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:v}=m;if(v){const _=Ph({...i,autoplay:!1});t.setWithVelocity(_.sample(v-dd).value,_.sample(v).value,dd)}x()},complete:()=>m.finish(),cancel:x}}function HL({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:gt,pause:gt,stop:gt,then:s=>(s(),Promise.resolve()),cancel:gt,complete:gt});return e?Ph({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const WL={type:"spring",stiffness:500,damping:25,restSpeed:10},KL=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),qL={type:"keyframes",duration:.8},GL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QL=(t,{keyframes:e})=>e.length>2?qL:_o.has(t)?t.startsWith("scale")?KL(e[1]):WL:GL,Sy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fs.test(e)||e==="0")&&!e.startsWith("url(")),YL=new Set(["brightness","contrast","saturate","opacity"]);function XL(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Mf)||[];if(!r)return t;const i=n.replace(r,"");let s=YL.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const JL=/([a-z-]*)\(.*?\)/g,Iy={...fs,getAnimatableNone:t=>{const e=t.match(JL);return e?e.map(XL).join(" "):t}},ZL={...pR,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:Iy,WebkitFilter:Iy},N0=t=>ZL[t];function eb(t,e){let n=N0(t);return n!==Iy&&(n=fs),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tb=t=>/^0[^.\s]+$/.test(t);function eV(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||tb(t)}function tV(t,e,n,r){const i=Sy(e,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:t.get();let a;const l=[];for(let u=0;ui=>{const s=nb(r,t)||{},o=s.delay||r.delay||0;let{elapsed:a=0}=r;a=a-ss(o);const l=tV(e,t,n,s),u=l[0],c=l[l.length-1],d=Sy(t,u),h=Sy(t,c);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(nV(s)||(f={...f,...QL(t,f)}),f.duration&&(f.duration=ss(f.duration)),f.repeatDelay&&(f.repeatDelay=ss(f.repeatDelay)),!d||!h||JO.current||s.type===!1)return HL(f);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=zL(e,t,f);if(m)return m}return Ph(f)};function Ah(t){return!!(Fn(t)&&t.add)}const rb=t=>/^\-?\d*\.?\d+$/.test(t);function M0(t,e){t.indexOf(e)===-1&&t.push(e)}function O0(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class L0{constructor(){this.subscriptions=[]}add(e){return M0(this.subscriptions,e),()=>O0(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s!isNaN(parseFloat(t));class iV{constructor(e,n={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=Bt;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ze.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ze.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=rV(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new L0);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?XR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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 Pa(t,e){return new iV(t,e)}const ib=t=>e=>e.test(t),sV={test:t=>t==="auto",parse:t=>t},sb=[wo,se,Hr,Li,cO,uO,sV],Tl=t=>sb.find(ib(t)),oV=[...sb,xn,fs],aV=t=>oV.find(ib(t));function lV(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pa(n))}function uV(t,e){const n=Lf(t,e);let{transitionEnd:r={},transition:i={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const a=IO(s[o]);lV(t,o,a)}}function cV(t,e,n){var r,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(d))),u.push(y)}return o&&Promise.all(u).then(()=>{o&&uV(t,o)}),u}function Cy(t,e,n={}){const r=Lf(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(ob(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return pV(t,e,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function pV(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(mV).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Cy(u,e,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function mV(t,e){return t.sortNodePosition(e)}function gV(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Cy(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Cy(t,e,n);else{const i=typeof e=="function"?Lf(t,e,n.custom):e;r=Promise.all(ob(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const yV=[...v0].reverse(),vV=v0.length;function _V(t){return e=>Promise.all(e.map(({animation:n,options:r})=>gV(t,n,r)))}function wV(t){let e=_V(t);const n=xV();let r=!0;const i=(l,u)=>{const c=Lf(t,u);if(c){const{transition:d,transitionEnd:h,...f}=c;l={...l,...f,...h}}return l};function s(l){e=l(t)}function o(l,u){const c=t.getProps(),d=t.getVariantContext(!0)||{},h=[],f=new Set;let m={},y=1/0;for(let w=0;wy&&S;const P=Array.isArray(g)?g:[g];let L=P.reduce(i,{});I===!1&&(L={});const{prevResolvedValues:B={}}=_,U={...B,...L},O=D=>{k=!0,f.delete(D),_.needsAnimating[D]=!0};for(const D in U){const z=L[D],q=B[D];m.hasOwnProperty(D)||(z!==q?Ch(z)&&Ch(q)?!bR(z,q)||C?O(D):_.protectedKeys[D]=!0:z!==void 0?O(D):f.add(D):z!==void 0&&f.has(D)?O(D):_.protectedKeys[D]=!0)}_.prevProp=g,_.prevResolvedValues=L,_.isActive&&(m={...m,...L}),r&&t.blockInitialAnimation&&(k=!1),k&&!T&&h.push(...P.map(D=>({animation:D,options:{type:v,...l}})))}if(f.size){const w={};f.forEach(v=>{const _=t.getBaseTarget(v);_!==void 0&&(w[v]=_)}),h.push({animation:w})}let x=!!h.length;return r&&c.initial===!1&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(h):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=o(c,l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function EV(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bR(e,t):!1}function Ns(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xV(){return{animate:Ns(!0),whileInView:Ns(),whileHover:Ns(),whileTap:Ns(),whileDrag:Ns(),whileFocus:Ns(),exit:Ns()}}class TV extends Ss{constructor(e){super(e),e.animationState||(e.animationState=wV(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Nf(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let SV=0;class IV extends Ss{constructor(){super(...arguments),this.id=SV++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&s.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const CV={animation:{Feature:TV},exit:{Feature:IV}},fE=(t,e)=>Math.abs(t-e);function RV(t,e){const n=fE(t.x,e.x),r=fE(t.y,e.y);return Math.sqrt(n**2+r**2)}class ab{constructor(e,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=zm(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=RV(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:h}=u,{timestamp:f}=Bt;this.history.push({...h,timestamp:f});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Bm(c,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:h}=this.handlers,f=zm(u.type==="pointercancel"?this.lastMoveEventInfo:Bm(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,f),h&&h(u,f)},!TR(e))return;this.handlers=n,this.transformPagePoint=r;const i=Of(e),s=Bm(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=Bt;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=n;l&&l(e,zm(s,this.history)),this.removeListeners=is(hi(window,"pointermove",this.handlePointerMove),hi(window,"pointerup",this.handlePointerUp),hi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),wi(this.updatePoint)}}function Bm(t,e){return e?{point:e(t.point)}:t}function pE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zm({point:t},e){return{point:t,delta:pE(t,lb(e)),offset:pE(t,bV(e)),velocity:PV(e,.1)}}function bV(t){return t[0]}function lb(t){return t[t.length-1]}function PV(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=lb(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ss(e)));)n--;if(!r)return{x:0,y:0};const s=fi(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gn(t){return t.max-t.min}function Ry(t,e=0,n=.01){return Math.abs(t-e)<=n}function mE(t,e,n,r=.5){t.origin=r,t.originPoint=lt(e.min,e.max,t.origin),t.scale=Gn(n)/Gn(e),(Ry(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=lt(n.min,n.max,t.origin)-t.originPoint,(Ry(t.translate)||isNaN(t.translate))&&(t.translate=0)}function au(t,e,n,r){mE(t.x,e.x,n.x,r?r.originX:void 0),mE(t.y,e.y,n.y,r?r.originY:void 0)}function gE(t,e,n){t.min=n.min+e.min,t.max=t.min+Gn(e)}function AV(t,e,n){gE(t.x,e.x,n.x),gE(t.y,e.y,n.y)}function yE(t,e,n){t.min=e.min-n.min,t.max=t.min+Gn(e)}function lu(t,e,n){yE(t.x,e.x,n.x),yE(t.y,e.y,n.y)}function kV(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?lt(n,t,r.max):Math.min(t,n)),t}function vE(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function NV(t,{top:e,left:n,bottom:r,right:i}){return{x:vE(t.x,n,i),y:vE(t.y,e,r)}}function _E(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=Uu(e.min,e.max-r,t.min):r>i&&(n=Uu(t.min,t.max-i,e.min)),hs(0,1,n)}function OV(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const by=.35;function LV(t=by){return t===!1?t=0:t===!0&&(t=by),{x:wE(t,"left","right"),y:wE(t,"top","bottom")}}function wE(t,e,n){return{min:EE(t,e),max:EE(t,n)}}function EE(t,e){return typeof t=="number"?t:t[e]||0}const xE=()=>({translate:0,scale:1,origin:0,originPoint:0}),ta=()=>({x:xE(),y:xE()}),TE=()=>({min:0,max:0}),Rt=()=>({x:TE(),y:TE()});function Mr(t){return[t("x"),t("y")]}function ub({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function VV({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function FV(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hm(t){return t===void 0||t===1}function Py({scale:t,scaleX:e,scaleY:n}){return!Hm(t)||!Hm(e)||!Hm(n)}function Ls(t){return Py(t)||cb(t)||t.z||t.rotate||t.rotateX||t.rotateY}function cb(t){return SE(t.x)||SE(t.y)}function SE(t){return t&&t!=="0%"}function kh(t,e,n){const r=t-n,i=e*r;return n+i}function IE(t,e,n,r,i){return i!==void 0&&(t=kh(t,i,r)),kh(t,n,r)+e}function Ay(t,e=0,n=1,r,i){t.min=IE(t.min,e,n,r,i),t.max=IE(t.max,e,n,r,i)}function db(t,{x:e,y:n}){Ay(t.x,e.translate,e.scale,e.originPoint),Ay(t.y,n.translate,n.scale,n.originPoint)}function jV(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function ji(t,e){t.min=t.min+e,t.max=t.max+e}function RE(t,e,[n,r,i]){const s=e[i]!==void 0?e[i]:.5,o=lt(t.min,t.max,s);Ay(t,e[n],e[r],o,e.scale)}const $V=["x","scaleX","originX"],UV=["y","scaleY","originY"];function na(t,e){RE(t.x,e,$V),RE(t.y,e,UV)}function hb(t,e){return ub(FV(t.getBoundingClientRect(),e))}function BV(t,e,n){const r=hb(t,n),{scroll:i}=e;return i&&(ji(r.x,i.offset.x),ji(r.y,i.offset.y)),r}const zV=new WeakMap;class HV{constructor(e){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=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Of(l,"page").point)},s=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:h}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=IR(c),!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),Mr(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Hr.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[m];w&&(y=Gn(w)*(parseFloat(y)/100))}}this.originPoint[m]=y}),h&&Ze.update(()=>h(l,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},o=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:h,onDrag:f}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=WV(m),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),f&&f(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new ab(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ze.update(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.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(e,n,r){const{drag:i}=this.getProps();if(!r||!hd(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=kV(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;e&&Zo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=NV(r.layoutBox,e):this.constraints=!1,this.elastic=LV(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Mr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=OV(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zo(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=BV(r,i.root,this.visualElement.getTransformPagePoint());let o=DV(i.layout.layoutBox,s);if(n){const a=n(VV(o));this.hasMutatedConstraints=!!a,a&&(o=ub(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Mr(c=>{if(!hd(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=i?200:1e6,f=i?40:1e7,m={type:"inertia",velocity:r?e[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(D0(e,r,0,n))}stopAnimation(){Mr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Mr(n=>{const{drag:r}=this.getProps();if(!hd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-lt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Mr(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=MV({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Mr(o=>{if(!hd(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(lt(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;zV.set(this.visualElement,this);const e=this.visualElement.current,n=hi(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Zo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Mr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=by,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function hd(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function WV(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class KV extends Ss{constructor(e){super(e),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new HV(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const bE=t=>(e,n)=>{t&&Ze.update(()=>t(e,n))};class qV extends Ss{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(e){this.session=new ab(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:bE(e),onStart:bE(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Ze.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=hi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function GV(){const t=E.useContext(y0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=E.useId();return E.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Sl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(se.test(t))t=parseFloat(t);else return t;const n=PE(t,e.target.x),r=PE(t,e.target.y);return`${n}% ${r}%`}},QV={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=fs.parse(t);if(i.length>5)return r;const s=fs.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=lt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class YV extends Nt.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;nO(XV),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Fd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Ze.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fb(t){const[e,n]=GV(),r=E.useContext(lR);return Nt.createElement(YV,{...t,layoutGroup:r,switchLayoutGroup:E.useContext(uR),isPresent:e,safeToRemove:n})}const XV={borderRadius:{...Sl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sl,borderTopRightRadius:Sl,borderBottomLeftRadius:Sl,borderBottomRightRadius:Sl,boxShadow:QV},pb=["TopLeft","TopRight","BottomLeft","BottomRight"],JV=pb.length,AE=t=>typeof t=="string"?parseFloat(t):t,kE=t=>typeof t=="number"||se.test(t);function ZV(t,e,n,r,i,s){i?(t.opacity=lt(0,n.opacity!==void 0?n.opacity:1,e5(r)),t.opacityExit=lt(e.opacity!==void 0?e.opacity:1,0,t5(r))):s&&(t.opacity=lt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ore?1:n(Uu(t,e,r))}function DE(t,e){t.min=e.min,t.max=e.max}function nr(t,e){DE(t.x,e.x),DE(t.y,e.y)}function ME(t,e,n,r,i){return t-=e,t=kh(t,1/n,r),i!==void 0&&(t=kh(t,1/i,r)),t}function n5(t,e=0,n=1,r=.5,i,s=t,o=t){if(Hr.test(e)&&(e=parseFloat(e),e=lt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=lt(s.min,s.max,r);t===s&&(a-=e),t.min=ME(t.min,e,n,a,i),t.max=ME(t.max,e,n,a,i)}function OE(t,e,[n,r,i],s,o){n5(t,e[n],e[r],e[i],e.scale,s,o)}const r5=["x","scaleX","originX"],i5=["y","scaleY","originY"];function LE(t,e,n,r){OE(t.x,e,r5,n?n.x:void 0,r?r.x:void 0),OE(t.y,e,i5,n?n.y:void 0,r?r.y:void 0)}function VE(t){return t.translate===0&&t.scale===1}function gb(t){return VE(t.x)&&VE(t.y)}function s5(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function yb(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function FE(t){return Gn(t.x)/Gn(t.y)}class o5{constructor(){this.members=[]}add(e){M0(this.members,e),e.scheduleRender()}remove(e){if(O0(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jE(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(r+=`scale(${o}, ${a})`),r||"none"}const a5=(t,e)=>t.depth-e.depth;class l5{constructor(){this.children=[],this.isDirty=!1}add(e){M0(this.children,e),this.isDirty=!0}remove(e){O0(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(a5),this.isDirty=!1,this.children.forEach(e)}}function u5(t,e){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(wi(r),t(s-e))};return Ze.read(r,!0),()=>wi(r)}function c5(t){window.MotionDebug&&window.MotionDebug.record(t)}function d5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function h5(t,e,n){const r=Fn(t)?t:Pa(t);return r.start(D0("",r,e,n)),r.animation}const $E=["","X","Y","Z"],UE=1e3;let f5=0;const Vs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vb({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=f5++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Vs.totalNodes=Vs.resolvedTargetDeltas=Vs.recalculatedProjection=0,this.nodes.forEach(g5),this.nodes.forEach(E5),this.nodes.forEach(x5),this.nodes.forEach(y5),c5(Vs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=u5(h,250),Fd.hasAnimatedSinceResize&&(Fd.hasAnimatedSinceResize=!1,this.nodes.forEach(zE))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||R5,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!yb(this.targetLayout,m)||f,_=!h&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,_);const g={...nb(y,"layout"),onPlay:x,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g)}else h||zE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wi(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(T5),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(v5),this.sharedNodes.forEach(S5)}scheduleUpdateProjection(){Ze.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ze.postRender(()=>{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=g/1e3;HE(d.x,o.x,S),HE(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),I5(this.relativeTarget,this.relativeTargetOrigin,h,S),_&&s5(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Rt()),nr(_,this.relativeTarget)),y&&(this.animationValues=c,ZV(c,u,this.latestValues,S,v,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{Fd.hasAnimatedSinceResize=!0,this.currentAnimation=h5(0,UE,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(UE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&_b(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Rt();const d=Gn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=Gn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}nr(a,l),na(a,c),au(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new o5),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c<$E.length;c++){const d="rotate"+$E[c];l[d]&&(u[d]=l[d],o.setStaticValue(d,0))}o.render();for(const c in u)o.setStaticValue(c,u[c]);o.scheduleRender()}getProjectionStyles(o={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Vd(o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Vd(o.pointerEvents)||""),this.hasProjected&&!Ls(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=jE(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:f,y:m}=this.projectionDelta;u.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in Sh){if(h[y]===void 0)continue;const{correct:x,applyTo:w}=Sh[y],v=u.transform==="none"?h[y]:x(h[y],d);if(w){const _=w.length;for(let g=0;g<_;g++)u[w[g]]=v}else u[y]=v}return this.options.layoutId&&(u.pointerEvents=d===this?Vd(o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(BE),this.root.sharedNodes.clear()}}}function p5(t){t.updateLayout()}function m5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?Mr(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=Gn(h);h.min=r[d].min,h.max=h.min+f}):_b(s,n.layoutBox,r)&&Mr(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=Gn(r[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const a=ta();au(a,r,n.layoutBox);const l=ta();o?au(l,t.applyTransform(i,!0),n.measuredBox):au(l,r,n.layoutBox);const u=!gb(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const m=Rt();lu(m,n.layoutBox,h.layoutBox);const y=Rt();lu(y,r,f.layoutBox),yb(m,y)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function g5(t){Vs.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function y5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function v5(t){t.clearSnapshot()}function BE(t){t.clearMeasurements()}function _5(t){t.isLayoutDirty=!1}function w5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function E5(t){t.resolveTargetDelta()}function x5(t){t.calcProjection()}function T5(t){t.resetRotation()}function S5(t){t.removeLeadSnapshot()}function HE(t,e,n){t.translate=lt(e.translate,0,n),t.scale=lt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function WE(t,e,n,r){t.min=lt(e.min,n.min,r),t.max=lt(e.max,n.max,r)}function I5(t,e,n,r){WE(t.x,e.x,n.x,r),WE(t.y,e.y,n.y,r)}function C5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const R5={duration:.45,ease:[.4,0,.1,1]},KE=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),qE=KE("applewebkit/")&&!KE("chrome/")?Math.round:gt;function GE(t){t.min=qE(t.min),t.max=qE(t.max)}function b5(t){GE(t.x),GE(t.y)}function _b(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ry(FE(e),FE(n),.2)}const P5=vb({attachResizeListener:(t,e)=>oi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wm={current:void 0},wb=vb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Wm.current){const t=new P5({});t.mount(window),t.setOptions({layoutScroll:!0}),Wm.current=t}return Wm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),A5={pan:{Feature:qV},drag:{Feature:KV,ProjectionNode:wb,MeasureLayout:fb}},k5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function N5(t){const e=k5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function ky(t,e,n=1){const[r,i]=N5(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return rb(o)?parseFloat(o):o}else return wy(i)?ky(i,e,n+1):i}function D5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const s=i.get();if(!wy(s))return;const o=ky(s,r);o&&i.set(o)});for(const i in e){const s=e[i];if(!wy(s))continue;const o=ky(s,r);o&&(e[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:e,transitionEnd:n}}const M5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Eb=t=>M5.has(t),O5=t=>Object.keys(t).some(Eb),QE=t=>t===wo||t===se,YE=(t,e)=>parseFloat(t.split(", ")[e]),XE=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return YE(i[1],e);{const s=r.match(/^matrix\((.+)\)$/);return s?YE(s[1],t):0}},L5=new Set(["x","y","z"]),V5=yc.filter(t=>!L5.has(t));function F5(t){const e=[];return V5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Aa={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:XE(4,13),y:XE(5,14)};Aa.translateX=Aa.x;Aa.translateY=Aa.y;const j5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=Aa[u](r,s)}),e.render();const l=e.measureViewportBox();return n.forEach(u=>{const c=e.getValue(u);c&&c.jump(a[u]),t[u]=Aa[u](l,s)}),t},$5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(Eb);let s=[],o=!1;const a=[];if(i.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let c=n[l],d=Tl(c);const h=e[l];let f;if(Ch(h)){const m=h.length,y=h[0]===null?1:0;c=h[y],d=Tl(c);for(let x=y;x=0?window.pageYOffset:null,u=j5(e,t,a);return s.length&&s.forEach(([c,d])=>{t.getValue(c).set(d)}),t.render(),kf&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function U5(t,e,n,r){return O5(e)?$5(t,e,n,r):{target:e,transitionEnd:r}}const B5=(t,e,n,r)=>{const i=D5(t,e,r);return e=i.target,r=i.transitionEnd,U5(t,e,n,r)},Ny={current:null},xb={current:!1};function z5(){if(xb.current=!0,!!kf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ny.current=t.matches;t.addListener(e),e()}else Ny.current=!1}function H5(t,e,n){const{willChange:r}=e;for(const i in e){const s=e[i],o=n[i];if(Fn(s))t.addValue(i,s),Ah(r)&&r.add(i);else if(Fn(o))t.addValue(i,Pa(s,{owner:t})),Ah(r)&&r.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,Pa(a!==void 0?a:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const JE=new WeakMap,Tb=Object.keys($u),W5=Tb.length,ZE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],K5=_0.length;class q5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Ze.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Df(n),this.isVariantNode=aR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const h=c[d];a[d]!==void 0&&Fn(h)&&(h.set(a[d],!1),Ah(u)&&u.add(d))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,JE.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),xb.current||z5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ny.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){JE.delete(this.current),this.projection&&this.projection.unmount(),wi(this.notifyUpdate),wi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=_o.has(e),i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Ze.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:f})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Pa(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=R0(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Fn(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new L0),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Sb extends q5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},s){let o=hV(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){cV(this,r,o);const a=B5(this,r,o,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function G5(t){return window.getComputedStyle(t)}class Q5 extends Sb{readValueFromInstance(e,n){if(_o.has(n)){const r=N0(n);return r&&r.default||0}else{const r=G5(e),i=(hR(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return hb(e,n)}build(e,n,r,i){E0(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return C0(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Fn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){vR(e,n,r,i)}}class Y5 extends Sb{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_o.has(n)){const r=N0(n);return r&&r.default||0}return n=_R.has(n)?n:I0(n),e.getAttribute(n)}measureInstanceViewportBox(){return Rt()}scrapeMotionValuesFromProps(e,n){return ER(e,n)}build(e,n,r,i){T0(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){wR(e,n,r,i)}mount(e){this.isSVGTag=S0(e.tagName),super.mount(e)}}const X5=(t,e)=>w0(t)?new Y5(e,{enableHardwareAcceleration:!1}):new Q5(e,{enableHardwareAcceleration:!0}),J5={layout:{ProjectionNode:wb,MeasureLayout:fb}},Z5={...CV,...KO,...A5,...J5},Un=eO((t,e)=>DO(t,e,Z5,X5)),ra=()=>p.jsx(Un.div,{className:"w-screen h-screen flex justify-center items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:2},children:p.jsx("img",{src:"/Coffee-Thoughts/404.png",alt:"Sorry this page doesn't exist"})}),e3={black:"#000",white:"#fff"},Bu=e3,t3={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"},Po=t3,n3={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"},Ao=n3,r3={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"},ko=r3,i3={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"},No=i3,s3={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"},Do=s3,o3={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"},Il=o3,a3={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"},l3=a3;function R(){return R=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=Ib(t[n])}),e}function Vn(t,e,n={clone:!0}){const r=n.clone?R({},t):t;return Bi(t)&&Bi(e)&&Object.keys(e).forEach(i=>{i!=="__proto__"&&(Bi(e[i])&&i in t&&Bi(t[i])?r[i]=Vn(t[i],e[i],n):n.clone?r[i]=Bi(e[i])?Ib(e[i]):e[i]:r[i]=e[i])}),r}function ps(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;nn==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function Rb(t,e=166){let n;function r(...i){const s=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(s,e)}return r.clear=()=>{clearTimeout(n)},r}function Km(t,e){var n,r;return E.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Wn(t){return t&&t.ownerDocument||document}function ao(t){return Wn(t).defaultView||window}function Dy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const d3=typeof window<"u"?E.useLayoutEffect:E.useEffect,ps=d3;let tx=0;function h3(t){const[e,n]=E.useState(t),r=t||e;return E.useEffect(()=>{e==null&&(tx+=1,n(`mui-${tx}`))},[e]),r}const nx=Xd.useId;function bb(t){if(nx!==void 0){const e=nx();return t??e}return h3(t)}function rx({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=E.useRef(t!==void 0),[s,o]=E.useState(e),a=i?t:s,l=E.useCallback(u=>{i||o(u)},[]);return[a,l]}function ia(t){const e=E.useRef(t);return ps(()=>{e.current=t}),E.useRef((...n)=>(0,e.current)(...n)).current}function Cn(...t){return E.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Dy(n,e)})},t)}let qf=!0,My=!1,ix;const f3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function p3(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&f3[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function m3(t){t.metaKey||t.altKey||t.ctrlKey||(qf=!0)}function qm(){qf=!1}function g3(){this.visibilityState==="hidden"&&My&&(qf=!0)}function y3(t){t.addEventListener("keydown",m3,!0),t.addEventListener("mousedown",qm,!0),t.addEventListener("pointerdown",qm,!0),t.addEventListener("touchstart",qm,!0),t.addEventListener("visibilitychange",g3,!0)}function v3(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return qf||p3(e)}function _3(){const t=E.useCallback(i=>{i!=null&&y3(i.ownerDocument)},[]),e=E.useRef(!1);function n(){return e.current?(My=!0,window.clearTimeout(ix),ix=window.setTimeout(()=>{My=!1},100),e.current=!1,!0):!1}function r(i){return v3(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function Pb(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ab(t,e){const n=R({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=R({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},s=e[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=R({},s),Object.keys(i).forEach(o=>{n[r][o]=Ab(i[o],s[o])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Dt(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((s,o)=>{if(o){const a=e(o);a!==""&&s.push(a),n&&n[o]&&s.push(n[o])}return s},[]).join(" ")}),r}const sx=t=>t,w3=()=>{let t=sx;return{configure(e){t=e},generate(e){return t(e)},reset(){t=sx}}},E3=w3(),x3=E3,T3={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 Tt(t,e,n="Mui"){const r=T3[e];return r?`${n}-${r}`:`${x3.generate(t)}-${e}`}function st(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Tt(t,i,n)}),r}const Gf="$$material";function fe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s=0)&&(n[i]=t[i]);return n}function S3(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var I3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,C3=S3(function(t){return I3.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function R3(t){if(t.sheet)return t.sheet;for(var e=0;e0?Zt(Ya,--jn):0,ka--,At===10&&(ka=1,Yf--),At}function Kn(){return At=jn2||Hu(At)>3?"":" "}function $3(t,e){for(;--e&&Kn()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ec(t,jd()+(e<6&&Wr()==32&&Kn()==32))}function Ly(t){for(;Kn();)switch(At){case t:return jn;case 34:case 39:t!==34&&t!==39&&Ly(At);break;case 40:t===41&&Ly(t);break;case 92:Kn();break}return jn}function U3(t,e){for(;Kn()&&t+At!==57;)if(t+At===84&&Wr()===47)break;return"/*"+Ec(e,jn-1)+"*"+Qf(t===47?t:Kn())}function B3(t){for(;!Hu(Wr());)Kn();return Ec(t,jn)}function z3(t){return Lb(Ud("",null,null,null,[""],t=Ob(t),0,[0],t))}function Ud(t,e,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,h=0,f=0,m=0,y=1,x=1,w=1,v=0,_="",g=i,S=s,I=r,T=_;x;)switch(m=v,v=Kn()){case 40:if(m!=108&&Zt(T,d-1)==58){Oy(T+=Ne($d(v),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=$d(v);break;case 9:case 10:case 13:case 32:T+=j3(m);break;case 92:T+=$3(jd()-1,7);continue;case 47:switch(Wr()){case 42:case 47:fd(H3(U3(Kn(),jd()),e,n),l);break;default:T+="/"}break;case 123*y:a[u++]=Or(T)*w;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:w==-1&&(T=Ne(T,/\f/g,"")),f>0&&Or(T)-d&&fd(f>32?ax(T+";",r,n,d-1):ax(Ne(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(fd(I=ox(T,e,n,u,c,i,a,_,g=[],S=[],d),s),v===123)if(c===0)Ud(T,e,I,I,g,s,d,a,S);else switch(h===99&&Zt(T,3)===110?100:h){case 100:case 108:case 109:case 115:Ud(t,I,I,r&&fd(ox(t,I,I,0,0,i,a,_,i,g=[],d),S),i,S,d,a,r?g:S);break;default:Ud(T,I,I,I,[""],S,0,a,S)}}u=c=f=0,y=w=1,_=T="",d=o;break;case 58:d=1+Or(T),f=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&F3()==125)continue}switch(T+=Qf(v),v*y){case 38:w=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Or(T)-1)*w,w=1;break;case 64:Wr()===45&&(T+=$d(Kn())),h=Wr(),c=d=Or(_=T+=B3(jd())),v++;break;case 45:m===45&&Or(T)==2&&(y=0)}}return s}function ox(t,e,n,r,i,s,o,a,l,u,c){for(var d=i-1,h=i===0?s:[""],f=U0(h),m=0,y=0,x=0;m0?h[w]+" "+v:Ne(v,/&\f/g,h[w])))&&(l[x++]=_);return Xf(t,e,n,i===0?j0:a,l,u,c)}function H3(t,e,n){return Xf(t,e,n,kb,Qf(V3()),zu(t,2,-2),0)}function ax(t,e,n,r){return Xf(t,e,n,$0,zu(t,0,r),zu(t,r+1,-1),r)}function ma(t,e){for(var n="",r=U0(t),i=0;i6)switch(Zt(t,e+1)){case 109:if(Zt(t,e+4)!==45)break;case 102:return Ne(t,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+Nh+(Zt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Oy(t,"stretch")?Vb(Ne(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Zt(t,e+1)!==115)break;case 6444:switch(Zt(t,Or(t)-3-(~Oy(t,"!important")&&10))){case 107:return Ne(t,":",":"+ke)+t;case 101:return Ne(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Zt(t,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+cn+"$2box$3")+t}break;case 5936:switch(Zt(t,e+11)){case 114:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ke+t+cn+t+t}return t}var Z3=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case $0:e.return=Vb(e.value,e.length);break;case Nb:return ma([Cl(e,{value:Ne(e.value,"@","@"+ke)})],i);case j0:if(e.length)return L3(e.props,function(s){switch(O3(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ma([Cl(e,{props:[Ne(s,/:(read-\w+)/,":"+Nh+"$1")]})],i);case"::placeholder":return ma([Cl(e,{props:[Ne(s,/:(plac\w+)/,":"+ke+"input-$1")]}),Cl(e,{props:[Ne(s,/:(plac\w+)/,":"+Nh+"$1")]}),Cl(e,{props:[Ne(s,/:(plac\w+)/,cn+"input-$1")]})],i)}return""})}},eF=[Z3],tF=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||eF,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),w=1;wn==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function Rb(t,e=166){let n;function r(...i){const s=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(s,e)}return r.clear=()=>{clearTimeout(n)},r}function Km(t,e){var n,r;return E.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Wn(t){return t&&t.ownerDocument||document}function ao(t){return Wn(t).defaultView||window}function Dy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const d3=typeof window<"u"?E.useLayoutEffect:E.useEffect,ms=d3;let tx=0;function h3(t){const[e,n]=E.useState(t),r=t||e;return E.useEffect(()=>{e==null&&(tx+=1,n(`mui-${tx}`))},[e]),r}const nx=Xd.useId;function bb(t){if(nx!==void 0){const e=nx();return t??e}return h3(t)}function rx({controlled:t,default:e,name:n,state:r="value"}){const{current:i}=E.useRef(t!==void 0),[s,o]=E.useState(e),a=i?t:s,l=E.useCallback(u=>{i||o(u)},[]);return[a,l]}function ia(t){const e=E.useRef(t);return ms(()=>{e.current=t}),E.useRef((...n)=>(0,e.current)(...n)).current}function Cn(...t){return E.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Dy(n,e)})},t)}let qf=!0,My=!1,ix;const f3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function p3(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&f3[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function m3(t){t.metaKey||t.altKey||t.ctrlKey||(qf=!0)}function qm(){qf=!1}function g3(){this.visibilityState==="hidden"&&My&&(qf=!0)}function y3(t){t.addEventListener("keydown",m3,!0),t.addEventListener("mousedown",qm,!0),t.addEventListener("pointerdown",qm,!0),t.addEventListener("touchstart",qm,!0),t.addEventListener("visibilitychange",g3,!0)}function v3(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return qf||p3(e)}function _3(){const t=E.useCallback(i=>{i!=null&&y3(i.ownerDocument)},[]),e=E.useRef(!1);function n(){return e.current?(My=!0,window.clearTimeout(ix),ix=window.setTimeout(()=>{My=!1},100),e.current=!1,!0):!1}function r(i){return v3(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function Pb(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ab(t,e){const n=R({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=R({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=t[r]||{},s=e[r];n[r]={},!s||!Object.keys(s)?n[r]=i:!i||!Object.keys(i)?n[r]=s:(n[r]=R({},s),Object.keys(i).forEach(o=>{n[r][o]=Ab(i[o],s[o])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Dt(t,e,n=void 0){const r={};return Object.keys(t).forEach(i=>{r[i]=t[i].reduce((s,o)=>{if(o){const a=e(o);a!==""&&s.push(a),n&&n[o]&&s.push(n[o])}return s},[]).join(" ")}),r}const sx=t=>t,w3=()=>{let t=sx;return{configure(e){t=e},generate(e){return t(e)},reset(){t=sx}}},E3=w3(),x3=E3,T3={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 Tt(t,e,n="Mui"){const r=T3[e];return r?`${n}-${r}`:`${x3.generate(t)}-${e}`}function st(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Tt(t,i,n)}),r}const Gf="$$material";function fe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s=0)&&(n[i]=t[i]);return n}function S3(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var I3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,C3=S3(function(t){return I3.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function R3(t){if(t.sheet)return t.sheet;for(var e=0;e0?Zt(Ya,--jn):0,ka--,At===10&&(ka=1,Yf--),At}function Kn(){return At=jn2||Hu(At)>3?"":" "}function $3(t,e){for(;--e&&Kn()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ec(t,jd()+(e<6&&Wr()==32&&Kn()==32))}function Ly(t){for(;Kn();)switch(At){case t:return jn;case 34:case 39:t!==34&&t!==39&&Ly(At);break;case 40:t===41&&Ly(t);break;case 92:Kn();break}return jn}function U3(t,e){for(;Kn()&&t+At!==57;)if(t+At===84&&Wr()===47)break;return"/*"+Ec(e,jn-1)+"*"+Qf(t===47?t:Kn())}function B3(t){for(;!Hu(Wr());)Kn();return Ec(t,jn)}function z3(t){return Lb(Ud("",null,null,null,[""],t=Ob(t),0,[0],t))}function Ud(t,e,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,h=0,f=0,m=0,y=1,x=1,w=1,v=0,_="",g=i,S=s,I=r,T=_;x;)switch(m=v,v=Kn()){case 40:if(m!=108&&Zt(T,d-1)==58){Oy(T+=Ne($d(v),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=$d(v);break;case 9:case 10:case 13:case 32:T+=j3(m);break;case 92:T+=$3(jd()-1,7);continue;case 47:switch(Wr()){case 42:case 47:fd(H3(U3(Kn(),jd()),e,n),l);break;default:T+="/"}break;case 123*y:a[u++]=Or(T)*w;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+c:w==-1&&(T=Ne(T,/\f/g,"")),f>0&&Or(T)-d&&fd(f>32?ax(T+";",r,n,d-1):ax(Ne(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(fd(I=ox(T,e,n,u,c,i,a,_,g=[],S=[],d),s),v===123)if(c===0)Ud(T,e,I,I,g,s,d,a,S);else switch(h===99&&Zt(T,3)===110?100:h){case 100:case 108:case 109:case 115:Ud(t,I,I,r&&fd(ox(t,I,I,0,0,i,a,_,i,g=[],d),S),i,S,d,a,r?g:S);break;default:Ud(T,I,I,I,[""],S,0,a,S)}}u=c=f=0,y=w=1,_=T="",d=o;break;case 58:d=1+Or(T),f=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&F3()==125)continue}switch(T+=Qf(v),v*y){case 38:w=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Or(T)-1)*w,w=1;break;case 64:Wr()===45&&(T+=$d(Kn())),h=Wr(),c=d=Or(_=T+=B3(jd())),v++;break;case 45:m===45&&Or(T)==2&&(y=0)}}return s}function ox(t,e,n,r,i,s,o,a,l,u,c){for(var d=i-1,h=i===0?s:[""],f=U0(h),m=0,y=0,x=0;m0?h[w]+" "+v:Ne(v,/&\f/g,h[w])))&&(l[x++]=_);return Xf(t,e,n,i===0?j0:a,l,u,c)}function H3(t,e,n){return Xf(t,e,n,kb,Qf(V3()),zu(t,2,-2),0)}function ax(t,e,n,r){return Xf(t,e,n,$0,zu(t,0,r),zu(t,r+1,-1),r)}function ma(t,e){for(var n="",r=U0(t),i=0;i6)switch(Zt(t,e+1)){case 109:if(Zt(t,e+4)!==45)break;case 102:return Ne(t,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+Nh+(Zt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Oy(t,"stretch")?Vb(Ne(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Zt(t,e+1)!==115)break;case 6444:switch(Zt(t,Or(t)-3-(~Oy(t,"!important")&&10))){case 107:return Ne(t,":",":"+ke)+t;case 101:return Ne(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Zt(t,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+cn+"$2box$3")+t}break;case 5936:switch(Zt(t,e+11)){case 114:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ke+t+cn+Ne(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ke+t+cn+t+t}return t}var Z3=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case $0:e.return=Vb(e.value,e.length);break;case Nb:return ma([Cl(e,{value:Ne(e.value,"@","@"+ke)})],i);case j0:if(e.length)return L3(e.props,function(s){switch(O3(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ma([Cl(e,{props:[Ne(s,/:(read-\w+)/,":"+Nh+"$1")]})],i);case"::placeholder":return ma([Cl(e,{props:[Ne(s,/:(plac\w+)/,":"+ke+"input-$1")]}),Cl(e,{props:[Ne(s,/:(plac\w+)/,":"+Nh+"$1")]}),Cl(e,{props:[Ne(s,/:(plac\w+)/,cn+"input-$1")]})],i)}return""})}},eF=[Z3],tF=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||eF,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var fF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pF(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var mF=/[A-Z]|^ms/g,gF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hb=function(e){return e.charCodeAt(1)===45},ux=function(e){return e!=null&&typeof e!="boolean"},Gm=pF(function(t){return Hb(t)?t:t.replace(mF,"-$&").toLowerCase()}),cx=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(gF,function(r,i,s){return Lr={name:i,styles:s,next:Lr},i})}return fF[e]!==1&&!Hb(e)&&typeof n=="number"&&n!==0?n+"px":n};function Wu(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Lr={name:n.name,styles:n.styles,next:Lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Lr={name:r.name,styles:r.styles,next:Lr},r=r.next;var i=n.styles+";";return i}return yF(t,e,n)}case"function":{if(t!==void 0){var s=Lr,o=n(t);return Lr=s,Wu(t,e,o)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function yF(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i96?xF:TF},px=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},SF=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Bb(n,r,i),_F(function(){return zb(n,r,i)}),null},IF=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var a=px(e,n,r),l=a||fx(i),u=!l("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,f=1;fe(RF(i)?n:i):e;return p.jsx(wF,{styles:r})}function PF(t,e){return Vy(t,e)}const AF=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},kF=["values","unit","step"],NF=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>R({},n,{[r.key]:r.val}),{})};function DF(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,i=fe(t,kF),s=NF(e),o=Object.keys(s);function a(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function u(h,f){const m=o.indexOf(f);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(m!==-1&&typeof e[o[m]]=="number"?e[o[m]]:f)-r/100}${n})`}function c(h){return o.indexOf(h)+1`@media (min-width:${G0[t]}px)`};function Ei(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const s=r.breakpoints||mx;return e.reduce((o,a,l)=>(o[s.up(s.keys[l])]=n(e[l]),o),{})}if(typeof e=="object"){const s=r.breakpoints||mx;return Object.keys(e).reduce((o,a)=>{if(Object.keys(s.values||G0).indexOf(a)!==-1){const l=s.up(a);o[l]=n(e[a],a)}else{const l=a;o[l]=e[l]}return o},{})}return n(e)}function LF(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,i)=>{const s=t.up(i);return r[s]={},r},{}))||{}}function VF(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function lp(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function Dh(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=lp(t,n)||r,e&&(i=e(i,r,t)),i}function Oe(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,s=o=>{if(o[e]==null)return null;const a=o[e],l=o.theme,u=lp(l,r)||{};return Ei(o,a,d=>{let h=Dh(u,i,d);return d===h&&typeof d=="string"&&(h=Dh(u,i,`${e}${d==="default"?"":yt(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[e],s}function FF(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const jF={m:"margin",p:"padding"},$F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},UF=FF(t=>{if(t.length>2)if(gx[t])t=gx[t];else return[t];const[e,n]=t.split(""),r=jF[e],i=$F[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),Q0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Y0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Q0,...Y0];function xc(t,e,n,r){var i;const s=(i=lp(t,e,!1))!=null?i:n;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function Gb(t){return xc(t,"spacing",8)}function Tc(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function BF(t,e){return n=>t.reduce((r,i)=>(r[i]=Tc(e,n),r),{})}function zF(t,e,n,r){if(e.indexOf(n)===-1)return null;const i=UF(n),s=BF(i,r),o=t[n];return Ei(t,o,s)}function Qb(t,e){const n=Gb(t.theme);return Object.keys(t).map(r=>zF(t,e,r,n)).reduce(uu,{})}function ht(t){return Qb(t,Q0)}ht.propTypes={};ht.filterProps=Q0;function ft(t){return Qb(t,Y0)}ft.propTypes={};ft.filterProps=Y0;function HF(t=8){if(t.mui)return t;const e=Gb({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const o=e(s);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function up(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>e[s]?uu(i,e[s](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Fr(t){return typeof t!="number"?t:`${t}px solid`}const WF=Oe({prop:"border",themeKey:"borders",transform:Fr}),KF=Oe({prop:"borderTop",themeKey:"borders",transform:Fr}),qF=Oe({prop:"borderRight",themeKey:"borders",transform:Fr}),GF=Oe({prop:"borderBottom",themeKey:"borders",transform:Fr}),QF=Oe({prop:"borderLeft",themeKey:"borders",transform:Fr}),YF=Oe({prop:"borderColor",themeKey:"palette"}),XF=Oe({prop:"borderTopColor",themeKey:"palette"}),JF=Oe({prop:"borderRightColor",themeKey:"palette"}),ZF=Oe({prop:"borderBottomColor",themeKey:"palette"}),e6=Oe({prop:"borderLeftColor",themeKey:"palette"}),cp=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xc(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Tc(e,r)});return Ei(t,t.borderRadius,n)}return null};cp.propTypes={};cp.filterProps=["borderRadius"];up(WF,KF,qF,GF,QF,YF,XF,JF,ZF,e6,cp);const dp=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xc(t.theme,"spacing",8),n=r=>({gap:Tc(e,r)});return Ei(t,t.gap,n)}return null};dp.propTypes={};dp.filterProps=["gap"];const hp=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xc(t.theme,"spacing",8),n=r=>({columnGap:Tc(e,r)});return Ei(t,t.columnGap,n)}return null};hp.propTypes={};hp.filterProps=["columnGap"];const fp=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xc(t.theme,"spacing",8),n=r=>({rowGap:Tc(e,r)});return Ei(t,t.rowGap,n)}return null};fp.propTypes={};fp.filterProps=["rowGap"];const t6=Oe({prop:"gridColumn"}),n6=Oe({prop:"gridRow"}),r6=Oe({prop:"gridAutoFlow"}),i6=Oe({prop:"gridAutoColumns"}),s6=Oe({prop:"gridAutoRows"}),o6=Oe({prop:"gridTemplateColumns"}),a6=Oe({prop:"gridTemplateRows"}),l6=Oe({prop:"gridTemplateAreas"}),u6=Oe({prop:"gridArea"});up(dp,hp,fp,t6,n6,r6,i6,s6,o6,a6,l6,u6);function ga(t,e){return e==="grey"?e:t}const c6=Oe({prop:"color",themeKey:"palette",transform:ga}),d6=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ga}),h6=Oe({prop:"backgroundColor",themeKey:"palette",transform:ga});up(c6,d6,h6);function Bn(t){return t<=1&&t!==0?`${t*100}%`:t}const f6=Oe({prop:"width",transform:Bn}),X0=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,i;const s=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||G0[n];return s?((i=t.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${t.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Bn(n)}};return Ei(t,t.maxWidth,e)}return null};X0.filterProps=["maxWidth"];const p6=Oe({prop:"minWidth",transform:Bn}),m6=Oe({prop:"height",transform:Bn}),g6=Oe({prop:"maxHeight",transform:Bn}),y6=Oe({prop:"minHeight",transform:Bn});Oe({prop:"size",cssProperty:"width",transform:Bn});Oe({prop:"size",cssProperty:"height",transform:Bn});const v6=Oe({prop:"boxSizing"});up(f6,X0,p6,m6,g6,y6,v6);const _6={border:{themeKey:"borders",transform:Fr},borderTop:{themeKey:"borders",transform:Fr},borderRight:{themeKey:"borders",transform:Fr},borderBottom:{themeKey:"borders",transform:Fr},borderLeft:{themeKey:"borders",transform:Fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cp},color:{themeKey:"palette",transform:ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ga},backgroundColor:{themeKey:"palette",transform:ga},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dp},rowGap:{style:fp},columnGap:{style:hp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:X0},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},J0=_6;function w6(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function E6(t,e){return typeof t=="function"?t(e):t}function x6(){function t(n,r,i,s){const o={[n]:r,theme:i},a=s[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 h=lp(i,u)||{};return d?d(o):Ei(o,r,m=>{let y=Dh(h,c,m);return m===y&&typeof m=="string"&&(y=Dh(h,c,`${n}${m==="default"?"":yt(m)}`,m)),l===!1?y:{[l]:y}})}function e(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const o=(r=s.unstable_sxConfig)!=null?r:J0;function a(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=LF(s.breakpoints),d=Object.keys(c);let h=c;return Object.keys(u).forEach(f=>{const m=E6(u[f],s);if(m!=null)if(typeof m=="object")if(o[f])h=uu(h,t(f,m,s,o));else{const y=Ei({theme:s},m,x=>({[f]:x}));w6(y,m)?h[f]=e({sx:m,theme:s}):h=uu(h,y)}else h=uu(h,t(f,m,s,o))}),VF(d,h)}return Array.isArray(i)?i.map(a):a(i)}return e}const Yb=x6();Yb.filterProps=["sx"];const Z0=Yb,T6=["breakpoints","palette","spacing","shape"];function e1(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=t,o=fe(t,T6),a=DF(n),l=HF(i);let u=Vn({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},r),spacing:l,shape:R({},OF,s)},o);return u=e.reduce((c,d)=>Vn(c,d),u),u.unstable_sxConfig=R({},J0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return Z0({sx:d,theme:this})},u}function S6(t){return Object.keys(t).length===0}function I6(t=null){const e=E.useContext(K0);return!e||S6(e)?t:e}const C6=e1();function t1(t=C6){return I6(t)}function R6({styles:t,themeId:e,defaultTheme:n={}}){const r=t1(n),i=typeof t=="function"?t(e&&r[e]||r):t;return p.jsx(bF,{styles:i})}function Xb(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{i==="color"?r+=yx(r)?t[i]:yt(t[i]):r+=`${yx(r)?i:yt(i)}${yt(t[i].toString())}`}),r}const P6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function A6(t){return Object.keys(t).length===0}function k6(t){return typeof t=="string"&&t.charCodeAt(0)>96}const N6=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,Mh=t=>{const e={};return t&&t.forEach(n=>{const r=Jb(n.props);e[r]=n.style}),e},D6=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),Mh(n)},Oh=(t,e,n)=>{const{ownerState:r={}}=t,i=[];return n&&n.forEach(s=>{let o=!0;Object.keys(s.props).forEach(a=>{r[a]!==s.props[a]&&t[a]!==s.props[a]&&(o=!1)}),o&&i.push(e[Jb(s.props)])}),i},M6=(t,e,n,r)=>{var i;const s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return Oh(t,e,s)};function cu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const O6=e1(),L6=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Bd({defaultTheme:t,theme:e,themeId:n}){return A6(e)?t:e[n]||e}function V6(t){return t?(e,n)=>n[t]:null}const vx=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const i=t(R({},e,{theme:Bd(R({},e,{defaultTheme:n,themeId:r}))}));let s;if(i&&i.variants&&(s=i.variants,delete i.variants),s){const o=Oh(e,Mh(s),s);return[i,...o]}return i};function F6(t={}){const{themeId:e,defaultTheme:n=O6,rootShouldForwardProp:r=cu,slotShouldForwardProp:i=cu}=t,s=o=>Z0(R({},o,{theme:Bd(R({},o,{defaultTheme:n,themeId:e}))}));return s.__mui_systemSx=!0,(o,a={})=>{AF(o,g=>g.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=V6(L6(u))}=a,f=fe(a,P6),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let x,w=cu;u==="Root"||u==="root"?w=r:u?w=i:k6(o)&&(w=void 0);const v=PF(o,R({shouldForwardProp:w,label:x},f)),_=(g,...S)=>{const I=S?S.map(P=>{if(typeof P=="function"&&P.__emotion_real!==P)return L=>vx({styledArg:P,props:L,defaultTheme:n,themeId:e});if(Ui(P)){let L=P,B;return P&&P.variants&&(B=P.variants,delete L.variants,L=U=>{let O=P;return Oh(U,Mh(B),B).forEach(z=>{O=Vn(O,z)}),O}),L}return P}):[];let T=g;if(Ui(g)){let P;g&&g.variants&&(P=g.variants,delete T.variants,T=L=>{let B=g;return Oh(L,Mh(P),P).forEach(O=>{B=Vn(B,O)}),B})}else typeof g=="function"&&g.__emotion_real!==g&&(T=P=>vx({styledArg:g,props:P,defaultTheme:n,themeId:e}));l&&h&&I.push(P=>{const L=Bd(R({},P,{defaultTheme:n,themeId:e})),B=N6(l,L);if(B){const U={};return Object.entries(B).forEach(([O,D])=>{U[O]=typeof D=="function"?D(R({},P,{theme:L})):D}),h(P,U)}return null}),l&&!m&&I.push(P=>{const L=Bd(R({},P,{defaultTheme:n,themeId:e}));return M6(P,D6(l,L),L,l)}),y||I.push(s);const C=I.length-S.length;if(Array.isArray(g)&&C>0){const P=new Array(C).fill("");T=[...g,...P],T.raw=[...g.raw,...P]}const k=v(T,...I);return o.muiName&&(k.muiName=o.muiName),k};return v.withConfig&&(_.withConfig=v.withConfig),_}}function j6(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ab(e.components[n].defaultProps,r)}function $6({props:t,name:e,defaultTheme:n,themeId:r}){let i=t1(n);return r&&(i=i[r]||i),j6({theme:i,name:e,props:t})}function n1(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function U6(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(t){if(t.type)return t;if(t.charAt(0)==="#")return lo(U6(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(fs(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error(fs(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}function pp(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function B6(t){t=lo(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,s=r*Math.min(i,1-i),o=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),pp({type:a,values:l})}function _x(t){t=lo(t);let e=t.type==="hsl"||t.type==="hsla"?lo(B6(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function z6(t,e){const n=_x(t),r=_x(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function sa(t,e){return t=lo(t),e=n1(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,pp(t)}function H6(t,e){if(t=lo(t),e=n1(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return pp(t)}function W6(t,e){if(t=lo(t),e=n1(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return pp(t)}function K6(t,e){return R({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const q6=["mode","contrastThreshold","tonalOffset"],wx={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:Bu.white,default:Bu.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}},Qm={text:{primary:Bu.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:Bu.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 Ex(t,e,n,r){const i=r.light||r,s=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=W6(t.main,i):e==="dark"&&(t.dark=H6(t.main,s)))}function G6(t="light"){return t==="dark"?{main:ko[200],light:ko[50],dark:ko[400]}:{main:ko[700],light:ko[400],dark:ko[800]}}function Q6(t="light"){return t==="dark"?{main:Ao[200],light:Ao[50],dark:Ao[400]}:{main:Ao[500],light:Ao[300],dark:Ao[700]}}function Y6(t="light"){return t==="dark"?{main:Po[500],light:Po[300],dark:Po[700]}:{main:Po[700],light:Po[400],dark:Po[800]}}function X6(t="light"){return t==="dark"?{main:No[400],light:No[300],dark:No[700]}:{main:No[700],light:No[500],dark:No[900]}}function J6(t="light"){return t==="dark"?{main:Do[400],light:Do[300],dark:Do[700]}:{main:Do[800],light:Do[500],dark:Do[900]}}function Z6(t="light"){return t==="dark"?{main:Il[400],light:Il[300],dark:Il[700]}:{main:"#ed6c02",light:Il[500],dark:Il[900]}}function e9(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,i=fe(t,q6),s=t.primary||G6(e),o=t.secondary||Q6(e),a=t.error||Y6(e),l=t.info||X6(e),u=t.success||J6(e),c=t.warning||Z6(e);function d(y){return z6(y,Qm.text.primary)>=n?Qm.text.primary:wx.text.primary}const h=({color:y,name:x,mainShade:w=500,lightShade:v=300,darkShade:_=700})=>{if(y=R({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(fs(11,x?` (${x})`:"",w));if(typeof y.main!="string")throw new Error(fs(12,x?` (${x})`:"",JSON.stringify(y.main)));return Ex(y,"light",v,r),Ex(y,"dark",_,r),y.contrastText||(y.contrastText=d(y.main)),y},f={dark:Qm,light:wx};return Vn(R({common:R({},Bu),mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:l3,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},f[e]),i)}const t9=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function n9(t){return Math.round(t*1e5)/1e5}const xx={textTransform:"uppercase"},Tx='"Roboto", "Helvetica", "Arial", sans-serif';function r9(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=Tx,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,h=fe(n,t9),f=i/14,m=d||(w=>`${w/u*f}rem`),y=(w,v,_,g,S)=>R({fontFamily:r,fontWeight:w,fontSize:m(v),lineHeight:_},r===Tx?{letterSpacing:`${n9(g/v)}em`}:{},S,c),x={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(a,14,1.75,.4,xx),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,xx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vn(R({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},x),h,{clone:!1})}const i9=.2,s9=.14,o9=.12;function nt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${i9})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${s9})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${o9})`].join(",")}const a9=["none",nt(0,2,1,-1,0,1,1,0,0,1,3,0),nt(0,3,1,-2,0,2,2,0,0,1,5,0),nt(0,3,3,-2,0,3,4,0,0,1,8,0),nt(0,2,4,-1,0,4,5,0,0,1,10,0),nt(0,3,5,-1,0,5,8,0,0,1,14,0),nt(0,3,5,-1,0,6,10,0,0,1,18,0),nt(0,4,5,-2,0,7,10,1,0,2,16,1),nt(0,5,5,-3,0,8,10,1,0,3,14,2),nt(0,5,6,-3,0,9,12,1,0,3,16,2),nt(0,6,6,-3,0,10,14,1,0,4,18,3),nt(0,6,7,-4,0,11,15,1,0,4,20,3),nt(0,7,8,-4,0,12,17,2,0,5,22,4),nt(0,7,8,-4,0,13,19,2,0,5,24,4),nt(0,7,9,-4,0,14,21,2,0,5,26,4),nt(0,8,9,-5,0,15,22,2,0,6,28,5),nt(0,8,10,-5,0,16,24,2,0,6,30,5),nt(0,8,11,-5,0,17,26,2,0,6,32,5),nt(0,9,11,-5,0,18,28,2,0,7,34,6),nt(0,9,12,-6,0,19,29,2,0,7,36,6),nt(0,10,13,-6,0,20,31,3,0,8,38,7),nt(0,10,13,-6,0,21,33,3,0,8,40,7),nt(0,10,14,-6,0,22,35,3,0,8,42,7),nt(0,11,14,-7,0,23,36,3,0,9,44,8),nt(0,11,15,-7,0,24,38,3,0,9,46,8)],l9=a9,u9=["duration","easing","delay"],c9={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)"},d9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sx(t){return`${Math.round(t)}ms`}function h9(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function f9(t){const e=R({},c9,t.easing),n=R({},d9,t.duration);return R({getAutoHeightDuration:h9,create:(i=["all"],s={})=>{const{duration:o=n.standard,easing:a=e.easeInOut,delay:l=0}=s;return fe(s,u9),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Sx(o)} ${a} ${typeof l=="string"?l:Sx(l)}`).join(",")}},t,{easing:e,duration:n})}const p9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},m9=p9,g9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function y9(t={},...e){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=t,o=fe(t,g9);if(t.vars)throw new Error(fs(18));const a=e9(r),l=e1(t);let u=Vn(l,{mixins:K6(l.breakpoints,n),palette:a,shadows:l9.slice(),typography:r9(a,s),transitions:f9(i),zIndex:R({},m9)});return u=Vn(u,o),u=e.reduce((c,d)=>Vn(c,d),u),u.unstable_sxConfig=R({},J0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return Z0({sx:d,theme:this})},u}const v9=y9(),mp=v9;function r1(){const t=t1(mp);return t[Gf]||t}function Mt({props:t,name:e}){return $6({props:t,name:e,defaultTheme:mp,themeId:Gf})}const br=t=>cu(t)&&t!=="classes",_9=cu,w9=F6({themeId:Gf,defaultTheme:mp,rootShouldForwardProp:br}),ve=w9,E9=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Ix=E9;function x9(t){return Tt("MuiSvgIcon",t)}st("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const T9=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S9=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${yt(e)}`,`fontSize${yt(n)}`]};return Dt(i,x9,r)},I9=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${yt(n.color)}`],e[`fontSize${yt(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,i,s,o,a,l,u,c,d,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=t.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((a=t.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=t.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[e.fontSize],color:(d=(h=(t.vars||t).palette)==null||(h=h[e.color])==null?void 0:h.main)!=null?d:{action:(f=(t.vars||t).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[e.color]}}),Zb=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiSvgIcon"}),{children:i,className:s,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:h="0 0 24 24"}=r,f=fe(r,T9),m=E.isValidElement(i)&&i.type==="svg",y=R({},r,{color:o,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:m}),x={};c||(x.viewBox=h);const w=S9(y);return p.jsxs(I9,R({as:a,className:Pe(w.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,f,m&&i.props,{ownerState:y,children:[m?i.props.children:i,d?p.jsx("title",{children:d}):null]}))});Zb.muiName="SvgIcon";const Cx=Zb;function C9(t,e){function n(r,i){return p.jsx(Cx,R({"data-testid":`${e}Icon`,ref:i},r,{children:t}))}return n.muiName=Cx.muiName,E.memo(E.forwardRef(n))}function Fy(t,e){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fy(t,e)}function eP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fy(t,e)}const Rx={disabled:!1},Lh=Nt.createContext(null);var R9=function(e){return e.scrollTop},$l="unmounted",Fs="exited",js="entering",Lo="entered",jy="exiting",bi=function(t){eP(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Fs,s.appearStatus=js):l=Lo:r.unmountOnExit||r.mountOnEnter?l=$l:l=Fs,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===$l?{status:Fs}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==js&&o!==Lo&&(s=js):(o===js||o===Lo)&&(s=jy)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===js){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Fl.findDOMNode(this);o&&R9(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fs&&this.setState({status:$l})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Fl.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!i&&!o||Rx.disabled){this.safeSetState({status:Lo},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:js},function(){s.props.onEntering(u,c),s.onTransitionEnd(h,function(){s.safeSetState({status:Lo},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Fl.findDOMNode(this);if(!s||Rx.disabled){this.safeSetState({status:Fs},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:jy},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Fs},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Fl.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$l)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=fe(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Nt.createElement(Lh.Provider,{value:null},typeof o=="function"?o(i,a):Nt.cloneElement(Nt.Children.only(o),a))},e}(Nt.Component);bi.contextType=Lh;bi.propTypes={};function Mo(){}bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mo,onEntering:Mo,onEntered:Mo,onExit:Mo,onExiting:Mo,onExited:Mo};bi.UNMOUNTED=$l;bi.EXITED=Fs;bi.ENTERING=js;bi.ENTERED=Lo;bi.EXITING=jy;const tP=bi;function b9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i1(t,e){var n=function(s){return e&&E.isValidElement(s)?e(s):s},r=Object.create(null);return t&&E.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function P9(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),i=[];for(var s in t)s in e?i.length&&(r[s]=i,i=[]):i.push(s);var o,a={};for(var l in e){if(r[l])for(o=0;ot.scrollTop;function Vh(t,e){var n,r;const{timeout:i,easing:s,style:o={}}=t;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[e.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof s=="object"?s[e.mode]:s,delay:o.transitionDelay}}function O9(t){return Tt("MuiPaper",t)}st("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 L9=["className","component","elevation","square","variant"],V9=t=>{const{square:e,elevation:n,variant:r,classes:i}=t,s={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Dt(s,O9,i)},F9=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return R({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&R({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sa("#fff",Ix(e.elevation))}, ${sa("#fff",Ix(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),j9=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiPaper"}),{className:i,component:s="div",elevation:o=1,square:a=!1,variant:l="elevation"}=r,u=fe(r,L9),c=R({},r,{component:s,elevation:o,square:a,variant:l}),d=V9(c);return p.jsx(F9,R({as:s,ownerState:c,className:Pe(d.root,i),ref:n},u))}),$9=j9;function U9(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:o,in:a,onExited:l,timeout:u}=t,[c,d]=E.useState(!1),h=Pe(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:o,height:o,top:-(o/2)+s,left:-(o/2)+i},m=Pe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),E.useEffect(()=>{if(!a&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,a,u]),p.jsx("span",{className:h,style:f,children:p.jsx("span",{className:m})})}const B9=st("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ir=B9,z9=["center","classes","className"];let gp=t=>t,bx,Px,Ax,kx;const $y=550,H9=80,W9=q0(bx||(bx=gp` + */var qt=typeof Symbol=="function"&&Symbol.for,B0=qt?Symbol.for("react.element"):60103,z0=qt?Symbol.for("react.portal"):60106,Jf=qt?Symbol.for("react.fragment"):60107,Zf=qt?Symbol.for("react.strict_mode"):60108,ep=qt?Symbol.for("react.profiler"):60114,tp=qt?Symbol.for("react.provider"):60109,np=qt?Symbol.for("react.context"):60110,H0=qt?Symbol.for("react.async_mode"):60111,rp=qt?Symbol.for("react.concurrent_mode"):60111,ip=qt?Symbol.for("react.forward_ref"):60112,sp=qt?Symbol.for("react.suspense"):60113,nF=qt?Symbol.for("react.suspense_list"):60120,op=qt?Symbol.for("react.memo"):60115,ap=qt?Symbol.for("react.lazy"):60116,rF=qt?Symbol.for("react.block"):60121,iF=qt?Symbol.for("react.fundamental"):60117,sF=qt?Symbol.for("react.responder"):60118,oF=qt?Symbol.for("react.scope"):60119;function Zn(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case B0:switch(t=t.type,t){case H0:case rp:case Jf:case ep:case Zf:case sp:return t;default:switch(t=t&&t.$$typeof,t){case np:case ip:case ap:case op:case tp:return t;default:return e}}case z0:return e}}}function jb(t){return Zn(t)===rp}je.AsyncMode=H0;je.ConcurrentMode=rp;je.ContextConsumer=np;je.ContextProvider=tp;je.Element=B0;je.ForwardRef=ip;je.Fragment=Jf;je.Lazy=ap;je.Memo=op;je.Portal=z0;je.Profiler=ep;je.StrictMode=Zf;je.Suspense=sp;je.isAsyncMode=function(t){return jb(t)||Zn(t)===H0};je.isConcurrentMode=jb;je.isContextConsumer=function(t){return Zn(t)===np};je.isContextProvider=function(t){return Zn(t)===tp};je.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===B0};je.isForwardRef=function(t){return Zn(t)===ip};je.isFragment=function(t){return Zn(t)===Jf};je.isLazy=function(t){return Zn(t)===ap};je.isMemo=function(t){return Zn(t)===op};je.isPortal=function(t){return Zn(t)===z0};je.isProfiler=function(t){return Zn(t)===ep};je.isStrictMode=function(t){return Zn(t)===Zf};je.isSuspense=function(t){return Zn(t)===sp};je.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Jf||t===rp||t===ep||t===Zf||t===sp||t===nF||typeof t=="object"&&t!==null&&(t.$$typeof===ap||t.$$typeof===op||t.$$typeof===tp||t.$$typeof===np||t.$$typeof===ip||t.$$typeof===iF||t.$$typeof===sF||t.$$typeof===oF||t.$$typeof===rF)};je.typeOf=Zn;Fb.exports=je;var aF=Fb.exports,$b=aF,lF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ub={};Ub[$b.ForwardRef]=lF;Ub[$b.Memo]=uF;var cF=!0;function dF(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var Bb=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||cF===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},zb=function(e,n,r){Bb(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function hF(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var fF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pF(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var mF=/[A-Z]|^ms/g,gF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hb=function(e){return e.charCodeAt(1)===45},ux=function(e){return e!=null&&typeof e!="boolean"},Gm=pF(function(t){return Hb(t)?t:t.replace(mF,"-$&").toLowerCase()}),cx=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(gF,function(r,i,s){return Lr={name:i,styles:s,next:Lr},i})}return fF[e]!==1&&!Hb(e)&&typeof n=="number"&&n!==0?n+"px":n};function Wu(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Lr={name:n.name,styles:n.styles,next:Lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Lr={name:r.name,styles:r.styles,next:Lr},r=r.next;var i=n.styles+";";return i}return yF(t,e,n)}case"function":{if(t!==void 0){var s=Lr,o=n(t);return Lr=s,Wu(t,e,o)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function yF(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i96?xF:TF},px=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},SF=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Bb(n,r,i),_F(function(){return zb(n,r,i)}),null},IF=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var a=px(e,n,r),l=a||fx(i),u=!l("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,f=1;fe(RF(i)?n:i):e;return p.jsx(wF,{styles:r})}function PF(t,e){return Vy(t,e)}const AF=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},kF=["values","unit","step"],NF=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>R({},n,{[r.key]:r.val}),{})};function DF(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,i=fe(t,kF),s=NF(e),o=Object.keys(s);function a(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function u(h,f){const m=o.indexOf(f);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(m!==-1&&typeof e[o[m]]=="number"?e[o[m]]:f)-r/100}${n})`}function c(h){return o.indexOf(h)+1`@media (min-width:${G0[t]}px)`};function Ei(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const s=r.breakpoints||mx;return e.reduce((o,a,l)=>(o[s.up(s.keys[l])]=n(e[l]),o),{})}if(typeof e=="object"){const s=r.breakpoints||mx;return Object.keys(e).reduce((o,a)=>{if(Object.keys(s.values||G0).indexOf(a)!==-1){const l=s.up(a);o[l]=n(e[a],a)}else{const l=a;o[l]=e[l]}return o},{})}return n(e)}function LF(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,i)=>{const s=t.up(i);return r[s]={},r},{}))||{}}function VF(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function lp(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function Dh(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=lp(t,n)||r,e&&(i=e(i,r,t)),i}function Oe(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,s=o=>{if(o[e]==null)return null;const a=o[e],l=o.theme,u=lp(l,r)||{};return Ei(o,a,d=>{let h=Dh(u,i,d);return d===h&&typeof d=="string"&&(h=Dh(u,i,`${e}${d==="default"?"":yt(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[e],s}function FF(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const jF={m:"margin",p:"padding"},$F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},UF=FF(t=>{if(t.length>2)if(gx[t])t=gx[t];else return[t];const[e,n]=t.split(""),r=jF[e],i=$F[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),Q0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Y0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Q0,...Y0];function xc(t,e,n,r){var i;const s=(i=lp(t,e,!1))!=null?i:n;return typeof s=="number"?o=>typeof o=="string"?o:s*o:Array.isArray(s)?o=>typeof o=="string"?o:s[o]:typeof s=="function"?s:()=>{}}function Gb(t){return xc(t,"spacing",8)}function Tc(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function BF(t,e){return n=>t.reduce((r,i)=>(r[i]=Tc(e,n),r),{})}function zF(t,e,n,r){if(e.indexOf(n)===-1)return null;const i=UF(n),s=BF(i,r),o=t[n];return Ei(t,o,s)}function Qb(t,e){const n=Gb(t.theme);return Object.keys(t).map(r=>zF(t,e,r,n)).reduce(uu,{})}function ht(t){return Qb(t,Q0)}ht.propTypes={};ht.filterProps=Q0;function ft(t){return Qb(t,Y0)}ft.propTypes={};ft.filterProps=Y0;function HF(t=8){if(t.mui)return t;const e=Gb({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const o=e(s);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function up(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>e[s]?uu(i,e[s](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Fr(t){return typeof t!="number"?t:`${t}px solid`}const WF=Oe({prop:"border",themeKey:"borders",transform:Fr}),KF=Oe({prop:"borderTop",themeKey:"borders",transform:Fr}),qF=Oe({prop:"borderRight",themeKey:"borders",transform:Fr}),GF=Oe({prop:"borderBottom",themeKey:"borders",transform:Fr}),QF=Oe({prop:"borderLeft",themeKey:"borders",transform:Fr}),YF=Oe({prop:"borderColor",themeKey:"palette"}),XF=Oe({prop:"borderTopColor",themeKey:"palette"}),JF=Oe({prop:"borderRightColor",themeKey:"palette"}),ZF=Oe({prop:"borderBottomColor",themeKey:"palette"}),e6=Oe({prop:"borderLeftColor",themeKey:"palette"}),cp=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=xc(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Tc(e,r)});return Ei(t,t.borderRadius,n)}return null};cp.propTypes={};cp.filterProps=["borderRadius"];up(WF,KF,qF,GF,QF,YF,XF,JF,ZF,e6,cp);const dp=t=>{if(t.gap!==void 0&&t.gap!==null){const e=xc(t.theme,"spacing",8),n=r=>({gap:Tc(e,r)});return Ei(t,t.gap,n)}return null};dp.propTypes={};dp.filterProps=["gap"];const hp=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=xc(t.theme,"spacing",8),n=r=>({columnGap:Tc(e,r)});return Ei(t,t.columnGap,n)}return null};hp.propTypes={};hp.filterProps=["columnGap"];const fp=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=xc(t.theme,"spacing",8),n=r=>({rowGap:Tc(e,r)});return Ei(t,t.rowGap,n)}return null};fp.propTypes={};fp.filterProps=["rowGap"];const t6=Oe({prop:"gridColumn"}),n6=Oe({prop:"gridRow"}),r6=Oe({prop:"gridAutoFlow"}),i6=Oe({prop:"gridAutoColumns"}),s6=Oe({prop:"gridAutoRows"}),o6=Oe({prop:"gridTemplateColumns"}),a6=Oe({prop:"gridTemplateRows"}),l6=Oe({prop:"gridTemplateAreas"}),u6=Oe({prop:"gridArea"});up(dp,hp,fp,t6,n6,r6,i6,s6,o6,a6,l6,u6);function ga(t,e){return e==="grey"?e:t}const c6=Oe({prop:"color",themeKey:"palette",transform:ga}),d6=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ga}),h6=Oe({prop:"backgroundColor",themeKey:"palette",transform:ga});up(c6,d6,h6);function Bn(t){return t<=1&&t!==0?`${t*100}%`:t}const f6=Oe({prop:"width",transform:Bn}),X0=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,i;const s=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||G0[n];return s?((i=t.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${s}${t.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Bn(n)}};return Ei(t,t.maxWidth,e)}return null};X0.filterProps=["maxWidth"];const p6=Oe({prop:"minWidth",transform:Bn}),m6=Oe({prop:"height",transform:Bn}),g6=Oe({prop:"maxHeight",transform:Bn}),y6=Oe({prop:"minHeight",transform:Bn});Oe({prop:"size",cssProperty:"width",transform:Bn});Oe({prop:"size",cssProperty:"height",transform:Bn});const v6=Oe({prop:"boxSizing"});up(f6,X0,p6,m6,g6,y6,v6);const _6={border:{themeKey:"borders",transform:Fr},borderTop:{themeKey:"borders",transform:Fr},borderRight:{themeKey:"borders",transform:Fr},borderBottom:{themeKey:"borders",transform:Fr},borderLeft:{themeKey:"borders",transform:Fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cp},color:{themeKey:"palette",transform:ga},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ga},backgroundColor:{themeKey:"palette",transform:ga},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dp},rowGap:{style:fp},columnGap:{style:hp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:X0},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},J0=_6;function w6(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function E6(t,e){return typeof t=="function"?t(e):t}function x6(){function t(n,r,i,s){const o={[n]:r,theme:i},a=s[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 h=lp(i,u)||{};return d?d(o):Ei(o,r,m=>{let y=Dh(h,c,m);return m===y&&typeof m=="string"&&(y=Dh(h,c,`${n}${m==="default"?"":yt(m)}`,m)),l===!1?y:{[l]:y}})}function e(n){var r;const{sx:i,theme:s={}}=n||{};if(!i)return null;const o=(r=s.unstable_sxConfig)!=null?r:J0;function a(l){let u=l;if(typeof l=="function")u=l(s);else if(typeof l!="object")return l;if(!u)return null;const c=LF(s.breakpoints),d=Object.keys(c);let h=c;return Object.keys(u).forEach(f=>{const m=E6(u[f],s);if(m!=null)if(typeof m=="object")if(o[f])h=uu(h,t(f,m,s,o));else{const y=Ei({theme:s},m,x=>({[f]:x}));w6(y,m)?h[f]=e({sx:m,theme:s}):h=uu(h,y)}else h=uu(h,t(f,m,s,o))}),VF(d,h)}return Array.isArray(i)?i.map(a):a(i)}return e}const Yb=x6();Yb.filterProps=["sx"];const Z0=Yb,T6=["breakpoints","palette","spacing","shape"];function e1(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:s={}}=t,o=fe(t,T6),a=DF(n),l=HF(i);let u=Vn({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},r),spacing:l,shape:R({},OF,s)},o);return u=e.reduce((c,d)=>Vn(c,d),u),u.unstable_sxConfig=R({},J0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return Z0({sx:d,theme:this})},u}function S6(t){return Object.keys(t).length===0}function I6(t=null){const e=E.useContext(K0);return!e||S6(e)?t:e}const C6=e1();function t1(t=C6){return I6(t)}function R6({styles:t,themeId:e,defaultTheme:n={}}){const r=t1(n),i=typeof t=="function"?t(e&&r[e]||r):t;return p.jsx(bF,{styles:i})}function Xb(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{i==="color"?r+=yx(r)?t[i]:yt(t[i]):r+=`${yx(r)?i:yt(i)}${yt(t[i].toString())}`}),r}const P6=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function A6(t){return Object.keys(t).length===0}function k6(t){return typeof t=="string"&&t.charCodeAt(0)>96}const N6=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,Mh=t=>{const e={};return t&&t.forEach(n=>{const r=Jb(n.props);e[r]=n.style}),e},D6=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),Mh(n)},Oh=(t,e,n)=>{const{ownerState:r={}}=t,i=[];return n&&n.forEach(s=>{let o=!0;Object.keys(s.props).forEach(a=>{r[a]!==s.props[a]&&t[a]!==s.props[a]&&(o=!1)}),o&&i.push(e[Jb(s.props)])}),i},M6=(t,e,n,r)=>{var i;const s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return Oh(t,e,s)};function cu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const O6=e1(),L6=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Bd({defaultTheme:t,theme:e,themeId:n}){return A6(e)?t:e[n]||e}function V6(t){return t?(e,n)=>n[t]:null}const vx=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const i=t(R({},e,{theme:Bd(R({},e,{defaultTheme:n,themeId:r}))}));let s;if(i&&i.variants&&(s=i.variants,delete i.variants),s){const o=Oh(e,Mh(s),s);return[i,...o]}return i};function F6(t={}){const{themeId:e,defaultTheme:n=O6,rootShouldForwardProp:r=cu,slotShouldForwardProp:i=cu}=t,s=o=>Z0(R({},o,{theme:Bd(R({},o,{defaultTheme:n,themeId:e}))}));return s.__mui_systemSx=!0,(o,a={})=>{AF(o,g=>g.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=V6(L6(u))}=a,f=fe(a,P6),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let x,w=cu;u==="Root"||u==="root"?w=r:u?w=i:k6(o)&&(w=void 0);const v=PF(o,R({shouldForwardProp:w,label:x},f)),_=(g,...S)=>{const I=S?S.map(P=>{if(typeof P=="function"&&P.__emotion_real!==P)return L=>vx({styledArg:P,props:L,defaultTheme:n,themeId:e});if(Bi(P)){let L=P,B;return P&&P.variants&&(B=P.variants,delete L.variants,L=U=>{let O=P;return Oh(U,Mh(B),B).forEach(z=>{O=Vn(O,z)}),O}),L}return P}):[];let T=g;if(Bi(g)){let P;g&&g.variants&&(P=g.variants,delete T.variants,T=L=>{let B=g;return Oh(L,Mh(P),P).forEach(O=>{B=Vn(B,O)}),B})}else typeof g=="function"&&g.__emotion_real!==g&&(T=P=>vx({styledArg:g,props:P,defaultTheme:n,themeId:e}));l&&h&&I.push(P=>{const L=Bd(R({},P,{defaultTheme:n,themeId:e})),B=N6(l,L);if(B){const U={};return Object.entries(B).forEach(([O,D])=>{U[O]=typeof D=="function"?D(R({},P,{theme:L})):D}),h(P,U)}return null}),l&&!m&&I.push(P=>{const L=Bd(R({},P,{defaultTheme:n,themeId:e}));return M6(P,D6(l,L),L,l)}),y||I.push(s);const C=I.length-S.length;if(Array.isArray(g)&&C>0){const P=new Array(C).fill("");T=[...g,...P],T.raw=[...g.raw,...P]}const k=v(T,...I);return o.muiName&&(k.muiName=o.muiName),k};return v.withConfig&&(_.withConfig=v.withConfig),_}}function j6(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ab(e.components[n].defaultProps,r)}function $6({props:t,name:e,defaultTheme:n,themeId:r}){let i=t1(n);return r&&(i=i[r]||i),j6({theme:i,name:e,props:t})}function n1(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function U6(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(t){if(t.type)return t;if(t.charAt(0)==="#")return lo(U6(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ps(9,t));let r=t.substring(e+1,t.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error(ps(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}function pp(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((i,s)=>s<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function B6(t){t=lo(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,s=r*Math.min(i,1-i),o=(u,c=(u+n/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),pp({type:a,values:l})}function _x(t){t=lo(t);let e=t.type==="hsl"||t.type==="hsla"?lo(B6(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function z6(t,e){const n=_x(t),r=_x(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function sa(t,e){return t=lo(t),e=n1(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,pp(t)}function H6(t,e){if(t=lo(t),e=n1(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return pp(t)}function W6(t,e){if(t=lo(t),e=n1(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return pp(t)}function K6(t,e){return R({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const q6=["mode","contrastThreshold","tonalOffset"],wx={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:Bu.white,default:Bu.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}},Qm={text:{primary:Bu.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:Bu.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 Ex(t,e,n,r){const i=r.light||r,s=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=W6(t.main,i):e==="dark"&&(t.dark=H6(t.main,s)))}function G6(t="light"){return t==="dark"?{main:ko[200],light:ko[50],dark:ko[400]}:{main:ko[700],light:ko[400],dark:ko[800]}}function Q6(t="light"){return t==="dark"?{main:Ao[200],light:Ao[50],dark:Ao[400]}:{main:Ao[500],light:Ao[300],dark:Ao[700]}}function Y6(t="light"){return t==="dark"?{main:Po[500],light:Po[300],dark:Po[700]}:{main:Po[700],light:Po[400],dark:Po[800]}}function X6(t="light"){return t==="dark"?{main:No[400],light:No[300],dark:No[700]}:{main:No[700],light:No[500],dark:No[900]}}function J6(t="light"){return t==="dark"?{main:Do[400],light:Do[300],dark:Do[700]}:{main:Do[800],light:Do[500],dark:Do[900]}}function Z6(t="light"){return t==="dark"?{main:Il[400],light:Il[300],dark:Il[700]}:{main:"#ed6c02",light:Il[500],dark:Il[900]}}function e9(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,i=fe(t,q6),s=t.primary||G6(e),o=t.secondary||Q6(e),a=t.error||Y6(e),l=t.info||X6(e),u=t.success||J6(e),c=t.warning||Z6(e);function d(y){return z6(y,Qm.text.primary)>=n?Qm.text.primary:wx.text.primary}const h=({color:y,name:x,mainShade:w=500,lightShade:v=300,darkShade:_=700})=>{if(y=R({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(ps(11,x?` (${x})`:"",w));if(typeof y.main!="string")throw new Error(ps(12,x?` (${x})`:"",JSON.stringify(y.main)));return Ex(y,"light",v,r),Ex(y,"dark",_,r),y.contrastText||(y.contrastText=d(y.main)),y},f={dark:Qm,light:wx};return Vn(R({common:R({},Bu),mode:e,primary:h({color:s,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:l3,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},f[e]),i)}const t9=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function n9(t){return Math.round(t*1e5)/1e5}const xx={textTransform:"uppercase"},Tx='"Roboto", "Helvetica", "Arial", sans-serif';function r9(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=Tx,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,h=fe(n,t9),f=i/14,m=d||(w=>`${w/u*f}rem`),y=(w,v,_,g,S)=>R({fontFamily:r,fontWeight:w,fontSize:m(v),lineHeight:_},r===Tx?{letterSpacing:`${n9(g/v)}em`}:{},S,c),x={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(a,14,1.75,.4,xx),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,xx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vn(R({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},x),h,{clone:!1})}const i9=.2,s9=.14,o9=.12;function nt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${i9})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${s9})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${o9})`].join(",")}const a9=["none",nt(0,2,1,-1,0,1,1,0,0,1,3,0),nt(0,3,1,-2,0,2,2,0,0,1,5,0),nt(0,3,3,-2,0,3,4,0,0,1,8,0),nt(0,2,4,-1,0,4,5,0,0,1,10,0),nt(0,3,5,-1,0,5,8,0,0,1,14,0),nt(0,3,5,-1,0,6,10,0,0,1,18,0),nt(0,4,5,-2,0,7,10,1,0,2,16,1),nt(0,5,5,-3,0,8,10,1,0,3,14,2),nt(0,5,6,-3,0,9,12,1,0,3,16,2),nt(0,6,6,-3,0,10,14,1,0,4,18,3),nt(0,6,7,-4,0,11,15,1,0,4,20,3),nt(0,7,8,-4,0,12,17,2,0,5,22,4),nt(0,7,8,-4,0,13,19,2,0,5,24,4),nt(0,7,9,-4,0,14,21,2,0,5,26,4),nt(0,8,9,-5,0,15,22,2,0,6,28,5),nt(0,8,10,-5,0,16,24,2,0,6,30,5),nt(0,8,11,-5,0,17,26,2,0,6,32,5),nt(0,9,11,-5,0,18,28,2,0,7,34,6),nt(0,9,12,-6,0,19,29,2,0,7,36,6),nt(0,10,13,-6,0,20,31,3,0,8,38,7),nt(0,10,13,-6,0,21,33,3,0,8,40,7),nt(0,10,14,-6,0,22,35,3,0,8,42,7),nt(0,11,14,-7,0,23,36,3,0,9,44,8),nt(0,11,15,-7,0,24,38,3,0,9,46,8)],l9=a9,u9=["duration","easing","delay"],c9={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)"},d9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sx(t){return`${Math.round(t)}ms`}function h9(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function f9(t){const e=R({},c9,t.easing),n=R({},d9,t.duration);return R({getAutoHeightDuration:h9,create:(i=["all"],s={})=>{const{duration:o=n.standard,easing:a=e.easeInOut,delay:l=0}=s;return fe(s,u9),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Sx(o)} ${a} ${typeof l=="string"?l:Sx(l)}`).join(",")}},t,{easing:e,duration:n})}const p9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},m9=p9,g9=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function y9(t={},...e){const{mixins:n={},palette:r={},transitions:i={},typography:s={}}=t,o=fe(t,g9);if(t.vars)throw new Error(ps(18));const a=e9(r),l=e1(t);let u=Vn(l,{mixins:K6(l.breakpoints,n),palette:a,shadows:l9.slice(),typography:r9(a,s),transitions:f9(i),zIndex:R({},m9)});return u=Vn(u,o),u=e.reduce((c,d)=>Vn(c,d),u),u.unstable_sxConfig=R({},J0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return Z0({sx:d,theme:this})},u}const v9=y9(),mp=v9;function r1(){const t=t1(mp);return t[Gf]||t}function Mt({props:t,name:e}){return $6({props:t,name:e,defaultTheme:mp,themeId:Gf})}const br=t=>cu(t)&&t!=="classes",_9=cu,w9=F6({themeId:Gf,defaultTheme:mp,rootShouldForwardProp:br}),ve=w9,E9=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Ix=E9;function x9(t){return Tt("MuiSvgIcon",t)}st("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const T9=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S9=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${yt(e)}`,`fontSize${yt(n)}`]};return Dt(i,x9,r)},I9=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${yt(n.color)}`],e[`fontSize${yt(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,i,s,o,a,l,u,c,d,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=t.typography)==null||(o=s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem",medium:((a=t.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=t.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[e.fontSize],color:(d=(h=(t.vars||t).palette)==null||(h=h[e.color])==null?void 0:h.main)!=null?d:{action:(f=(t.vars||t).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[e.color]}}),Zb=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiSvgIcon"}),{children:i,className:s,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:h="0 0 24 24"}=r,f=fe(r,T9),m=E.isValidElement(i)&&i.type==="svg",y=R({},r,{color:o,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:m}),x={};c||(x.viewBox=h);const w=S9(y);return p.jsxs(I9,R({as:a,className:Pe(w.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,f,m&&i.props,{ownerState:y,children:[m?i.props.children:i,d?p.jsx("title",{children:d}):null]}))});Zb.muiName="SvgIcon";const Cx=Zb;function C9(t,e){function n(r,i){return p.jsx(Cx,R({"data-testid":`${e}Icon`,ref:i},r,{children:t}))}return n.muiName=Cx.muiName,E.memo(E.forwardRef(n))}function Fy(t,e){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fy(t,e)}function eP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fy(t,e)}const Rx={disabled:!1},Lh=Nt.createContext(null);var R9=function(e){return e.scrollTop},$l="unmounted",Fs="exited",js="entering",Lo="entered",jy="exiting",Pi=function(t){eP(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Fs,s.appearStatus=js):l=Lo:r.unmountOnExit||r.mountOnEnter?l=$l:l=Fs,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===$l?{status:Fs}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==js&&o!==Lo&&(s=js):(o===js||o===Lo)&&(s=jy)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===js){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Fl.findDOMNode(this);o&&R9(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fs&&this.setState({status:$l})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Fl.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!i&&!o||Rx.disabled){this.safeSetState({status:Lo},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:js},function(){s.props.onEntering(u,c),s.onTransitionEnd(h,function(){s.safeSetState({status:Lo},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Fl.findDOMNode(this);if(!s||Rx.disabled){this.safeSetState({status:Fs},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:jy},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Fs},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Fl.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$l)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=fe(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Nt.createElement(Lh.Provider,{value:null},typeof o=="function"?o(i,a):Nt.cloneElement(Nt.Children.only(o),a))},e}(Nt.Component);Pi.contextType=Lh;Pi.propTypes={};function Mo(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mo,onEntering:Mo,onEntered:Mo,onExit:Mo,onExiting:Mo,onExited:Mo};Pi.UNMOUNTED=$l;Pi.EXITED=Fs;Pi.ENTERING=js;Pi.ENTERED=Lo;Pi.EXITING=jy;const tP=Pi;function b9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i1(t,e){var n=function(s){return e&&E.isValidElement(s)?e(s):s},r=Object.create(null);return t&&E.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function P9(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),i=[];for(var s in t)s in e?i.length&&(r[s]=i,i=[]):i.push(s);var o,a={};for(var l in e){if(r[l])for(o=0;ot.scrollTop;function Vh(t,e){var n,r;const{timeout:i,easing:s,style:o={}}=t;return{duration:(n=o.transitionDuration)!=null?n:typeof i=="number"?i:i[e.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof s=="object"?s[e.mode]:s,delay:o.transitionDelay}}function O9(t){return Tt("MuiPaper",t)}st("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 L9=["className","component","elevation","square","variant"],V9=t=>{const{square:e,elevation:n,variant:r,classes:i}=t,s={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Dt(s,O9,i)},F9=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return R({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&R({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sa("#fff",Ix(e.elevation))}, ${sa("#fff",Ix(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),j9=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiPaper"}),{className:i,component:s="div",elevation:o=1,square:a=!1,variant:l="elevation"}=r,u=fe(r,L9),c=R({},r,{component:s,elevation:o,square:a,variant:l}),d=V9(c);return p.jsx(F9,R({as:s,ownerState:c,className:Pe(d.root,i),ref:n},u))}),$9=j9;function U9(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:o,in:a,onExited:l,timeout:u}=t,[c,d]=E.useState(!1),h=Pe(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:o,height:o,top:-(o/2)+s,left:-(o/2)+i},m=Pe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),E.useEffect(()=>{if(!a&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,a,u]),p.jsx("span",{className:h,style:f,children:p.jsx("span",{className:m})})}const B9=st("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ir=B9,z9=["center","classes","className"];let gp=t=>t,bx,Px,Ax,kx;const $y=550,H9=80,W9=q0(bx||(bx=gp` 0% { transform: scale(0); opacity: 0.1; @@ -153,8 +153,8 @@ Error generating stack: `+s.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),ir.rippleVisible,W9,$y,({theme:t})=>t.transitions.easing.easeInOut,ir.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,ir.child,ir.childLeaving,K9,$y,({theme:t})=>t.transitions.easing.easeInOut,ir.childPulsate,q9,({theme:t})=>t.transitions.easing.easeInOut),Y9=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:o}=r,a=fe(r,z9),[l,u]=E.useState([]),c=E.useRef(0),d=E.useRef(null);E.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=E.useRef(!1),f=E.useRef(0),m=E.useRef(null),y=E.useRef(null);E.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const x=E.useCallback(g=>{const{pulsate:S,rippleX:I,rippleY:T,rippleSize:C,cb:k}=g;u(P=>[...P,p.jsx(Q9,{classes:{ripple:Pe(s.ripple,ir.ripple),rippleVisible:Pe(s.rippleVisible,ir.rippleVisible),ripplePulsate:Pe(s.ripplePulsate,ir.ripplePulsate),child:Pe(s.child,ir.child),childLeaving:Pe(s.childLeaving,ir.childLeaving),childPulsate:Pe(s.childPulsate,ir.childPulsate)},timeout:$y,pulsate:S,rippleX:I,rippleY:T,rippleSize:C},c.current)]),c.current+=1,d.current=k},[s]),w=E.useCallback((g={},S={},I=()=>{})=>{const{pulsate:T=!1,center:C=i||S.pulsate,fakeElement:k=!1}=S;if((g==null?void 0:g.type)==="mousedown"&&h.current){h.current=!1;return}(g==null?void 0:g.type)==="touchstart"&&(h.current=!0);const P=k?null:y.current,L=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,U,O;if(C||g===void 0||g.clientX===0&&g.clientY===0||!g.clientX&&!g.touches)B=Math.round(L.width/2),U=Math.round(L.height/2);else{const{clientX:D,clientY:z}=g.touches&&g.touches.length>0?g.touches[0]:g;B=Math.round(D-L.left),U=Math.round(z-L.top)}if(C)O=Math.sqrt((2*L.width**2+L.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((P?P.clientWidth:0)-B),B)*2+2,z=Math.max(Math.abs((P?P.clientHeight:0)-U),U)*2+2;O=Math.sqrt(D**2+z**2)}g!=null&&g.touches?m.current===null&&(m.current=()=>{x({pulsate:T,rippleX:B,rippleY:U,rippleSize:O,cb:I})},f.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},H9)):x({pulsate:T,rippleX:B,rippleY:U,rippleSize:O,cb:I})},[i,x]),v=E.useCallback(()=>{w({},{pulsate:!0})},[w]),_=E.useCallback((g,S)=>{if(clearTimeout(f.current),(g==null?void 0:g.type)==="touchend"&&m.current){m.current(),m.current=null,f.current=setTimeout(()=>{_(g,S)});return}m.current=null,u(I=>I.length>0?I.slice(1):I),d.current=S},[]);return E.useImperativeHandle(n,()=>({pulsate:v,start:w,stop:_}),[v,w,_]),p.jsx(G9,R({className:Pe(ir.root,s.root,o),ref:y},a,{children:p.jsx(M9,{component:null,exit:!0,children:l})}))}),X9=Y9;function J9(t){return Tt("MuiButtonBase",t)}const Z9=st("MuiButtonBase",["root","disabled","focusVisible"]),ej=Z9,tj=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],nj=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,o=Dt({root:["root",e&&"disabled",n&&"focusVisible"]},J9,i);return n&&r&&(o.root+=` ${r}`),o},rj=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${ej.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ij=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:f="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:w,onFocus:v,onFocusVisible:_,onKeyDown:g,onKeyUp:S,onMouseDown:I,onMouseLeave:T,onMouseUp:C,onTouchEnd:k,onTouchMove:P,onTouchStart:L,tabIndex:B=0,TouchRippleProps:U,touchRippleRef:O,type:D}=r,z=fe(r,tj),q=E.useRef(null),N=E.useRef(null),j=Cn(N,O),{isFocusVisibleRef:H,onFocus:G,onBlur:J,ref:we}=_3(),[te,Ie]=E.useState(!1);u&&te&&Ie(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{Ie(!0),q.current.focus()}}),[]);const[ge,tt]=E.useState(!1);E.useEffect(()=>{tt(!0)},[]);const Ot=ge&&!c&&!u;E.useEffect(()=>{te&&h&&!c&&ge&&N.current.pulsate()},[c,h,te,ge]);function _e(ie,er,As=d){return ia(Pi=>(er&&er(Pi),!As&&N.current&&N.current[ie](Pi),!0))}const Qe=_e("start",I),me=_e("stop",x),$e=_e("stop",w),ae=_e("stop",C),Me=_e("stop",ie=>{te&&ie.preventDefault(),T&&T(ie)}),We=_e("start",L),Pr=_e("stop",k),Pn=_e("stop",P),An=_e("stop",ie=>{J(ie),H.current===!1&&Ie(!1),m&&m(ie)},!1),Qt=ia(ie=>{q.current||(q.current=ie.currentTarget),G(ie),H.current===!0&&(Ie(!0),_&&_(ie)),v&&v(ie)}),_n=()=>{const ie=q.current;return l&&l!=="button"&&!(ie.tagName==="A"&&ie.href)},ze=E.useRef(!1),$t=ia(ie=>{h&&!ze.current&&te&&N.current&&ie.key===" "&&(ze.current=!0,N.current.stop(ie,()=>{N.current.start(ie)})),ie.target===ie.currentTarget&&_n()&&ie.key===" "&&ie.preventDefault(),g&&g(ie),ie.target===ie.currentTarget&&_n()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),y&&y(ie))}),St=ia(ie=>{h&&ie.key===" "&&N.current&&te&&!ie.defaultPrevented&&(ze.current=!1,N.current.stop(ie,()=>{N.current.pulsate(ie)})),S&&S(ie),y&&ie.target===ie.currentTarget&&_n()&&ie.key===" "&&!ie.defaultPrevented&&y(ie)});let He=l;He==="button"&&(z.href||z.to)&&(He=f);const wn={};He==="button"?(wn.type=D===void 0?"button":D,wn.disabled=u):(!z.href&&!z.to&&(wn.role="button"),u&&(wn["aria-disabled"]=u));const Ar=Cn(n,we,q),Ut=R({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:h,tabIndex:B,focusVisible:te}),Le=nj(Ut);return p.jsxs(rj,R({as:He,className:Pe(Le.root,a),ownerState:Ut,onBlur:An,onClick:y,onContextMenu:me,onFocus:Qt,onKeyDown:$t,onKeyUp:St,onMouseDown:Qe,onMouseLeave:Me,onMouseUp:ae,onDragLeave:$e,onTouchEnd:Pr,onTouchMove:Pn,onTouchStart:We,ref:Ar,tabIndex:u?-1:B,type:D},wn,z,{children:[o,Ot?p.jsx(X9,R({ref:j,center:s},U)):null]}))}),sj=ij;function Fh(t){return typeof t=="string"}function oj(t,e,n){return t===void 0||Fh(t)?e:R({},e,{ownerState:R({},e.ownerState,n)})}function rP(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function aj(t,e,n){return typeof t=="function"?t(e,n):t}function Nx(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function lj(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=t;if(!e){const f=Pe(n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),m=R({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=R({},n,i,r);return f.length>0&&(y.className=f),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const o=rP(R({},i,r)),a=Nx(r),l=Nx(i),u=e(o),c=Pe(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),d=R({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=R({},u,n,l,a);return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}const uj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Na(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:s=!1}=t,o=fe(t,uj),a=s?{}:aj(r,i),{props:l,internalRef:u}=lj(R({},o,{externalSlotProps:a})),c=Cn(u,a==null?void 0:a.ref,(e=t.additionalProps)==null?void 0:e.ref);return oj(n,R({},l,{ref:c}),i)}const cj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dj(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function hj(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function fj(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||hj(t))}function pj(t){const e=[],n=[];return Array.from(t.querySelectorAll(cj)).forEach((r,i)=>{const s=dj(r);s===-1||!fj(r)||(s===0?e.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(e)}function mj(){return!0}function gj(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=pj,isEnabled:o=mj,open:a}=t,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),h=E.useRef(null),f=E.useRef(!1),m=E.useRef(null),y=Cn(e.ref,m),x=E.useRef(null);E.useEffect(()=>{!a||!m.current||(f.current=!n)},[n,a]),E.useEffect(()=>{if(!a||!m.current)return;const _=Wn(m.current);return m.current.contains(_.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),E.useEffect(()=>{if(!a||!m.current)return;const _=Wn(m.current),g=T=>{x.current=T,!(r||!o()||T.key!=="Tab")&&_.activeElement===m.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const T=m.current;if(T===null)return;if(!_.hasFocus()||!o()||l.current){l.current=!1;return}if(T.contains(_.activeElement)||r&&_.activeElement!==u.current&&_.activeElement!==c.current)return;if(_.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let C=[];if((_.activeElement===u.current||_.activeElement===c.current)&&(C=s(m.current)),C.length>0){var k,P;const L=!!((k=x.current)!=null&&k.shiftKey&&((P=x.current)==null?void 0:P.key)==="Tab"),B=C[0],U=C[C.length-1];typeof B!="string"&&typeof U!="string"&&(L?U.focus():B.focus())}else T.focus()};_.addEventListener("focusin",S),_.addEventListener("keydown",g,!0);const I=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(I),_.removeEventListener("focusin",S),_.removeEventListener("keydown",g,!0)}},[n,r,i,o,a,s]);const w=_=>{d.current===null&&(d.current=_.relatedTarget),f.current=!0,h.current=_.target;const g=e.props.onFocus;g&&g(_)},v=_=>{d.current===null&&(d.current=_.relatedTarget),f.current=!0};return p.jsxs(E.Fragment,{children:[p.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(e,{ref:y,onFocus:w}),p.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function yj(t){return typeof t=="function"?t():t}const vj=E.forwardRef(function(e,n){const{children:r,container:i,disablePortal:s=!1}=e,[o,a]=E.useState(null),l=Cn(E.isValidElement(r)?r.ref:null,n);if(ps(()=>{s||a(yj(i)||document.body)},[i,s]),ps(()=>{if(o&&!s)return Dy(n,o),()=>{Dy(n,null)}},[n,o,s]),s){if(E.isValidElement(r)){const u={ref:l};return E.cloneElement(r,u)}return p.jsx(E.Fragment,{children:r})}return p.jsx(E.Fragment,{children:o&&mc.createPortal(r,o)})});function _j(t){const e=Wn(t);return e.body===t?ao(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function du(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Dx(t){return parseInt(ao(t).getComputedStyle(t).paddingRight,10)||0}function wj(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function Mx(t,e,n,r,i){const s=[e,n,...r];[].forEach.call(t.children,o=>{const a=s.indexOf(o)===-1,l=!wj(o);a&&l&&du(o,i)})}function Ym(t,e){let n=-1;return t.some((r,i)=>e(r)?(n=i,!0):!1),n}function Ej(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(_j(r)){const o=Pb(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dx(r)+o}px`;const a=Wn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Dx(l)+o}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Wn(r).body;else{const o=r.parentElement,a=ao(r);s=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:o,property:a})=>{s?o.style.setProperty(a,s):o.style.removeProperty(a)})}}function xj(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class Tj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&du(e.modalRef,!1);const i=xj(n);Mx(n,e.mount,e.modalRef,i,!0);const s=Ym(this.containers,o=>o.container===n);return s!==-1?(this.containers[s].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),r)}mount(e,n){const r=Ym(this.containers,s=>s.modals.indexOf(e)!==-1),i=this.containers[r];i.restore||(i.restore=Ej(i,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const i=Ym(this.containers,o=>o.modals.indexOf(e)!==-1),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(e),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),e.modalRef&&du(e.modalRef,n),Mx(s.container,e.mount,e.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=s.modals[s.modals.length-1];o.modalRef&&du(o.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function Sj(t){return typeof t=="function"?t():t}function Ij(t){return t?t.props.hasOwnProperty("in"):!1}const Cj=new Tj;function Rj(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Cj,closeAfterTransition:s=!1,onTransitionEnter:o,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=t,h=E.useRef({}),f=E.useRef(null),m=E.useRef(null),y=Cn(m,d),[x,w]=E.useState(!c),v=Ij(l);let _=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(_=!1);const g=()=>Wn(f.current),S=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),I=()=>{i.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=ia(()=>{const z=Sj(e)||g().body;i.add(S(),z),m.current&&I()}),C=E.useCallback(()=>i.isTopModal(S()),[i]),k=ia(z=>{f.current=z,z&&(c&&C()?I():m.current&&du(m.current,_))}),P=E.useCallback(()=>{i.remove(S(),_)},[_,i]);E.useEffect(()=>()=>{P()},[P]),E.useEffect(()=>{c?T():(!v||!s)&&P()},[c,P,v,s,T]);const L=z=>q=>{var N;(N=z.onKeyDown)==null||N.call(z,q),!(q.key!=="Escape"||q.which===229||!C())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},B=z=>q=>{var N;(N=z.onClick)==null||N.call(z,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(z={})=>{const q=rP(t);delete q.onTransitionEnter,delete q.onTransitionExited;const N=R({},q,z);return R({role:"presentation"},N,{onKeyDown:L(N),ref:y})},getBackdropProps:(z={})=>{const q=z;return R({"aria-hidden":!0},q,{onClick:B(q),open:c})},getTransitionProps:()=>{const z=()=>{w(!1),o&&o()},q=()=>{w(!0),a&&a(),s&&P()};return{onEnter:ex(z,l==null?void 0:l.props.onEnter),onExited:ex(q,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:k,isTopModal:C,exited:x,hasTransition:v}}const bj=["onChange","maxRows","minRows","style","value"];function pd(t){return parseInt(t,10)||0}const Pj={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ox(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflow}const Aj=E.forwardRef(function(e,n){const{onChange:r,maxRows:i,minRows:s=1,style:o,value:a}=e,l=fe(e,bj),{current:u}=E.useRef(a!=null),c=E.useRef(null),d=Cn(n,c),h=E.useRef(null),f=E.useRef(0),[m,y]=E.useState({outerHeightStyle:0}),x=E.useCallback(()=>{const g=c.current,I=ao(g).getComputedStyle(g);if(I.width==="0px")return{outerHeightStyle:0};const T=h.current;T.style.width=I.width,T.value=g.value||e.placeholder||"x",T.value.slice(-1)===` -`&&(T.value+=" ");const C=I.boxSizing,k=pd(I.paddingBottom)+pd(I.paddingTop),P=pd(I.borderBottomWidth)+pd(I.borderTopWidth),L=T.scrollHeight;T.value="x";const B=T.scrollHeight;let U=L;s&&(U=Math.max(Number(s)*B,U)),i&&(U=Math.min(Number(i)*B,U)),U=Math.max(U,B);const O=U+(C==="border-box"?k+P:0),D=Math.abs(U-L)<=1;return{outerHeightStyle:O,overflow:D}},[i,s,e.placeholder]),w=(g,S)=>{const{outerHeightStyle:I,overflow:T}=S;return f.current<20&&(I>0&&Math.abs((g.outerHeightStyle||0)-I)>1||g.overflow!==T)?(f.current+=1,{overflow:T,outerHeightStyle:I}):g},v=E.useCallback(()=>{const g=x();Ox(g)||y(S=>w(S,g))},[x]);ps(()=>{const g=()=>{const L=x();Ox(L)||mc.flushSync(()=>{y(B=>w(B,L))})},S=()=>{f.current=0,g()};let I;const T=Rb(S),C=c.current,k=ao(C);k.addEventListener("resize",T);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(S),P.observe(C)),()=>{T.clear(),cancelAnimationFrame(I),k.removeEventListener("resize",T),P&&P.disconnect()}},[x]),ps(()=>{v()}),E.useEffect(()=>{f.current=0},[a]);const _=g=>{f.current=0,u||v(),r&&r(g)};return p.jsxs(E.Fragment,{children:[p.jsx("textarea",R({value:a,onChange:_,ref:d,rows:s,style:R({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},o)},l)),p.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:R({},Pj.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Xa({props:t,states:e,muiFormControl:n}){return e.reduce((r,i)=>(r[i]=t[i],n&&typeof t[i]>"u"&&(r[i]=n[i]),r),{})}const kj=E.createContext(void 0),o1=kj;function Ja(){return E.useContext(o1)}function Nj(t){return p.jsx(R6,R({},t,{defaultTheme:mp,themeId:Gf}))}function Lx(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function jh(t,e=!1){return t&&(Lx(t.value)&&t.value!==""||e&&Lx(t.defaultValue)&&t.defaultValue!=="")}function Dj(t){return t.startAdornment}function Mj(t){return Tt("MuiInputBase",t)}const Oj=st("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Da=Oj,Lj=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],yp=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${yt(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},vp=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Vj=t=>{const{classes:e,color:n,disabled:r,error:i,endAdornment:s,focused:o,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:f,type:m}=t,y={root:["root",`color${yt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",a&&"formControl",h&&h!=="medium"&&`size${yt(h)}`,c&&"multiline",f&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return Dt(y,Mj,e)},_p=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yp})(({theme:t,ownerState:e})=>R({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Da.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&R({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),wp=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light",r=R({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return R({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Da.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Da.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Fj=p.jsx(Nj,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jj=E.forwardRef(function(e,n){var r;const i=Mt({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:o,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:y=!1,id:x,inputComponent:w="input",inputProps:v={},inputRef:_,maxRows:g,minRows:S,multiline:I=!1,name:T,onBlur:C,onChange:k,onClick:P,onFocus:L,onKeyDown:B,onKeyUp:U,placeholder:O,readOnly:D,renderSuffix:z,rows:q,slotProps:N={},slots:j={},startAdornment:H,type:G="text",value:J}=i,we=fe(i,Lj),te=v.value!=null?v.value:J,{current:Ie}=E.useRef(te!=null),ge=E.useRef(),tt=E.useCallback(Le=>{},[]),Ot=Cn(ge,_,v.ref,tt),[_e,Qe]=E.useState(!1),me=Ja(),$e=Xa({props:i,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=me?me.focused:_e,E.useEffect(()=>{!me&&h&&_e&&(Qe(!1),C&&C())},[me,h,_e,C]);const ae=me&&me.onFilled,Me=me&&me.onEmpty,We=E.useCallback(Le=>{jh(Le)?ae&&ae():Me&&Me()},[ae,Me]);ps(()=>{Ie&&We({value:te})},[te,We,Ie]);const Pr=Le=>{if($e.disabled){Le.stopPropagation();return}L&&L(Le),v.onFocus&&v.onFocus(Le),me&&me.onFocus?me.onFocus(Le):Qe(!0)},Pn=Le=>{C&&C(Le),v.onBlur&&v.onBlur(Le),me&&me.onBlur?me.onBlur(Le):Qe(!1)},An=(Le,...ie)=>{if(!Ie){const er=Le.target||ge.current;if(er==null)throw new Error(fs(1));We({value:er.value})}v.onChange&&v.onChange(Le,...ie),k&&k(Le,...ie)};E.useEffect(()=>{We(ge.current)},[]);const Qt=Le=>{ge.current&&Le.currentTarget===Le.target&&ge.current.focus(),P&&P(Le)};let _n=w,ze=v;I&&_n==="input"&&(q?ze=R({type:void 0,minRows:q,maxRows:q},ze):ze=R({type:void 0,maxRows:g,minRows:S},ze),_n=Aj);const $t=Le=>{We(Le.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};E.useEffect(()=>{me&&me.setAdornedStart(!!H)},[me,H]);const St=R({},i,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:m,error:$e.error,focused:$e.focused,formControl:me,fullWidth:y,hiddenLabel:$e.hiddenLabel,multiline:I,size:$e.size,startAdornment:H,type:G}),He=Vj(St),wn=j.root||u.Root||_p,Ar=N.root||c.root||{},Ut=j.input||u.Input||wp;return ze=R({},ze,(r=N.input)!=null?r:c.input),p.jsxs(E.Fragment,{children:[!f&&Fj,p.jsxs(wn,R({},Ar,!Fh(wn)&&{ownerState:R({},St,Ar.ownerState)},{ref:n,onClick:Qt},we,{className:Pe(He.root,Ar.className,l,D&&"MuiInputBase-readOnly"),children:[H,p.jsx(o1.Provider,{value:null,children:p.jsx(Ut,R({ownerState:St,"aria-invalid":$e.error,"aria-describedby":s,autoComplete:o,autoFocus:a,defaultValue:d,disabled:$e.disabled,id:x,onAnimationStart:$t,name:T,placeholder:O,readOnly:D,required:$e.required,rows:q,value:te,onKeyDown:B,onKeyUp:U,type:G},ze,!Fh(Ut)&&{as:_n,ownerState:R({},St,ze.ownerState)},{ref:Ot,className:Pe(He.input,ze.className,D&&"MuiInputBase-readOnly"),onBlur:Pn,onChange:An,onFocus:Pr}))}),m,z?z(R({},$e,{startAdornment:H})):null]}))]})}),a1=jj;function $j(t){return Tt("MuiInput",t)}const Uj=R({},Da,st("MuiInput",["root","underline","input"])),Rl=Uj;function Bj(t){return Tt("MuiOutlinedInput",t)}const zj=R({},Da,st("MuiOutlinedInput",["root","notchedOutline","input"])),Ni=zj;function Hj(t){return Tt("MuiFilledInput",t)}const Wj=R({},Da,st("MuiFilledInput",["root","underline","input"])),Ds=Wj,Kj=C9(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gj={entering:{opacity:1},entered:{opacity:1}},Qj=E.forwardRef(function(e,n){const r=r1(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:f,onExited:m,onExiting:y,style:x,timeout:w=i,TransitionComponent:v=tP}=e,_=fe(e,qj),g=E.useRef(null),S=Cn(g,a.ref,n),I=O=>D=>{if(O){const z=g.current;D===void 0?O(z):O(z,D)}},T=I(h),C=I((O,D)=>{nP(O);const z=Vh({style:x,timeout:w,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",z),O.style.transition=r.transitions.create("opacity",z),c&&c(O,D)}),k=I(d),P=I(y),L=I(O=>{const D=Vh({style:x,timeout:w,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),f&&f(O)}),B=I(m),U=O=>{s&&s(g.current,O)};return p.jsx(v,R({appear:o,in:u,nodeRef:g,onEnter:C,onEntered:k,onEntering:T,onExit:L,onExited:B,onExiting:P,addEndListener:U,timeout:w},_,{children:(O,D)=>E.cloneElement(a,R({style:R({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},Gj[O],x,a.props.style),ref:S},D))}))}),Yj=Qj;function Xj(t){return Tt("MuiBackdrop",t)}st("MuiBackdrop",["root","invisible"]);const Jj=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zj=t=>{const{classes:e,invisible:n}=t;return Dt({root:["root",n&&"invisible"]},Xj,e)},e$=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>R({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"},t.invisible&&{backgroundColor:"transparent"})),t$=E.forwardRef(function(e,n){var r,i,s;const o=Mt({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:h=!1,open:f,slotProps:m={},slots:y={},TransitionComponent:x=Yj,transitionDuration:w}=o,v=fe(o,Jj),_=R({},o,{component:u,invisible:h}),g=Zj(_),S=(r=m.root)!=null?r:d.root;return p.jsx(x,R({in:f,timeout:w},v,{children:p.jsx(e$,R({"aria-hidden":!0},S,{as:(i=(s=y.root)!=null?s:c.Root)!=null?i:u,className:Pe(g.root,l,S==null?void 0:S.className),ownerState:R({},_,S==null?void 0:S.ownerState),classes:g,ref:n,children:a}))}))}),n$=t$;function r$(t){return Tt("MuiModal",t)}st("MuiModal",["root","hidden","backdrop"]);const i$=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],s$=t=>{const{open:e,exited:n,classes:r}=t;return Dt({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},r$,r)},o$=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>R({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),a$=ve(n$,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),l$=E.forwardRef(function(e,n){var r,i,s,o,a,l;const u=Mt({name:"MuiModal",props:e}),{BackdropComponent:c=a$,BackdropProps:d,className:h,closeAfterTransition:f=!1,children:m,container:y,component:x,components:w={},componentsProps:v={},disableAutoFocus:_=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:S=!1,disablePortal:I=!1,disableRestoreFocus:T=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:P=!1,onBackdropClick:L,open:B,slotProps:U,slots:O}=u,D=fe(u,i$),z=R({},u,{closeAfterTransition:f,disableAutoFocus:_,disableEnforceFocus:g,disableEscapeKeyDown:S,disablePortal:I,disableRestoreFocus:T,disableScrollLock:C,hideBackdrop:k,keepMounted:P}),{getRootProps:q,getBackdropProps:N,getTransitionProps:j,portalRef:H,isTopModal:G,exited:J,hasTransition:we}=Rj(R({},z,{rootRef:n})),te=R({},z,{exited:J}),Ie=s$(te),ge={};if(m.props.tabIndex===void 0&&(ge.tabIndex="-1"),we){const{onEnter:ae,onExited:Me}=j();ge.onEnter=ae,ge.onExited=Me}const tt=(r=(i=O==null?void 0:O.root)!=null?i:w.Root)!=null?r:o$,Ot=(s=(o=O==null?void 0:O.backdrop)!=null?o:w.Backdrop)!=null?s:c,_e=(a=U==null?void 0:U.root)!=null?a:v.root,Qe=(l=U==null?void 0:U.backdrop)!=null?l:v.backdrop,me=Na({elementType:tt,externalSlotProps:_e,externalForwardedProps:D,getSlotProps:q,additionalProps:{ref:n,as:x},ownerState:te,className:Pe(h,_e==null?void 0:_e.className,Ie==null?void 0:Ie.root,!te.open&&te.exited&&(Ie==null?void 0:Ie.hidden))}),$e=Na({elementType:Ot,externalSlotProps:Qe,additionalProps:d,getSlotProps:ae=>N(R({},ae,{onClick:Me=>{L&&L(Me),ae!=null&&ae.onClick&&ae.onClick(Me)}})),className:Pe(Qe==null?void 0:Qe.className,d==null?void 0:d.className,Ie==null?void 0:Ie.backdrop),ownerState:te});return!P&&!B&&(!we||J)?null:p.jsx(vj,{ref:H,container:y,disablePortal:I,children:p.jsxs(tt,R({},me,{children:[!k&&c?p.jsx(Ot,R({},$e)):null,p.jsx(gj,{disableEnforceFocus:g,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:G,open:B,children:E.cloneElement(m,ge)})]}))})}),u$=l$,c$=st("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Vx=c$,d$=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h$=t=>{const{classes:e,disableUnderline:n}=t,i=Dt({root:["root",!n&&"underline"],input:["input"]},Hj,e);return R({},e,i)},f$=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...yp(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const r=t.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return R({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Ds.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Ds.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(t.vars||t).palette[e.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&R({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),p$=ve(wp,{name:"MuiFilledInput",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>R({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),iP=E.forwardRef(function(e,n){var r,i,s,o;const a=Mt({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:f,slots:m={},type:y="text"}=a,x=fe(a,d$),w=R({},a,{fullWidth:c,inputComponent:d,multiline:h,type:y}),v=h$(a),_={root:{ownerState:w},input:{ownerState:w}},g=f??u?Vn(f??u,_):_,S=(r=(i=m.root)!=null?i:l.Root)!=null?r:f$,I=(s=(o=m.input)!=null?o:l.Input)!=null?s:p$;return p.jsx(a1,R({slots:{root:S,input:I},componentsProps:g,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:y},x,{classes:v}))});iP.muiName="Input";const sP=iP;function m$(t){return Tt("MuiFormControl",t)}st("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const g$=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y$=t=>{const{classes:e,margin:n,fullWidth:r}=t,i={root:["root",n!=="none"&&`margin${yt(n)}`,r&&"fullWidth"]};return Dt(i,m$,e)},v$=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>R({},e.root,e[`margin${yt(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>R({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),_$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormControl"}),{children:i,className:s,color:o="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:h=!1,margin:f="none",required:m=!1,size:y="medium",variant:x="outlined"}=r,w=fe(r,g$),v=R({},r,{color:o,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:h,margin:f,required:m,size:y,variant:x}),_=y$(v),[g,S]=E.useState(()=>{let U=!1;return i&&E.Children.forEach(i,O=>{if(!Km(O,["Input","Select"]))return;const D=Km(O,["Select"])?O.props.input:O;D&&Dj(D.props)&&(U=!0)}),U}),[I,T]=E.useState(()=>{let U=!1;return i&&E.Children.forEach(i,O=>{Km(O,["Input","Select"])&&(jh(O.props,!0)||jh(O.props.inputProps,!0))&&(U=!0)}),U}),[C,k]=E.useState(!1);l&&C&&k(!1);const P=c!==void 0&&!l?c:C;let L;const B=E.useMemo(()=>({adornedStart:g,setAdornedStart:S,color:o,disabled:l,error:u,filled:I,focused:P,fullWidth:d,hiddenLabel:h,size:y,onBlur:()=>{k(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{k(!0)},registerEffect:L,required:m,variant:x}),[g,o,l,u,I,P,d,h,L,m,y,x]);return p.jsx(o1.Provider,{value:B,children:p.jsx(v$,R({as:a,ownerState:v,className:Pe(_.root,s),ref:n},w,{children:i}))})}),w$=_$;function E$(t){return Tt("MuiFormHelperText",t)}const x$=st("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Fx=x$;var jx;const T$=["children","className","component","disabled","error","filled","focused","margin","required","variant"],S$=t=>{const{classes:e,contained:n,size:r,disabled:i,error:s,filled:o,focused:a,required:l}=t,u={root:["root",i&&"disabled",s&&"error",r&&`size${yt(r)}`,n&&"contained",a&&"focused",o&&"filled",l&&"required"]};return Dt(u,E$,e)},I$=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${yt(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>R({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Fx.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Fx.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),C$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormHelperText"}),{children:i,className:s,component:o="p"}=r,a=fe(r,T$),l=Ja(),u=Xa({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=R({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=S$(c);return p.jsx(I$,R({as:o,ownerState:c,className:Pe(d.root,s),ref:n},a,{children:i===" "?jx||(jx=p.jsx("span",{className:"notranslate",children:"​"})):i}))}),R$=C$;function b$(t){return Tt("MuiFormLabel",t)}const P$=st("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hu=P$,A$=["children","className","color","component","disabled","error","filled","focused","required"],k$=t=>{const{classes:e,color:n,focused:r,disabled:i,error:s,filled:o,required:a}=t,l={root:["root",`color${yt(n)}`,i&&"disabled",s&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return Dt(l,b$,e)},N$=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>R({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>R({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${hu.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${hu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${hu.error}`]:{color:(t.vars||t).palette.error.main}})),D$=ve("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${hu.error}`]:{color:(t.vars||t).palette.error.main}})),M$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormLabel"}),{children:i,className:s,component:o="label"}=r,a=fe(r,A$),l=Ja(),u=Xa({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=R({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=k$(c);return p.jsxs(N$,R({as:o,ownerState:c,className:Pe(d.root,s),ref:n},a,{children:[i,u.required&&p.jsxs(D$,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),O$=M$,L$=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Uy(t){return`scale(${t}, ${t**2})`}const V$={entering:{opacity:1,transform:Uy(1)},entered:{opacity:1,transform:"none"}},Xm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oP=E.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:s,easing:o,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:h,onExiting:f,style:m,timeout:y="auto",TransitionComponent:x=tP}=e,w=fe(e,L$),v=E.useRef(),_=E.useRef(),g=r1(),S=E.useRef(null),I=Cn(S,s.ref,n),T=D=>z=>{if(D){const q=S.current;z===void 0?D(q):D(q,z)}},C=T(c),k=T((D,z)=>{nP(D);const{duration:q,delay:N,easing:j}=Vh({style:m,timeout:y,easing:o},{mode:"enter"});let H;y==="auto"?(H=g.transitions.getAutoHeightDuration(D.clientHeight),_.current=H):H=q,D.style.transition=[g.transitions.create("opacity",{duration:H,delay:N}),g.transitions.create("transform",{duration:Xm?H:H*.666,delay:N,easing:j})].join(","),l&&l(D,z)}),P=T(u),L=T(f),B=T(D=>{const{duration:z,delay:q,easing:N}=Vh({style:m,timeout:y,easing:o},{mode:"exit"});let j;y==="auto"?(j=g.transitions.getAutoHeightDuration(D.clientHeight),_.current=j):j=z,D.style.transition=[g.transitions.create("opacity",{duration:j,delay:q}),g.transitions.create("transform",{duration:Xm?j:j*.666,delay:Xm?q:q||j*.333,easing:N})].join(","),D.style.opacity=0,D.style.transform=Uy(.75),d&&d(D)}),U=T(h),O=D=>{y==="auto"&&(v.current=setTimeout(D,_.current||0)),r&&r(S.current,D)};return E.useEffect(()=>()=>{clearTimeout(v.current)},[]),p.jsx(x,R({appear:i,in:a,nodeRef:S,onEnter:k,onEntered:P,onEntering:C,onExit:B,onExited:U,onExiting:L,addEndListener:O,timeout:y==="auto"?null:y},w,{children:(D,z)=>E.cloneElement(s,R({style:R({opacity:0,transform:Uy(.75),visibility:D==="exited"&&!a?"hidden":void 0},V$[D],m,s.props.style),ref:I},z))}))});oP.muiSupportAuto=!0;const F$=oP,j$=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$$=t=>{const{classes:e,disableUnderline:n}=t,i=Dt({root:["root",!n&&"underline"],input:["input"]},$j,e);return R({},e,i)},U$=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...yp(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),R({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Rl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rl.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Rl.disabled}, .${Rl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Rl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),B$=ve(wp,{name:"MuiInput",slot:"Input",overridesResolver:vp})({}),aP=E.forwardRef(function(e,n){var r,i,s,o;const a=Mt({props:e,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:f=!1,slotProps:m,slots:y={},type:x="text"}=a,w=fe(a,j$),v=$$(a),g={root:{ownerState:{disableUnderline:l}}},S=m??c?Vn(m??c,g):g,I=(r=(i=y.root)!=null?i:u.Root)!=null?r:U$,T=(s=(o=y.input)!=null?o:u.Input)!=null?s:B$;return p.jsx(a1,R({slots:{root:I,input:T},slotProps:S,fullWidth:d,inputComponent:h,multiline:f,ref:n,type:x},w,{classes:v}))});aP.muiName="Input";const Za=aP;function z$(t){return Tt("MuiInputLabel",t)}st("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const H$=["disableAnimation","margin","shrink","variant","className"],W$=t=>{const{classes:e,formControl:n,size:r,shrink:i,disableAnimation:s,variant:o,required:a}=t,l={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="normal"&&`size${yt(r)}`,o],asterisk:[a&&"asterisk"]},u=Dt(l,z$,e);return R({},e,u)},K$=ve(O$,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${hu.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(({theme:t,ownerState:e})=>R({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&R({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&R({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&R({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),q$=E.forwardRef(function(e,n){const r=Mt({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:s,className:o}=r,a=fe(r,H$),l=Ja();let u=s;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Xa({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=R({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=W$(d);return p.jsx(K$,R({"data-shrink":u,ownerState:d,ref:n,className:Pe(h.root,o)},a,{classes:h}))}),G$=q$,Q$=E.createContext({}),By=Q$;function Y$(t){return Tt("MuiList",t)}st("MuiList",["root","padding","dense","subheader"]);const X$=["children","className","component","dense","disablePadding","subheader"],J$=t=>{const{classes:e,disablePadding:n,dense:r,subheader:i}=t;return Dt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Y$,e)},Z$=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>R({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),eU=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiList"}),{children:i,className:s,component:o="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=fe(r,X$),d=E.useMemo(()=>({dense:a}),[a]),h=R({},r,{component:o,dense:a,disablePadding:l}),f=J$(h);return p.jsx(By.Provider,{value:d,children:p.jsxs(Z$,R({as:o,className:Pe(f.root,s),ref:n,ownerState:h},c,{children:[u,i]}))})}),tU=eU,nU=st("MuiListItemIcon",["root","alignItemsFlexStart"]),$x=nU,rU=st("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ux=rU,iU=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jm(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function Bx(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function lP(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function bl(t,e,n,r,i,s){let o=!1,a=i(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(o)return!1;o=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!lP(a,s)||l)a=i(t,a,n);else return a.focus(),!0}return!1}const sU=E.forwardRef(function(e,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:o,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,h=fe(e,iU),f=E.useRef(null),m=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ps(()=>{i&&f.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(_,g)=>{const S=!f.current.style.width;if(_.clientHeight{const g=f.current,S=_.key,I=Wn(g).activeElement;if(S==="ArrowDown")_.preventDefault(),bl(g,I,u,l,Jm);else if(S==="ArrowUp")_.preventDefault(),bl(g,I,u,l,Bx);else if(S==="Home")_.preventDefault(),bl(g,null,u,l,Jm);else if(S==="End")_.preventDefault(),bl(g,null,u,l,Bx);else if(S.length===1){const T=m.current,C=S.toLowerCase(),k=performance.now();T.keys.length>0&&(k-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&C!==T.keys[0]&&(T.repeating=!1)),T.lastTime=k,T.keys.push(C);const P=I&&!T.repeating&&lP(I,T);T.previousKeyMatched&&(P||bl(g,I,!1,l,Jm,T))?_.preventDefault():T.previousKeyMatched=!1}c&&c(_)},x=Cn(f,n);let w=-1;E.Children.forEach(o,(_,g)=>{if(!E.isValidElement(_)){w===g&&(w+=1,w>=o.length&&(w=-1));return}_.props.disabled||(d==="selectedMenu"&&_.props.selected||w===-1)&&(w=g),w===g&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(w+=1,w>=o.length&&(w=-1))});const v=E.Children.map(o,(_,g)=>{if(g===w){const S={};return s&&(S.autoFocus=!0),_.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),E.cloneElement(_,S)}return _});return p.jsx(tU,R({role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:i?0:-1},h,{children:v}))}),oU=sU;function aU(t){return Tt("MuiPopover",t)}st("MuiPopover",["root","paper"]);const lU=["onEntering"],uU=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cU=["slotProps"];function zx(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function Hx(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function Wx(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Zm(t){return typeof t=="function"?t():t}const dU=t=>{const{classes:e}=t;return Dt({root:["root"],paper:["paper"]},aU,e)},hU=ve(u$,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),uP=ve($9,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fU=E.forwardRef(function(e,n){var r,i,s;const o=Mt({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:f,container:m,elevation:y=8,marginThreshold:x=16,open:w,PaperProps:v={},slots:_,slotProps:g,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:I=F$,transitionDuration:T="auto",TransitionProps:{onEntering:C}={},disableScrollLock:k=!1}=o,P=fe(o.TransitionProps,lU),L=fe(o,uU),B=(r=g==null?void 0:g.paper)!=null?r:v,U=E.useRef(),O=Cn(U,B.ref),D=R({},o,{anchorOrigin:u,anchorReference:d,elevation:y,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:S,TransitionComponent:I,transitionDuration:T,TransitionProps:P}),z=dU(D),q=E.useCallback(()=>{if(d==="anchorPosition")return c;const ae=Zm(l),We=(ae&&ae.nodeType===1?ae:Wn(U.current).body).getBoundingClientRect();return{top:We.top+zx(We,u.vertical),left:We.left+Hx(We,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),N=E.useCallback(ae=>({vertical:zx(ae,S.vertical),horizontal:Hx(ae,S.horizontal)}),[S.horizontal,S.vertical]),j=E.useCallback(ae=>{const Me={width:ae.offsetWidth,height:ae.offsetHeight},We=N(Me);if(d==="none")return{top:null,left:null,transformOrigin:Wx(We)};const Pr=q();let Pn=Pr.top-We.vertical,An=Pr.left-We.horizontal;const Qt=Pn+Me.height,_n=An+Me.width,ze=ao(Zm(l)),$t=ze.innerHeight-x,St=ze.innerWidth-x;if(x!==null&&Pn$t){const He=Qt-$t;Pn-=He,We.vertical+=He}if(x!==null&&AnSt){const He=_n-St;An-=He,We.horizontal+=He}return{top:`${Math.round(Pn)}px`,left:`${Math.round(An)}px`,transformOrigin:Wx(We)}},[l,d,q,N,x]),[H,G]=E.useState(w),J=E.useCallback(()=>{const ae=U.current;if(!ae)return;const Me=j(ae);Me.top!==null&&(ae.style.top=Me.top),Me.left!==null&&(ae.style.left=Me.left),ae.style.transformOrigin=Me.transformOrigin,G(!0)},[j]);E.useEffect(()=>(k&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[l,k,J]);const we=(ae,Me)=>{C&&C(ae,Me),J()},te=()=>{G(!1)};E.useEffect(()=>{w&&J()}),E.useImperativeHandle(a,()=>w?{updatePosition:()=>{J()}}:null,[w,J]),E.useEffect(()=>{if(!w)return;const ae=Rb(()=>{J()}),Me=ao(l);return Me.addEventListener("resize",ae),()=>{ae.clear(),Me.removeEventListener("resize",ae)}},[l,w,J]);let Ie=T;T==="auto"&&!I.muiSupportAuto&&(Ie=void 0);const ge=m||(l?Wn(Zm(l)).body:void 0),tt=(i=_==null?void 0:_.root)!=null?i:hU,Ot=(s=_==null?void 0:_.paper)!=null?s:uP,_e=Na({elementType:Ot,externalSlotProps:R({},B,{style:H?B.style:R({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:O},ownerState:D,className:Pe(z.paper,B==null?void 0:B.className)}),Qe=Na({elementType:tt,externalSlotProps:(g==null?void 0:g.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ge,open:w},ownerState:D,className:Pe(z.root,f)}),{slotProps:me}=Qe,$e=fe(Qe,cU);return p.jsx(tt,R({},$e,!Fh(tt)&&{slotProps:me,disableScrollLock:k},{children:p.jsx(I,R({appear:!0,in:w,onEntering:we,onExited:te,timeout:Ie},P,{children:p.jsx(Ot,R({},_e,{children:h}))}))}))}),pU=fU;function mU(t){return Tt("MuiMenu",t)}st("MuiMenu",["root","paper","list"]);const gU=["onEntering"],yU=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vU={vertical:"top",horizontal:"right"},_U={vertical:"top",horizontal:"left"},wU=t=>{const{classes:e}=t;return Dt({root:["root"],paper:["paper"],list:["list"]},mU,e)},EU=ve(pU,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),xU=ve(uP,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TU=ve(oU,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),SU=E.forwardRef(function(e,n){var r,i;const s=Mt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:h,PaperProps:f={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:w="selectedMenu",slots:v={},slotProps:_={}}=s,g=fe(s.TransitionProps,gU),S=fe(s,yU),I=r1(),T=I.direction==="rtl",C=R({},s,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:x,PaperProps:f,transitionDuration:y,TransitionProps:g,variant:w}),k=wU(C),P=o&&!u&&h,L=E.useRef(null),B=(j,H)=>{L.current&&L.current.adjustStyleForScrollbar(j,I),x&&x(j,H)},U=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let O=-1;E.Children.map(a,(j,H)=>{E.isValidElement(j)&&(j.props.disabled||(w==="selectedMenu"&&j.props.selected||O===-1)&&(O=H))});const D=(r=v.paper)!=null?r:xU,z=(i=_.paper)!=null?i:f,q=Na({elementType:v.root,externalSlotProps:_.root,ownerState:C,className:[k.root,l]}),N=Na({elementType:D,externalSlotProps:z,ownerState:C,className:k.paper});return p.jsx(EU,R({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?vU:_U,slots:{paper:D,root:v.root},slotProps:{root:q,paper:N},open:h,ref:n,transitionDuration:y,TransitionProps:R({onEntering:B},g),ownerState:C},S,{classes:m,children:p.jsx(TU,R({onKeyDown:U,actions:L,autoFocus:o&&(O===-1||u),autoFocusItem:P,variant:w},c,{className:Pe(k.list,c.className),children:a}))}))}),IU=SU;function CU(t){return Tt("MuiMenuItem",t)}const RU=st("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Pl=RU,bU=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PU=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},AU=t=>{const{disabled:e,dense:n,divider:r,disableGutters:i,selected:s,classes:o}=t,l=Dt({root:["root",n&&"dense",e&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},CU,o);return R({},o,l)},kU=ve(sj,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PU})(({theme:t,ownerState:e})=>R({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sa(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Pl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:sa(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Pl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:sa(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sa(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Pl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Pl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Vx.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Vx.inset}`]:{marginLeft:52},[`& .${Ux.root}`]:{marginTop:0,marginBottom:0},[`& .${Ux.inset}`]:{paddingLeft:36},[`& .${$x.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&R({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${$x.root} svg`]:{fontSize:"1.25rem"}}))),NU=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:o=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:h}=r,f=fe(r,bU),m=E.useContext(By),y=E.useMemo(()=>({dense:o||m.dense||!1,disableGutters:l}),[m.dense,o,l]),x=E.useRef(null);ps(()=>{i&&x.current&&x.current.focus()},[i]);const w=R({},r,{dense:y.dense,divider:a,disableGutters:l}),v=AU(r),_=Cn(x,n);let g;return r.disabled||(g=d!==void 0?d:-1),p.jsx(By.Provider,{value:y,children:p.jsx(kU,R({ref:_,role:c,tabIndex:g,component:s,focusVisibleClassName:Pe(v.focusVisible,u),className:Pe(v.root,h)},f,{ownerState:w,classes:v}))})}),eg=NU;function DU(t){return Tt("MuiNativeSelect",t)}const MU=st("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l1=MU,OU=["className","disabled","error","IconComponent","inputRef","variant"],LU=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:s,error:o}=t,a={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${yt(n)}`,s&&"iconOpen",r&&"disabled"]};return Dt(a,DU,e)},cP=({ownerState:t,theme:e})=>R({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":R({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${l1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),VU=ve("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${l1.multiple}`]:e.multiple}]}})(cP),dP=({ownerState:t,theme:e})=>R({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${l1.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),FU=ve("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${yt(n.variant)}`],n.open&&e.iconOpen]}})(dP),jU=E.forwardRef(function(e,n){const{className:r,disabled:i,error:s,IconComponent:o,inputRef:a,variant:l="standard"}=e,u=fe(e,OU),c=R({},e,{disabled:i,variant:l,error:s}),d=LU(c);return p.jsxs(E.Fragment,{children:[p.jsx(VU,R({ownerState:c,className:Pe(d.select,r),disabled:i,ref:a||n},u)),e.multiple?null:p.jsx(FU,{as:o,ownerState:c,className:d.icon})]})}),$U=jU;var Kx;const UU=["children","classes","className","label","notched"],BU=ve("fieldset",{shouldForwardProp:br})({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%"}),zU=ve("legend",{shouldForwardProp:br})(({ownerState:t,theme:e})=>R({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&R({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"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function HU(t){const{className:e,label:n,notched:r}=t,i=fe(t,UU),s=n!=null&&n!=="",o=R({},t,{notched:r,withLabel:s});return p.jsx(BU,R({"aria-hidden":!0,className:e,ownerState:o},i,{children:p.jsx(zU,{ownerState:o,children:s?p.jsx("span",{children:n}):Kx||(Kx=p.jsx("span",{className:"notranslate",children:"​"}))})}))}const WU=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],KU=t=>{const{classes:e}=t,r=Dt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bj,e);return R({},e,r)},qU=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:yp})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ni.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ni.focused} .${Ni.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${Ni.error} .${Ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Ni.disabled} .${Ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&R({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),GU=ve(HU,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),QU=ve(wp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>R({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),hP=E.forwardRef(function(e,n){var r,i,s,o,a;const l=Mt({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:h,multiline:f=!1,notched:m,slots:y={},type:x="text"}=l,w=fe(l,WU),v=KU(l),_=Ja(),g=Xa({props:l,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=R({},l,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:_,fullWidth:c,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:x}),I=(r=(i=y.root)!=null?i:u.Root)!=null?r:qU,T=(s=(o=y.input)!=null?o:u.Input)!=null?s:QU;return p.jsx(a1,R({slots:{root:I,input:T},renderSuffix:C=>p.jsx(GU,{ownerState:S,className:v.notchedOutline,label:h!=null&&h!==""&&g.required?a||(a=p.jsxs(E.Fragment,{children:[h," ","*"]})):h,notched:typeof m<"u"?m:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:n,type:x},w,{classes:R({},v,{notchedOutline:null})}))});hP.muiName="Input";const fP=hP;function YU(t){return Tt("MuiSelect",t)}const XU=st("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Al=XU;var qx;const JU=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ZU=ve("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Al.select}`]:e.select},{[`&.${Al.select}`]:e[n.variant]},{[`&.${Al.error}`]:e.error},{[`&.${Al.multiple}`]:e.multiple}]}})(cP,{[`&.${Al.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),e8=ve("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${yt(n.variant)}`],n.open&&e.iconOpen]}})(dP),t8=ve("input",{shouldForwardProp:t=>_9(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Gx(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function n8(t){return t==null||typeof t=="string"&&!t.trim()}const r8=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:s,error:o}=t,a={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${yt(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Dt(a,YU,e)},i8=E.forwardRef(function(e,n){var r;const{"aria-describedby":i,"aria-label":s,autoFocus:o,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:f,error:m=!1,IconComponent:y,inputRef:x,labelId:w,MenuProps:v={},multiple:_,name:g,onBlur:S,onChange:I,onClose:T,onFocus:C,onOpen:k,open:P,readOnly:L,renderValue:B,SelectDisplayProps:U={},tabIndex:O,value:D,variant:z="standard"}=e,q=fe(e,JU),[N,j]=rx({controlled:D,default:d,name:"Select"}),[H,G]=rx({controlled:P,default:c,name:"Select"}),J=E.useRef(null),we=E.useRef(null),[te,Ie]=E.useState(null),{current:ge}=E.useRef(P!=null),[tt,Ot]=E.useState(),_e=Cn(n,x),Qe=E.useCallback(ne=>{we.current=ne,ne&&Ie(ne)},[]),me=te==null?void 0:te.parentNode;E.useImperativeHandle(_e,()=>({focus:()=>{we.current.focus()},node:J.current,value:N}),[N]),E.useEffect(()=>{c&&H&&te&&!ge&&(Ot(a?null:me.clientWidth),we.current.focus())},[te,a]),E.useEffect(()=>{o&&we.current.focus()},[o]),E.useEffect(()=>{if(!w)return;const ne=Wn(we.current).getElementById(w);if(ne){const Ue=()=>{getSelection().isCollapsed&&we.current.focus()};return ne.addEventListener("click",Ue),()=>{ne.removeEventListener("click",Ue)}}},[w]);const $e=(ne,Ue)=>{ne?k&&k(Ue):T&&T(Ue),ge||(Ot(a?null:me.clientWidth),G(ne))},ae=ne=>{ne.button===0&&(ne.preventDefault(),we.current.focus(),$e(!0,ne))},Me=ne=>{$e(!1,ne)},We=E.Children.toArray(l),Pr=ne=>{const Ue=We.find(_t=>_t.props.value===ne.target.value);Ue!==void 0&&(j(Ue.props.value),I&&I(ne,Ue))},Pn=ne=>Ue=>{let _t;if(Ue.currentTarget.hasAttribute("tabindex")){if(_){_t=Array.isArray(N)?N.slice():[];const Ai=N.indexOf(ne.props.value);Ai===-1?_t.push(ne.props.value):_t.splice(Ai,1)}else _t=ne.props.value;if(ne.props.onClick&&ne.props.onClick(Ue),N!==_t&&(j(_t),I)){const Ai=Ue.nativeEvent||Ue,ll=new Ai.constructor(Ai.type,Ai);Object.defineProperty(ll,"target",{writable:!0,value:{value:_t,name:g}}),I(ll,ne)}_||$e(!1,Ue)}},An=ne=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),$e(!0,ne))},Qt=te!==null&&H,_n=ne=>{!Qt&&S&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:N,name:g}}),S(ne))};delete q["aria-invalid"];let ze,$t;const St=[];let He=!1;(jh({value:N})||f)&&(B?ze=B(N):He=!0);const wn=We.map(ne=>{if(!E.isValidElement(ne))return null;let Ue;if(_){if(!Array.isArray(N))throw new Error(fs(2));Ue=N.some(_t=>Gx(_t,ne.props.value)),Ue&&He&&St.push(ne.props.children)}else Ue=Gx(N,ne.props.value),Ue&&He&&($t=ne.props.children);return E.cloneElement(ne,{"aria-selected":Ue?"true":"false",onClick:Pn(ne),onKeyUp:_t=>{_t.key===" "&&_t.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(_t)},role:"option",selected:Ue,value:void 0,"data-value":ne.props.value})});He&&(_?St.length===0?ze=null:ze=St.reduce((ne,Ue,_t)=>(ne.push(Ue),_t{const{classes:e}=t;return e},u1={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},u8=ve(Za,u1)(""),c8=ve(fP,u1)(""),d8=ve(sP,u1)(""),pP=E.forwardRef(function(e,n){const r=Mt({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:s,classes:o={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Kj,id:d,input:h,inputProps:f,label:m,labelId:y,MenuProps:x,multiple:w=!1,native:v=!1,onClose:_,onOpen:g,open:S,renderValue:I,SelectDisplayProps:T,variant:C="outlined"}=r,k=fe(r,o8),P=v?$U:s8,L=Ja(),B=Xa({props:r,muiFormControl:L,states:["variant","error"]}),U=B.variant||C,O=R({},r,{variant:U,classes:o}),D=l8(O),z=fe(D,a8),q=h||{standard:p.jsx(u8,{ownerState:O}),outlined:p.jsx(c8,{label:m,ownerState:O}),filled:p.jsx(d8,{ownerState:O})}[U],N=Cn(n,q.ref);return p.jsx(E.Fragment,{children:E.cloneElement(q,R({inputComponent:P,inputProps:R({children:s,error:B.error,IconComponent:c,variant:U,type:void 0,multiple:w},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:_,onOpen:g,open:S,renderValue:I,SelectDisplayProps:R({id:d},T)},f,{classes:f?Vn(z,f.classes):z},h?h.props.inputProps:{})},w&&v&&U==="outlined"?{notched:!0}:{},{ref:N,className:Pe(q.props.className,a,D.root)},!h&&{variant:U},k))})});pP.muiName="Select";const mP=pP;function h8(t){return Tt("MuiTextField",t)}st("MuiTextField",["root"]);const f8=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],p8={standard:Za,filled:sP,outlined:fP},m8=t=>{const{classes:e}=t;return Dt({root:["root"]},h8,e)},g8=ve(w$,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),y8=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:o,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:m,id:y,InputLabelProps:x,inputProps:w,InputProps:v,inputRef:_,label:g,maxRows:S,minRows:I,multiline:T=!1,name:C,onBlur:k,onChange:P,onFocus:L,placeholder:B,required:U=!1,rows:O,select:D=!1,SelectProps:z,type:q,value:N,variant:j="outlined"}=r,H=fe(r,f8),G=R({},r,{autoFocus:s,color:l,disabled:c,error:d,fullWidth:f,multiline:T,required:U,select:D,variant:j}),J=m8(G),we={};j==="outlined"&&(x&&typeof x.shrink<"u"&&(we.notched=x.shrink),we.label=g),D&&((!z||!z.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const te=bb(y),Ie=m&&te?`${te}-helper-text`:void 0,ge=g&&te?`${te}-label`:void 0,tt=p8[j],Ot=p.jsx(tt,R({"aria-describedby":Ie,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:f,multiline:T,name:C,rows:O,maxRows:S,minRows:I,type:q,value:N,id:te,inputRef:_,onBlur:k,onChange:P,onFocus:L,placeholder:B,inputProps:w},we,v));return p.jsxs(g8,R({className:Pe(J.root,a),disabled:c,error:d,fullWidth:f,ref:n,required:U,color:l,variant:j,ownerState:G},H,{children:[g!=null&&g!==""&&p.jsx(G$,R({htmlFor:te,id:ge},x,{children:g})),D?p.jsx(mP,R({"aria-describedby":Ie,id:te,labelId:ge,value:N,input:Ot},z,{children:o})):Ot,m&&p.jsx(R$,R({id:Ie},h,{children:m}))]}))}),Qx=y8;var Yx={};/** +`),ir.rippleVisible,W9,$y,({theme:t})=>t.transitions.easing.easeInOut,ir.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,ir.child,ir.childLeaving,K9,$y,({theme:t})=>t.transitions.easing.easeInOut,ir.childPulsate,q9,({theme:t})=>t.transitions.easing.easeInOut),Y9=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:o}=r,a=fe(r,z9),[l,u]=E.useState([]),c=E.useRef(0),d=E.useRef(null);E.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=E.useRef(!1),f=E.useRef(0),m=E.useRef(null),y=E.useRef(null);E.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const x=E.useCallback(g=>{const{pulsate:S,rippleX:I,rippleY:T,rippleSize:C,cb:k}=g;u(P=>[...P,p.jsx(Q9,{classes:{ripple:Pe(s.ripple,ir.ripple),rippleVisible:Pe(s.rippleVisible,ir.rippleVisible),ripplePulsate:Pe(s.ripplePulsate,ir.ripplePulsate),child:Pe(s.child,ir.child),childLeaving:Pe(s.childLeaving,ir.childLeaving),childPulsate:Pe(s.childPulsate,ir.childPulsate)},timeout:$y,pulsate:S,rippleX:I,rippleY:T,rippleSize:C},c.current)]),c.current+=1,d.current=k},[s]),w=E.useCallback((g={},S={},I=()=>{})=>{const{pulsate:T=!1,center:C=i||S.pulsate,fakeElement:k=!1}=S;if((g==null?void 0:g.type)==="mousedown"&&h.current){h.current=!1;return}(g==null?void 0:g.type)==="touchstart"&&(h.current=!0);const P=k?null:y.current,L=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,U,O;if(C||g===void 0||g.clientX===0&&g.clientY===0||!g.clientX&&!g.touches)B=Math.round(L.width/2),U=Math.round(L.height/2);else{const{clientX:D,clientY:z}=g.touches&&g.touches.length>0?g.touches[0]:g;B=Math.round(D-L.left),U=Math.round(z-L.top)}if(C)O=Math.sqrt((2*L.width**2+L.height**2)/3),O%2===0&&(O+=1);else{const D=Math.max(Math.abs((P?P.clientWidth:0)-B),B)*2+2,z=Math.max(Math.abs((P?P.clientHeight:0)-U),U)*2+2;O=Math.sqrt(D**2+z**2)}g!=null&&g.touches?m.current===null&&(m.current=()=>{x({pulsate:T,rippleX:B,rippleY:U,rippleSize:O,cb:I})},f.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},H9)):x({pulsate:T,rippleX:B,rippleY:U,rippleSize:O,cb:I})},[i,x]),v=E.useCallback(()=>{w({},{pulsate:!0})},[w]),_=E.useCallback((g,S)=>{if(clearTimeout(f.current),(g==null?void 0:g.type)==="touchend"&&m.current){m.current(),m.current=null,f.current=setTimeout(()=>{_(g,S)});return}m.current=null,u(I=>I.length>0?I.slice(1):I),d.current=S},[]);return E.useImperativeHandle(n,()=>({pulsate:v,start:w,stop:_}),[v,w,_]),p.jsx(G9,R({className:Pe(ir.root,s.root,o),ref:y},a,{children:p.jsx(M9,{component:null,exit:!0,children:l})}))}),X9=Y9;function J9(t){return Tt("MuiButtonBase",t)}const Z9=st("MuiButtonBase",["root","disabled","focusVisible"]),ej=Z9,tj=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],nj=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,o=Dt({root:["root",e&&"disabled",n&&"focusVisible"]},J9,i);return n&&r&&(o.root+=` ${r}`),o},rj=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.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"},[`&.${ej.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ij=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:f="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:w,onFocus:v,onFocusVisible:_,onKeyDown:g,onKeyUp:S,onMouseDown:I,onMouseLeave:T,onMouseUp:C,onTouchEnd:k,onTouchMove:P,onTouchStart:L,tabIndex:B=0,TouchRippleProps:U,touchRippleRef:O,type:D}=r,z=fe(r,tj),q=E.useRef(null),N=E.useRef(null),j=Cn(N,O),{isFocusVisibleRef:H,onFocus:G,onBlur:J,ref:we}=_3(),[te,Ie]=E.useState(!1);u&&te&&Ie(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{Ie(!0),q.current.focus()}}),[]);const[ge,tt]=E.useState(!1);E.useEffect(()=>{tt(!0)},[]);const Ot=ge&&!c&&!u;E.useEffect(()=>{te&&h&&!c&&ge&&N.current.pulsate()},[c,h,te,ge]);function _e(ie,er,As=d){return ia(Ai=>(er&&er(Ai),!As&&N.current&&N.current[ie](Ai),!0))}const Qe=_e("start",I),me=_e("stop",x),$e=_e("stop",w),ae=_e("stop",C),Me=_e("stop",ie=>{te&&ie.preventDefault(),T&&T(ie)}),We=_e("start",L),Pr=_e("stop",k),Pn=_e("stop",P),An=_e("stop",ie=>{J(ie),H.current===!1&&Ie(!1),m&&m(ie)},!1),Qt=ia(ie=>{q.current||(q.current=ie.currentTarget),G(ie),H.current===!0&&(Ie(!0),_&&_(ie)),v&&v(ie)}),_n=()=>{const ie=q.current;return l&&l!=="button"&&!(ie.tagName==="A"&&ie.href)},ze=E.useRef(!1),$t=ia(ie=>{h&&!ze.current&&te&&N.current&&ie.key===" "&&(ze.current=!0,N.current.stop(ie,()=>{N.current.start(ie)})),ie.target===ie.currentTarget&&_n()&&ie.key===" "&&ie.preventDefault(),g&&g(ie),ie.target===ie.currentTarget&&_n()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),y&&y(ie))}),St=ia(ie=>{h&&ie.key===" "&&N.current&&te&&!ie.defaultPrevented&&(ze.current=!1,N.current.stop(ie,()=>{N.current.pulsate(ie)})),S&&S(ie),y&&ie.target===ie.currentTarget&&_n()&&ie.key===" "&&!ie.defaultPrevented&&y(ie)});let He=l;He==="button"&&(z.href||z.to)&&(He=f);const wn={};He==="button"?(wn.type=D===void 0?"button":D,wn.disabled=u):(!z.href&&!z.to&&(wn.role="button"),u&&(wn["aria-disabled"]=u));const Ar=Cn(n,we,q),Ut=R({},r,{centerRipple:s,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:h,tabIndex:B,focusVisible:te}),Le=nj(Ut);return p.jsxs(rj,R({as:He,className:Pe(Le.root,a),ownerState:Ut,onBlur:An,onClick:y,onContextMenu:me,onFocus:Qt,onKeyDown:$t,onKeyUp:St,onMouseDown:Qe,onMouseLeave:Me,onMouseUp:ae,onDragLeave:$e,onTouchEnd:Pr,onTouchMove:Pn,onTouchStart:We,ref:Ar,tabIndex:u?-1:B,type:D},wn,z,{children:[o,Ot?p.jsx(X9,R({ref:j,center:s},U)):null]}))}),sj=ij;function Fh(t){return typeof t=="string"}function oj(t,e,n){return t===void 0||Fh(t)?e:R({},e,{ownerState:R({},e.ownerState,n)})}function rP(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function aj(t,e,n){return typeof t=="function"?t(e,n):t}function Nx(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function lj(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=t;if(!e){const f=Pe(n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),m=R({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=R({},n,i,r);return f.length>0&&(y.className=f),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const o=rP(R({},i,r)),a=Nx(r),l=Nx(i),u=e(o),c=Pe(u==null?void 0:u.className,n==null?void 0:n.className,s,i==null?void 0:i.className,r==null?void 0:r.className),d=R({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=R({},u,n,l,a);return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}const uj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Na(t){var e;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:s=!1}=t,o=fe(t,uj),a=s?{}:aj(r,i),{props:l,internalRef:u}=lj(R({},o,{externalSlotProps:a})),c=Cn(u,a==null?void 0:a.ref,(e=t.additionalProps)==null?void 0:e.ref);return oj(n,R({},l,{ref:c}),i)}const cj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dj(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function hj(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function fj(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||hj(t))}function pj(t){const e=[],n=[];return Array.from(t.querySelectorAll(cj)).forEach((r,i)=>{const s=dj(r);s===-1||!fj(r)||(s===0?e.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(e)}function mj(){return!0}function gj(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=pj,isEnabled:o=mj,open:a}=t,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),h=E.useRef(null),f=E.useRef(!1),m=E.useRef(null),y=Cn(e.ref,m),x=E.useRef(null);E.useEffect(()=>{!a||!m.current||(f.current=!n)},[n,a]),E.useEffect(()=>{if(!a||!m.current)return;const _=Wn(m.current);return m.current.contains(_.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),E.useEffect(()=>{if(!a||!m.current)return;const _=Wn(m.current),g=T=>{x.current=T,!(r||!o()||T.key!=="Tab")&&_.activeElement===m.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{const T=m.current;if(T===null)return;if(!_.hasFocus()||!o()||l.current){l.current=!1;return}if(T.contains(_.activeElement)||r&&_.activeElement!==u.current&&_.activeElement!==c.current)return;if(_.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let C=[];if((_.activeElement===u.current||_.activeElement===c.current)&&(C=s(m.current)),C.length>0){var k,P;const L=!!((k=x.current)!=null&&k.shiftKey&&((P=x.current)==null?void 0:P.key)==="Tab"),B=C[0],U=C[C.length-1];typeof B!="string"&&typeof U!="string"&&(L?U.focus():B.focus())}else T.focus()};_.addEventListener("focusin",S),_.addEventListener("keydown",g,!0);const I=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(I),_.removeEventListener("focusin",S),_.removeEventListener("keydown",g,!0)}},[n,r,i,o,a,s]);const w=_=>{d.current===null&&(d.current=_.relatedTarget),f.current=!0,h.current=_.target;const g=e.props.onFocus;g&&g(_)},v=_=>{d.current===null&&(d.current=_.relatedTarget),f.current=!0};return p.jsxs(E.Fragment,{children:[p.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(e,{ref:y,onFocus:w}),p.jsx("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function yj(t){return typeof t=="function"?t():t}const vj=E.forwardRef(function(e,n){const{children:r,container:i,disablePortal:s=!1}=e,[o,a]=E.useState(null),l=Cn(E.isValidElement(r)?r.ref:null,n);if(ms(()=>{s||a(yj(i)||document.body)},[i,s]),ms(()=>{if(o&&!s)return Dy(n,o),()=>{Dy(n,null)}},[n,o,s]),s){if(E.isValidElement(r)){const u={ref:l};return E.cloneElement(r,u)}return p.jsx(E.Fragment,{children:r})}return p.jsx(E.Fragment,{children:o&&mc.createPortal(r,o)})});function _j(t){const e=Wn(t);return e.body===t?ao(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function du(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Dx(t){return parseInt(ao(t).getComputedStyle(t).paddingRight,10)||0}function wj(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function Mx(t,e,n,r,i){const s=[e,n,...r];[].forEach.call(t.children,o=>{const a=s.indexOf(o)===-1,l=!wj(o);a&&l&&du(o,i)})}function Ym(t,e){let n=-1;return t.some((r,i)=>e(r)?(n=i,!0):!1),n}function Ej(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(_j(r)){const o=Pb(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dx(r)+o}px`;const a=Wn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Dx(l)+o}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Wn(r).body;else{const o=r.parentElement,a=ao(r);s=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:o,property:a})=>{s?o.style.setProperty(a,s):o.style.removeProperty(a)})}}function xj(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class Tj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&du(e.modalRef,!1);const i=xj(n);Mx(n,e.mount,e.modalRef,i,!0);const s=Ym(this.containers,o=>o.container===n);return s!==-1?(this.containers[s].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),r)}mount(e,n){const r=Ym(this.containers,s=>s.modals.indexOf(e)!==-1),i=this.containers[r];i.restore||(i.restore=Ej(i,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const i=Ym(this.containers,o=>o.modals.indexOf(e)!==-1),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(e),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),e.modalRef&&du(e.modalRef,n),Mx(s.container,e.mount,e.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=s.modals[s.modals.length-1];o.modalRef&&du(o.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function Sj(t){return typeof t=="function"?t():t}function Ij(t){return t?t.props.hasOwnProperty("in"):!1}const Cj=new Tj;function Rj(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Cj,closeAfterTransition:s=!1,onTransitionEnter:o,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=t,h=E.useRef({}),f=E.useRef(null),m=E.useRef(null),y=Cn(m,d),[x,w]=E.useState(!c),v=Ij(l);let _=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(_=!1);const g=()=>Wn(f.current),S=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),I=()=>{i.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=ia(()=>{const z=Sj(e)||g().body;i.add(S(),z),m.current&&I()}),C=E.useCallback(()=>i.isTopModal(S()),[i]),k=ia(z=>{f.current=z,z&&(c&&C()?I():m.current&&du(m.current,_))}),P=E.useCallback(()=>{i.remove(S(),_)},[_,i]);E.useEffect(()=>()=>{P()},[P]),E.useEffect(()=>{c?T():(!v||!s)&&P()},[c,P,v,s,T]);const L=z=>q=>{var N;(N=z.onKeyDown)==null||N.call(z,q),!(q.key!=="Escape"||q.which===229||!C())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},B=z=>q=>{var N;(N=z.onClick)==null||N.call(z,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(z={})=>{const q=rP(t);delete q.onTransitionEnter,delete q.onTransitionExited;const N=R({},q,z);return R({role:"presentation"},N,{onKeyDown:L(N),ref:y})},getBackdropProps:(z={})=>{const q=z;return R({"aria-hidden":!0},q,{onClick:B(q),open:c})},getTransitionProps:()=>{const z=()=>{w(!1),o&&o()},q=()=>{w(!0),a&&a(),s&&P()};return{onEnter:ex(z,l==null?void 0:l.props.onEnter),onExited:ex(q,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:k,isTopModal:C,exited:x,hasTransition:v}}const bj=["onChange","maxRows","minRows","style","value"];function pd(t){return parseInt(t,10)||0}const Pj={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ox(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflow}const Aj=E.forwardRef(function(e,n){const{onChange:r,maxRows:i,minRows:s=1,style:o,value:a}=e,l=fe(e,bj),{current:u}=E.useRef(a!=null),c=E.useRef(null),d=Cn(n,c),h=E.useRef(null),f=E.useRef(0),[m,y]=E.useState({outerHeightStyle:0}),x=E.useCallback(()=>{const g=c.current,I=ao(g).getComputedStyle(g);if(I.width==="0px")return{outerHeightStyle:0};const T=h.current;T.style.width=I.width,T.value=g.value||e.placeholder||"x",T.value.slice(-1)===` +`&&(T.value+=" ");const C=I.boxSizing,k=pd(I.paddingBottom)+pd(I.paddingTop),P=pd(I.borderBottomWidth)+pd(I.borderTopWidth),L=T.scrollHeight;T.value="x";const B=T.scrollHeight;let U=L;s&&(U=Math.max(Number(s)*B,U)),i&&(U=Math.min(Number(i)*B,U)),U=Math.max(U,B);const O=U+(C==="border-box"?k+P:0),D=Math.abs(U-L)<=1;return{outerHeightStyle:O,overflow:D}},[i,s,e.placeholder]),w=(g,S)=>{const{outerHeightStyle:I,overflow:T}=S;return f.current<20&&(I>0&&Math.abs((g.outerHeightStyle||0)-I)>1||g.overflow!==T)?(f.current+=1,{overflow:T,outerHeightStyle:I}):g},v=E.useCallback(()=>{const g=x();Ox(g)||y(S=>w(S,g))},[x]);ms(()=>{const g=()=>{const L=x();Ox(L)||mc.flushSync(()=>{y(B=>w(B,L))})},S=()=>{f.current=0,g()};let I;const T=Rb(S),C=c.current,k=ao(C);k.addEventListener("resize",T);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(S),P.observe(C)),()=>{T.clear(),cancelAnimationFrame(I),k.removeEventListener("resize",T),P&&P.disconnect()}},[x]),ms(()=>{v()}),E.useEffect(()=>{f.current=0},[a]);const _=g=>{f.current=0,u||v(),r&&r(g)};return p.jsxs(E.Fragment,{children:[p.jsx("textarea",R({value:a,onChange:_,ref:d,rows:s,style:R({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},o)},l)),p.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:R({},Pj.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Xa({props:t,states:e,muiFormControl:n}){return e.reduce((r,i)=>(r[i]=t[i],n&&typeof t[i]>"u"&&(r[i]=n[i]),r),{})}const kj=E.createContext(void 0),o1=kj;function Ja(){return E.useContext(o1)}function Nj(t){return p.jsx(R6,R({},t,{defaultTheme:mp,themeId:Gf}))}function Lx(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function jh(t,e=!1){return t&&(Lx(t.value)&&t.value!==""||e&&Lx(t.defaultValue)&&t.defaultValue!=="")}function Dj(t){return t.startAdornment}function Mj(t){return Tt("MuiInputBase",t)}const Oj=st("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Da=Oj,Lj=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],yp=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${yt(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},vp=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Vj=t=>{const{classes:e,color:n,disabled:r,error:i,endAdornment:s,focused:o,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:f,type:m}=t,y={root:["root",`color${yt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",a&&"formControl",h&&h!=="medium"&&`size${yt(h)}`,c&&"multiline",f&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return Dt(y,Mj,e)},_p=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yp})(({theme:t,ownerState:e})=>R({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Da.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&R({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),wp=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light",r=R({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return R({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Da.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Da.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Fj=p.jsx(Nj,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jj=E.forwardRef(function(e,n){var r;const i=Mt({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:o,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:y=!1,id:x,inputComponent:w="input",inputProps:v={},inputRef:_,maxRows:g,minRows:S,multiline:I=!1,name:T,onBlur:C,onChange:k,onClick:P,onFocus:L,onKeyDown:B,onKeyUp:U,placeholder:O,readOnly:D,renderSuffix:z,rows:q,slotProps:N={},slots:j={},startAdornment:H,type:G="text",value:J}=i,we=fe(i,Lj),te=v.value!=null?v.value:J,{current:Ie}=E.useRef(te!=null),ge=E.useRef(),tt=E.useCallback(Le=>{},[]),Ot=Cn(ge,_,v.ref,tt),[_e,Qe]=E.useState(!1),me=Ja(),$e=Xa({props:i,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=me?me.focused:_e,E.useEffect(()=>{!me&&h&&_e&&(Qe(!1),C&&C())},[me,h,_e,C]);const ae=me&&me.onFilled,Me=me&&me.onEmpty,We=E.useCallback(Le=>{jh(Le)?ae&&ae():Me&&Me()},[ae,Me]);ms(()=>{Ie&&We({value:te})},[te,We,Ie]);const Pr=Le=>{if($e.disabled){Le.stopPropagation();return}L&&L(Le),v.onFocus&&v.onFocus(Le),me&&me.onFocus?me.onFocus(Le):Qe(!0)},Pn=Le=>{C&&C(Le),v.onBlur&&v.onBlur(Le),me&&me.onBlur?me.onBlur(Le):Qe(!1)},An=(Le,...ie)=>{if(!Ie){const er=Le.target||ge.current;if(er==null)throw new Error(ps(1));We({value:er.value})}v.onChange&&v.onChange(Le,...ie),k&&k(Le,...ie)};E.useEffect(()=>{We(ge.current)},[]);const Qt=Le=>{ge.current&&Le.currentTarget===Le.target&&ge.current.focus(),P&&P(Le)};let _n=w,ze=v;I&&_n==="input"&&(q?ze=R({type:void 0,minRows:q,maxRows:q},ze):ze=R({type:void 0,maxRows:g,minRows:S},ze),_n=Aj);const $t=Le=>{We(Le.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};E.useEffect(()=>{me&&me.setAdornedStart(!!H)},[me,H]);const St=R({},i,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:m,error:$e.error,focused:$e.focused,formControl:me,fullWidth:y,hiddenLabel:$e.hiddenLabel,multiline:I,size:$e.size,startAdornment:H,type:G}),He=Vj(St),wn=j.root||u.Root||_p,Ar=N.root||c.root||{},Ut=j.input||u.Input||wp;return ze=R({},ze,(r=N.input)!=null?r:c.input),p.jsxs(E.Fragment,{children:[!f&&Fj,p.jsxs(wn,R({},Ar,!Fh(wn)&&{ownerState:R({},St,Ar.ownerState)},{ref:n,onClick:Qt},we,{className:Pe(He.root,Ar.className,l,D&&"MuiInputBase-readOnly"),children:[H,p.jsx(o1.Provider,{value:null,children:p.jsx(Ut,R({ownerState:St,"aria-invalid":$e.error,"aria-describedby":s,autoComplete:o,autoFocus:a,defaultValue:d,disabled:$e.disabled,id:x,onAnimationStart:$t,name:T,placeholder:O,readOnly:D,required:$e.required,rows:q,value:te,onKeyDown:B,onKeyUp:U,type:G},ze,!Fh(Ut)&&{as:_n,ownerState:R({},St,ze.ownerState)},{ref:Ot,className:Pe(He.input,ze.className,D&&"MuiInputBase-readOnly"),onBlur:Pn,onChange:An,onFocus:Pr}))}),m,z?z(R({},$e,{startAdornment:H})):null]}))]})}),a1=jj;function $j(t){return Tt("MuiInput",t)}const Uj=R({},Da,st("MuiInput",["root","underline","input"])),Rl=Uj;function Bj(t){return Tt("MuiOutlinedInput",t)}const zj=R({},Da,st("MuiOutlinedInput",["root","notchedOutline","input"])),Di=zj;function Hj(t){return Tt("MuiFilledInput",t)}const Wj=R({},Da,st("MuiFilledInput",["root","underline","input"])),Ds=Wj,Kj=C9(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gj={entering:{opacity:1},entered:{opacity:1}},Qj=E.forwardRef(function(e,n){const r=r1(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:f,onExited:m,onExiting:y,style:x,timeout:w=i,TransitionComponent:v=tP}=e,_=fe(e,qj),g=E.useRef(null),S=Cn(g,a.ref,n),I=O=>D=>{if(O){const z=g.current;D===void 0?O(z):O(z,D)}},T=I(h),C=I((O,D)=>{nP(O);const z=Vh({style:x,timeout:w,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",z),O.style.transition=r.transitions.create("opacity",z),c&&c(O,D)}),k=I(d),P=I(y),L=I(O=>{const D=Vh({style:x,timeout:w,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",D),O.style.transition=r.transitions.create("opacity",D),f&&f(O)}),B=I(m),U=O=>{s&&s(g.current,O)};return p.jsx(v,R({appear:o,in:u,nodeRef:g,onEnter:C,onEntered:k,onEntering:T,onExit:L,onExited:B,onExiting:P,addEndListener:U,timeout:w},_,{children:(O,D)=>E.cloneElement(a,R({style:R({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},Gj[O],x,a.props.style),ref:S},D))}))}),Yj=Qj;function Xj(t){return Tt("MuiBackdrop",t)}st("MuiBackdrop",["root","invisible"]);const Jj=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zj=t=>{const{classes:e,invisible:n}=t;return Dt({root:["root",n&&"invisible"]},Xj,e)},e$=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>R({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"},t.invisible&&{backgroundColor:"transparent"})),t$=E.forwardRef(function(e,n){var r,i,s;const o=Mt({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:h=!1,open:f,slotProps:m={},slots:y={},TransitionComponent:x=Yj,transitionDuration:w}=o,v=fe(o,Jj),_=R({},o,{component:u,invisible:h}),g=Zj(_),S=(r=m.root)!=null?r:d.root;return p.jsx(x,R({in:f,timeout:w},v,{children:p.jsx(e$,R({"aria-hidden":!0},S,{as:(i=(s=y.root)!=null?s:c.Root)!=null?i:u,className:Pe(g.root,l,S==null?void 0:S.className),ownerState:R({},_,S==null?void 0:S.ownerState),classes:g,ref:n,children:a}))}))}),n$=t$;function r$(t){return Tt("MuiModal",t)}st("MuiModal",["root","hidden","backdrop"]);const i$=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],s$=t=>{const{open:e,exited:n,classes:r}=t;return Dt({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},r$,r)},o$=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>R({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),a$=ve(n$,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),l$=E.forwardRef(function(e,n){var r,i,s,o,a,l;const u=Mt({name:"MuiModal",props:e}),{BackdropComponent:c=a$,BackdropProps:d,className:h,closeAfterTransition:f=!1,children:m,container:y,component:x,components:w={},componentsProps:v={},disableAutoFocus:_=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:S=!1,disablePortal:I=!1,disableRestoreFocus:T=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:P=!1,onBackdropClick:L,open:B,slotProps:U,slots:O}=u,D=fe(u,i$),z=R({},u,{closeAfterTransition:f,disableAutoFocus:_,disableEnforceFocus:g,disableEscapeKeyDown:S,disablePortal:I,disableRestoreFocus:T,disableScrollLock:C,hideBackdrop:k,keepMounted:P}),{getRootProps:q,getBackdropProps:N,getTransitionProps:j,portalRef:H,isTopModal:G,exited:J,hasTransition:we}=Rj(R({},z,{rootRef:n})),te=R({},z,{exited:J}),Ie=s$(te),ge={};if(m.props.tabIndex===void 0&&(ge.tabIndex="-1"),we){const{onEnter:ae,onExited:Me}=j();ge.onEnter=ae,ge.onExited=Me}const tt=(r=(i=O==null?void 0:O.root)!=null?i:w.Root)!=null?r:o$,Ot=(s=(o=O==null?void 0:O.backdrop)!=null?o:w.Backdrop)!=null?s:c,_e=(a=U==null?void 0:U.root)!=null?a:v.root,Qe=(l=U==null?void 0:U.backdrop)!=null?l:v.backdrop,me=Na({elementType:tt,externalSlotProps:_e,externalForwardedProps:D,getSlotProps:q,additionalProps:{ref:n,as:x},ownerState:te,className:Pe(h,_e==null?void 0:_e.className,Ie==null?void 0:Ie.root,!te.open&&te.exited&&(Ie==null?void 0:Ie.hidden))}),$e=Na({elementType:Ot,externalSlotProps:Qe,additionalProps:d,getSlotProps:ae=>N(R({},ae,{onClick:Me=>{L&&L(Me),ae!=null&&ae.onClick&&ae.onClick(Me)}})),className:Pe(Qe==null?void 0:Qe.className,d==null?void 0:d.className,Ie==null?void 0:Ie.backdrop),ownerState:te});return!P&&!B&&(!we||J)?null:p.jsx(vj,{ref:H,container:y,disablePortal:I,children:p.jsxs(tt,R({},me,{children:[!k&&c?p.jsx(Ot,R({},$e)):null,p.jsx(gj,{disableEnforceFocus:g,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:G,open:B,children:E.cloneElement(m,ge)})]}))})}),u$=l$,c$=st("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Vx=c$,d$=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h$=t=>{const{classes:e,disableUnderline:n}=t,i=Dt({root:["root",!n&&"underline"],input:["input"]},Hj,e);return R({},e,i)},f$=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...yp(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const r=t.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return R({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Ds.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Ds.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(t.vars||t).palette[e.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&R({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),p$=ve(wp,{name:"MuiFilledInput",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>R({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),iP=E.forwardRef(function(e,n){var r,i,s,o;const a=Mt({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:h=!1,slotProps:f,slots:m={},type:y="text"}=a,x=fe(a,d$),w=R({},a,{fullWidth:c,inputComponent:d,multiline:h,type:y}),v=h$(a),_={root:{ownerState:w},input:{ownerState:w}},g=f??u?Vn(f??u,_):_,S=(r=(i=m.root)!=null?i:l.Root)!=null?r:f$,I=(s=(o=m.input)!=null?o:l.Input)!=null?s:p$;return p.jsx(a1,R({slots:{root:S,input:I},componentsProps:g,fullWidth:c,inputComponent:d,multiline:h,ref:n,type:y},x,{classes:v}))});iP.muiName="Input";const sP=iP;function m$(t){return Tt("MuiFormControl",t)}st("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const g$=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y$=t=>{const{classes:e,margin:n,fullWidth:r}=t,i={root:["root",n!=="none"&&`margin${yt(n)}`,r&&"fullWidth"]};return Dt(i,m$,e)},v$=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>R({},e.root,e[`margin${yt(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>R({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),_$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormControl"}),{children:i,className:s,color:o="primary",component:a="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:h=!1,margin:f="none",required:m=!1,size:y="medium",variant:x="outlined"}=r,w=fe(r,g$),v=R({},r,{color:o,component:a,disabled:l,error:u,fullWidth:d,hiddenLabel:h,margin:f,required:m,size:y,variant:x}),_=y$(v),[g,S]=E.useState(()=>{let U=!1;return i&&E.Children.forEach(i,O=>{if(!Km(O,["Input","Select"]))return;const D=Km(O,["Select"])?O.props.input:O;D&&Dj(D.props)&&(U=!0)}),U}),[I,T]=E.useState(()=>{let U=!1;return i&&E.Children.forEach(i,O=>{Km(O,["Input","Select"])&&(jh(O.props,!0)||jh(O.props.inputProps,!0))&&(U=!0)}),U}),[C,k]=E.useState(!1);l&&C&&k(!1);const P=c!==void 0&&!l?c:C;let L;const B=E.useMemo(()=>({adornedStart:g,setAdornedStart:S,color:o,disabled:l,error:u,filled:I,focused:P,fullWidth:d,hiddenLabel:h,size:y,onBlur:()=>{k(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{k(!0)},registerEffect:L,required:m,variant:x}),[g,o,l,u,I,P,d,h,L,m,y,x]);return p.jsx(o1.Provider,{value:B,children:p.jsx(v$,R({as:a,ownerState:v,className:Pe(_.root,s),ref:n},w,{children:i}))})}),w$=_$;function E$(t){return Tt("MuiFormHelperText",t)}const x$=st("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Fx=x$;var jx;const T$=["children","className","component","disabled","error","filled","focused","margin","required","variant"],S$=t=>{const{classes:e,contained:n,size:r,disabled:i,error:s,filled:o,focused:a,required:l}=t,u={root:["root",i&&"disabled",s&&"error",r&&`size${yt(r)}`,n&&"contained",a&&"focused",o&&"filled",l&&"required"]};return Dt(u,E$,e)},I$=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${yt(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>R({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Fx.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Fx.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),C$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormHelperText"}),{children:i,className:s,component:o="p"}=r,a=fe(r,T$),l=Ja(),u=Xa({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=R({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=S$(c);return p.jsx(I$,R({as:o,ownerState:c,className:Pe(d.root,s),ref:n},a,{children:i===" "?jx||(jx=p.jsx("span",{className:"notranslate",children:"​"})):i}))}),R$=C$;function b$(t){return Tt("MuiFormLabel",t)}const P$=st("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hu=P$,A$=["children","className","color","component","disabled","error","filled","focused","required"],k$=t=>{const{classes:e,color:n,focused:r,disabled:i,error:s,filled:o,required:a}=t,l={root:["root",`color${yt(n)}`,i&&"disabled",s&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return Dt(l,b$,e)},N$=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>R({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>R({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${hu.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${hu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${hu.error}`]:{color:(t.vars||t).palette.error.main}})),D$=ve("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${hu.error}`]:{color:(t.vars||t).palette.error.main}})),M$=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiFormLabel"}),{children:i,className:s,component:o="label"}=r,a=fe(r,A$),l=Ja(),u=Xa({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=R({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=k$(c);return p.jsxs(N$,R({as:o,ownerState:c,className:Pe(d.root,s),ref:n},a,{children:[i,u.required&&p.jsxs(D$,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),O$=M$,L$=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Uy(t){return`scale(${t}, ${t**2})`}const V$={entering:{opacity:1,transform:Uy(1)},entered:{opacity:1,transform:"none"}},Xm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oP=E.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:s,easing:o,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:h,onExiting:f,style:m,timeout:y="auto",TransitionComponent:x=tP}=e,w=fe(e,L$),v=E.useRef(),_=E.useRef(),g=r1(),S=E.useRef(null),I=Cn(S,s.ref,n),T=D=>z=>{if(D){const q=S.current;z===void 0?D(q):D(q,z)}},C=T(c),k=T((D,z)=>{nP(D);const{duration:q,delay:N,easing:j}=Vh({style:m,timeout:y,easing:o},{mode:"enter"});let H;y==="auto"?(H=g.transitions.getAutoHeightDuration(D.clientHeight),_.current=H):H=q,D.style.transition=[g.transitions.create("opacity",{duration:H,delay:N}),g.transitions.create("transform",{duration:Xm?H:H*.666,delay:N,easing:j})].join(","),l&&l(D,z)}),P=T(u),L=T(f),B=T(D=>{const{duration:z,delay:q,easing:N}=Vh({style:m,timeout:y,easing:o},{mode:"exit"});let j;y==="auto"?(j=g.transitions.getAutoHeightDuration(D.clientHeight),_.current=j):j=z,D.style.transition=[g.transitions.create("opacity",{duration:j,delay:q}),g.transitions.create("transform",{duration:Xm?j:j*.666,delay:Xm?q:q||j*.333,easing:N})].join(","),D.style.opacity=0,D.style.transform=Uy(.75),d&&d(D)}),U=T(h),O=D=>{y==="auto"&&(v.current=setTimeout(D,_.current||0)),r&&r(S.current,D)};return E.useEffect(()=>()=>{clearTimeout(v.current)},[]),p.jsx(x,R({appear:i,in:a,nodeRef:S,onEnter:k,onEntered:P,onEntering:C,onExit:B,onExited:U,onExiting:L,addEndListener:O,timeout:y==="auto"?null:y},w,{children:(D,z)=>E.cloneElement(s,R({style:R({opacity:0,transform:Uy(.75),visibility:D==="exited"&&!a?"hidden":void 0},V$[D],m,s.props.style),ref:I},z))}))});oP.muiSupportAuto=!0;const F$=oP,j$=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$$=t=>{const{classes:e,disableUnderline:n}=t,i=Dt({root:["root",!n&&"underline"],input:["input"]},$j,e);return R({},e,i)},U$=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...yp(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),R({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Rl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rl.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Rl.disabled}, .${Rl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Rl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),B$=ve(wp,{name:"MuiInput",slot:"Input",overridesResolver:vp})({}),aP=E.forwardRef(function(e,n){var r,i,s,o;const a=Mt({props:e,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:f=!1,slotProps:m,slots:y={},type:x="text"}=a,w=fe(a,j$),v=$$(a),g={root:{ownerState:{disableUnderline:l}}},S=m??c?Vn(m??c,g):g,I=(r=(i=y.root)!=null?i:u.Root)!=null?r:U$,T=(s=(o=y.input)!=null?o:u.Input)!=null?s:B$;return p.jsx(a1,R({slots:{root:I,input:T},slotProps:S,fullWidth:d,inputComponent:h,multiline:f,ref:n,type:x},w,{classes:v}))});aP.muiName="Input";const Za=aP;function z$(t){return Tt("MuiInputLabel",t)}st("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const H$=["disableAnimation","margin","shrink","variant","className"],W$=t=>{const{classes:e,formControl:n,size:r,shrink:i,disableAnimation:s,variant:o,required:a}=t,l={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="normal"&&`size${yt(r)}`,o],asterisk:[a&&"asterisk"]},u=Dt(l,z$,e);return R({},e,u)},K$=ve(O$,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${hu.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(({theme:t,ownerState:e})=>R({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&R({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&R({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&R({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),q$=E.forwardRef(function(e,n){const r=Mt({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:s,className:o}=r,a=fe(r,H$),l=Ja();let u=s;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Xa({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=R({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=W$(d);return p.jsx(K$,R({"data-shrink":u,ownerState:d,ref:n,className:Pe(h.root,o)},a,{classes:h}))}),G$=q$,Q$=E.createContext({}),By=Q$;function Y$(t){return Tt("MuiList",t)}st("MuiList",["root","padding","dense","subheader"]);const X$=["children","className","component","dense","disablePadding","subheader"],J$=t=>{const{classes:e,disablePadding:n,dense:r,subheader:i}=t;return Dt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Y$,e)},Z$=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>R({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),eU=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiList"}),{children:i,className:s,component:o="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,c=fe(r,X$),d=E.useMemo(()=>({dense:a}),[a]),h=R({},r,{component:o,dense:a,disablePadding:l}),f=J$(h);return p.jsx(By.Provider,{value:d,children:p.jsxs(Z$,R({as:o,className:Pe(f.root,s),ref:n,ownerState:h},c,{children:[u,i]}))})}),tU=eU,nU=st("MuiListItemIcon",["root","alignItemsFlexStart"]),$x=nU,rU=st("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ux=rU,iU=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jm(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function Bx(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function lP(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function bl(t,e,n,r,i,s){let o=!1,a=i(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(o)return!1;o=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!lP(a,s)||l)a=i(t,a,n);else return a.focus(),!0}return!1}const sU=E.forwardRef(function(e,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:o,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,h=fe(e,iU),f=E.useRef(null),m=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ms(()=>{i&&f.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(_,g)=>{const S=!f.current.style.width;if(_.clientHeight{const g=f.current,S=_.key,I=Wn(g).activeElement;if(S==="ArrowDown")_.preventDefault(),bl(g,I,u,l,Jm);else if(S==="ArrowUp")_.preventDefault(),bl(g,I,u,l,Bx);else if(S==="Home")_.preventDefault(),bl(g,null,u,l,Jm);else if(S==="End")_.preventDefault(),bl(g,null,u,l,Bx);else if(S.length===1){const T=m.current,C=S.toLowerCase(),k=performance.now();T.keys.length>0&&(k-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&C!==T.keys[0]&&(T.repeating=!1)),T.lastTime=k,T.keys.push(C);const P=I&&!T.repeating&&lP(I,T);T.previousKeyMatched&&(P||bl(g,I,!1,l,Jm,T))?_.preventDefault():T.previousKeyMatched=!1}c&&c(_)},x=Cn(f,n);let w=-1;E.Children.forEach(o,(_,g)=>{if(!E.isValidElement(_)){w===g&&(w+=1,w>=o.length&&(w=-1));return}_.props.disabled||(d==="selectedMenu"&&_.props.selected||w===-1)&&(w=g),w===g&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(w+=1,w>=o.length&&(w=-1))});const v=E.Children.map(o,(_,g)=>{if(g===w){const S={};return s&&(S.autoFocus=!0),_.props.tabIndex===void 0&&d==="selectedMenu"&&(S.tabIndex=0),E.cloneElement(_,S)}return _});return p.jsx(tU,R({role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:i?0:-1},h,{children:v}))}),oU=sU;function aU(t){return Tt("MuiPopover",t)}st("MuiPopover",["root","paper"]);const lU=["onEntering"],uU=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cU=["slotProps"];function zx(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function Hx(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function Wx(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Zm(t){return typeof t=="function"?t():t}const dU=t=>{const{classes:e}=t;return Dt({root:["root"],paper:["paper"]},aU,e)},hU=ve(u$,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),uP=ve($9,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fU=E.forwardRef(function(e,n){var r,i,s;const o=Mt({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:f,container:m,elevation:y=8,marginThreshold:x=16,open:w,PaperProps:v={},slots:_,slotProps:g,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:I=F$,transitionDuration:T="auto",TransitionProps:{onEntering:C}={},disableScrollLock:k=!1}=o,P=fe(o.TransitionProps,lU),L=fe(o,uU),B=(r=g==null?void 0:g.paper)!=null?r:v,U=E.useRef(),O=Cn(U,B.ref),D=R({},o,{anchorOrigin:u,anchorReference:d,elevation:y,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:S,TransitionComponent:I,transitionDuration:T,TransitionProps:P}),z=dU(D),q=E.useCallback(()=>{if(d==="anchorPosition")return c;const ae=Zm(l),We=(ae&&ae.nodeType===1?ae:Wn(U.current).body).getBoundingClientRect();return{top:We.top+zx(We,u.vertical),left:We.left+Hx(We,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),N=E.useCallback(ae=>({vertical:zx(ae,S.vertical),horizontal:Hx(ae,S.horizontal)}),[S.horizontal,S.vertical]),j=E.useCallback(ae=>{const Me={width:ae.offsetWidth,height:ae.offsetHeight},We=N(Me);if(d==="none")return{top:null,left:null,transformOrigin:Wx(We)};const Pr=q();let Pn=Pr.top-We.vertical,An=Pr.left-We.horizontal;const Qt=Pn+Me.height,_n=An+Me.width,ze=ao(Zm(l)),$t=ze.innerHeight-x,St=ze.innerWidth-x;if(x!==null&&Pn$t){const He=Qt-$t;Pn-=He,We.vertical+=He}if(x!==null&&AnSt){const He=_n-St;An-=He,We.horizontal+=He}return{top:`${Math.round(Pn)}px`,left:`${Math.round(An)}px`,transformOrigin:Wx(We)}},[l,d,q,N,x]),[H,G]=E.useState(w),J=E.useCallback(()=>{const ae=U.current;if(!ae)return;const Me=j(ae);Me.top!==null&&(ae.style.top=Me.top),Me.left!==null&&(ae.style.left=Me.left),ae.style.transformOrigin=Me.transformOrigin,G(!0)},[j]);E.useEffect(()=>(k&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[l,k,J]);const we=(ae,Me)=>{C&&C(ae,Me),J()},te=()=>{G(!1)};E.useEffect(()=>{w&&J()}),E.useImperativeHandle(a,()=>w?{updatePosition:()=>{J()}}:null,[w,J]),E.useEffect(()=>{if(!w)return;const ae=Rb(()=>{J()}),Me=ao(l);return Me.addEventListener("resize",ae),()=>{ae.clear(),Me.removeEventListener("resize",ae)}},[l,w,J]);let Ie=T;T==="auto"&&!I.muiSupportAuto&&(Ie=void 0);const ge=m||(l?Wn(Zm(l)).body:void 0),tt=(i=_==null?void 0:_.root)!=null?i:hU,Ot=(s=_==null?void 0:_.paper)!=null?s:uP,_e=Na({elementType:Ot,externalSlotProps:R({},B,{style:H?B.style:R({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:O},ownerState:D,className:Pe(z.paper,B==null?void 0:B.className)}),Qe=Na({elementType:tt,externalSlotProps:(g==null?void 0:g.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ge,open:w},ownerState:D,className:Pe(z.root,f)}),{slotProps:me}=Qe,$e=fe(Qe,cU);return p.jsx(tt,R({},$e,!Fh(tt)&&{slotProps:me,disableScrollLock:k},{children:p.jsx(I,R({appear:!0,in:w,onEntering:we,onExited:te,timeout:Ie},P,{children:p.jsx(Ot,R({},_e,{children:h}))}))}))}),pU=fU;function mU(t){return Tt("MuiMenu",t)}st("MuiMenu",["root","paper","list"]);const gU=["onEntering"],yU=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vU={vertical:"top",horizontal:"right"},_U={vertical:"top",horizontal:"left"},wU=t=>{const{classes:e}=t;return Dt({root:["root"],paper:["paper"],list:["list"]},mU,e)},EU=ve(pU,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),xU=ve(uP,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TU=ve(oU,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),SU=E.forwardRef(function(e,n){var r,i;const s=Mt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:h,PaperProps:f={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:w="selectedMenu",slots:v={},slotProps:_={}}=s,g=fe(s.TransitionProps,gU),S=fe(s,yU),I=r1(),T=I.direction==="rtl",C=R({},s,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:x,PaperProps:f,transitionDuration:y,TransitionProps:g,variant:w}),k=wU(C),P=o&&!u&&h,L=E.useRef(null),B=(j,H)=>{L.current&&L.current.adjustStyleForScrollbar(j,I),x&&x(j,H)},U=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let O=-1;E.Children.map(a,(j,H)=>{E.isValidElement(j)&&(j.props.disabled||(w==="selectedMenu"&&j.props.selected||O===-1)&&(O=H))});const D=(r=v.paper)!=null?r:xU,z=(i=_.paper)!=null?i:f,q=Na({elementType:v.root,externalSlotProps:_.root,ownerState:C,className:[k.root,l]}),N=Na({elementType:D,externalSlotProps:z,ownerState:C,className:k.paper});return p.jsx(EU,R({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?vU:_U,slots:{paper:D,root:v.root},slotProps:{root:q,paper:N},open:h,ref:n,transitionDuration:y,TransitionProps:R({onEntering:B},g),ownerState:C},S,{classes:m,children:p.jsx(TU,R({onKeyDown:U,actions:L,autoFocus:o&&(O===-1||u),autoFocusItem:P,variant:w},c,{className:Pe(k.list,c.className),children:a}))}))}),IU=SU;function CU(t){return Tt("MuiMenuItem",t)}const RU=st("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Pl=RU,bU=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PU=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},AU=t=>{const{disabled:e,dense:n,divider:r,disableGutters:i,selected:s,classes:o}=t,l=Dt({root:["root",n&&"dense",e&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},CU,o);return R({},o,l)},kU=ve(sj,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PU})(({theme:t,ownerState:e})=>R({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sa(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Pl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:sa(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Pl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:sa(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:sa(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Pl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Pl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Vx.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Vx.inset}`]:{marginLeft:52},[`& .${Ux.root}`]:{marginTop:0,marginBottom:0},[`& .${Ux.inset}`]:{paddingLeft:36},[`& .${$x.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&R({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${$x.root} svg`]:{fontSize:"1.25rem"}}))),NU=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:o=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:h}=r,f=fe(r,bU),m=E.useContext(By),y=E.useMemo(()=>({dense:o||m.dense||!1,disableGutters:l}),[m.dense,o,l]),x=E.useRef(null);ms(()=>{i&&x.current&&x.current.focus()},[i]);const w=R({},r,{dense:y.dense,divider:a,disableGutters:l}),v=AU(r),_=Cn(x,n);let g;return r.disabled||(g=d!==void 0?d:-1),p.jsx(By.Provider,{value:y,children:p.jsx(kU,R({ref:_,role:c,tabIndex:g,component:s,focusVisibleClassName:Pe(v.focusVisible,u),className:Pe(v.root,h)},f,{ownerState:w,classes:v}))})}),eg=NU;function DU(t){return Tt("MuiNativeSelect",t)}const MU=st("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l1=MU,OU=["className","disabled","error","IconComponent","inputRef","variant"],LU=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:s,error:o}=t,a={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${yt(n)}`,s&&"iconOpen",r&&"disabled"]};return Dt(a,DU,e)},cP=({ownerState:t,theme:e})=>R({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":R({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${l1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),VU=ve("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:br,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${l1.multiple}`]:e.multiple}]}})(cP),dP=({ownerState:t,theme:e})=>R({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${l1.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),FU=ve("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${yt(n.variant)}`],n.open&&e.iconOpen]}})(dP),jU=E.forwardRef(function(e,n){const{className:r,disabled:i,error:s,IconComponent:o,inputRef:a,variant:l="standard"}=e,u=fe(e,OU),c=R({},e,{disabled:i,variant:l,error:s}),d=LU(c);return p.jsxs(E.Fragment,{children:[p.jsx(VU,R({ownerState:c,className:Pe(d.select,r),disabled:i,ref:a||n},u)),e.multiple?null:p.jsx(FU,{as:o,ownerState:c,className:d.icon})]})}),$U=jU;var Kx;const UU=["children","classes","className","label","notched"],BU=ve("fieldset",{shouldForwardProp:br})({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%"}),zU=ve("legend",{shouldForwardProp:br})(({ownerState:t,theme:e})=>R({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&R({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"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function HU(t){const{className:e,label:n,notched:r}=t,i=fe(t,UU),s=n!=null&&n!=="",o=R({},t,{notched:r,withLabel:s});return p.jsx(BU,R({"aria-hidden":!0,className:e,ownerState:o},i,{children:p.jsx(zU,{ownerState:o,children:s?p.jsx("span",{children:n}):Kx||(Kx=p.jsx("span",{className:"notranslate",children:"​"}))})}))}const WU=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],KU=t=>{const{classes:e}=t,r=Dt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bj,e);return R({},e,r)},qU=ve(_p,{shouldForwardProp:t=>br(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:yp})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Di.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Di.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Di.focused} .${Di.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${Di.error} .${Di.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Di.disabled} .${Di.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&R({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),GU=ve(HU,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),QU=ve(wp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vp})(({theme:t,ownerState:e})=>R({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),hP=E.forwardRef(function(e,n){var r,i,s,o,a;const l=Mt({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:h,multiline:f=!1,notched:m,slots:y={},type:x="text"}=l,w=fe(l,WU),v=KU(l),_=Ja(),g=Xa({props:l,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=R({},l,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:_,fullWidth:c,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:x}),I=(r=(i=y.root)!=null?i:u.Root)!=null?r:qU,T=(s=(o=y.input)!=null?o:u.Input)!=null?s:QU;return p.jsx(a1,R({slots:{root:I,input:T},renderSuffix:C=>p.jsx(GU,{ownerState:S,className:v.notchedOutline,label:h!=null&&h!==""&&g.required?a||(a=p.jsxs(E.Fragment,{children:[h," ","*"]})):h,notched:typeof m<"u"?m:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:n,type:x},w,{classes:R({},v,{notchedOutline:null})}))});hP.muiName="Input";const fP=hP;function YU(t){return Tt("MuiSelect",t)}const XU=st("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Al=XU;var qx;const JU=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ZU=ve("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Al.select}`]:e.select},{[`&.${Al.select}`]:e[n.variant]},{[`&.${Al.error}`]:e.error},{[`&.${Al.multiple}`]:e.multiple}]}})(cP,{[`&.${Al.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),e8=ve("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${yt(n.variant)}`],n.open&&e.iconOpen]}})(dP),t8=ve("input",{shouldForwardProp:t=>_9(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Gx(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function n8(t){return t==null||typeof t=="string"&&!t.trim()}const r8=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:s,error:o}=t,a={select:["select",n,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${yt(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Dt(a,YU,e)},i8=E.forwardRef(function(e,n){var r;const{"aria-describedby":i,"aria-label":s,autoFocus:o,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:f,error:m=!1,IconComponent:y,inputRef:x,labelId:w,MenuProps:v={},multiple:_,name:g,onBlur:S,onChange:I,onClose:T,onFocus:C,onOpen:k,open:P,readOnly:L,renderValue:B,SelectDisplayProps:U={},tabIndex:O,value:D,variant:z="standard"}=e,q=fe(e,JU),[N,j]=rx({controlled:D,default:d,name:"Select"}),[H,G]=rx({controlled:P,default:c,name:"Select"}),J=E.useRef(null),we=E.useRef(null),[te,Ie]=E.useState(null),{current:ge}=E.useRef(P!=null),[tt,Ot]=E.useState(),_e=Cn(n,x),Qe=E.useCallback(ne=>{we.current=ne,ne&&Ie(ne)},[]),me=te==null?void 0:te.parentNode;E.useImperativeHandle(_e,()=>({focus:()=>{we.current.focus()},node:J.current,value:N}),[N]),E.useEffect(()=>{c&&H&&te&&!ge&&(Ot(a?null:me.clientWidth),we.current.focus())},[te,a]),E.useEffect(()=>{o&&we.current.focus()},[o]),E.useEffect(()=>{if(!w)return;const ne=Wn(we.current).getElementById(w);if(ne){const Ue=()=>{getSelection().isCollapsed&&we.current.focus()};return ne.addEventListener("click",Ue),()=>{ne.removeEventListener("click",Ue)}}},[w]);const $e=(ne,Ue)=>{ne?k&&k(Ue):T&&T(Ue),ge||(Ot(a?null:me.clientWidth),G(ne))},ae=ne=>{ne.button===0&&(ne.preventDefault(),we.current.focus(),$e(!0,ne))},Me=ne=>{$e(!1,ne)},We=E.Children.toArray(l),Pr=ne=>{const Ue=We.find(_t=>_t.props.value===ne.target.value);Ue!==void 0&&(j(Ue.props.value),I&&I(ne,Ue))},Pn=ne=>Ue=>{let _t;if(Ue.currentTarget.hasAttribute("tabindex")){if(_){_t=Array.isArray(N)?N.slice():[];const ki=N.indexOf(ne.props.value);ki===-1?_t.push(ne.props.value):_t.splice(ki,1)}else _t=ne.props.value;if(ne.props.onClick&&ne.props.onClick(Ue),N!==_t&&(j(_t),I)){const ki=Ue.nativeEvent||Ue,ll=new ki.constructor(ki.type,ki);Object.defineProperty(ll,"target",{writable:!0,value:{value:_t,name:g}}),I(ll,ne)}_||$e(!1,Ue)}},An=ne=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),$e(!0,ne))},Qt=te!==null&&H,_n=ne=>{!Qt&&S&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:N,name:g}}),S(ne))};delete q["aria-invalid"];let ze,$t;const St=[];let He=!1;(jh({value:N})||f)&&(B?ze=B(N):He=!0);const wn=We.map(ne=>{if(!E.isValidElement(ne))return null;let Ue;if(_){if(!Array.isArray(N))throw new Error(ps(2));Ue=N.some(_t=>Gx(_t,ne.props.value)),Ue&&He&&St.push(ne.props.children)}else Ue=Gx(N,ne.props.value),Ue&&He&&($t=ne.props.children);return E.cloneElement(ne,{"aria-selected":Ue?"true":"false",onClick:Pn(ne),onKeyUp:_t=>{_t.key===" "&&_t.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(_t)},role:"option",selected:Ue,value:void 0,"data-value":ne.props.value})});He&&(_?St.length===0?ze=null:ze=St.reduce((ne,Ue,_t)=>(ne.push(Ue),_t{const{classes:e}=t;return e},u1={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>br(t)&&t!=="variant",slot:"Root"},u8=ve(Za,u1)(""),c8=ve(fP,u1)(""),d8=ve(sP,u1)(""),pP=E.forwardRef(function(e,n){const r=Mt({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:s,classes:o={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Kj,id:d,input:h,inputProps:f,label:m,labelId:y,MenuProps:x,multiple:w=!1,native:v=!1,onClose:_,onOpen:g,open:S,renderValue:I,SelectDisplayProps:T,variant:C="outlined"}=r,k=fe(r,o8),P=v?$U:s8,L=Ja(),B=Xa({props:r,muiFormControl:L,states:["variant","error"]}),U=B.variant||C,O=R({},r,{variant:U,classes:o}),D=l8(O),z=fe(D,a8),q=h||{standard:p.jsx(u8,{ownerState:O}),outlined:p.jsx(c8,{label:m,ownerState:O}),filled:p.jsx(d8,{ownerState:O})}[U],N=Cn(n,q.ref);return p.jsx(E.Fragment,{children:E.cloneElement(q,R({inputComponent:P,inputProps:R({children:s,error:B.error,IconComponent:c,variant:U,type:void 0,multiple:w},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:_,onOpen:g,open:S,renderValue:I,SelectDisplayProps:R({id:d},T)},f,{classes:f?Vn(z,f.classes):z},h?h.props.inputProps:{})},w&&v&&U==="outlined"?{notched:!0}:{},{ref:N,className:Pe(q.props.className,a,D.root)},!h&&{variant:U},k))})});pP.muiName="Select";const mP=pP;function h8(t){return Tt("MuiTextField",t)}st("MuiTextField",["root"]);const f8=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],p8={standard:Za,filled:sP,outlined:fP},m8=t=>{const{classes:e}=t;return Dt({root:["root"]},h8,e)},g8=ve(w$,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),y8=E.forwardRef(function(e,n){const r=Mt({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:o,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:m,id:y,InputLabelProps:x,inputProps:w,InputProps:v,inputRef:_,label:g,maxRows:S,minRows:I,multiline:T=!1,name:C,onBlur:k,onChange:P,onFocus:L,placeholder:B,required:U=!1,rows:O,select:D=!1,SelectProps:z,type:q,value:N,variant:j="outlined"}=r,H=fe(r,f8),G=R({},r,{autoFocus:s,color:l,disabled:c,error:d,fullWidth:f,multiline:T,required:U,select:D,variant:j}),J=m8(G),we={};j==="outlined"&&(x&&typeof x.shrink<"u"&&(we.notched=x.shrink),we.label=g),D&&((!z||!z.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const te=bb(y),Ie=m&&te?`${te}-helper-text`:void 0,ge=g&&te?`${te}-label`:void 0,tt=p8[j],Ot=p.jsx(tt,R({"aria-describedby":Ie,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:f,multiline:T,name:C,rows:O,maxRows:S,minRows:I,type:q,value:N,id:te,inputRef:_,onBlur:k,onChange:P,onFocus:L,placeholder:B,inputProps:w},we,v));return p.jsxs(g8,R({className:Pe(J.root,a),disabled:c,error:d,fullWidth:f,ref:n,required:U,color:l,variant:j,ownerState:G},H,{children:[g!=null&&g!==""&&p.jsx(G$,R({htmlFor:te,id:ge},x,{children:g})),D?p.jsx(mP,R({"aria-describedby":Ie,id:te,labelId:ge,value:N,input:Ot},z,{children:o})):Ot,m&&p.jsx(R$,R({id:Ie},h,{children:m}))]}))}),Qx=y8;var Yx={};/** * @license * Copyright 2017 Google LLC * @@ -289,7 +289,7 @@ Error generating stack: `+s.message+` * 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 Qn(t){return t&&t._delegate?t._delegate:t}class ms{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** + */function Qn(t){return t&&t._delegate?t._delegate:t}class gs{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** * @license * Copyright 2019 Google LLC * @@ -349,7 +349,7 @@ Error generating stack: `+s.message+` * 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 Ce;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ce||(Ce={}));const z8={debug:Ce.DEBUG,verbose:Ce.VERBOSE,info:Ce.INFO,warn:Ce.WARN,error:Ce.ERROR,silent:Ce.SILENT},H8=Ce.INFO,W8={[Ce.DEBUG]:"log",[Ce.VERBOSE]:"log",[Ce.INFO]:"info",[Ce.WARN]:"warn",[Ce.ERROR]:"error"},K8=(t,e,...n)=>{if(ee.some(n=>t instanceof n);let Jx,Zx;function G8(){return Jx||(Jx=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Q8(){return Zx||(Zx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const SP=new WeakMap,zy=new WeakMap,IP=new WeakMap,ng=new WeakMap,h1=new WeakMap;function Y8(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(ss(t.result)),i()},o=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&SP.set(n,t)}).catch(()=>{}),h1.set(e,t),e}function X8(t){if(zy.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});zy.set(t,e)}let Hy={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return zy.get(t);if(e==="objectStoreNames")return t.objectStoreNames||IP.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ss(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function J8(t){Hy=t(Hy)}function Z8(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(rg(this),e,...n);return IP.set(r,e.sort?e.sort():[e]),ss(r)}:Q8().includes(t)?function(...e){return t.apply(rg(this),e),ss(SP.get(this))}:function(...e){return ss(t.apply(rg(this),e))}}function eB(t){return typeof t=="function"?Z8(t):(t instanceof IDBTransaction&&X8(t),q8(t,G8())?new Proxy(t,Hy):t)}function ss(t){if(t instanceof IDBRequest)return Y8(t);if(ng.has(t))return ng.get(t);const e=eB(t);return e!==t&&(ng.set(t,e),h1.set(e,t)),e}const rg=t=>h1.get(t);function tB(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=ss(o);return r&&o.addEventListener("upgradeneeded",l=>{r(ss(o.result),l.oldVersion,l.newVersion,ss(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const nB=["get","getKey","getAll","getAllKeys","count"],rB=["put","add","delete","clear"],ig=new Map;function eT(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ig.get(e))return ig.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=rB.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||nB.includes(n)))return;const s=async function(o,...a){const l=this.transaction(o,i?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return ig.set(e,s),s}J8(t=>({...t,get:(e,n,r)=>eT(e,n)||t.get(e,n,r),has:(e,n)=>!!eT(e,n)||t.has(e,n)}));/** + */var Ce;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ce||(Ce={}));const z8={debug:Ce.DEBUG,verbose:Ce.VERBOSE,info:Ce.INFO,warn:Ce.WARN,error:Ce.ERROR,silent:Ce.SILENT},H8=Ce.INFO,W8={[Ce.DEBUG]:"log",[Ce.VERBOSE]:"log",[Ce.INFO]:"info",[Ce.WARN]:"warn",[Ce.ERROR]:"error"},K8=(t,e,...n)=>{if(ee.some(n=>t instanceof n);let Jx,Zx;function G8(){return Jx||(Jx=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Q8(){return Zx||(Zx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const SP=new WeakMap,zy=new WeakMap,IP=new WeakMap,ng=new WeakMap,h1=new WeakMap;function Y8(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(os(t.result)),i()},o=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&SP.set(n,t)}).catch(()=>{}),h1.set(e,t),e}function X8(t){if(zy.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});zy.set(t,e)}let Hy={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return zy.get(t);if(e==="objectStoreNames")return t.objectStoreNames||IP.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return os(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function J8(t){Hy=t(Hy)}function Z8(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(rg(this),e,...n);return IP.set(r,e.sort?e.sort():[e]),os(r)}:Q8().includes(t)?function(...e){return t.apply(rg(this),e),os(SP.get(this))}:function(...e){return os(t.apply(rg(this),e))}}function eB(t){return typeof t=="function"?Z8(t):(t instanceof IDBTransaction&&X8(t),q8(t,G8())?new Proxy(t,Hy):t)}function os(t){if(t instanceof IDBRequest)return Y8(t);if(ng.has(t))return ng.get(t);const e=eB(t);return e!==t&&(ng.set(t,e),h1.set(e,t)),e}const rg=t=>h1.get(t);function tB(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=os(o);return r&&o.addEventListener("upgradeneeded",l=>{r(os(o.result),l.oldVersion,l.newVersion,os(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const nB=["get","getKey","getAll","getAllKeys","count"],rB=["put","add","delete","clear"],ig=new Map;function eT(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ig.get(e))return ig.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=rB.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||nB.includes(n)))return;const s=async function(o,...a){const l=this.transaction(o,i?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return ig.set(e,s),s}J8(t=>({...t,get:(e,n,r)=>eT(e,n)||t.get(e,n,r),has:(e,n)=>!!eT(e,n)||t.has(e,n)}));/** * @license * Copyright 2019 Google LLC * @@ -424,7 +424,7 @@ Error generating stack: `+s.message+` * 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 DB={"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","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}."},os=new Sc("app","Firebase",DB);/** + */const DB={"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","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}."},as=new Sc("app","Firebase",DB);/** * @license * Copyright 2019 Google LLC * @@ -439,7 +439,7 @@ Error generating stack: `+s.message+` * 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 MB{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ms("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw os.create("app-deleted",{appName:this._name})}}/** + */class MB{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new gs("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw as.create("app-deleted",{appName:this._name})}}/** * @license * Copyright 2019 Google LLC * @@ -454,7 +454,7 @@ Error generating stack: `+s.message+` * 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 Eo=AB;function CP(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Ky,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw os.create("bad-app-name",{appName:String(i)});if(n||(n=EP()),!n)throw os.create("no-options");const s=Bh.get(i);if(s){if(Uh(n,s.options)&&Uh(r,s.config))return s;throw os.create("duplicate-app",{appName:i})}const o=new B8(i);for(const l of qy.values())o.addComponent(l);const a=new MB(n,r,o);return Bh.set(i,a),a}function f1(t=Ky){const e=Bh.get(t);if(!e&&t===Ky&&EP())return CP();if(!e)throw os.create("no-app",{appName:t});return e}function Kr(t,e,n){var r;let i=(r=kB[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${e}":`];s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),uo.warn(a.join(" "));return}co(new ms(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** + */const Eo=AB;function CP(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Ky,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw as.create("bad-app-name",{appName:String(i)});if(n||(n=EP()),!n)throw as.create("no-options");const s=Bh.get(i);if(s){if(Uh(n,s.options)&&Uh(r,s.config))return s;throw as.create("duplicate-app",{appName:i})}const o=new B8(i);for(const l of qy.values())o.addComponent(l);const a=new MB(n,r,o);return Bh.set(i,a),a}function f1(t=Ky){const e=Bh.get(t);if(!e&&t===Ky&&EP())return CP();if(!e)throw as.create("no-app",{appName:t});return e}function Kr(t,e,n){var r;let i=(r=kB[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${e}":`];s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),uo.warn(a.join(" "));return}co(new gs(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** * @license * Copyright 2021 Google LLC * @@ -469,7 +469,7 @@ Error generating stack: `+s.message+` * 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 OB="firebase-heartbeat-database",LB=1,Ku="firebase-heartbeat-store";let sg=null;function RP(){return sg||(sg=tB(OB,LB,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Ku)}}}).catch(t=>{throw os.create("idb-open",{originalErrorMessage:t.message})})),sg}async function VB(t){try{return await(await RP()).transaction(Ku).objectStore(Ku).get(bP(t))}catch(e){if(e instanceof ei)uo.warn(e.message);else{const n=os.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});uo.warn(n.message)}}}async function nT(t,e){try{const r=(await RP()).transaction(Ku,"readwrite");await r.objectStore(Ku).put(e,bP(t)),await r.done}catch(n){if(n instanceof ei)uo.warn(n.message);else{const r=os.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});uo.warn(r.message)}}}function bP(t){return`${t.name}!${t.options.appId}`}/** + */const OB="firebase-heartbeat-database",LB=1,Ku="firebase-heartbeat-store";let sg=null;function RP(){return sg||(sg=tB(OB,LB,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Ku)}}}).catch(t=>{throw as.create("idb-open",{originalErrorMessage:t.message})})),sg}async function VB(t){try{return await(await RP()).transaction(Ku).objectStore(Ku).get(bP(t))}catch(e){if(e instanceof ei)uo.warn(e.message);else{const n=as.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});uo.warn(n.message)}}}async function nT(t,e){try{const r=(await RP()).transaction(Ku,"readwrite");await r.objectStore(Ku).put(e,bP(t)),await r.done}catch(n){if(n instanceof ei)uo.warn(n.message);else{const r=as.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});uo.warn(r.message)}}}function bP(t){return`${t.name}!${t.options.appId}`}/** * @license * Copyright 2021 Google LLC * @@ -499,7 +499,7 @@ Error generating stack: `+s.message+` * 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 zB(t){co(new ms("platform-logger",e=>new iB(e),"PRIVATE")),co(new ms("heartbeat",e=>new $B(e),"PRIVATE")),Kr(Wy,tT,t),Kr(Wy,tT,"esm2017"),Kr("fire-js","")}zB("");function p1(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);inew iB(e),"PRIVATE")),co(new gs("heartbeat",e=>new $B(e),"PRIVATE")),Kr(Wy,tT,t),Kr(Wy,tT,"esm2017"),Kr("fire-js","")}zB("");function p1(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i"u","internal-error",{appName:e})}class Js{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=p1(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new a7(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new MP(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await qu(this,this.stsTokenManager.getToken(this.auth,e));return ue(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return i7(this,e)}reload(){return l7(this)}_assign(e){this!==e&&(ue(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Js(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){ue(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Hh(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await qu(this,n7(this.auth,{idToken:e})),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(e=>Object.assign({},e)),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(e,n){var r,i,s,o,a,l,u,c;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,h=(i=n.email)!==null&&i!==void 0?i:void 0,f=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,m=(o=n.photoURL)!==null&&o!==void 0?o:void 0,y=(a=n.tenantId)!==null&&a!==void 0?a:void 0,x=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,w=(u=n.createdAt)!==null&&u!==void 0?u:void 0,v=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:_,emailVerified:g,isAnonymous:S,providerData:I,stsTokenManager:T}=n;ue(_&&T,e,"internal-error");const C=Gu.fromJSON(this.name,T);ue(typeof _=="string",e,"internal-error"),Di(d,e.name),Di(h,e.name),ue(typeof g=="boolean",e,"internal-error"),ue(typeof S=="boolean",e,"internal-error"),Di(f,e.name),Di(m,e.name),Di(y,e.name),Di(x,e.name),Di(w,e.name),Di(v,e.name);const k=new Js({uid:_,auth:e,email:h,emailVerified:g,displayName:d,isAnonymous:S,photoURL:m,phoneNumber:f,tenantId:y,stsTokenManager:C,createdAt:w,lastLoginAt:v});return I&&Array.isArray(I)&&(k.providerData=I.map(P=>Object.assign({},P))),x&&(k._redirectEventId=x),k}static async _fromIdTokenResponse(e,n,r=!1){const i=new Gu;i.updateFromServerResponse(n);const s=new Js({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await Hh(s),s}}/** + */function Mi(t,e){ue(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Js{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=p1(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new a7(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new MP(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await qu(this,this.stsTokenManager.getToken(this.auth,e));return ue(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return i7(this,e)}reload(){return l7(this)}_assign(e){this!==e&&(ue(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Js(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){ue(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Hh(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await qu(this,n7(this.auth,{idToken:e})),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(e=>Object.assign({},e)),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(e,n){var r,i,s,o,a,l,u,c;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,h=(i=n.email)!==null&&i!==void 0?i:void 0,f=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,m=(o=n.photoURL)!==null&&o!==void 0?o:void 0,y=(a=n.tenantId)!==null&&a!==void 0?a:void 0,x=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,w=(u=n.createdAt)!==null&&u!==void 0?u:void 0,v=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:_,emailVerified:g,isAnonymous:S,providerData:I,stsTokenManager:T}=n;ue(_&&T,e,"internal-error");const C=Gu.fromJSON(this.name,T);ue(typeof _=="string",e,"internal-error"),Mi(d,e.name),Mi(h,e.name),ue(typeof g=="boolean",e,"internal-error"),ue(typeof S=="boolean",e,"internal-error"),Mi(f,e.name),Mi(m,e.name),Mi(y,e.name),Mi(x,e.name),Mi(w,e.name),Mi(v,e.name);const k=new Js({uid:_,auth:e,email:h,emailVerified:g,displayName:d,isAnonymous:S,photoURL:m,phoneNumber:f,tenantId:y,stsTokenManager:C,createdAt:w,lastLoginAt:v});return I&&Array.isArray(I)&&(k.providerData=I.map(P=>Object.assign({},P))),x&&(k._redirectEventId=x),k}static async _fromIdTokenResponse(e,n,r=!1){const i=new Gu;i.updateFromServerResponse(n);const s=new Js({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await Hh(s),s}}/** * @license * Copyright 2020 Google LLC * @@ -1099,7 +1099,7 @@ Error generating stack: `+s.message+` * 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 Bi extends Rc{constructor(){super("facebook.com")}static credential(e){return ho._fromParams({providerId:Bi.PROVIDER_ID,signInMethod:Bi.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Bi.credentialFromTaggedObject(e)}static credentialFromError(e){return Bi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Bi.credential(e.oauthAccessToken)}catch{return null}}}Bi.FACEBOOK_SIGN_IN_METHOD="facebook.com";Bi.PROVIDER_ID="facebook.com";/** + */class zi extends Rc{constructor(){super("facebook.com")}static credential(e){return ho._fromParams({providerId:zi.PROVIDER_ID,signInMethod:zi.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return zi.credentialFromTaggedObject(e)}static credentialFromError(e){return zi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return zi.credential(e.oauthAccessToken)}catch{return null}}}zi.FACEBOOK_SIGN_IN_METHOD="facebook.com";zi.PROVIDER_ID="facebook.com";/** * @license * Copyright 2020 Google LLC * @@ -1114,7 +1114,7 @@ Error generating stack: `+s.message+` * 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 zi extends Rc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return ho._fromParams({providerId:zi.PROVIDER_ID,signInMethod:zi.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return zi.credentialFromTaggedObject(e)}static credentialFromError(e){return zi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return zi.credential(n,r)}catch{return null}}}zi.GOOGLE_SIGN_IN_METHOD="google.com";zi.PROVIDER_ID="google.com";/** + */class Hi extends Rc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return ho._fromParams({providerId:Hi.PROVIDER_ID,signInMethod:Hi.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Hi.credentialFromTaggedObject(e)}static credentialFromError(e){return Hi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Hi.credential(n,r)}catch{return null}}}Hi.GOOGLE_SIGN_IN_METHOD="google.com";Hi.PROVIDER_ID="google.com";/** * @license * Copyright 2020 Google LLC * @@ -1129,7 +1129,7 @@ Error generating stack: `+s.message+` * 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 Hi extends Rc{constructor(){super("github.com")}static credential(e){return ho._fromParams({providerId:Hi.PROVIDER_ID,signInMethod:Hi.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Hi.credentialFromTaggedObject(e)}static credentialFromError(e){return Hi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Hi.credential(e.oauthAccessToken)}catch{return null}}}Hi.GITHUB_SIGN_IN_METHOD="github.com";Hi.PROVIDER_ID="github.com";/** + */class Wi extends Rc{constructor(){super("github.com")}static credential(e){return ho._fromParams({providerId:Wi.PROVIDER_ID,signInMethod:Wi.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Wi.credentialFromTaggedObject(e)}static credentialFromError(e){return Wi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Wi.credential(e.oauthAccessToken)}catch{return null}}}Wi.GITHUB_SIGN_IN_METHOD="github.com";Wi.PROVIDER_ID="github.com";/** * @license * Copyright 2020 Google LLC * @@ -1144,7 +1144,7 @@ Error generating stack: `+s.message+` * 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 Wi extends Rc{constructor(){super("twitter.com")}static credential(e,n){return ho._fromParams({providerId:Wi.PROVIDER_ID,signInMethod:Wi.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Wi.credentialFromTaggedObject(e)}static credentialFromError(e){return Wi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Wi.credential(n,r)}catch{return null}}}Wi.TWITTER_SIGN_IN_METHOD="twitter.com";Wi.PROVIDER_ID="twitter.com";/** + */class Ki extends Rc{constructor(){super("twitter.com")}static credential(e,n){return ho._fromParams({providerId:Ki.PROVIDER_ID,signInMethod:Ki.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Ki.credentialFromTaggedObject(e)}static credentialFromError(e){return Ki.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Ki.credential(n,r)}catch{return null}}}Ki.TWITTER_SIGN_IN_METHOD="twitter.com";Ki.PROVIDER_ID="twitter.com";/** * @license * Copyright 2020 Google LLC * @@ -1594,7 +1594,7 @@ Error generating stack: `+s.message+` * 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 Jz(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function Zz(t){co(new ms("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;ue(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:zP(t)},u=new w7(r,i,s,l);return b7(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),co(new ms("auth-internal",e=>{const n=el(e.getProvider("auth").getImmediate());return(r=>new Xz(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Kr(ET,xT,Jz(t)),Kr(ET,xT,"esm2017")}/** + */function Jz(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function Zz(t){co(new gs("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;ue(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:zP(t)},u=new w7(r,i,s,l);return b7(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),co(new gs("auth-internal",e=>{const n=el(e.getProvider("auth").getImmediate());return(r=>new Xz(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Kr(ET,xT,Jz(t)),Kr(ET,xT,"esm2017")}/** * @license * Copyright 2021 Google LLC * @@ -1790,7 +1790,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const aA="storage";function kH(t=f1(),e){t=Qn(t);const r=Ep(t,aA).getImmediate({identifier:e}),i=wP("storage");return i&&NH(r,...i),r}function NH(t,e,n,r={}){PH(t,e,n,r)}function DH(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),i=t.getProvider("app-check-internal");return new AH(n,r,i,e,Eo)}function MH(){co(new ms(aA,DH,"PUBLIC").setMultipleInstances(!0)),Kr(RT,bT,""),Kr(RT,bT,"esm2017")}MH();var OH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},K,T1=T1||{},de=OH||self;function Cp(t){var e=typeof t;return e=e!="object"?e:t?Array.isArray(t)?"array":e:"null",e=="array"||e=="object"&&typeof t.length=="number"}function Pc(t){var e=typeof t;return e=="object"&&t!=null||e=="function"}function LH(t){return Object.prototype.hasOwnProperty.call(t,ug)&&t[ug]||(t[ug]=++VH)}var ug="closure_uid_"+(1e9*Math.random()>>>0),VH=0;function FH(t,e,n){return t.call.apply(t.bind,arguments)}function jH(t,e,n){if(!t)throw Error();if(2{},e),de.removeEventListener("test",()=>{},e)}catch{}return t}();function Yu(t){return/^[\s\xa0]*$/.test(t)}function Rp(){var t=de.navigator;return t&&(t=t.userAgent)?t:""}function jr(t){return Rp().indexOf(t)!=-1}function I1(t){return I1[" "](t),t}I1[" "]=function(){};function BH(t,e){var n=MW;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}var zH=jr("Opera"),Oa=jr("Trident")||jr("MSIE"),uA=jr("Edge"),Yy=uA||Oa,cA=jr("Gecko")&&!(Rp().toLowerCase().indexOf("webkit")!=-1&&!jr("Edge"))&&!(jr("Trident")||jr("MSIE"))&&!jr("Edge"),HH=Rp().toLowerCase().indexOf("webkit")!=-1&&!jr("Edge");function dA(){var t=de.document;return t?t.documentMode:void 0}var Xy;e:{var cg="",dg=function(){var t=Rp();if(cA)return/rv:([^\);]+)(\)|;)/.exec(t);if(uA)return/Edge\/([\d\.]+)/.exec(t);if(Oa)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(HH)return/WebKit\/(\S+)/.exec(t);if(zH)return/(?:Version)[ \/]?(\S+)/.exec(t)}();if(dg&&(cg=dg?dg[1]:""),Oa){var hg=dA();if(hg!=null&&hg>parseFloat(cg)){Xy=String(hg);break e}}Xy=cg}var Jy;if(de.document&&Oa){var AT=dA();Jy=AT||parseInt(Xy,10)||void 0}else Jy=void 0;var WH=Jy;function Xu(t,e){if(mn.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(cA){e:{try{I1(e.nodeName);var i=!0;break e}catch{}i=!1}i||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:KH[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&Xu.$.h.call(this)}}Gt(Xu,mn);var KH={2:"touch",3:"pen",4:"mouse"};Xu.prototype.h=function(){Xu.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Ac="closure_listenable_"+(1e6*Math.random()|0),qH=0;function GH(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.la=i,this.key=++qH,this.fa=this.ia=!1}function bp(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function C1(t,e,n){for(const r in t)e.call(n,t[r],r,t)}function QH(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function hA(t){const e={};for(const n in t)e[n]=t[n];return e}const kT="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function fA(t,e){let n,r;for(let i=1;i>>0);function A1(t){return typeof t=="function"?t:(t[pg]||(t[pg]=function(e){return t.handleEvent(e)}),t[pg])}function Kt(){Cs.call(this),this.i=new Pp(this),this.S=this,this.J=null}Gt(Kt,Cs);Kt.prototype[Ac]=!0;Kt.prototype.removeEventListener=function(t,e,n,r){yA(this,t,e,n,r)};function rn(t,e){var n,r=t.J;if(r)for(n=[];r;r=r.J)n.push(r);if(t=t.S,r=e.type||e,typeof e=="string")e=new mn(e,t);else if(e instanceof mn)e.target=e.target||t;else{var i=e;e=new mn(r,t),fA(e,i)}if(i=!0,n)for(var s=n.length-1;0<=s;s--){var o=e.g=n[s];i=vd(o,r,!0,e)&&i}if(o=e.g=t,i=vd(o,r,!0,e)&&i,i=vd(o,r,!1,e)&&i,n)for(s=0;snew tW,t=>t.reset());class tW{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}function nW(t){var e=1;t=t.split(":");const n=[];for(;0{throw t},0)}let Ju,Zu=!1,N1=new eW,wA=()=>{const t=de.Promise.resolve(void 0);Ju=()=>{t.then(iW)}};var iW=()=>{for(var t;t=ZH();){try{t.h.call(t.g)}catch(n){rW(n)}var e=_A;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}Zu=!1};function Ap(t,e){Kt.call(this),this.h=t||1,this.g=e||de,this.j=pn(this.qb,this),this.l=Date.now()}Gt(Ap,Kt);K=Ap.prototype;K.ga=!1;K.T=null;K.qb=function(){if(this.ga){var t=Date.now()-this.l;0{t.g=null,t.i&&(t.i=!1,EA(t))},t.j);const e=t.h;t.h=null,t.m.apply(null,e)}class sW extends Cs{constructor(e,n){super(),this.m=e,this.j=n,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:EA(this)}N(){super.N(),this.g&&(de.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ec(t){Cs.call(this),this.h=t,this.g={}}Gt(ec,Cs);var NT=[];function xA(t,e,n,r){Array.isArray(n)||(n&&(NT[0]=n.toString()),n=NT);for(var i=0;i>>0),VH=0;function FH(t,e,n){return t.call.apply(t.bind,arguments)}function jH(t,e,n){if(!t)throw Error();if(2{},e),de.removeEventListener("test",()=>{},e)}catch{}return t}();function Yu(t){return/^[\s\xa0]*$/.test(t)}function Rp(){var t=de.navigator;return t&&(t=t.userAgent)?t:""}function jr(t){return Rp().indexOf(t)!=-1}function I1(t){return I1[" "](t),t}I1[" "]=function(){};function BH(t,e){var n=MW;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}var zH=jr("Opera"),Oa=jr("Trident")||jr("MSIE"),uA=jr("Edge"),Yy=uA||Oa,cA=jr("Gecko")&&!(Rp().toLowerCase().indexOf("webkit")!=-1&&!jr("Edge"))&&!(jr("Trident")||jr("MSIE"))&&!jr("Edge"),HH=Rp().toLowerCase().indexOf("webkit")!=-1&&!jr("Edge");function dA(){var t=de.document;return t?t.documentMode:void 0}var Xy;e:{var cg="",dg=function(){var t=Rp();if(cA)return/rv:([^\);]+)(\)|;)/.exec(t);if(uA)return/Edge\/([\d\.]+)/.exec(t);if(Oa)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(HH)return/WebKit\/(\S+)/.exec(t);if(zH)return/(?:Version)[ \/]?(\S+)/.exec(t)}();if(dg&&(cg=dg?dg[1]:""),Oa){var hg=dA();if(hg!=null&&hg>parseFloat(cg)){Xy=String(hg);break e}}Xy=cg}var Jy;if(de.document&&Oa){var AT=dA();Jy=AT||parseInt(Xy,10)||void 0}else Jy=void 0;var WH=Jy;function Xu(t,e){if(mn.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(cA){e:{try{I1(e.nodeName);var i=!0;break e}catch{}i=!1}i||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:KH[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&Xu.$.h.call(this)}}Gt(Xu,mn);var KH={2:"touch",3:"pen",4:"mouse"};Xu.prototype.h=function(){Xu.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Ac="closure_listenable_"+(1e6*Math.random()|0),qH=0;function GH(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.la=i,this.key=++qH,this.fa=this.ia=!1}function bp(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function C1(t,e,n){for(const r in t)e.call(n,t[r],r,t)}function QH(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function hA(t){const e={};for(const n in t)e[n]=t[n];return e}const kT="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function fA(t,e){let n,r;for(let i=1;i>>0);function A1(t){return typeof t=="function"?t:(t[pg]||(t[pg]=function(e){return t.handleEvent(e)}),t[pg])}function Kt(){Cs.call(this),this.i=new Pp(this),this.S=this,this.J=null}Gt(Kt,Cs);Kt.prototype[Ac]=!0;Kt.prototype.removeEventListener=function(t,e,n,r){yA(this,t,e,n,r)};function rn(t,e){var n,r=t.J;if(r)for(n=[];r;r=r.J)n.push(r);if(t=t.S,r=e.type||e,typeof e=="string")e=new mn(e,t);else if(e instanceof mn)e.target=e.target||t;else{var i=e;e=new mn(r,t),fA(e,i)}if(i=!0,n)for(var s=n.length-1;0<=s;s--){var o=e.g=n[s];i=vd(o,r,!0,e)&&i}if(o=e.g=t,i=vd(o,r,!0,e)&&i,i=vd(o,r,!1,e)&&i,n)for(s=0;snew tW,t=>t.reset());class tW{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}function nW(t){var e=1;t=t.split(":");const n=[];for(;0{throw t},0)}let Ju,Zu=!1,N1=new eW,wA=()=>{const t=de.Promise.resolve(void 0);Ju=()=>{t.then(iW)}};var iW=()=>{for(var t;t=ZH();){try{t.h.call(t.g)}catch(n){rW(n)}var e=_A;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}Zu=!1};function Ap(t,e){Kt.call(this),this.h=t||1,this.g=e||de,this.j=pn(this.qb,this),this.l=Date.now()}Gt(Ap,Kt);K=Ap.prototype;K.ga=!1;K.T=null;K.qb=function(){if(this.ga){var t=Date.now()-this.l;0{t.g=null,t.i&&(t.i=!1,EA(t))},t.j);const e=t.h;t.h=null,t.m.apply(null,e)}class sW extends Cs{constructor(e,n){super(),this.m=e,this.j=n,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:EA(this)}N(){super.N(),this.g&&(de.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ec(t){Cs.call(this),this.h=t,this.g={}}Gt(ec,Cs);var NT=[];function xA(t,e,n,r){Array.isArray(n)||(n&&(NT[0]=n.toString()),n=NT);for(var i=0;i=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&it.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return it.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new re(new it(e.slice()))}}function XW(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=he.fromTimestamp(r===1e9?new jt(n+1,0):new jt(n,r));return new gs(i,re.empty(),e)}function JW(t){return new gs(t.readTime,t.key,-1)}class gs{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new gs(he.min(),re.empty(),-1)}static max(){return new gs(he.max(),re.empty(),-1)}}function ZW(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=re.comparator(t.documentKey,e.documentKey),n!==0?n:De(t.largestBatchId,e.largestBatchId))}/** + */class re{constructor(e){this.path=e}static fromPath(e){return new re(it.fromString(e))}static fromName(e){return new re(it.fromString(e).popFirst(5))}static empty(){return new re(it.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&it.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return it.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new re(new it(e.slice()))}}function XW(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=he.fromTimestamp(r===1e9?new jt(n+1,0):new jt(n,r));return new ys(i,re.empty(),e)}function JW(t){return new ys(t.readTime,t.key,-1)}class ys{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new ys(he.min(),re.empty(),-1)}static max(){return new ys(he.max(),re.empty(),-1)}}function ZW(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=re.comparator(t.documentKey,e.documentKey),n!==0?n:De(t.largestBatchId,e.largestBatchId))}/** * @license * Copyright 2020 Google LLC * @@ -2158,7 +2158,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class vn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(i){try{return atob(i)}catch(s){throw typeof DOMException<"u"&&s instanceof DOMException?new fk("Invalid base64 string: "+s):s}}(e);return new vn(n)}static fromUint8Array(e){const n=function(i){let s="";for(let o=0;oeeJr(n,e))!==void 0}function Fa(t,e){if(t===e)return 0;const n=mo(t),r=mo(e);if(n!==r)return De(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return De(t.booleanValue,e.booleanValue);case 2:return function(s,o){const a=bt(s.integerValue||s.doubleValue),l=bt(o.integerValue||o.doubleValue);return al?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return KT(t.timestampValue,e.timestampValue);case 4:return KT(sc(t),sc(e));case 5:return De(t.stringValue,e.stringValue);case 6:return function(s,o){const a=po(s),l=po(o);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(s,o){const a=s.split("/"),l=o.split("/");for(let u=0;ue.mapValue.fields[n]=mu(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=mu(t.arrayValue.values[n]);return e}return Object.assign({},t)}function sK(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** + */const Td={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function mo(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?q1(t)?4:sK(t)?9007199254740991:10:ce()}function Jr(t,e){if(t===e)return!0;const n=mo(t);if(n!==mo(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return sc(t).isEqual(sc(e));case 3:return function(i,s){if(typeof i.timestampValue=="string"&&typeof s.timestampValue=="string"&&i.timestampValue.length===s.timestampValue.length)return i.timestampValue===s.timestampValue;const o=vs(i.timestampValue),a=vs(s.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(i,s){return po(i.bytesValue).isEqual(po(s.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(i,s){return bt(i.geoPointValue.latitude)===bt(s.geoPointValue.latitude)&&bt(i.geoPointValue.longitude)===bt(s.geoPointValue.longitude)}(t,e);case 2:return function(i,s){if("integerValue"in i&&"integerValue"in s)return bt(i.integerValue)===bt(s.integerValue);if("doubleValue"in i&&"doubleValue"in s){const o=bt(i.doubleValue),a=bt(s.doubleValue);return o===a?rf(o)===rf(a):isNaN(o)&&isNaN(a)}return!1}(t,e);case 9:return Va(t.arrayValue.values||[],e.arrayValue.values||[],Jr);case 10:return function(i,s){const o=i.mapValue.fields||{},a=s.mapValue.fields||{};if(HT(o)!==HT(a))return!1;for(const l in o)if(o.hasOwnProperty(l)&&(a[l]===void 0||!Jr(o[l],a[l])))return!1;return!0}(t,e);default:return ce()}}function ac(t,e){return(t.values||[]).find(n=>Jr(n,e))!==void 0}function Fa(t,e){if(t===e)return 0;const n=mo(t),r=mo(e);if(n!==r)return De(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return De(t.booleanValue,e.booleanValue);case 2:return function(s,o){const a=bt(s.integerValue||s.doubleValue),l=bt(o.integerValue||o.doubleValue);return al?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return KT(t.timestampValue,e.timestampValue);case 4:return KT(sc(t),sc(e));case 5:return De(t.stringValue,e.stringValue);case 6:return function(s,o){const a=po(s),l=po(o);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(s,o){const a=s.split("/"),l=o.split("/");for(let u=0;ue.mapValue.fields[n]=mu(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=mu(t.arrayValue.values[n]);return e}return Object.assign({},t)}function sK(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** * @license * Copyright 2017 Google LLC * @@ -2491,7 +2491,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Qd{constructor(e,n,r,i){this.Ve=e,this.removedTargetIds=n,this.key=r,this.me=i}}class Lk{constructor(e,n){this.targetId=e,this.fe=n}}class Vk{constructor(e,n,r=vn.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class sS{constructor(){this.ge=0,this.pe=aS(),this.ye=vn.EMPTY_BYTE_STRING,this.we=!1,this.Se=!0}get current(){return this.we}get resumeToken(){return this.ye}get be(){return this.ge!==0}get De(){return this.Se}Ce(e){e.approximateByteSize()>0&&(this.Se=!0,this.ye=e)}ve(){let e=Te(),n=Te(),r=Te();return this.pe.forEach((i,s)=>{switch(s){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:ce()}}),new Uc(this.ye,this.we,e,n,r)}Fe(){this.Se=!1,this.pe=aS()}Me(e,n){this.Se=!0,this.pe=this.pe.insert(e,n)}xe(e){this.Se=!0,this.pe=this.pe.remove(e)}Oe(){this.ge+=1}Ne(){this.ge-=1}Be(){this.Se=!0,this.we=!0}}class $K{constructor(e){this.Le=e,this.ke=new Map,this.qe=Ii(),this.Qe=oS(),this.Ke=new dt(De)}$e(e){for(const n of e.Ve)e.me&&e.me.isFoundDocument()?this.Ue(n,e.me):this.We(n,e.key,e.me);for(const n of e.removedTargetIds)this.We(n,e.key,e.me)}Ge(e){this.forEachTarget(e,n=>{const r=this.ze(n);switch(e.state){case 0:this.je(n)&&r.Ce(e.resumeToken);break;case 1:r.Ne(),r.be||r.Fe(),r.Ce(e.resumeToken);break;case 2:r.Ne(),r.be||this.removeTarget(n);break;case 3:this.je(n)&&(r.Be(),r.Ce(e.resumeToken));break;case 4:this.je(n)&&(this.He(n),r.Ce(e.resumeToken));break;default:ce()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.ke.forEach((r,i)=>{this.je(i)&&n(i)})}Je(e){const n=e.targetId,r=e.fe.count,i=this.Ye(n);if(i){const s=i.target;if(dv(s))if(r===0){const o=new re(s.path);this.We(n,o,fn.newNoDocument(o,he.min()))}else et(r===1);else{const o=this.Ze(n);if(o!==r){const a=this.Xe(e),l=a?this.et(a,e,o):1;if(l!==0){this.He(n);const u=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(n,u)}}}}}Xe(e){const n=e.fe.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:s=0}=n;let o,a;try{o=po(r).toUint8Array()}catch(l){if(l instanceof fk)return La("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new e_(o,i,s)}catch(l){return La(l instanceof Kl?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.Te===0?null:a}et(e,n,r){return n.fe.count===r-this.rt(e,n.targetId)?0:2}rt(e,n){const r=this.Le.getRemoteKeysForTarget(n);let i=0;return r.forEach(s=>{const o=this.Le.nt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${s.path.canonicalString()}`;e.mightContain(a)||(this.We(n,s,null),i++)}),i}it(e){const n=new Map;this.ke.forEach((s,o)=>{const a=this.Ye(o);if(a){if(s.current&&dv(a.target)){const l=new re(a.target.path);this.qe.get(l)!==null||this.st(o,l)||this.We(o,l,fn.newNoDocument(l,e))}s.De&&(n.set(o,s.ve()),s.Fe())}});let r=Te();this.Qe.forEach((s,o)=>{let a=!0;o.forEachWhile(l=>{const u=this.Ye(l);return!u||u.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(s))}),this.qe.forEach((s,o)=>o.setReadTime(e));const i=new qp(e,n,this.Ke,this.qe,r);return this.qe=Ii(),this.Qe=oS(),this.Ke=new dt(De),i}Ue(e,n){if(!this.je(e))return;const r=this.st(e,n.key)?2:0;this.ze(e).Me(n.key,r),this.qe=this.qe.insert(n.key,n),this.Qe=this.Qe.insert(n.key,this.ot(n.key).add(e))}We(e,n,r){if(!this.je(e))return;const i=this.ze(e);this.st(e,n)?i.Me(n,1):i.xe(n),this.Qe=this.Qe.insert(n,this.ot(n).delete(e)),r&&(this.qe=this.qe.insert(n,r))}removeTarget(e){this.ke.delete(e)}Ze(e){const n=this.ze(e).ve();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Oe(e){this.ze(e).Oe()}ze(e){let n=this.ke.get(e);return n||(n=new sS,this.ke.set(e,n)),n}ot(e){let n=this.Qe.get(e);return n||(n=new sn(De),this.Qe=this.Qe.insert(e,n)),n}je(e){const n=this.Ye(e)!==null;return n||Y("WatchChangeAggregator","Detected inactive target",e),n}Ye(e){const n=this.ke.get(e);return n&&n.be?null:this.Le._t(e)}He(e){this.ke.set(e,new sS),this.Le.getRemoteKeysForTarget(e).forEach(n=>{this.We(e,n,null)})}st(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function oS(){return new dt(re.comparator)}function aS(){return new dt(re.comparator)}const UK={asc:"ASCENDING",desc:"DESCENDING"},BK={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},zK={and:"AND",or:"OR"};class HK{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function fv(t,e){return t.useProto3Json||Up(e)?e:{value:e}}function uf(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function Fk(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function WK(t,e){return uf(t,e.toTimestamp())}function Yr(t){return et(!!t),he.fromTimestamp(function(n){const r=ys(n);return new jt(r.seconds,r.nanos)}(t))}function t_(t,e){return function(r){return new it(["projects",r.projectId,"databases",r.database])}(t).child("documents").child(e).canonicalString()}function jk(t){const e=it.fromString(t);return et(zk(e)),e}function pv(t,e){return t_(t.databaseId,e.path)}function yg(t,e){const n=jk(e);if(n.get(1)!==t.databaseId.projectId)throw new ee(V.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new ee(V.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new re($k(n))}function mv(t,e){return t_(t.databaseId,e)}function KK(t){const e=jk(t);return e.length===4?it.emptyPath():$k(e)}function gv(t){return new it(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function $k(t){return et(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function lS(t,e,n){return{name:pv(t,e),fields:n.value.mapValue.fields}}function qK(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(u){return u==="NO_CHANGE"?0:u==="ADD"?1:u==="REMOVE"?2:u==="CURRENT"?3:u==="RESET"?4:ce()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],s=function(u,c){return u.useProto3Json?(et(c===void 0||typeof c=="string"),vn.fromBase64String(c||"")):(et(c===void 0||c instanceof Uint8Array),vn.fromUint8Array(c||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(u){const c=u.code===void 0?V.UNKNOWN:Ok(u.code);return new ee(c,u.message||"")}(o);n=new Vk(r,i,s,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const i=yg(t,r.document.name),s=Yr(r.document.updateTime),o=r.document.createTime?Yr(r.document.createTime):he.min(),a=new lr({mapValue:{fields:r.document.fields}}),l=fn.newFoundDocument(i,s,o,a),u=r.targetIds||[],c=r.removedTargetIds||[];n=new Qd(u,c,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const i=yg(t,r.document),s=r.readTime?Yr(r.readTime):he.min(),o=fn.newNoDocument(i,s),a=r.removedTargetIds||[];n=new Qd([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const i=yg(t,r.document),s=r.removedTargetIds||[];n=new Qd([],s,i,null)}else{if(!("filter"in e))return ce();{e.filter;const r=e.filter;r.targetId;const{count:i=0,unchangedNames:s}=r,o=new LK(i,s),a=r.targetId;n=new Lk(a,o)}}return n}function GK(t,e){let n;if(e instanceof $c)n={update:lS(t,e.key,e.value)};else if(e instanceof Mk)n={delete:pv(t,e.key)};else if(e instanceof So)n={update:lS(t,e.key,e.data),updateMask:rq(e.fieldMask)};else{if(!(e instanceof DK))return ce();n={verify:pv(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(s,o){const a=o.transform;if(a instanceof af)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof lc)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof uc)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof lf)return{fieldPath:o.field.canonicalString(),increment:a.Ie};throw ce()}(0,r))),e.precondition.isNone||(n.currentDocument=function(i,s){return s.updateTime!==void 0?{updateTime:WK(i,s.updateTime)}:s.exists!==void 0?{exists:s.exists}:ce()}(t,e.precondition)),n}function QK(t,e){return t&&t.length>0?(et(e!==void 0),t.map(n=>function(i,s){let o=i.updateTime?Yr(i.updateTime):Yr(s);return o.isEqual(he.min())&&(o=Yr(s)),new AK(o,i.transformResults||[])}(n,e))):[]}function YK(t,e){return{documents:[mv(t,e.path)]}}function XK(t,e){const n={structuredQuery:{}},r=e.path;e.collectionGroup!==null?(n.parent=mv(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=mv(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const i=function(l){if(l.length!==0)return Bk(Zr.create(l,"and"))}(e.filters);i&&(n.structuredQuery.where=i);const s=function(l){if(l.length!==0)return l.map(u=>function(d){return{field:Fo(d.field),direction:eq(d.dir)}}(u))}(e.orderBy);s&&(n.structuredQuery.orderBy=s);const o=fv(t,e.limit);return o!==null&&(n.structuredQuery.limit=o),e.startAt&&(n.structuredQuery.startAt=function(l){return{before:l.inclusive,values:l.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(e.endAt)),n}function JK(t){let e=KK(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){et(r===1);const c=n.from[0];c.allDescendants?i=c.collectionId:e=e.child(c.collectionId)}let s=[];n.where&&(s=function(d){const h=Uk(d);return h instanceof Zr&&yk(h)?h.getFilters():[h]}(n.where));let o=[];n.orderBy&&(o=function(d){return d.map(h=>function(m){return new of(jo(m.field),function(x){switch(x){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction))}(h))}(n.orderBy));let a=null;n.limit&&(a=function(d){let h;return h=typeof d=="object"?d.value:d,Up(h)?null:h}(n.limit));let l=null;n.startAt&&(l=function(d){const h=!!d.before,f=d.values||[];return new sf(f,h)}(n.startAt));let u=null;return n.endAt&&(u=function(d){const h=!d.before,f=d.values||[];return new sf(f,h)}(n.endAt)),gK(e,i,o,s,a,"F",l,u)}function ZK(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ce()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function Uk(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=jo(n.unaryFilter.field);return Vt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=jo(n.unaryFilter.field);return Vt.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const s=jo(n.unaryFilter.field);return Vt.create(s,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=jo(n.unaryFilter.field);return Vt.create(o,"!=",{nullValue:"NULL_VALUE"});default:return ce()}}(t):t.fieldFilter!==void 0?function(n){return Vt.create(jo(n.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return ce()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Zr.create(n.compositeFilter.filters.map(r=>Uk(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return ce()}}(n.compositeFilter.op))}(t):ce()}function eq(t){return UK[t]}function tq(t){return BK[t]}function nq(t){return zK[t]}function Fo(t){return{fieldPath:t.canonicalString()}}function jo(t){return tn.fromServerFormat(t.fieldPath)}function Bk(t){return t instanceof Vt?function(n){if(n.op==="=="){if(GT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NAN"}};if(qT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(GT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NOT_NAN"}};if(qT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Fo(n.field),op:tq(n.op),value:n.value}}}(t):t instanceof Zr?function(n){const r=n.getFilters().map(i=>Bk(i));return r.length===1?r[0]:{compositeFilter:{op:nq(n.op),filters:r}}}(t):ce()}function rq(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function zk(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** + */class Qd{constructor(e,n,r,i){this.Ve=e,this.removedTargetIds=n,this.key=r,this.me=i}}class Lk{constructor(e,n){this.targetId=e,this.fe=n}}class Vk{constructor(e,n,r=vn.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class sS{constructor(){this.ge=0,this.pe=aS(),this.ye=vn.EMPTY_BYTE_STRING,this.we=!1,this.Se=!0}get current(){return this.we}get resumeToken(){return this.ye}get be(){return this.ge!==0}get De(){return this.Se}Ce(e){e.approximateByteSize()>0&&(this.Se=!0,this.ye=e)}ve(){let e=Te(),n=Te(),r=Te();return this.pe.forEach((i,s)=>{switch(s){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:ce()}}),new Uc(this.ye,this.we,e,n,r)}Fe(){this.Se=!1,this.pe=aS()}Me(e,n){this.Se=!0,this.pe=this.pe.insert(e,n)}xe(e){this.Se=!0,this.pe=this.pe.remove(e)}Oe(){this.ge+=1}Ne(){this.ge-=1}Be(){this.Se=!0,this.we=!0}}class $K{constructor(e){this.Le=e,this.ke=new Map,this.qe=Ii(),this.Qe=oS(),this.Ke=new dt(De)}$e(e){for(const n of e.Ve)e.me&&e.me.isFoundDocument()?this.Ue(n,e.me):this.We(n,e.key,e.me);for(const n of e.removedTargetIds)this.We(n,e.key,e.me)}Ge(e){this.forEachTarget(e,n=>{const r=this.ze(n);switch(e.state){case 0:this.je(n)&&r.Ce(e.resumeToken);break;case 1:r.Ne(),r.be||r.Fe(),r.Ce(e.resumeToken);break;case 2:r.Ne(),r.be||this.removeTarget(n);break;case 3:this.je(n)&&(r.Be(),r.Ce(e.resumeToken));break;case 4:this.je(n)&&(this.He(n),r.Ce(e.resumeToken));break;default:ce()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.ke.forEach((r,i)=>{this.je(i)&&n(i)})}Je(e){const n=e.targetId,r=e.fe.count,i=this.Ye(n);if(i){const s=i.target;if(dv(s))if(r===0){const o=new re(s.path);this.We(n,o,fn.newNoDocument(o,he.min()))}else et(r===1);else{const o=this.Ze(n);if(o!==r){const a=this.Xe(e),l=a?this.et(a,e,o):1;if(l!==0){this.He(n);const u=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(n,u)}}}}}Xe(e){const n=e.fe.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:s=0}=n;let o,a;try{o=po(r).toUint8Array()}catch(l){if(l instanceof fk)return La("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new e_(o,i,s)}catch(l){return La(l instanceof Kl?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.Te===0?null:a}et(e,n,r){return n.fe.count===r-this.rt(e,n.targetId)?0:2}rt(e,n){const r=this.Le.getRemoteKeysForTarget(n);let i=0;return r.forEach(s=>{const o=this.Le.nt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${s.path.canonicalString()}`;e.mightContain(a)||(this.We(n,s,null),i++)}),i}it(e){const n=new Map;this.ke.forEach((s,o)=>{const a=this.Ye(o);if(a){if(s.current&&dv(a.target)){const l=new re(a.target.path);this.qe.get(l)!==null||this.st(o,l)||this.We(o,l,fn.newNoDocument(l,e))}s.De&&(n.set(o,s.ve()),s.Fe())}});let r=Te();this.Qe.forEach((s,o)=>{let a=!0;o.forEachWhile(l=>{const u=this.Ye(l);return!u||u.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(s))}),this.qe.forEach((s,o)=>o.setReadTime(e));const i=new qp(e,n,this.Ke,this.qe,r);return this.qe=Ii(),this.Qe=oS(),this.Ke=new dt(De),i}Ue(e,n){if(!this.je(e))return;const r=this.st(e,n.key)?2:0;this.ze(e).Me(n.key,r),this.qe=this.qe.insert(n.key,n),this.Qe=this.Qe.insert(n.key,this.ot(n.key).add(e))}We(e,n,r){if(!this.je(e))return;const i=this.ze(e);this.st(e,n)?i.Me(n,1):i.xe(n),this.Qe=this.Qe.insert(n,this.ot(n).delete(e)),r&&(this.qe=this.qe.insert(n,r))}removeTarget(e){this.ke.delete(e)}Ze(e){const n=this.ze(e).ve();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Oe(e){this.ze(e).Oe()}ze(e){let n=this.ke.get(e);return n||(n=new sS,this.ke.set(e,n)),n}ot(e){let n=this.Qe.get(e);return n||(n=new sn(De),this.Qe=this.Qe.insert(e,n)),n}je(e){const n=this.Ye(e)!==null;return n||Y("WatchChangeAggregator","Detected inactive target",e),n}Ye(e){const n=this.ke.get(e);return n&&n.be?null:this.Le._t(e)}He(e){this.ke.set(e,new sS),this.Le.getRemoteKeysForTarget(e).forEach(n=>{this.We(e,n,null)})}st(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function oS(){return new dt(re.comparator)}function aS(){return new dt(re.comparator)}const UK={asc:"ASCENDING",desc:"DESCENDING"},BK={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},zK={and:"AND",or:"OR"};class HK{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function fv(t,e){return t.useProto3Json||Up(e)?e:{value:e}}function uf(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function Fk(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function WK(t,e){return uf(t,e.toTimestamp())}function Yr(t){return et(!!t),he.fromTimestamp(function(n){const r=vs(n);return new jt(r.seconds,r.nanos)}(t))}function t_(t,e){return function(r){return new it(["projects",r.projectId,"databases",r.database])}(t).child("documents").child(e).canonicalString()}function jk(t){const e=it.fromString(t);return et(zk(e)),e}function pv(t,e){return t_(t.databaseId,e.path)}function yg(t,e){const n=jk(e);if(n.get(1)!==t.databaseId.projectId)throw new ee(V.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new ee(V.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new re($k(n))}function mv(t,e){return t_(t.databaseId,e)}function KK(t){const e=jk(t);return e.length===4?it.emptyPath():$k(e)}function gv(t){return new it(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function $k(t){return et(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function lS(t,e,n){return{name:pv(t,e),fields:n.value.mapValue.fields}}function qK(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(u){return u==="NO_CHANGE"?0:u==="ADD"?1:u==="REMOVE"?2:u==="CURRENT"?3:u==="RESET"?4:ce()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],s=function(u,c){return u.useProto3Json?(et(c===void 0||typeof c=="string"),vn.fromBase64String(c||"")):(et(c===void 0||c instanceof Uint8Array),vn.fromUint8Array(c||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(u){const c=u.code===void 0?V.UNKNOWN:Ok(u.code);return new ee(c,u.message||"")}(o);n=new Vk(r,i,s,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const i=yg(t,r.document.name),s=Yr(r.document.updateTime),o=r.document.createTime?Yr(r.document.createTime):he.min(),a=new lr({mapValue:{fields:r.document.fields}}),l=fn.newFoundDocument(i,s,o,a),u=r.targetIds||[],c=r.removedTargetIds||[];n=new Qd(u,c,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const i=yg(t,r.document),s=r.readTime?Yr(r.readTime):he.min(),o=fn.newNoDocument(i,s),a=r.removedTargetIds||[];n=new Qd([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const i=yg(t,r.document),s=r.removedTargetIds||[];n=new Qd([],s,i,null)}else{if(!("filter"in e))return ce();{e.filter;const r=e.filter;r.targetId;const{count:i=0,unchangedNames:s}=r,o=new LK(i,s),a=r.targetId;n=new Lk(a,o)}}return n}function GK(t,e){let n;if(e instanceof $c)n={update:lS(t,e.key,e.value)};else if(e instanceof Mk)n={delete:pv(t,e.key)};else if(e instanceof So)n={update:lS(t,e.key,e.data),updateMask:rq(e.fieldMask)};else{if(!(e instanceof DK))return ce();n={verify:pv(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(s,o){const a=o.transform;if(a instanceof af)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof lc)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof uc)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof lf)return{fieldPath:o.field.canonicalString(),increment:a.Ie};throw ce()}(0,r))),e.precondition.isNone||(n.currentDocument=function(i,s){return s.updateTime!==void 0?{updateTime:WK(i,s.updateTime)}:s.exists!==void 0?{exists:s.exists}:ce()}(t,e.precondition)),n}function QK(t,e){return t&&t.length>0?(et(e!==void 0),t.map(n=>function(i,s){let o=i.updateTime?Yr(i.updateTime):Yr(s);return o.isEqual(he.min())&&(o=Yr(s)),new AK(o,i.transformResults||[])}(n,e))):[]}function YK(t,e){return{documents:[mv(t,e.path)]}}function XK(t,e){const n={structuredQuery:{}},r=e.path;e.collectionGroup!==null?(n.parent=mv(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=mv(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const i=function(l){if(l.length!==0)return Bk(Zr.create(l,"and"))}(e.filters);i&&(n.structuredQuery.where=i);const s=function(l){if(l.length!==0)return l.map(u=>function(d){return{field:Fo(d.field),direction:eq(d.dir)}}(u))}(e.orderBy);s&&(n.structuredQuery.orderBy=s);const o=fv(t,e.limit);return o!==null&&(n.structuredQuery.limit=o),e.startAt&&(n.structuredQuery.startAt=function(l){return{before:l.inclusive,values:l.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(e.endAt)),n}function JK(t){let e=KK(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){et(r===1);const c=n.from[0];c.allDescendants?i=c.collectionId:e=e.child(c.collectionId)}let s=[];n.where&&(s=function(d){const h=Uk(d);return h instanceof Zr&&yk(h)?h.getFilters():[h]}(n.where));let o=[];n.orderBy&&(o=function(d){return d.map(h=>function(m){return new of(jo(m.field),function(x){switch(x){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction))}(h))}(n.orderBy));let a=null;n.limit&&(a=function(d){let h;return h=typeof d=="object"?d.value:d,Up(h)?null:h}(n.limit));let l=null;n.startAt&&(l=function(d){const h=!!d.before,f=d.values||[];return new sf(f,h)}(n.startAt));let u=null;return n.endAt&&(u=function(d){const h=!d.before,f=d.values||[];return new sf(f,h)}(n.endAt)),gK(e,i,o,s,a,"F",l,u)}function ZK(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ce()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function Uk(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=jo(n.unaryFilter.field);return Vt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=jo(n.unaryFilter.field);return Vt.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const s=jo(n.unaryFilter.field);return Vt.create(s,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=jo(n.unaryFilter.field);return Vt.create(o,"!=",{nullValue:"NULL_VALUE"});default:return ce()}}(t):t.fieldFilter!==void 0?function(n){return Vt.create(jo(n.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return ce()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Zr.create(n.compositeFilter.filters.map(r=>Uk(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return ce()}}(n.compositeFilter.op))}(t):ce()}function eq(t){return UK[t]}function tq(t){return BK[t]}function nq(t){return zK[t]}function Fo(t){return{fieldPath:t.canonicalString()}}function jo(t){return tn.fromServerFormat(t.fieldPath)}function Bk(t){return t instanceof Vt?function(n){if(n.op==="=="){if(GT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NAN"}};if(qT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(GT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NOT_NAN"}};if(qT(n.value))return{unaryFilter:{field:Fo(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Fo(n.field),op:tq(n.op),value:n.value}}}(t):t instanceof Zr?function(n){const r=n.getFilters().map(i=>Bk(i));return r.length===1?r[0]:{compositeFilter:{op:nq(n.op),filters:r}}}(t):ce()}function rq(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function zk(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** * @license * Copyright 2017 Google LLC * @@ -2506,7 +2506,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Gi{constructor(e,n,r,i,s=he.min(),o=he.min(),a=vn.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new Gi(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Gi(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Gi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Gi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** + */class Qi{constructor(e,n,r,i,s=he.min(),o=he.min(),a=vn.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new Qi(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Qi(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Qi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Qi(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** * @license * Copyright 2017 Google LLC * @@ -2536,7 +2536,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class oq{constructor(){this.on=new aq}addToCollectionParentIndex(e,n){return this.on.add(n),F.resolve()}getCollectionParents(e,n){return F.resolve(this.on.getEntries(n))}addFieldIndex(e,n){return F.resolve()}deleteFieldIndex(e,n){return F.resolve()}deleteAllFieldIndexes(e){return F.resolve()}createTargetIndexes(e,n){return F.resolve()}getDocumentsMatchingTarget(e,n){return F.resolve(null)}getIndexType(e,n){return F.resolve(0)}getFieldIndexes(e,n){return F.resolve([])}getNextCollectionGroupToUpdate(e){return F.resolve(null)}getMinOffset(e,n){return F.resolve(gs.min())}getMinOffsetFromCollectionGroup(e,n){return F.resolve(gs.min())}updateCollectionGroup(e,n,r){return F.resolve()}updateIndexEntries(e,n){return F.resolve()}}class aq{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new sn(it.comparator),s=!i.has(r);return this.index[n]=i.add(r),s}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new sn(it.comparator)).toArray()}}/** + */class oq{constructor(){this.on=new aq}addToCollectionParentIndex(e,n){return this.on.add(n),F.resolve()}getCollectionParents(e,n){return F.resolve(this.on.getEntries(n))}addFieldIndex(e,n){return F.resolve()}deleteFieldIndex(e,n){return F.resolve()}deleteAllFieldIndexes(e){return F.resolve()}createTargetIndexes(e,n){return F.resolve()}getDocumentsMatchingTarget(e,n){return F.resolve(null)}getIndexType(e,n){return F.resolve(0)}getFieldIndexes(e,n){return F.resolve([])}getNextCollectionGroupToUpdate(e){return F.resolve(null)}getMinOffset(e,n){return F.resolve(ys.min())}getMinOffsetFromCollectionGroup(e,n){return F.resolve(ys.min())}updateCollectionGroup(e,n,r){return F.resolve()}updateIndexEntries(e,n){return F.resolve()}}class aq{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new sn(it.comparator),s=!i.has(r);return this.index[n]=i.add(r),s}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new sn(it.comparator)).toArray()}}/** * @license * Copyright 2017 Google LLC * @@ -2761,7 +2761,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class wq{constructor(){this.Ki=!1,this.$i=!1,this.Ui=100,this.Wi=8}initialize(e,n){this.Gi=e,this.indexManager=n,this.Ki=!0}getDocumentsMatchingQuery(e,n,r,i){const s={result:null};return this.zi(e,n).next(o=>{s.result=o}).next(()=>{if(!s.result)return this.ji(e,n,i,r).next(o=>{s.result=o})}).next(()=>{if(s.result)return;const o=new _q;return this.Hi(e,n,o).next(a=>{if(s.result=a,this.$i)return this.Ji(e,n,o,a.size)})}).next(()=>s.result)}Ji(e,n,r,i){return r.documentReadCountthis.Wi*i?(Dl()<=Ce.DEBUG&&Y("QueryEngine","The SDK decides to create cache indexes for query:",Vo(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Qr(n))):F.resolve())}zi(e,n){if(JT(n))return F.resolve(null);let r=Qr(n);return this.indexManager.getIndexType(e,r).next(i=>i===0?null:(n.limit!==null&&i===1&&(n=hv(n,null,"F"),r=Qr(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(s=>{const o=Te(...s);return this.Gi.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const u=this.Yi(n,a);return this.Zi(n,u,o,l.readTime)?this.zi(e,hv(n,null,"F")):this.Xi(e,u,n,l)}))})))}ji(e,n,r,i){return JT(n)||i.isEqual(he.min())?F.resolve(null):this.Gi.getDocuments(e,r).next(s=>{const o=this.Yi(n,s);return this.Zi(n,o,r,i)?F.resolve(null):(Dl()<=Ce.DEBUG&&Y("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),Vo(n)),this.Xi(e,o,n,XW(i,-1)).next(a=>a))})}Yi(e,n){let r=new sn(xk(e));return n.forEach((i,s)=>{Hp(e,s)&&(r=r.add(s))}),r}Zi(e,n,r,i){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const s=e.limitType==="F"?n.last():n.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(i)>0)}Hi(e,n,r){return Dl()<=Ce.DEBUG&&Y("QueryEngine","Using full collection scan to execute query:",Vo(n)),this.Gi.getDocumentsMatchingQuery(e,n,gs.min(),r)}Xi(e,n,r,i){return this.Gi.getDocumentsMatchingQuery(e,r,i).next(s=>(n.forEach(o=>{s=s.insert(o.key,o)}),s))}}/** + */class wq{constructor(){this.Ki=!1,this.$i=!1,this.Ui=100,this.Wi=8}initialize(e,n){this.Gi=e,this.indexManager=n,this.Ki=!0}getDocumentsMatchingQuery(e,n,r,i){const s={result:null};return this.zi(e,n).next(o=>{s.result=o}).next(()=>{if(!s.result)return this.ji(e,n,i,r).next(o=>{s.result=o})}).next(()=>{if(s.result)return;const o=new _q;return this.Hi(e,n,o).next(a=>{if(s.result=a,this.$i)return this.Ji(e,n,o,a.size)})}).next(()=>s.result)}Ji(e,n,r,i){return r.documentReadCountthis.Wi*i?(Dl()<=Ce.DEBUG&&Y("QueryEngine","The SDK decides to create cache indexes for query:",Vo(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Qr(n))):F.resolve())}zi(e,n){if(JT(n))return F.resolve(null);let r=Qr(n);return this.indexManager.getIndexType(e,r).next(i=>i===0?null:(n.limit!==null&&i===1&&(n=hv(n,null,"F"),r=Qr(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(s=>{const o=Te(...s);return this.Gi.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const u=this.Yi(n,a);return this.Zi(n,u,o,l.readTime)?this.zi(e,hv(n,null,"F")):this.Xi(e,u,n,l)}))})))}ji(e,n,r,i){return JT(n)||i.isEqual(he.min())?F.resolve(null):this.Gi.getDocuments(e,r).next(s=>{const o=this.Yi(n,s);return this.Zi(n,o,r,i)?F.resolve(null):(Dl()<=Ce.DEBUG&&Y("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),Vo(n)),this.Xi(e,o,n,XW(i,-1)).next(a=>a))})}Yi(e,n){let r=new sn(xk(e));return n.forEach((i,s)=>{Hp(e,s)&&(r=r.add(s))}),r}Zi(e,n,r,i){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const s=e.limitType==="F"?n.last():n.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(i)>0)}Hi(e,n,r){return Dl()<=Ce.DEBUG&&Y("QueryEngine","Using full collection scan to execute query:",Vo(n)),this.Gi.getDocumentsMatchingQuery(e,n,ys.min(),r)}Xi(e,n,r,i){return this.Gi.getDocumentsMatchingQuery(e,r,i).next(s=>(n.forEach(o=>{s=s.insert(o.key,o)}),s))}}/** * @license * Copyright 2020 Google LLC * @@ -2776,7 +2776,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var Xr;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Eq{constructor(e,n,r,i){this.persistence=e,this.es=n,this.serializer=i,this.ts=new dt(De),this.ns=new ol(s=>Y1(s),X1),this.rs=new Map,this.ss=e.getRemoteDocumentCache(),this.qr=e.getTargetCache(),this.Kr=e.getBundleCache(),this.os(r)}os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new cq(this.ss,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ss.setIndexManager(this.indexManager),this.es.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.ts))}}function xq(t,e,n,r){return new Eq(t,e,n,r)}async function Hk(t,e){const n=pe(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let i;return n.mutationQueue.getAllMutationBatches(r).next(s=>(i=s,n.os(e),n.mutationQueue.getAllMutationBatches(r))).next(s=>{const o=[],a=[];let l=Te();for(const u of i){o.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}for(const u of s){a.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}return n.localDocuments.getDocuments(r,l).next(u=>({_s:u,removedBatchIds:o,addedBatchIds:a}))})})}function Tq(t,e){const n=pe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),s=n.ss.newChangeBuffer({trackRemovals:!0});return function(a,l,u,c){const d=u.batch,h=d.keys();let f=F.resolve();return h.forEach(m=>{f=f.next(()=>c.getEntry(l,m)).next(y=>{const x=u.docVersions.get(m);et(x!==null),y.version.compareTo(x)<0&&(d.applyToRemoteDocument(y,u),y.isValidDocument()&&(y.setReadTime(u.commitVersion),c.addEntry(y)))})}),f.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(n,r,e,s).next(()=>s.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=Te();for(let u=0;u0&&(l=l.add(a.batch.mutations[u].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}function Wk(t){const e=pe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.qr.getLastRemoteSnapshotVersion(n))}function Sq(t,e){const n=pe(t),r=e.snapshotVersion;let i=n.ts;return n.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=n.ss.newChangeBuffer({trackRemovals:!0});i=n.ts;const a=[];e.targetChanges.forEach((c,d)=>{const h=i.get(d);if(!h)return;a.push(n.qr.removeMatchingKeys(s,c.removedDocuments,d).next(()=>n.qr.addMatchingKeys(s,c.addedDocuments,d)));let f=h.withSequenceNumber(s.currentSequenceNumber);e.targetMismatches.get(d)!==null?f=f.withResumeToken(vn.EMPTY_BYTE_STRING,he.min()).withLastLimboFreeSnapshotVersion(he.min()):c.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(c.resumeToken,r)),i=i.insert(d,f),function(y,x,w){return y.resumeToken.approximateByteSize()===0||x.snapshotVersion.toMicroseconds()-y.snapshotVersion.toMicroseconds()>=3e8?!0:w.addedDocuments.size+w.modifiedDocuments.size+w.removedDocuments.size>0}(h,f,c)&&a.push(n.qr.updateTargetData(s,f))});let l=Ii(),u=Te();if(e.documentUpdates.forEach(c=>{e.resolvedLimboDocuments.has(c)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(s,c))}),a.push(Iq(s,o,e.documentUpdates).next(c=>{l=c.us,u=c.cs})),!r.isEqual(he.min())){const c=n.qr.getLastRemoteSnapshotVersion(s).next(d=>n.qr.setTargetsMetadata(s,s.currentSequenceNumber,r));a.push(c)}return F.waitFor(a).next(()=>o.apply(s)).next(()=>n.localDocuments.getLocalViewOfDocuments(s,l,u)).next(()=>l)}).then(s=>(n.ts=i,s))}function Iq(t,e,n){let r=Te(),i=Te();return n.forEach(s=>r=r.add(s)),e.getEntries(t,r).next(s=>{let o=Ii();return n.forEach((a,l)=>{const u=s.get(a);l.isFoundDocument()!==u.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(he.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!u.isValidDocument()||l.version.compareTo(u.version)>0||l.version.compareTo(u.version)===0&&u.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):Y("LocalStore","Ignoring outdated watch update for ",a,". Current version:",u.version," Watch version:",l.version)}),{us:o,cs:i}})}function Cq(t,e){const n=pe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function Rq(t,e){const n=pe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.qr.getTargetData(r,e).next(s=>s?(i=s,F.resolve(i)):n.qr.allocateTargetId(r).next(o=>(i=new Gi(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.ts.get(r.targetId);return(i===null||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.ts=n.ts.insert(r.targetId,r),n.ns.set(e,r.targetId)),r})}async function yv(t,e,n){const r=pe(t),i=r.ts.get(e),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,o=>r.persistence.referenceDelegate.removeTarget(o,i))}catch(o){if(!jc(o))throw o;Y("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.ts=r.ts.remove(e),r.ns.delete(i.target)}function uS(t,e,n){const r=pe(t);let i=he.min(),s=Te();return r.persistence.runTransaction("Execute query","readwrite",o=>function(l,u,c){const d=pe(l),h=d.ns.get(c);return h!==void 0?F.resolve(d.ts.get(h)):d.qr.getTargetData(u,c)}(r,o,Qr(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.qr.getMatchingKeysForTargetId(o,a.targetId).next(l=>{s=l})}).next(()=>r.es.getDocumentsMatchingQuery(o,e,n?i:he.min(),n?s:Te())).next(a=>(bq(r,_K(e),a),{documents:a,ls:s})))}function bq(t,e,n){let r=t.rs.get(e)||he.min();n.forEach((i,s)=>{s.readTime.compareTo(r)>0&&(r=s.readTime)}),t.rs.set(e,r)}class cS{constructor(){this.activeTargetIds=IK()}ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}As(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Es(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class Pq{constructor(){this.eo=new cS,this.no={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.eo.ds(e),this.no[e]||"not-current"}updateQueryState(e,n,r){this.no[e]=n}removeLocalQueryTarget(e){this.eo.As(e)}isLocalQueryTarget(e){return this.eo.activeTargetIds.has(e)}clearQueryState(e){delete this.no[e]}getAllActiveQueryTargets(){return this.eo.activeTargetIds}isActiveQueryTarget(e){return this.eo.activeTargetIds.has(e)}start(){return this.eo=new cS,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** + */class Eq{constructor(e,n,r,i){this.persistence=e,this.es=n,this.serializer=i,this.ts=new dt(De),this.ns=new ol(s=>Y1(s),X1),this.rs=new Map,this.ss=e.getRemoteDocumentCache(),this.qr=e.getTargetCache(),this.Kr=e.getBundleCache(),this.os(r)}os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new cq(this.ss,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ss.setIndexManager(this.indexManager),this.es.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.ts))}}function xq(t,e,n,r){return new Eq(t,e,n,r)}async function Hk(t,e){const n=pe(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let i;return n.mutationQueue.getAllMutationBatches(r).next(s=>(i=s,n.os(e),n.mutationQueue.getAllMutationBatches(r))).next(s=>{const o=[],a=[];let l=Te();for(const u of i){o.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}for(const u of s){a.push(u.batchId);for(const c of u.mutations)l=l.add(c.key)}return n.localDocuments.getDocuments(r,l).next(u=>({_s:u,removedBatchIds:o,addedBatchIds:a}))})})}function Tq(t,e){const n=pe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),s=n.ss.newChangeBuffer({trackRemovals:!0});return function(a,l,u,c){const d=u.batch,h=d.keys();let f=F.resolve();return h.forEach(m=>{f=f.next(()=>c.getEntry(l,m)).next(y=>{const x=u.docVersions.get(m);et(x!==null),y.version.compareTo(x)<0&&(d.applyToRemoteDocument(y,u),y.isValidDocument()&&(y.setReadTime(u.commitVersion),c.addEntry(y)))})}),f.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(n,r,e,s).next(()=>s.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=Te();for(let u=0;u0&&(l=l.add(a.batch.mutations[u].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}function Wk(t){const e=pe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.qr.getLastRemoteSnapshotVersion(n))}function Sq(t,e){const n=pe(t),r=e.snapshotVersion;let i=n.ts;return n.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=n.ss.newChangeBuffer({trackRemovals:!0});i=n.ts;const a=[];e.targetChanges.forEach((c,d)=>{const h=i.get(d);if(!h)return;a.push(n.qr.removeMatchingKeys(s,c.removedDocuments,d).next(()=>n.qr.addMatchingKeys(s,c.addedDocuments,d)));let f=h.withSequenceNumber(s.currentSequenceNumber);e.targetMismatches.get(d)!==null?f=f.withResumeToken(vn.EMPTY_BYTE_STRING,he.min()).withLastLimboFreeSnapshotVersion(he.min()):c.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(c.resumeToken,r)),i=i.insert(d,f),function(y,x,w){return y.resumeToken.approximateByteSize()===0||x.snapshotVersion.toMicroseconds()-y.snapshotVersion.toMicroseconds()>=3e8?!0:w.addedDocuments.size+w.modifiedDocuments.size+w.removedDocuments.size>0}(h,f,c)&&a.push(n.qr.updateTargetData(s,f))});let l=Ii(),u=Te();if(e.documentUpdates.forEach(c=>{e.resolvedLimboDocuments.has(c)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(s,c))}),a.push(Iq(s,o,e.documentUpdates).next(c=>{l=c.us,u=c.cs})),!r.isEqual(he.min())){const c=n.qr.getLastRemoteSnapshotVersion(s).next(d=>n.qr.setTargetsMetadata(s,s.currentSequenceNumber,r));a.push(c)}return F.waitFor(a).next(()=>o.apply(s)).next(()=>n.localDocuments.getLocalViewOfDocuments(s,l,u)).next(()=>l)}).then(s=>(n.ts=i,s))}function Iq(t,e,n){let r=Te(),i=Te();return n.forEach(s=>r=r.add(s)),e.getEntries(t,r).next(s=>{let o=Ii();return n.forEach((a,l)=>{const u=s.get(a);l.isFoundDocument()!==u.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(he.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!u.isValidDocument()||l.version.compareTo(u.version)>0||l.version.compareTo(u.version)===0&&u.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):Y("LocalStore","Ignoring outdated watch update for ",a,". Current version:",u.version," Watch version:",l.version)}),{us:o,cs:i}})}function Cq(t,e){const n=pe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function Rq(t,e){const n=pe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.qr.getTargetData(r,e).next(s=>s?(i=s,F.resolve(i)):n.qr.allocateTargetId(r).next(o=>(i=new Qi(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.ts.get(r.targetId);return(i===null||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.ts=n.ts.insert(r.targetId,r),n.ns.set(e,r.targetId)),r})}async function yv(t,e,n){const r=pe(t),i=r.ts.get(e),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,o=>r.persistence.referenceDelegate.removeTarget(o,i))}catch(o){if(!jc(o))throw o;Y("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.ts=r.ts.remove(e),r.ns.delete(i.target)}function uS(t,e,n){const r=pe(t);let i=he.min(),s=Te();return r.persistence.runTransaction("Execute query","readwrite",o=>function(l,u,c){const d=pe(l),h=d.ns.get(c);return h!==void 0?F.resolve(d.ts.get(h)):d.qr.getTargetData(u,c)}(r,o,Qr(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.qr.getMatchingKeysForTargetId(o,a.targetId).next(l=>{s=l})}).next(()=>r.es.getDocumentsMatchingQuery(o,e,n?i:he.min(),n?s:Te())).next(a=>(bq(r,_K(e),a),{documents:a,ls:s})))}function bq(t,e,n){let r=t.rs.get(e)||he.min();n.forEach((i,s)=>{s.readTime.compareTo(r)>0&&(r=s.readTime)}),t.rs.set(e,r)}class cS{constructor(){this.activeTargetIds=IK()}ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}As(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Es(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class Pq{constructor(){this.eo=new cS,this.no={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.eo.ds(e),this.no[e]||"not-current"}updateQueryState(e,n,r){this.no[e]=n}removeLocalQueryTarget(e){this.eo.As(e)}isLocalQueryTarget(e){return this.eo.activeTargetIds.has(e)}clearQueryState(e){delete this.no[e]}getAllActiveQueryTargets(){return this.eo.activeTargetIds}isActiveQueryTarget(e){return this.eo.activeTargetIds.has(e)}start(){return this.eo=new cS,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** * @license * Copyright 2019 Google LLC * @@ -2942,7 +2942,7 @@ This typically indicates that your device does not have a healthy Internet conne * 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 Fq{constructor(e,n,r,i,s){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.b_=[],this.D_=new Map,this.C_=new Set,this.v_=[],this.F_=s,this.F_.ro(o=>{r.enqueueAndForget(async()=>{Io(this)&&(Y("RemoteStore","Restarting streams for network reachability change."),await async function(l){const u=pe(l);u.C_.add(4),await Bc(u),u.M_.set("Unknown"),u.C_.delete(4),await Qp(u)}(this))})}),this.M_=new Vq(r,i)}}async function Qp(t){if(Io(t))for(const e of t.v_)await e(!0)}async function Bc(t){for(const e of t.v_)await e(!1)}function Gk(t,e){const n=pe(t);n.D_.has(e.targetId)||(n.D_.set(e.targetId,e),a_(n)?o_(n):al(n).Ho()&&s_(n,e))}function Qk(t,e){const n=pe(t),r=al(n);n.D_.delete(e),r.Ho()&&Yk(n,e),n.D_.size===0&&(r.Ho()?r.Zo():Io(n)&&n.M_.set("Unknown"))}function s_(t,e){if(t.x_.Oe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(he.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}al(t).u_(e)}function Yk(t,e){t.x_.Oe(e),al(t).c_(e)}function o_(t){t.x_=new $K({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),_t:e=>t.D_.get(e)||null,nt:()=>t.datastore.serializer.databaseId}),al(t).start(),t.M_.g_()}function a_(t){return Io(t)&&!al(t).jo()&&t.D_.size>0}function Io(t){return pe(t).C_.size===0}function Xk(t){t.x_=void 0}async function jq(t){t.D_.forEach((e,n)=>{s_(t,e)})}async function $q(t,e){Xk(t),a_(t)?(t.M_.w_(e),o_(t)):t.M_.set("Unknown")}async function Uq(t,e,n){if(t.M_.set("Online"),e instanceof Vk&&e.state===2&&e.cause)try{await async function(i,s){const o=s.cause;for(const a of s.targetIds)i.D_.has(a)&&(await i.remoteSyncer.rejectListen(a,o),i.D_.delete(a),i.x_.removeTarget(a))}(t,e)}catch(r){Y("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await cf(t,r)}else if(e instanceof Qd?t.x_.$e(e):e instanceof Lk?t.x_.Je(e):t.x_.Ge(e),!n.isEqual(he.min()))try{const r=await Wk(t.localStore);n.compareTo(r)>=0&&await function(s,o){const a=s.x_.it(o);return a.targetChanges.forEach((l,u)=>{if(l.resumeToken.approximateByteSize()>0){const c=s.D_.get(u);c&&s.D_.set(u,c.withResumeToken(l.resumeToken,o))}}),a.targetMismatches.forEach((l,u)=>{const c=s.D_.get(l);if(!c)return;s.D_.set(l,c.withResumeToken(vn.EMPTY_BYTE_STRING,c.snapshotVersion)),Yk(s,l);const d=new Gi(c.target,l,u,c.sequenceNumber);s_(s,d)}),s.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){Y("RemoteStore","Failed to raise snapshot:",r),await cf(t,r)}}async function cf(t,e,n){if(!jc(e))throw e;t.C_.add(1),await Bc(t),t.M_.set("Offline"),n||(n=()=>Wk(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{Y("RemoteStore","Retrying IndexedDB access"),await n(),t.C_.delete(1),await Qp(t)})}function Jk(t,e){return e().catch(n=>cf(t,n,e))}async function Yp(t){const e=pe(t),n=vs(e);let r=e.b_.length>0?e.b_[e.b_.length-1].batchId:-1;for(;Bq(e);)try{const i=await Cq(e.localStore,r);if(i===null){e.b_.length===0&&n.Zo();break}r=i.batchId,zq(e,i)}catch(i){await cf(e,i)}Zk(e)&&e2(e)}function Bq(t){return Io(t)&&t.b_.length<10}function zq(t,e){t.b_.push(e);const n=vs(t);n.Ho()&&n.h_&&n.P_(e.mutations)}function Zk(t){return Io(t)&&!vs(t).jo()&&t.b_.length>0}function e2(t){vs(t).start()}async function Hq(t){vs(t).E_()}async function Wq(t){const e=vs(t);for(const n of t.b_)e.P_(n.mutations)}async function Kq(t,e,n){const r=t.b_.shift(),i=Z1.from(r,e,n);await Jk(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),await Yp(t)}async function qq(t,e){e&&vs(t).h_&&await async function(r,i){if(function(o){return VK(o)&&o!==V.ABORTED}(i.code)){const s=r.b_.shift();vs(r).Yo(),await Jk(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,i)),await Yp(r)}}(t,e),Zk(t)&&e2(t)}async function hS(t,e){const n=pe(t);n.asyncQueue.verifyOperationInProgress(),Y("RemoteStore","RemoteStore received new credentials");const r=Io(n);n.C_.add(3),await Bc(n),r&&n.M_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.C_.delete(3),await Qp(n)}async function Gq(t,e){const n=pe(t);e?(n.C_.delete(2),await Qp(n)):e||(n.C_.add(2),await Bc(n),n.M_.set("Unknown"))}function al(t){return t.O_||(t.O_=function(n,r,i){const s=pe(n);return s.A_(),new Mq(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{ho:jq.bind(null,t),Io:$q.bind(null,t),a_:Uq.bind(null,t)}),t.v_.push(async e=>{e?(t.O_.Yo(),a_(t)?o_(t):t.M_.set("Unknown")):(await t.O_.stop(),Xk(t))})),t.O_}function vs(t){return t.N_||(t.N_=function(n,r,i){const s=pe(n);return s.A_(),new Oq(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{ho:Hq.bind(null,t),Io:qq.bind(null,t),T_:Wq.bind(null,t),I_:Kq.bind(null,t)}),t.v_.push(async e=>{e?(t.N_.Yo(),await Yp(t)):(await t.N_.stop(),t.b_.length>0&&(Y("RemoteStore",`Stopping write stream with ${t.b_.length} pending writes`),t.b_=[]))})),t.N_}/** + */class Fq{constructor(e,n,r,i,s){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.b_=[],this.D_=new Map,this.C_=new Set,this.v_=[],this.F_=s,this.F_.ro(o=>{r.enqueueAndForget(async()=>{Io(this)&&(Y("RemoteStore","Restarting streams for network reachability change."),await async function(l){const u=pe(l);u.C_.add(4),await Bc(u),u.M_.set("Unknown"),u.C_.delete(4),await Qp(u)}(this))})}),this.M_=new Vq(r,i)}}async function Qp(t){if(Io(t))for(const e of t.v_)await e(!0)}async function Bc(t){for(const e of t.v_)await e(!1)}function Gk(t,e){const n=pe(t);n.D_.has(e.targetId)||(n.D_.set(e.targetId,e),a_(n)?o_(n):al(n).Ho()&&s_(n,e))}function Qk(t,e){const n=pe(t),r=al(n);n.D_.delete(e),r.Ho()&&Yk(n,e),n.D_.size===0&&(r.Ho()?r.Zo():Io(n)&&n.M_.set("Unknown"))}function s_(t,e){if(t.x_.Oe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(he.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}al(t).u_(e)}function Yk(t,e){t.x_.Oe(e),al(t).c_(e)}function o_(t){t.x_=new $K({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),_t:e=>t.D_.get(e)||null,nt:()=>t.datastore.serializer.databaseId}),al(t).start(),t.M_.g_()}function a_(t){return Io(t)&&!al(t).jo()&&t.D_.size>0}function Io(t){return pe(t).C_.size===0}function Xk(t){t.x_=void 0}async function jq(t){t.D_.forEach((e,n)=>{s_(t,e)})}async function $q(t,e){Xk(t),a_(t)?(t.M_.w_(e),o_(t)):t.M_.set("Unknown")}async function Uq(t,e,n){if(t.M_.set("Online"),e instanceof Vk&&e.state===2&&e.cause)try{await async function(i,s){const o=s.cause;for(const a of s.targetIds)i.D_.has(a)&&(await i.remoteSyncer.rejectListen(a,o),i.D_.delete(a),i.x_.removeTarget(a))}(t,e)}catch(r){Y("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await cf(t,r)}else if(e instanceof Qd?t.x_.$e(e):e instanceof Lk?t.x_.Je(e):t.x_.Ge(e),!n.isEqual(he.min()))try{const r=await Wk(t.localStore);n.compareTo(r)>=0&&await function(s,o){const a=s.x_.it(o);return a.targetChanges.forEach((l,u)=>{if(l.resumeToken.approximateByteSize()>0){const c=s.D_.get(u);c&&s.D_.set(u,c.withResumeToken(l.resumeToken,o))}}),a.targetMismatches.forEach((l,u)=>{const c=s.D_.get(l);if(!c)return;s.D_.set(l,c.withResumeToken(vn.EMPTY_BYTE_STRING,c.snapshotVersion)),Yk(s,l);const d=new Qi(c.target,l,u,c.sequenceNumber);s_(s,d)}),s.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){Y("RemoteStore","Failed to raise snapshot:",r),await cf(t,r)}}async function cf(t,e,n){if(!jc(e))throw e;t.C_.add(1),await Bc(t),t.M_.set("Offline"),n||(n=()=>Wk(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{Y("RemoteStore","Retrying IndexedDB access"),await n(),t.C_.delete(1),await Qp(t)})}function Jk(t,e){return e().catch(n=>cf(t,n,e))}async function Yp(t){const e=pe(t),n=_s(e);let r=e.b_.length>0?e.b_[e.b_.length-1].batchId:-1;for(;Bq(e);)try{const i=await Cq(e.localStore,r);if(i===null){e.b_.length===0&&n.Zo();break}r=i.batchId,zq(e,i)}catch(i){await cf(e,i)}Zk(e)&&e2(e)}function Bq(t){return Io(t)&&t.b_.length<10}function zq(t,e){t.b_.push(e);const n=_s(t);n.Ho()&&n.h_&&n.P_(e.mutations)}function Zk(t){return Io(t)&&!_s(t).jo()&&t.b_.length>0}function e2(t){_s(t).start()}async function Hq(t){_s(t).E_()}async function Wq(t){const e=_s(t);for(const n of t.b_)e.P_(n.mutations)}async function Kq(t,e,n){const r=t.b_.shift(),i=Z1.from(r,e,n);await Jk(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),await Yp(t)}async function qq(t,e){e&&_s(t).h_&&await async function(r,i){if(function(o){return VK(o)&&o!==V.ABORTED}(i.code)){const s=r.b_.shift();_s(r).Yo(),await Jk(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,i)),await Yp(r)}}(t,e),Zk(t)&&e2(t)}async function hS(t,e){const n=pe(t);n.asyncQueue.verifyOperationInProgress(),Y("RemoteStore","RemoteStore received new credentials");const r=Io(n);n.C_.add(3),await Bc(n),r&&n.M_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.C_.delete(3),await Qp(n)}async function Gq(t,e){const n=pe(t);e?(n.C_.delete(2),await Qp(n)):e||(n.C_.add(2),await Bc(n),n.M_.set("Unknown"))}function al(t){return t.O_||(t.O_=function(n,r,i){const s=pe(n);return s.A_(),new Mq(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{ho:jq.bind(null,t),Io:$q.bind(null,t),a_:Uq.bind(null,t)}),t.v_.push(async e=>{e?(t.O_.Yo(),a_(t)?o_(t):t.M_.set("Unknown")):(await t.O_.stop(),Xk(t))})),t.O_}function _s(t){return t.N_||(t.N_=function(n,r,i){const s=pe(n);return s.A_(),new Oq(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{ho:Hq.bind(null,t),Io:qq.bind(null,t),T_:Wq.bind(null,t),I_:Kq.bind(null,t)}),t.v_.push(async e=>{e?(t.N_.Yo(),await Yp(t)):(await t.N_.stop(),t.b_.length>0&&(Y("RemoteStore",`Stopping write stream with ${t.b_.length} pending writes`),t.b_=[]))})),t.N_}/** * @license * Copyright 2017 Google LLC * @@ -3020,7 +3020,7 @@ This typically indicates that your device does not have a healthy Internet conne * 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 i2{constructor(e){this.key=e}}class s2{constructor(e){this.key=e}}class Zq{constructor(e,n){this.query=e,this.ia=n,this.sa=null,this.hasCachedResults=!1,this.current=!1,this.oa=Te(),this.mutatedKeys=Te(),this._a=xk(e),this.aa=new Ea(this._a)}get ua(){return this.ia}ca(e,n){const r=n?n.la:new fS,i=n?n.aa:this.aa;let s=n?n.mutatedKeys:this.mutatedKeys,o=i,a=!1;const l=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,u=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((c,d)=>{const h=i.get(c),f=Hp(this.query,d)?d:null,m=!!h&&this.mutatedKeys.has(h.key),y=!!f&&(f.hasLocalMutations||this.mutatedKeys.has(f.key)&&f.hasCommittedMutations);let x=!1;h&&f?h.data.isEqual(f.data)?m!==y&&(r.track({type:3,doc:f}),x=!0):this.ha(h,f)||(r.track({type:2,doc:f}),x=!0,(l&&this._a(f,l)>0||u&&this._a(f,u)<0)&&(a=!0)):!h&&f?(r.track({type:0,doc:f}),x=!0):h&&!f&&(r.track({type:1,doc:h}),x=!0,(l||u)&&(a=!0)),x&&(f?(o=o.add(f),s=y?s.add(c):s.delete(c)):(o=o.delete(c),s=s.delete(c)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const c=this.query.limitType==="F"?o.last():o.first();o=o.delete(c.key),s=s.delete(c.key),r.track({type:1,doc:c})}return{aa:o,la:r,Zi:a,mutatedKeys:s}}ha(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r){const i=this.aa;this.aa=e.aa,this.mutatedKeys=e.mutatedKeys;const s=e.la.L_();s.sort((u,c)=>function(h,f){const m=y=>{switch(y){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ce()}};return m(h)-m(f)}(u.type,c.type)||this._a(u.doc,c.doc)),this.Pa(r);const o=n?this.Ia():[],a=this.oa.size===0&&this.current?1:0,l=a!==this.sa;return this.sa=a,s.length!==0||l?{snapshot:new Ua(this.query,e.aa,i,s,e.mutatedKeys,a===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ta:o}:{Ta:o}}Q_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({aa:this.aa,la:new fS,mutatedKeys:this.mutatedKeys,Zi:!1},!1)):{Ta:[]}}Ea(e){return!this.ia.has(e)&&!!this.aa.has(e)&&!this.aa.get(e).hasLocalMutations}Pa(e){e&&(e.addedDocuments.forEach(n=>this.ia=this.ia.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.ia=this.ia.delete(n)),this.current=e.current)}Ia(){if(!this.current)return[];const e=this.oa;this.oa=Te(),this.aa.forEach(r=>{this.Ea(r.key)&&(this.oa=this.oa.add(r.key))});const n=[];return e.forEach(r=>{this.oa.has(r)||n.push(new s2(r))}),this.oa.forEach(r=>{e.has(r)||n.push(new i2(r))}),n}da(e){this.ia=e.ls,this.oa=Te();const n=this.ca(e.documents);return this.applyChanges(n,!0)}Aa(){return Ua.fromInitialDocuments(this.query,this.aa,this.mutatedKeys,this.sa===0,this.hasCachedResults)}}class eG{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class tG{constructor(e){this.key=e,this.Ra=!1}}class nG{constructor(e,n,r,i,s,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.Va={},this.ma=new ol(a=>Ek(a),zp),this.fa=new Map,this.ga=new Set,this.pa=new dt(re.comparator),this.ya=new Map,this.wa=new n_,this.Sa={},this.ba=new Map,this.Da=$a.Nn(),this.onlineState="Unknown",this.Ca=void 0}get isPrimaryClient(){return this.Ca===!0}}async function rG(t,e){const n=fG(t);let r,i;const s=n.ma.get(e);if(s)r=s.targetId,n.sharedClientState.addLocalQueryTarget(r),i=s.view.Aa();else{const o=await Rq(n.localStore,Qr(e)),a=n.sharedClientState.addLocalQueryTarget(o.targetId);r=o.targetId,i=await iG(n,e,r,a==="current",o.resumeToken),n.isPrimaryClient&&Gk(n.remoteStore,o)}return i}async function iG(t,e,n,r,i){t.va=(d,h,f)=>async function(y,x,w,v){let _=x.view.ca(w);_.Zi&&(_=await uS(y.localStore,x.query,!1).then(({documents:I})=>x.view.ca(I,_)));const g=v&&v.targetChanges.get(x.targetId),S=x.view.applyChanges(_,y.isPrimaryClient,g);return mS(y,x.targetId,S.Ta),S.snapshot}(t,d,h,f);const s=await uS(t.localStore,e,!0),o=new Zq(e,s.ls),a=o.ca(s.documents),l=Uc.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",i),u=o.applyChanges(a,t.isPrimaryClient,l);mS(t,n,u.Ta);const c=new eG(e,n,o);return t.ma.set(e,c),t.fa.has(n)?t.fa.get(n).push(e):t.fa.set(n,[e]),u.snapshot}async function sG(t,e){const n=pe(t),r=n.ma.get(e),i=n.fa.get(r.targetId);if(i.length>1)return n.fa.set(r.targetId,i.filter(s=>!zp(s,e))),void n.ma.delete(e);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await yv(n.localStore,r.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(r.targetId),Qk(n.remoteStore,r.targetId),vv(n,r.targetId)}).catch(Fc)):(vv(n,r.targetId),await yv(n.localStore,r.targetId,!0))}async function oG(t,e,n){const r=pG(t);try{const i=await function(o,a){const l=pe(o),u=jt.now(),c=a.reduce((f,m)=>f.add(m.key),Te());let d,h;return l.persistence.runTransaction("Locally write mutations","readwrite",f=>{let m=Ii(),y=Te();return l.ss.getEntries(f,c).next(x=>{m=x,m.forEach((w,v)=>{v.isValidDocument()||(y=y.add(w))})}).next(()=>l.localDocuments.getOverlayedDocuments(f,m)).next(x=>{d=x;const w=[];for(const v of a){const _=NK(v,d.get(v.key).overlayedDocument);_!=null&&w.push(new So(v.key,_,pk(_.value.mapValue),mi.exists(!0)))}return l.mutationQueue.addMutationBatch(f,u,w,a)}).next(x=>{h=x;const w=x.applyToLocalDocumentSet(d,y);return l.documentOverlayCache.saveOverlays(f,x.batchId,w)})}).then(()=>({batchId:h.batchId,changes:Sk(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(o,a,l){let u=o.Sa[o.currentUser.toKey()];u||(u=new dt(De)),u=u.insert(a,l),o.Sa[o.currentUser.toKey()]=u}(r,i.batchId,n),await zc(r,i.changes),await Yp(r.remoteStore)}catch(i){const s=u_(i,"Failed to persist write");n.reject(s)}}async function o2(t,e){const n=pe(t);try{const r=await Sq(n.localStore,e);e.targetChanges.forEach((i,s)=>{const o=n.ya.get(s);o&&(et(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?o.Ra=!0:i.modifiedDocuments.size>0?et(o.Ra):i.removedDocuments.size>0&&(et(o.Ra),o.Ra=!1))}),await zc(n,r,e)}catch(r){await Fc(r)}}function pS(t,e,n){const r=pe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const i=[];r.ma.forEach((s,o)=>{const a=o.view.Q_(e);a.snapshot&&i.push(a.snapshot)}),function(o,a){const l=pe(o);l.onlineState=a;let u=!1;l.queries.forEach((c,d)=>{for(const h of d.listeners)h.Q_(a)&&(u=!0)}),u&&c_(l)}(r.eventManager,e),i.length&&r.Va.a_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function aG(t,e,n){const r=pe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.ya.get(e),s=i&&i.key;if(s){let o=new dt(re.comparator);o=o.insert(s,fn.newNoDocument(s,he.min()));const a=Te().add(s),l=new qp(he.min(),new Map,new dt(De),o,a);await o2(r,l),r.pa=r.pa.remove(s),r.ya.delete(e),d_(r)}else await yv(r.localStore,e,!1).then(()=>vv(r,e,n)).catch(Fc)}async function lG(t,e){const n=pe(t),r=e.batch.batchId;try{const i=await Tq(n.localStore,e);l2(n,r,null),a2(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await zc(n,i)}catch(i){await Fc(i)}}async function uG(t,e,n){const r=pe(t);try{const i=await function(o,a){const l=pe(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",u=>{let c;return l.mutationQueue.lookupMutationBatch(u,a).next(d=>(et(d!==null),c=d.keys(),l.mutationQueue.removeMutationBatch(u,d))).next(()=>l.mutationQueue.performConsistencyCheck(u)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(u,c,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(u,c)).next(()=>l.localDocuments.getDocuments(u,c))})}(r.localStore,e);l2(r,e,n),a2(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await zc(r,i)}catch(i){await Fc(i)}}function a2(t,e){(t.ba.get(e)||[]).forEach(n=>{n.resolve()}),t.ba.delete(e)}function l2(t,e,n){const r=pe(t);let i=r.Sa[r.currentUser.toKey()];if(i){const s=i.get(e);s&&(n?s.reject(n):s.resolve(),i=i.remove(e)),r.Sa[r.currentUser.toKey()]=i}}function vv(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.fa.get(e))t.ma.delete(r),n&&t.Va.Fa(r,n);t.fa.delete(e),t.isPrimaryClient&&t.wa.Rr(e).forEach(r=>{t.wa.containsKey(r)||u2(t,r)})}function u2(t,e){t.ga.delete(e.path.canonicalString());const n=t.pa.get(e);n!==null&&(Qk(t.remoteStore,n),t.pa=t.pa.remove(e),t.ya.delete(n),d_(t))}function mS(t,e,n){for(const r of n)r instanceof i2?(t.wa.addReference(r.key,e),cG(t,r)):r instanceof s2?(Y("SyncEngine","Document no longer in limbo: "+r.key),t.wa.removeReference(r.key,e),t.wa.containsKey(r.key)||u2(t,r.key)):ce()}function cG(t,e){const n=e.key,r=n.path.canonicalString();t.pa.get(n)||t.ga.has(r)||(Y("SyncEngine","New document in limbo: "+n),t.ga.add(r),d_(t))}function d_(t){for(;t.ga.size>0&&t.pa.size{o.push(r.va(l,e,n).then(u=>{if((u||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,u!=null&&u.fromCache?"not-current":"current"),u){i.push(u);const c=i_.Qi(l.targetId,u);s.push(c)}}))}),await Promise.all(o),r.Va.a_(i),await async function(l,u){const c=pe(l);try{await c.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>F.forEach(u,h=>F.forEach(h.ki,f=>c.persistence.referenceDelegate.addReference(d,h.targetId,f)).next(()=>F.forEach(h.qi,f=>c.persistence.referenceDelegate.removeReference(d,h.targetId,f)))))}catch(d){if(!jc(d))throw d;Y("LocalStore","Failed to update sequence numbers: "+d)}for(const d of u){const h=d.targetId;if(!d.fromCache){const f=c.ts.get(h),m=f.snapshotVersion,y=f.withLastLimboFreeSnapshotVersion(m);c.ts=c.ts.insert(h,y)}}}(r.localStore,s))}async function dG(t,e){const n=pe(t);if(!n.currentUser.isEqual(e)){Y("SyncEngine","User change. New user:",e.toKey());const r=await Hk(n.localStore,e);n.currentUser=e,function(s,o){s.ba.forEach(a=>{a.forEach(l=>{l.reject(new ee(V.CANCELLED,o))})}),s.ba.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await zc(n,r._s)}}function hG(t,e){const n=pe(t),r=n.ya.get(e);if(r&&r.Ra)return Te().add(r.key);{let i=Te();const s=n.fa.get(e);if(!s)return i;for(const o of s){const a=n.ma.get(o);i=i.unionWith(a.view.ua)}return i}}function fG(t){const e=pe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=o2.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=hG.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=aG.bind(null,e),e.Va.a_=Xq.bind(null,e.eventManager),e.Va.Fa=Jq.bind(null,e.eventManager),e}function pG(t){const e=pe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=lG.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=uG.bind(null,e),e}class gS{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Gp(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return xq(this.persistence,new wq,e.initialUser,this.serializer)}createPersistence(e){return new yq(r_.jr,this.serializer)}createSharedClientState(e){return new Pq}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class mG{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>pS(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=dG.bind(null,this.syncEngine),await Gq(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new Yq}()}createDatastore(e){const n=Gp(e.databaseInfo.databaseId),r=function(s){return new Dq(s)}(e.databaseInfo);return function(s,o,a,l){return new Lq(s,o,a,l)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,i,s,o,a){return new Fq(r,i,s,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>pS(this.syncEngine,n,0),function(){return dS.D()?new dS:new Aq}())}createSyncEngine(e,n){return function(i,s,o,a,l,u,c){const d=new nG(i,s,o,a,l,u);return c&&(d.Ca=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){return async function(n){const r=pe(n);Y("RemoteStore","RemoteStore shutting down."),r.C_.add(5),await Bc(r),r.F_.shutdown(),r.M_.set("Unknown")}(this.remoteStore)}}/** + */class i2{constructor(e){this.key=e}}class s2{constructor(e){this.key=e}}class Zq{constructor(e,n){this.query=e,this.ia=n,this.sa=null,this.hasCachedResults=!1,this.current=!1,this.oa=Te(),this.mutatedKeys=Te(),this._a=xk(e),this.aa=new Ea(this._a)}get ua(){return this.ia}ca(e,n){const r=n?n.la:new fS,i=n?n.aa:this.aa;let s=n?n.mutatedKeys:this.mutatedKeys,o=i,a=!1;const l=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,u=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((c,d)=>{const h=i.get(c),f=Hp(this.query,d)?d:null,m=!!h&&this.mutatedKeys.has(h.key),y=!!f&&(f.hasLocalMutations||this.mutatedKeys.has(f.key)&&f.hasCommittedMutations);let x=!1;h&&f?h.data.isEqual(f.data)?m!==y&&(r.track({type:3,doc:f}),x=!0):this.ha(h,f)||(r.track({type:2,doc:f}),x=!0,(l&&this._a(f,l)>0||u&&this._a(f,u)<0)&&(a=!0)):!h&&f?(r.track({type:0,doc:f}),x=!0):h&&!f&&(r.track({type:1,doc:h}),x=!0,(l||u)&&(a=!0)),x&&(f?(o=o.add(f),s=y?s.add(c):s.delete(c)):(o=o.delete(c),s=s.delete(c)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const c=this.query.limitType==="F"?o.last():o.first();o=o.delete(c.key),s=s.delete(c.key),r.track({type:1,doc:c})}return{aa:o,la:r,Zi:a,mutatedKeys:s}}ha(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r){const i=this.aa;this.aa=e.aa,this.mutatedKeys=e.mutatedKeys;const s=e.la.L_();s.sort((u,c)=>function(h,f){const m=y=>{switch(y){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ce()}};return m(h)-m(f)}(u.type,c.type)||this._a(u.doc,c.doc)),this.Pa(r);const o=n?this.Ia():[],a=this.oa.size===0&&this.current?1:0,l=a!==this.sa;return this.sa=a,s.length!==0||l?{snapshot:new Ua(this.query,e.aa,i,s,e.mutatedKeys,a===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ta:o}:{Ta:o}}Q_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({aa:this.aa,la:new fS,mutatedKeys:this.mutatedKeys,Zi:!1},!1)):{Ta:[]}}Ea(e){return!this.ia.has(e)&&!!this.aa.has(e)&&!this.aa.get(e).hasLocalMutations}Pa(e){e&&(e.addedDocuments.forEach(n=>this.ia=this.ia.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.ia=this.ia.delete(n)),this.current=e.current)}Ia(){if(!this.current)return[];const e=this.oa;this.oa=Te(),this.aa.forEach(r=>{this.Ea(r.key)&&(this.oa=this.oa.add(r.key))});const n=[];return e.forEach(r=>{this.oa.has(r)||n.push(new s2(r))}),this.oa.forEach(r=>{e.has(r)||n.push(new i2(r))}),n}da(e){this.ia=e.ls,this.oa=Te();const n=this.ca(e.documents);return this.applyChanges(n,!0)}Aa(){return Ua.fromInitialDocuments(this.query,this.aa,this.mutatedKeys,this.sa===0,this.hasCachedResults)}}class eG{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class tG{constructor(e){this.key=e,this.Ra=!1}}class nG{constructor(e,n,r,i,s,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.Va={},this.ma=new ol(a=>Ek(a),zp),this.fa=new Map,this.ga=new Set,this.pa=new dt(re.comparator),this.ya=new Map,this.wa=new n_,this.Sa={},this.ba=new Map,this.Da=$a.Nn(),this.onlineState="Unknown",this.Ca=void 0}get isPrimaryClient(){return this.Ca===!0}}async function rG(t,e){const n=fG(t);let r,i;const s=n.ma.get(e);if(s)r=s.targetId,n.sharedClientState.addLocalQueryTarget(r),i=s.view.Aa();else{const o=await Rq(n.localStore,Qr(e)),a=n.sharedClientState.addLocalQueryTarget(o.targetId);r=o.targetId,i=await iG(n,e,r,a==="current",o.resumeToken),n.isPrimaryClient&&Gk(n.remoteStore,o)}return i}async function iG(t,e,n,r,i){t.va=(d,h,f)=>async function(y,x,w,v){let _=x.view.ca(w);_.Zi&&(_=await uS(y.localStore,x.query,!1).then(({documents:I})=>x.view.ca(I,_)));const g=v&&v.targetChanges.get(x.targetId),S=x.view.applyChanges(_,y.isPrimaryClient,g);return mS(y,x.targetId,S.Ta),S.snapshot}(t,d,h,f);const s=await uS(t.localStore,e,!0),o=new Zq(e,s.ls),a=o.ca(s.documents),l=Uc.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",i),u=o.applyChanges(a,t.isPrimaryClient,l);mS(t,n,u.Ta);const c=new eG(e,n,o);return t.ma.set(e,c),t.fa.has(n)?t.fa.get(n).push(e):t.fa.set(n,[e]),u.snapshot}async function sG(t,e){const n=pe(t),r=n.ma.get(e),i=n.fa.get(r.targetId);if(i.length>1)return n.fa.set(r.targetId,i.filter(s=>!zp(s,e))),void n.ma.delete(e);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await yv(n.localStore,r.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(r.targetId),Qk(n.remoteStore,r.targetId),vv(n,r.targetId)}).catch(Fc)):(vv(n,r.targetId),await yv(n.localStore,r.targetId,!0))}async function oG(t,e,n){const r=pG(t);try{const i=await function(o,a){const l=pe(o),u=jt.now(),c=a.reduce((f,m)=>f.add(m.key),Te());let d,h;return l.persistence.runTransaction("Locally write mutations","readwrite",f=>{let m=Ii(),y=Te();return l.ss.getEntries(f,c).next(x=>{m=x,m.forEach((w,v)=>{v.isValidDocument()||(y=y.add(w))})}).next(()=>l.localDocuments.getOverlayedDocuments(f,m)).next(x=>{d=x;const w=[];for(const v of a){const _=NK(v,d.get(v.key).overlayedDocument);_!=null&&w.push(new So(v.key,_,pk(_.value.mapValue),mi.exists(!0)))}return l.mutationQueue.addMutationBatch(f,u,w,a)}).next(x=>{h=x;const w=x.applyToLocalDocumentSet(d,y);return l.documentOverlayCache.saveOverlays(f,x.batchId,w)})}).then(()=>({batchId:h.batchId,changes:Sk(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(o,a,l){let u=o.Sa[o.currentUser.toKey()];u||(u=new dt(De)),u=u.insert(a,l),o.Sa[o.currentUser.toKey()]=u}(r,i.batchId,n),await zc(r,i.changes),await Yp(r.remoteStore)}catch(i){const s=u_(i,"Failed to persist write");n.reject(s)}}async function o2(t,e){const n=pe(t);try{const r=await Sq(n.localStore,e);e.targetChanges.forEach((i,s)=>{const o=n.ya.get(s);o&&(et(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?o.Ra=!0:i.modifiedDocuments.size>0?et(o.Ra):i.removedDocuments.size>0&&(et(o.Ra),o.Ra=!1))}),await zc(n,r,e)}catch(r){await Fc(r)}}function pS(t,e,n){const r=pe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const i=[];r.ma.forEach((s,o)=>{const a=o.view.Q_(e);a.snapshot&&i.push(a.snapshot)}),function(o,a){const l=pe(o);l.onlineState=a;let u=!1;l.queries.forEach((c,d)=>{for(const h of d.listeners)h.Q_(a)&&(u=!0)}),u&&c_(l)}(r.eventManager,e),i.length&&r.Va.a_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function aG(t,e,n){const r=pe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.ya.get(e),s=i&&i.key;if(s){let o=new dt(re.comparator);o=o.insert(s,fn.newNoDocument(s,he.min()));const a=Te().add(s),l=new qp(he.min(),new Map,new dt(De),o,a);await o2(r,l),r.pa=r.pa.remove(s),r.ya.delete(e),d_(r)}else await yv(r.localStore,e,!1).then(()=>vv(r,e,n)).catch(Fc)}async function lG(t,e){const n=pe(t),r=e.batch.batchId;try{const i=await Tq(n.localStore,e);l2(n,r,null),a2(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await zc(n,i)}catch(i){await Fc(i)}}async function uG(t,e,n){const r=pe(t);try{const i=await function(o,a){const l=pe(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",u=>{let c;return l.mutationQueue.lookupMutationBatch(u,a).next(d=>(et(d!==null),c=d.keys(),l.mutationQueue.removeMutationBatch(u,d))).next(()=>l.mutationQueue.performConsistencyCheck(u)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(u,c,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(u,c)).next(()=>l.localDocuments.getDocuments(u,c))})}(r.localStore,e);l2(r,e,n),a2(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await zc(r,i)}catch(i){await Fc(i)}}function a2(t,e){(t.ba.get(e)||[]).forEach(n=>{n.resolve()}),t.ba.delete(e)}function l2(t,e,n){const r=pe(t);let i=r.Sa[r.currentUser.toKey()];if(i){const s=i.get(e);s&&(n?s.reject(n):s.resolve(),i=i.remove(e)),r.Sa[r.currentUser.toKey()]=i}}function vv(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.fa.get(e))t.ma.delete(r),n&&t.Va.Fa(r,n);t.fa.delete(e),t.isPrimaryClient&&t.wa.Rr(e).forEach(r=>{t.wa.containsKey(r)||u2(t,r)})}function u2(t,e){t.ga.delete(e.path.canonicalString());const n=t.pa.get(e);n!==null&&(Qk(t.remoteStore,n),t.pa=t.pa.remove(e),t.ya.delete(n),d_(t))}function mS(t,e,n){for(const r of n)r instanceof i2?(t.wa.addReference(r.key,e),cG(t,r)):r instanceof s2?(Y("SyncEngine","Document no longer in limbo: "+r.key),t.wa.removeReference(r.key,e),t.wa.containsKey(r.key)||u2(t,r.key)):ce()}function cG(t,e){const n=e.key,r=n.path.canonicalString();t.pa.get(n)||t.ga.has(r)||(Y("SyncEngine","New document in limbo: "+n),t.ga.add(r),d_(t))}function d_(t){for(;t.ga.size>0&&t.pa.size{o.push(r.va(l,e,n).then(u=>{if((u||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,u!=null&&u.fromCache?"not-current":"current"),u){i.push(u);const c=i_.Qi(l.targetId,u);s.push(c)}}))}),await Promise.all(o),r.Va.a_(i),await async function(l,u){const c=pe(l);try{await c.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>F.forEach(u,h=>F.forEach(h.ki,f=>c.persistence.referenceDelegate.addReference(d,h.targetId,f)).next(()=>F.forEach(h.qi,f=>c.persistence.referenceDelegate.removeReference(d,h.targetId,f)))))}catch(d){if(!jc(d))throw d;Y("LocalStore","Failed to update sequence numbers: "+d)}for(const d of u){const h=d.targetId;if(!d.fromCache){const f=c.ts.get(h),m=f.snapshotVersion,y=f.withLastLimboFreeSnapshotVersion(m);c.ts=c.ts.insert(h,y)}}}(r.localStore,s))}async function dG(t,e){const n=pe(t);if(!n.currentUser.isEqual(e)){Y("SyncEngine","User change. New user:",e.toKey());const r=await Hk(n.localStore,e);n.currentUser=e,function(s,o){s.ba.forEach(a=>{a.forEach(l=>{l.reject(new ee(V.CANCELLED,o))})}),s.ba.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await zc(n,r._s)}}function hG(t,e){const n=pe(t),r=n.ya.get(e);if(r&&r.Ra)return Te().add(r.key);{let i=Te();const s=n.fa.get(e);if(!s)return i;for(const o of s){const a=n.ma.get(o);i=i.unionWith(a.view.ua)}return i}}function fG(t){const e=pe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=o2.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=hG.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=aG.bind(null,e),e.Va.a_=Xq.bind(null,e.eventManager),e.Va.Fa=Jq.bind(null,e.eventManager),e}function pG(t){const e=pe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=lG.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=uG.bind(null,e),e}class gS{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Gp(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return xq(this.persistence,new wq,e.initialUser,this.serializer)}createPersistence(e){return new yq(r_.jr,this.serializer)}createSharedClientState(e){return new Pq}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class mG{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>pS(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=dG.bind(null,this.syncEngine),await Gq(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new Yq}()}createDatastore(e){const n=Gp(e.databaseInfo.databaseId),r=function(s){return new Dq(s)}(e.databaseInfo);return function(s,o,a,l){return new Lq(s,o,a,l)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,i,s,o,a){return new Fq(r,i,s,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>pS(this.syncEngine,n,0),function(){return dS.D()?new dS:new Aq}())}createSyncEngine(e,n){return function(i,s,o,a,l,u,c){const d=new nG(i,s,o,a,l,u);return c&&(d.Ca=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){return async function(n){const r=pe(n);Y("RemoteStore","RemoteStore shutting down."),r.C_.add(5),await Bc(r),r.F_.shutdown(),r.M_.set("Unknown")}(this.remoteStore)}}/** * @license * Copyright 2020 Google LLC * @@ -3140,7 +3140,7 @@ This typically indicates that your device does not have a healthy Internet conne * 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 Jp{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Jp(this.firestore,e,this._query)}}class dr{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new as(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new dr(this.firestore,e,this._key)}}class as extends Jp{constructor(e,n,r){super(e,n,J1(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new dr(this.firestore,null,new re(e))}withConverter(e){return new as(this.firestore,e,this._path)}}function f_(t,e,...n){if(t=Qn(t),p2("collection","path",e),t instanceof Xp){const r=it.fromString(e,...n);return wS(r),new as(t,null,r)}{if(!(t instanceof dr||t instanceof as))throw new ee(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(it.fromString(e,...n));return wS(r),new as(t.firestore,null,r)}}function m2(t,e,...n){if(t=Qn(t),arguments.length===1&&(e=dk.newId()),p2("doc","path",e),t instanceof Xp){const r=it.fromString(e,...n);return _S(r),new dr(t,null,new re(r))}{if(!(t instanceof dr||t instanceof as))throw new ee(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(it.fromString(e,...n));return _S(r),new dr(t.firestore,t instanceof as?t.converter:null,new re(r))}}/** + */class Jp{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Jp(this.firestore,e,this._query)}}class dr{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new ls(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new dr(this.firestore,e,this._key)}}class ls extends Jp{constructor(e,n,r){super(e,n,J1(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new dr(this.firestore,null,new re(e))}withConverter(e){return new ls(this.firestore,e,this._path)}}function f_(t,e,...n){if(t=Qn(t),p2("collection","path",e),t instanceof Xp){const r=it.fromString(e,...n);return wS(r),new ls(t,null,r)}{if(!(t instanceof dr||t instanceof ls))throw new ee(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(it.fromString(e,...n));return wS(r),new ls(t.firestore,null,r)}}function m2(t,e,...n){if(t=Qn(t),arguments.length===1&&(e=dk.newId()),p2("doc","path",e),t instanceof Xp){const r=it.fromString(e,...n);return _S(r),new dr(t,null,new re(r))}{if(!(t instanceof dr||t instanceof ls))throw new ee(V.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(it.fromString(e,...n));return _S(r),new dr(t.firestore,t instanceof ls?t.converter:null,new re(r))}}/** * @license * Copyright 2020 Google LLC * @@ -3261,7 +3261,7 @@ This typically indicates that your device does not have a healthy Internet conne * 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 OG(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new ee(V.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class LG{convertValue(e,n="none"){switch(mo(e)){case 0:return null;case 1:return e.booleanValue;case 2:return bt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(po(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw ce()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return sl(e,(i,s)=>{r[i]=this.convertValue(s,n)}),r}convertGeoPoint(e){return new g_(bt(e.latitude),bt(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=G1(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(sc(e));default:return null}}convertTimestamp(e){const n=ys(e);return new jt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=it.fromString(e);et(zk(r));const i=new oc(r.get(1),r.get(3)),s=new re(r.popFirst(5));return i.isEqual(n)||Si(`Document ${s} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),s}}/** + */function OG(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new ee(V.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class LG{convertValue(e,n="none"){switch(mo(e)){case 0:return null;case 1:return e.booleanValue;case 2:return bt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(po(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw ce()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return sl(e,(i,s)=>{r[i]=this.convertValue(s,n)}),r}convertGeoPoint(e){return new g_(bt(e.latitude),bt(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=G1(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(sc(e));default:return null}}convertTimestamp(e){const n=vs(e);return new jt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=it.fromString(e);et(zk(r));const i=new oc(r.get(1),r.get(3)),s=new re(r.popFirst(5));return i.isEqual(n)||Si(`Document ${s} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),s}}/** * @license * Copyright 2020 Google LLC * @@ -3306,18 +3306,18 @@ This typically indicates that your device does not have a healthy Internet conne * 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 $G(t){t=Ba(t,dr);const e=Ba(t.firestore,Zp);return wG(p_(e),t._key).then(n=>zG(e,t,n))}class R2 extends LG{constructor(e){super(),this.firestore=e}convertBytes(e){return new za(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new dr(this.firestore,null,n)}}function b2(t){t=Ba(t,Jp);const e=Ba(t.firestore,Zp),n=p_(e),r=new R2(e);return OG(t._query),EG(n,t._query).then(i=>new FG(e,r,t,i))}function UG(t,e){const n=Ba(t.firestore,Zp),r=m2(t),i=VG(t.converter,e);return BG(n,[AG(PG(t.firestore),"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,mi.exists(!1))]).then(()=>r)}function BG(t,e){return function(r,i){const s=new pi;return r.asyncQueue.enqueueAndForget(async()=>oG(await _G(r),i,s)),s.promise}(p_(t),e)}function zG(t,e,n){const r=n.docs.get(e._key),i=new R2(t);return new C2(t,i,e._key,r,new ql(n.hasPendingWrites,n.fromCache),e.converter)}(function(e,n=!0){(function(i){il=i})(Eo),co(new ms("firestore",(r,{instanceIdentifier:i,options:s})=>{const o=r.getProvider("app").getImmediate(),a=new Zp(new HW(r.getProvider("auth-internal")),new GW(r.getProvider("app-check-internal")),function(u,c){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new ee(V.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new oc(u.options.projectId,c)}(o,i),o);return s=Object.assign({useFetchStreams:n},s),a._setSettings(s),a},"PUBLIC").setMultipleInstances(!0)),Kr(zT,"4.3.2",e),Kr(zT,"4.3.2","esm2017")})();const HG={apiKey:"AIzaSyB2g1cAZ-vQDM-a7s6n2_3LLJr_hG4hf0A",authDomain:"coffee-thoughts.firebaseapp.com",projectId:"coffee-thoughts",storageBucket:"coffee-thoughts.appspot.com",messagingSenderId:"380109263853",appId:"1:380109263853:web:8914ef85e83508c44e0de4",measurementId:"G-N0X51C5696"},WG=CP(HG);kH(WG);const KG=rH(),em=IG(),xS={hidden:{opacity:0},show:{opacity:1}},qG=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(!1),l=Ts(),u=h=>{h.key=="Enter"&&t&&c()};E.useEffect(()=>(localStorage.getItem("uid")!=null&&l("dashboard"),window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)),[]);const c=async()=>{n==""||i==""||z7(KG,n,i).then(h=>{const f=h.user;localStorage.setItem("uid",f.uid),l("dashboard"),console.log(f)}).catch(h=>{console.log(h),a(!0)})},d=async()=>{e(!0)};return p.jsxs("div",{className:"w-screen h-screen flex flex-col justify-center items-center gap-5",children:[p.jsxs(Un.div,{className:"",variants:xS,initial:"show",animate:t?{y:-110-(o?30:0)}:"show",transition:{duration:o?0:1},children:[p.jsx("img",{src:"/Coffee-Thoughts/admin/login/cloud.png",alt:"clouds"}),p.jsx("div",{className:"flex justify-center items-center text-center",children:p.jsx("p",{className:"text-white text-[40px] tracking-[30px]",children:"COFFEE THOUGHTS"})})]}),p.jsxs(Un.div,{className:"flex-col flex gap-5 w-[300px] h-[254px] justify-end items-center absolute",variants:xS,initial:"hidden",animate:t?"show":"hidden",transition:{duration:1,delay:.85},children:[p.jsx(Qx,{fullWidth:!0,label:"email",id:"fullWidth",onChange:h=>{r(h.target.value)},error:o}),p.jsx(Qx,{fullWidth:!0,label:"password",id:"fullWidth",type:"password",onChange:h=>{s(h.target.value)},error:o,helperText:o?"Incorrect email or password":""})]}),p.jsx(Un.div,{className:`w-[211px] h-[67px] text-center flex justify-center items-center border-2 bg-[#9B8F84] + */function $G(t){t=Ba(t,dr);const e=Ba(t.firestore,Zp);return wG(p_(e),t._key).then(n=>zG(e,t,n))}class R2 extends LG{constructor(e){super(),this.firestore=e}convertBytes(e){return new za(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new dr(this.firestore,null,n)}}function b2(t){t=Ba(t,Jp);const e=Ba(t.firestore,Zp),n=p_(e),r=new R2(e);return OG(t._query),EG(n,t._query).then(i=>new FG(e,r,t,i))}function UG(t,e){const n=Ba(t.firestore,Zp),r=m2(t),i=VG(t.converter,e);return BG(n,[AG(PG(t.firestore),"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,mi.exists(!1))]).then(()=>r)}function BG(t,e){return function(r,i){const s=new pi;return r.asyncQueue.enqueueAndForget(async()=>oG(await _G(r),i,s)),s.promise}(p_(t),e)}function zG(t,e,n){const r=n.docs.get(e._key),i=new R2(t);return new C2(t,i,e._key,r,new ql(n.hasPendingWrites,n.fromCache),e.converter)}(function(e,n=!0){(function(i){il=i})(Eo),co(new gs("firestore",(r,{instanceIdentifier:i,options:s})=>{const o=r.getProvider("app").getImmediate(),a=new Zp(new HW(r.getProvider("auth-internal")),new GW(r.getProvider("app-check-internal")),function(u,c){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new ee(V.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new oc(u.options.projectId,c)}(o,i),o);return s=Object.assign({useFetchStreams:n},s),a._setSettings(s),a},"PUBLIC").setMultipleInstances(!0)),Kr(zT,"4.3.2",e),Kr(zT,"4.3.2","esm2017")})();const HG={apiKey:"AIzaSyB2g1cAZ-vQDM-a7s6n2_3LLJr_hG4hf0A",authDomain:"coffee-thoughts.firebaseapp.com",projectId:"coffee-thoughts",storageBucket:"coffee-thoughts.appspot.com",messagingSenderId:"380109263853",appId:"1:380109263853:web:8914ef85e83508c44e0de4",measurementId:"G-N0X51C5696"},WG=CP(HG);kH(WG);const KG=rH(),em=IG(),xS={hidden:{opacity:0},show:{opacity:1}},qG=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(!1),l=bi(),u=h=>{h.key=="Enter"&&t&&c()};E.useEffect(()=>(localStorage.getItem("uid")!=null&&l("dashboard"),window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)),[]);const c=async()=>{n==""||i==""||z7(KG,n,i).then(h=>{const f=h.user;localStorage.setItem("uid",f.uid),l("dashboard"),console.log(f)}).catch(h=>{console.log(h),a(!0)})},d=async()=>{e(!0)};return p.jsxs("div",{className:"w-screen h-screen flex flex-col justify-center items-center gap-5",children:[p.jsxs(Un.div,{className:"",variants:xS,initial:"show",animate:t?{y:-110-(o?30:0)}:"show",transition:{duration:o?0:1},children:[p.jsx("img",{src:"/Coffee-Thoughts/admin/login/cloud.png",alt:"clouds"}),p.jsx("div",{className:"flex justify-center items-center text-center",children:p.jsx("p",{className:"text-white text-[40px] tracking-[30px]",children:"COFFEE THOUGHTS"})})]}),p.jsxs(Un.div,{className:"flex-col flex gap-5 w-[300px] h-[254px] justify-end items-center absolute",variants:xS,initial:"hidden",animate:t?"show":"hidden",transition:{duration:1,delay:.85},children:[p.jsx(Qx,{fullWidth:!0,label:"email",id:"fullWidth",onChange:h=>{r(h.target.value)},error:o}),p.jsx(Qx,{fullWidth:!0,label:"password",id:"fullWidth",type:"password",onChange:h=>{s(h.target.value)},error:o,helperText:o?"Incorrect email or password":""})]}),p.jsx(Un.div,{className:`w-[211px] h-[67px] text-center flex justify-center items-center border-2 bg-[#9B8F84] border-[#9B8F84] rounded-[51px] text-white hover:text-[#7B695A] hover:cursor-pointer`,onClick:()=>{t?c():d()},animate:t?{y:40}:"show",transition:{duration:1},children:p.jsx("p",{className:"text-[20px]",children:"LOGIN"})})]})},v_=()=>p.jsxs("div",{className:"flex flex-col justify-center items-center text-[white]",children:[p.jsxs("div",{className:"min-w-[80vw] flex flex-row justify-evenly items-center h-[10vh]",children:[p.jsxs("div",{className:"flex justify-evenly w-[20vw]",children:[p.jsx(Pt,{to:"/",className:"hover:text-[#7B695A]",children:"home"}),p.jsx(Pt,{to:"/blogs",className:"hover:text-[#7B695A]",children:"blogs"})]}),p.jsx("div",{className:"flex justify-evenly font-bold text-[40px]",children:p.jsxs(Pt,{to:"/",className:"flex gap-5 hover:text-[#7B695A]",children:[p.jsx("p",{children:"COFFEE "})," ",p.jsx("p",{children:"THOUGHTS"})]})}),p.jsxs("div",{className:"flex justify-evenly w-[20vw]",children:[p.jsx(Pt,{to:"/about",className:"hover:text-[#7B695A]",children:"about"}),p.jsx(Pt,{to:"/contact",className:"hover:text-[#7B695A]",children:"logout"})]})]}),p.jsx("div",{className:"w-[80vw] border-[white] border-[1px]"})]}),P2=({stateFunction:t,value:e})=>p.jsxs("div",{className:"text-blac w-[24.5vw]",children:[p.jsx("p",{className:"hover:cursor-default text-[20px]",children:"TITLE"}),p.jsx(Za,{disableUnderline:!0,sx:{border:"white",background:"white",paddingLeft:"5px",fontFamily:"Red Hat Mono",width:"100%"},value:e,margin:"dense",onChange:n=>t(n.target.value)})]}),A2=({stateFunction:t,value:e})=>p.jsxs("div",{className:"w-[100%]",children:[p.jsxs("p",{className:"hover:cursor-default whitespace-pre text-[20px]",children:["DESCRIPTION",p.jsxs("span",{className:"text-[#9B8F84] text-[16px]",children:[" ","(2-3 sentences)"]})]}),p.jsx(Za,{disableUnderline:!0,sx:{border:"white",background:"white",paddingLeft:"5px",fontFamily:"Red Hat Mono",width:"100%",fontSize:"16px"},margin:"dense",value:e,onChange:n=>t(n.target.value),multiline:!0})]}),k2=({stateFunction:t,value:e})=>p.jsxs("div",{className:"w-[100%] flex flex-col text-[20px] items-end",children:[p.jsx("p",{className:"w-[80%] text-left",children:"Category"}),p.jsxs(mP,{labelId:"demo-simple-select-standard-label",id:"demo-simple-select-standard",value:e,onChange:n=>t(n.target.value),sx:{width:"80%",height:"32px",fontSize:"16px",fontFamily:"Red Hat Mono",background:"white"},children:[p.jsx(eg,{value:"Coffee Shops",sx:{fontFamily:"Red Hat Mono"},children:"Coffee Shops"}),p.jsx(eg,{value:"Deez",sx:{fontFamily:"Red Hat Mono"},children:"Deez"}),p.jsx(eg,{value:"CS",sx:{fontFamily:"Red Hat Mono"},children:"CS"})]})]}),N2=({stateFunction:t,value:e})=>p.jsxs("div",{className:"w-[100%]",children:[p.jsx("p",{className:"hover:cursor-default whitespace-pre text-[20px]",children:"MAIN BODY TEXT"}),p.jsx(Za,{disableUnderline:!0,sx:{border:"white",background:"white",paddingLeft:"5px",fontFamily:"Red Hat Mono",width:"100%",fontSize:"16px"},margin:"dense",value:e,onChange:n=>t(n.target.value),multiline:!0,rows:15})]}),_u=({title:t})=>p.jsx("div",{className:"flex flex-col justify-end h-[62px]",children:p.jsx("div",{className:`w-[11vw] bg-[#547E88] text-[16px] text-center pt-2 pb-2 rounded-[27.5px] - text-white flex flex-row justify-center items-center hover:cursor-pointer hover:text-black`,children:p.jsx("p",{children:t})})}),D2=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[l,u]=E.useState(!1),[c,d]=E.useState(!1),[h,f]=E.useState(Array),m=Ts(),y=vo();return console.log(h,d),E.useEffect(()=>{if(y.state)e(y.state.title),s(y.state.body),r(y.state.description),y.state.category=="coffee-shops"&&a("Coffee Shops"),y.state.category=="deez"&&a("Deez"),y.state.category=="cs"&&a("CS"),f(y.state.images);else throw new Error("Invalid Routing")},[]),p.jsxs("div",{className:"flex flex-col items-center gap-10 pb-10",children:[p.jsx("div",{className:`w-full h-full bg-[#D9D9D9]/40 fixed flex-row justify-center items-center ${c?"flex":"hidden"} z-[1]`}),p.jsx(v_,{}),p.jsxs("div",{className:"w-[70vw] flex-col flex gap-5",children:[p.jsxs("div",{className:"flex flex-row gap-5 items-end justify-between",children:[p.jsxs("div",{className:"flex flex-row gap-5 text-[36px] items-center text-white cursor-default pt-2",children:[p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[p.jsx("circle",{cx:"13",cy:"13",r:"13",fill:"#547E88"}),p.jsx("line",{x1:"13",y1:"6",x2:"13",y2:"20",stroke:"white",strokeWidth:"2"}),p.jsx("line",{x1:"20",y1:"13",x2:"6",y2:"13",stroke:"white",strokeWidth:"2"})]}),p.jsx("p",{children:"EDIT POST"})]}),p.jsxs("div",{className:`flex flex-row items-center gap-1 hover:text-[#547E88] underline hover:underline-[#547E88] - cursor-pointer`,onClick:()=>m("/admin/dashboard"),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:p.jsx("path",{d:"M11 7L0.5 0.937822V13.0622L11 7Z",fill:l?"#547E88":"#404040"})}),p.jsx("p",{className:"font-RedHat text-[14px]",children:"Return to Dashboard"})]})]}),p.jsxs("div",{className:"text-black flex-row flex justify-between items-center",children:[p.jsx(P2,{stateFunction:e,value:t}),p.jsx(_u,{title:"IMAGE UPLOAD"}),p.jsx(_u,{title:"SAVE DRAFT"}),p.jsx(_u,{title:"PUBLISH"})]}),p.jsxs("div",{className:"flex flex-row justify-between w-[100%]",children:[p.jsx("div",{className:"w-[70%]",children:p.jsx(A2,{stateFunction:r,value:n})}),p.jsx("div",{className:"w-[25%] flex flex-col text-[20px] items-end",children:p.jsx(k2,{stateFunction:a,value:o})})]}),p.jsx("div",{className:"w-[100%]",children:p.jsx(N2,{stateFunction:s,value:i})})]})]})};var M2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},TS=Nt.createContext&&Nt.createContext(M2),ls=function(){return ls=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{n(`/admin/editor/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,description:t.blog.description,images:t.blog.images,category:t.blog.category,body:t.blog.bodyText}})};return p.jsxs("div",{className:"w-[80%] flex gap-5 h-[75px] items-center bg-white border-black border-2 font-RedHat text-[20px]",children:[p.jsx("div",{className:"w-[15%] bg-[#D9D9D9] h-full flex justify-center items-center",children:p.jsx("img",{src:t.blog.images[0],alt:"Photo"})}),p.jsxs("div",{className:"flex items-center justify-evenly w-[85%]",children:[p.jsx("p",{className:"w-[55%] text-ellipsis overflow-hidden whitespace-nowrap",children:t.blog.title}),p.jsxs("p",{className:"w-[35%]",children:[e.getMonth()+1,".",e.getDate(),".",e.getFullYear()]}),p.jsxs("div",{className:"flex justify-evenly items-center w-[10%]",children:[p.jsx("div",{children:p.jsx(JG,{className:"button"})}),p.jsx("div",{onClick:()=>{r()},children:p.jsx(ZG,{className:"button"})}),p.jsx("div",{children:p.jsx(eQ,{className:"button"})})]})]})]})}const nQ=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(!1),i=Ts();return p.jsxs("div",{className:"w-[80%] h-[60px] rounded-[34.5px] flex items-center justify-evenly flex-row",children:[p.jsxs("div",{className:`w-[70%] border-2 border-black h-[60px] rounded-[34.5px] bg-white + text-white flex flex-row justify-center items-center hover:cursor-pointer hover:text-black`,children:p.jsx("p",{children:t})})}),D2=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[l,u]=E.useState(!1),[c,d]=E.useState(!1),[h,f]=E.useState(Array),m=bi(),y=vo();return console.log(h,d),E.useEffect(()=>{if(y.state)e(y.state.title),s(y.state.body),r(y.state.description),y.state.category=="coffee-shops"&&a("Coffee Shops"),y.state.category=="deez"&&a("Deez"),y.state.category=="cs"&&a("CS"),f(y.state.images);else throw new Error("Invalid Routing")},[]),p.jsxs("div",{className:"flex flex-col items-center gap-10 pb-10",children:[p.jsx("div",{className:`w-full h-full bg-[#D9D9D9]/40 fixed flex-row justify-center items-center ${c?"flex":"hidden"} z-[1]`}),p.jsx(v_,{}),p.jsxs("div",{className:"w-[70vw] flex-col flex gap-5",children:[p.jsxs("div",{className:"flex flex-row gap-5 items-end justify-between",children:[p.jsxs("div",{className:"flex flex-row gap-5 text-[36px] items-center text-white cursor-default pt-2",children:[p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[p.jsx("circle",{cx:"13",cy:"13",r:"13",fill:"#547E88"}),p.jsx("line",{x1:"13",y1:"6",x2:"13",y2:"20",stroke:"white",strokeWidth:"2"}),p.jsx("line",{x1:"20",y1:"13",x2:"6",y2:"13",stroke:"white",strokeWidth:"2"})]}),p.jsx("p",{children:"EDIT POST"})]}),p.jsxs("div",{className:`flex flex-row items-center gap-1 hover:text-[#547E88] underline hover:underline-[#547E88] + cursor-pointer`,onClick:()=>m("/admin/dashboard"),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:p.jsx("path",{d:"M11 7L0.5 0.937822V13.0622L11 7Z",fill:l?"#547E88":"#404040"})}),p.jsx("p",{className:"font-RedHat text-[14px]",children:"Return to Dashboard"})]})]}),p.jsxs("div",{className:"text-black flex-row flex justify-between items-center",children:[p.jsx(P2,{stateFunction:e,value:t}),p.jsx(_u,{title:"IMAGE UPLOAD"}),p.jsx(_u,{title:"SAVE DRAFT"}),p.jsx(_u,{title:"PUBLISH"})]}),p.jsxs("div",{className:"flex flex-row justify-between w-[100%]",children:[p.jsx("div",{className:"w-[70%]",children:p.jsx(A2,{stateFunction:r,value:n})}),p.jsx("div",{className:"w-[25%] flex flex-col text-[20px] items-end",children:p.jsx(k2,{stateFunction:a,value:o})})]}),p.jsx("div",{className:"w-[100%]",children:p.jsx(N2,{stateFunction:s,value:i})})]})]})};var M2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},TS=Nt.createContext&&Nt.createContext(M2),us=function(){return us=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{n(`/admin/editor/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,description:t.blog.description,images:t.blog.images,category:t.blog.category,body:t.blog.bodyText}})};return p.jsxs("div",{className:"w-[80%] flex gap-5 h-[75px] items-center bg-white border-black border-2 font-RedHat text-[20px]",children:[p.jsx("div",{className:"w-[15%] bg-[#D9D9D9] h-full flex justify-center items-center",children:p.jsx("img",{src:t.blog.images[0],alt:"Photo"})}),p.jsxs("div",{className:"flex items-center justify-evenly w-[85%]",children:[p.jsx("p",{className:"w-[55%] text-ellipsis overflow-hidden whitespace-nowrap",children:t.blog.title}),p.jsxs("p",{className:"w-[35%]",children:[e.getMonth()+1,".",e.getDate(),".",e.getFullYear()]}),p.jsxs("div",{className:"flex justify-evenly items-center w-[10%]",children:[p.jsx("div",{children:p.jsx(JG,{className:"button"})}),p.jsx("div",{onClick:()=>{r()},children:p.jsx(ZG,{className:"button"})}),p.jsx("div",{children:p.jsx(eQ,{className:"button"})})]})]})]})}const nQ=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(!1),i=bi();return p.jsxs("div",{className:"w-[80%] h-[60px] rounded-[34.5px] flex items-center justify-evenly flex-row",children:[p.jsxs("div",{className:`w-[70%] border-2 border-black h-[60px] rounded-[34.5px] bg-white flex flex-row justify-between items-center `,children:[p.jsx("div",{className:"pl-5 w-[90%]",children:p.jsx(Za,{disableUnderline:!0,placeholder:"Search...",onChange:s=>{e(s.target.value),r(!0)},sx:{fontFamily:"Red Hat Mono",width:"100%"},value:t})}),p.jsx("div",{className:`pr-5 ${n?"block":"hidden"}`,children:p.jsx("img",{src:"/Coffee-Thoughts/admin/search.png",alt:"search button"})})]}),p.jsx("div",{className:"cursor-pointer",onClick:()=>i("../addblog"),children:"Add Blog"})]})};function L2(t,e){let n=e?1:-1;return t.sort((r,i)=>{const s=new Date(r.date.seconds*1e3+r.date.nanoseconds/1e6),o=new Date(i.date.seconds*1e3+i.date.nanoseconds/1e6);return n*(s.valueOf()-o.valueOf())}),t}const __=async t=>{const e=["coffee-shops","deez","cs"];let n=[];return await Promise.all(e.map(async r=>{(await b2(f_(em,r))).forEach(async s=>{const o=s.data(),a={title:o.title,date:o.date,images:o.images,id:s.id,category:r,description:o.description,bodyText:o.bodyText};n.push(a)})})).then(()=>{n=L2(n,t)}),n},w_=async(t,e)=>{let n=[];return(await b2(f_(em,t))).forEach(async i=>{const s=i.data(),o={title:s.title,date:s.date,images:s.images,id:i.id,category:t,description:s.description,bodyText:s.bodyText};n.push(o)}),n=L2(n,e),n},rQ=async t=>{const e=new Date,n={bodyText:t.bodyText,title:t.title,description:t.description,images:t.images,date:e},r=await UG(f_(em,t.category.replace(/\s+/g,"-").toLowerCase()),n).catch(i=>(console.log(i),{status:200,message:i}));return console.log(r),{status:1,message:"Uploaded Document!"}},iQ=async(t,e)=>{const n=m2(em,t,e),r=await $G(n);if(r.exists())return r.data();throw new Error("Blog Doesn't Exist")},V2=()=>{const[t,e]=E.useState([]),[n,r]=E.useState(!1),i=async()=>{const s=await __(!1);e(s)};return E.useEffect(()=>{n||(i(),r(!0))},[n]),p.jsxs("div",{className:"flex-col justify-center w-screen items-center flex gap-10",children:[p.jsx(v_,{}),p.jsx(nQ,{}),t.map((s,o)=>p.jsx(tQ,{blog:s},o))]})},sQ=t=>{const[e,n]=E.useState(),r=E.useRef(null),i=o=>{const{files:a}=o.target;a&&a.length&&(console.log(e),n(a[0]),console.log(t))},s=()=>{};return p.jsxs("div",{className:"flex flex-col justify-end h-[62px]",children:[p.jsx("input",{style:{display:"none"},accept:".jpg,.jpeg,.heic,.png",ref:r,onChange:i,type:"file"}),p.jsx("div",{className:`w-[11vw] bg-[#547E88] text-[16px] text-center pt-2 pb-2 rounded-[27.5px] - text-white flex flex-row justify-center items-center hover:cursor-pointer hover:text-black`,onClick:s,children:p.jsx("p",{children:"UPLOAD IMAGE"})})]})},F2=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[l,u]=E.useState(!1),[c,d]=E.useState(!1),[h,f]=E.useState([]),m=Ts(),y=async()=>{d(!0);const w=await rQ({bodyText:i,title:t,description:n,images:h,category:o});console.log(w),d(!1)};return E.useEffect(()=>{console.log(h)},[h]),p.jsxs("div",{className:"flex flex-col items-center gap-10 pb-10",children:[p.jsx("div",{className:`w-full h-full bg-[#D9D9D9]/40 fixed flex-row justify-center items-center ${c?"flex":"hidden"} z-[1]`}),p.jsx(v_,{}),p.jsxs("div",{className:"w-[70vw] flex-col flex gap-5",children:[p.jsxs("div",{className:"flex flex-row gap-5 items-end justify-between",children:[p.jsxs("div",{className:"flex flex-row gap-5 text-[36px] items-center text-white cursor-default pt-2",children:[p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[p.jsx("circle",{cx:"13",cy:"13",r:"13",fill:"#547E88"}),p.jsx("line",{x1:"13",y1:"6",x2:"13",y2:"20",stroke:"white",strokeWidth:"2"}),p.jsx("line",{x1:"20",y1:"13",x2:"6",y2:"13",stroke:"white",strokeWidth:"2"})]}),p.jsx("p",{children:"ADD POST"})]}),p.jsxs("div",{className:`flex flex-row items-center gap-1 hover:text-[#547E88] underline hover:underline-[#547E88] - cursor-pointer`,onClick:()=>m("/admin/dashboard"),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:p.jsx("path",{d:"M11 7L0.5 0.937822V13.0622L11 7Z",fill:l?"#547E88":"#404040"})}),p.jsx("p",{className:"font-RedHat text-[14px]",children:"Return to Dashboard"})]})]}),p.jsxs("div",{className:"text-black flex-row flex justify-between items-center",children:[p.jsx(P2,{stateFunction:e,value:t}),p.jsx(sQ,{images:h,setImage:f}),p.jsx("div",{onClick:()=>console.log("here"),children:p.jsx(_u,{title:"SAVE DRAFT"})}),p.jsx("div",{onClick:()=>{y()},children:p.jsx(_u,{title:"PUBLISH"})})]}),p.jsxs("div",{className:"flex flex-row justify-between w-[100%]",children:[p.jsx("div",{className:"w-[70%]",children:p.jsx(A2,{stateFunction:r,value:n})}),p.jsx("div",{className:"w-[25%] flex flex-col text-[20px] items-end",children:p.jsx(k2,{stateFunction:a,value:o})})]}),p.jsx("div",{className:"w-[100%]",children:p.jsx(N2,{stateFunction:s,value:i})})]})]})},oQ=()=>{const[t,e]=E.useState(!1);return E.useEffect(()=>{localStorage.getItem("uid")!=null&&e(!0)}),p.jsxs(iR,{children:[p.jsx(kn,{path:"/",element:p.jsx(qG,{})}),p.jsx(kn,{path:"/dashboard",element:t?p.jsx(V2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/editor/:topic/:id?",element:t?p.jsx(D2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/addblog",element:t?p.jsx(F2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/*",element:p.jsx(ra,{})})]})},bs=()=>{const[t,e]=E.useState(!1),n=Ts();return p.jsxs("div",{className:"flex flex-col justify-center items-center text-[#9B8F84] z-[1]",children:[p.jsxs("div",{className:"min-w-[80vw] flex flex-row md:justify-evenly items-center h-[10vh] justify-between",children:[p.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[p.jsx("p",{onClick:()=>n("/",{state:{land:!0}}),className:"hover:text-[#7B695A] hover:cursor-pointer",children:"home"}),p.jsx(Pt,{to:"/blogs",className:"hover:text-[#7B695A]",children:"blogs"})]}),p.jsxs("div",{onClick:()=>n("/",{state:{land:!0}}),className:"flex justify-evenly font-bold md:text-[40px] sm:text-[36px] text-[24px] cursor-default gap-5",children:[p.jsx("p",{children:"COFFEE "})," ",p.jsx("p",{children:"THOUGHTS"})]}),p.jsxs("div",{className:"sm:hidden",children:[p.jsx("img",{src:t?"./close.svg":"./menu.svg",alt:"Menu",onClick:()=>e(!t)}),p.jsx("div",{className:`${t?"flex":"hidden"} p-6 - absolute right-0 mx-4 my-2 min-w[140px] z-10 rounded-xl bg-white`,children:p.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-4",children:[p.jsx("li",{children:p.jsx(Pt,{to:"/",children:"HOME"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/blogs",children:"BLOGS"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/about",children:"ABOUT"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/contact",children:"CONTACT"})})]})})]}),p.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[p.jsx(Pt,{to:"/about",className:"hover:text-[#7B695A]",children:"about"}),p.jsx(Pt,{to:"/contact",className:"hover:text-[#7B695A]",children:"contact"})]})]}),p.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"})]})},aQ={show:{y:-40,opacity:1},hidden:{opacity:0}},SS={show:{opacity:1},move:{opacity:0,x:-500}},IS={show:{opacity:1},move:{x:500,opacity:0}},lQ=({setStatus:t})=>{const[e,n]=E.useState(!1),[r,i]=E.useState(!1),[s,o]=E.useState(!1),a=async()=>{i(!0),await new Promise(()=>{setTimeout(()=>{o(!0),t(!0)},1e3)})};return p.jsxs("div",{className:"overflow-hidden h-fit",children:[p.jsxs(Un.div,{className:"flex-col flex items-center justify-center min-h-[100vh] h-fit",initial:"show",animate:r?"hidden":"show",variants:aQ,transition:{duration:1},children:[p.jsx("img",{src:"landing/CoffeeText.png",alt:"Coffee Thoughts"}),p.jsxs(Un.div,{className:"flex justify-center items-center hover:cursor-pointer",onClick:()=>a(),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),initial:{y:-10},children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"154",height:"64",viewBox:"0 0 154 64",fill:"none",children:p.jsx("path",{d:"M106.899 58.8924L107.728 58.7318C126.313 55.1307 148.166 59.126 153.09 43.2882C156.559 32.1295 149.545 24.7297 141.625 15.4039C120.551 -9.41057 84.6754 1.18342 50.4025 9.827C28.8283 15.268 -1.47572 14.5479 0.0558387 33.8504C1.33429 49.9629 21.0342 52.6928 38.4389 58.7318C63.2715 67.348 80.9551 63.9207 106.899 58.8924Z",fill:e?"#547E88":"white"})}),p.jsx("p",{className:`absolute ${e?"text-white":"text-[#547E88]"} hover:cursor-pointer`,children:"enter site"})]}),p.jsx(Un.img,{src:"landing/MitskiThots.png",alt:"Mitski in Coffee",initial:{x:30}})]}),p.jsx(Un.div,{className:`hidden xl:left-20 top-[200px] lg:block absolute left-2 ${s?"hidden":"block"}`,variants:SS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:p.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),p.jsx(Un.div,{className:"hidden lg:block absolute xl:right-20 top-[400px] right-10",variants:IS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:p.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),p.jsxs("div",{className:"overflow-hidden",children:[p.jsx(Un.div,{className:`absolute bottom-0 right-0 ${s?"hidden":"block"}`,variants:IS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("img",{src:"landing/Cloud2.png",alt:"Clouds"})}),p.jsx(Un.div,{className:"absolute bottom-0 left-0",variants:SS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("img",{src:"landing/Cloud1.png",alt:"Clouds"})})]})]})};function Ha(t){const[e,n]=E.useState(0),r=new Date(t.blog.date.seconds*1e3+t.blog.date.nanoseconds/1e6),i=Ts(),s=()=>{i(`/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,images:t.blog.images,body:t.blog.bodyText,date:t.blog.date}})};return E.useEffect(()=>{t.index&&n(t.index)}),p.jsxs("div",{className:`flex w-[75vw] ${e%2==0?"flex-row":"flex-row-reverse"} flex-wrap justify-between z-[1] gap-2`,children:[p.jsx("div",{className:"md:w-[45%] bg-[#D9D9D9] md:h-[301px] h-[20vh] w-full flex justify-center items-center hover:cursor-pointer",children:p.jsx("img",{src:t.blog.images[0],alt:"Photo",className:"contain"})}),p.jsxs("div",{className:"md:w-[45%] h-full flex flex-col gap-5 text-left text-teal",children:[p.jsxs("p",{className:"font-NovoMono text-[16px]",children:[r.getMonth()+1,".",r.getDate(),".",r.getFullYear()]}),p.jsx("p",{className:"font-semibold text-[32px]",children:t.blog.title}),p.jsx("p",{className:"font-RedHat text-[20px]",children:t.blog.description}),p.jsx("div",{className:"w-fit border-b-[2px] border-teal hover:border-coffee hover:text-coffee cursor-pointer",onClick:()=>s(),children:p.jsx("p",{className:"font-RedHat text-[20px]",children:"Read More"})})]})]})}function Eg(t){return p.jsx(Pt,{to:`${t.link}`,className:`text-center text-[#547E88] bg-[#F6DEC9] + text-white flex flex-row justify-center items-center hover:cursor-pointer hover:text-black`,onClick:s,children:p.jsx("p",{children:"UPLOAD IMAGE"})})]})},F2=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[l,u]=E.useState(!1),[c,d]=E.useState(!1),[h,f]=E.useState([]),m=bi(),y=async()=>{d(!0);const w=await rQ({bodyText:i,title:t,description:n,images:h,category:o});console.log(w),d(!1)};return E.useEffect(()=>{console.log(h)},[h]),p.jsxs("div",{className:"flex flex-col items-center gap-10 pb-10",children:[p.jsx("div",{className:`w-full h-full bg-[#D9D9D9]/40 fixed flex-row justify-center items-center ${c?"flex":"hidden"} z-[1]`}),p.jsx(v_,{}),p.jsxs("div",{className:"w-[70vw] flex-col flex gap-5",children:[p.jsxs("div",{className:"flex flex-row gap-5 items-end justify-between",children:[p.jsxs("div",{className:"flex flex-row gap-5 text-[36px] items-center text-white cursor-default pt-2",children:[p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[p.jsx("circle",{cx:"13",cy:"13",r:"13",fill:"#547E88"}),p.jsx("line",{x1:"13",y1:"6",x2:"13",y2:"20",stroke:"white",strokeWidth:"2"}),p.jsx("line",{x1:"20",y1:"13",x2:"6",y2:"13",stroke:"white",strokeWidth:"2"})]}),p.jsx("p",{children:"ADD POST"})]}),p.jsxs("div",{className:`flex flex-row items-center gap-1 hover:text-[#547E88] underline hover:underline-[#547E88] + cursor-pointer`,onClick:()=>m("/admin/dashboard"),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:p.jsx("path",{d:"M11 7L0.5 0.937822V13.0622L11 7Z",fill:l?"#547E88":"#404040"})}),p.jsx("p",{className:"font-RedHat text-[14px]",children:"Return to Dashboard"})]})]}),p.jsxs("div",{className:"text-black flex-row flex justify-between items-center",children:[p.jsx(P2,{stateFunction:e,value:t}),p.jsx(sQ,{images:h,setImage:f}),p.jsx("div",{onClick:()=>console.log("here"),children:p.jsx(_u,{title:"SAVE DRAFT"})}),p.jsx("div",{onClick:()=>{y()},children:p.jsx(_u,{title:"PUBLISH"})})]}),p.jsxs("div",{className:"flex flex-row justify-between w-[100%]",children:[p.jsx("div",{className:"w-[70%]",children:p.jsx(A2,{stateFunction:r,value:n})}),p.jsx("div",{className:"w-[25%] flex flex-col text-[20px] items-end",children:p.jsx(k2,{stateFunction:a,value:o})})]}),p.jsx("div",{className:"w-[100%]",children:p.jsx(N2,{stateFunction:s,value:i})})]})]})},oQ=()=>{const[t,e]=E.useState(!1);return E.useEffect(()=>{localStorage.getItem("uid")!=null&&e(!0)}),p.jsxs(iR,{children:[p.jsx(kn,{path:"/",element:p.jsx(qG,{})}),p.jsx(kn,{path:"/dashboard",element:t?p.jsx(V2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/editor/:topic/:id?",element:t?p.jsx(D2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/addblog",element:t?p.jsx(F2,{}):p.jsx(ra,{})}),p.jsx(kn,{path:"/*",element:p.jsx(ra,{})})]})},bs=()=>{const[t,e]=E.useState(!1),n=bi();return p.jsxs("div",{className:"flex flex-col justify-center items-center text-[#9B8F84] z-[1]",children:[p.jsxs("div",{className:"min-w-[80vw] flex flex-row md:justify-evenly items-center h-[10vh] justify-between",children:[p.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[p.jsx("p",{onClick:()=>n("/",{state:{land:!0}}),className:"hover:text-[#7B695A] hover:cursor-pointer",children:"home"}),p.jsx(Pt,{to:"/blogs",className:"hover:text-[#7B695A]",children:"blogs"})]}),p.jsxs("div",{onClick:()=>n("/",{state:{land:!0}}),className:"flex justify-evenly font-bold md:text-[40px] sm:text-[36px] text-[24px] cursor-default gap-5",children:[p.jsx("p",{children:"COFFEE "})," ",p.jsx("p",{children:"THOUGHTS"})]}),p.jsxs("div",{className:"sm:hidden",children:[p.jsx("img",{src:t?"./close.svg":"./menu.svg",alt:"Menu",onClick:()=>e(!t)}),p.jsx("div",{className:`${t?"flex":"hidden"} p-6 + absolute right-0 mx-4 my-2 min-w[140px] z-10 rounded-xl bg-white`,children:p.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-4",children:[p.jsx("li",{children:p.jsx(Pt,{to:"/",children:"HOME"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/blogs",children:"BLOGS"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/about",children:"ABOUT"})}),p.jsx("li",{children:p.jsx(Pt,{to:"/contact",children:"CONTACT"})})]})})]}),p.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[p.jsx(Pt,{to:"/about",className:"hover:text-[#7B695A]",children:"about"}),p.jsx(Pt,{to:"/contact",className:"hover:text-[#7B695A]",children:"contact"})]})]}),p.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"})]})},aQ={show:{y:-40,opacity:1},hidden:{opacity:0}},SS={show:{opacity:1},move:{opacity:0,x:-500}},IS={show:{opacity:1},move:{x:500,opacity:0}},lQ=({setStatus:t})=>{const[e,n]=E.useState(!1),[r,i]=E.useState(!1),[s,o]=E.useState(!1),a=async()=>{i(!0),await new Promise(()=>{setTimeout(()=>{o(!0),t(!0)},1e3)})};return p.jsxs("div",{className:"overflow-hidden h-fit",children:[p.jsxs(Un.div,{className:"flex-col flex items-center justify-center min-h-[100vh] h-fit",initial:"show",animate:r?"hidden":"show",variants:aQ,transition:{duration:1},children:[p.jsx("img",{src:"landing/CoffeeText.png",alt:"Coffee Thoughts"}),p.jsxs(Un.div,{className:"flex justify-center items-center hover:cursor-pointer",onClick:()=>a(),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),initial:{y:-10},children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"154",height:"64",viewBox:"0 0 154 64",fill:"none",children:p.jsx("path",{d:"M106.899 58.8924L107.728 58.7318C126.313 55.1307 148.166 59.126 153.09 43.2882C156.559 32.1295 149.545 24.7297 141.625 15.4039C120.551 -9.41057 84.6754 1.18342 50.4025 9.827C28.8283 15.268 -1.47572 14.5479 0.0558387 33.8504C1.33429 49.9629 21.0342 52.6928 38.4389 58.7318C63.2715 67.348 80.9551 63.9207 106.899 58.8924Z",fill:e?"#547E88":"white"})}),p.jsx("p",{className:`absolute ${e?"text-white":"text-[#547E88]"} hover:cursor-pointer`,children:"enter site"})]}),p.jsx(Un.img,{src:"landing/MitskiThots.png",alt:"Mitski in Coffee",initial:{x:30}})]}),p.jsx(Un.div,{className:`hidden xl:left-20 top-[200px] lg:block absolute left-2 ${s?"hidden":"block"}`,variants:SS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:p.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),p.jsx(Un.div,{className:"hidden lg:block absolute xl:right-20 top-[400px] right-10",variants:IS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:p.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),p.jsxs("div",{className:"overflow-hidden",children:[p.jsx(Un.div,{className:`absolute bottom-0 right-0 ${s?"hidden":"block"}`,variants:IS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("img",{src:"landing/Cloud2.png",alt:"Clouds"})}),p.jsx(Un.div,{className:"absolute bottom-0 left-0",variants:SS,initial:"show",animate:r?"move":"show",transition:{duration:1},children:p.jsx("img",{src:"landing/Cloud1.png",alt:"Clouds"})})]})]})};function Ha(t){const[e,n]=E.useState(0),r=new Date(t.blog.date.seconds*1e3+t.blog.date.nanoseconds/1e6),i=bi(),s=()=>{i(`/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,images:t.blog.images,body:t.blog.bodyText,date:t.blog.date}})};return E.useEffect(()=>{t.index&&n(t.index)}),p.jsxs("div",{className:`flex w-[75vw] ${e%2==0?"flex-row":"flex-row-reverse"} flex-wrap justify-between z-[1] gap-2`,children:[p.jsx("div",{className:"md:w-[45%] bg-[#D9D9D9] md:h-[301px] h-[20vh] w-full flex justify-center items-center hover:cursor-pointer",children:p.jsx("img",{src:t.blog.images[0],alt:"Photo",className:"contain"})}),p.jsxs("div",{className:"md:w-[45%] h-full flex flex-col gap-5 text-left text-teal",children:[p.jsxs("p",{className:"font-NovoMono text-[16px]",children:[r.getMonth()+1,".",r.getDate(),".",r.getFullYear()]}),p.jsx("p",{className:"font-semibold text-[32px]",children:t.blog.title}),p.jsx("p",{className:"font-RedHat text-[20px]",children:t.blog.description}),p.jsx("div",{className:"w-fit border-b-[2px] border-teal hover:border-coffee hover:text-coffee cursor-pointer",onClick:()=>s(),children:p.jsx("p",{className:"font-RedHat text-[20px]",children:"Read More"})})]})]})}function Eg(t){return p.jsx(Pt,{to:`${t.link}`,className:`text-center text-[#547E88] bg-[#F6DEC9] max-w-[226px] max-h-[226px] flex flex-wrap items-center justify-center rounded-full text-[32px] font-RedHat hover:text-[#FFF7ED] w-[25vw] h-[25vw] min-w-[192px] min-h-[192px] - `,children:p.jsx("p",{className:"w-[80%]",children:t.title})})}const Ps=()=>p.jsxs("div",{className:"flex flex-col bottom-0",children:[p.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"}),p.jsxs("div",{className:"min-w-[80vw] flex flex-row justify-between text-[#9B8F84] h-[7.5vh] items-center",children:[p.jsx("div",{className:"cursor-default",children:"Coffee Thoughts"}),p.jsxs("div",{className:"flex flex-row gap-2",children:[p.jsx(Pt,{to:"https://www.instagram.com/lawrence.tlee/",children:p.jsx(XG,{size:25})}),p.jsx(Pt,{to:"https://github.com/lawtlee",children:p.jsx(YG,{size:25})})]})]})]}),uQ=[{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"},{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"}],cQ=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState([]),[i,s]=E.useState(!1),o=vo(),a=async()=>{const l=await __(!1);l.length>=2?r([l[0],l[1]]):l.length==1&&r([l[0]])};return E.useEffect(()=>{o.state!=null&&o.state.land!=null&&e(!0),i||(s(!0),a())}),t?p.jsxs(Un.div,{className:"min-h-screen min-w-screen bg-white flex flex-col items-center gap-10",initial:{opacity:0},animate:{opacity:1},transition:{duration:1},children:[p.jsx(bs,{}),p.jsxs("div",{className:"flex flex-col gap-10 items-center",children:[p.jsx("div",{className:"flex w-[75vw]",children:p.jsxs("div",{className:"flex justify-center items-center text-[#547E88]",children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"472",height:"85",viewBox:"0 0 472 85",fill:"none",className:"md:block hidden",children:p.jsx("path",{d:"M81.0095 76.9999C158.03 89.82 274.516 84.5303 355.533 76.9999C412.572 71.6982 459.033 82.4999 469.887 54.5065C475.872 39.0686 464.697 27.9999 433.121 18.6702C329.091 -12.0673 261.35 4.41235 145.797 4.41235C78.2325 4.41235 5.03258 4.41234 0.2242 40.6115C-2.94182 64.4464 27.5941 68.1088 81.0095 76.9999Z",fill:"#547E88"})}),p.jsxs("div",{className:"md:absolute flex gap-2 md:text-white",children:[p.jsx("p",{className:"font-semibold text-[28px]",children:"RECENT"}),p.jsx("p",{className:"font-semibold text-[28px]",children:"POSTS"})]})]})}),n.length==0?p.jsx(p.Fragment,{children:uQ.map((l,u)=>p.jsx(Ha,{blog:l,index:u},u))}):p.jsx(p.Fragment,{children:n.map((l,u)=>p.jsx(Ha,{blog:l,index:u},u))})]}),p.jsx("div",{className:"relative w-full",children:p.jsx(Un.div,{className:"absolute bottom-0 right-0 z-0 xl:block hidden",initial:{scale:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"561",height:"538",viewBox:"0 0 561 538",fill:"none",children:p.jsx("path",{d:"M417.715 22.6488C475.431 -9.46067 560.715 3.64887 560.715 3.64887V537.149H116.715C116.715 537.149 18.1079 457.359 4.71533 402.149C-11.1172 336.881 27.6324 293.188 46.2154 228.649C69.037 149.39 122.215 106.617 185.215 98.6488C227.77 93.2663 277.56 110.738 318.715 98.6488C363.764 85.4164 376.686 45.4749 417.715 22.6488Z",fill:"#547E88",stroke:"#547E88"})})})}),p.jsxs("div",{className:"bg-coffee w-full flex flex-col items-center mt-[-2.5rem] gap-10 pb-10",children:[p.jsx("div",{className:"font-bold text-[48px] text-grey md:w-[80vw] flex gap-5 pt-10 text-center w-full",children:p.jsx("p",{children:"MORE COFFEE THOUGHTS "})}),p.jsxs("div",{className:"flex flex-row flex-wrap justify-center items-center",children:[p.jsx("img",{src:"home/categoryBG.png",className:"md:block hidden"}),p.jsxs("div",{className:`flex md:absolute justify-evenly w-full xl:w-[75%] + `,children:p.jsx("p",{className:"w-[80%]",children:t.title})})}const Ps=()=>{const t=bi();return p.jsxs("div",{className:"flex flex-col bottom-0",children:[p.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"}),p.jsxs("div",{className:"min-w-[80vw] flex flex-row justify-between text-[#9B8F84] h-[7.5vh] items-center",children:[p.jsx("div",{className:"cursor-default",onClick:()=>t("/admin"),children:"Coffee Thoughts"}),p.jsxs("div",{className:"flex flex-row gap-2",children:[p.jsx(Pt,{to:"https://www.instagram.com/lawrence.tlee/",children:p.jsx(XG,{size:25})}),p.jsx(Pt,{to:"https://github.com/lawtlee",children:p.jsx(YG,{size:25})})]})]})]})},uQ=[{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"},{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"}],cQ=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState([]),[i,s]=E.useState(!1),o=vo(),a=async()=>{const l=await __(!1);l.length>=2?r([l[0],l[1]]):l.length==1&&r([l[0]])};return E.useEffect(()=>{o.state!=null&&o.state.land!=null&&e(!0),i||(s(!0),a())}),t?p.jsxs(Un.div,{className:"min-h-screen min-w-screen bg-white flex flex-col items-center gap-10",initial:{opacity:0},animate:{opacity:1},transition:{duration:1},children:[p.jsx(bs,{}),p.jsxs("div",{className:"flex flex-col gap-10 items-center",children:[p.jsx("div",{className:"flex w-[75vw]",children:p.jsxs("div",{className:"flex justify-center items-center text-[#547E88]",children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"472",height:"85",viewBox:"0 0 472 85",fill:"none",className:"md:block hidden",children:p.jsx("path",{d:"M81.0095 76.9999C158.03 89.82 274.516 84.5303 355.533 76.9999C412.572 71.6982 459.033 82.4999 469.887 54.5065C475.872 39.0686 464.697 27.9999 433.121 18.6702C329.091 -12.0673 261.35 4.41235 145.797 4.41235C78.2325 4.41235 5.03258 4.41234 0.2242 40.6115C-2.94182 64.4464 27.5941 68.1088 81.0095 76.9999Z",fill:"#547E88"})}),p.jsxs("div",{className:"md:absolute flex gap-2 md:text-white",children:[p.jsx("p",{className:"font-semibold text-[28px]",children:"RECENT"}),p.jsx("p",{className:"font-semibold text-[28px]",children:"POSTS"})]})]})}),n.length==0?p.jsx(p.Fragment,{children:uQ.map((l,u)=>p.jsx(Ha,{blog:l,index:u},u))}):p.jsx(p.Fragment,{children:n.map((l,u)=>p.jsx(Ha,{blog:l,index:u},u))})]}),p.jsx("div",{className:"relative w-full",children:p.jsx(Un.div,{className:"absolute bottom-0 right-0 z-0 xl:block hidden",initial:{scale:1},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"561",height:"538",viewBox:"0 0 561 538",fill:"none",children:p.jsx("path",{d:"M417.715 22.6488C475.431 -9.46067 560.715 3.64887 560.715 3.64887V537.149H116.715C116.715 537.149 18.1079 457.359 4.71533 402.149C-11.1172 336.881 27.6324 293.188 46.2154 228.649C69.037 149.39 122.215 106.617 185.215 98.6488C227.77 93.2663 277.56 110.738 318.715 98.6488C363.764 85.4164 376.686 45.4749 417.715 22.6488Z",fill:"#547E88",stroke:"#547E88"})})})}),p.jsxs("div",{className:"bg-coffee w-full flex flex-col items-center mt-[-2.5rem] gap-10 pb-10",children:[p.jsx("div",{className:"font-bold text-[48px] text-grey md:w-[80vw] flex gap-5 pt-10 text-center w-full",children:p.jsx("p",{children:"MORE COFFEE THOUGHTS "})}),p.jsxs("div",{className:"flex flex-row flex-wrap justify-center items-center",children:[p.jsx("img",{src:"home/categoryBG.png",className:"md:block hidden"}),p.jsxs("div",{className:`flex md:absolute justify-evenly w-full xl:w-[75%] flex-wrap max-w-[1080px] md:gap-0 gap-5`,children:[p.jsx(Eg,{link:"coffee-shops",title:"Coffee Shops"}),p.jsx(Eg,{link:"deez",title:"DEEZ"}),p.jsx(Eg,{link:"cs",title:"CS"})]})]})]}),p.jsx(Ps,{})]}):p.jsx(lQ,{setStatus:e})},dQ=()=>p.jsx("div",{className:"w-[50vw] min-h-[20vh] border-2"}),j2=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(Array),[o,a]=E.useState(""),[l,u]=E.useState(""),[c,d]=E.useState(!1),h=vo(),{category:f,id:m}=fM();console.log(i);const y=async()=>{d(!0);const x=await iQ(f,m);r(x.bodyText),e(x.title),s(x.images);const w=new Date(x.date.seconds*1e3+x.date.nanoseconds/1e6);a(`${w.getMonth()+1}.${w.getDate()}.${w.getFullYear()}`),x.bodyText.split(/\r\n|\r|\n/).length<11&&u("md:absolute")};return E.useEffect(()=>{if(h.state){e(h.state.title),r(h.state.body),s(h.state.images);const x=h.state.date,w=new Date(x.seconds*1e3+x.nanoseconds/1e6);a(`${w.getMonth()+1}.${w.getDate()}.${w.getFullYear()}`),h.state.body.split(/\r\n|\r|\n/).length<11&&u("md:absolute")}else c||y()},[]),p.jsxs("div",{className:"flex flex-col gap-10 items-center w-screen bg-[#FFF7ED] min-h-screen",children:[p.jsx(bs,{}),p.jsxs("div",{className:"flex flex-col text-left gap-5 w-[80vw] text-[#547E88]",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-[16px] font-NovoMono",children:o}),p.jsx("p",{className:"text-[48px]",children:t.toUpperCase()})]}),p.jsx("p",{className:"whitespace-pre-line text-[20px] font-NovoMono",children:n})]}),p.jsx(dQ,{}),p.jsx("div",{className:`bottom-0 ${l}`,children:p.jsx(Ps,{})})]})},$2=()=>{const[t,e]=E.useState([]),[n,r]=E.useState(!1),i=async()=>{const s=await w_("deez",!1);s.length>=2?e([s[0],s[1]]):s.length==1&&e([s[0]])};return E.useEffect(()=>{n||(r(!0),i())}),p.jsxs("div",{className:"w-screen min-h-screen flex flex-col items-center gap-10 bg-white",children:[p.jsx(bs,{}),p.jsxs("div",{className:"flex flex-row flex-wrap w-[80vw] items-center justify-evenly h-fit pt-10 pb-10 gap-5",children:[p.jsx("img",{src:"/Coffee-Thoughts/Lines.png",alt:"backgrop",className:"z-[0] absolute"}),p.jsxs("div",{className:"flex flex-row w-[80vw] items-center justify-evenly",children:[p.jsx("img",{src:"/Coffee-Thoughts/Rectangle.png",alt:"bg",className:"absolute z-[0] hidden lg:block"}),p.jsxs("div",{className:"z-[1] flex flex-row w-[80vw] items-center justify-evenly flex-wrap md:gap-0 gap-3",children:[p.jsx(Pt,{to:"/deez",className:`text-center text-[#547E88] bg-[#F6DEC9] w-[226px] h-[226px] flex flex-wrap items-center justify-center rounded-full text-[32px] font-RedHat hover:text-[#FFF7ED] diff --git a/index.html b/index.html index 9d8ec48..202bd4d 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Coffee Thoughts - +