var Nf=r=>{throw TypeError(r)};var za=(r,l,s)=>l.has(r)||Nf("Cannot "+s);var y=(r,l,s)=>(za(r,l,"read from private field"),s?s.call(r):l.get(r)),X=(r,l,s)=>l.has(r)?Nf("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(r):l.set(r,s),V=(r,l,s,u)=>(za(r,l,"write to private field"),u?u.call(r,s):l.set(r,s),s),le=(r,l,s)=>(za(r,l,"access private method"),s);var js=(r,l,s,u)=>({set _(c){V(r,l,c,s)},get _(){return y(r,l,u)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();function gh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Aa={exports:{}},qi={},Ua={exports:{}},oe={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _f;function Jm(){if(_f)return oe;_f=1;var r=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.iterator;function L(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,I={};function T(j,M,se){this.props=j,this.context=M,this.refs=I,this.updater=se||O}T.prototype.isReactComponent={},T.prototype.setState=function(j,M){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,M,"setState")},T.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _(){}_.prototype=T.prototype;function W(j,M,se){this.props=j,this.context=M,this.refs=I,this.updater=se||O}var Q=W.prototype=new _;Q.constructor=W,F(Q,T.prototype),Q.isPureReactComponent=!0;var U=Array.isArray,B=Object.prototype.hasOwnProperty,ie={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function re(j,M,se){var ae,he={},pe=null,Se=null;if(M!=null)for(ae in M.ref!==void 0&&(Se=M.ref),M.key!==void 0&&(pe=""+M.key),M)B.call(M,ae)&&!fe.hasOwnProperty(ae)&&(he[ae]=M[ae]);var ge=arguments.length-2;if(ge===1)he.children=se;else if(1>>1,M=H[j];if(0>>1;jc(he,q))pec(Se,he)?(H[j]=Se,H[pe]=q,j=pe):(H[j]=he,H[ae]=q,j=ae);else if(pec(Se,q))H[j]=Se,H[pe]=q,j=pe;else break e}}return te}function c(H,te){var q=H.sortIndex-te.sortIndex;return q!==0?q:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var p=Date,v=p.now();r.unstable_now=function(){return p.now()-v}}var x=[],S=[],k=1,C=null,L=3,O=!1,F=!1,I=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Q(H){for(var te=s(S);te!==null;){if(te.callback===null)u(S);else if(te.startTime<=H)u(S),te.sortIndex=te.expirationTime,l(x,te);else break;te=s(S)}}function U(H){if(I=!1,Q(H),!F)if(s(x)!==null)F=!0,st(B);else{var te=s(S);te!==null&&Te(U,te.startTime-H)}}function B(H,te){F=!1,I&&(I=!1,_(re),re=-1),O=!0;var q=L;try{for(Q(te),C=s(x);C!==null&&(!(C.expirationTime>te)||H&&!Qe());){var j=C.callback;if(typeof j=="function"){C.callback=null,L=C.priorityLevel;var M=j(C.expirationTime<=te);te=r.unstable_now(),typeof M=="function"?C.callback=M:C===s(x)&&u(x),Q(te)}else u(x);C=s(x)}if(C!==null)var se=!0;else{var ae=s(S);ae!==null&&Te(U,ae.startTime-te),se=!1}return se}finally{C=null,L=q,O=!1}}var ie=!1,fe=null,re=-1,ce=5,ye=-1;function Qe(){return!(r.unstable_now()-yeH||125j?(H.sortIndex=q,l(S,H),s(x)===null&&H===s(S)&&(I?(_(re),re=-1):I=!0,Te(U,q-j))):(H.sortIndex=M,l(x,H),F||O||(F=!0,st(B))),H},r.unstable_shouldYield=Qe,r.unstable_wrapCallback=function(H){var te=L;return function(){var q=L;L=te;try{return H.apply(this,arguments)}finally{L=q}}}})(Qa)),Qa}var Df;function tv(){return Df||(Df=1,Ba.exports=ev()),Ba.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ff;function nv(){if(Ff)return ft;Ff=1;var r=pu(),l=tv();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=Object.prototype.hasOwnProperty,S=/^[: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]*$/,k={},C={};function L(e){return x.call(C,e)?!0:x.call(k,e)?!1:S.test(e)?C[e]=!0:(k[e]=!0,!1)}function O(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F(e,t,n,i){if(t===null||typeof t>"u"||O(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function I(e,t,n,i,o,a,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=f}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){T[e]=new I(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];T[t]=new I(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){T[e]=new I(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){T[e]=new I(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){T[e]=new I(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){T[e]=new I(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){T[e]=new I(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){T[e]=new I(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){T[e]=new I(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function W(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_,W);T[t]=new I(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,W);T[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,W);T[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){T[e]=new I(e,1,!1,e.toLowerCase(),null,!1,!1)}),T.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){T[e]=new I(e,1,!1,e.toLowerCase(),null,!0,!0)});function Q(e,t,n,i){var o=T.hasOwnProperty(t)?T[t]:null;(o!==null?o.type!==0:i||!(2m||o[f]!==a[m]){var g=` `+o[f].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),g}while(1<=f&&0<=m);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function he(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fe:return"Fragment";case ie:return"Portal";case ce:return"Profiler";case re:return"StrictMode";case ze:return"Suspense";case Ae:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qe:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case qe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function Se(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(t);case 8:return t===re?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mt(e){var t=je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){i=""+f,a.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(f){i=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=mt(e))}function Ou(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=je(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vs(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Du(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ge(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fu(e,t){t=t.checked,t!=null&&Q(e,"checked",t,!1)}function Hs(e,t){Fu(e,t);var n=ge(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ws(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ws(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ws(e,t,n){(t!=="number"||vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ui=Array.isArray;function wr(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var di={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},tp=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(e){tp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),di[t]=di[e]})});function Qu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||di.hasOwnProperty(e)&&di[e]?(""+t).trim():t+"px"}function Vu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=Qu(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}var np=q({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 qs(e,t){if(t){if(np[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Gs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ys=null;function Js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xs=null,Er=null,Cr=null;function Hu(e){if(e=Oi(e)){if(typeof Xs!="function")throw Error(s(280));var t=e.stateNode;t&&(t=$l(t),Xs(e.stateNode,e.type,t))}}function Wu(e){Er?Cr?Cr.push(e):Cr=[e]:Er=e}function bu(){if(Er){var e=Er,t=Cr;if(Cr=Er=null,Hu(e),t)for(e=0;e>>=0,e===0?32:31-(hp(e)/pp|0)|0}var El=64,Cl=4194304;function mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes,f=n&268435455;if(f!==0){var m=f&~o;m!==0?i=mi(m):(a&=f,a!==0&&(i=mi(a)))}else f=n&~o,f!==0?i=mi(f):a!==0&&(i=mi(a));if(i===0)return 0;if(t!==0&&t!==i&&(t&o)===0&&(o=i&-i,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if((i&4)!==0&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function vi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function gp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=ki),Sc=" ",wc=!1;function Ec(e,t){switch(e){case"keyup":return bp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function qp(e,t){switch(e){case"compositionend":return Cc(t);case"keypress":return t.which!==32?null:(wc=!0,Sc);case"textInput":return e=t.data,e===Sc&&wc?null:e;default:return null}}function Gp(e,t){if(Rr)return e==="compositionend"||!yo&&Ec(e,t)?(e=pc(),_l=co=xn=null,Rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tc(n)}}function Ic(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ic(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oc(){for(var e=window,t=vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vl(e.document)}return t}function So(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function im(e){var t=Oc(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ic(n.ownerDocument.documentElement,n)){if(i!==null&&So(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(i.start,o);i=i.end===void 0?a:Math.min(i.end,o),!e.extend&&a>i&&(o=i,i=a,a=o),o=Lc(n,a);var f=Lc(n,i);o&&f&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,wo=null,Ni=null,Eo=!1;function Dc(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eo||Pr==null||Pr!==vl(i)||(i=Pr,"selectionStart"in i&&So(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ni&&Pi(Ni,i)||(Ni=i,i=zl(wo,"onSelect"),0Ir||(e.current=Do[Ir],Do[Ir]=null,Ir--)}function we(e,t){Ir++,Do[Ir]=e.current,e.current=t}var Cn={},Je=En(Cn),ot=En(!1),Jn=Cn;function Or(e,t){var n=e.type.contextTypes;if(!n)return Cn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function Bl(){Ce(ot),Ce(Je)}function Gc(e,t,n){if(Je.current!==Cn)throw Error(s(168));we(Je,t),we(ot,n)}function Yc(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in t))throw Error(s(108,Se(e)||"Unknown",o));return q({},n,i)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Jn=Je.current,we(Je,e),we(ot,ot.current),!0}function Jc(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=Yc(e,t,Jn),i.__reactInternalMemoizedMergedChildContext=e,Ce(ot),Ce(Je),we(Je,e)):Ce(ot),we(ot,n)}var Zt=null,Vl=!1,Fo=!1;function Xc(e){Zt===null?Zt=[e]:Zt.push(e)}function vm(e){Vl=!0,Xc(e)}function kn(){if(!Fo&&Zt!==null){Fo=!0;var e=0,t=xe;try{var n=Zt;for(xe=1;e>=f,o-=f,en=1<<32-It(t)+o|n<ne?(We=ee,ee=null):We=ee.sibling;var me=D(R,ee,P[ne],$);if(me===null){ee===null&&(ee=We);break}e&&ee&&me.alternate===null&&t(R,ee),w=a(me,w,ne),Z===null?J=me:Z.sibling=me,Z=me,ee=We}if(ne===P.length)return n(R,ee),Re&&Zn(R,ne),J;if(ee===null){for(;nene?(We=ee,ee=null):We=ee.sibling;var On=D(R,ee,me.value,$);if(On===null){ee===null&&(ee=We);break}e&&ee&&On.alternate===null&&t(R,ee),w=a(On,w,ne),Z===null?J=On:Z.sibling=On,Z=On,ee=We}if(me.done)return n(R,ee),Re&&Zn(R,ne),J;if(ee===null){for(;!me.done;ne++,me=P.next())me=A(R,me.value,$),me!==null&&(w=a(me,w,ne),Z===null?J=me:Z.sibling=me,Z=me);return Re&&Zn(R,ne),J}for(ee=i(R,ee);!me.done;ne++,me=P.next())me=b(ee,R,ne,me.value,$),me!==null&&(e&&me.alternate!==null&&ee.delete(me.key===null?ne:me.key),w=a(me,w,ne),Z===null?J=me:Z.sibling=me,Z=me);return e&&ee.forEach(function(Ym){return t(R,Ym)}),Re&&Zn(R,ne),J}function De(R,w,P,$){if(typeof P=="object"&&P!==null&&P.type===fe&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case B:e:{for(var J=P.key,Z=w;Z!==null;){if(Z.key===J){if(J=P.type,J===fe){if(Z.tag===7){n(R,Z.sibling),w=o(Z,P.props.children),w.return=R,R=w;break e}}else if(Z.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===st&&id(J)===Z.type){n(R,Z.sibling),w=o(Z,P.props),w.ref=Di(R,Z,P),w.return=R,R=w;break e}n(R,Z);break}else t(R,Z);Z=Z.sibling}P.type===fe?(w=or(P.props.children,R.mode,$,P.key),w.return=R,R=w):($=ys(P.type,P.key,P.props,null,R.mode,$),$.ref=Di(R,w,P),$.return=R,R=$)}return f(R);case ie:e:{for(Z=P.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===P.containerInfo&&w.stateNode.implementation===P.implementation){n(R,w.sibling),w=o(w,P.children||[]),w.return=R,R=w;break e}else{n(R,w);break}else t(R,w);w=w.sibling}w=Ia(P,R.mode,$),w.return=R,R=w}return f(R);case st:return Z=P._init,De(R,w,Z(P._payload),$)}if(ui(P))return G(R,w,P,$);if(te(P))return Y(R,w,P,$);Kl(R,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,w!==null&&w.tag===6?(n(R,w.sibling),w=o(w,P),w.return=R,R=w):(n(R,w),w=La(P,R.mode,$),w.return=R,R=w),f(R)):n(R,w)}return De}var zr=ld(!0),sd=ld(!1),ql=En(null),Gl=null,Ar=null,Bo=null;function Qo(){Bo=Ar=Gl=null}function Vo(e){var t=ql.current;Ce(ql),e._currentValue=t}function Ho(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ur(e,t){Gl=e,Bo=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ut=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Bo!==e)if(e={context:e,memoizedValue:t,next:null},Ar===null){if(Gl===null)throw Error(s(308));Ar=e,Gl.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return t}var er=null;function Wo(e){er===null?er=[e]:er.push(e)}function od(e,t,n,i){var o=t.interleaved;return o===null?(n.next=n,Wo(t)):(n.next=o.next,o.next=n),t.interleaved=n,nn(e,i)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ad(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(de&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,nn(e,n)}return o=i.interleaved,o===null?(t.next=t,Wo(i)):(t.next=o.next,o.next=t),i.interleaved=t,nn(e,n)}function Yl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,lo(e,n)}}function ud(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=f:a=a.next=f,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,i){var o=e.updateQueue;jn=!1;var a=o.firstBaseUpdate,f=o.lastBaseUpdate,m=o.shared.pending;if(m!==null){o.shared.pending=null;var g=m,N=g.next;g.next=null,f===null?a=N:f.next=N,f=g;var z=e.alternate;z!==null&&(z=z.updateQueue,m=z.lastBaseUpdate,m!==f&&(m===null?z.firstBaseUpdate=N:m.next=N,z.lastBaseUpdate=g))}if(a!==null){var A=o.baseState;f=0,z=N=g=null,m=a;do{var D=m.lane,b=m.eventTime;if((i&D)===D){z!==null&&(z=z.next={eventTime:b,lane:0,tag:m.tag,payload:m.payload,callback:m.callback,next:null});e:{var G=e,Y=m;switch(D=t,b=n,Y.tag){case 1:if(G=Y.payload,typeof G=="function"){A=G.call(b,A,D);break e}A=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Y.payload,D=typeof G=="function"?G.call(b,A,D):G,D==null)break e;A=q({},A,D);break e;case 2:jn=!0}}m.callback!==null&&m.lane!==0&&(e.flags|=64,D=o.effects,D===null?o.effects=[m]:D.push(m))}else b={eventTime:b,lane:D,tag:m.tag,payload:m.payload,callback:m.callback,next:null},z===null?(N=z=b,g=A):z=z.next=b,f|=D;if(m=m.next,m===null){if(m=o.shared.pending,m===null)break;D=m,m=D.next,D.next=null,o.lastBaseUpdate=D,o.shared.pending=null}}while(!0);if(z===null&&(g=A),o.baseState=g,o.firstBaseUpdate=N,o.lastBaseUpdate=z,t=o.shared.interleaved,t!==null){o=t;do f|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);rr|=f,e.lanes=f,e.memoizedState=A}}function cd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Jo.transition;Jo.transition={};try{e(!1),t()}finally{xe=n,Jo.transition=i}}function _d(){return Pt().memoizedState}function Sm(e,t,n){var i=Tn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Td(e))Ld(t,n);else if(n=od(e,t,n,i),n!==null){var o=rt();At(n,e,i,o),Id(n,t,i)}}function wm(e,t,n){var i=Tn(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Td(e))Ld(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var f=t.lastRenderedState,m=a(f,n);if(o.hasEagerState=!0,o.eagerState=m,Ot(m,f)){var g=t.interleaved;g===null?(o.next=o,Wo(t)):(o.next=g.next,g.next=o),t.interleaved=o;return}}catch{}finally{}n=od(e,t,o,i),n!==null&&(o=rt(),At(n,e,i,o),Id(n,t,i))}}function Td(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ld(e,t){Ai=es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Id(e,t,n){if((n&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,lo(e,n)}}var rs={readContext:Rt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},Em={readContext:Rt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:wd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ts(4194308,4,kd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Kt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Sm.bind(null,_e,e),[i.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:xd,useDebugValue:ia,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=xd(!1),t=e[0];return e=xm.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=_e,o=Kt();if(Re){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),He===null)throw Error(s(349));(nr&30)!==0||pd(i,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,wd(vd.bind(null,i,a,e),[e]),i.flags|=2048,Bi(9,md.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Kt(),t=He.identifierPrefix;if(Re){var n=tn,i=en;n=(i&~(1<<32-It(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ui++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=f.createElement(n,{is:i.is}):(e=f.createElement(n),n==="select"&&(f=e,i.multiple?f.multiple=!0:i.size&&(f.size=i.size))):e=f.createElementNS(e,n),e[Wt]=t,e[Ii]=i,Xd(e,t,!1,!1),t.stateNode=e;e:{switch(f=Gs(n,i),n){case"dialog":Ee("cancel",e),Ee("close",e),o=i;break;case"iframe":case"object":case"embed":Ee("load",e),o=i;break;case"video":case"audio":for(o=0;o<_i.length;o++)Ee(_i[o],e);o=i;break;case"source":Ee("error",e),o=i;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),o=i;break;case"details":Ee("toggle",e),o=i;break;case"input":Du(e,i),o=Vs(e,i),Ee("invalid",e);break;case"option":o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=q({},i,{value:void 0}),Ee("invalid",e);break;case"textarea":zu(e,i),o=bs(e,i),Ee("invalid",e);break;default:o=i}qs(n,o),m=o;for(a in m)if(m.hasOwnProperty(a)){var g=m[a];a==="style"?Vu(e,g):a==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,g!=null&&Bu(e,g)):a==="children"?typeof g=="string"?(n!=="textarea"||g!=="")&&ci(e,g):typeof g=="number"&&ci(e,""+g):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(c.hasOwnProperty(a)?g!=null&&a==="onScroll"&&Ee("scroll",e):g!=null&&Q(e,a,g,f))}switch(n){case"input":ml(e),Mu(e,i,!1);break;case"textarea":ml(e),Uu(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ge(i.value));break;case"select":e.multiple=!!i.multiple,a=i.value,a!=null?wr(e,!!i.multiple,a,!1):i.defaultValue!=null&&wr(e,!!i.multiple,i.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ul)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)ef(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(n=tr(zi.current),tr(bt.current),bl(t)){if(i=t.stateNode,n=t.memoizedProps,i[Wt]=t,(a=i.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:Al(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Al(i.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Wt]=t,t.stateNode=i}return Ze(t),null;case 13:if(Ce(Ne),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Re&>!==null&&(t.mode&1)!==0&&(t.flags&128)===0)rd(),Mr(),t.flags|=98560,a=!1;else if(a=bl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(s(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[Wt]=t}else Mr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),a=!1}else Dt!==null&&(Ra(Dt),Dt=null),a=!0;if(!a)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ne.current&1)!==0?$e===0&&($e=3):_a())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return $r(),ma(e,t),e===null&&Ti(t.stateNode.containerInfo),Ze(t),null;case 10:return Vo(t.type._context),Ze(t),null;case 17:return at(t.type)&&Bl(),Ze(t),null;case 19:if(Ce(Ne),a=t.memoizedState,a===null)return Ze(t),null;if(i=(t.flags&128)!==0,f=a.rendering,f===null)if(i)Qi(a,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Xl(e),f!==null){for(t.flags|=128,Qi(a,!1),i=f.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)a=n,e=i,a.flags&=14680066,f=a.alternate,f===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,e=f.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Ne,Ne.current&1|2),t.child}e=e.sibling}a.tail!==null&&Oe()>Hr&&(t.flags|=128,i=!0,Qi(a,!1),t.lanes=4194304)}else{if(!i)if(e=Xl(f),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!Re)return Ze(t),null}else 2*Oe()-a.renderingStartTime>Hr&&n!==1073741824&&(t.flags|=128,i=!0,Qi(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(n=a.last,n!==null?n.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Oe(),t.sibling=null,n=Ne.current,we(Ne,i?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Na(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(xt&1073741824)!==0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Tm(e,t){switch(zo(t),t.tag){case 1:return at(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),Ce(ot),Ce(Je),Yo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return qo(t),null;case 13:if(Ce(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Ne),null;case 4:return $r(),null;case 10:return Vo(t.type._context),null;case 22:case 23:return Na(),null;case 24:return null;default:return null}}var os=!1,et=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,K=null;function Qr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Le(e,t,i)}else n.current=null}function va(e,t,n){try{n()}catch(i){Le(e,t,i)}}var tf=!1;function Im(e,t){if(No=Pl,e=Oc(),So(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var f=0,m=-1,g=-1,N=0,z=0,A=e,D=null;t:for(;;){for(var b;A!==n||o!==0&&A.nodeType!==3||(m=f+o),A!==a||i!==0&&A.nodeType!==3||(g=f+i),A.nodeType===3&&(f+=A.nodeValue.length),(b=A.firstChild)!==null;)D=A,A=b;for(;;){if(A===e)break t;if(D===n&&++N===o&&(m=f),D===a&&++z===i&&(g=f),(b=A.nextSibling)!==null)break;A=D,D=A.parentNode}A=b}n=m===-1||g===-1?null:{start:m,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(_o={focusedElem:e,selectionRange:n},Pl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var G=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Y=G.memoizedProps,De=G.memoizedState,R=t.stateNode,w=R.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Ft(t.type,Y),De);R.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch($){Le(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return G=tf,tf=!1,G}function Vi(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&va(t,n,a)}o=o.next}while(o!==i)}}function as(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function ya(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[Ii],delete t[Oo],delete t[pm],delete t[mm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rf(e){return e.tag===5||e.tag===3||e.tag===4}function lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ga(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ul));else if(i!==4&&(e=e.child,e!==null))for(ga(e,t,n),e=e.sibling;e!==null;)ga(e,t,n),e=e.sibling}function xa(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(xa(e,t,n),e=e.sibling;e!==null;)xa(e,t,n),e=e.sibling}var Ge=null,Mt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)sf(e,t,n),n=n.sibling}function sf(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:et||Qr(n,t);case 6:var i=Ge,o=Mt;Ge=null,Pn(e,t,n),Ge=i,Mt=o,Ge!==null&&(Mt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Mt?(e=Ge,n=n.stateNode,e.nodeType===8?Io(e.parentNode,n):e.nodeType===1&&Io(e,n),wi(e)):Io(Ge,n.stateNode));break;case 4:i=Ge,o=Mt,Ge=n.stateNode.containerInfo,Mt=!0,Pn(e,t,n),Ge=i,Mt=o;break;case 0:case 11:case 14:case 15:if(!et&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var a=o,f=a.destroy;a=a.tag,f!==void 0&&((a&2)!==0||(a&4)!==0)&&va(n,t,f),o=o.next}while(o!==i)}Pn(e,t,n);break;case 1:if(!et&&(Qr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(m){Le(n,t,m)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(et=(i=et)||n.memoizedState!==null,Pn(e,t,n),et=i):Pn(e,t,n);break;default:Pn(e,t,n)}}function of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lm),t.forEach(function(i){var o=Bm.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var i=0;io&&(o=f),i&=~a}if(i=o,i=Oe()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Dm(i/1960))-i,10e?16:e,_n===null)var i=!1;else{if(e=_n,_n=null,hs=0,(de&6)!==0)throw Error(s(331));var o=de;for(de|=4,K=e.current;K!==null;){var a=K,f=a.child;if((K.flags&16)!==0){var m=a.deletions;if(m!==null){for(var g=0;gOe()-Ea?lr(e,0):wa|=n),dt(e,t)}function Sf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Cl,Cl<<=1,(Cl&130023424)===0&&(Cl=4194304)));var n=rt();e=nn(e,t),e!==null&&(vi(e,t,n),dt(e,n))}function $m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sf(e,n)}function Bm(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),Sf(e,n)}var wf;wf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)ut=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ut=!1,Nm(e,t,n);ut=(e.flags&131072)!==0}else ut=!1,Re&&(t.flags&1048576)!==0&&Zc(t,Wl,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ss(e,t),e=t.pendingProps;var o=Or(t,Je.current);Ur(t,n),o=Zo(null,t,i,e,o,n);var a=ea();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(i)?(a=!0,Ql(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bo(t),o.updater=is,t.stateNode=o,o._reactInternals=t,sa(t,i,e,n),t=ca(null,t,i,!0,a,n)):(t.tag=0,Re&&a&&Mo(t),nt(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(ss(e,t),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=Vm(i),e=Ft(i,e),o){case 0:t=ua(null,t,i,e,n);break e;case 1:t=bd(null,t,i,e,n);break e;case 11:t=Bd(null,t,i,e,n);break e;case 14:t=Qd(null,t,i,Ft(i.type,e),n);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Ft(i,o),ua(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Ft(i,o),bd(e,t,i,o,n);case 3:e:{if(Kd(t),e===null)throw Error(s(387));i=t.pendingProps,a=t.memoizedState,o=a.element,ad(e,t),Jl(t,i,null,n);var f=t.memoizedState;if(i=f.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Br(Error(s(423)),t),t=qd(e,t,i,n,o);break e}else if(i!==o){o=Br(Error(s(424)),t),t=qd(e,t,i,n,o);break e}else for(gt=wn(t.stateNode.containerInfo.firstChild),yt=t,Re=!0,Dt=null,n=sd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mr(),i===o){t=ln(e,t,n);break e}nt(e,t,i,n)}t=t.child}return t;case 5:return dd(t),e===null&&Uo(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,f=o.children,To(i,o)?f=null:a!==null&&To(i,a)&&(t.flags|=32),Wd(e,t),nt(e,t,f,n),t.child;case 6:return e===null&&Uo(t),null;case 13:return Gd(e,t,n);case 4:return Ko(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=zr(t,null,i,n):nt(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Ft(i,o),Bd(e,t,i,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,f=o.value,we(ql,i._currentValue),i._currentValue=f,a!==null)if(Ot(a.value,f)){if(a.children===o.children&&!ot.current){t=ln(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var m=a.dependencies;if(m!==null){f=a.child;for(var g=m.firstContext;g!==null;){if(g.context===i){if(a.tag===1){g=rn(-1,n&-n),g.tag=2;var N=a.updateQueue;if(N!==null){N=N.shared;var z=N.pending;z===null?g.next=g:(g.next=z.next,z.next=g),N.pending=g}}a.lanes|=n,g=a.alternate,g!==null&&(g.lanes|=n),Ho(a.return,n,t),m.lanes|=n;break}g=g.next}}else if(a.tag===10)f=a.type===t.type?null:a.child;else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=n,m=f.alternate,m!==null&&(m.lanes|=n),Ho(f,n,t),f=a.sibling}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Ur(t,n),o=Rt(o),i=i(o),t.flags|=1,nt(e,t,i,n),t.child;case 14:return i=t.type,o=Ft(i,t.pendingProps),o=Ft(i.type,o),Qd(e,t,i,o,n);case 15:return Vd(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Ft(i,o),ss(e,t),t.tag=1,at(i)?(e=!0,Ql(t)):e=!1,Ur(t,n),Dd(t,i,o),sa(t,i,o,n),ca(null,t,i,!0,e,n);case 19:return Jd(e,t,n);case 22:return Hd(e,t,n)}throw Error(s(156,t.tag))};function Ef(e,t){return ec(e,t)}function Qm(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new Qm(e,t,n,i)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vm(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qe)return 11;if(e===ke)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ys(e,t,n,i,o,a){var f=2;if(i=e,typeof e=="function")Ta(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case fe:return or(n.children,o,a,t);case re:f=8,o|=8;break;case ce:return e=_t(12,n,t,o|2),e.elementType=ce,e.lanes=a,e;case ze:return e=_t(13,n,t,o),e.elementType=ze,e.lanes=a,e;case Ae:return e=_t(19,n,t,o),e.elementType=Ae,e.lanes=a,e;case Te:return gs(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:f=10;break e;case Qe:f=9;break e;case qe:f=11;break e;case ke:f=14;break e;case st:f=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=_t(f,n,t,o),t.elementType=e,t.type=i,t.lanes=a,t}function or(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function gs(e,t,n,i){return e=_t(22,e,i,t),e.elementType=Te,e.lanes=n,e.stateNode={isHidden:!1},e}function La(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Ia(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hm(e,t,n,i,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=io(0),this.expirationTimes=io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Oa(e,t,n,i,o,a,f,m,g){return e=new Hm(e,t,n,m,g),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_t(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bo(a),e}function Wm(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),$a.exports=nv(),$a.exports}var zf;function iv(){if(zf)return Rs;zf=1;var r=rv();return Rs.createRoot=r.createRoot,Rs.hydrateRoot=r.hydrateRoot,Rs}var lv=iv();const sv=gh(lv);var li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ur,Fn,br,oh,ov=(oh=class extends li{constructor(){super();X(this,ur);X(this,Fn);X(this,br);V(this,br,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){y(this,Fn)||this.setEventListener(y(this,br))}onUnsubscribe(){var l;this.hasListeners()||((l=y(this,Fn))==null||l.call(this),V(this,Fn,void 0))}setEventListener(l){var s;V(this,br,l),(s=y(this,Fn))==null||s.call(this),V(this,Fn,l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(l){y(this,ur)!==l&&(V(this,ur,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof y(this,ur)=="boolean"?y(this,ur):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},ur=new WeakMap,Fn=new WeakMap,br=new WeakMap,oh),mu=new ov,av={setTimeout:(r,l)=>setTimeout(r,l),clearTimeout:r=>clearTimeout(r),setInterval:(r,l)=>setInterval(r,l),clearInterval:r=>clearInterval(r)},Mn,hu,ah,uv=(ah=class{constructor(){X(this,Mn,av);X(this,hu,!1)}setTimeoutProvider(r){V(this,Mn,r)}setTimeout(r,l){return y(this,Mn).setTimeout(r,l)}clearTimeout(r){y(this,Mn).clearTimeout(r)}setInterval(r,l){return y(this,Mn).setInterval(r,l)}clearInterval(r){y(this,Mn).clearInterval(r)}},Mn=new WeakMap,hu=new WeakMap,ah),ar=new uv;function cv(r){setTimeout(r,0)}var dv=typeof window>"u"||"Deno"in globalThis;function lt(){}function fv(r,l){return typeof r=="function"?r(l):r}function Ga(r){return typeof r=="number"&&r>=0&&r!==1/0}function xh(r,l){return Math.max(r+(l||0)-Date.now(),0)}function bn(r,l){return typeof r=="function"?r(l):r}function wt(r,l){return typeof r=="function"?r(l):r}function Af(r,l){const{type:s="all",exact:u,fetchStatus:c,predicate:h,queryKey:p,stale:v}=r;if(p){if(u){if(l.queryHash!==vu(p,l.options))return!1}else if(!nl(l.queryKey,p))return!1}if(s!=="all"){const x=l.isActive();if(s==="active"&&!x||s==="inactive"&&x)return!1}return!(typeof v=="boolean"&&l.isStale()!==v||c&&c!==l.state.fetchStatus||h&&!h(l))}function Uf(r,l){const{exact:s,status:u,predicate:c,mutationKey:h}=r;if(h){if(!l.options.mutationKey)return!1;if(s){if(gr(l.options.mutationKey)!==gr(h))return!1}else if(!nl(l.options.mutationKey,h))return!1}return!(u&&l.state.status!==u||c&&!c(l))}function vu(r,l){return((l==null?void 0:l.queryKeyHashFn)||gr)(r)}function gr(r){return JSON.stringify(r,(l,s)=>Ya(s)?Object.keys(s).sort().reduce((u,c)=>(u[c]=s[c],u),{}):s)}function nl(r,l){return r===l?!0:typeof r!=typeof l?!1:r&&l&&typeof r=="object"&&typeof l=="object"?Object.keys(l).every(s=>nl(r[s],l[s])):!1}var hv=Object.prototype.hasOwnProperty;function Sh(r,l,s=0){if(r===l)return r;if(s>500)return l;const u=$f(r)&&$f(l);if(!u&&!(Ya(r)&&Ya(l)))return l;const h=(u?r:Object.keys(r)).length,p=u?l:Object.keys(l),v=p.length,x=u?new Array(v):{};let S=0;for(let k=0;k{ar.setTimeout(l,r)})}function Ja(r,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(r,l):s.structuralSharing!==!1?Sh(r,l):l}function mv(r,l,s=0){const u=[...r,l];return s&&u.length>s?u.slice(1):u}function vv(r,l,s=0){const u=[l,...r];return s&&u.length>s?u.slice(0,-1):u}var yu=Symbol();function wh(r,l){return!r.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!r.queryFn||r.queryFn===yu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function gu(r,l){return typeof r=="function"?r(...l):!!r}function yv(r,l,s){let u=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=l()),u||(u=!0,c.aborted?s():c.addEventListener("abort",s,{once:!0})),c)}),r}var rl=(()=>{let r=()=>dv;return{isServer(){return r()},setIsServer(l){r=l}}})();function Xa(){let r,l;const s=new Promise((c,h)=>{r=c,l=h});s.status="pending",s.catch(()=>{});function u(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{u({status:"fulfilled",value:c}),r(c)},s.reject=c=>{u({status:"rejected",reason:c}),l(c)},s}var gv=cv;function xv(){let r=[],l=0,s=v=>{v()},u=v=>{v()},c=gv;const h=v=>{l?r.push(v):c(()=>{s(v)})},p=()=>{const v=r;r=[],v.length&&c(()=>{u(()=>{v.forEach(x=>{s(x)})})})};return{batch:v=>{let x;l++;try{x=v()}finally{l--,l||p()}return x},batchCalls:v=>(...x)=>{h(()=>{v(...x)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{u=v},setScheduler:v=>{c=v}}}var Be=xv(),Kr,zn,qr,uh,Sv=(uh=class extends li{constructor(){super();X(this,Kr,!0);X(this,zn);X(this,qr);V(this,qr,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l(!0),u=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",u)}}})}onSubscribe(){y(this,zn)||this.setEventListener(y(this,qr))}onUnsubscribe(){var l;this.hasListeners()||((l=y(this,zn))==null||l.call(this),V(this,zn,void 0))}setEventListener(l){var s;V(this,qr,l),(s=y(this,zn))==null||s.call(this),V(this,zn,l(this.setOnline.bind(this)))}setOnline(l){y(this,Kr)!==l&&(V(this,Kr,l),this.listeners.forEach(u=>{u(l)}))}isOnline(){return y(this,Kr)}},Kr=new WeakMap,zn=new WeakMap,qr=new WeakMap,uh),Fs=new Sv;function wv(r){return Math.min(1e3*2**r,3e4)}function Eh(r){return(r??"online")==="online"?Fs.isOnline():!0}var Za=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function Ch(r){let l=!1,s=0,u;const c=Xa(),h=()=>c.status!=="pending",p=I=>{var T;if(!h()){const _=new Za(I);L(_),(T=r.onCancel)==null||T.call(r,_)}},v=()=>{l=!0},x=()=>{l=!1},S=()=>mu.isFocused()&&(r.networkMode==="always"||Fs.isOnline())&&r.canRun(),k=()=>Eh(r.networkMode)&&r.canRun(),C=I=>{h()||(u==null||u(),c.resolve(I))},L=I=>{h()||(u==null||u(),c.reject(I))},O=()=>new Promise(I=>{var T;u=_=>{(h()||S())&&I(_)},(T=r.onPause)==null||T.call(r)}).then(()=>{var I;u=void 0,h()||(I=r.onContinue)==null||I.call(r)}),F=()=>{if(h())return;let I;const T=s===0?r.initialPromise:void 0;try{I=T??r.fn()}catch(_){I=Promise.reject(_)}Promise.resolve(I).then(C).catch(_=>{var ie;if(h())return;const W=r.retry??(rl.isServer()?0:3),Q=r.retryDelay??wv,U=typeof Q=="function"?Q(s,_):Q,B=W===!0||typeof W=="number"&&sS()?void 0:O()).then(()=>{l?L(_):F()})})};return{promise:c,status:()=>c.status,cancel:p,continue:()=>(u==null||u(),c),cancelRetry:v,continueRetry:x,canStart:k,start:()=>(k()?F():O().then(F),c)}}var cr,ch,kh=(ch=class{constructor(){X(this,cr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ga(this.gcTime)&&V(this,cr,ar.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(rl.isServer()?1/0:300*1e3))}clearGcTimeout(){y(this,cr)!==void 0&&(ar.clearTimeout(y(this,cr)),V(this,cr,void 0))}},cr=new WeakMap,ch);function Ev(r){return{onFetch:(l,s)=>{var k,C,L,O,F;const u=l.options,c=(L=(C=(k=l.fetchOptions)==null?void 0:k.meta)==null?void 0:C.fetchMore)==null?void 0:L.direction,h=((O=l.state.data)==null?void 0:O.pages)||[],p=((F=l.state.data)==null?void 0:F.pageParams)||[];let v={pages:[],pageParams:[]},x=0;const S=async()=>{let I=!1;const T=Q=>{yv(Q,()=>l.signal,()=>I=!0)},_=wh(l.options,l.fetchOptions),W=async(Q,U,B)=>{if(I)return Promise.reject(l.signal.reason);if(U==null&&Q.pages.length)return Promise.resolve(Q);const fe=(()=>{const Qe={client:l.client,queryKey:l.queryKey,pageParam:U,direction:B?"backward":"forward",meta:l.options.meta};return T(Qe),Qe})(),re=await _(fe),{maxPages:ce}=l.options,ye=B?vv:mv;return{pages:ye(Q.pages,re,ce),pageParams:ye(Q.pageParams,U,ce)}};if(c&&h.length){const Q=c==="backward",U=Q?Cv:Qf,B={pages:h,pageParams:p},ie=U(u,B);v=await W(B,ie,Q)}else{const Q=r??h.length;do{const U=x===0?p[0]??u.initialPageParam:Qf(u,v);if(x>0&&U==null)break;v=await W(v,U),x++}while(x{var I,T;return(T=(I=l.options).persister)==null?void 0:T.call(I,S,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=S}}}function Qf(r,{pages:l,pageParams:s}){const u=l.length-1;return l.length>0?r.getNextPageParam(l[u],l,s[u],s):void 0}function Cv(r,{pages:l,pageParams:s}){var u;return l.length>0?(u=r.getPreviousPageParam)==null?void 0:u.call(r,l[0],l,s[0],s):void 0}var Gr,dr,Yr,Tt,fr,be,ll,hr,St,jh,on,dh,kv=(dh=class extends kh{constructor(l){super();X(this,St);X(this,Gr);X(this,dr);X(this,Yr);X(this,Tt);X(this,fr);X(this,be);X(this,ll);X(this,hr);V(this,hr,!1),V(this,ll,l.defaultOptions),this.setOptions(l.options),this.observers=[],V(this,fr,l.client),V(this,Tt,y(this,fr).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,V(this,dr,Hf(this.options)),this.state=l.state??y(this,dr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return y(this,Gr)}get promise(){var l;return(l=y(this,be))==null?void 0:l.promise}setOptions(l){if(this.options={...y(this,ll),...l},l!=null&&l._type&&V(this,Gr,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Hf(this.options);s.data!==void 0&&(this.setState(Vf(s.data,s.dataUpdatedAt)),V(this,dr,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Tt).remove(this)}setData(l,s){const u=Ja(this.state.data,l,this.options);return le(this,St,on).call(this,{data:u,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),u}setState(l){le(this,St,on).call(this,{type:"setState",state:l})}cancel(l){var u,c;const s=(u=y(this,be))==null?void 0:u.promise;return(c=y(this,be))==null||c.cancel(l),s?s.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return y(this,dr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>wt(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>bn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!xh(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(u=>u.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=y(this,be))==null||s.continue()}onOnline(){var s;const l=this.observers.find(u=>u.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=y(this,be))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),y(this,Tt).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(y(this,be)&&(y(this,hr)||le(this,St,jh).call(this)?y(this,be).cancel({revert:!0}):y(this,be).cancelRetry()),this.scheduleGc()),y(this,Tt).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||le(this,St,on).call(this,{type:"invalidate"})}async fetch(l,s){var S,k,C,L,O,F,I,T,_,W,Q;if(this.state.fetchStatus!=="idle"&&((S=y(this,be))==null?void 0:S.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(y(this,be))return y(this,be).continueRetry(),y(this,be).promise}if(l&&this.setOptions(l),!this.options.queryFn){const U=this.observers.find(B=>B.options.queryFn);U&&this.setOptions(U.options)}const u=new AbortController,c=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(V(this,hr,!0),u.signal)})},h=()=>{const U=wh(this.options,s),ie=(()=>{const fe={client:y(this,fr),queryKey:this.queryKey,meta:this.meta};return c(fe),fe})();return V(this,hr,!1),this.options.persister?this.options.persister(U,ie,this):U(ie)},v=(()=>{const U={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:y(this,fr),state:this.state,fetchFn:h};return c(U),U})(),x=y(this,Gr)==="infinite"?Ev(this.options.pages):this.options.behavior;x==null||x.onFetch(v,this),V(this,Yr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((k=v.fetchOptions)==null?void 0:k.meta))&&le(this,St,on).call(this,{type:"fetch",meta:(C=v.fetchOptions)==null?void 0:C.meta}),V(this,be,Ch({initialPromise:s==null?void 0:s.initialPromise,fn:v.fetchFn,onCancel:U=>{U instanceof Za&&U.revert&&this.setState({...y(this,Yr),fetchStatus:"idle"}),u.abort()},onFail:(U,B)=>{le(this,St,on).call(this,{type:"failed",failureCount:U,error:B})},onPause:()=>{le(this,St,on).call(this,{type:"pause"})},onContinue:()=>{le(this,St,on).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const U=await y(this,be).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(O=(L=y(this,Tt).config).onSuccess)==null||O.call(L,U,this),(I=(F=y(this,Tt).config).onSettled)==null||I.call(F,U,this.state.error,this),U}catch(U){if(U instanceof Za){if(U.silent)return y(this,be).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw le(this,St,on).call(this,{type:"error",error:U}),(_=(T=y(this,Tt).config).onError)==null||_.call(T,U,this),(Q=(W=y(this,Tt).config).onSettled)==null||Q.call(W,this.state.data,U,this),U}finally{this.scheduleGc()}}},Gr=new WeakMap,dr=new WeakMap,Yr=new WeakMap,Tt=new WeakMap,fr=new WeakMap,be=new WeakMap,ll=new WeakMap,hr=new WeakMap,St=new WeakSet,jh=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},on=function(l){const s=u=>{switch(l.type){case"failed":return{...u,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Rh(u.data,this.options),fetchMeta:l.meta??null};case"success":const c={...u,...Vf(l.data,l.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,Yr,l.manual?c:void 0),c;case"error":const h=l.error;return{...u,error:h,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...l.state}}};this.state=s(this.state),Be.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),y(this,Tt).notify({query:this,type:"updated",action:l})})},dh);function Rh(r,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Eh(l.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function Vf(r,l){return{data:r,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Hf(r){const l=typeof r.initialData=="function"?r.initialData():r.initialData,s=l!==void 0,u=s?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var ht,ue,sl,it,pr,Jr,un,An,ol,Xr,Zr,mr,vr,Un,ei,ve,el,eu,tu,nu,ru,iu,lu,su,Ph,fh,jv=(fh=class extends li{constructor(l,s){super();X(this,ve);X(this,ht);X(this,ue);X(this,sl);X(this,it);X(this,pr);X(this,Jr);X(this,un);X(this,An);X(this,ol);X(this,Xr);X(this,Zr);X(this,mr);X(this,vr);X(this,Un);X(this,ei,new Set);this.options=s,V(this,ht,l),V(this,An,null),V(this,un,Xa()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,ue).addObserver(this),Wf(y(this,ue),this.options)?le(this,ve,el).call(this):this.updateResult(),le(this,ve,ru).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ou(y(this,ue),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ou(y(this,ue),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,le(this,ve,iu).call(this),le(this,ve,lu).call(this),y(this,ue).removeObserver(this)}setOptions(l){const s=this.options,u=y(this,ue);if(this.options=y(this,ht).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wt(this.options.enabled,y(this,ue))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");le(this,ve,su).call(this),y(this,ue).setOptions(this.options),s._defaulted&&!Ds(this.options,s)&&y(this,ht).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,ue),observer:this});const c=this.hasListeners();c&&bf(y(this,ue),u,this.options,s)&&le(this,ve,el).call(this),this.updateResult(),c&&(y(this,ue)!==u||wt(this.options.enabled,y(this,ue))!==wt(s.enabled,y(this,ue))||bn(this.options.staleTime,y(this,ue))!==bn(s.staleTime,y(this,ue)))&&le(this,ve,eu).call(this);const h=le(this,ve,tu).call(this);c&&(y(this,ue)!==u||wt(this.options.enabled,y(this,ue))!==wt(s.enabled,y(this,ue))||h!==y(this,Un))&&le(this,ve,nu).call(this,h)}getOptimisticResult(l){const s=y(this,ht).getQueryCache().build(y(this,ht),l),u=this.createResult(s,l);return Pv(this,u)&&(V(this,it,u),V(this,Jr,this.options),V(this,pr,y(this,ue).state)),u}getCurrentResult(){return y(this,it)}trackResult(l,s){return new Proxy(l,{get:(u,c)=>(this.trackProp(c),s==null||s(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,un).status==="pending"&&y(this,un).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,c))})}trackProp(l){y(this,ei).add(l)}getCurrentQuery(){return y(this,ue)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=y(this,ht).defaultQueryOptions(l),u=y(this,ht).getQueryCache().build(y(this,ht),s);return u.fetch().then(()=>this.createResult(u,s))}fetch(l){return le(this,ve,el).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,it)))}createResult(l,s){var ce;const u=y(this,ue),c=this.options,h=y(this,it),p=y(this,pr),v=y(this,Jr),S=l!==u?l.state:y(this,sl),{state:k}=l;let C={...k},L=!1,O;if(s._optimisticResults){const ye=this.hasListeners(),Qe=!ye&&Wf(l,s),qe=ye&&bf(l,u,s,c);(Qe||qe)&&(C={...C,...Rh(k.data,l.options)}),s._optimisticResults==="isRestoring"&&(C.fetchStatus="idle")}let{error:F,errorUpdatedAt:I,status:T}=C;O=C.data;let _=!1;if(s.placeholderData!==void 0&&O===void 0&&T==="pending"){let ye;h!=null&&h.isPlaceholderData&&s.placeholderData===(v==null?void 0:v.placeholderData)?(ye=h.data,_=!0):ye=typeof s.placeholderData=="function"?s.placeholderData((ce=y(this,Zr))==null?void 0:ce.state.data,y(this,Zr)):s.placeholderData,ye!==void 0&&(T="success",O=Ja(h==null?void 0:h.data,ye,s),L=!0)}if(s.select&&O!==void 0&&!_)if(h&&O===(p==null?void 0:p.data)&&s.select===y(this,ol))O=y(this,Xr);else try{V(this,ol,s.select),O=s.select(O),O=Ja(h==null?void 0:h.data,O,s),V(this,Xr,O),V(this,An,null)}catch(ye){V(this,An,ye)}y(this,An)&&(F=y(this,An),O=y(this,Xr),I=Date.now(),T="error");const W=C.fetchStatus==="fetching",Q=T==="pending",U=T==="error",B=Q&&W,ie=O!==void 0,re={status:T,fetchStatus:C.fetchStatus,isPending:Q,isSuccess:T==="success",isError:U,isInitialLoading:B,isLoading:B,data:O,dataUpdatedAt:C.dataUpdatedAt,error:F,errorUpdatedAt:I,failureCount:C.fetchFailureCount,failureReason:C.fetchFailureReason,errorUpdateCount:C.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:C.dataUpdateCount>S.dataUpdateCount||C.errorUpdateCount>S.errorUpdateCount,isFetching:W,isRefetching:W&&!Q,isLoadingError:U&&!ie,isPaused:C.fetchStatus==="paused",isPlaceholderData:L,isRefetchError:U&&ie,isStale:xu(l,s),refetch:this.refetch,promise:y(this,un),isEnabled:wt(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const ye=re.data!==void 0,Qe=re.status==="error"&&!ye,qe=ke=>{Qe?ke.reject(re.error):ye&&ke.resolve(re.data)},ze=()=>{const ke=V(this,un,re.promise=Xa());qe(ke)},Ae=y(this,un);switch(Ae.status){case"pending":l.queryHash===u.queryHash&&qe(Ae);break;case"fulfilled":(Qe||re.data!==Ae.value)&&ze();break;case"rejected":(!Qe||re.error!==Ae.reason)&&ze();break}}return re}updateResult(){const l=y(this,it),s=this.createResult(y(this,ue),this.options);if(V(this,pr,y(this,ue).state),V(this,Jr,this.options),y(this,pr).data!==void 0&&V(this,Zr,y(this,ue)),Ds(s,l))return;V(this,it,s);const u=()=>{if(!l)return!0;const{notifyOnChangeProps:c}=this.options,h=typeof c=="function"?c():c;if(h==="all"||!h&&!y(this,ei).size)return!0;const p=new Set(h??y(this,ei));return this.options.throwOnError&&p.add("error"),Object.keys(y(this,it)).some(v=>{const x=v;return y(this,it)[x]!==l[x]&&p.has(x)})};le(this,ve,Ph).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&le(this,ve,ru).call(this)}},ht=new WeakMap,ue=new WeakMap,sl=new WeakMap,it=new WeakMap,pr=new WeakMap,Jr=new WeakMap,un=new WeakMap,An=new WeakMap,ol=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,mr=new WeakMap,vr=new WeakMap,Un=new WeakMap,ei=new WeakMap,ve=new WeakSet,el=function(l){le(this,ve,su).call(this);let s=y(this,ue).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(lt)),s},eu=function(){le(this,ve,iu).call(this);const l=bn(this.options.staleTime,y(this,ue));if(rl.isServer()||y(this,it).isStale||!Ga(l))return;const u=xh(y(this,it).dataUpdatedAt,l)+1;V(this,mr,ar.setTimeout(()=>{y(this,it).isStale||this.updateResult()},u))},tu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,ue)):this.options.refetchInterval)??!1},nu=function(l){le(this,ve,lu).call(this),V(this,Un,l),!(rl.isServer()||wt(this.options.enabled,y(this,ue))===!1||!Ga(y(this,Un))||y(this,Un)===0)&&V(this,vr,ar.setInterval(()=>{(this.options.refetchIntervalInBackground||mu.isFocused())&&le(this,ve,el).call(this)},y(this,Un)))},ru=function(){le(this,ve,eu).call(this),le(this,ve,nu).call(this,le(this,ve,tu).call(this))},iu=function(){y(this,mr)!==void 0&&(ar.clearTimeout(y(this,mr)),V(this,mr,void 0))},lu=function(){y(this,vr)!==void 0&&(ar.clearInterval(y(this,vr)),V(this,vr,void 0))},su=function(){const l=y(this,ht).getQueryCache().build(y(this,ht),this.options);if(l===y(this,ue))return;const s=y(this,ue);V(this,ue,l),V(this,sl,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},Ph=function(l){Be.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(y(this,it))}),y(this,ht).getQueryCache().notify({query:y(this,ue),type:"observerResultsUpdated"})})},fh);function Rv(r,l){return wt(l.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&wt(l.retryOnMount,r)===!1)}function Wf(r,l){return Rv(r,l)||r.state.data!==void 0&&ou(r,l,l.refetchOnMount)}function ou(r,l,s){if(wt(l.enabled,r)!==!1&&bn(l.staleTime,r)!=="static"){const u=typeof s=="function"?s(r):s;return u==="always"||u!==!1&&xu(r,l)}return!1}function bf(r,l,s,u){return(r!==l||wt(u.enabled,r)===!1)&&(!s.suspense||r.state.status!=="error")&&xu(r,s)}function xu(r,l){return wt(l.enabled,r)!==!1&&r.isStaleByTime(bn(l.staleTime,r))}function Pv(r,l){return!Ds(r.getCurrentResult(),l)}var al,Gt,tt,yr,Yt,Dn,hh,Nv=(hh=class extends kh{constructor(l){super();X(this,Yt);X(this,al);X(this,Gt);X(this,tt);X(this,yr);V(this,al,l.client),this.mutationId=l.mutationId,V(this,tt,l.mutationCache),V(this,Gt,[]),this.state=l.state||Nh(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){y(this,Gt).includes(l)||(y(this,Gt).push(l),this.clearGcTimeout(),y(this,tt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){V(this,Gt,y(this,Gt).filter(s=>s!==l)),this.scheduleGc(),y(this,tt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){y(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():y(this,tt).remove(this))}continue(){var l;return((l=y(this,yr))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var p,v,x,S,k,C,L,O,F,I,T,_,W,Q,U,B,ie,fe;const s=()=>{le(this,Yt,Dn).call(this,{type:"continue"})},u={client:y(this,al),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,yr,Ch({fn:()=>this.options.mutationFn?this.options.mutationFn(l,u):Promise.reject(new Error("No mutationFn found")),onFail:(re,ce)=>{le(this,Yt,Dn).call(this,{type:"failed",failureCount:re,error:ce})},onPause:()=>{le(this,Yt,Dn).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,tt).canRun(this)}));const c=this.state.status==="pending",h=!y(this,yr).canStart();try{if(c)s();else{le(this,Yt,Dn).call(this,{type:"pending",variables:l,isPaused:h}),y(this,tt).config.onMutate&&await y(this,tt).config.onMutate(l,this,u);const ce=await((v=(p=this.options).onMutate)==null?void 0:v.call(p,l,u));ce!==this.state.context&&le(this,Yt,Dn).call(this,{type:"pending",context:ce,variables:l,isPaused:h})}const re=await y(this,yr).start();return await((S=(x=y(this,tt).config).onSuccess)==null?void 0:S.call(x,re,l,this.state.context,this,u)),await((C=(k=this.options).onSuccess)==null?void 0:C.call(k,re,l,this.state.context,u)),await((O=(L=y(this,tt).config).onSettled)==null?void 0:O.call(L,re,null,this.state.variables,this.state.context,this,u)),await((I=(F=this.options).onSettled)==null?void 0:I.call(F,re,null,l,this.state.context,u)),le(this,Yt,Dn).call(this,{type:"success",data:re}),re}catch(re){try{await((_=(T=y(this,tt).config).onError)==null?void 0:_.call(T,re,l,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((Q=(W=this.options).onError)==null?void 0:Q.call(W,re,l,this.state.context,u))}catch(ce){Promise.reject(ce)}try{await((B=(U=y(this,tt).config).onSettled)==null?void 0:B.call(U,void 0,re,this.state.variables,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((fe=(ie=this.options).onSettled)==null?void 0:fe.call(ie,void 0,re,l,this.state.context,u))}catch(ce){Promise.reject(ce)}throw le(this,Yt,Dn).call(this,{type:"error",error:re}),re}finally{y(this,tt).runNext(this)}}},al=new WeakMap,Gt=new WeakMap,tt=new WeakMap,yr=new WeakMap,Yt=new WeakSet,Dn=function(l){const s=u=>{switch(l.type){case"failed":return{...u,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...u,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:l.error,failureCount:u.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Be.batch(()=>{y(this,Gt).forEach(u=>{u.onMutationUpdate(l)}),y(this,tt).notify({mutation:this,type:"updated",action:l})})},hh);function Nh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cn,$t,ul,ph,_v=(ph=class extends li{constructor(l={}){super();X(this,cn);X(this,$t);X(this,ul);this.config=l,V(this,cn,new Set),V(this,$t,new Map),V(this,ul,0)}build(l,s,u){const c=new Nv({client:l,mutationCache:this,mutationId:++js(this,ul)._,options:l.defaultMutationOptions(s),state:u});return this.add(c),c}add(l){y(this,cn).add(l);const s=Ps(l);if(typeof s=="string"){const u=y(this,$t).get(s);u?u.push(l):y(this,$t).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(y(this,cn).delete(l)){const s=Ps(l);if(typeof s=="string"){const u=y(this,$t).get(s);if(u)if(u.length>1){const c=u.indexOf(l);c!==-1&&u.splice(c,1)}else u[0]===l&&y(this,$t).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Ps(l);if(typeof s=="string"){const u=y(this,$t).get(s),c=u==null?void 0:u.find(h=>h.state.status==="pending");return!c||c===l}else return!0}runNext(l){var u;const s=Ps(l);if(typeof s=="string"){const c=(u=y(this,$t).get(s))==null?void 0:u.find(h=>h!==l&&h.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Be.batch(()=>{y(this,cn).forEach(l=>{this.notify({type:"removed",mutation:l})}),y(this,cn).clear(),y(this,$t).clear()})}getAll(){return Array.from(y(this,cn))}find(l){const s={exact:!0,...l};return this.getAll().find(u=>Uf(s,u))}findAll(l={}){return this.getAll().filter(s=>Uf(l,s))}notify(l){Be.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return Be.batch(()=>Promise.all(l.map(s=>s.continue().catch(lt))))}},cn=new WeakMap,$t=new WeakMap,ul=new WeakMap,ph);function Ps(r){var l;return(l=r.options.scope)==null?void 0:l.id}var dn,$n,pt,fn,hn,Ls,au,mh,Tv=(mh=class extends li{constructor(s,u){super();X(this,hn);X(this,dn);X(this,$n);X(this,pt);X(this,fn);V(this,dn,s),this.setOptions(u),this.bindMethods(),le(this,hn,Ls).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var c;const u=this.options;this.options=y(this,dn).defaultMutationOptions(s),Ds(this.options,u)||y(this,dn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,pt),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&gr(u.mutationKey)!==gr(this.options.mutationKey)?this.reset():((c=y(this,pt))==null?void 0:c.state.status)==="pending"&&y(this,pt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=y(this,pt))==null||s.removeObserver(this)}onMutationUpdate(s){le(this,hn,Ls).call(this),le(this,hn,au).call(this,s)}getCurrentResult(){return y(this,$n)}reset(){var s;(s=y(this,pt))==null||s.removeObserver(this),V(this,pt,void 0),le(this,hn,Ls).call(this),le(this,hn,au).call(this)}mutate(s,u){var c;return V(this,fn,u),(c=y(this,pt))==null||c.removeObserver(this),V(this,pt,y(this,dn).getMutationCache().build(y(this,dn),this.options)),y(this,pt).addObserver(this),y(this,pt).execute(s)}},dn=new WeakMap,$n=new WeakMap,pt=new WeakMap,fn=new WeakMap,hn=new WeakSet,Ls=function(){var u;const s=((u=y(this,pt))==null?void 0:u.state)??Nh();V(this,$n,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},au=function(s){Be.batch(()=>{var u,c,h,p,v,x,S,k;if(y(this,fn)&&this.hasListeners()){const C=y(this,$n).variables,L=y(this,$n).context,O={client:y(this,dn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(c=(u=y(this,fn)).onSuccess)==null||c.call(u,s.data,C,L,O)}catch(F){Promise.reject(F)}try{(p=(h=y(this,fn)).onSettled)==null||p.call(h,s.data,null,C,L,O)}catch(F){Promise.reject(F)}}else if((s==null?void 0:s.type)==="error"){try{(x=(v=y(this,fn)).onError)==null||x.call(v,s.error,C,L,O)}catch(F){Promise.reject(F)}try{(k=(S=y(this,fn)).onSettled)==null||k.call(S,void 0,s.error,C,L,O)}catch(F){Promise.reject(F)}}}this.listeners.forEach(C=>{C(y(this,$n))})})},mh),Jt,vh,Lv=(vh=class extends li{constructor(l={}){super();X(this,Jt);this.config=l,V(this,Jt,new Map)}build(l,s,u){const c=s.queryKey,h=s.queryHash??vu(c,s);let p=this.get(h);return p||(p=new kv({client:l,queryKey:c,queryHash:h,options:l.defaultQueryOptions(s),state:u,defaultOptions:l.getQueryDefaults(c)}),this.add(p)),p}add(l){y(this,Jt).has(l.queryHash)||(y(this,Jt).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=y(this,Jt).get(l.queryHash);s&&(l.destroy(),s===l&&y(this,Jt).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Be.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return y(this,Jt).get(l)}getAll(){return[...y(this,Jt).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(u=>Af(s,u))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(u=>Af(l,u)):s}notify(l){Be.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Jt=new WeakMap,vh),Ie,Bn,Qn,ti,ni,Vn,ri,ii,yh,Iv=(yh=class{constructor(r={}){X(this,Ie);X(this,Bn);X(this,Qn);X(this,ti);X(this,ni);X(this,Vn);X(this,ri);X(this,ii);V(this,Ie,r.queryCache||new Lv),V(this,Bn,r.mutationCache||new _v),V(this,Qn,r.defaultOptions||{}),V(this,ti,new Map),V(this,ni,new Map),V(this,Vn,0)}mount(){js(this,Vn)._++,y(this,Vn)===1&&(V(this,ri,mu.subscribe(async r=>{r&&(await this.resumePausedMutations(),y(this,Ie).onFocus())})),V(this,ii,Fs.subscribe(async r=>{r&&(await this.resumePausedMutations(),y(this,Ie).onOnline())})))}unmount(){var r,l;js(this,Vn)._--,y(this,Vn)===0&&((r=y(this,ri))==null||r.call(this),V(this,ri,void 0),(l=y(this,ii))==null||l.call(this),V(this,ii,void 0))}isFetching(r){return y(this,Ie).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return y(this,Bn).findAll({...r,status:"pending"}).length}getQueryData(r){var s;const l=this.defaultQueryOptions({queryKey:r});return(s=y(this,Ie).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(r){const l=this.defaultQueryOptions(r),s=y(this,Ie).build(this,l),u=s.state.data;return u===void 0?this.fetchQuery(r):(r.revalidateIfStale&&s.isStaleByTime(bn(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(u))}getQueriesData(r){return y(this,Ie).findAll(r).map(({queryKey:l,state:s})=>{const u=s.data;return[l,u]})}setQueryData(r,l,s){const u=this.defaultQueryOptions({queryKey:r}),c=y(this,Ie).get(u.queryHash),h=c==null?void 0:c.state.data,p=fv(l,h);if(p!==void 0)return y(this,Ie).build(this,u).setData(p,{...s,manual:!0})}setQueriesData(r,l,s){return Be.batch(()=>y(this,Ie).findAll(r).map(({queryKey:u})=>[u,this.setQueryData(u,l,s)]))}getQueryState(r){var s;const l=this.defaultQueryOptions({queryKey:r});return(s=y(this,Ie).get(l.queryHash))==null?void 0:s.state}removeQueries(r){const l=y(this,Ie);Be.batch(()=>{l.findAll(r).forEach(s=>{l.remove(s)})})}resetQueries(r,l){const s=y(this,Ie);return Be.batch(()=>(s.findAll(r).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...r},l)))}cancelQueries(r,l={}){const s={revert:!0,...l},u=Be.batch(()=>y(this,Ie).findAll(r).map(c=>c.cancel(s)));return Promise.all(u).then(lt).catch(lt)}invalidateQueries(r,l={}){return Be.batch(()=>(y(this,Ie).findAll(r).forEach(s=>{s.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},l)))}refetchQueries(r,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},u=Be.batch(()=>y(this,Ie).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let h=c.fetch(void 0,s);return s.throwOnError||(h=h.catch(lt)),c.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(u).then(lt)}fetchQuery(r){const l=this.defaultQueryOptions(r);l.retry===void 0&&(l.retry=!1);const s=y(this,Ie).build(this,l);return s.isStaleByTime(bn(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(lt).catch(lt)}fetchInfiniteQuery(r){return r._type="infinite",this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(lt).catch(lt)}ensureInfiniteQueryData(r){return r._type="infinite",this.ensureQueryData(r)}resumePausedMutations(){return Fs.isOnline()?y(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Ie)}getMutationCache(){return y(this,Bn)}getDefaultOptions(){return y(this,Qn)}setDefaultOptions(r){V(this,Qn,r)}setQueryDefaults(r,l){y(this,ti).set(gr(r),{queryKey:r,defaultOptions:l})}getQueryDefaults(r){const l=[...y(this,ti).values()],s={};return l.forEach(u=>{nl(r,u.queryKey)&&Object.assign(s,u.defaultOptions)}),s}setMutationDefaults(r,l){y(this,ni).set(gr(r),{mutationKey:r,defaultOptions:l})}getMutationDefaults(r){const l=[...y(this,ni).values()],s={};return l.forEach(u=>{nl(r,u.mutationKey)&&Object.assign(s,u.defaultOptions)}),s}defaultQueryOptions(r){if(r._defaulted)return r;const l={...y(this,Qn).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return l.queryHash||(l.queryHash=vu(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===yu&&(l.enabled=!1),l}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...y(this,Qn).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){y(this,Ie).clear(),y(this,Bn).clear()}},Ie=new WeakMap,Bn=new WeakMap,Qn=new WeakMap,ti=new WeakMap,ni=new WeakMap,Vn=new WeakMap,ri=new WeakMap,ii=new WeakMap,yh),_h=E.createContext(void 0),qn=r=>{const l=E.useContext(_h);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Ov=({client:r,children:l})=>(E.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),d.jsx(_h.Provider,{value:r,children:l})),Th=E.createContext(!1),Dv=()=>E.useContext(Th);Th.Provider;function Fv(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Mv=E.createContext(Fv()),zv=()=>E.useContext(Mv),Av=(r,l,s)=>{const u=s!=null&&s.state.error&&typeof r.throwOnError=="function"?gu(r.throwOnError,[s.state.error,s]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||u)&&(l.isReset()||(r.retryOnMount=!1))},Uv=r=>{E.useEffect(()=>{r.clearReset()},[r])},$v=({result:r,errorResetBoundary:l,throwOnError:s,query:u,suspense:c})=>r.isError&&!l.isReset()&&!r.isFetching&&u&&(c&&r.data===void 0||gu(s,[r.error,u])),Bv=r=>{if(r.suspense){const s=c=>c==="static"?c:Math.max(c??1e3,1e3),u=r.staleTime;r.staleTime=typeof u=="function"?(...c)=>s(u(...c)):s(u),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Qv=(r,l)=>r.isLoading&&r.isFetching&&!l,Vv=(r,l)=>(r==null?void 0:r.suspense)&&l.isPending,Kf=(r,l,s)=>l.fetchOptimistic(r).catch(()=>{s.clearReset()});function Hv(r,l,s){var L,O,F,I;const u=Dv(),c=zv(),h=qn(),p=h.defaultQueryOptions(r);(O=(L=h.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||O.call(L,p);const v=h.getQueryCache().get(p.queryHash);p._optimisticResults=u?"isRestoring":"optimistic",Bv(p),Av(p,c,v),Uv(c);const x=!h.getQueryCache().get(p.queryHash),[S]=E.useState(()=>new l(h,p)),k=S.getOptimisticResult(p),C=!u&&r.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(T=>{const _=C?S.subscribe(Be.batchCalls(T)):lt;return S.updateResult(),_},[S,C]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),E.useEffect(()=>{S.setOptions(p)},[p,S]),Vv(p,k))throw Kf(p,S,c);if($v({result:k,errorResetBoundary:c,throwOnError:p.throwOnError,query:v,suspense:p.suspense}))throw k.error;if((I=(F=h.getDefaultOptions().queries)==null?void 0:F._experimental_afterQuery)==null||I.call(F,p,k),p.experimental_prefetchInRender&&!rl.isServer()&&Qv(k,u)){const T=x?Kf(p,S,c):v==null?void 0:v.promise;T==null||T.catch(lt).finally(()=>{S.updateResult()})}return p.notifyOnChangeProps?k:S.trackResult(k)}function cl(r,l){return Hv(r,jv)}function Qt(r,l){const s=qn(),[u]=E.useState(()=>new Tv(s,r));E.useEffect(()=>{u.setOptions(r)},[u,r]);const c=E.useSyncExternalStore(E.useCallback(p=>u.subscribe(Be.batchCalls(p)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),h=E.useCallback((p,v)=>{u.mutate(p,v).catch(lt)},[u]);if(c.error&&gu(u.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}/** * react-router v7.15.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var qf="popstate";function Gf(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function Wv(r={}){function l(u,c){var S;let h=(S=c.state)==null?void 0:S.masked,{pathname:p,search:v,hash:x}=h||u.location;return uu("",{pathname:p,search:v,hash:x},c.state&&c.state.usr||null,c.state&&c.state.key||"default",h?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,c){return typeof c=="string"?c:il(c)}return Kv(l,s,null,r)}function Pe(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}function Lt(r,l){if(!r){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function bv(){return Math.random().toString(36).substring(2,10)}function Yf(r,l){return{usr:r.state,key:r.key,idx:l,masked:r.mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function uu(r,l,s=null,u,c){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof l=="string"?si(l):l,state:s,key:l&&l.key||u||bv(),mask:c}}function il({pathname:r="/",search:l="",hash:s=""}){return l&&l!=="?"&&(r+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function si(r){let l={};if(r){let s=r.indexOf("#");s>=0&&(l.hash=r.substring(s),r=r.substring(0,s));let u=r.indexOf("?");u>=0&&(l.search=r.substring(u),r=r.substring(0,u)),r&&(l.pathname=r)}return l}function Kv(r,l,s,u={}){let{window:c=document.defaultView,v5Compat:h=!1}=u,p=c.history,v="POP",x=null,S=k();S==null&&(S=0,p.replaceState({...p.state,idx:S},""));function k(){return(p.state||{idx:null}).idx}function C(){v="POP";let T=k(),_=T==null?null:T-S;S=T,x&&x({action:v,location:I.location,delta:_})}function L(T,_){v="PUSH";let W=Gf(T)?T:uu(I.location,T,_);S=k()+1;let Q=Yf(W,S),U=I.createHref(W.mask||W);try{p.pushState(Q,"",U)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(U)}h&&x&&x({action:v,location:I.location,delta:1})}function O(T,_){v="REPLACE";let W=Gf(T)?T:uu(I.location,T,_);S=k();let Q=Yf(W,S),U=I.createHref(W.mask||W);p.replaceState(Q,"",U),h&&x&&x({action:v,location:I.location,delta:0})}function F(T){return qv(T)}let I={get action(){return v},get location(){return r(c,p)},listen(T){if(x)throw new Error("A history only accepts one active listener");return c.addEventListener(qf,C),x=T,()=>{c.removeEventListener(qf,C),x=null}},createHref(T){return l(c,T)},createURL:F,encodeLocation(T){let _=F(T);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:L,replace:O,go(T){return p.go(T)}};return I}function qv(r,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(s,"No window.location.(origin|href) available to create URL");let u=typeof r=="string"?r:il(r);return u=u.replace(/ $/,"%20"),!l&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function Lh(r,l,s="/"){return Gv(r,l,s,!1)}function Gv(r,l,s,u,c){let h=typeof l=="string"?si(l):l,p=pn(h.pathname||"/",s);if(p==null)return null;let v=Yv(r),x=null,S=ay(p);for(let k=0;x==null&&k{let k={relativePath:S===void 0?p.path||"":S,caseSensitive:p.caseSensitive===!0,childrenIndex:v,route:p};if(k.relativePath.startsWith("/")){if(!k.relativePath.startsWith(u)&&x)return;Pe(k.relativePath.startsWith(u),`Absolute route path "${k.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),k.relativePath=k.relativePath.slice(u.length)}let C=Bt([u,k.relativePath]),L=s.concat(k);p.children&&p.children.length>0&&(Pe(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${C}".`),Ih(p.children,l,L,C,x)),!(p.path==null&&!p.index)&&l.push({path:C,score:iy(C,p.index),routesMeta:L})};return r.forEach((p,v)=>{var x;if(p.path===""||!((x=p.path)!=null&&x.includes("?")))h(p,v);else for(let S of Oh(p.path))h(p,v,!0,S)}),l}function Oh(r){let l=r.split("/");if(l.length===0)return[];let[s,...u]=l,c=s.endsWith("?"),h=s.replace(/\?$/,"");if(u.length===0)return c?[h,""]:[h];let p=Oh(u.join("/")),v=[];return v.push(...p.map(x=>x===""?h:[h,x].join("/"))),c&&v.push(...p),v.map(x=>r.startsWith("/")&&x===""?"/":x)}function Jv(r){r.sort((l,s)=>l.score!==s.score?s.score-l.score:ly(l.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var Xv=/^:[\w-]+$/,Zv=3,ey=2,ty=1,ny=10,ry=-2,Jf=r=>r==="*";function iy(r,l){let s=r.split("/"),u=s.length;return s.some(Jf)&&(u+=ry),l&&(u+=ey),s.filter(c=>!Jf(c)).reduce((c,h)=>c+(Xv.test(h)?Zv:h===""?ty:ny),u)}function ly(r,l){return r.length===l.length&&r.slice(0,-1).every((u,c)=>u===l[c])?r[r.length-1]-l[l.length-1]:0}function sy(r,l,s=!1){let{routesMeta:u}=r,c={},h="/",p=[];for(let v=0;v{if(k==="*"){let F=v[L]||"";p=h.slice(0,h.length-F.length).replace(/(.)\/+$/,"$1")}const O=v[L];return C&&!O?S[k]=void 0:S[k]=(O||"").replace(/%2F/g,"/"),S},{}),pathname:h,pathnameBase:p,pattern:r}}function oy(r,l=!1,s=!0){Lt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let u=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,v,x,S,k)=>{if(u.push({paramName:v,isOptional:x!=null}),x){let C=k.charAt(S+p.length);return C&&C!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(u.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),u]}function ay(r){try{return r.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Lt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),r}}function pn(r,l){if(l==="/")return r;if(!r.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,u=r.charAt(s);return u&&u!=="/"?null:r.slice(s)||"/"}var uy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function cy(r,l="/"){let{pathname:s,search:u="",hash:c=""}=typeof r=="string"?si(r):r,h;return s?(s=Dh(s),s.startsWith("/")?h=Xf(s.substring(1),"/"):h=Xf(s,l)):h=l,{pathname:h,search:hy(u),hash:py(c)}}function Xf(r,l){let s=zs(l).split("/");return r.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Va(r,l,s,u){return`Cannot include a '${r}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function dy(r){return r.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Su(r){let l=dy(r);return l.map((s,u)=>u===l.length-1?s.pathname:s.pathnameBase)}function Us(r,l,s,u=!1){let c;typeof r=="string"?c=si(r):(c={...r},Pe(!c.pathname||!c.pathname.includes("?"),Va("?","pathname","search",c)),Pe(!c.pathname||!c.pathname.includes("#"),Va("#","pathname","hash",c)),Pe(!c.search||!c.search.includes("#"),Va("#","search","hash",c)));let h=r===""||c.pathname==="",p=h?"/":c.pathname,v;if(p==null)v=s;else{let C=l.length-1;if(!u&&p.startsWith("..")){let L=p.split("/");for(;L[0]==="..";)L.shift(),C-=1;c.pathname=L.join("/")}v=C>=0?l[C]:"/"}let x=cy(c,v),S=p&&p!=="/"&&p.endsWith("/"),k=(h||p===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(S||k)&&(x.pathname+="/"),x}var Dh=r=>r.replace(/\/\/+/g,"/"),Bt=r=>Dh(r.join("/")),zs=r=>r.replace(/\/+$/,""),fy=r=>zs(r).replace(/^\/*/,"/"),hy=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,py=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,my=class{constructor(r,l,s,u=!1){this.status=r,this.statusText=l||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function vy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function yy(r){let l=r.map(s=>s.route.path).filter(Boolean);return Bt(l)||"/"}var Fh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mh(r,l){let s=r;if(typeof s!="string"||!uy.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,c=!1;if(Fh)try{let h=new URL(window.location.href),p=s.startsWith("//")?new URL(h.protocol+s):new URL(s),v=pn(p.pathname,l);p.origin===h.origin&&v!=null?s=v+p.search+p.hash:c=!0}catch{Lt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zh=["POST","PUT","PATCH","DELETE"];new Set(zh);var gy=["GET",...zh];new Set(gy);var oi=E.createContext(null);oi.displayName="DataRouter";var $s=E.createContext(null);$s.displayName="DataRouterState";var Ah=E.createContext(!1);function xy(){return E.useContext(Ah)}var Uh=E.createContext({isTransitioning:!1});Uh.displayName="ViewTransition";var Sy=E.createContext(new Map);Sy.displayName="Fetchers";var wy=E.createContext(null);wy.displayName="Await";var Et=E.createContext(null);Et.displayName="Navigation";var dl=E.createContext(null);dl.displayName="Location";var Vt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Vt.displayName="Route";var wu=E.createContext(null);wu.displayName="RouteError";var $h="REACT_ROUTER_ERROR",Ey="REDIRECT",Cy="ROUTE_ERROR_RESPONSE";function ky(r){if(r.startsWith(`${$h}:${Ey}:{`))try{let l=JSON.parse(r.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function jy(r){if(r.startsWith(`${$h}:${Cy}:{`))try{let l=JSON.parse(r.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new my(l.status,l.statusText,l.data)}catch{}}function Ry(r,{relative:l}={}){Pe(ai(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:u}=E.useContext(Et),{hash:c,pathname:h,search:p}=hl(r,{relative:l}),v=h;return s!=="/"&&(v=h==="/"?s:Bt([s,h])),u.createHref({pathname:v,search:p,hash:c})}function ai(){return E.useContext(dl)!=null}function Ct(){return Pe(ai(),"useLocation() may be used only in the context of a component."),E.useContext(dl).location}var Bh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qh(r){E.useContext(Et).static||E.useLayoutEffect(r)}function fl(){let{isDataRoute:r}=E.useContext(Vt);return r?Uy():Py()}function Py(){Pe(ai(),"useNavigate() may be used only in the context of a component.");let r=E.useContext(oi),{basename:l,navigator:s}=E.useContext(Et),{matches:u}=E.useContext(Vt),{pathname:c}=Ct(),h=JSON.stringify(Su(u)),p=E.useRef(!1);return Qh(()=>{p.current=!0}),E.useCallback((x,S={})=>{if(Lt(p.current,Bh),!p.current)return;if(typeof x=="number"){s.go(x);return}let k=Us(x,JSON.parse(h),c,S.relative==="path");r==null&&l!=="/"&&(k.pathname=k.pathname==="/"?l:Bt([l,k.pathname])),(S.replace?s.replace:s.push)(k,S.state,S)},[l,s,h,c,r])}E.createContext(null);function Vh(){let{matches:r}=E.useContext(Vt),l=r[r.length-1];return(l==null?void 0:l.params)??{}}function hl(r,{relative:l}={}){let{matches:s}=E.useContext(Vt),{pathname:u}=Ct(),c=JSON.stringify(Su(s));return E.useMemo(()=>Us(r,JSON.parse(c),u,l==="path"),[r,c,u,l])}function Ny(r,l){return Hh(r,l)}function Hh(r,l,s){var T;Pe(ai(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=E.useContext(Et),{matches:c}=E.useContext(Vt),h=c[c.length-1],p=h?h.params:{},v=h?h.pathname:"/",x=h?h.pathnameBase:"/",S=h&&h.route;{let _=S&&S.path||"";bh(v,!S||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${v}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let k=Ct(),C;if(l){let _=typeof l=="string"?si(l):l;Pe(x==="/"||((T=_.pathname)==null?void 0:T.startsWith(x)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${_.pathname}" was given in the \`location\` prop.`),C=_}else C=k;let L=C.pathname||"/",O=L;if(x!=="/"){let _=x.replace(/^\//,"").split("/");O="/"+L.replace(/^\//,"").split("/").slice(_.length).join("/")}let F=s&&s.state.matches.length?s.state.matches.map(_=>Object.assign(_,{route:s.manifest[_.route.id]||_.route})):Lh(r,{pathname:O});Lt(S||F!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),Lt(F==null||F[F.length-1].route.element!==void 0||F[F.length-1].route.Component!==void 0||F[F.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let I=Oy(F&&F.map(_=>Object.assign({},_,{params:Object.assign({},p,_.params),pathname:Bt([x,u.encodeLocation?u.encodeLocation(_.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?x:Bt([x,u.encodeLocation?u.encodeLocation(_.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),c,s);return l&&I?E.createElement(dl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...C},navigationType:"POP"}},I):I}function _y(){let r=Ay(),l=vy(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),s=r instanceof Error?r.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},p=null;return console.error("Error handled by React Router default ErrorBoundary:",r),p=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:h},"ErrorBoundary")," or"," ",E.createElement("code",{style:h},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},l),s?E.createElement("pre",{style:c},s):null,p)}var Ty=E.createElement(_y,null),Wh=class extends E.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,l){return l.location!==r.location||l.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:l.error,location:l.location,revalidation:r.revalidation||l.revalidation}}componentDidCatch(r,l){this.props.onError?this.props.onError(r,l):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const s=jy(r.digest);s&&(r=s)}let l=r!==void 0?E.createElement(Vt.Provider,{value:this.props.routeContext},E.createElement(wu.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?E.createElement(Ly,{error:r},l):l}};Wh.contextType=Ah;var Ha=new WeakMap;function Ly({children:r,error:l}){let{basename:s}=E.useContext(Et);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let u=ky(l.digest);if(u){let c=Ha.get(l);if(c)throw c;let h=Mh(u.location,s);if(Fh&&!Ha.get(l))if(h.isExternal||u.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:u.replace}));throw Ha.set(l,p),p}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return r}function Iy({routeContext:r,match:l,children:s}){let u=E.useContext(oi);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),E.createElement(Vt.Provider,{value:r},s)}function Oy(r,l=[],s){let u=s==null?void 0:s.state;if(r==null){if(!u)return null;if(u.errors)r=u.matches;else if(l.length===0&&!u.initialized&&u.matches.length>0)r=u.matches;else return null}let c=r,h=u==null?void 0:u.errors;if(h!=null){let k=c.findIndex(C=>C.route.id&&(h==null?void 0:h[C.route.id])!==void 0);Pe(k>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),c=c.slice(0,Math.min(c.length,k+1))}let p=!1,v=-1;if(s&&u){p=u.renderFallback;for(let k=0;k=0?c=c.slice(0,v+1):c=[c[0]];break}}}}let x=s==null?void 0:s.onError,S=u&&x?(k,C)=>{var L,O;x(k,{location:u.location,params:((O=(L=u.matches)==null?void 0:L[0])==null?void 0:O.params)??{},pattern:yy(u.matches),errorInfo:C})}:void 0;return c.reduceRight((k,C,L)=>{let O,F=!1,I=null,T=null;u&&(O=h&&C.route.id?h[C.route.id]:void 0,I=C.route.errorElement||Ty,p&&(v<0&&L===0?(bh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),F=!0,T=null):v===L&&(F=!0,T=C.route.hydrateFallbackElement||null)));let _=l.concat(c.slice(0,L+1)),W=()=>{let Q;return O?Q=I:F?Q=T:C.route.Component?Q=E.createElement(C.route.Component,null):C.route.element?Q=C.route.element:Q=k,E.createElement(Iy,{match:C,routeContext:{outlet:k,matches:_,isDataRoute:u!=null},children:Q})};return u&&(C.route.ErrorBoundary||C.route.errorElement||L===0)?E.createElement(Wh,{location:u.location,revalidation:u.revalidation,component:I,error:O,children:W(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:S}):W()},null)}function Eu(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dy(r){let l=E.useContext(oi);return Pe(l,Eu(r)),l}function Fy(r){let l=E.useContext($s);return Pe(l,Eu(r)),l}function My(r){let l=E.useContext(Vt);return Pe(l,Eu(r)),l}function Cu(r){let l=My(r),s=l.matches[l.matches.length-1];return Pe(s.route.id,`${r} can only be used on routes that contain a unique "id"`),s.route.id}function zy(){return Cu("useRouteId")}function Ay(){var u;let r=E.useContext(wu),l=Fy("useRouteError"),s=Cu("useRouteError");return r!==void 0?r:(u=l.errors)==null?void 0:u[s]}function Uy(){let{router:r}=Dy("useNavigate"),l=Cu("useNavigate"),s=E.useRef(!1);return Qh(()=>{s.current=!0}),E.useCallback(async(c,h={})=>{Lt(s.current,Bh),s.current&&(typeof c=="number"?await r.navigate(c):await r.navigate(c,{fromRouteId:l,...h}))},[r,l])}var Zf={};function bh(r,l,s){!l&&!Zf[r]&&(Zf[r]=!0,Lt(!1,s))}E.memo($y);function $y({routes:r,manifest:l,future:s,state:u,isStatic:c,onError:h}){return Hh(r,void 0,{manifest:l,state:u,isStatic:c,onError:h})}function cu({to:r,replace:l,state:s,relative:u}){Pe(ai()," may be used only in the context of a component.");let{static:c}=E.useContext(Et);Lt(!c," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:h}=E.useContext(Vt),{pathname:p}=Ct(),v=fl(),x=Us(r,Su(h),p,u==="path"),S=JSON.stringify(x);return E.useEffect(()=>{v(JSON.parse(S),{replace:l,state:s,relative:u})},[v,S,u,l,s]),null}function Ut(r){Pe(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function By({basename:r="/",children:l=null,location:s,navigationType:u="POP",navigator:c,static:h=!1,useTransitions:p}){Pe(!ai(),"You cannot render a inside another . You should never have more than one in your app.");let v=r.replace(/^\/*/,"/"),x=E.useMemo(()=>({basename:v,navigator:c,static:h,useTransitions:p,future:{}}),[v,c,h,p]);typeof s=="string"&&(s=si(s));let{pathname:S="/",search:k="",hash:C="",state:L=null,key:O="default",mask:F}=s,I=E.useMemo(()=>{let T=pn(S,v);return T==null?null:{location:{pathname:T,search:k,hash:C,state:L,key:O,mask:F},navigationType:u}},[v,S,k,C,L,O,u,F]);return Lt(I!=null,` is not able to match the URL "${S}${k}${C}" because it does not start with the basename, so the won't render anything.`),I==null?null:E.createElement(Et.Provider,{value:x},E.createElement(dl.Provider,{children:l,value:I}))}function Qy({children:r,location:l}){return Ny(du(r),l)}function du(r,l=[]){let s=[];return E.Children.forEach(r,(u,c)=>{if(!E.isValidElement(u))return;let h=[...l,c];if(u.type===E.Fragment){s.push.apply(s,du(u.props.children,h));return}Pe(u.type===Ut,`[${typeof u.type=="string"?u.type:u.type.name}] is not a component. All component children of must be a or `),Pe(!u.props.index||!u.props.children,"An index route cannot have child routes.");let p={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(p.children=du(u.props.children,h)),s.push(p)}),s}var Is="get",Os="application/x-www-form-urlencoded";function Bs(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function Vy(r){return Bs(r)&&r.tagName.toLowerCase()==="button"}function Hy(r){return Bs(r)&&r.tagName.toLowerCase()==="form"}function Wy(r){return Bs(r)&&r.tagName.toLowerCase()==="input"}function by(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function Ky(r,l){return r.button===0&&(!l||l==="_self")&&!by(r)}function fu(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((l,s)=>{let u=r[s];return l.concat(Array.isArray(u)?u.map(c=>[s,c]):[[s,u]])},[]))}function qy(r,l){let s=fu(r);return l&&l.forEach((u,c)=>{s.has(c)||l.getAll(c).forEach(h=>{s.append(c,h)})}),s}var Ns=null;function Gy(){if(Ns===null)try{new FormData(document.createElement("form"),0),Ns=!1}catch{Ns=!0}return Ns}var Yy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wa(r){return r!=null&&!Yy.has(r)?(Lt(!1,`"${r}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Os}"`),null):r}function Jy(r,l){let s,u,c,h,p;if(Hy(r)){let v=r.getAttribute("action");u=v?pn(v,l):null,s=r.getAttribute("method")||Is,c=Wa(r.getAttribute("enctype"))||Os,h=new FormData(r)}else if(Vy(r)||Wy(r)&&(r.type==="submit"||r.type==="image")){let v=r.form;if(v==null)throw new Error('Cannot submit a