@agi-cli/web-ui 0.1.96 → 0.1.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@
46
46
  `+Y[m].replace(" at new "," at ");return r.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",r.displayName)),de}while(1<=m&&0<=w);break}}}finally{He=!1,Error.prepareStackTrace=u}return(u=r?r.displayName||r.name:"")?ze(u):""}function Ee(r,a){switch(r.tag){case 26:case 27:case 5:return ze(r.type);case 16:return ze("Lazy");case 13:return r.child!==a&&a!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return De(r.type,!1);case 11:return De(r.type.render,!1);case 1:return De(r.type,!0);case 31:return ze("Activity");default:return""}}function wt(r){try{var a="",u=null;do a+=Ee(r,u),u=r,r=r.return;while(r);return a}catch(m){return`
47
47
  Error generating stack: `+m.message+`
48
48
  `+m.stack}}var Mt=Object.prototype.hasOwnProperty,ft=e.unstable_scheduleCallback,Vt=e.unstable_cancelCallback,Bt=e.unstable_shouldYield,Ne=e.unstable_requestPaint,Oe=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Ce=e.unstable_LowPriority,Ie=e.unstable_IdlePriority,pt=e.log,Fe=e.unstable_setDisableYieldValue,mt=null,at=null;function dt(r){if(typeof pt=="function"&&Fe(r),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(mt,r)}catch{}}var Je=Math.clz32?Math.clz32:Nn,nn=Math.log,Wt=Math.LN2;function Nn(r){return r>>>=0,r===0?32:31-(nn(r)/Wt|0)|0}var gt=256,Xn=262144,na=4194304;function Zn(r){var a=r&42;if(a!==0)return a;switch(r&-r){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Si(r,a,u){var m=r.pendingLanes;if(m===0)return 0;var w=0,A=r.suspendedLanes,D=r.pingedLanes;r=r.warmLanes;var q=m&134217727;return q!==0?(m=q&~A,m!==0?w=Zn(m):(D&=q,D!==0?w=Zn(D):u||(u=q&~r,u!==0&&(w=Zn(u))))):(q=m&~A,q!==0?w=Zn(q):D!==0?w=Zn(D):u||(u=m&~r,u!==0&&(w=Zn(u)))),w===0?0:a!==0&&a!==w&&(a&A)===0&&(A=w&-w,u=a&-a,A>=u||A===32&&(u&4194048)!==0)?a:w}function Pr(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function os(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A_(){var r=na;return na<<=1,(na&62914560)===0&&(na=4194304),r}function ac(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function ls(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ML(r,a,u,m,w,A){var D=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var q=r.entanglements,Y=r.expirationTimes,re=r.hiddenUpdates;for(u=D&~u;0<u;){var de=31-Je(u),pe=1<<de;q[de]=0,Y[de]=-1;var ae=re[de];if(ae!==null)for(re[de]=null,de=0;de<ae.length;de++){var oe=ae[de];oe!==null&&(oe.lane&=-536870913)}u&=~pe}m!==0&&R_(r,m,0),A!==0&&w===0&&r.tag!==0&&(r.suspendedLanes|=A&~(D&~a))}function R_(r,a,u){r.pendingLanes|=a,r.suspendedLanes&=~a;var m=31-Je(a);r.entangledLanes|=a,r.entanglements[m]=r.entanglements[m]|1073741824|u&261930}function k_(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var m=31-Je(u),w=1<<m;w&a|r[m]&a&&(r[m]|=a),u&=~w}}function N_(r,a){var u=a&-a;return u=(u&42)!==0?1:sc(u),(u&(r.suspendedLanes|a))!==0?0:u}function sc(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function oc(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function O_(){var r=J.p;return r!==0?r:(r=window.event,r===void 0?32:gx(r.type))}function I_(r,a){var u=J.p;try{return J.p=r,a()}finally{J.p=u}}var Ur=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Ur,rn="__reactProps$"+Ur,ra="__reactContainer$"+Ur,lc="__reactEvents$"+Ur,BL="__reactListeners$"+Ur,FL="__reactHandles$"+Ur,L_="__reactResources$"+Ur,us="__reactMarker$"+Ur;function uc(r){delete r[Ut],delete r[rn],delete r[lc],delete r[BL],delete r[FL]}function ia(r){var a=r[Ut];if(a)return a;for(var u=r.parentNode;u;){if(a=u[ra]||u[Ut]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=ex(r);r!==null;){if(u=r[Ut])return u;r=ex(r)}return a}r=u,u=r.parentNode}return null}function aa(r){if(r=r[Ut]||r[ra]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function cs(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function sa(r){var a=r[L_];return a||(a=r[L_]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ft(r){r[us]=!0}var D_=new Set,M_={};function Ei(r,a){oa(r,a),oa(r+"Capture",a)}function oa(r,a){for(M_[r]=a,r=0;r<a.length;r++)D_.add(a[r])}var PL=RegExp("^[: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]*$"),B_={},F_={};function UL(r){return Mt.call(F_,r)?!0:Mt.call(B_,r)?!1:PL.test(r)?F_[r]=!0:(B_[r]=!0,!1)}function Do(r,a,u){if(UL(a))if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+u)}}function Mo(r,a,u){if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+u)}}function pr(r,a,u,m){if(m===null)r.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}r.setAttributeNS(a,u,""+m)}}function On(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function P_(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function jL(r,a,u){var m=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var w=m.get,A=m.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return w.call(this)},set:function(D){u=""+D,A.call(this,D)}}),Object.defineProperty(r,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(D){u=""+D},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function cc(r){if(!r._valueTracker){var a=P_(r)?"checked":"value";r._valueTracker=jL(r,a,""+r[a])}}function U_(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return r&&(m=P_(r)?r.checked?"true":"false":r.value),r=m,r!==u?(a.setValue(r),!0):!1}function Bo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var zL=/[\n"\\]/g;function In(r){return r.replace(zL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function dc(r,a,u,m,w,A,D,q){r.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.type=D:r.removeAttribute("type"),a!=null?D==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+On(a)):r.value!==""+On(a)&&(r.value=""+On(a)):D!=="submit"&&D!=="reset"||r.removeAttribute("value"),a!=null?hc(r,D,On(a)):u!=null?hc(r,D,On(u)):m!=null&&r.removeAttribute("value"),w==null&&A!=null&&(r.defaultChecked=!!A),w!=null&&(r.checked=w&&typeof w!="function"&&typeof w!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?r.name=""+On(q):r.removeAttribute("name")}function j_(r,a,u,m,w,A,D,q){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(r.type=A),a!=null||u!=null){if(!(A!=="submit"&&A!=="reset"||a!=null)){cc(r);return}u=u!=null?""+On(u):"",a=a!=null?""+On(a):u,q||a===r.value||(r.value=a),r.defaultValue=a}m=m??w,m=typeof m!="function"&&typeof m!="symbol"&&!!m,r.checked=q?r.checked:!!m,r.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(r.name=D),cc(r)}function hc(r,a,u){a==="number"&&Bo(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function la(r,a,u,m){if(r=r.options,a){a={};for(var w=0;w<u.length;w++)a["$"+u[w]]=!0;for(u=0;u<r.length;u++)w=a.hasOwnProperty("$"+r[u].value),r[u].selected!==w&&(r[u].selected=w),w&&m&&(r[u].defaultSelected=!0)}else{for(u=""+On(u),a=null,w=0;w<r.length;w++){if(r[w].value===u){r[w].selected=!0,m&&(r[w].defaultSelected=!0);return}a!==null||r[w].disabled||(a=r[w])}a!==null&&(a.selected=!0)}}function z_(r,a,u){if(a!=null&&(a=""+On(a),a!==r.value&&(r.value=a),u==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=u!=null?""+On(u):""}function H_(r,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(i(92));if(K(m)){if(1<m.length)throw Error(i(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=On(a),r.defaultValue=u,m=r.textContent,m===u&&m!==""&&m!==null&&(r.value=m),cc(r)}function ua(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}var HL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function q_(r,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":m?r.setProperty(a,u):typeof u!="number"||u===0||HL.has(a)?a==="float"?r.cssFloat=u:r[a]=(""+u).trim():r[a]=u+"px"}function $_(r,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?r.setProperty(m,""):m==="float"?r.cssFloat="":r[m]="");for(var w in a)m=a[w],a.hasOwnProperty(w)&&u[w]!==m&&q_(r,w,m)}else for(var A in a)a.hasOwnProperty(A)&&q_(r,A,a[A])}function fc(r){if(r.indexOf("-")===-1)return!1;switch(r){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 qL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$L=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fo(r){return $L.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function mr(){}var pc=null;function mc(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ca=null,da=null;function G_(r){var a=aa(r);if(a&&(r=a.stateNode)){var u=r[rn]||null;e:switch(r=a.stateNode,a.type){case"input":if(dc(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+In(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==r&&m.form===r.form){var w=m[rn]||null;if(!w)throw Error(i(90));dc(m,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===r.form&&U_(m)}break e;case"textarea":z_(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&la(r,!!u.multiple,a,!1)}}}var gc=!1;function V_(r,a,u){if(gc)return r(a,u);gc=!0;try{var m=r(a);return m}finally{if(gc=!1,(ca!==null||da!==null)&&(wl(),ca&&(a=ca,r=da,da=ca=null,G_(a),r)))for(a=0;a<r.length;a++)G_(r[a])}}function ds(r,a){var u=r.stateNode;if(u===null)return null;var m=u[rn]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(r=r.type,m=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!m;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=!1;if(gr)try{var hs={};Object.defineProperty(hs,"passive",{get:function(){bc=!0}}),window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch{bc=!1}var jr=null,yc=null,Po=null;function W_(){if(Po)return Po;var r,a=yc,u=a.length,m,w="value"in jr?jr.value:jr.textContent,A=w.length;for(r=0;r<u&&a[r]===w[r];r++);var D=u-r;for(m=1;m<=D&&a[u-m]===w[A-m];m++);return Po=w.slice(r,1<m?1-m:void 0)}function Uo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function jo(){return!0}function K_(){return!1}function an(r){function a(u,m,w,A,D){this._reactName=u,this._targetInst=w,this.type=m,this.nativeEvent=A,this.target=D,this.currentTarget=null;for(var q in r)r.hasOwnProperty(q)&&(u=r[q],this[q]=u?u(A):A[q]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?jo:K_,this.isPropagationStopped=K_,this}return f(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=jo)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=jo)},persist:function(){},isPersistent:jo}),a}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zo=an(xi),fs=f({},xi,{view:0,detail:0}),GL=an(fs),vc,_c,ps,Ho=f({},fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ps&&(ps&&r.type==="mousemove"?(vc=r.screenX-ps.screenX,_c=r.screenY-ps.screenY):_c=vc=0,ps=r),vc)},movementY:function(r){return"movementY"in r?r.movementY:_c}}),Y_=an(Ho),VL=f({},Ho,{dataTransfer:0}),WL=an(VL),KL=f({},fs,{relatedTarget:0}),Sc=an(KL),YL=f({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),XL=an(YL),ZL=f({},xi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),QL=an(ZL),JL=f({},xi,{data:0}),X_=an(JL),eD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rD(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=nD[r])?!!a[r]:!1}function Ec(){return rD}var iD=f({},fs,{key:function(r){if(r.key){var a=eD[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Uo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?tD[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(r){return r.type==="keypress"?Uo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Uo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),aD=an(iD),sD=f({},Ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z_=an(sD),oD=f({},fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),lD=an(oD),uD=f({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),cD=an(uD),dD=f({},Ho,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),hD=an(dD),fD=f({},xi,{newState:0,oldState:0}),pD=an(fD),mD=[9,13,27,32],xc=gr&&"CompositionEvent"in window,ms=null;gr&&"documentMode"in document&&(ms=document.documentMode);var gD=gr&&"TextEvent"in window&&!ms,Q_=gr&&(!xc||ms&&8<ms&&11>=ms),J_=" ",eS=!1;function tS(r,a){switch(r){case"keyup":return mD.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nS(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ha=!1;function bD(r,a){switch(r){case"compositionend":return nS(a);case"keypress":return a.which!==32?null:(eS=!0,J_);case"textInput":return r=a.data,r===J_&&eS?null:r;default:return null}}function yD(r,a){if(ha)return r==="compositionend"||!xc&&tS(r,a)?(r=W_(),Po=yc=jr=null,ha=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Q_&&a.locale!=="ko"?null:a.data;default:return null}}var vD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rS(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!vD[r.type]:a==="textarea"}function iS(r,a,u,m){ca?da?da.push(m):da=[m]:ca=m,a=Ol(a,"onChange"),0<a.length&&(u=new zo("onChange","change",null,u,m),r.push({event:u,listeners:a}))}var gs=null,bs=null;function _D(r){j0(r,0)}function qo(r){var a=cs(r);if(U_(a))return r}function aS(r,a){if(r==="change")return a}var sS=!1;if(gr){var wc;if(gr){var Cc="oninput"in document;if(!Cc){var oS=document.createElement("div");oS.setAttribute("oninput","return;"),Cc=typeof oS.oninput=="function"}wc=Cc}else wc=!1;sS=wc&&(!document.documentMode||9<document.documentMode)}function lS(){gs&&(gs.detachEvent("onpropertychange",uS),bs=gs=null)}function uS(r){if(r.propertyName==="value"&&qo(bs)){var a=[];iS(a,bs,r,mc(r)),V_(_D,a)}}function SD(r,a,u){r==="focusin"?(lS(),gs=a,bs=u,gs.attachEvent("onpropertychange",uS)):r==="focusout"&&lS()}function ED(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return qo(bs)}function xD(r,a){if(r==="click")return qo(a)}function wD(r,a){if(r==="input"||r==="change")return qo(a)}function CD(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var vn=typeof Object.is=="function"?Object.is:CD;function ys(r,a){if(vn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var w=u[m];if(!Mt.call(a,w)||!vn(r[w],a[w]))return!1}return!0}function cS(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function dS(r,a){var u=cS(r);r=0;for(var m;u;){if(u.nodeType===3){if(m=r+u.textContent.length,r<=a&&m>=a)return{node:u,offset:a-r};r=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=cS(u)}}function hS(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?hS(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function fS(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Bo(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=Bo(r.document)}return a}function Tc(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var TD=gr&&"documentMode"in document&&11>=document.documentMode,fa=null,Ac=null,vs=null,Rc=!1;function pS(r,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Rc||fa==null||fa!==Bo(m)||(m=fa,"selectionStart"in m&&Tc(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),vs&&ys(vs,m)||(vs=m,m=Ol(Ac,"onSelect"),0<m.length&&(a=new zo("onSelect","select",null,a,u),r.push({event:a,listeners:m}),a.target=fa)))}function wi(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}var pa={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionrun:wi("Transition","TransitionRun"),transitionstart:wi("Transition","TransitionStart"),transitioncancel:wi("Transition","TransitionCancel"),transitionend:wi("Transition","TransitionEnd")},kc={},mS={};gr&&(mS=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function Ci(r){if(kc[r])return kc[r];if(!pa[r])return r;var a=pa[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in mS)return kc[r]=a[u];return r}var gS=Ci("animationend"),bS=Ci("animationiteration"),yS=Ci("animationstart"),AD=Ci("transitionrun"),RD=Ci("transitionstart"),kD=Ci("transitioncancel"),vS=Ci("transitionend"),_S=new Map,Nc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nc.push("scrollEnd");function $n(r,a){_S.set(r,a),Ei(a,[r])}var $o=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Ln=[],ma=0,Oc=0;function Go(){for(var r=ma,a=Oc=ma=0;a<r;){var u=Ln[a];Ln[a++]=null;var m=Ln[a];Ln[a++]=null;var w=Ln[a];Ln[a++]=null;var A=Ln[a];if(Ln[a++]=null,m!==null&&w!==null){var D=m.pending;D===null?w.next=w:(w.next=D.next,D.next=w),m.pending=w}A!==0&&SS(u,w,A)}}function Vo(r,a,u,m){Ln[ma++]=r,Ln[ma++]=a,Ln[ma++]=u,Ln[ma++]=m,Oc|=m,r.lanes|=m,r=r.alternate,r!==null&&(r.lanes|=m)}function Ic(r,a,u,m){return Vo(r,a,u,m),Wo(r)}function Ti(r,a){return Vo(r,null,null,a),Wo(r)}function SS(r,a,u){r.lanes|=u;var m=r.alternate;m!==null&&(m.lanes|=u);for(var w=!1,A=r.return;A!==null;)A.childLanes|=u,m=A.alternate,m!==null&&(m.childLanes|=u),A.tag===22&&(r=A.stateNode,r===null||r._visibility&1||(w=!0)),r=A,A=A.return;return r.tag===3?(A=r.stateNode,w&&a!==null&&(w=31-Je(u),r=A.hiddenUpdates,m=r[w],m===null?r[w]=[a]:m.push(a),a.lane=u|536870912),A):null}function Wo(r){if(50<zs)throw zs=0,zd=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var ga={};function ND(r,a,u,m){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _n(r,a,u,m){return new ND(r,a,u,m)}function Lc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function br(r,a){var u=r.alternate;return u===null?(u=_n(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u}function ES(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Ko(r,a,u,m,w,A){var D=0;if(m=r,typeof r=="function")Lc(r)&&(D=1);else if(typeof r=="string")D=M2(r,u,ee.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case I:return r=_n(31,u,a,w),r.elementType=I,r.lanes=A,r;case E:return Ai(u.children,w,A,a);case y:D=8,w|=24;break;case S:return r=_n(12,u,a,w|2),r.elementType=S,r.lanes=A,r;case N:return r=_n(13,u,a,w),r.elementType=N,r.lanes=A,r;case R:return r=_n(19,u,a,w),r.elementType=R,r.lanes=A,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case _:D=10;break e;case v:D=9;break e;case C:D=11;break e;case O:D=14;break e;case k:D=16,m=null;break e}D=29,u=Error(i(130,r===null?"null":typeof r,"")),m=null}return a=_n(D,u,a,w),a.elementType=r,a.type=m,a.lanes=A,a}function Ai(r,a,u,m){return r=_n(7,r,m,a),r.lanes=u,r}function Dc(r,a,u){return r=_n(6,r,null,a),r.lanes=u,r}function xS(r){var a=_n(18,null,null,0);return a.stateNode=r,a}function Mc(r,a,u){return a=_n(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var wS=new WeakMap;function Dn(r,a){if(typeof r=="object"&&r!==null){var u=wS.get(r);return u!==void 0?u:(a={value:r,source:a,stack:wt(a)},wS.set(r,a),a)}return{value:r,source:a,stack:wt(a)}}var ba=[],ya=0,Yo=null,_s=0,Mn=[],Bn=0,zr=null,Qn=1,Jn="";function yr(r,a){ba[ya++]=_s,ba[ya++]=Yo,Yo=r,_s=a}function CS(r,a,u){Mn[Bn++]=Qn,Mn[Bn++]=Jn,Mn[Bn++]=zr,zr=r;var m=Qn;r=Jn;var w=32-Je(m)-1;m&=~(1<<w),u+=1;var A=32-Je(a)+w;if(30<A){var D=w-w%5;A=(m&(1<<D)-1).toString(32),m>>=D,w-=D,Qn=1<<32-Je(a)+w|u<<w|m,Jn=A+r}else Qn=1<<A|u<<w|m,Jn=r}function Bc(r){r.return!==null&&(yr(r,1),CS(r,1,0))}function Fc(r){for(;r===Yo;)Yo=ba[--ya],ba[ya]=null,_s=ba[--ya],ba[ya]=null;for(;r===zr;)zr=Mn[--Bn],Mn[Bn]=null,Jn=Mn[--Bn],Mn[Bn]=null,Qn=Mn[--Bn],Mn[Bn]=null}function TS(r,a){Mn[Bn++]=Qn,Mn[Bn++]=Jn,Mn[Bn++]=zr,Qn=a.id,Jn=a.overflow,zr=r}var jt=null,ut=null,Ke=!1,Hr=null,Fn=!1,Pc=Error(i(519));function qr(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ss(Dn(a,r)),Pc}function AS(r){var a=r.stateNode,u=r.type,m=r.memoizedProps;switch(a[Ut]=r,a[rn]=m,u){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(u=0;u<qs.length;u++)$e(qs[u],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),j_(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),H_(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||$0(a.textContent,u)?(m.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),m.onScroll!=null&&$e("scroll",a),m.onScrollEnd!=null&&$e("scrollend",a),m.onClick!=null&&(a.onclick=mr),a=!0):a=!1,a||qr(r,!0)}function RS(r){for(jt=r.return;jt;)switch(jt.tag){case 5:case 31:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:jt=jt.return}}function va(r){if(r!==jt)return!1;if(!Ke)return RS(r),Ke=!0,!1;var a=r.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||nh(r.type,r.memoizedProps)),u=!u),u&&ut&&qr(r),RS(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));ut=J0(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));ut=J0(r)}else a===27?(a=ut,ri(r.type)?(r=oh,oh=null,ut=r):ut=a):ut=jt?Un(r.stateNode.nextSibling):null;return!0}function Ri(){ut=jt=null,Ke=!1}function Uc(){var r=Hr;return r!==null&&(un===null?un=r:un.push.apply(un,r),Hr=null),r}function Ss(r){Hr===null?Hr=[r]:Hr.push(r)}var jc=B(null),ki=null,vr=null;function $r(r,a,u){P(jc,a._currentValue),a._currentValue=u}function _r(r){r._currentValue=jc.current,H(jc)}function zc(r,a,u){for(;r!==null;){var m=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),r===u)break;r=r.return}}function Hc(r,a,u,m){var w=r.child;for(w!==null&&(w.return=r);w!==null;){var A=w.dependencies;if(A!==null){var D=w.child;A=A.firstContext;e:for(;A!==null;){var q=A;A=w;for(var Y=0;Y<a.length;Y++)if(q.context===a[Y]){A.lanes|=u,q=A.alternate,q!==null&&(q.lanes|=u),zc(A.return,u,r),m||(D=null);break e}A=q.next}}else if(w.tag===18){if(D=w.return,D===null)throw Error(i(341));D.lanes|=u,A=D.alternate,A!==null&&(A.lanes|=u),zc(D,u,r),D=null}else D=w.child;if(D!==null)D.return=w;else for(D=w;D!==null;){if(D===r){D=null;break}if(w=D.sibling,w!==null){w.return=D.return,D=w;break}D=D.return}w=D}}function _a(r,a,u,m){r=null;for(var w=a,A=!1;w!==null;){if(!A){if((w.flags&524288)!==0)A=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var D=w.alternate;if(D===null)throw Error(i(387));if(D=D.memoizedProps,D!==null){var q=w.type;vn(w.pendingProps.value,D.value)||(r!==null?r.push(q):r=[q])}}else if(w===X.current){if(D=w.alternate,D===null)throw Error(i(387));D.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(r!==null?r.push(Ks):r=[Ks])}w=w.return}r!==null&&Hc(a,r,u,m),a.flags|=262144}function Xo(r){for(r=r.firstContext;r!==null;){if(!vn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ni(r){ki=r,vr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function zt(r){return kS(ki,r)}function Zo(r,a){return ki===null&&Ni(r),kS(r,a)}function kS(r,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},vr===null){if(r===null)throw Error(i(308));vr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else vr=vr.next=a;return u}var OD=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,m){r.push(m)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},ID=e.unstable_scheduleCallback,LD=e.unstable_NormalPriority,Ct={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qc(){return{controller:new OD,data:new Map,refCount:0}}function Es(r){r.refCount--,r.refCount===0&&ID(LD,function(){r.controller.abort()})}var xs=null,$c=0,Sa=0,Ea=null;function DD(r,a){if(xs===null){var u=xs=[];$c=0,Sa=Wd(),Ea={status:"pending",value:void 0,then:function(m){u.push(m)}}}return $c++,a.then(NS,NS),a}function NS(){if(--$c===0&&xs!==null){Ea!==null&&(Ea.status="fulfilled");var r=xs;xs=null,Sa=0,Ea=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function MD(r,a){var u=[],m={status:"pending",value:null,reason:null,then:function(w){u.push(w)}};return r.then(function(){m.status="fulfilled",m.value=a;for(var w=0;w<u.length;w++)(0,u[w])(a)},function(w){for(m.status="rejected",m.reason=w,w=0;w<u.length;w++)(0,u[w])(void 0)}),m}var OS=W.S;W.S=function(r,a){p0=Oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&DD(r,a),OS!==null&&OS(r,a)};var Oi=B(null);function Gc(){var r=Oi.current;return r!==null?r:st.pooledCache}function Qo(r,a){a===null?P(Oi,Oi.current):P(Oi,a.pool)}function IS(){var r=Gc();return r===null?null:{parent:Ct._currentValue,pool:r}}var xa=Error(i(460)),Vc=Error(i(474)),Jo=Error(i(542)),el={then:function(){}};function LS(r){return r=r.status,r==="fulfilled"||r==="rejected"}function DS(r,a,u){switch(u=r[u],u===void 0?r.push(a):u!==a&&(a.then(mr,mr),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,BS(r),r;default:if(typeof a.status=="string")a.then(mr,mr);else{if(r=st,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(m){if(a.status==="pending"){var w=a;w.status="fulfilled",w.value=m}},function(m){if(a.status==="pending"){var w=a;w.status="rejected",w.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,BS(r),r}throw Li=a,xa}}function Ii(r){try{var a=r._init;return a(r._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Li=u,xa):u}}var Li=null;function MS(){if(Li===null)throw Error(i(459));var r=Li;return Li=null,r}function BS(r){if(r===xa||r===Jo)throw Error(i(483))}var wa=null,ws=0;function tl(r){var a=ws;return ws+=1,wa===null&&(wa=[]),DS(wa,r,a)}function Cs(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function nl(r,a){throw a.$$typeof===g?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function FS(r){function a(te,Z){if(r){var ne=te.deletions;ne===null?(te.deletions=[Z],te.flags|=16):ne.push(Z)}}function u(te,Z){if(!r)return null;for(;Z!==null;)a(te,Z),Z=Z.sibling;return null}function m(te){for(var Z=new Map;te!==null;)te.key!==null?Z.set(te.key,te):Z.set(te.index,te),te=te.sibling;return Z}function w(te,Z){return te=br(te,Z),te.index=0,te.sibling=null,te}function A(te,Z,ne){return te.index=ne,r?(ne=te.alternate,ne!==null?(ne=ne.index,ne<Z?(te.flags|=67108866,Z):ne):(te.flags|=67108866,Z)):(te.flags|=1048576,Z)}function D(te){return r&&te.alternate===null&&(te.flags|=67108866),te}function q(te,Z,ne,fe){return Z===null||Z.tag!==6?(Z=Dc(ne,te.mode,fe),Z.return=te,Z):(Z=w(Z,ne),Z.return=te,Z)}function Y(te,Z,ne,fe){var we=ne.type;return we===E?de(te,Z,ne.props.children,fe,ne.key):Z!==null&&(Z.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===k&&Ii(we)===Z.type)?(Z=w(Z,ne.props),Cs(Z,ne),Z.return=te,Z):(Z=Ko(ne.type,ne.key,ne.props,null,te.mode,fe),Cs(Z,ne),Z.return=te,Z)}function re(te,Z,ne,fe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==ne.containerInfo||Z.stateNode.implementation!==ne.implementation?(Z=Mc(ne,te.mode,fe),Z.return=te,Z):(Z=w(Z,ne.children||[]),Z.return=te,Z)}function de(te,Z,ne,fe,we){return Z===null||Z.tag!==7?(Z=Ai(ne,te.mode,fe,we),Z.return=te,Z):(Z=w(Z,ne),Z.return=te,Z)}function pe(te,Z,ne){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=Dc(""+Z,te.mode,ne),Z.return=te,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case b:return ne=Ko(Z.type,Z.key,Z.props,null,te.mode,ne),Cs(ne,Z),ne.return=te,ne;case x:return Z=Mc(Z,te.mode,ne),Z.return=te,Z;case k:return Z=Ii(Z),pe(te,Z,ne)}if(K(Z)||z(Z))return Z=Ai(Z,te.mode,ne,null),Z.return=te,Z;if(typeof Z.then=="function")return pe(te,tl(Z),ne);if(Z.$$typeof===_)return pe(te,Zo(te,Z),ne);nl(te,Z)}return null}function ae(te,Z,ne,fe){var we=Z!==null?Z.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return we!==null?null:q(te,Z,""+ne,fe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return ne.key===we?Y(te,Z,ne,fe):null;case x:return ne.key===we?re(te,Z,ne,fe):null;case k:return ne=Ii(ne),ae(te,Z,ne,fe)}if(K(ne)||z(ne))return we!==null?null:de(te,Z,ne,fe,null);if(typeof ne.then=="function")return ae(te,Z,tl(ne),fe);if(ne.$$typeof===_)return ae(te,Z,Zo(te,ne),fe);nl(te,ne)}return null}function oe(te,Z,ne,fe,we){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return te=te.get(ne)||null,q(Z,te,""+fe,we);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:return te=te.get(fe.key===null?ne:fe.key)||null,Y(Z,te,fe,we);case x:return te=te.get(fe.key===null?ne:fe.key)||null,re(Z,te,fe,we);case k:return fe=Ii(fe),oe(te,Z,ne,fe,we)}if(K(fe)||z(fe))return te=te.get(ne)||null,de(Z,te,fe,we,null);if(typeof fe.then=="function")return oe(te,Z,ne,tl(fe),we);if(fe.$$typeof===_)return oe(te,Z,ne,Zo(Z,fe),we);nl(Z,fe)}return null}function _e(te,Z,ne,fe){for(var we=null,Xe=null,Se=Z,Pe=Z=0,We=null;Se!==null&&Pe<ne.length;Pe++){Se.index>Pe?(We=Se,Se=null):We=Se.sibling;var Ze=ae(te,Se,ne[Pe],fe);if(Ze===null){Se===null&&(Se=We);break}r&&Se&&Ze.alternate===null&&a(te,Se),Z=A(Ze,Z,Pe),Xe===null?we=Ze:Xe.sibling=Ze,Xe=Ze,Se=We}if(Pe===ne.length)return u(te,Se),Ke&&yr(te,Pe),we;if(Se===null){for(;Pe<ne.length;Pe++)Se=pe(te,ne[Pe],fe),Se!==null&&(Z=A(Se,Z,Pe),Xe===null?we=Se:Xe.sibling=Se,Xe=Se);return Ke&&yr(te,Pe),we}for(Se=m(Se);Pe<ne.length;Pe++)We=oe(Se,te,Pe,ne[Pe],fe),We!==null&&(r&&We.alternate!==null&&Se.delete(We.key===null?Pe:We.key),Z=A(We,Z,Pe),Xe===null?we=We:Xe.sibling=We,Xe=We);return r&&Se.forEach(function(li){return a(te,li)}),Ke&&yr(te,Pe),we}function Re(te,Z,ne,fe){if(ne==null)throw Error(i(151));for(var we=null,Xe=null,Se=Z,Pe=Z=0,We=null,Ze=ne.next();Se!==null&&!Ze.done;Pe++,Ze=ne.next()){Se.index>Pe?(We=Se,Se=null):We=Se.sibling;var li=ae(te,Se,Ze.value,fe);if(li===null){Se===null&&(Se=We);break}r&&Se&&li.alternate===null&&a(te,Se),Z=A(li,Z,Pe),Xe===null?we=li:Xe.sibling=li,Xe=li,Se=We}if(Ze.done)return u(te,Se),Ke&&yr(te,Pe),we;if(Se===null){for(;!Ze.done;Pe++,Ze=ne.next())Ze=pe(te,Ze.value,fe),Ze!==null&&(Z=A(Ze,Z,Pe),Xe===null?we=Ze:Xe.sibling=Ze,Xe=Ze);return Ke&&yr(te,Pe),we}for(Se=m(Se);!Ze.done;Pe++,Ze=ne.next())Ze=oe(Se,te,Pe,Ze.value,fe),Ze!==null&&(r&&Ze.alternate!==null&&Se.delete(Ze.key===null?Pe:Ze.key),Z=A(Ze,Z,Pe),Xe===null?we=Ze:Xe.sibling=Ze,Xe=Ze);return r&&Se.forEach(function(V2){return a(te,V2)}),Ke&&yr(te,Pe),we}function it(te,Z,ne,fe){if(typeof ne=="object"&&ne!==null&&ne.type===E&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:e:{for(var we=ne.key;Z!==null;){if(Z.key===we){if(we=ne.type,we===E){if(Z.tag===7){u(te,Z.sibling),fe=w(Z,ne.props.children),fe.return=te,te=fe;break e}}else if(Z.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===k&&Ii(we)===Z.type){u(te,Z.sibling),fe=w(Z,ne.props),Cs(fe,ne),fe.return=te,te=fe;break e}u(te,Z);break}else a(te,Z);Z=Z.sibling}ne.type===E?(fe=Ai(ne.props.children,te.mode,fe,ne.key),fe.return=te,te=fe):(fe=Ko(ne.type,ne.key,ne.props,null,te.mode,fe),Cs(fe,ne),fe.return=te,te=fe)}return D(te);case x:e:{for(we=ne.key;Z!==null;){if(Z.key===we)if(Z.tag===4&&Z.stateNode.containerInfo===ne.containerInfo&&Z.stateNode.implementation===ne.implementation){u(te,Z.sibling),fe=w(Z,ne.children||[]),fe.return=te,te=fe;break e}else{u(te,Z);break}else a(te,Z);Z=Z.sibling}fe=Mc(ne,te.mode,fe),fe.return=te,te=fe}return D(te);case k:return ne=Ii(ne),it(te,Z,ne,fe)}if(K(ne))return _e(te,Z,ne,fe);if(z(ne)){if(we=z(ne),typeof we!="function")throw Error(i(150));return ne=we.call(ne),Re(te,Z,ne,fe)}if(typeof ne.then=="function")return it(te,Z,tl(ne),fe);if(ne.$$typeof===_)return it(te,Z,Zo(te,ne),fe);nl(te,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,Z!==null&&Z.tag===6?(u(te,Z.sibling),fe=w(Z,ne),fe.return=te,te=fe):(u(te,Z),fe=Dc(ne,te.mode,fe),fe.return=te,te=fe),D(te)):u(te,Z)}return function(te,Z,ne,fe){try{ws=0;var we=it(te,Z,ne,fe);return wa=null,we}catch(Se){if(Se===xa||Se===Jo)throw Se;var Xe=_n(29,Se,null,te.mode);return Xe.lanes=fe,Xe.return=te,Xe}finally{}}}var Di=FS(!0),PS=FS(!1),Gr=!1;function Wc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kc(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Vr(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Wr(r,a,u){var m=r.updateQueue;if(m===null)return null;if(m=m.shared,(Qe&2)!==0){var w=m.pending;return w===null?a.next=a:(a.next=w.next,w.next=a),m.pending=a,a=Wo(r),SS(r,null,u),a}return Vo(r,m,a,u),Wo(r)}function Ts(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=r.pendingLanes,u|=m,a.lanes=u,k_(r,u)}}function Yc(r,a){var u=r.updateQueue,m=r.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var w=null,A=null;if(u=u.firstBaseUpdate,u!==null){do{var D={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};A===null?w=A=D:A=A.next=D,u=u.next}while(u!==null);A===null?w=A=a:A=A.next=a}else w=A=a;u={baseState:m.baseState,firstBaseUpdate:w,lastBaseUpdate:A,shared:m.shared,callbacks:m.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}var Xc=!1;function As(){if(Xc){var r=Ea;if(r!==null)throw r}}function Rs(r,a,u,m){Xc=!1;var w=r.updateQueue;Gr=!1;var A=w.firstBaseUpdate,D=w.lastBaseUpdate,q=w.shared.pending;if(q!==null){w.shared.pending=null;var Y=q,re=Y.next;Y.next=null,D===null?A=re:D.next=re,D=Y;var de=r.alternate;de!==null&&(de=de.updateQueue,q=de.lastBaseUpdate,q!==D&&(q===null?de.firstBaseUpdate=re:q.next=re,de.lastBaseUpdate=Y))}if(A!==null){var pe=w.baseState;D=0,de=re=Y=null,q=A;do{var ae=q.lane&-536870913,oe=ae!==q.lane;if(oe?(Ve&ae)===ae:(m&ae)===ae){ae!==0&&ae===Sa&&(Xc=!0),de!==null&&(de=de.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});e:{var _e=r,Re=q;ae=a;var it=u;switch(Re.tag){case 1:if(_e=Re.payload,typeof _e=="function"){pe=_e.call(it,pe,ae);break e}pe=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Re.payload,ae=typeof _e=="function"?_e.call(it,pe,ae):_e,ae==null)break e;pe=f({},pe,ae);break e;case 2:Gr=!0}}ae=q.callback,ae!==null&&(r.flags|=64,oe&&(r.flags|=8192),oe=w.callbacks,oe===null?w.callbacks=[ae]:oe.push(ae))}else oe={lane:ae,tag:q.tag,payload:q.payload,callback:q.callback,next:null},de===null?(re=de=oe,Y=pe):de=de.next=oe,D|=ae;if(q=q.next,q===null){if(q=w.shared.pending,q===null)break;oe=q,q=oe.next,oe.next=null,w.lastBaseUpdate=oe,w.shared.pending=null}}while(!0);de===null&&(Y=pe),w.baseState=Y,w.firstBaseUpdate=re,w.lastBaseUpdate=de,A===null&&(w.shared.lanes=0),Qr|=D,r.lanes=D,r.memoizedState=pe}}function US(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function jS(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)US(u[r],a)}var Ca=B(null),rl=B(0);function zS(r,a){r=kr,P(rl,r),P(Ca,a),kr=r|a.baseLanes}function Zc(){P(rl,kr),P(Ca,Ca.current)}function Qc(){kr=rl.current,H(Ca),H(rl)}var Sn=B(null),Pn=null;function Kr(r){var a=r.alternate;P(St,St.current&1),P(Sn,r),Pn===null&&(a===null||Ca.current!==null||a.memoizedState!==null)&&(Pn=r)}function Jc(r){P(St,St.current),P(Sn,r),Pn===null&&(Pn=r)}function HS(r){r.tag===22?(P(St,St.current),P(Sn,r),Pn===null&&(Pn=r)):Yr()}function Yr(){P(St,St.current),P(Sn,Sn.current)}function En(r){H(Sn),Pn===r&&(Pn=null),H(St)}var St=B(0);function il(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||ah(u)||sh(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Sr=0,Me=null,nt=null,Tt=null,al=!1,Ta=!1,Mi=!1,sl=0,ks=0,Aa=null,BD=0;function yt(){throw Error(i(321))}function ed(r,a){if(a===null)return!1;for(var u=0;u<a.length&&u<r.length;u++)if(!vn(r[u],a[u]))return!1;return!0}function td(r,a,u,m,w,A){return Sr=A,Me=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,W.H=r===null||r.memoizedState===null?CE:gd,Mi=!1,A=u(m,w),Mi=!1,Ta&&(A=$S(a,u,m,w)),qS(r),A}function qS(r){W.H=Is;var a=nt!==null&&nt.next!==null;if(Sr=0,Tt=nt=Me=null,al=!1,ks=0,Aa=null,a)throw Error(i(300));r===null||At||(r=r.dependencies,r!==null&&Xo(r)&&(At=!0))}function $S(r,a,u,m){Me=r;var w=0;do{if(Ta&&(Aa=null),ks=0,Ta=!1,25<=w)throw Error(i(301));if(w+=1,Tt=nt=null,r.updateQueue!=null){var A=r.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}W.H=TE,A=a(u,m)}while(Ta);return A}function FD(){var r=W.H,a=r.useState()[0];return a=typeof a.then=="function"?Ns(a):a,r=r.useState()[0],(nt!==null?nt.memoizedState:null)!==r&&(Me.flags|=1024),a}function nd(){var r=sl!==0;return sl=0,r}function rd(r,a,u){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~u}function id(r){if(al){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}al=!1}Sr=0,Tt=nt=Me=null,Ta=!1,ks=sl=0,Aa=null}function Qt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Me.memoizedState=Tt=r:Tt=Tt.next=r,Tt}function Et(){if(nt===null){var r=Me.alternate;r=r!==null?r.memoizedState:null}else r=nt.next;var a=Tt===null?Me.memoizedState:Tt.next;if(a!==null)Tt=a,nt=r;else{if(r===null)throw Me.alternate===null?Error(i(467)):Error(i(310));nt=r,r={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Tt===null?Me.memoizedState=Tt=r:Tt=Tt.next=r}return Tt}function ol(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ns(r){var a=ks;return ks+=1,Aa===null&&(Aa=[]),r=DS(Aa,r,a),a=Me,(Tt===null?a.memoizedState:Tt.next)===null&&(a=a.alternate,W.H=a===null||a.memoizedState===null?CE:gd),r}function ll(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ns(r);if(r.$$typeof===_)return zt(r)}throw Error(i(438,String(r)))}function ad(r){var a=null,u=Me.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=Me.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(w){return w.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=ol(),Me.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(r),m=0;m<r;m++)u[m]=M;return a.index++,u}function Er(r,a){return typeof a=="function"?a(r):a}function ul(r){var a=Et();return sd(a,nt,r)}function sd(r,a,u){var m=r.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=u;var w=r.baseQueue,A=m.pending;if(A!==null){if(w!==null){var D=w.next;w.next=A.next,A.next=D}a.baseQueue=w=A,m.pending=null}if(A=r.baseState,w===null)r.memoizedState=A;else{a=w.next;var q=D=null,Y=null,re=a,de=!1;do{var pe=re.lane&-536870913;if(pe!==re.lane?(Ve&pe)===pe:(Sr&pe)===pe){var ae=re.revertLane;if(ae===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),pe===Sa&&(de=!0);else if((Sr&ae)===ae){re=re.next,ae===Sa&&(de=!0);continue}else pe={lane:0,revertLane:re.revertLane,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},Y===null?(q=Y=pe,D=A):Y=Y.next=pe,Me.lanes|=ae,Qr|=ae;pe=re.action,Mi&&u(A,pe),A=re.hasEagerState?re.eagerState:u(A,pe)}else ae={lane:pe,revertLane:re.revertLane,gesture:re.gesture,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},Y===null?(q=Y=ae,D=A):Y=Y.next=ae,Me.lanes|=pe,Qr|=pe;re=re.next}while(re!==null&&re!==a);if(Y===null?D=A:Y.next=q,!vn(A,r.memoizedState)&&(At=!0,de&&(u=Ea,u!==null)))throw u;r.memoizedState=A,r.baseState=D,r.baseQueue=Y,m.lastRenderedState=A}return w===null&&(m.lanes=0),[r.memoizedState,m.dispatch]}function od(r){var a=Et(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=r;var m=u.dispatch,w=u.pending,A=a.memoizedState;if(w!==null){u.pending=null;var D=w=w.next;do A=r(A,D.action),D=D.next;while(D!==w);vn(A,a.memoizedState)||(At=!0),a.memoizedState=A,a.baseQueue===null&&(a.baseState=A),u.lastRenderedState=A}return[A,m]}function GS(r,a,u){var m=Me,w=Et(),A=Ke;if(A){if(u===void 0)throw Error(i(407));u=u()}else u=a();var D=!vn((nt||w).memoizedState,u);if(D&&(w.memoizedState=u,At=!0),w=w.queue,cd(KS.bind(null,m,w,r),[r]),w.getSnapshot!==a||D||Tt!==null&&Tt.memoizedState.tag&1){if(m.flags|=2048,Ra(9,{destroy:void 0},WS.bind(null,m,w,u,a),null),st===null)throw Error(i(349));A||(Sr&127)!==0||VS(m,a,u)}return u}function VS(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=Me.updateQueue,a===null?(a=ol(),Me.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function WS(r,a,u,m){a.value=u,a.getSnapshot=m,YS(a)&&XS(r)}function KS(r,a,u){return u(function(){YS(a)&&XS(r)})}function YS(r){var a=r.getSnapshot;r=r.value;try{var u=a();return!vn(r,u)}catch{return!0}}function XS(r){var a=Ti(r,2);a!==null&&cn(a,r,2)}function ld(r){var a=Qt();if(typeof r=="function"){var u=r;if(r=u(),Mi){dt(!0);try{u()}finally{dt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:r},a}function ZS(r,a,u,m){return r.baseState=u,sd(r,nt,typeof m=="function"?m:Er)}function PD(r,a,u,m,w){if(hl(r))throw Error(i(485));if(r=a.action,r!==null){var A={payload:w,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){A.listeners.push(D)}};W.T!==null?u(!0):A.isTransition=!1,m(A),u=a.pending,u===null?(A.next=a.pending=A,QS(a,A)):(A.next=u.next,a.pending=u.next=A)}}function QS(r,a){var u=a.action,m=a.payload,w=r.state;if(a.isTransition){var A=W.T,D={};W.T=D;try{var q=u(w,m),Y=W.S;Y!==null&&Y(D,q),JS(r,a,q)}catch(re){ud(r,a,re)}finally{A!==null&&D.types!==null&&(A.types=D.types),W.T=A}}else try{A=u(w,m),JS(r,a,A)}catch(re){ud(r,a,re)}}function JS(r,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){eE(r,a,m)},function(m){return ud(r,a,m)}):eE(r,a,u)}function eE(r,a,u){a.status="fulfilled",a.value=u,tE(a),r.state=u,a=r.pending,a!==null&&(u=a.next,u===a?r.pending=null:(u=u.next,a.next=u,QS(r,u)))}function ud(r,a,u){var m=r.pending;if(r.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,tE(a),a=a.next;while(a!==m)}r.action=null}function tE(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function nE(r,a){return a}function rE(r,a){if(Ke){var u=st.formState;if(u!==null){e:{var m=Me;if(Ke){if(ut){t:{for(var w=ut,A=Fn;w.nodeType!==8;){if(!A){w=null;break t}if(w=Un(w.nextSibling),w===null){w=null;break t}}A=w.data,w=A==="F!"||A==="F"?w:null}if(w){ut=Un(w.nextSibling),m=w.data==="F!";break e}}qr(m)}m=!1}m&&(a=u[0])}}return u=Qt(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nE,lastRenderedState:a},u.queue=m,u=EE.bind(null,Me,m),m.dispatch=u,m=ld(!1),A=md.bind(null,Me,!1,m.queue),m=Qt(),w={state:a,dispatch:null,action:r,pending:null},m.queue=w,u=PD.bind(null,Me,w,A,u),w.dispatch=u,m.memoizedState=r,[a,u,!1]}function iE(r){var a=Et();return aE(a,nt,r)}function aE(r,a,u){if(a=sd(r,a,nE)[0],r=ul(Er)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=Ns(a)}catch(D){throw D===xa?Jo:D}else m=a;a=Et();var w=a.queue,A=w.dispatch;return u!==a.memoizedState&&(Me.flags|=2048,Ra(9,{destroy:void 0},UD.bind(null,w,u),null)),[m,A,r]}function UD(r,a){r.action=a}function sE(r){var a=Et(),u=nt;if(u!==null)return aE(a,u,r);Et(),a=a.memoizedState,u=Et();var m=u.queue.dispatch;return u.memoizedState=r,[a,m,!1]}function Ra(r,a,u,m){return r={tag:r,create:u,deps:m,inst:a,next:null},a=Me.updateQueue,a===null&&(a=ol(),Me.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=r.next=r:(m=u.next,u.next=r,r.next=m,a.lastEffect=r),r}function oE(){return Et().memoizedState}function cl(r,a,u,m){var w=Qt();Me.flags|=r,w.memoizedState=Ra(1|a,{destroy:void 0},u,m===void 0?null:m)}function dl(r,a,u,m){var w=Et();m=m===void 0?null:m;var A=w.memoizedState.inst;nt!==null&&m!==null&&ed(m,nt.memoizedState.deps)?w.memoizedState=Ra(a,A,u,m):(Me.flags|=r,w.memoizedState=Ra(1|a,A,u,m))}function lE(r,a){cl(8390656,8,r,a)}function cd(r,a){dl(2048,8,r,a)}function jD(r){Me.flags|=4;var a=Me.updateQueue;if(a===null)a=ol(),Me.updateQueue=a,a.events=[r];else{var u=a.events;u===null?a.events=[r]:u.push(r)}}function uE(r){var a=Et().memoizedState;return jD({ref:a,nextImpl:r}),function(){if((Qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function cE(r,a){return dl(4,2,r,a)}function dE(r,a){return dl(4,4,r,a)}function hE(r,a){if(typeof a=="function"){r=r();var u=a(r);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function fE(r,a,u){u=u!=null?u.concat([r]):null,dl(4,4,hE.bind(null,a,r),u)}function dd(){}function pE(r,a){var u=Et();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&ed(a,m[1])?m[0]:(u.memoizedState=[r,a],r)}function mE(r,a){var u=Et();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&ed(a,m[1]))return m[0];if(m=r(),Mi){dt(!0);try{r()}finally{dt(!1)}}return u.memoizedState=[m,a],m}function hd(r,a,u){return u===void 0||(Sr&1073741824)!==0&&(Ve&261930)===0?r.memoizedState=a:(r.memoizedState=u,r=g0(),Me.lanes|=r,Qr|=r,u)}function gE(r,a,u,m){return vn(u,a)?u:Ca.current!==null?(r=hd(r,u,m),vn(r,a)||(At=!0),r):(Sr&42)===0||(Sr&1073741824)!==0&&(Ve&261930)===0?(At=!0,r.memoizedState=u):(r=g0(),Me.lanes|=r,Qr|=r,a)}function bE(r,a,u,m,w){var A=J.p;J.p=A!==0&&8>A?A:8;var D=W.T,q={};W.T=q,md(r,!1,a,u);try{var Y=w(),re=W.S;if(re!==null&&re(q,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var de=MD(Y,m);Os(r,a,de,Cn(r))}else Os(r,a,m,Cn(r))}catch(pe){Os(r,a,{then:function(){},status:"rejected",reason:pe},Cn())}finally{J.p=A,D!==null&&q.types!==null&&(D.types=q.types),W.T=D}}function zD(){}function fd(r,a,u,m){if(r.tag!==5)throw Error(i(476));var w=yE(r).queue;bE(r,w,a,Q,u===null?zD:function(){return vE(r),u(m)})}function yE(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:Q},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:u},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function vE(r){var a=yE(r);a.next===null&&(a=r.alternate.memoizedState),Os(r,a.next.queue,{},Cn())}function pd(){return zt(Ks)}function _E(){return Et().memoizedState}function SE(){return Et().memoizedState}function HD(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var u=Cn();r=Vr(u);var m=Wr(a,r,u);m!==null&&(cn(m,a,u),Ts(m,a,u)),a={cache:qc()},r.payload=a;return}a=a.return}}function qD(r,a,u){var m=Cn();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},hl(r)?xE(a,u):(u=Ic(r,a,u,m),u!==null&&(cn(u,r,m),wE(u,a,m)))}function EE(r,a,u){var m=Cn();Os(r,a,u,m)}function Os(r,a,u,m){var w={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(hl(r))xE(a,w);else{var A=r.alternate;if(r.lanes===0&&(A===null||A.lanes===0)&&(A=a.lastRenderedReducer,A!==null))try{var D=a.lastRenderedState,q=A(D,u);if(w.hasEagerState=!0,w.eagerState=q,vn(q,D))return Vo(r,a,w,0),st===null&&Go(),!1}catch{}finally{}if(u=Ic(r,a,w,m),u!==null)return cn(u,r,m),wE(u,a,m),!0}return!1}function md(r,a,u,m){if(m={lane:2,revertLane:Wd(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},hl(r)){if(a)throw Error(i(479))}else a=Ic(r,u,m,2),a!==null&&cn(a,r,2)}function hl(r){var a=r.alternate;return r===Me||a!==null&&a===Me}function xE(r,a){Ta=al=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function wE(r,a,u){if((u&4194048)!==0){var m=a.lanes;m&=r.pendingLanes,u|=m,a.lanes=u,k_(r,u)}}var Is={readContext:zt,use:ll,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};Is.useEffectEvent=yt;var CE={readContext:zt,use:ll,useCallback:function(r,a){return Qt().memoizedState=[r,a===void 0?null:a],r},useContext:zt,useEffect:lE,useImperativeHandle:function(r,a,u){u=u!=null?u.concat([r]):null,cl(4194308,4,hE.bind(null,a,r),u)},useLayoutEffect:function(r,a){return cl(4194308,4,r,a)},useInsertionEffect:function(r,a){cl(4,2,r,a)},useMemo:function(r,a){var u=Qt();a=a===void 0?null:a;var m=r();if(Mi){dt(!0);try{r()}finally{dt(!1)}}return u.memoizedState=[m,a],m},useReducer:function(r,a,u){var m=Qt();if(u!==void 0){var w=u(a);if(Mi){dt(!0);try{u(a)}finally{dt(!1)}}}else w=a;return m.memoizedState=m.baseState=w,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:w},m.queue=r,r=r.dispatch=qD.bind(null,Me,r),[m.memoizedState,r]},useRef:function(r){var a=Qt();return r={current:r},a.memoizedState=r},useState:function(r){r=ld(r);var a=r.queue,u=EE.bind(null,Me,a);return a.dispatch=u,[r.memoizedState,u]},useDebugValue:dd,useDeferredValue:function(r,a){var u=Qt();return hd(u,r,a)},useTransition:function(){var r=ld(!1);return r=bE.bind(null,Me,r.queue,!0,!1),Qt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,u){var m=Me,w=Qt();if(Ke){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),st===null)throw Error(i(349));(Ve&127)!==0||VS(m,a,u)}w.memoizedState=u;var A={value:u,getSnapshot:a};return w.queue=A,lE(KS.bind(null,m,A,r),[r]),m.flags|=2048,Ra(9,{destroy:void 0},WS.bind(null,m,A,u,a),null),u},useId:function(){var r=Qt(),a=st.identifierPrefix;if(Ke){var u=Jn,m=Qn;u=(m&~(1<<32-Je(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=sl++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=BD++,a="_"+a+"r_"+u.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:pd,useFormState:rE,useActionState:rE,useOptimistic:function(r){var a=Qt();a.memoizedState=a.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=md.bind(null,Me,!0,u),u.dispatch=a,[r,a]},useMemoCache:ad,useCacheRefresh:function(){return Qt().memoizedState=HD.bind(null,Me)},useEffectEvent:function(r){var a=Qt(),u={impl:r};return a.memoizedState=u,function(){if((Qe&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},gd={readContext:zt,use:ll,useCallback:pE,useContext:zt,useEffect:cd,useImperativeHandle:fE,useInsertionEffect:cE,useLayoutEffect:dE,useMemo:mE,useReducer:ul,useRef:oE,useState:function(){return ul(Er)},useDebugValue:dd,useDeferredValue:function(r,a){var u=Et();return gE(u,nt.memoizedState,r,a)},useTransition:function(){var r=ul(Er)[0],a=Et().memoizedState;return[typeof r=="boolean"?r:Ns(r),a]},useSyncExternalStore:GS,useId:_E,useHostTransitionStatus:pd,useFormState:iE,useActionState:iE,useOptimistic:function(r,a){var u=Et();return ZS(u,nt,r,a)},useMemoCache:ad,useCacheRefresh:SE};gd.useEffectEvent=uE;var TE={readContext:zt,use:ll,useCallback:pE,useContext:zt,useEffect:cd,useImperativeHandle:fE,useInsertionEffect:cE,useLayoutEffect:dE,useMemo:mE,useReducer:od,useRef:oE,useState:function(){return od(Er)},useDebugValue:dd,useDeferredValue:function(r,a){var u=Et();return nt===null?hd(u,r,a):gE(u,nt.memoizedState,r,a)},useTransition:function(){var r=od(Er)[0],a=Et().memoizedState;return[typeof r=="boolean"?r:Ns(r),a]},useSyncExternalStore:GS,useId:_E,useHostTransitionStatus:pd,useFormState:sE,useActionState:sE,useOptimistic:function(r,a){var u=Et();return nt!==null?ZS(u,nt,r,a):(u.baseState=r,[r,u.queue.dispatch])},useMemoCache:ad,useCacheRefresh:SE};TE.useEffectEvent=uE;function bd(r,a,u,m){a=r.memoizedState,u=u(m,a),u=u==null?a:f({},a,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var yd={enqueueSetState:function(r,a,u){r=r._reactInternals;var m=Cn(),w=Vr(m);w.payload=a,u!=null&&(w.callback=u),a=Wr(r,w,m),a!==null&&(cn(a,r,m),Ts(a,r,m))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var m=Cn(),w=Vr(m);w.tag=1,w.payload=a,u!=null&&(w.callback=u),a=Wr(r,w,m),a!==null&&(cn(a,r,m),Ts(a,r,m))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Cn(),m=Vr(u);m.tag=2,a!=null&&(m.callback=a),a=Wr(r,m,u),a!==null&&(cn(a,r,u),Ts(a,r,u))}};function AE(r,a,u,m,w,A,D){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(m,A,D):a.prototype&&a.prototype.isPureReactComponent?!ys(u,m)||!ys(w,A):!0}function RE(r,a,u,m){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==r&&yd.enqueueReplaceState(a,a.state,null)}function Bi(r,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(r=r.defaultProps){u===a&&(u=f({},u));for(var w in r)u[w]===void 0&&(u[w]=r[w])}return u}function kE(r){$o(r)}function NE(r){console.error(r)}function OE(r){$o(r)}function fl(r,a){try{var u=r.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function IE(r,a,u){try{var m=r.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function vd(r,a,u){return u=Vr(u),u.tag=3,u.payload={element:null},u.callback=function(){fl(r,a)},u}function LE(r){return r=Vr(r),r.tag=3,r}function DE(r,a,u,m){var w=u.type.getDerivedStateFromError;if(typeof w=="function"){var A=m.value;r.payload=function(){return w(A)},r.callback=function(){IE(a,u,m)}}var D=u.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(r.callback=function(){IE(a,u,m),typeof w!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var q=m.stack;this.componentDidCatch(m.value,{componentStack:q!==null?q:""})})}function $D(r,a,u,m,w){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&_a(a,u,w,!0),u=Sn.current,u!==null){switch(u.tag){case 31:case 13:return Pn===null?Cl():u.alternate===null&&vt===0&&(vt=3),u.flags&=-257,u.flags|=65536,u.lanes=w,m===el?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),$d(r,m,w)),!1;case 22:return u.flags|=65536,m===el?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),$d(r,m,w)),!1}throw Error(i(435,u.tag))}return $d(r,m,w),Cl(),!1}if(Ke)return a=Sn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=w,m!==Pc&&(r=Error(i(422),{cause:m}),Ss(Dn(r,u)))):(m!==Pc&&(a=Error(i(423),{cause:m}),Ss(Dn(a,u))),r=r.current.alternate,r.flags|=65536,w&=-w,r.lanes|=w,m=Dn(m,u),w=vd(r.stateNode,m,w),Yc(r,w),vt!==4&&(vt=2)),!1;var A=Error(i(520),{cause:m});if(A=Dn(A,u),js===null?js=[A]:js.push(A),vt!==4&&(vt=2),a===null)return!0;m=Dn(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,r=w&-w,u.lanes|=r,r=vd(u.stateNode,m,r),Yc(u,r),!1;case 1:if(a=u.type,A=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Jr===null||!Jr.has(A))))return u.flags|=65536,w&=-w,u.lanes|=w,w=LE(w),DE(w,r,u,m),Yc(u,w),!1}u=u.return}while(u!==null);return!1}var _d=Error(i(461)),At=!1;function Ht(r,a,u,m){a.child=r===null?PS(a,null,u,m):Di(a,r.child,u,m)}function ME(r,a,u,m,w){u=u.render;var A=a.ref;if("ref"in m){var D={};for(var q in m)q!=="ref"&&(D[q]=m[q])}else D=m;return Ni(a),m=td(r,a,u,D,A,w),q=nd(),r!==null&&!At?(rd(r,a,w),xr(r,a,w)):(Ke&&q&&Bc(a),a.flags|=1,Ht(r,a,m,w),a.child)}function BE(r,a,u,m,w){if(r===null){var A=u.type;return typeof A=="function"&&!Lc(A)&&A.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=A,FE(r,a,A,m,w)):(r=Ko(u.type,null,m,a,a.mode,w),r.ref=a.ref,r.return=a,a.child=r)}if(A=r.child,!Rd(r,w)){var D=A.memoizedProps;if(u=u.compare,u=u!==null?u:ys,u(D,m)&&r.ref===a.ref)return xr(r,a,w)}return a.flags|=1,r=br(A,m),r.ref=a.ref,r.return=a,a.child=r}function FE(r,a,u,m,w){if(r!==null){var A=r.memoizedProps;if(ys(A,m)&&r.ref===a.ref)if(At=!1,a.pendingProps=m=A,Rd(r,w))(r.flags&131072)!==0&&(At=!0);else return a.lanes=r.lanes,xr(r,a,w)}return Sd(r,a,u,m,w)}function PE(r,a,u,m){var w=m.children,A=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(A=A!==null?A.baseLanes|u:u,r!==null){for(m=a.child=r.child,w=0;m!==null;)w=w|m.lanes|m.childLanes,m=m.sibling;m=w&~A}else m=0,a.child=null;return UE(r,a,A,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Qo(a,A!==null?A.cachePool:null),A!==null?zS(a,A):Zc(),HS(a);else return m=a.lanes=536870912,UE(r,a,A!==null?A.baseLanes|u:u,u,m)}else A!==null?(Qo(a,A.cachePool),zS(a,A),Yr(),a.memoizedState=null):(r!==null&&Qo(a,null),Zc(),Yr());return Ht(r,a,w,u),a.child}function Ls(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function UE(r,a,u,m,w){var A=Gc();return A=A===null?null:{parent:Ct._currentValue,pool:A},a.memoizedState={baseLanes:u,cachePool:A},r!==null&&Qo(a,null),Zc(),HS(a),r!==null&&_a(r,a,m,!0),a.childLanes=w,null}function pl(r,a){return a=gl({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function jE(r,a,u){return Di(a,r.child,null,u),r=pl(a,a.pendingProps),r.flags|=2,En(a),a.memoizedState=null,r}function GD(r,a,u){var m=a.pendingProps,w=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Ke){if(m.mode==="hidden")return r=pl(a,m),a.lanes=536870912,Ls(null,r);if(Jc(a),(r=ut)?(r=Q0(r,Fn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:zr!==null?{id:Qn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},u=xS(r),u.return=a,a.child=u,jt=a,ut=null)):r=null,r===null)throw qr(a);return a.lanes=536870912,null}return pl(a,m)}var A=r.memoizedState;if(A!==null){var D=A.dehydrated;if(Jc(a),w)if(a.flags&256)a.flags&=-257,a=jE(r,a,u);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(At||_a(r,a,u,!1),w=(u&r.childLanes)!==0,At||w){if(m=st,m!==null&&(D=N_(m,u),D!==0&&D!==A.retryLane))throw A.retryLane=D,Ti(r,D),cn(m,r,D),_d;Cl(),a=jE(r,a,u)}else r=A.treeContext,ut=Un(D.nextSibling),jt=a,Ke=!0,Hr=null,Fn=!1,r!==null&&TS(a,r),a=pl(a,m),a.flags|=4096;return a}return r=br(r.child,{mode:m.mode,children:m.children}),r.ref=a.ref,a.child=r,r.return=a,r}function ml(r,a){var u=a.ref;if(u===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(r===null||r.ref!==u)&&(a.flags|=4194816)}}function Sd(r,a,u,m,w){return Ni(a),u=td(r,a,u,m,void 0,w),m=nd(),r!==null&&!At?(rd(r,a,w),xr(r,a,w)):(Ke&&m&&Bc(a),a.flags|=1,Ht(r,a,u,w),a.child)}function zE(r,a,u,m,w,A){return Ni(a),a.updateQueue=null,u=$S(a,m,u,w),qS(r),m=nd(),r!==null&&!At?(rd(r,a,A),xr(r,a,A)):(Ke&&m&&Bc(a),a.flags|=1,Ht(r,a,u,A),a.child)}function HE(r,a,u,m,w){if(Ni(a),a.stateNode===null){var A=ga,D=u.contextType;typeof D=="object"&&D!==null&&(A=zt(D)),A=new u(m,A),a.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=yd,a.stateNode=A,A._reactInternals=a,A=a.stateNode,A.props=m,A.state=a.memoizedState,A.refs={},Wc(a),D=u.contextType,A.context=typeof D=="object"&&D!==null?zt(D):ga,A.state=a.memoizedState,D=u.getDerivedStateFromProps,typeof D=="function"&&(bd(a,u,D,m),A.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(D=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),D!==A.state&&yd.enqueueReplaceState(A,A.state,null),Rs(a,m,A,w),As(),A.state=a.memoizedState),typeof A.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(r===null){A=a.stateNode;var q=a.memoizedProps,Y=Bi(u,q);A.props=Y;var re=A.context,de=u.contextType;D=ga,typeof de=="object"&&de!==null&&(D=zt(de));var pe=u.getDerivedStateFromProps;de=typeof pe=="function"||typeof A.getSnapshotBeforeUpdate=="function",q=a.pendingProps!==q,de||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(q||re!==D)&&RE(a,A,m,D),Gr=!1;var ae=a.memoizedState;A.state=ae,Rs(a,m,A,w),As(),re=a.memoizedState,q||ae!==re||Gr?(typeof pe=="function"&&(bd(a,u,pe,m),re=a.memoizedState),(Y=Gr||AE(a,u,Y,m,ae,re,D))?(de||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(a.flags|=4194308)):(typeof A.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=re),A.props=m,A.state=re,A.context=D,m=Y):(typeof A.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{A=a.stateNode,Kc(r,a),D=a.memoizedProps,de=Bi(u,D),A.props=de,pe=a.pendingProps,ae=A.context,re=u.contextType,Y=ga,typeof re=="object"&&re!==null&&(Y=zt(re)),q=u.getDerivedStateFromProps,(re=typeof q=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(D!==pe||ae!==Y)&&RE(a,A,m,Y),Gr=!1,ae=a.memoizedState,A.state=ae,Rs(a,m,A,w),As();var oe=a.memoizedState;D!==pe||ae!==oe||Gr||r!==null&&r.dependencies!==null&&Xo(r.dependencies)?(typeof q=="function"&&(bd(a,u,q,m),oe=a.memoizedState),(de=Gr||AE(a,u,de,m,ae,oe,Y)||r!==null&&r.dependencies!==null&&Xo(r.dependencies))?(re||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(m,oe,Y),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(m,oe,Y)),typeof A.componentDidUpdate=="function"&&(a.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof A.componentDidUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(a.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=oe),A.props=m,A.state=oe,A.context=Y,m=de):(typeof A.componentDidUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(a.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ae===r.memoizedState||(a.flags|=1024),m=!1)}return A=m,ml(r,a),m=(a.flags&128)!==0,A||m?(A=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:A.render(),a.flags|=1,r!==null&&m?(a.child=Di(a,r.child,null,w),a.child=Di(a,null,u,w)):Ht(r,a,u,w),a.memoizedState=A.state,r=a.child):r=xr(r,a,w),r}function qE(r,a,u,m){return Ri(),a.flags|=256,Ht(r,a,u,m),a.child}var Ed={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xd(r){return{baseLanes:r,cachePool:IS()}}function wd(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=wn),r}function $E(r,a,u){var m=a.pendingProps,w=!1,A=(a.flags&128)!==0,D;if((D=A)||(D=r!==null&&r.memoizedState===null?!1:(St.current&2)!==0),D&&(w=!0,a.flags&=-129),D=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ke){if(w?Kr(a):Yr(),(r=ut)?(r=Q0(r,Fn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:zr!==null?{id:Qn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},u=xS(r),u.return=a,a.child=u,jt=a,ut=null)):r=null,r===null)throw qr(a);return sh(r)?a.lanes=32:a.lanes=536870912,null}var q=m.children;return m=m.fallback,w?(Yr(),w=a.mode,q=gl({mode:"hidden",children:q},w),m=Ai(m,w,u,null),q.return=a,m.return=a,q.sibling=m,a.child=q,m=a.child,m.memoizedState=xd(u),m.childLanes=wd(r,D,u),a.memoizedState=Ed,Ls(null,m)):(Kr(a),Cd(a,q))}var Y=r.memoizedState;if(Y!==null&&(q=Y.dehydrated,q!==null)){if(A)a.flags&256?(Kr(a),a.flags&=-257,a=Td(r,a,u)):a.memoizedState!==null?(Yr(),a.child=r.child,a.flags|=128,a=null):(Yr(),q=m.fallback,w=a.mode,m=gl({mode:"visible",children:m.children},w),q=Ai(q,w,u,null),q.flags|=2,m.return=a,q.return=a,m.sibling=q,a.child=m,Di(a,r.child,null,u),m=a.child,m.memoizedState=xd(u),m.childLanes=wd(r,D,u),a.memoizedState=Ed,a=Ls(null,m));else if(Kr(a),sh(q)){if(D=q.nextSibling&&q.nextSibling.dataset,D)var re=D.dgst;D=re,m=Error(i(419)),m.stack="",m.digest=D,Ss({value:m,source:null,stack:null}),a=Td(r,a,u)}else if(At||_a(r,a,u,!1),D=(u&r.childLanes)!==0,At||D){if(D=st,D!==null&&(m=N_(D,u),m!==0&&m!==Y.retryLane))throw Y.retryLane=m,Ti(r,m),cn(D,r,m),_d;ah(q)||Cl(),a=Td(r,a,u)}else ah(q)?(a.flags|=192,a.child=r.child,a=null):(r=Y.treeContext,ut=Un(q.nextSibling),jt=a,Ke=!0,Hr=null,Fn=!1,r!==null&&TS(a,r),a=Cd(a,m.children),a.flags|=4096);return a}return w?(Yr(),q=m.fallback,w=a.mode,Y=r.child,re=Y.sibling,m=br(Y,{mode:"hidden",children:m.children}),m.subtreeFlags=Y.subtreeFlags&65011712,re!==null?q=br(re,q):(q=Ai(q,w,u,null),q.flags|=2),q.return=a,m.return=a,m.sibling=q,a.child=m,Ls(null,m),m=a.child,q=r.child.memoizedState,q===null?q=xd(u):(w=q.cachePool,w!==null?(Y=Ct._currentValue,w=w.parent!==Y?{parent:Y,pool:Y}:w):w=IS(),q={baseLanes:q.baseLanes|u,cachePool:w}),m.memoizedState=q,m.childLanes=wd(r,D,u),a.memoizedState=Ed,Ls(r.child,m)):(Kr(a),u=r.child,r=u.sibling,u=br(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,r!==null&&(D=a.deletions,D===null?(a.deletions=[r],a.flags|=16):D.push(r)),a.child=u,a.memoizedState=null,u)}function Cd(r,a){return a=gl({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function gl(r,a){return r=_n(22,r,null,a),r.lanes=0,r}function Td(r,a,u){return Di(a,r.child,null,u),r=Cd(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function GE(r,a,u){r.lanes|=a;var m=r.alternate;m!==null&&(m.lanes|=a),zc(r.return,a,u)}function Ad(r,a,u,m,w,A){var D=r.memoizedState;D===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:w,treeForkCount:A}:(D.isBackwards=a,D.rendering=null,D.renderingStartTime=0,D.last=m,D.tail=u,D.tailMode=w,D.treeForkCount=A)}function VE(r,a,u){var m=a.pendingProps,w=m.revealOrder,A=m.tail;m=m.children;var D=St.current,q=(D&2)!==0;if(q?(D=D&1|2,a.flags|=128):D&=1,P(St,D),Ht(r,a,m,u),m=Ke?_s:0,!q&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&GE(r,u,a);else if(r.tag===19)GE(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(w){case"forwards":for(u=a.child,w=null;u!==null;)r=u.alternate,r!==null&&il(r)===null&&(w=u),u=u.sibling;u=w,u===null?(w=a.child,a.child=null):(w=u.sibling,u.sibling=null),Ad(a,!1,w,u,A,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,w=a.child,a.child=null;w!==null;){if(r=w.alternate,r!==null&&il(r)===null){a.child=w;break}r=w.sibling,w.sibling=u,u=w,w=r}Ad(a,!0,u,null,A,m);break;case"together":Ad(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function xr(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Qr|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(_a(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,u=br(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=br(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function Rd(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Xo(r)))}function VD(r,a,u){switch(a.tag){case 3:$(a,a.stateNode.containerInfo),$r(a,Ct,r.memoizedState.cache),Ri();break;case 27:case 5:he(a);break;case 4:$(a,a.stateNode.containerInfo);break;case 10:$r(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Jc(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(Kr(a),a.flags|=128,null):(u&a.child.childLanes)!==0?$E(r,a,u):(Kr(a),r=xr(r,a,u),r!==null?r.sibling:null);Kr(a);break;case 19:var w=(r.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(_a(r,a,u,!1),m=(u&a.childLanes)!==0),w){if(m)return VE(r,a,u);a.flags|=128}if(w=a.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),P(St,St.current),m)break;return null;case 22:return a.lanes=0,PE(r,a,u,a.pendingProps);case 24:$r(a,Ct,r.memoizedState.cache)}return xr(r,a,u)}function WE(r,a,u){if(r!==null)if(r.memoizedProps!==a.pendingProps)At=!0;else{if(!Rd(r,u)&&(a.flags&128)===0)return At=!1,VD(r,a,u);At=(r.flags&131072)!==0}else At=!1,Ke&&(a.flags&1048576)!==0&&CS(a,_s,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(r=Ii(a.elementType),a.type=r,typeof r=="function")Lc(r)?(m=Bi(r,m),a.tag=1,a=HE(null,a,r,m,u)):(a.tag=0,a=Sd(null,a,r,m,u));else{if(r!=null){var w=r.$$typeof;if(w===C){a.tag=11,a=ME(null,a,r,m,u);break e}else if(w===O){a.tag=14,a=BE(null,a,r,m,u);break e}}throw a=G(r)||r,Error(i(306,a,""))}}return a;case 0:return Sd(r,a,a.type,a.pendingProps,u);case 1:return m=a.type,w=Bi(m,a.pendingProps),HE(r,a,m,w,u);case 3:e:{if($(a,a.stateNode.containerInfo),r===null)throw Error(i(387));m=a.pendingProps;var A=a.memoizedState;w=A.element,Kc(r,a),Rs(a,m,null,u);var D=a.memoizedState;if(m=D.cache,$r(a,Ct,m),m!==A.cache&&Hc(a,[Ct],u,!0),As(),m=D.element,A.isDehydrated)if(A={element:m,isDehydrated:!1,cache:D.cache},a.updateQueue.baseState=A,a.memoizedState=A,a.flags&256){a=qE(r,a,m,u);break e}else if(m!==w){w=Dn(Error(i(424)),a),Ss(w),a=qE(r,a,m,u);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(ut=Un(r.firstChild),jt=a,Ke=!0,Hr=null,Fn=!0,u=PS(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ri(),m===w){a=xr(r,a,u);break e}Ht(r,a,m,u)}a=a.child}return a;case 26:return ml(r,a),r===null?(u=ix(a.type,null,a.pendingProps,null))?a.memoizedState=u:Ke||(u=a.type,r=a.pendingProps,m=Il(ce.current).createElement(u),m[Ut]=a,m[rn]=r,qt(m,u,r),Ft(m),a.stateNode=m):a.memoizedState=ix(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return he(a),r===null&&Ke&&(m=a.stateNode=tx(a.type,a.pendingProps,ce.current),jt=a,Fn=!0,w=ut,ri(a.type)?(oh=w,ut=Un(m.firstChild)):ut=w),Ht(r,a,a.pendingProps.children,u),ml(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ke&&((w=m=ut)&&(m=E2(m,a.type,a.pendingProps,Fn),m!==null?(a.stateNode=m,jt=a,ut=Un(m.firstChild),Fn=!1,w=!0):w=!1),w||qr(a)),he(a),w=a.type,A=a.pendingProps,D=r!==null?r.memoizedProps:null,m=A.children,nh(w,A)?m=null:D!==null&&nh(w,D)&&(a.flags|=32),a.memoizedState!==null&&(w=td(r,a,FD,null,null,u),Ks._currentValue=w),ml(r,a),Ht(r,a,m,u),a.child;case 6:return r===null&&Ke&&((r=u=ut)&&(u=x2(u,a.pendingProps,Fn),u!==null?(a.stateNode=u,jt=a,ut=null,r=!0):r=!1),r||qr(a)),null;case 13:return $E(r,a,u);case 4:return $(a,a.stateNode.containerInfo),m=a.pendingProps,r===null?a.child=Di(a,null,m,u):Ht(r,a,m,u),a.child;case 11:return ME(r,a,a.type,a.pendingProps,u);case 7:return Ht(r,a,a.pendingProps,u),a.child;case 8:return Ht(r,a,a.pendingProps.children,u),a.child;case 12:return Ht(r,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,$r(a,a.type,m.value),Ht(r,a,m.children,u),a.child;case 9:return w=a.type._context,m=a.pendingProps.children,Ni(a),w=zt(w),m=m(w),a.flags|=1,Ht(r,a,m,u),a.child;case 14:return BE(r,a,a.type,a.pendingProps,u);case 15:return FE(r,a,a.type,a.pendingProps,u);case 19:return VE(r,a,u);case 31:return GD(r,a,u);case 22:return PE(r,a,u,a.pendingProps);case 24:return Ni(a),m=zt(Ct),r===null?(w=Gc(),w===null&&(w=st,A=qc(),w.pooledCache=A,A.refCount++,A!==null&&(w.pooledCacheLanes|=u),w=A),a.memoizedState={parent:m,cache:w},Wc(a),$r(a,Ct,w)):((r.lanes&u)!==0&&(Kc(r,a),Rs(a,null,null,u),As()),w=r.memoizedState,A=a.memoizedState,w.parent!==m?(w={parent:m,cache:m},a.memoizedState=w,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=w),$r(a,Ct,m)):(m=A.cache,$r(a,Ct,m),m!==w.cache&&Hc(a,[Ct],u,!0))),Ht(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function wr(r){r.flags|=4}function kd(r,a,u,m,w){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(w&335544128)===w)if(r.stateNode.complete)r.flags|=8192;else if(_0())r.flags|=8192;else throw Li=el,Vc}else r.flags&=-16777217}function KE(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!ux(a))if(_0())r.flags|=8192;else throw Li=el,Vc}function bl(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?A_():536870912,r.lanes|=a,Ia|=a)}function Ds(r,a){if(!Ke)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:m.sibling=null}}function ct(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,m=0;if(a)for(var w=r.child;w!==null;)u|=w.lanes|w.childLanes,m|=w.subtreeFlags&65011712,m|=w.flags&65011712,w.return=r,w=w.sibling;else for(w=r.child;w!==null;)u|=w.lanes|w.childLanes,m|=w.subtreeFlags,m|=w.flags,w.return=r,w=w.sibling;return r.subtreeFlags|=m,r.childLanes=u,a}function WD(r,a,u){var m=a.pendingProps;switch(Fc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(a),null;case 1:return ct(a),null;case 3:return u=a.stateNode,m=null,r!==null&&(m=r.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),_r(Ct),ie(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(va(a)?wr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Uc())),ct(a),null;case 26:var w=a.type,A=a.memoizedState;return r===null?(wr(a),A!==null?(ct(a),KE(a,A)):(ct(a),kd(a,w,null,m,u))):A?A!==r.memoizedState?(wr(a),ct(a),KE(a,A)):(ct(a),a.flags&=-16777217):(r=r.memoizedProps,r!==m&&wr(a),ct(a),kd(a,w,r,m,u)),null;case 27:if(be(a),u=ce.current,w=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==m&&wr(a);else{if(!m){if(a.stateNode===null)throw Error(i(166));return ct(a),null}r=ee.current,va(a)?AS(a):(r=tx(w,m,u),a.stateNode=r,wr(a))}return ct(a),null;case 5:if(be(a),w=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==m&&wr(a);else{if(!m){if(a.stateNode===null)throw Error(i(166));return ct(a),null}if(A=ee.current,va(a))AS(a);else{var D=Il(ce.current);switch(A){case 1:A=D.createElementNS("http://www.w3.org/2000/svg",w);break;case 2:A=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;default:switch(w){case"svg":A=D.createElementNS("http://www.w3.org/2000/svg",w);break;case"math":A=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;case"script":A=D.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof m.is=="string"?D.createElement("select",{is:m.is}):D.createElement("select"),m.multiple?A.multiple=!0:m.size&&(A.size=m.size);break;default:A=typeof m.is=="string"?D.createElement(w,{is:m.is}):D.createElement(w)}}A[Ut]=a,A[rn]=m;e:for(D=a.child;D!==null;){if(D.tag===5||D.tag===6)A.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===a)break e;for(;D.sibling===null;){if(D.return===null||D.return===a)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}a.stateNode=A;e:switch(qt(A,w,m),w){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&wr(a)}}return ct(a),kd(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==m&&wr(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(i(166));if(r=ce.current,va(a)){if(r=a.stateNode,u=a.memoizedProps,m=null,w=jt,w!==null)switch(w.tag){case 27:case 5:m=w.memoizedProps}r[Ut]=a,r=!!(r.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||$0(r.nodeValue,u)),r||qr(a,!0)}else r=Il(r).createTextNode(m),r[Ut]=a,a.stateNode=r}return ct(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(m=va(a),u!==null){if(r===null){if(!m)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Ut]=a}else Ri(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ct(a),r=!1}else u=Uc(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(En(a),a):(En(a),null);if((a.flags&128)!==0)throw Error(i(558))}return ct(a),null;case 13:if(m=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(w=va(a),m!==null&&m.dehydrated!==null){if(r===null){if(!w)throw Error(i(318));if(w=a.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(i(317));w[Ut]=a}else Ri(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ct(a),w=!1}else w=Uc(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=w),w=!0;if(!w)return a.flags&256?(En(a),a):(En(a),null)}return En(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,r=r!==null&&r.memoizedState!==null,u&&(m=a.child,w=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(w=m.alternate.memoizedState.cachePool.pool),A=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==w&&(m.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),bl(a,a.updateQueue),ct(a),null);case 4:return ie(),r===null&&Zd(a.stateNode.containerInfo),ct(a),null;case 10:return _r(a.type),ct(a),null;case 19:if(H(St),m=a.memoizedState,m===null)return ct(a),null;if(w=(a.flags&128)!==0,A=m.rendering,A===null)if(w)Ds(m,!1);else{if(vt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(A=il(r),A!==null){for(a.flags|=128,Ds(m,!1),r=A.updateQueue,a.updateQueue=r,bl(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)ES(u,r),u=u.sibling;return P(St,St.current&1|2),Ke&&yr(a,m.treeForkCount),a.child}r=r.sibling}m.tail!==null&&Oe()>El&&(a.flags|=128,w=!0,Ds(m,!1),a.lanes=4194304)}else{if(!w)if(r=il(A),r!==null){if(a.flags|=128,w=!0,r=r.updateQueue,a.updateQueue=r,bl(a,r),Ds(m,!0),m.tail===null&&m.tailMode==="hidden"&&!A.alternate&&!Ke)return ct(a),null}else 2*Oe()-m.renderingStartTime>El&&u!==536870912&&(a.flags|=128,w=!0,Ds(m,!1),a.lanes=4194304);m.isBackwards?(A.sibling=a.child,a.child=A):(r=m.last,r!==null?r.sibling=A:a.child=A,m.last=A)}return m.tail!==null?(r=m.tail,m.rendering=r,m.tail=r.sibling,m.renderingStartTime=Oe(),r.sibling=null,u=St.current,P(St,w?u&1|2:u&1),Ke&&yr(a,m.treeForkCount),r):(ct(a),null);case 22:case 23:return En(a),Qc(),m=a.memoizedState!==null,r!==null?r.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(ct(a),a.subtreeFlags&6&&(a.flags|=8192)):ct(a),u=a.updateQueue,u!==null&&bl(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),r!==null&&H(Oi),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),_r(Ct),ct(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function KD(r,a){switch(Fc(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return _r(Ct),ie(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return be(a),null;case 31:if(a.memoizedState!==null){if(En(a),a.alternate===null)throw Error(i(340));Ri()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(En(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Ri()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return H(St),null;case 4:return ie(),null;case 10:return _r(a.type),null;case 22:case 23:return En(a),Qc(),r!==null&&H(Oi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return _r(Ct),null;case 25:return null;default:return null}}function YE(r,a){switch(Fc(a),a.tag){case 3:_r(Ct),ie();break;case 26:case 27:case 5:be(a);break;case 4:ie();break;case 31:a.memoizedState!==null&&En(a);break;case 13:En(a);break;case 19:H(St);break;case 10:_r(a.type);break;case 22:case 23:En(a),Qc(),r!==null&&H(Oi);break;case 24:_r(Ct)}}function Ms(r,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var w=m.next;u=w;do{if((u.tag&r)===r){m=void 0;var A=u.create,D=u.inst;m=A(),D.destroy=m}u=u.next}while(u!==w)}}catch(q){tt(a,a.return,q)}}function Xr(r,a,u){try{var m=a.updateQueue,w=m!==null?m.lastEffect:null;if(w!==null){var A=w.next;m=A;do{if((m.tag&r)===r){var D=m.inst,q=D.destroy;if(q!==void 0){D.destroy=void 0,w=a;var Y=u,re=q;try{re()}catch(de){tt(w,Y,de)}}}m=m.next}while(m!==A)}}catch(de){tt(a,a.return,de)}}function XE(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;try{jS(a,u)}catch(m){tt(r,r.return,m)}}}function ZE(r,a,u){u.props=Bi(r.type,r.memoizedProps),u.state=r.memoizedState;try{u.componentWillUnmount()}catch(m){tt(r,a,m)}}function Bs(r,a){try{var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var m=r.stateNode;break;case 30:m=r.stateNode;break;default:m=r.stateNode}typeof u=="function"?r.refCleanup=u(m):u.current=m}}catch(w){tt(r,a,w)}}function er(r,a){var u=r.ref,m=r.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(w){tt(r,a,w)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(w){tt(r,a,w)}else u.current=null}function QE(r){var a=r.type,u=r.memoizedProps,m=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(w){tt(r,r.return,w)}}function Nd(r,a,u){try{var m=r.stateNode;g2(m,r.type,u,a),m[rn]=a}catch(w){tt(r,r.return,w)}}function JE(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ri(r.type)||r.tag===4}function Od(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||JE(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ri(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Id(r,a,u){var m=r.tag;if(m===5||m===6)r=r.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=mr));else if(m!==4&&(m===27&&ri(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(Id(r,a,u),r=r.sibling;r!==null;)Id(r,a,u),r=r.sibling}function yl(r,a,u){var m=r.tag;if(m===5||m===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(m!==4&&(m===27&&ri(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(yl(r,a,u),r=r.sibling;r!==null;)yl(r,a,u),r=r.sibling}function e0(r){var a=r.stateNode,u=r.memoizedProps;try{for(var m=r.type,w=a.attributes;w.length;)a.removeAttributeNode(w[0]);qt(a,m,u),a[Ut]=r,a[rn]=u}catch(A){tt(r,r.return,A)}}var Cr=!1,Rt=!1,Ld=!1,t0=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function YD(r,a){if(r=r.containerInfo,eh=Ul,r=fS(r),Tc(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var w=m.anchorOffset,A=m.focusNode;m=m.focusOffset;try{u.nodeType,A.nodeType}catch{u=null;break e}var D=0,q=-1,Y=-1,re=0,de=0,pe=r,ae=null;t:for(;;){for(var oe;pe!==u||w!==0&&pe.nodeType!==3||(q=D+w),pe!==A||m!==0&&pe.nodeType!==3||(Y=D+m),pe.nodeType===3&&(D+=pe.nodeValue.length),(oe=pe.firstChild)!==null;)ae=pe,pe=oe;for(;;){if(pe===r)break t;if(ae===u&&++re===w&&(q=D),ae===A&&++de===m&&(Y=D),(oe=pe.nextSibling)!==null)break;pe=ae,ae=pe.parentNode}pe=oe}u=q===-1||Y===-1?null:{start:q,end:Y}}else u=null}u=u||{start:0,end:0}}else u=null;for(th={focusedElem:r,selectionRange:u},Ul=!1,Pt=a;Pt!==null;)if(a=Pt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Pt=r;else for(;Pt!==null;){switch(a=Pt,A=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)w=r[u],w.ref.impl=w.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&A!==null){r=void 0,u=a,w=A.memoizedProps,A=A.memoizedState,m=u.stateNode;try{var _e=Bi(u.type,w);r=m.getSnapshotBeforeUpdate(_e,A),m.__reactInternalSnapshotBeforeUpdate=r}catch(Re){tt(u,u.return,Re)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,u=r.nodeType,u===9)ih(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ih(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Pt=r;break}Pt=a.return}}function n0(r,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:Ar(r,u),m&4&&Ms(5,u);break;case 1:if(Ar(r,u),m&4)if(r=u.stateNode,a===null)try{r.componentDidMount()}catch(D){tt(u,u.return,D)}else{var w=Bi(u.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(w,a,r.__reactInternalSnapshotBeforeUpdate)}catch(D){tt(u,u.return,D)}}m&64&&XE(u),m&512&&Bs(u,u.return);break;case 3:if(Ar(r,u),m&64&&(r=u.updateQueue,r!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{jS(r,a)}catch(D){tt(u,u.return,D)}}break;case 27:a===null&&m&4&&e0(u);case 26:case 5:Ar(r,u),a===null&&m&4&&QE(u),m&512&&Bs(u,u.return);break;case 12:Ar(r,u);break;case 31:Ar(r,u),m&4&&a0(r,u);break;case 13:Ar(r,u),m&4&&s0(r,u),m&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=i2.bind(null,u),w2(r,u))));break;case 22:if(m=u.memoizedState!==null||Cr,!m){a=a!==null&&a.memoizedState!==null||Rt,w=Cr;var A=Rt;Cr=m,(Rt=a)&&!A?Rr(r,u,(u.subtreeFlags&8772)!==0):Ar(r,u),Cr=w,Rt=A}break;case 30:break;default:Ar(r,u)}}function r0(r){var a=r.alternate;a!==null&&(r.alternate=null,r0(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&uc(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var ht=null,sn=!1;function Tr(r,a,u){for(u=u.child;u!==null;)i0(r,a,u),u=u.sibling}function i0(r,a,u){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(mt,u)}catch{}switch(u.tag){case 26:Rt||er(u,a),Tr(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rt||er(u,a);var m=ht,w=sn;ri(u.type)&&(ht=u.stateNode,sn=!1),Tr(r,a,u),Gs(u.stateNode),ht=m,sn=w;break;case 5:Rt||er(u,a);case 6:if(m=ht,w=sn,ht=null,Tr(r,a,u),ht=m,sn=w,ht!==null)if(sn)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(u.stateNode)}catch(A){tt(u,a,A)}else try{ht.removeChild(u.stateNode)}catch(A){tt(u,a,A)}break;case 18:ht!==null&&(sn?(r=ht,X0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),ja(r)):X0(ht,u.stateNode));break;case 4:m=ht,w=sn,ht=u.stateNode.containerInfo,sn=!0,Tr(r,a,u),ht=m,sn=w;break;case 0:case 11:case 14:case 15:Xr(2,u,a),Rt||Xr(4,u,a),Tr(r,a,u);break;case 1:Rt||(er(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&ZE(u,a,m)),Tr(r,a,u);break;case 21:Tr(r,a,u);break;case 22:Rt=(m=Rt)||u.memoizedState!==null,Tr(r,a,u),Rt=m;break;default:Tr(r,a,u)}}function a0(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ja(r)}catch(u){tt(a,a.return,u)}}}function s0(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ja(r)}catch(u){tt(a,a.return,u)}}function XD(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new t0),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new t0),a;default:throw Error(i(435,r.tag))}}function vl(r,a){var u=XD(r);a.forEach(function(m){if(!u.has(m)){u.add(m);var w=a2.bind(null,r,m);m.then(w,w)}})}function on(r,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var w=u[m],A=r,D=a,q=D;e:for(;q!==null;){switch(q.tag){case 27:if(ri(q.type)){ht=q.stateNode,sn=!1;break e}break;case 5:ht=q.stateNode,sn=!1;break e;case 3:case 4:ht=q.stateNode.containerInfo,sn=!0;break e}q=q.return}if(ht===null)throw Error(i(160));i0(A,D,w),ht=null,sn=!1,A=w.alternate,A!==null&&(A.return=null),w.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)o0(a,r),a=a.sibling}var Gn=null;function o0(r,a){var u=r.alternate,m=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:on(a,r),ln(r),m&4&&(Xr(3,r,r.return),Ms(3,r),Xr(5,r,r.return));break;case 1:on(a,r),ln(r),m&512&&(Rt||u===null||er(u,u.return)),m&64&&Cr&&(r=r.updateQueue,r!==null&&(m=r.callbacks,m!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var w=Gn;if(on(a,r),ln(r),m&512&&(Rt||u===null||er(u,u.return)),m&4){var A=u!==null?u.memoizedState:null;if(m=r.memoizedState,u===null)if(m===null)if(r.stateNode===null){e:{m=r.type,u=r.memoizedProps,w=w.ownerDocument||w;t:switch(m){case"title":A=w.getElementsByTagName("title")[0],(!A||A[us]||A[Ut]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=w.createElement(m),w.head.insertBefore(A,w.querySelector("head > title"))),qt(A,m,u),A[Ut]=r,Ft(A),m=A;break e;case"link":var D=ox("link","href",w).get(m+(u.href||""));if(D){for(var q=0;q<D.length;q++)if(A=D[q],A.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&A.getAttribute("rel")===(u.rel==null?null:u.rel)&&A.getAttribute("title")===(u.title==null?null:u.title)&&A.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){D.splice(q,1);break t}}A=w.createElement(m),qt(A,m,u),w.head.appendChild(A);break;case"meta":if(D=ox("meta","content",w).get(m+(u.content||""))){for(q=0;q<D.length;q++)if(A=D[q],A.getAttribute("content")===(u.content==null?null:""+u.content)&&A.getAttribute("name")===(u.name==null?null:u.name)&&A.getAttribute("property")===(u.property==null?null:u.property)&&A.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&A.getAttribute("charset")===(u.charSet==null?null:u.charSet)){D.splice(q,1);break t}}A=w.createElement(m),qt(A,m,u),w.head.appendChild(A);break;default:throw Error(i(468,m))}A[Ut]=r,Ft(A),m=A}r.stateNode=m}else lx(w,r.type,r.stateNode);else r.stateNode=sx(w,m,r.memoizedProps);else A!==m?(A===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):A.count--,m===null?lx(w,r.type,r.stateNode):sx(w,m,r.memoizedProps)):m===null&&r.stateNode!==null&&Nd(r,r.memoizedProps,u.memoizedProps)}break;case 27:on(a,r),ln(r),m&512&&(Rt||u===null||er(u,u.return)),u!==null&&m&4&&Nd(r,r.memoizedProps,u.memoizedProps);break;case 5:if(on(a,r),ln(r),m&512&&(Rt||u===null||er(u,u.return)),r.flags&32){w=r.stateNode;try{ua(w,"")}catch(_e){tt(r,r.return,_e)}}m&4&&r.stateNode!=null&&(w=r.memoizedProps,Nd(r,w,u!==null?u.memoizedProps:w)),m&1024&&(Ld=!0);break;case 6:if(on(a,r),ln(r),m&4){if(r.stateNode===null)throw Error(i(162));m=r.memoizedProps,u=r.stateNode;try{u.nodeValue=m}catch(_e){tt(r,r.return,_e)}}break;case 3:if(Ml=null,w=Gn,Gn=Ll(a.containerInfo),on(a,r),Gn=w,ln(r),m&4&&u!==null&&u.memoizedState.isDehydrated)try{ja(a.containerInfo)}catch(_e){tt(r,r.return,_e)}Ld&&(Ld=!1,l0(r));break;case 4:m=Gn,Gn=Ll(r.stateNode.containerInfo),on(a,r),ln(r),Gn=m;break;case 12:on(a,r),ln(r);break;case 31:on(a,r),ln(r),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,vl(r,m)));break;case 13:on(a,r),ln(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Sl=Oe()),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,vl(r,m)));break;case 22:w=r.memoizedState!==null;var Y=u!==null&&u.memoizedState!==null,re=Cr,de=Rt;if(Cr=re||w,Rt=de||Y,on(a,r),Rt=de,Cr=re,ln(r),m&8192)e:for(a=r.stateNode,a._visibility=w?a._visibility&-2:a._visibility|1,w&&(u===null||Y||Cr||Rt||Fi(r)),u=null,a=r;;){if(a.tag===5||a.tag===26){if(u===null){Y=u=a;try{if(A=Y.stateNode,w)D=A.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{q=Y.stateNode;var pe=Y.memoizedProps.style,ae=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;q.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(_e){tt(Y,Y.return,_e)}}}else if(a.tag===6){if(u===null){Y=a;try{Y.stateNode.nodeValue=w?"":Y.memoizedProps}catch(_e){tt(Y,Y.return,_e)}}}else if(a.tag===18){if(u===null){Y=a;try{var oe=Y.stateNode;w?Z0(oe,!0):Z0(Y.stateNode,!1)}catch(_e){tt(Y,Y.return,_e)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=r.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,vl(r,u))));break;case 19:on(a,r),ln(r),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,vl(r,m)));break;case 30:break;case 21:break;default:on(a,r),ln(r)}}function ln(r){var a=r.flags;if(a&2){try{for(var u,m=r.return;m!==null;){if(JE(m)){u=m;break}m=m.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var w=u.stateNode,A=Od(r);yl(r,A,w);break;case 5:var D=u.stateNode;u.flags&32&&(ua(D,""),u.flags&=-33);var q=Od(r);yl(r,q,D);break;case 3:case 4:var Y=u.stateNode.containerInfo,re=Od(r);Id(r,re,Y);break;default:throw Error(i(161))}}catch(de){tt(r,r.return,de)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function l0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;l0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Ar(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)n0(r,a.alternate,a),a=a.sibling}function Fi(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Xr(4,a,a.return),Fi(a);break;case 1:er(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&ZE(a,a.return,u),Fi(a);break;case 27:Gs(a.stateNode);case 26:case 5:er(a,a.return),Fi(a);break;case 22:a.memoizedState===null&&Fi(a);break;case 30:Fi(a);break;default:Fi(a)}r=r.sibling}}function Rr(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,w=r,A=a,D=A.flags;switch(A.tag){case 0:case 11:case 15:Rr(w,A,u),Ms(4,A);break;case 1:if(Rr(w,A,u),m=A,w=m.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(re){tt(m,m.return,re)}if(m=A,w=m.updateQueue,w!==null){var q=m.stateNode;try{var Y=w.shared.hiddenCallbacks;if(Y!==null)for(w.shared.hiddenCallbacks=null,w=0;w<Y.length;w++)US(Y[w],q)}catch(re){tt(m,m.return,re)}}u&&D&64&&XE(A),Bs(A,A.return);break;case 27:e0(A);case 26:case 5:Rr(w,A,u),u&&m===null&&D&4&&QE(A),Bs(A,A.return);break;case 12:Rr(w,A,u);break;case 31:Rr(w,A,u),u&&D&4&&a0(w,A);break;case 13:Rr(w,A,u),u&&D&4&&s0(w,A);break;case 22:A.memoizedState===null&&Rr(w,A,u),Bs(A,A.return);break;case 30:break;default:Rr(w,A,u)}a=a.sibling}}function Dd(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&r.refCount++,u!=null&&Es(u))}function Md(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Es(r))}function Vn(r,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)u0(r,a,u,m),a=a.sibling}function u0(r,a,u,m){var w=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(r,a,u,m),w&2048&&Ms(9,a);break;case 1:Vn(r,a,u,m);break;case 3:Vn(r,a,u,m),w&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Es(r)));break;case 12:if(w&2048){Vn(r,a,u,m),r=a.stateNode;try{var A=a.memoizedProps,D=A.id,q=A.onPostCommit;typeof q=="function"&&q(D,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(Y){tt(a,a.return,Y)}}else Vn(r,a,u,m);break;case 31:Vn(r,a,u,m);break;case 13:Vn(r,a,u,m);break;case 23:break;case 22:A=a.stateNode,D=a.alternate,a.memoizedState!==null?A._visibility&2?Vn(r,a,u,m):Fs(r,a):A._visibility&2?Vn(r,a,u,m):(A._visibility|=2,ka(r,a,u,m,(a.subtreeFlags&10256)!==0||!1)),w&2048&&Dd(D,a);break;case 24:Vn(r,a,u,m),w&2048&&Md(a.alternate,a);break;default:Vn(r,a,u,m)}}function ka(r,a,u,m,w){for(w=w&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var A=r,D=a,q=u,Y=m,re=D.flags;switch(D.tag){case 0:case 11:case 15:ka(A,D,q,Y,w),Ms(8,D);break;case 23:break;case 22:var de=D.stateNode;D.memoizedState!==null?de._visibility&2?ka(A,D,q,Y,w):Fs(A,D):(de._visibility|=2,ka(A,D,q,Y,w)),w&&re&2048&&Dd(D.alternate,D);break;case 24:ka(A,D,q,Y,w),w&&re&2048&&Md(D.alternate,D);break;default:ka(A,D,q,Y,w)}a=a.sibling}}function Fs(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=r,m=a,w=m.flags;switch(m.tag){case 22:Fs(u,m),w&2048&&Dd(m.alternate,m);break;case 24:Fs(u,m),w&2048&&Md(m.alternate,m);break;default:Fs(u,m)}a=a.sibling}}var Ps=8192;function Na(r,a,u){if(r.subtreeFlags&Ps)for(r=r.child;r!==null;)c0(r,a,u),r=r.sibling}function c0(r,a,u){switch(r.tag){case 26:Na(r,a,u),r.flags&Ps&&r.memoizedState!==null&&B2(u,Gn,r.memoizedState,r.memoizedProps);break;case 5:Na(r,a,u);break;case 3:case 4:var m=Gn;Gn=Ll(r.stateNode.containerInfo),Na(r,a,u),Gn=m;break;case 22:r.memoizedState===null&&(m=r.alternate,m!==null&&m.memoizedState!==null?(m=Ps,Ps=16777216,Na(r,a,u),Ps=m):Na(r,a,u));break;default:Na(r,a,u)}}function d0(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Us(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];Pt=m,f0(m,r)}d0(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)h0(r),r=r.sibling}function h0(r){switch(r.tag){case 0:case 11:case 15:Us(r),r.flags&2048&&Xr(9,r,r.return);break;case 3:Us(r);break;case 12:Us(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,_l(r)):Us(r);break;default:Us(r)}}function _l(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];Pt=m,f0(m,r)}d0(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Xr(8,a,a.return),_l(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,_l(a));break;default:_l(a)}r=r.sibling}}function f0(r,a){for(;Pt!==null;){var u=Pt;switch(u.tag){case 0:case 11:case 15:Xr(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Es(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,Pt=m;else e:for(u=r;Pt!==null;){m=Pt;var w=m.sibling,A=m.return;if(r0(m),m===u){Pt=null;break e}if(w!==null){w.return=A,Pt=w;break e}Pt=A}}}var ZD={getCacheForType:function(r){var a=zt(Ct),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return zt(Ct).controller.signal}},QD=typeof WeakMap=="function"?WeakMap:Map,Qe=0,st=null,qe=null,Ve=0,et=0,xn=null,Zr=!1,Oa=!1,Bd=!1,kr=0,vt=0,Qr=0,Pi=0,Fd=0,wn=0,Ia=0,js=null,un=null,Pd=!1,Sl=0,p0=0,El=1/0,xl=null,Jr=null,It=0,ei=null,La=null,Nr=0,Ud=0,jd=null,m0=null,zs=0,zd=null;function Cn(){return(Qe&2)!==0&&Ve!==0?Ve&-Ve:W.T!==null?Wd():O_()}function g0(){if(wn===0)if((Ve&536870912)===0||Ke){var r=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),wn=r}else wn=536870912;return r=Sn.current,r!==null&&(r.flags|=32),wn}function cn(r,a,u){(r===st&&(et===2||et===9)||r.cancelPendingCommit!==null)&&(Da(r,0),ti(r,Ve,wn,!1)),ls(r,u),((Qe&2)===0||r!==st)&&(r===st&&((Qe&2)===0&&(Pi|=u),vt===4&&ti(r,Ve,wn,!1)),tr(r))}function b0(r,a,u){if((Qe&6)!==0)throw Error(i(327));var m=!u&&(a&127)===0&&(a&r.expiredLanes)===0||Pr(r,a),w=m?t2(r,a):qd(r,a,!0),A=m;do{if(w===0){Oa&&!m&&ti(r,a,0,!1);break}else{if(u=r.current.alternate,A&&!JD(u)){w=qd(r,a,!1),A=!1;continue}if(w===2){if(A=a,r.errorRecoveryDisabledLanes&A)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){a=D;e:{var q=r;w=js;var Y=q.current.memoizedState.isDehydrated;if(Y&&(Da(q,D).flags|=256),D=qd(q,D,!1),D!==2){if(Bd&&!Y){q.errorRecoveryDisabledLanes|=A,Pi|=A,w=4;break e}A=un,un=w,A!==null&&(un===null?un=A:un.push.apply(un,A))}w=D}if(A=!1,w!==2)continue}}if(w===1){Da(r,0),ti(r,a,0,!0);break}e:{switch(m=r,A=w,A){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:ti(m,a,wn,!Zr);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(w=Sl+300-Oe(),10<w)){if(ti(m,a,wn,!Zr),Si(m,0,!0)!==0)break e;Nr=a,m.timeoutHandle=K0(y0.bind(null,m,u,un,xl,Pd,a,wn,Pi,Ia,Zr,A,"Throttled",-0,0),w);break e}y0(m,u,un,xl,Pd,a,wn,Pi,Ia,Zr,A,null,-0,0)}}break}while(!0);tr(r)}function y0(r,a,u,m,w,A,D,q,Y,re,de,pe,ae,oe){if(r.timeoutHandle=-1,pe=a.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},c0(a,A,pe);var _e=(A&62914560)===A?Sl-Oe():(A&4194048)===A?p0-Oe():0;if(_e=F2(pe,_e),_e!==null){Nr=A,r.cancelPendingCommit=_e(T0.bind(null,r,a,A,u,m,w,D,q,Y,de,pe,null,ae,oe)),ti(r,A,D,!re);return}}T0(r,a,A,u,m,w,D,q,Y)}function JD(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var w=u[m],A=w.getSnapshot;w=w.value;try{if(!vn(A(),w))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ti(r,a,u,m){a&=~Fd,a&=~Pi,r.suspendedLanes|=a,r.pingedLanes&=~a,m&&(r.warmLanes|=a),m=r.expirationTimes;for(var w=a;0<w;){var A=31-Je(w),D=1<<A;m[A]=-1,w&=~D}u!==0&&R_(r,u,a)}function wl(){return(Qe&6)===0?(Hs(0),!1):!0}function Hd(){if(qe!==null){if(et===0)var r=qe.return;else r=qe,vr=ki=null,id(r),wa=null,ws=0,r=qe;for(;r!==null;)YE(r.alternate,r),r=r.return;qe=null}}function Da(r,a){var u=r.timeoutHandle;u!==-1&&(r.timeoutHandle=-1,v2(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Nr=0,Hd(),st=r,qe=u=br(r.current,null),Ve=a,et=0,xn=null,Zr=!1,Oa=Pr(r,a),Bd=!1,Ia=wn=Fd=Pi=Qr=vt=0,un=js=null,Pd=!1,(a&8)!==0&&(a|=a&32);var m=r.entangledLanes;if(m!==0)for(r=r.entanglements,m&=a;0<m;){var w=31-Je(m),A=1<<w;a|=r[w],m&=~A}return kr=a,Go(),u}function v0(r,a){Me=null,W.H=Is,a===xa||a===Jo?(a=MS(),et=3):a===Vc?(a=MS(),et=4):et=a===_d?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,xn=a,qe===null&&(vt=1,fl(r,Dn(a,r.current)))}function _0(){var r=Sn.current;return r===null?!0:(Ve&4194048)===Ve?Pn===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?r===Pn:!1}function S0(){var r=W.H;return W.H=Is,r===null?Is:r}function E0(){var r=W.A;return W.A=ZD,r}function Cl(){vt=4,Zr||(Ve&4194048)!==Ve&&Sn.current!==null||(Oa=!0),(Qr&134217727)===0&&(Pi&134217727)===0||st===null||ti(st,Ve,wn,!1)}function qd(r,a,u){var m=Qe;Qe|=2;var w=S0(),A=E0();(st!==r||Ve!==a)&&(xl=null,Da(r,a)),a=!1;var D=vt;e:do try{if(et!==0&&qe!==null){var q=qe,Y=xn;switch(et){case 8:Hd(),D=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(a=!0);var re=et;if(et=0,xn=null,Ma(r,q,Y,re),u&&Oa){D=0;break e}break;default:re=et,et=0,xn=null,Ma(r,q,Y,re)}}e2(),D=vt;break}catch(de){v0(r,de)}while(!0);return a&&r.shellSuspendCounter++,vr=ki=null,Qe=m,W.H=w,W.A=A,qe===null&&(st=null,Ve=0,Go()),D}function e2(){for(;qe!==null;)x0(qe)}function t2(r,a){var u=Qe;Qe|=2;var m=S0(),w=E0();st!==r||Ve!==a?(xl=null,El=Oe()+500,Da(r,a)):Oa=Pr(r,a);e:do try{if(et!==0&&qe!==null){a=qe;var A=xn;t:switch(et){case 1:et=0,xn=null,Ma(r,a,A,1);break;case 2:case 9:if(LS(A)){et=0,xn=null,w0(a);break}a=function(){et!==2&&et!==9||st!==r||(et=7),tr(r)},A.then(a,a);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:LS(A)?(et=0,xn=null,w0(a)):(et=0,xn=null,Ma(r,a,A,7));break;case 5:var D=null;switch(qe.tag){case 26:D=qe.memoizedState;case 5:case 27:var q=qe;if(D?ux(D):q.stateNode.complete){et=0,xn=null;var Y=q.sibling;if(Y!==null)qe=Y;else{var re=q.return;re!==null?(qe=re,Tl(re)):qe=null}break t}}et=0,xn=null,Ma(r,a,A,5);break;case 6:et=0,xn=null,Ma(r,a,A,6);break;case 8:Hd(),vt=6;break e;default:throw Error(i(462))}}n2();break}catch(de){v0(r,de)}while(!0);return vr=ki=null,W.H=m,W.A=w,Qe=u,qe!==null?0:(st=null,Ve=0,Go(),vt)}function n2(){for(;qe!==null&&!Bt();)x0(qe)}function x0(r){var a=WE(r.alternate,r,kr);r.memoizedProps=r.pendingProps,a===null?Tl(r):qe=a}function w0(r){var a=r,u=a.alternate;switch(a.tag){case 15:case 0:a=zE(u,a,a.pendingProps,a.type,void 0,Ve);break;case 11:a=zE(u,a,a.pendingProps,a.type.render,a.ref,Ve);break;case 5:id(a);default:YE(u,a),a=qe=ES(a,kr),a=WE(u,a,kr)}r.memoizedProps=r.pendingProps,a===null?Tl(r):qe=a}function Ma(r,a,u,m){vr=ki=null,id(a),wa=null,ws=0;var w=a.return;try{if($D(r,w,a,u,Ve)){vt=1,fl(r,Dn(u,r.current)),qe=null;return}}catch(A){if(w!==null)throw qe=w,A;vt=1,fl(r,Dn(u,r.current)),qe=null;return}a.flags&32768?(Ke||m===1?r=!0:Oa||(Ve&536870912)!==0?r=!1:(Zr=r=!0,(m===2||m===9||m===3||m===6)&&(m=Sn.current,m!==null&&m.tag===13&&(m.flags|=16384))),C0(a,r)):Tl(a)}function Tl(r){var a=r;do{if((a.flags&32768)!==0){C0(a,Zr);return}r=a.return;var u=WD(a.alternate,a,kr);if(u!==null){qe=u;return}if(a=a.sibling,a!==null){qe=a;return}qe=a=r}while(a!==null);vt===0&&(vt=5)}function C0(r,a){do{var u=KD(r.alternate,r);if(u!==null){u.flags&=32767,qe=u;return}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(r=r.sibling,r!==null)){qe=r;return}qe=r=u}while(r!==null);vt=6,qe=null}function T0(r,a,u,m,w,A,D,q,Y){r.cancelPendingCommit=null;do Al();while(It!==0);if((Qe&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(A=a.lanes|a.childLanes,A|=Oc,ML(r,u,A,D,q,Y),r===st&&(qe=st=null,Ve=0),La=a,ei=r,Nr=u,Ud=A,jd=w,m0=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,s2(ve,function(){return O0(),null})):(r.callbackNode=null,r.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=W.T,W.T=null,w=J.p,J.p=2,D=Qe,Qe|=4;try{YD(r,a,u)}finally{Qe=D,J.p=w,W.T=m}}It=1,A0(),R0(),k0()}}function A0(){if(It===1){It=0;var r=ei,a=La,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=W.T,W.T=null;var m=J.p;J.p=2;var w=Qe;Qe|=4;try{o0(a,r);var A=th,D=fS(r.containerInfo),q=A.focusedElem,Y=A.selectionRange;if(D!==q&&q&&q.ownerDocument&&hS(q.ownerDocument.documentElement,q)){if(Y!==null&&Tc(q)){var re=Y.start,de=Y.end;if(de===void 0&&(de=re),"selectionStart"in q)q.selectionStart=re,q.selectionEnd=Math.min(de,q.value.length);else{var pe=q.ownerDocument||document,ae=pe&&pe.defaultView||window;if(ae.getSelection){var oe=ae.getSelection(),_e=q.textContent.length,Re=Math.min(Y.start,_e),it=Y.end===void 0?Re:Math.min(Y.end,_e);!oe.extend&&Re>it&&(D=it,it=Re,Re=D);var te=dS(q,Re),Z=dS(q,it);if(te&&Z&&(oe.rangeCount!==1||oe.anchorNode!==te.node||oe.anchorOffset!==te.offset||oe.focusNode!==Z.node||oe.focusOffset!==Z.offset)){var ne=pe.createRange();ne.setStart(te.node,te.offset),oe.removeAllRanges(),Re>it?(oe.addRange(ne),oe.extend(Z.node,Z.offset)):(ne.setEnd(Z.node,Z.offset),oe.addRange(ne))}}}}for(pe=[],oe=q;oe=oe.parentNode;)oe.nodeType===1&&pe.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<pe.length;q++){var fe=pe[q];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Ul=!!eh,th=eh=null}finally{Qe=w,J.p=m,W.T=u}}r.current=a,It=2}}function R0(){if(It===2){It=0;var r=ei,a=La,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=W.T,W.T=null;var m=J.p;J.p=2;var w=Qe;Qe|=4;try{n0(r,a.alternate,a)}finally{Qe=w,J.p=m,W.T=u}}It=3}}function k0(){if(It===4||It===3){It=0,Ne();var r=ei,a=La,u=Nr,m=m0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?It=5:(It=0,La=ei=null,N0(r,r.pendingLanes));var w=r.pendingLanes;if(w===0&&(Jr=null),oc(u),a=a.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(mt,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=W.T,w=J.p,J.p=2,W.T=null;try{for(var A=r.onRecoverableError,D=0;D<m.length;D++){var q=m[D];A(q.value,{componentStack:q.stack})}}finally{W.T=a,J.p=w}}(Nr&3)!==0&&Al(),tr(r),w=r.pendingLanes,(u&261930)!==0&&(w&42)!==0?r===zd?zs++:(zs=0,zd=r):zs=0,Hs(0)}}function N0(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Es(a)))}function Al(){return A0(),R0(),k0(),O0()}function O0(){if(It!==5)return!1;var r=ei,a=Ud;Ud=0;var u=oc(Nr),m=W.T,w=J.p;try{J.p=32>u?32:u,W.T=null,u=jd,jd=null;var A=ei,D=Nr;if(It=0,La=ei=null,Nr=0,(Qe&6)!==0)throw Error(i(331));var q=Qe;if(Qe|=4,h0(A.current),u0(A,A.current,D,u),Qe=q,Hs(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(mt,A)}catch{}return!0}finally{J.p=w,W.T=m,N0(r,a)}}function I0(r,a,u){a=Dn(u,a),a=vd(r.stateNode,a,2),r=Wr(r,a,2),r!==null&&(ls(r,2),tr(r))}function tt(r,a,u){if(r.tag===3)I0(r,r,u);else for(;a!==null;){if(a.tag===3){I0(a,r,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Jr===null||!Jr.has(m))){r=Dn(u,r),u=LE(2),m=Wr(a,u,2),m!==null&&(DE(u,m,a,r),ls(m,2),tr(m));break}}a=a.return}}function $d(r,a,u){var m=r.pingCache;if(m===null){m=r.pingCache=new QD;var w=new Set;m.set(a,w)}else w=m.get(a),w===void 0&&(w=new Set,m.set(a,w));w.has(u)||(Bd=!0,w.add(u),r=r2.bind(null,r,a,u),a.then(r,r))}function r2(r,a,u){var m=r.pingCache;m!==null&&m.delete(a),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,st===r&&(Ve&u)===u&&(vt===4||vt===3&&(Ve&62914560)===Ve&&300>Oe()-Sl?(Qe&2)===0&&Da(r,0):Fd|=u,Ia===Ve&&(Ia=0)),tr(r)}function L0(r,a){a===0&&(a=A_()),r=Ti(r,a),r!==null&&(ls(r,a),tr(r))}function i2(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),L0(r,u)}function a2(r,a){var u=0;switch(r.tag){case 31:case 13:var m=r.stateNode,w=r.memoizedState;w!==null&&(u=w.retryLane);break;case 19:m=r.stateNode;break;case 22:m=r.stateNode._retryCache;break;default:throw Error(i(314))}m!==null&&m.delete(a),L0(r,u)}function s2(r,a){return ft(r,a)}var Rl=null,Ba=null,Gd=!1,kl=!1,Vd=!1,ni=0;function tr(r){r!==Ba&&r.next===null&&(Ba===null?Rl=Ba=r:Ba=Ba.next=r),kl=!0,Gd||(Gd=!0,l2())}function Hs(r,a){if(!Vd&&kl){Vd=!0;do for(var u=!1,m=Rl;m!==null;){if(r!==0){var w=m.pendingLanes;if(w===0)var A=0;else{var D=m.suspendedLanes,q=m.pingedLanes;A=(1<<31-Je(42|r)+1)-1,A&=w&~(D&~q),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(u=!0,F0(m,A))}else A=Ve,A=Si(m,m===st?A:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(A&3)===0||Pr(m,A)||(u=!0,F0(m,A));m=m.next}while(u);Vd=!1}}function o2(){D0()}function D0(){kl=Gd=!1;var r=0;ni!==0&&y2()&&(r=ni);for(var a=Oe(),u=null,m=Rl;m!==null;){var w=m.next,A=M0(m,a);A===0?(m.next=null,u===null?Rl=w:u.next=w,w===null&&(Ba=u)):(u=m,(r!==0||(A&3)!==0)&&(kl=!0)),m=w}It!==0&&It!==5||Hs(r),ni!==0&&(ni=0)}function M0(r,a){for(var u=r.suspendedLanes,m=r.pingedLanes,w=r.expirationTimes,A=r.pendingLanes&-62914561;0<A;){var D=31-Je(A),q=1<<D,Y=w[D];Y===-1?((q&u)===0||(q&m)!==0)&&(w[D]=os(q,a)):Y<=a&&(r.expiredLanes|=q),A&=~q}if(a=st,u=Ve,u=Si(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),m=r.callbackNode,u===0||r===a&&(et===2||et===9)||r.cancelPendingCommit!==null)return m!==null&&m!==null&&Vt(m),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Pr(r,u)){if(a=u&-u,a===r.callbackPriority)return a;switch(m!==null&&Vt(m),oc(u)){case 2:case 8:u=me;break;case 32:u=ve;break;case 268435456:u=Ie;break;default:u=ve}return m=B0.bind(null,r),u=ft(u,m),r.callbackPriority=a,r.callbackNode=u,a}return m!==null&&m!==null&&Vt(m),r.callbackPriority=2,r.callbackNode=null,2}function B0(r,a){if(It!==0&&It!==5)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Al()&&r.callbackNode!==u)return null;var m=Ve;return m=Si(r,r===st?m:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),m===0?null:(b0(r,m,a),M0(r,Oe()),r.callbackNode!=null&&r.callbackNode===u?B0.bind(null,r):null)}function F0(r,a){if(Al())return null;b0(r,a,!0)}function l2(){_2(function(){(Qe&6)!==0?ft(ue,o2):D0()})}function Wd(){if(ni===0){var r=Sa;r===0&&(r=gt,gt<<=1,(gt&261888)===0&&(gt=256)),ni=r}return ni}function P0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Fo(""+r)}function U0(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function u2(r,a,u,m,w){if(a==="submit"&&u&&u.stateNode===w){var A=P0((w[rn]||null).action),D=m.submitter;D&&(a=(a=D[rn]||null)?P0(a.formAction):D.getAttribute("formAction"),a!==null&&(A=a,D=null));var q=new zo("action","action",null,m,w);r.push({event:q,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(ni!==0){var Y=D?U0(w,D):new FormData(w);fd(u,{pending:!0,data:Y,method:w.method,action:A},null,Y)}}else typeof A=="function"&&(q.preventDefault(),Y=D?U0(w,D):new FormData(w),fd(u,{pending:!0,data:Y,method:w.method,action:A},A,Y))},currentTarget:w}]})}}for(var Kd=0;Kd<Nc.length;Kd++){var Yd=Nc[Kd],c2=Yd.toLowerCase(),d2=Yd[0].toUpperCase()+Yd.slice(1);$n(c2,"on"+d2)}$n(gS,"onAnimationEnd"),$n(bS,"onAnimationIteration"),$n(yS,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(AD,"onTransitionRun"),$n(RD,"onTransitionStart"),$n(kD,"onTransitionCancel"),$n(vS,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),h2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qs));function j0(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var m=r[u],w=m.event;m=m.listeners;e:{var A=void 0;if(a)for(var D=m.length-1;0<=D;D--){var q=m[D],Y=q.instance,re=q.currentTarget;if(q=q.listener,Y!==A&&w.isPropagationStopped())break e;A=q,w.currentTarget=re;try{A(w)}catch(de){$o(de)}w.currentTarget=null,A=Y}else for(D=0;D<m.length;D++){if(q=m[D],Y=q.instance,re=q.currentTarget,q=q.listener,Y!==A&&w.isPropagationStopped())break e;A=q,w.currentTarget=re;try{A(w)}catch(de){$o(de)}w.currentTarget=null,A=Y}}}}function $e(r,a){var u=a[lc];u===void 0&&(u=a[lc]=new Set);var m=r+"__bubble";u.has(m)||(z0(a,r,2,!1),u.add(m))}function Xd(r,a,u){var m=0;a&&(m|=4),z0(u,r,m,a)}var Nl="_reactListening"+Math.random().toString(36).slice(2);function Zd(r){if(!r[Nl]){r[Nl]=!0,D_.forEach(function(u){u!=="selectionchange"&&(h2.has(u)||Xd(u,!1,r),Xd(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Nl]||(a[Nl]=!0,Xd("selectionchange",!1,a))}}function z0(r,a,u,m){switch(gx(a)){case 2:var w=j2;break;case 8:w=z2;break;default:w=hh}u=w.bind(null,a,u,r),w=void 0,!bc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(w=!0),m?w!==void 0?r.addEventListener(a,u,{capture:!0,passive:w}):r.addEventListener(a,u,!0):w!==void 0?r.addEventListener(a,u,{passive:w}):r.addEventListener(a,u,!1)}function Qd(r,a,u,m,w){var A=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var D=m.tag;if(D===3||D===4){var q=m.stateNode.containerInfo;if(q===w)break;if(D===4)for(D=m.return;D!==null;){var Y=D.tag;if((Y===3||Y===4)&&D.stateNode.containerInfo===w)return;D=D.return}for(;q!==null;){if(D=ia(q),D===null)return;if(Y=D.tag,Y===5||Y===6||Y===26||Y===27){m=A=D;continue e}q=q.parentNode}}m=m.return}V_(function(){var re=A,de=mc(u),pe=[];e:{var ae=_S.get(r);if(ae!==void 0){var oe=zo,_e=r;switch(r){case"keypress":if(Uo(u)===0)break e;case"keydown":case"keyup":oe=aD;break;case"focusin":_e="focus",oe=Sc;break;case"focusout":_e="blur",oe=Sc;break;case"beforeblur":case"afterblur":oe=Sc;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Y_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=WL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=lD;break;case gS:case bS:case yS:oe=XL;break;case vS:oe=cD;break;case"scroll":case"scrollend":oe=GL;break;case"wheel":oe=hD;break;case"copy":case"cut":case"paste":oe=QL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=Z_;break;case"toggle":case"beforetoggle":oe=pD}var Re=(a&4)!==0,it=!Re&&(r==="scroll"||r==="scrollend"),te=Re?ae!==null?ae+"Capture":null:ae;Re=[];for(var Z=re,ne;Z!==null;){var fe=Z;if(ne=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ne===null||te===null||(fe=ds(Z,te),fe!=null&&Re.push($s(Z,fe,ne))),it)break;Z=Z.return}0<Re.length&&(ae=new oe(ae,_e,null,u,de),pe.push({event:ae,listeners:Re}))}}if((a&7)===0){e:{if(ae=r==="mouseover"||r==="pointerover",oe=r==="mouseout"||r==="pointerout",ae&&u!==pc&&(_e=u.relatedTarget||u.fromElement)&&(ia(_e)||_e[ra]))break e;if((oe||ae)&&(ae=de.window===de?de:(ae=de.ownerDocument)?ae.defaultView||ae.parentWindow:window,oe?(_e=u.relatedTarget||u.toElement,oe=re,_e=_e?ia(_e):null,_e!==null&&(it=l(_e),Re=_e.tag,_e!==it||Re!==5&&Re!==27&&Re!==6)&&(_e=null)):(oe=null,_e=re),oe!==_e)){if(Re=Y_,fe="onMouseLeave",te="onMouseEnter",Z="mouse",(r==="pointerout"||r==="pointerover")&&(Re=Z_,fe="onPointerLeave",te="onPointerEnter",Z="pointer"),it=oe==null?ae:cs(oe),ne=_e==null?ae:cs(_e),ae=new Re(fe,Z+"leave",oe,u,de),ae.target=it,ae.relatedTarget=ne,fe=null,ia(de)===re&&(Re=new Re(te,Z+"enter",_e,u,de),Re.target=ne,Re.relatedTarget=it,fe=Re),it=fe,oe&&_e)t:{for(Re=f2,te=oe,Z=_e,ne=0,fe=te;fe;fe=Re(fe))ne++;fe=0;for(var we=Z;we;we=Re(we))fe++;for(;0<ne-fe;)te=Re(te),ne--;for(;0<fe-ne;)Z=Re(Z),fe--;for(;ne--;){if(te===Z||Z!==null&&te===Z.alternate){Re=te;break t}te=Re(te),Z=Re(Z)}Re=null}else Re=null;oe!==null&&H0(pe,ae,oe,Re,!1),_e!==null&&it!==null&&H0(pe,it,_e,Re,!0)}}e:{if(ae=re?cs(re):window,oe=ae.nodeName&&ae.nodeName.toLowerCase(),oe==="select"||oe==="input"&&ae.type==="file")var Xe=aS;else if(rS(ae))if(sS)Xe=wD;else{Xe=ED;var Se=SD}else oe=ae.nodeName,!oe||oe.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?re&&fc(re.elementType)&&(Xe=aS):Xe=xD;if(Xe&&(Xe=Xe(r,re))){iS(pe,Xe,u,de);break e}Se&&Se(r,ae,re),r==="focusout"&&re&&ae.type==="number"&&re.memoizedProps.value!=null&&hc(ae,"number",ae.value)}switch(Se=re?cs(re):window,r){case"focusin":(rS(Se)||Se.contentEditable==="true")&&(fa=Se,Ac=re,vs=null);break;case"focusout":vs=Ac=fa=null;break;case"mousedown":Rc=!0;break;case"contextmenu":case"mouseup":case"dragend":Rc=!1,pS(pe,u,de);break;case"selectionchange":if(TD)break;case"keydown":case"keyup":pS(pe,u,de)}var Pe;if(xc)e:{switch(r){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else ha?tS(r,u)&&(We="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(We="onCompositionStart");We&&(Q_&&u.locale!=="ko"&&(ha||We!=="onCompositionStart"?We==="onCompositionEnd"&&ha&&(Pe=W_()):(jr=de,yc="value"in jr?jr.value:jr.textContent,ha=!0)),Se=Ol(re,We),0<Se.length&&(We=new X_(We,r,null,u,de),pe.push({event:We,listeners:Se}),Pe?We.data=Pe:(Pe=nS(u),Pe!==null&&(We.data=Pe)))),(Pe=gD?bD(r,u):yD(r,u))&&(We=Ol(re,"onBeforeInput"),0<We.length&&(Se=new X_("onBeforeInput","beforeinput",null,u,de),pe.push({event:Se,listeners:We}),Se.data=Pe)),u2(pe,r,re,u,de)}j0(pe,a)})}function $s(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Ol(r,a){for(var u=a+"Capture",m=[];r!==null;){var w=r,A=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||A===null||(w=ds(r,u),w!=null&&m.unshift($s(r,w,A)),w=ds(r,a),w!=null&&m.push($s(r,w,A))),r.tag===3)return m;r=r.return}return[]}function f2(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function H0(r,a,u,m,w){for(var A=a._reactName,D=[];u!==null&&u!==m;){var q=u,Y=q.alternate,re=q.stateNode;if(q=q.tag,Y!==null&&Y===m)break;q!==5&&q!==26&&q!==27||re===null||(Y=re,w?(re=ds(u,A),re!=null&&D.unshift($s(u,re,Y))):w||(re=ds(u,A),re!=null&&D.push($s(u,re,Y)))),u=u.return}D.length!==0&&r.push({event:a,listeners:D})}var p2=/\r\n?/g,m2=/\u0000|\uFFFD/g;function q0(r){return(typeof r=="string"?r:""+r).replace(p2,`
49
- `).replace(m2,"")}function $0(r,a){return a=q0(a),q0(r)===a}function rt(r,a,u,m,w,A){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||ua(r,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&ua(r,""+m);break;case"className":Mo(r,"class",m);break;case"tabIndex":Mo(r,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Mo(r,u,m);break;case"style":$_(r,m,A);break;case"data":if(a!=="object"){Mo(r,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){r.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(u);break}m=Fo(""+m),r.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){r.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(u==="formAction"?(a!=="input"&&rt(r,a,"name",w.name,w,null),rt(r,a,"formEncType",w.formEncType,w,null),rt(r,a,"formMethod",w.formMethod,w,null),rt(r,a,"formTarget",w.formTarget,w,null)):(rt(r,a,"encType",w.encType,w,null),rt(r,a,"method",w.method,w,null),rt(r,a,"target",w.target,w,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(u);break}m=Fo(""+m),r.setAttribute(u,m);break;case"onClick":m!=null&&(r.onclick=mr);break;case"onScroll":m!=null&&$e("scroll",r);break;case"onScrollEnd":m!=null&&$e("scrollend",r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(u=m.__html,u!=null){if(w.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"multiple":r.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":r.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){r.removeAttribute("xlink:href");break}u=Fo(""+m),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,""+m):r.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":m===!0?r.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,m):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?r.setAttribute(u,m):r.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?r.removeAttribute(u):r.setAttribute(u,m);break;case"popover":$e("beforetoggle",r),$e("toggle",r),Do(r,"popover",m);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Do(r,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=qL.get(u)||u,Do(r,u,m))}}function Jd(r,a,u,m,w,A){switch(u){case"style":$_(r,m,A);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(u=m.__html,u!=null){if(w.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"children":typeof m=="string"?ua(r,m):(typeof m=="number"||typeof m=="bigint")&&ua(r,""+m);break;case"onScroll":m!=null&&$e("scroll",r);break;case"onScrollEnd":m!=null&&$e("scrollend",r);break;case"onClick":m!=null&&(r.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!M_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(w=u.endsWith("Capture"),a=u.slice(2,w?u.length-7:void 0),A=r[rn]||null,A=A!=null?A[u]:null,typeof A=="function"&&r.removeEventListener(a,A,w),typeof m=="function")){typeof A!="function"&&A!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,m,w);break e}u in r?r[u]=m:m===!0?r.setAttribute(u,""):Do(r,u,m)}}}function qt(r,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",r),$e("load",r);var m=!1,w=!1,A;for(A in u)if(u.hasOwnProperty(A)){var D=u[A];if(D!=null)switch(A){case"src":m=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(r,a,A,D,u,null)}}w&&rt(r,a,"srcSet",u.srcSet,u,null),m&&rt(r,a,"src",u.src,u,null);return;case"input":$e("invalid",r);var q=A=D=w=null,Y=null,re=null;for(m in u)if(u.hasOwnProperty(m)){var de=u[m];if(de!=null)switch(m){case"name":w=de;break;case"type":D=de;break;case"checked":Y=de;break;case"defaultChecked":re=de;break;case"value":A=de;break;case"defaultValue":q=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,a));break;default:rt(r,a,m,de,u,null)}}j_(r,A,q,Y,re,D,w,!1);return;case"select":$e("invalid",r),m=D=A=null;for(w in u)if(u.hasOwnProperty(w)&&(q=u[w],q!=null))switch(w){case"value":A=q;break;case"defaultValue":D=q;break;case"multiple":m=q;default:rt(r,a,w,q,u,null)}a=A,u=D,r.multiple=!!m,a!=null?la(r,!!m,a,!1):u!=null&&la(r,!!m,u,!0);return;case"textarea":$e("invalid",r),A=w=m=null;for(D in u)if(u.hasOwnProperty(D)&&(q=u[D],q!=null))switch(D){case"value":m=q;break;case"defaultValue":w=q;break;case"children":A=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(91));break;default:rt(r,a,D,q,u,null)}H_(r,m,w,A);return;case"option":for(Y in u)if(u.hasOwnProperty(Y)&&(m=u[Y],m!=null))switch(Y){case"selected":r.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:rt(r,a,Y,m,u,null)}return;case"dialog":$e("beforetoggle",r),$e("toggle",r),$e("cancel",r),$e("close",r);break;case"iframe":case"object":$e("load",r);break;case"video":case"audio":for(m=0;m<qs.length;m++)$e(qs[m],r);break;case"image":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"embed":case"source":case"link":$e("error",r),$e("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in u)if(u.hasOwnProperty(re)&&(m=u[re],m!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(r,a,re,m,u,null)}return;default:if(fc(a)){for(de in u)u.hasOwnProperty(de)&&(m=u[de],m!==void 0&&Jd(r,a,de,m,u,void 0));return}}for(q in u)u.hasOwnProperty(q)&&(m=u[q],m!=null&&rt(r,a,q,m,u,null))}function g2(r,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,A=null,D=null,q=null,Y=null,re=null,de=null;for(oe in u){var pe=u[oe];if(u.hasOwnProperty(oe)&&pe!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":Y=pe;default:m.hasOwnProperty(oe)||rt(r,a,oe,null,m,pe)}}for(var ae in m){var oe=m[ae];if(pe=u[ae],m.hasOwnProperty(ae)&&(oe!=null||pe!=null))switch(ae){case"type":A=oe;break;case"name":w=oe;break;case"checked":re=oe;break;case"defaultChecked":de=oe;break;case"value":D=oe;break;case"defaultValue":q=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:oe!==pe&&rt(r,a,ae,oe,m,pe)}}dc(r,D,q,Y,re,de,A,w);return;case"select":oe=D=q=ae=null;for(A in u)if(Y=u[A],u.hasOwnProperty(A)&&Y!=null)switch(A){case"value":break;case"multiple":oe=Y;default:m.hasOwnProperty(A)||rt(r,a,A,null,m,Y)}for(w in m)if(A=m[w],Y=u[w],m.hasOwnProperty(w)&&(A!=null||Y!=null))switch(w){case"value":ae=A;break;case"defaultValue":q=A;break;case"multiple":D=A;default:A!==Y&&rt(r,a,w,A,m,Y)}a=q,u=D,m=oe,ae!=null?la(r,!!u,ae,!1):!!m!=!!u&&(a!=null?la(r,!!u,a,!0):la(r,!!u,u?[]:"",!1));return;case"textarea":oe=ae=null;for(q in u)if(w=u[q],u.hasOwnProperty(q)&&w!=null&&!m.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:rt(r,a,q,null,m,w)}for(D in m)if(w=m[D],A=u[D],m.hasOwnProperty(D)&&(w!=null||A!=null))switch(D){case"value":ae=w;break;case"defaultValue":oe=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:w!==A&&rt(r,a,D,w,m,A)}z_(r,ae,oe);return;case"option":for(var _e in u)if(ae=u[_e],u.hasOwnProperty(_e)&&ae!=null&&!m.hasOwnProperty(_e))switch(_e){case"selected":r.selected=!1;break;default:rt(r,a,_e,null,m,ae)}for(Y in m)if(ae=m[Y],oe=u[Y],m.hasOwnProperty(Y)&&ae!==oe&&(ae!=null||oe!=null))switch(Y){case"selected":r.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:rt(r,a,Y,ae,m,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Re in u)ae=u[Re],u.hasOwnProperty(Re)&&ae!=null&&!m.hasOwnProperty(Re)&&rt(r,a,Re,null,m,ae);for(re in m)if(ae=m[re],oe=u[re],m.hasOwnProperty(re)&&ae!==oe&&(ae!=null||oe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:rt(r,a,re,ae,m,oe)}return;default:if(fc(a)){for(var it in u)ae=u[it],u.hasOwnProperty(it)&&ae!==void 0&&!m.hasOwnProperty(it)&&Jd(r,a,it,void 0,m,ae);for(de in m)ae=m[de],oe=u[de],!m.hasOwnProperty(de)||ae===oe||ae===void 0&&oe===void 0||Jd(r,a,de,ae,m,oe);return}}for(var te in u)ae=u[te],u.hasOwnProperty(te)&&ae!=null&&!m.hasOwnProperty(te)&&rt(r,a,te,null,m,ae);for(pe in m)ae=m[pe],oe=u[pe],!m.hasOwnProperty(pe)||ae===oe||ae==null&&oe==null||rt(r,a,pe,ae,m,oe)}function G0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b2(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var w=u[m],A=w.transferSize,D=w.initiatorType,q=w.duration;if(A&&q&&G0(D)){for(D=0,q=w.responseEnd,m+=1;m<u.length;m++){var Y=u[m],re=Y.startTime;if(re>q)break;var de=Y.transferSize,pe=Y.initiatorType;de&&G0(pe)&&(Y=Y.responseEnd,D+=de*(Y<q?1:(q-re)/(Y-re)))}if(--m,a+=8*(A+D)/(w.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var eh=null,th=null;function Il(r){return r.nodeType===9?r:r.ownerDocument}function V0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function W0(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function nh(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var rh=null;function y2(){var r=window.event;return r&&r.type==="popstate"?r===rh?!1:(rh=r,!0):(rh=null,!1)}var K0=typeof setTimeout=="function"?setTimeout:void 0,v2=typeof clearTimeout=="function"?clearTimeout:void 0,Y0=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof Y0<"u"?function(r){return Y0.resolve(null).then(r).catch(S2)}:K0;function S2(r){setTimeout(function(){throw r})}function ri(r){return r==="head"}function X0(r,a){var u=a,m=0;do{var w=u.nextSibling;if(r.removeChild(u),w&&w.nodeType===8)if(u=w.data,u==="/$"||u==="/&"){if(m===0){r.removeChild(w),ja(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Gs(r.ownerDocument.documentElement);else if(u==="head"){u=r.ownerDocument.head,Gs(u);for(var A=u.firstChild;A;){var D=A.nextSibling,q=A.nodeName;A[us]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&A.rel.toLowerCase()==="stylesheet"||u.removeChild(A),A=D}}else u==="body"&&Gs(r.ownerDocument.body);u=w}while(u);ja(a)}function Z0(r,a){var u=r;r=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(r===0)break;r--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||r++;u=m}while(u)}function ih(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":ih(u),uc(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function E2(r,a,u,m){for(;r.nodeType===1;){var w=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(m){if(!r[us])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(A=r.getAttribute("rel"),A==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(A!==w.rel||r.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||r.getAttribute("title")!==(w.title==null?null:w.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(A=r.getAttribute("src"),(A!==(w.src==null?null:w.src)||r.getAttribute("type")!==(w.type==null?null:w.type)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&A&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var A=w.name==null?null:""+w.name;if(w.type==="hidden"&&r.getAttribute("name")===A)return r}else return r;if(r=Un(r.nextSibling),r===null)break}return null}function x2(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=Un(r.nextSibling),r===null))return null;return r}function Q0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Un(r.nextSibling),r===null))return null;return r}function ah(r){return r.data==="$?"||r.data==="$~"}function sh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function w2(r,a){var u=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),r._reactRetry=m}}function Un(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var oh=null;function J0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"||u==="/&"){if(a===0)return Un(r.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}r=r.nextSibling}return null}function ex(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return r;a--}else u!=="/$"&&u!=="/&"||a++}r=r.previousSibling}return null}function tx(r,a,u){switch(a=Il(u),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Gs(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);uc(r)}var jn=new Map,nx=new Set;function Ll(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Or=J.d;J.d={f:C2,r:T2,D:A2,C:R2,L:k2,m:N2,X:I2,S:O2,M:L2};function C2(){var r=Or.f(),a=wl();return r||a}function T2(r){var a=aa(r);a!==null&&a.tag===5&&a.type==="form"?vE(a):Or.r(r)}var Fa=typeof document>"u"?null:document;function rx(r,a,u){var m=Fa;if(m&&typeof a=="string"&&a){var w=In(a);w='link[rel="'+r+'"][href="'+w+'"]',typeof u=="string"&&(w+='[crossorigin="'+u+'"]'),nx.has(w)||(nx.add(w),r={rel:r,crossOrigin:u,href:a},m.querySelector(w)===null&&(a=m.createElement("link"),qt(a,"link",r),Ft(a),m.head.appendChild(a)))}}function A2(r){Or.D(r),rx("dns-prefetch",r,null)}function R2(r,a){Or.C(r,a),rx("preconnect",r,a)}function k2(r,a,u){Or.L(r,a,u);var m=Fa;if(m&&r&&a){var w='link[rel="preload"][as="'+In(a)+'"]';a==="image"&&u&&u.imageSrcSet?(w+='[imagesrcset="'+In(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(w+='[imagesizes="'+In(u.imageSizes)+'"]')):w+='[href="'+In(r)+'"]';var A=w;switch(a){case"style":A=Pa(r);break;case"script":A=Ua(r)}jn.has(A)||(r=f({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),jn.set(A,r),m.querySelector(w)!==null||a==="style"&&m.querySelector(Vs(A))||a==="script"&&m.querySelector(Ws(A))||(a=m.createElement("link"),qt(a,"link",r),Ft(a),m.head.appendChild(a)))}}function N2(r,a){Or.m(r,a);var u=Fa;if(u&&r){var m=a&&typeof a.as=="string"?a.as:"script",w='link[rel="modulepreload"][as="'+In(m)+'"][href="'+In(r)+'"]',A=w;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Ua(r)}if(!jn.has(A)&&(r=f({rel:"modulepreload",href:r},a),jn.set(A,r),u.querySelector(w)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ws(A)))return}m=u.createElement("link"),qt(m,"link",r),Ft(m),u.head.appendChild(m)}}}function O2(r,a,u){Or.S(r,a,u);var m=Fa;if(m&&r){var w=sa(m).hoistableStyles,A=Pa(r);a=a||"default";var D=w.get(A);if(!D){var q={loading:0,preload:null};if(D=m.querySelector(Vs(A)))q.loading=5;else{r=f({rel:"stylesheet",href:r,"data-precedence":a},u),(u=jn.get(A))&&lh(r,u);var Y=D=m.createElement("link");Ft(Y),qt(Y,"link",r),Y._p=new Promise(function(re,de){Y.onload=re,Y.onerror=de}),Y.addEventListener("load",function(){q.loading|=1}),Y.addEventListener("error",function(){q.loading|=2}),q.loading|=4,Dl(D,a,m)}D={type:"stylesheet",instance:D,count:1,state:q},w.set(A,D)}}}function I2(r,a){Or.X(r,a);var u=Fa;if(u&&r){var m=sa(u).hoistableScripts,w=Ua(r),A=m.get(w);A||(A=u.querySelector(Ws(w)),A||(r=f({src:r,async:!0},a),(a=jn.get(w))&&uh(r,a),A=u.createElement("script"),Ft(A),qt(A,"link",r),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(w,A))}}function L2(r,a){Or.M(r,a);var u=Fa;if(u&&r){var m=sa(u).hoistableScripts,w=Ua(r),A=m.get(w);A||(A=u.querySelector(Ws(w)),A||(r=f({src:r,async:!0,type:"module"},a),(a=jn.get(w))&&uh(r,a),A=u.createElement("script"),Ft(A),qt(A,"link",r),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(w,A))}}function ix(r,a,u,m){var w=(w=ce.current)?Ll(w):null;if(!w)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Pa(u.href),u=sa(w).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=Pa(u.href);var A=sa(w).hoistableStyles,D=A.get(r);if(D||(w=w.ownerDocument||w,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(r,D),(A=w.querySelector(Vs(r)))&&!A._p&&(D.instance=A,D.state.loading=5),jn.has(r)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},jn.set(r,u),A||D2(w,r,u,D.state))),a&&m===null)throw Error(i(528,""));return D}if(a&&m!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ua(u),u=sa(w).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Pa(r){return'href="'+In(r)+'"'}function Vs(r){return'link[rel="stylesheet"]['+r+"]"}function ax(r){return f({},r,{"data-precedence":r.precedence,precedence:null})}function D2(r,a,u,m){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=r.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),qt(a,"link",u),Ft(a),r.head.appendChild(a))}function Ua(r){return'[src="'+In(r)+'"]'}function Ws(r){return"script[async]"+r}function sx(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=r.querySelector('style[data-href~="'+In(u.href)+'"]');if(m)return a.instance=m,Ft(m),m;var w=f({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(r.ownerDocument||r).createElement("style"),Ft(m),qt(m,"style",w),Dl(m,u.precedence,r),a.instance=m;case"stylesheet":w=Pa(u.href);var A=r.querySelector(Vs(w));if(A)return a.state.loading|=4,a.instance=A,Ft(A),A;m=ax(u),(w=jn.get(w))&&lh(m,w),A=(r.ownerDocument||r).createElement("link"),Ft(A);var D=A;return D._p=new Promise(function(q,Y){D.onload=q,D.onerror=Y}),qt(A,"link",m),a.state.loading|=4,Dl(A,u.precedence,r),a.instance=A;case"script":return A=Ua(u.src),(w=r.querySelector(Ws(A)))?(a.instance=w,Ft(w),w):(m=u,(w=jn.get(A))&&(m=f({},u),uh(m,w)),r=r.ownerDocument||r,w=r.createElement("script"),Ft(w),qt(w,"link",m),r.head.appendChild(w),a.instance=w);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Dl(m,u.precedence,r));return a.instance}function Dl(r,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=m.length?m[m.length-1]:null,A=w,D=0;D<m.length;D++){var q=m[D];if(q.dataset.precedence===a)A=q;else if(A!==w)break}A?A.parentNode.insertBefore(r,A.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function lh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function uh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Ml=null;function ox(r,a,u){if(Ml===null){var m=new Map,w=Ml=new Map;w.set(u,m)}else w=Ml,m=w.get(u),m||(m=new Map,w.set(u,m));if(m.has(r))return m;for(m.set(r,null),u=u.getElementsByTagName(r),w=0;w<u.length;w++){var A=u[w];if(!(A[us]||A[Ut]||r==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var D=A.getAttribute(a)||"";D=r+D;var q=m.get(D);q?q.push(A):m.set(D,[A])}}return m}function lx(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function M2(r,a,u){if(u===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function ux(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function B2(r,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var w=Pa(m.href),A=a.querySelector(Vs(w));if(A){a=A._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Bl.bind(r),a.then(r,r)),u.state.loading|=4,u.instance=A,Ft(A);return}A=a.ownerDocument||a,m=ax(m),(w=jn.get(w))&&lh(m,w),A=A.createElement("link"),Ft(A);var D=A;D._p=new Promise(function(q,Y){D.onload=q,D.onerror=Y}),qt(A,"link",m),u.instance=A}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(r.count++,u=Bl.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}var ch=0;function F2(r,a){return r.stylesheets&&r.count===0&&Pl(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var m=setTimeout(function(){if(r.stylesheets&&Pl(r,r.stylesheets),r.unsuspend){var A=r.unsuspend;r.unsuspend=null,A()}},6e4+a);0<r.imgBytes&&ch===0&&(ch=62500*b2());var w=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Pl(r,r.stylesheets),r.unsuspend)){var A=r.unsuspend;r.unsuspend=null,A()}},(r.imgBytes>ch?50:800)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(m),clearTimeout(w)}}:null}function Bl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pl(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Fl=null;function Pl(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Fl=new Map,a.forEach(P2,r),Fl=null,Bl.call(r))}function P2(r,a){if(!(a.state.loading&4)){var u=Fl.get(r);if(u)var m=u.get(null);else{u=new Map,Fl.set(r,u);for(var w=r.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<w.length;A++){var D=w[A];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(u.set(D.dataset.precedence,D),m=D)}m&&u.set(null,m)}w=a.instance,D=w.getAttribute("data-precedence"),A=u.get(D)||m,A===m&&u.set(null,w),u.set(D,w),this.count++,m=Bl.bind(this),w.addEventListener("load",m),w.addEventListener("error",m),A?A.parentNode.insertBefore(w,A.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(w,r.firstChild)),a.state.loading|=4}}var Ks={$$typeof:_,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function U2(r,a,u,m,w,A,D,q,Y){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=m,this.onUncaughtError=w,this.onCaughtError=A,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function cx(r,a,u,m,w,A,D,q,Y,re,de,pe){return r=new U2(r,a,u,D,Y,re,de,pe,q),a=1,A===!0&&(a|=24),A=_n(3,null,null,a),r.current=A,A.stateNode=r,a=qc(),a.refCount++,r.pooledCache=a,a.refCount++,A.memoizedState={element:m,isDehydrated:u,cache:a},Wc(A),r}function dx(r){return r?(r=ga,r):ga}function hx(r,a,u,m,w,A){w=dx(w),m.context===null?m.context=w:m.pendingContext=w,m=Vr(a),m.payload={element:u},A=A===void 0?null:A,A!==null&&(m.callback=A),u=Wr(r,m,a),u!==null&&(cn(u,r,a),Ts(u,r,a))}function fx(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function dh(r,a){fx(r,a),(r=r.alternate)&&fx(r,a)}function px(r){if(r.tag===13||r.tag===31){var a=Ti(r,67108864);a!==null&&cn(a,r,67108864),dh(r,67108864)}}function mx(r){if(r.tag===13||r.tag===31){var a=Cn();a=sc(a);var u=Ti(r,a);u!==null&&cn(u,r,a),dh(r,a)}}var Ul=!0;function j2(r,a,u,m){var w=W.T;W.T=null;var A=J.p;try{J.p=2,hh(r,a,u,m)}finally{J.p=A,W.T=w}}function z2(r,a,u,m){var w=W.T;W.T=null;var A=J.p;try{J.p=8,hh(r,a,u,m)}finally{J.p=A,W.T=w}}function hh(r,a,u,m){if(Ul){var w=fh(m);if(w===null)Qd(r,a,m,jl,u),bx(r,m);else if(q2(w,r,a,u,m))m.stopPropagation();else if(bx(r,m),a&4&&-1<H2.indexOf(r)){for(;w!==null;){var A=aa(w);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var D=Zn(A.pendingLanes);if(D!==0){var q=A;for(q.pendingLanes|=2,q.entangledLanes|=2;D;){var Y=1<<31-Je(D);q.entanglements[1]|=Y,D&=~Y}tr(A),(Qe&6)===0&&(El=Oe()+500,Hs(0))}}break;case 31:case 13:q=Ti(A,2),q!==null&&cn(q,A,2),wl(),dh(A,2)}if(A=fh(m),A===null&&Qd(r,a,m,jl,u),A===w)break;w=A}w!==null&&m.stopPropagation()}else Qd(r,a,m,null,u)}}function fh(r){return r=mc(r),ph(r)}var jl=null;function ph(r){if(jl=null,r=ia(r),r!==null){var a=l(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=c(a),r!==null)return r;r=null}else if(u===31){if(r=o(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return jl=r,null}function gx(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case ue:return 2;case me:return 8;case ve:case Ce:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var mh=!1,ii=null,ai=null,si=null,Ys=new Map,Xs=new Map,oi=[],H2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bx(r,a){switch(r){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":Ys.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(a.pointerId)}}function Zs(r,a,u,m,w,A){return r===null||r.nativeEvent!==A?(r={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:A,targetContainers:[w]},a!==null&&(a=aa(a),a!==null&&px(a)),r):(r.eventSystemFlags|=m,a=r.targetContainers,w!==null&&a.indexOf(w)===-1&&a.push(w),r)}function q2(r,a,u,m,w){switch(a){case"focusin":return ii=Zs(ii,r,a,u,m,w),!0;case"dragenter":return ai=Zs(ai,r,a,u,m,w),!0;case"mouseover":return si=Zs(si,r,a,u,m,w),!0;case"pointerover":var A=w.pointerId;return Ys.set(A,Zs(Ys.get(A)||null,r,a,u,m,w)),!0;case"gotpointercapture":return A=w.pointerId,Xs.set(A,Zs(Xs.get(A)||null,r,a,u,m,w)),!0}return!1}function yx(r){var a=ia(r.target);if(a!==null){var u=l(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){r.blockedOn=a,I_(r.priority,function(){mx(u)});return}}else if(a===31){if(a=o(u),a!==null){r.blockedOn=a,I_(r.priority,function(){mx(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function zl(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=fh(r.nativeEvent);if(u===null){u=r.nativeEvent;var m=new u.constructor(u.type,u);pc=m,u.target.dispatchEvent(m),pc=null}else return a=aa(u),a!==null&&px(a),r.blockedOn=u,!1;a.shift()}return!0}function vx(r,a,u){zl(r)&&u.delete(a)}function $2(){mh=!1,ii!==null&&zl(ii)&&(ii=null),ai!==null&&zl(ai)&&(ai=null),si!==null&&zl(si)&&(si=null),Ys.forEach(vx),Xs.forEach(vx)}function Hl(r,a){r.blockedOn===a&&(r.blockedOn=null,mh||(mh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$2)))}var ql=null;function _x(r){ql!==r&&(ql=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ql===r&&(ql=null);for(var a=0;a<r.length;a+=3){var u=r[a],m=r[a+1],w=r[a+2];if(typeof m!="function"){if(ph(m||u)===null)continue;break}var A=aa(u);A!==null&&(r.splice(a,3),a-=3,fd(A,{pending:!0,data:w,method:u.method,action:m},m,w))}}))}function ja(r){function a(Y){return Hl(Y,r)}ii!==null&&Hl(ii,r),ai!==null&&Hl(ai,r),si!==null&&Hl(si,r),Ys.forEach(a),Xs.forEach(a);for(var u=0;u<oi.length;u++){var m=oi[u];m.blockedOn===r&&(m.blockedOn=null)}for(;0<oi.length&&(u=oi[0],u.blockedOn===null);)yx(u),u.blockedOn===null&&oi.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var w=u[m],A=u[m+1],D=w[rn]||null;if(typeof A=="function")D||_x(u);else if(D){var q=null;if(A&&A.hasAttribute("formAction")){if(w=A,D=A[rn]||null)q=D.formAction;else if(ph(w)!==null)continue}else q=D.action;typeof q=="function"?u[m+1]=q:(u.splice(m,3),m-=3),_x(u)}}}function Sx(){function r(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(D){return w=D})},focusReset:"manual",scroll:"manual"})}function a(){w!==null&&(w(),w=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,w=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),w!==null&&(w(),w=null)}}}function gh(r){this._internalRoot=r}$l.prototype.render=gh.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,m=Cn();hx(u,m,r,a,null,null)},$l.prototype.unmount=gh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;hx(r.current,2,null,r,null,null),wl(),a[ra]=null}};function $l(r){this._internalRoot=r}$l.prototype.unstable_scheduleHydration=function(r){if(r){var a=O_();r={blockedOn:null,target:r,priority:a};for(var u=0;u<oi.length&&a!==0&&a<oi[u].priority;u++);oi.splice(u,0,r),u===0&&yx(r)}};var Ex=t.version;if(Ex!=="19.2.0")throw Error(i(527,Ex,"19.2.0"));J.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var G2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gl.isDisabled&&Gl.supportsFiber)try{mt=Gl.inject(G2),at=Gl}catch{}}return Js.createRoot=function(r,a){if(!s(r))throw Error(i(299));var u=!1,m="",w=kE,A=NE,D=OE;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(w=a.onUncaughtError),a.onCaughtError!==void 0&&(A=a.onCaughtError),a.onRecoverableError!==void 0&&(D=a.onRecoverableError)),a=cx(r,1,!1,null,null,u,m,null,w,A,D,Sx),r[ra]=a.current,Zd(r),new gh(a)},Js.hydrateRoot=function(r,a,u){if(!s(r))throw Error(i(299));var m=!1,w="",A=kE,D=NE,q=OE,Y=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(w=u.identifierPrefix),u.onUncaughtError!==void 0&&(A=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(q=u.onRecoverableError),u.formState!==void 0&&(Y=u.formState)),a=cx(r,1,!0,a,u??null,m,w,Y,A,D,q,Sx),a.context=dx(null),u=a.current,m=Cn(),m=sc(m),w=Vr(m),w.callback=null,Wr(u,w,m),u=m,a.current.lanes=u,ls(a,u),tr(a),r[ra]=a.current,Zd(r),new $l(a)},Js.version="19.2.0",Js}var Ix;function eM(){if(Ix)return vh.exports;Ix=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vh.exports=J2(),vh.exports}var tM=eM(),ts=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rM=class{#e=nM;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},zi=new rM;function iM(e){setTimeout(e,0)}var Wi=typeof window>"u"||"Deno"in globalThis;function Jt(){}function aM(e,t){return typeof e=="function"?e(t):e}function Hy(e){return typeof e=="number"&&e>=0&&e!==1/0}function ON(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hi(e,t){return typeof e=="function"?e(t):e}function Hn(e,t){return typeof e=="function"?e(t):e}function Lx(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:o}=e;if(c){if(i){if(t.queryHash!==Av(c,t.options))return!1}else if(!bo(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||l&&!l(t))}function Dx(e,t){const{exact:n,status:i,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ki(t.options.mutationKey)!==Ki(l))return!1}else if(!bo(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function Av(e,t){return(t?.queryKeyHashFn||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,n)=>qy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function bo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bo(e[n],t[n])):!1}var sM=Object.prototype.hasOwnProperty;function IN(e,t){if(e===t)return e;const n=Mx(e)&&Mx(t);if(!n&&!(qy(e)&&qy(t)))return t;const s=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,o=n?new Array(c):{};let d=0;for(let h=0;h<c;h++){const p=n?h:l[h],f=e[p],g=t[p];if(f===g){o[p]=f,(n?h<s:sM.call(e,p))&&d++;continue}if(f===null||g===null||typeof f!="object"||typeof g!="object"){o[p]=g;continue}const b=IN(f,g);o[p]=b,b===f&&d++}return s===c&&d===s?e:o}function gu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qy(e){if(!Bx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Bx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bx(e){return Object.prototype.toString.call(e)==="[object Object]"}function oM(e){return new Promise(t=>{zi.setTimeout(t,e)})}function $y(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?IN(e,t):t}function lM(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function uM(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Rv=Symbol();function LN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Rv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function DN(e,t){return typeof e=="function"?e(...t):!!e}var cM=class extends ts{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},kv=new cM;function Gy(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var dM=iM;function hM(){let e=[],t=0,n=o=>{o()},i=o=>{o()},s=dM;const l=o=>{t?e.push(o):s(()=>{n(o)})},c=()=>{const o=e;e=[],o.length&&s(()=>{i(()=>{o.forEach(d=>{n(d)})})})};return{batch:o=>{let d;t++;try{d=o()}finally{t--,t||c()}return d},batchCalls:o=>(...d)=>{l(()=>{o(...d)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{s=o}}}var Lt=hM(),fM=class extends ts{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},bu=new fM;function pM(e){return Math.min(1e3*2**e,3e4)}function MN(e){return(e??"online")==="online"?bu.isOnline():!0}var Vy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function BN(e){let t=!1,n=0,i;const s=Gy(),l=()=>s.status!=="pending",c=E=>{if(!l()){const y=new Vy(E);g(y),e.onCancel?.(y)}},o=()=>{t=!0},d=()=>{t=!1},h=()=>kv.isFocused()&&(e.networkMode==="always"||bu.isOnline())&&e.canRun(),p=()=>MN(e.networkMode)&&e.canRun(),f=E=>{l()||(i?.(),s.resolve(E))},g=E=>{l()||(i?.(),s.reject(E))},b=()=>new Promise(E=>{i=y=>{(l()||h())&&E(y)},e.onPause?.()}).then(()=>{i=void 0,l()||e.onContinue?.()}),x=()=>{if(l())return;let E;const y=n===0?e.initialPromise:void 0;try{E=y??e.fn()}catch(S){E=Promise.reject(S)}Promise.resolve(E).then(f).catch(S=>{if(l())return;const v=e.retry??(Wi?0:3),_=e.retryDelay??pM,C=typeof _=="function"?_(n,S):_,N=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,S);if(t||!N){g(S);return}n++,e.onFail?.(n,S),oM(C).then(()=>h()?void 0:b()).then(()=>{t?g(S):x()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(i?.(),s),cancelRetry:o,continueRetry:d,canStart:p,start:()=>(p()?x():b().then(x),s)}}var FN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hy(this.gcTime)&&(this.#e=zi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wi?1/0:300*1e3))}clearGcTimeout(){this.#e&&(zi.clearTimeout(this.#e),this.#e=void 0)}},mM=class extends FN{#e;#t;#n;#i;#r;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Fx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Fx(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=$y(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Hn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ON(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(d=>d.options.queryFn);o&&this.setOptions(o.options)}const n=new AbortController,i=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const o=LN(this.options,t),h=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#o=!1,this.options.persister?this.options.persister(o,h,this):o(h)},c=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return i(o),o})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=BN({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:o=>{o instanceof Vy&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,d)=>{this.#a({type:"failed",failureCount:o,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#n.config.onSuccess?.(o,this),this.#n.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof Vy){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#a({type:"error",error:o}),this.#n.config.onError?.(o,this),this.#n.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...PN(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Lt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function PN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var gM=class extends ts{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=Gy(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#s;#o;#a;#m;#h;#f;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Px(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wy(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wy(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),t._defaulted&&!gu(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&Ux(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||Hn(this.options.enabled,this.#t)!==Hn(t.enabled,this.#t)||hi(this.options.staleTime,this.#t)!==hi(t.staleTime,this.#t))&&this.#g();const s=this.#b();i&&(this.#t!==n||Hn(this.options.enabled,this.#t)!==Hn(t.enabled,this.#t)||s!==this.#l)&&this.#y(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return yM(this,n)&&(this.#i=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#E();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Jt)),t}#g(){this.#_();const e=hi(this.options.staleTime,this.#t);if(Wi||this.#i.isStale||!Hy(e))return;const n=ON(this.#i.dataUpdatedAt,e)+1;this.#u=zi.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#S(),this.#l=e,!(Wi||Hn(this.options.enabled,this.#t)===!1||!Hy(this.#l)||this.#l===0)&&(this.#c=zi.setInterval(()=>{(this.options.refetchIntervalInBackground||kv.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#b())}#_(){this.#u&&(zi.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(zi.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,i=this.options,s=this.#i,l=this.#r,c=this.#s,d=e!==n?e.state:this.#n,{state:h}=e;let p={...h},f=!1,g;if(t._optimisticResults){const k=this.hasListeners(),I=!k&&Px(e,t),M=k&&Ux(e,n,t,i);(I||M)&&(p={...p,...PN(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:E}=p;g=p.data;let y=!1;if(t.placeholderData!==void 0&&g===void 0&&E==="pending"){let k;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(k=s.data,y=!0):k=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,k!==void 0&&(E="success",g=$y(s?.data,k,t),f=!0)}if(t.select&&g!==void 0&&!y)if(s&&g===l?.data&&t.select===this.#m)g=this.#h;else try{this.#m=t.select,g=t.select(g),g=$y(s?.data,g,t),this.#h=g,this.#a=null}catch(k){this.#a=k}this.#a&&(b=this.#a,g=this.#h,x=Date.now(),E="error");const S=p.fetchStatus==="fetching",v=E==="pending",_=E==="error",C=v&&S,N=g!==void 0,O={status:E,fetchStatus:p.fetchStatus,isPending:v,isSuccess:E==="success",isError:_,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!v,isLoadingError:_&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&N,isStale:Nv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Hn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=U=>{O.status==="error"?U.reject(O.error):O.data!==void 0&&U.resolve(O.data)},I=()=>{const U=this.#o=O.promise=Gy();k(U)},M=this.#o;switch(M.status){case"pending":e.queryHash===n.queryHash&&k(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&I();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&I();break}}return O}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#f=this.#t),gu(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.#p.size)return!0;const l=new Set(s??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#i).some(c=>{const o=c;return this.#i[o]!==e[o]&&l.has(o)})};this.#x({listeners:n()})}#E(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#x(e){Lt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function bM(e,t){return Hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Px(e,t){return bM(e,t)||e.state.data!==void 0&&Wy(e,t,t.refetchOnMount)}function Wy(e,t,n){if(Hn(t.enabled,e)!==!1&&hi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Nv(e,t)}return!1}function Ux(e,t,n,i){return(e!==t||Hn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Nv(e,n)}function Nv(e,t){return Hn(t.enabled,e)!==!1&&e.isStaleByTime(hi(t.staleTime,e))}function yM(e,t){return!gu(e.getCurrentResult(),t)}function jx(e){return{onFetch:(t,n)=>{const i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},d=0;const h=async()=>{let p=!1;const f=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=LN(t.options,t.fetchOptions),b=async(x,E,y)=>{if(p)return Promise.reject();if(E==null&&x.pages.length)return Promise.resolve(x);const v=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:E,direction:y?"backward":"forward",meta:t.options.meta};return f(R),R})(),_=await g(v),{maxPages:C}=t.options,N=y?uM:lM;return{pages:N(x.pages,_,C),pageParams:N(x.pageParams,E,C)}};if(s&&l.length){const x=s==="backward",E=x?vM:zx,y={pages:l,pageParams:c},S=E(i,y);o=await b(y,S,x)}else{const x=e??l.length;do{const E=d===0?c[0]??i.initialPageParam:zx(i,o);if(d>0&&E==null)break;o=await b(o,E),d++}while(d<x)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function zx(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function vM(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var _M=class extends FN{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||UN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=BN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",s=!this.#i.canStart();try{if(i)t();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:s})}const l=await this.#i.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,n),await this.options.onSuccess?.(l,e,this.state.context,n),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(l,null,e,this.state.context,n),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#n.config.onError?.(l,e,this.state.context,this,n),await this.options.onError?.(l,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,l,e,this.state.context,n),l}finally{this.#r({type:"error",error:l})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Lt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function UN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var SM=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const i=new _M({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=Vl(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Vl(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Vl(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=Vl(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Dx(t,n))}findAll(e={}){return this.getAll().filter(t=>Dx(e,t))}notify(e){Lt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Lt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Jt))))}};function Vl(e){return e.options.scope?.id}var EM=class extends ts{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),gu(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ki(n.mutationKey)!==Ki(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??UN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,i,s),this.#i.onSettled?.(t.data,null,n,i,s)):t?.type==="error"&&(this.#i.onError?.(t.error,n,i,s),this.#i.onSettled?.(void 0,t.error,n,i,s))}this.listeners.forEach(n=>{n(this.#t)})})}},xM=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??Av(i,t);let l=this.get(s);return l||(l=new mM({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Lt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Lx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Lx(e,n)):t}notify(e){Lt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wM=class{#e;#t;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new xM,this.#t=e.mutationCache||new SM,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=kv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=bu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(i.queryHash)?.state.data,c=aM(t,l);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Lt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Lt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Lt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Lt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Jt).catch(Jt)}invalidateQueries(e,t={}){return Lt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Lt.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Jt)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(hi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=jx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=jx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{bo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{bo(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Av(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Rv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},jN=V.createContext(void 0),gn=e=>{const t=V.useContext(jN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CM=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(jN.Provider,{value:e,children:t})),zN=V.createContext(!1),TM=()=>V.useContext(zN);zN.Provider;function AM(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RM=V.createContext(AM()),kM=()=>V.useContext(RM),NM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},OM=e=>{V.useEffect(()=>{e.clearReset()},[e])},IM=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||DN(n,[e.error,i])),LM=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},DM=(e,t)=>e.isLoading&&e.isFetching&&!t,MM=(e,t)=>e?.suspense&&t.isPending,Hx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BM(e,t,n){const i=TM(),s=kM(),l=gn(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",LM(c),NM(c,s),OM(s);const o=!l.getQueryCache().get(c.queryHash),[d]=V.useState(()=>new t(l,c)),h=d.getOptimisticResult(c),p=!i&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(f=>{const g=p?d.subscribe(Lt.batchCalls(f)):Jt;return d.updateResult(),g},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),V.useEffect(()=>{d.setOptions(c)},[c,d]),MM(c,h))throw Hx(c,d,s);if(IM({result:h,errorResetBoundary:s,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!Wi&&DM(h,i)&&(o?Hx(c,d,s):l.getQueryCache().get(c.queryHash)?.promise)?.catch(Jt).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?h:d.trackResult(h)}function gi(e,t){return BM(e,gM)}function Kn(e,t){const n=gn(),[i]=V.useState(()=>new EM(n,e));V.useEffect(()=>{i.setOptions(e)},[i,e]);const s=V.useSyncExternalStore(V.useCallback(c=>i.subscribe(Lt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=V.useCallback((c,o)=>{i.mutate(c,o).catch(Jt)},[i]);if(s.error&&DN(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}const Va=new WeakMap,su=new WeakMap,yu={current:[]};let xh=!1,uo=0;const lo=new Set,Wl=new Map;function HN(e){const t=Array.from(e).sort((n,i)=>n instanceof Wa&&n.options.deps.includes(i)?1:i instanceof Wa&&i.options.deps.includes(n)?-1:0);for(const n of t){if(yu.current.includes(n))continue;yu.current.push(n),n.recompute();const i=su.get(n);if(i)for(const s of i){const l=Va.get(s);l&&HN(l)}}}function FM(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function PM(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function qN(e){if(uo>0&&!Wl.has(e)&&Wl.set(e,e.prevState),lo.add(e),!(uo>0)&&!xh)try{for(xh=!0;lo.size>0;){const t=Array.from(lo);lo.clear();for(const n of t){const i=Wl.get(n)??n.prevState;n.prevState=i,FM(n)}for(const n of t){const i=Va.get(n);i&&(yu.current.push(n),HN(i))}for(const n of t){const i=Va.get(n);if(i)for(const s of i)PM(s)}}}finally{xh=!1,yu.current=[],Wl.clear()}}function co(e){uo++;try{e()}finally{if(uo--,uo===0){const t=lo.values().next().value;t&&qN(t)}}}function UM(e){return typeof e=="function"}class Ky{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,l;this.listeners.add(i);const c=(l=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:l.call(s,i,this);return()=>{this.listeners.delete(i),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):UM(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),qN(this)}}class Wa{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,i=new Array(n),s=new Array(n);for(let l=0;l<n;l++){const c=this.options.deps[l];i[l]=c.prevState,s[l]=c.state}return this.lastSeenDepValues=s,{prevDepVals:i,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,i;this.prevState=this.state;const s=this.getDepVals();this.state=this.options.fn(s),(i=(n=this.options).onUpdate)==null||i.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const l of this.options.deps)l instanceof Wa&&l.checkIfRecalculationNeededDeeply();let n=!1;const i=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let l=0;l<s.length;l++)if(s[l]!==i[l]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var i,s;this.listeners.add(n);const l=(s=(i=this.options).onSubscribe)==null?void 0:s.call(i,n,this);return()=>{this.listeners.delete(n),l?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Wa)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Ky){let i=Va.get(n);i||(i=new Set,Va.set(n,i)),i.add(this);let s=su.get(this);s||(s=new Set,su.set(this,s)),s.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Wa)this.unregisterFromGraph(n.options.deps);else if(n instanceof Ky){const i=Va.get(n);i&&i.delete(this);const s=su.get(this);s&&s.delete(n)}}}const fi="__TSR_index",qx="popstate",$x="beforeunload";function jM(e){let t=e.getLocation();const n=new Set,i=c=>{t=e.getLocation(),n.forEach(o=>o({location:t,action:c}))},s=c=>{e.notifyOnIndexChange??!0?i(c):t=e.getLocation()},l=async({task:c,navigateOpts:o,...d})=>{if(o?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],f=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&p.length&&f)for(const g of p){const b=vu(d.path,d.state);if(await g.blockerFn({currentLocation:t,nextLocation:b,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,o,d)=>{const h=t.state[fi];o=Gx(h+1,o),l({task:()=>{e.pushState(c,o),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:c,state:o})},replace:(c,o,d)=>{const h=t.state[fi];o=Gx(h,o),l({task:()=>{e.replaceState(c,o),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:c,state:o})},go:(c,o)=>{l({task:()=>{e.go(c),s({type:"GO",index:c})},navigateOpts:o,type:"GO"})},back:c=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[fi]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const o=e.getBlockers?.()??[];return e.setBlockers([...o,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function Gx(e,t){t||(t={});const n=Ov();return{...t,key:n,__TSR_key:n,[fi]:e}}function zM(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,c=k=>s=k,o=(k=>k),d=(()=>vu(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const k=Ov();t.history.replaceState({[fi]:0,key:k,__TSR_key:k},"")}let h=d(),p,f=!1,g=!1,b=!1,x=!1;const E=()=>h;let y,S;const v=()=>{y&&(O._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),O._ignoreSubscribers=!1,y=void 0,S=void 0,p=void 0)},_=(k,I,M)=>{const U=o(I);S||(p=h),h=vu(I,M),y={href:U,state:M,isPush:y?.isPush||k==="push"},S||(S=Promise.resolve().then(()=>v()))},C=k=>{h=d(),O.notify({type:k})},N=async()=>{if(g){g=!1;return}const k=d(),I=k.state[fi]-h.state[fi],M=I===1,U=I===-1,z=!M&&!U||f;f=!1;const j=z?"GO":U?"BACK":"FORWARD",G=z?{type:"GO",index:I}:{type:U?"BACK":"FORWARD"};if(b)b=!1;else{const K=l();if(typeof document<"u"&&K.length){for(const W of K)if(await W.blockerFn({currentLocation:h,nextLocation:k,action:j})){g=!0,t.history.go(1),O.notify(G);return}}}h=d(),O.notify(G)},R=k=>{if(x){x=!1;return}let I=!1;const M=l();if(typeof document<"u"&&M.length)for(const U of M){const z=U.enableBeforeUnload??!0;if(z===!0){I=!0;break}if(typeof z=="function"&&z()===!0){I=!0;break}}if(I)return k.preventDefault(),k.returnValue=""},O=jM({getLocation:E,getLength:()=>t.history.length,pushState:(k,I)=>_("push",k,I),replaceState:(k,I)=>_("replace",k,I),back:k=>(k&&(b=!0),x=!0,t.history.back()),forward:k=>{k&&(b=!0),x=!0,t.history.forward()},go:k=>{f=!0,t.history.go(k)},createHref:k=>o(k),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener($x,R,{capture:!0}),t.removeEventListener(qx,N)},onBlocked:()=>{p&&h!==p&&(h=p)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener($x,R,{capture:!0}),t.addEventListener(qx,N),t.history.pushState=function(...k){const I=n.apply(t.history,k);return O._ignoreSubscribers||C("PUSH"),I},t.history.replaceState=function(...k){const I=i.apply(t.history,k);return O._ignoreSubscribers||C("REPLACE"),I},O}function vu(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=Ov();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[fi]:0,key:s,__TSR_key:s}}}function Ov(){return(Math.random()+1).toString(36).substring(7)}function Yy(e){return e[e.length-1]}function HM(e){return typeof e=="function"}function qi(e,t){return HM(e)?e(t):e}const qM=Object.prototype.hasOwnProperty;function zn(e,t){if(e===t)return e;const n=t,i=Kx(e)&&Kx(n);if(!i&&!(_u(e)&&_u(n)))return n;const s=i?e:Vx(e);if(!s)return n;const l=i?n:Vx(n);if(!l)return n;const c=s.length,o=l.length,d=i?new Array(o):{};let h=0;for(let p=0;p<o;p++){const f=i?p:l[p],g=e[f],b=n[f];if(g===b){d[f]=g,(i?p<c:qM.call(e,f))&&h++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){d[f]=b;continue}const x=zn(g,b);d[f]=x,x===g&&h++}return c===o&&h===c?e:d}function Vx(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function _u(e){if(!Wx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Wx(n)||!n.hasOwnProperty("isPrototypeOf"))}function Wx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Kx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $i(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!$i(e[i],t[i],n))return!1;return!0}if(_u(e)&&_u(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!i||t[c]!==void 0)&&!$i(e[c],t[c],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&s++;let l=0;for(const c in t)if((!i||t[c]!==void 0)&&(l++,l>s||!$i(e[c],t[c],n)))return!1;return s===l}return!1}function Ya(e){let t,n;const i=new Promise((s,l)=>{t=s,n=l});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e?.(s)},i.reject=s=>{i.status="rejected",n(s)},i}function pi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}var $M="Invariant failed";function Mr(e,t){if(!e)throw new Error($M)}const hn="__root__",or=0,Yi=1,Xa=2,Za=3;function Dr(e){return Iv(e.filter(t=>t!==void 0).join("/"))}function Iv(e){return e.replace(/\/{2,}/g,"/")}function Lv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function mi(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function ou(e){return mi(Lv(e))}function Su(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function GM(e,t,n){return Su(e,n)===Su(t,n)}function VM(e){const{type:t,value:n}=e;if(t===or)return n;const{prefixSegment:i,suffixSegment:s}=e;if(t===Yi){const l=n.substring(1);if(i&&s)return`${i}{$${l}}${s}`;if(i)return`${i}{$${l}}`;if(s)return`{$${l}}${s}`}if(t===Za){const l=n.substring(1);return i&&s?`${i}{-$${l}}${s}`:i?`${i}{-$${l}}`:s?`{-$${l}}${s}`:`{-$${l}}`}if(t===Xa){if(i&&s)return`${i}{$}${s}`;if(i)return`${i}{$}`;if(s)return`{$}${s}`}return n}function WM({base:e,to:t,trailingSlash:n="never",parseCache:i}){let s=$N(e,i).slice();const l=Bu(t,i);s.length>1&&Yy(s)?.value==="/"&&s.pop();for(let d=0,h=l.length;d<h;d++){const p=l[d],f=p.value;f==="/"?d?d===h-1&&s.push(p):s=[p]:f===".."?s.pop():f==="."||s.push(p)}s.length>1&&(Yy(s).value==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:or,value:"/"}));const c=s.map(VM);return Dr(c)}const $N=(e,t)=>GN(e,t,!0),Bu=(e,t)=>GN(e,t,!1),GN=(e,t,n)=>{if(!e)return[];const i=t?.get(e);if(i)return i;const s=JM(e,n);return t?.set(e,s),s},KM=/^\$.{1,}$/,YM=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,XM=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,ZM=/^\$$/,QM=/^(.*?)\{\$\}(.*)$/;function JM(e,t){e=Iv(e);const n=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),n.push({type:or,value:"/"})),!e)return n;const i=e.split("/").filter(Boolean);return n.push(...i.map(s=>{const l=!t&&s!==hn&&s.slice(-1)==="_"?s.slice(0,-1):s,c=l.match(QM);if(c){const h=c[1],p=c[2];return{type:Xa,value:"$",prefixSegment:h||void 0,suffixSegment:p||void 0}}const o=l.match(XM);if(o){const h=o[1],p=o[2],f=o[3];return{type:Za,value:p,prefixSegment:h||void 0,suffixSegment:f||void 0}}const d=l.match(YM);if(d){const h=d[1],p=d[2],f=d[3];return{type:Yi,value:""+p,prefixSegment:h||void 0,suffixSegment:f||void 0}}if(KM.test(l)){const h=l.substring(1);return{type:Yi,value:"$"+h,prefixSegment:void 0,suffixSegment:void 0}}return ZM.test(l)?{type:Xa,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:or,value:l.includes("%25")?l.split("%25").map(h=>decodeURI(h)).join("%25"):decodeURI(l)}})),e.slice(-1)==="/"&&(e=e.substring(1),n.push({type:or,value:"/"})),n}function Kl({path:e,params:t,leaveWildcards:n,leaveParams:i,decodeCharMap:s,parseCache:l}){const c=Bu(e,l);function o(f){const g=t[f],b=typeof g=="string";return f==="*"||f==="_splat"?b?encodeURI(g):g:b?eB(g,s):g}let d=!1;const h={},p=Dr(c.map(f=>{if(f.type===or)return f.value;if(f.type===Xa){h._splat=t._splat,h["*"]=t._splat;const g=f.prefixSegment||"",b=f.suffixSegment||"";if(!("_splat"in t))return d=!0,n?`${g}${f.value}${b}`:g||b?`${g}${b}`:void 0;const x=o("_splat");return n?`${g}${f.value}${x??""}${b}`:`${g}${x}${b}`}if(f.type===Yi){const g=f.value.substring(1);!d&&!(g in t)&&(d=!0),h[g]=t[g];const b=f.prefixSegment||"",x=f.suffixSegment||"";if(i){const E=o(f.value);return`${b}${f.value}${E??""}${x}`}return`${b}${o(g)??"undefined"}${x}`}if(f.type===Za){const g=f.value.substring(1),b=f.prefixSegment||"",x=f.suffixSegment||"";if(!(g in t)||t[g]==null)return n?`${b}${g}${x}`:b||x?`${b}${x}`:void 0;if(h[g]=t[g],i){const E=o(f.value);return`${b}${f.value}${E??""}${x}`}return n?`${b}${g}${o(g)??""}${x}`:`${b}${o(g)??""}${x}`}return f.value}));return{usedParams:h,interpolatedPath:p,isMissingParams:d}}function eB(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function Xy(e,t,n){const i=tB(e,t,n);if(!(t.to&&!i))return i??{}}function tB(e,{to:t,fuzzy:n,caseSensitive:i},s){const l=t,c=$N(e.startsWith("/")?e:`/${e}`,s),o=Bu(l.startsWith("/")?l:`/${l}`,s),d={};return nB(c,o,d,n,i)?d:void 0}function nB(e,t,n,i,s){let l=0,c=0;for(;l<e.length||c<t.length;){const o=e[l],d=t[c];if(d){if(d.type===Xa){const h=e.slice(l);let p;if(d.prefixSegment||d.suffixSegment){if(!o)return!1;const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if("prefixSegment"in d&&!b.startsWith(f)||"suffixSegment"in d&&!e[e.length-1]?.value.endsWith(g))return!1;let x=decodeURI(Dr(h.map(E=>E.value)));f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),p=x}else p=decodeURI(Dr(h.map(f=>f.value)));return n["*"]=p,n._splat=p,!0}if(d.type===or){if(d.value==="/"&&!o?.value){c++;continue}if(o){if(s){if(d.value!==o.value)return!1}else if(d.value.toLowerCase()!==o.value.toLowerCase())return!1;l++,c++;continue}else return!1}if(d.type===Yi){if(!o||o.value==="/")return!1;let h="",p=!1;if(d.prefixSegment||d.suffixSegment){const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if(f&&!b.startsWith(f)||g&&!b.endsWith(g))return!1;let x=b;f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),h=decodeURIComponent(x),p=!0}else h=decodeURIComponent(o.value),p=!0;p&&(n[d.value.substring(1)]=h,l++),c++;continue}if(d.type===Za){if(!o){c++;continue}if(o.value==="/"){c++;continue}let h="",p=!1;if(d.prefixSegment||d.suffixSegment){const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if((!f||b.startsWith(f))&&(!g||b.endsWith(g))){let x=b;f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),h=decodeURIComponent(x),p=!0}}else{let f=!0;for(let g=c+1;g<t.length;g++){const b=t[g];if(b?.type===or&&b.value===o.value){f=!1;break}if(b?.type===Yi||b?.type===Xa){e.length<t.length&&(f=!1);break}}f&&(h=decodeURIComponent(o.value),p=!0)}p&&(n[d.value.substring(1)]=h,l++),c++;continue}}if(l<e.length&&c>=t.length)return n["**"]=Dr(e.slice(l).map(h=>h.value)),!!i&&t[t.length-1]?.value!=="/";if(c<t.length&&l>=e.length){for(let h=c;h<t.length;h++)if(t[h]?.type!==Za)return!1;break}break}return!0}const rB=.75,iB=1,aB=.5,sB=.4,oB=.25,lB=.2,uB=.05,cB=.02,dB=.01,Yx=2e-4,Xx=1e-4;function Zx(e,t){return e.prefixSegment&&e.suffixSegment?t+uB+Yx*e.prefixSegment.length+Xx*e.suffixSegment.length:e.prefixSegment?t+cB+Yx*e.prefixSegment.length:e.suffixSegment?t+dB+Xx*e.suffixSegment.length:t}function hB(e){const t=[];return e.forEach((i,s)=>{if(i.isRoot||!i.path)return;const l=Lv(i.fullPath);let c=Bu(l),o=0;for(;c.length>o+1&&c[o]?.value==="/";)o++;o>0&&(c=c.slice(o));let d=0,h=!1;const p=c.map((f,g)=>{if(f.value==="/")return rB;if(f.type===or)return iB;let b;f.type===Yi?b=aB:f.type===Za?(b=sB,d++):b=oB;for(let x=g+1;x<c.length;x++){const E=c[x];if(E.type===or&&E.value!=="/")return h=!0,Zx(f,b+lB)}return Zx(f,b)});t.push({child:i,trimmed:l,parsed:c,index:s,scores:p,optionalParamCount:d,hasStaticAfter:h})}),t.sort((i,s)=>{const l=Math.min(i.scores.length,s.scores.length);for(let c=0;c<l;c++)if(i.scores[c]!==s.scores[c])return s.scores[c]-i.scores[c];if(i.scores.length!==s.scores.length){if(i.optionalParamCount!==s.optionalParamCount){if(i.hasStaticAfter===s.hasStaticAfter)return i.optionalParamCount-s.optionalParamCount;if(i.hasStaticAfter&&!s.hasStaticAfter)return-1;if(!i.hasStaticAfter&&s.hasStaticAfter)return 1}return s.scores.length-i.scores.length}for(let c=0;c<l;c++)if(i.parsed[c].value!==s.parsed[c].value)return i.parsed[c].value>s.parsed[c].value?1:-1;return i.index-s.index}).map((i,s)=>(i.child.rank=s,i.child))}function fB({routeTree:e,initRoute:t}){const n={},i={},s=c=>{c.forEach((o,d)=>{t?.(o,d);const h=n[o.id];if(Mr(!h,`Duplicate routes found with id: ${String(o.id)}`),n[o.id]=o,!o.isRoot&&o.path){const f=mi(o.fullPath);(!i[f]||o.fullPath.endsWith("/"))&&(i[f]=o)}const p=o.children;p?.length&&s(p)})};s([e]);const l=hB(Object.values(n));return{routesById:n,routesByPath:i,flatRoutes:l}}function lr(e){return!!e?.isNotFound}function pB(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Eu="tsr-scroll-restoration-v1_3",mB=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function gB(){const e=pB();if(!e)return null;const t=e.getItem(Eu);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=qi(i,n)||n,e.setItem(Eu,JSON.stringify(n)))}}const Yl=gB(),Zy=e=>e.state.__TSR_key||e.href;function bB(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let xu=!1;function VN({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:l}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const o=t||window.history.state?.__TSR_key,d=c[o];xu=!0;e:{if(i&&d&&Object.keys(d).length>0){for(const f in d){const g=d[f];if(f==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(f){const b=document.querySelector(f);b&&(b.scrollLeft=g.scrollX,b.scrollTop=g.scrollY)}}break e}const h=(l??window.location).hash.split("#",2)[1];if(h){const f=window.history.state?.__hashScrollIntoViewOptions??!0;if(f){const g=document.getElementById(h);g&&g.scrollIntoView(f)}break e}const p={top:0,left:0,behavior:n};if(window.scrollTo(p),s)for(const f of s){if(f==="window")continue;const g=typeof f=="function"?f():document.querySelector(f);g&&g.scrollTo(p)}}xu=!1}function yB(e,t){if(!Yl&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Yl))return;e.isScrollRestorationSetup=!0,xu=!1;const i=e.options.getScrollRestorationKey||Zy;window.history.scrollRestoration="manual";const s=l=>{if(xu||!e.isScrollRestoring)return;let c="";if(l.target===document||l.target===window)c="window";else{const d=l.target.getAttribute("data-scroll-restoration-id");d?c=`[data-scroll-restoration-id="${d}"]`:c=bB(l.target)}const o=i(e.state.location);Yl.set(d=>{const h=d[o]||={},p=h[c]||={};if(c==="window")p.scrollX=window.scrollX||0,p.scrollY=window.scrollY||0;else if(c){const f=document.querySelector(c);f&&(p.scrollX=f.scrollLeft||0,p.scrollY=f.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",mB(s,100),!0),e.subscribe("onRendered",l=>{const c=i(l.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(VN({storageKey:Eu,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Yl.set(o=>(o[c]||={},o)))})}function vB(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function _B(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function wh(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function SB(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=wh(s):Array.isArray(l)?l.push(wh(s)):n[i]=[l,wh(s)]}return n}const EB=wB(JSON.parse),xB=CB(JSON.stringify,JSON.parse);function wB(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=SB(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function CB(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const l=_B(s,i);return l?`?${l}`:""}}function WN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ar(e){return e instanceof Response&&!!e.options}function TB(e){const t=new Map;let n,i;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=l)};return{get(l){const c=t.get(l);if(c)return s(c),c.value},set(l,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const o=t.get(l);if(o)o.value=c,s(o);else{const d={key:l,value:c,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(l,d)}}}}const lu=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Fu=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),KN=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Mr(n.options.notFoundComponent);const i=e.matches.find(s=>s.routeId===n.id);Mr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,s=>({...s,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,KN(e,t))},ci=(e,t,n)=>{if(!(!ar(n)&&!lr(n))){if(ar(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=ar(n)?"redirected":"notFound";e.updateMatch(t.id,s=>({...s,status:i,isFetching:!1,error:n})),lr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw ar(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(KN(e,n),n)}},YN=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},eo=(e,t,n,i)=>{const{id:s,routeId:l}=e.matches[t],c=e.router.looseRoutesById[l];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??=t,ci(e,e.router.getMatch(s),n);try{c.options.onError?.(n)}catch(o){n=o,ci(e,e.router.getMatch(s),n)}e.updateMatch(s,o=>(o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loadPromise?.resolve(),{...o,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},AB=(e,t,n,i)=>{const s=e.router.getMatch(t),l=e.matches[n-1]?.id,c=l?e.router.getMatch(l):void 0;if(e.router.isShell()){s.ssr=t===hn;return}if(c?.ssr===!1){s.ssr=!1;return}const o=b=>b===!0&&c?.ssr==="data-only"?"data-only":b,d=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=o(d);return}if(typeof i.options.ssr!="function"){s.ssr=o(i.options.ssr);return}const{search:h,params:p}=s,f={search:Xl(h,s.searchError),params:Xl(p,s.paramsError),location:e.location,matches:e.matches.map(b=>({index:b.index,pathname:b.pathname,fullPath:b.fullPath,staticData:b.staticData,id:b.id,routeId:b.routeId,search:Xl(b.search,b.searchError),params:Xl(b.params,b.paramsError),ssr:b.ssr}))},g=i.options.ssr(f);if(pi(g))return g.then(b=>{s.ssr=o(b??d)});s.ssr=o(g??d)},XN=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!Fu(e,t)&&(n.options.loader||n.options.beforeLoad||JN(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{lu(e)},s);i._nonReactive.pendingTimeout=c}},RB=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;XN(e,t,n,i);const s=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&ci(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},kB=(e,t,n,i)=>{const s=e.router.getMatch(t),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Ya(()=>{l?.resolve()});const{paramsError:c,searchError:o}=s;c&&eo(e,n,c,"PARSE_PARAMS"),o&&eo(e,n,o,"VALIDATE_SEARCH"),XN(e,t,i,s);const d=new AbortController,h=e.matches[n-1]?.id,g={...(h?e.router.getMatch(h):void 0)?.context??e.router.options.context??void 0,...s.__routeContext};let b=!1;const x=()=>{b||(b=!0,e.updateMatch(t,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:d,context:g})))},E=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,O=>({...O,isFetching:!1}))};if(!i.options.beforeLoad){co(()=>{x(),E()});return}s._nonReactive.beforeLoadPromise=Ya();const{search:y,params:S,cause:v}=s,_=Fu(e,t),C={search:y,abortController:d,params:S,preload:_,context:g,location:e.location,navigate:O=>e.router.navigate({...O,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?"preload":v,matches:e.matches,...e.router.options.additionalContext},N=O=>{if(O===void 0){co(()=>{x(),E()});return}(ar(O)||lr(O))&&(x(),eo(e,n,O,"BEFORE_LOAD")),co(()=>{x(),e.updateMatch(t,k=>({...k,__beforeLoadContext:O,context:{...k.context,...O}})),E()})};let R;try{if(R=i.options.beforeLoad(C),pi(R))return x(),R.catch(O=>{eo(e,n,O,"BEFORE_LOAD")}).then(N)}catch(O){x(),eo(e,n,O,"BEFORE_LOAD")}N(R)},NB=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],l=()=>{if(e.router.isServer){const d=AB(e,n,t,s);if(pi(d))return d.then(o)}return o()},c=()=>kB(e,n,t,s),o=()=>{if(YN(e,n))return;const d=RB(e,n,s);return pi(d)?d.then(c):c()};return l()},ho=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(s),n.options.scripts?.(s),n.options.headers?.(s)]).then(([l,c,o])=>{const d=l?.meta,h=l?.links,p=l?.scripts,f=l?.styles;return{meta:d,links:h,headScripts:p,headers:o,scripts:c,styles:f}})},ZN=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:l,loaderDeps:c,abortController:o,context:d,cause:h}=e.router.getMatch(t),p=Fu(e,t);return{params:l,deps:c,preload:!!p,parentMatchPromise:s,abortController:o,context:d,location:e.location,navigate:f=>e.router.navigate({...f,_fromLocation:e.location}),cause:p?"preload":h,route:i,...e.router.options.additionalContext}},Qx=async(e,t,n,i)=>{try{const s=e.router.getMatch(t);try{(!e.router.isServer||s.ssr===!0)&&QN(i);const l=i.options.loader?.(ZN(e,t,n,i)),c=i.options.loader&&pi(l);if(!!(c||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(t,f=>({...f,isFetching:"loader"})),i.options.loader){const f=c?await l:l;ci(e,e.router.getMatch(t),f),f!==void 0&&e.updateMatch(t,g=>({...g,loaderData:f}))}i._lazyPromise&&await i._lazyPromise;const d=ho(e,t,i),h=d?await d:void 0,p=s._nonReactive.minPendingPromise;p&&await p,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,f=>({...f,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...h}))}catch(l){let c=l;const o=s._nonReactive.minPendingPromise;o&&await o,ci(e,e.router.getMatch(t),l);try{i.options.onError?.(l)}catch(p){c=p,ci(e,e.router.getMatch(t),p)}const d=ho(e,t,i),h=d?await d:void 0;e.updateMatch(t,p=>({...p,error:c,status:"error",isFetching:!1,...h}))}}catch(s){const l=e.router.getMatch(t);if(l){const c=ho(e,t,i);if(c){const o=await c;e.updateMatch(t,d=>({...d,...o}))}l._nonReactive.loaderPromise=void 0}ci(e,l,s)}},OB=async(e,t)=>{const{id:n,routeId:i}=e.matches[t];let s=!1,l=!1;const c=e.router.looseRoutesById[i];if(YN(e,n)){if(e.router.isServer){const h=ho(e,n,c);if(h){const p=await h;e.updateMatch(n,f=>({...f,...p}))}return e.router.getMatch(n)}}else{const h=e.router.getMatch(n);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!e.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const p=e.router.getMatch(n);p.error&&ci(e,p,p.error)}else{const p=Date.now()-h.updatedAt,f=Fu(e,n),g=f?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,b=c.options.shouldReload,x=typeof b=="function"?b(ZN(e,n,t,c)):b,E=!!f&&!e.router.state.matches.some(_=>_.id===n),y=e.router.getMatch(n);y._nonReactive.loaderPromise=Ya(),E!==y.preload&&e.updateMatch(n,_=>({..._,preload:E}));const{status:S,invalid:v}=y;if(s=S==="success"&&(v||(x??p>g)),!(f&&c.options.preload===!1))if(s&&!e.sync)l=!0,(async()=>{try{await Qx(e,n,t,c);const _=e.router.getMatch(n);_._nonReactive.loaderPromise?.resolve(),_._nonReactive.loadPromise?.resolve(),_._nonReactive.loaderPromise=void 0}catch(_){ar(_)&&await e.router.navigate(_.options)}})();else if(S!=="success"||s&&e.sync)await Qx(e,n,t,c);else{const _=ho(e,n,c);if(_){const C=await _;e.updateMatch(n,N=>({...N,...C}))}}}}const o=e.router.getMatch(n);l||(o._nonReactive.loaderPromise?.resolve(),o._nonReactive.loadPromise?.resolve()),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0,l||(o._nonReactive.loaderPromise=void 0),o._nonReactive.dehydrated=void 0;const d=l?o.isFetching:!1;return d!==o.isFetching||o.invalid!==!1?(e.updateMatch(n,h=>({...h,isFetching:d,invalid:!1})),e.router.getMatch(n)):o};async function Jx(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&lu(t);try{for(let s=0;s<t.matches.length;s++){const l=NB(t,s);pi(l)&&await l}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(OB(t,s));await Promise.all(t.matchPromises);const i=lu(t);pi(i)&&await i}catch(n){if(lr(n)&&!t.preload){const i=lu(t);throw pi(i)&&await i,n}if(ar(n))throw n}return t.matches}async function QN(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const i of eO){const s=e.options[i]?.preload;s&&n.push(s())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Xl(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function JN(e){for(const t of eO)if(e.options[t]?.preload)return!0;return!1}const eO=["component","errorComponent","pendingComponent","notFoundComponent"];function IB(e){return{input:({url:t})=>{for(const n of e)t=tO(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=nO(e[n],t);return t}}}function LB(e){const t=ou(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),l=e.caseSensitive?i:i.toLowerCase();return{input:({url:c})=>{const o=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return o===s?c.pathname="/":o.startsWith(l)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=Dr(["/",t,c.pathname]),c)}}function tO(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function nO(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Gi(e){const t=e.resolvedLocation,n=e.location,i=t?.pathname!==n.pathname,s=t?.href!==n.href,l=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:l}}class DB{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,c=i?.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=zM())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Ky(BB(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),yB(this));let o=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(l||s!==d||c!==h){this.basepath=d;const g=[];ou(d)!==""&&g.push(LB({basepath:d})),h&&g.push(h),this.rewrite=g.length===0?void 0:g.length===1?g[0]:IB(g),this.history&&this.updateLatestLocation(),o=!0}o&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,flatRoutes:s}=fB({routeTree:this.routeTree,initRoute:(c,o)=>{c.init({originalIndex:o})}});this.routesById=n,this.routesByPath=i,this.flatRoutes=s;const l=this.options.notFoundRoute;l&&(l.init({originalIndex:99999999999}),this.routesById[l.id]=l)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:d,state:h})=>{const p=new URL(d,this.origin),f=tO(this.rewrite,p),g=this.options.parseSearch(f.search),b=this.options.stringifySearch(g);f.search=b;const x=f.href.replace(f.origin,""),{pathname:E,hash:y}=f;return{href:x,publicHref:d,url:f.href,pathname:E,searchStr:b,search:zn(i?.search,g),hash:y.split("#").reverse()[0]??"",state:zn(i?.state,h)}},l=s(n),{__tempLocation:c,__tempKey:o}=l.state;if(c&&(!o||o===this.tempLocationKey)){const d=s(c);return d.state.key=l.state.key,d.state.__TSR_key=l.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>WM({base:n,to:Iv(i),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.parsePathnameCache=TB(1e3),this.getMatchedRoutes=(n,i)=>FB({pathname:n,routePathname:i,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.state.pendingMatches?.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=n=>{const i=(l={})=>{const c=l._fromLocation||this.latestLocation,o=this.matchRoutes(c,{_buildLocation:!0}),d=Yy(o);l.from;const h=l.unsafeRelative==="path"?c.pathname:l.from??d.fullPath,p=this.resolvePathWithBase(h,"."),f=d.search,g={...d.params},b=l.to?this.resolvePathWithBase(p,`${l.to}`):this.resolvePathWithBase(p,"."),x=l.params===!1||l.params===null?{}:(l.params??!0)===!0?g:Object.assign(g,qi(l.params,g)),E=Kl({path:b,params:x,parseCache:this.parsePathnameCache}).interpolatedPath,y=this.matchRoutes(E,void 0,{_buildLocation:!0}).map(M=>this.looseRoutesById[M.routeId]);if(Object.keys(x).length>0)for(const M of y){const U=M.options.params?.stringify??M.options.stringifyParams;U&&Object.assign(x,U(x))}const S=Kl({path:b,params:x,leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let v=f;if(n._includeValidateSearch&&this.options.search?.strict){const M={};y.forEach(U=>{if(U.options.validateSearch)try{Object.assign(M,Qy(U.options.validateSearch,{...M,...v}))}catch{}}),v=M}v=PB({search:v,dest:l,destRoutes:y,_includeValidateSearch:n._includeValidateSearch}),v=zn(f,v);const _=this.options.stringifySearch(v),C=l.hash===!0?c.hash:l.hash?qi(l.hash,c.hash):void 0,N=C?`#${C}`:"";let R=l.state===!0?c.state:l.state?qi(l.state,c.state):{};R=zn(c.state,R);const O=`${S}${_}${N}`,k=new URL(O,this.origin),I=nO(this.rewrite,k);return{publicHref:I.pathname+I.search+I.hash,href:O,url:I.href,pathname:S,search:v,searchStr:_,state:R,hash:C??"",unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{const o=i(l);let d=c?i(c):void 0;if(!d){let h={};const p=this.options.routeMasks?.find(f=>{const g=Xy(o.pathname,{to:f.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return g?(h=g,!0):!1});if(p){const{from:f,...g}=p;c={from:n.from,...g,params:h},d=i(c)}}return d&&(o.maskedLocation=d),o};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const l=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const h=$i(s.state,this.latestLocation.state);return d.forEach(p=>{delete s.state[p]}),h},c=mi(this.latestLocation.href)===mi(s.href),o=this.commitLocationPromise;if(this.commitLocationPromise=Ya(()=>{o?.resolve()}),c&&l())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...p}=s;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:c,href:o,...d}={})=>{if(o){const p=this.history.location.state.__TSR_index,f=vu(o,{__TSR_index:n?p:p+1});d.to=f.pathname,d.search=this.options.parseSearch(f.search),d.hash=f.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c})},this.navigate=({to:n,reloadDocument:i,href:s,...l})=>{if(!i&&s)try{new URL(`${s}`),i=!0}catch{}return i?(s||(s=this.buildLocation({to:n,...l}).url),l.replace?window.location.replace(s):window.location.href=s,Promise.resolve()):this.buildAndCommitLocation({...l,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),s=l=>{try{return encodeURI(decodeURI(l))}catch{return l}};if(ou(s(this.latestLocation.href))!==ou(s(i.href))){let l=i.url;throw this.origin&&l.startsWith(this.origin)&&(l=l.replace(this.origin,"")||"/"),WN({href:l})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(s=>!n.some(l=>l.id===s.id))}))},this.load=async n=>{let i,s,l;for(l=new Promise(c=>{this.startTransition(async()=>{try{this.beforeLoad();const o=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Gi({resolvedLocation:d,location:o})}),this.emit({type:"onBeforeLoad",...Gi({resolvedLocation:d,location:o})}),await Jx({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:o,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let h,p,f;co(()=>{this.__store.setState(g=>{const b=g.matches,x=g.pendingMatches||g.matches;return h=b.filter(E=>!x.some(y=>y.id===E.id)),p=x.filter(E=>!b.some(y=>y.id===E.id)),f=b.filter(E=>x.some(y=>y.id===E.id)),{...g,isLoading:!1,loadedAt:Date.now(),matches:x,pendingMatches:void 0,cachedMatches:[...g.cachedMatches,...h.filter(E=>E.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[p,"onEnter"],[f,"onStay"]].forEach(([g,b])=>{g.forEach(x=>{this.looseRoutesById[x.routeId].options[b]?.(x)})})})}})}catch(o){ar(o)?(i=o,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):lr(o)&&(s=o),this.__store.setState(d=>({...d,statusCode:i?i.status:s?404:d.matches.some(h=>h.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(c=>({...c,statusCode:404}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const l=this.latestLocation,c=this.state.resolvedLocation,o=typeof i.types=="function"?i.types(Gi({resolvedLocation:c,location:l})):i.types;if(o===!1){n();return}s={update:n,types:o}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{const s=this.state.pendingMatches?.some(l=>l.id===n)?"pendingMatches":this.state.matches.some(l=>l.id===n)?"matches":this.state.cachedMatches.some(l=>l.id===n)?"cachedMatches":"";s&&this.__store.setState(l=>({...l,[s]:l[s]?.map(c=>c.id===n?i(c):c)}))},this.getMatch=n=>{const i=s=>s.id===n;return this.state.cachedMatches.find(i)??this.state.pendingMatches?.find(i)??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>n?.filter?.(s)??!0?{...s,invalid:!0,...n?.forcePending||s.status==="error"?{status:"pending",error:void 0}:void 0}:s;return this.__store.setState(s=>({...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:s.pendingMatches?.map(i)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n?.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(l=>!i(l))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const l=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=l};this.clearCache({filter:n})},this.loadRouteChunk=QN,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const l=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(o=>o.id)),c=new Set([...l,...this.state.cachedMatches.map(o=>o.id)]);co(()=>{s.forEach(o=>{c.has(o.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,o]}))})});try{return s=await Jx({router:this,matches:s,location:i,preload:!0,updateMatch:(o,d)=>{l.has(o)?s=s.map(h=>h.id===o?d(h):h):this.updateMatch(o,d)}}),s}catch(o){if(ar(o))return o.options.reloadDocument?void 0:await this.preloadRoute({...o.options,_fromLocation:i});lr(o)||console.error(o);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s);if(i?.pending&&this.state.status!=="pending")return!1;const o=(i?.pending===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=Xy(o.pathname,{...i,to:l.pathname},this.parsePathnameCache);return!d||n.params&&!$i(d,n.params,{partial:!0})?!1:d&&(i?.includeSearch??!0)?$i(o.search,l.search,{partial:!0})?d:!1:d},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??xB,parseSearch:t.parseSearch??EB}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const{foundRoute:i,matchedRoutes:s,routeParams:l}=this.getMatchedRoutes(t.pathname,n?.dest?.to);let c=!1;(i?i.path!=="/"&&l["**"]:mi(t.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):c=!0);const o=(()=>{if(c){if(this.options.notFoundMode!=="root")for(let p=s.length-1;p>=0;p--){const f=s[p];if(f.children)return f.id}return hn}})(),d=[],h=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return s.forEach((p,f)=>{const g=d[f-1],[b,x,E]=(()=>{const z=g?.search??t.search,j=g?._strictSearch??void 0;try{const G=Qy(p.options.validateSearch,{...z})??void 0;return[{...z,...G},{...j,...G},void 0]}catch(G){let K=G;if(G instanceof wu||(K=new wu(G.message,{cause:G})),n?.throwOnError)throw K;return[z,{},K]}})(),y=p.options.loaderDeps?.({search:b})??"",S=y?JSON.stringify(y):"",{interpolatedPath:v,usedParams:_}=Kl({path:p.fullPath,params:l,decodeCharMap:this.pathParamsDecodeCharMap}),C=Kl({path:p.id,params:l,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+S,N=this.getMatch(C),R=this.state.matches.find(z=>z.routeId===p.id),O=N?._strictParams??_;let k;if(!N){const z=p.options.params?.parse??p.options.parseParams;if(z)try{Object.assign(O,z(O))}catch(j){if(k=new MB(j.message,{cause:j}),n?.throwOnError)throw k}}Object.assign(l,O);const I=R?"stay":"enter";let M;if(N)M={...N,cause:I,params:R?zn(R.params,l):l,_strictParams:O,search:zn(R?R.search:N.search,b),_strictSearch:x};else{const z=p.options.loader||p.options.beforeLoad||p.lazyFn||JN(p)?"pending":"success";M={id:C,index:f,routeId:p.id,params:R?zn(R.params,l):l,_strictParams:O,pathname:v,updatedAt:Date.now(),search:R?zn(R.search,b):b,_strictSearch:x,searchError:void 0,status:z,isFetching:!1,error:void 0,paramsError:k,__routeContext:void 0,_nonReactive:{loadPromise:Ya()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:R?zn(R.loaderDeps,y):y,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(M.globalNotFound=o===p.id),M.searchError=E;const U=h(g);M.context={...U,...M.__routeContext,...M.__beforeLoadContext},d.push(M)}),d.forEach((p,f)=>{const g=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const x=d[f-1],E=h(x);if(g.options.context){const y={deps:p.loaderDeps,params:p.params,context:E??{},location:t,navigate:S=>this.navigate({...S,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:d};p.__routeContext=g.options.context(y)??void 0}p.context={...E,...p.__routeContext,...p.__beforeLoadContext}}}),d}}class wu extends Error{}class MB extends Error{}function BB(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Qy(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new wu("Async validation not supported");if(n.issues)throw new wu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function FB({pathname:e,routePathname:t,caseSensitive:n,routesByPath:i,routesById:s,flatRoutes:l,parseCache:c}){let o={};const d=mi(e),h=b=>Xy(d,{to:b.fullPath,caseSensitive:b.options?.caseSensitive??n,fuzzy:!0},c);let p=t!==void 0?i[t]:void 0;if(p)o=h(p);else{let b;for(const x of l){const E=h(x);if(E)if(x.path!=="/"&&E["**"])b||(b={foundRoute:x,routeParams:E});else{p=x,o=E;break}}!p&&b&&(p=b.foundRoute,o=b.routeParams)}let f=p||s[hn];const g=[f];for(;f.parentRoute;)f=f.parentRoute,g.push(f);return g.reverse(),{matchedRoutes:g,routeParams:o,foundRoute:p}}function PB({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((o,d)=>{const h=[];if("search"in d.options)d.options.search?.middlewares&&h.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const p=({search:f,next:g})=>{let b=f;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(b=d.options.preSearchFilters.reduce((E,y)=>y(E),f));const x=g(b);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((E,y)=>y(E),x):x};h.push(p)}if(i&&d.options.validateSearch){const p=({search:f,next:g})=>{const b=g(f);try{return{...b,...Qy(d.options.validateSearch,b)??void 0}}catch{return b}};h.push(p)}return o.concat(h)},[])??[],l=({search:o})=>t.search?t.search===!0?o:qi(t.search,o):{};s.push(l);const c=(o,d)=>{if(o>=s.length)return d;const h=s[o];return h({search:d,next:f=>c(o+1,f)})};return c(0,e)}const UB="Error preloading route! ☝️";class rO{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=hn:this.parentRoute||Mr(!1);let l=s?hn:i?.path;l&&l!=="/"&&(l=Lv(l));const c=i?.id||l;let o=s?hn:Dr([this.parentRoute.id===hn?"":this.parentRoute.id,c]);l===hn&&(l="/"),o!==hn&&(o=Dr(["/",o]));const d=o===hn?"/":Dr([this.parentRoute.fullPath,l]);this._path=l,this._id=o,this._fullPath=d,this._to=d},this.clone=n=>{this._path=n._path,this._id=n._id,this._fullPath=n._fullPath,this._to=n._to,this.options.getParentRoute=n.options.getParentRoute,this.children=n.children},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class jB extends rO{constructor(t){super(t)}}function Dv(e){const t=e.errorComponent??Pu;return T.jsx(zB,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?V.createElement(t,{error:n,reset:i}):e.children})}class zB extends V.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Pu({error:e}){const[t,n]=V.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),t?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?T.jsx("code",{children:e.message}):null})}):null]})}function HB({children:e,fallback:t=null}){return qB()?T.jsx($t.Fragment,{children:e}):T.jsx($t.Fragment,{children:t})}function qB(){return $t.useSyncExternalStore($B,()=>!0,()=>!1)}function $B(){return()=>{}}var Ch={exports:{}},Th={},Ah={exports:{}},Rh={};/**
49
+ `).replace(m2,"")}function $0(r,a){return a=q0(a),q0(r)===a}function rt(r,a,u,m,w,A){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||ua(r,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&ua(r,""+m);break;case"className":Mo(r,"class",m);break;case"tabIndex":Mo(r,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Mo(r,u,m);break;case"style":$_(r,m,A);break;case"data":if(a!=="object"){Mo(r,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){r.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(u);break}m=Fo(""+m),r.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){r.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(u==="formAction"?(a!=="input"&&rt(r,a,"name",w.name,w,null),rt(r,a,"formEncType",w.formEncType,w,null),rt(r,a,"formMethod",w.formMethod,w,null),rt(r,a,"formTarget",w.formTarget,w,null)):(rt(r,a,"encType",w.encType,w,null),rt(r,a,"method",w.method,w,null),rt(r,a,"target",w.target,w,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(u);break}m=Fo(""+m),r.setAttribute(u,m);break;case"onClick":m!=null&&(r.onclick=mr);break;case"onScroll":m!=null&&$e("scroll",r);break;case"onScrollEnd":m!=null&&$e("scrollend",r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(u=m.__html,u!=null){if(w.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"multiple":r.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":r.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){r.removeAttribute("xlink:href");break}u=Fo(""+m),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,""+m):r.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":m===!0?r.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(u,m):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?r.setAttribute(u,m):r.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?r.removeAttribute(u):r.setAttribute(u,m);break;case"popover":$e("beforetoggle",r),$e("toggle",r),Do(r,"popover",m);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Do(r,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=qL.get(u)||u,Do(r,u,m))}}function Jd(r,a,u,m,w,A){switch(u){case"style":$_(r,m,A);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(u=m.__html,u!=null){if(w.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"children":typeof m=="string"?ua(r,m):(typeof m=="number"||typeof m=="bigint")&&ua(r,""+m);break;case"onScroll":m!=null&&$e("scroll",r);break;case"onScrollEnd":m!=null&&$e("scrollend",r);break;case"onClick":m!=null&&(r.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!M_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(w=u.endsWith("Capture"),a=u.slice(2,w?u.length-7:void 0),A=r[rn]||null,A=A!=null?A[u]:null,typeof A=="function"&&r.removeEventListener(a,A,w),typeof m=="function")){typeof A!="function"&&A!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,m,w);break e}u in r?r[u]=m:m===!0?r.setAttribute(u,""):Do(r,u,m)}}}function qt(r,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",r),$e("load",r);var m=!1,w=!1,A;for(A in u)if(u.hasOwnProperty(A)){var D=u[A];if(D!=null)switch(A){case"src":m=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(r,a,A,D,u,null)}}w&&rt(r,a,"srcSet",u.srcSet,u,null),m&&rt(r,a,"src",u.src,u,null);return;case"input":$e("invalid",r);var q=A=D=w=null,Y=null,re=null;for(m in u)if(u.hasOwnProperty(m)){var de=u[m];if(de!=null)switch(m){case"name":w=de;break;case"type":D=de;break;case"checked":Y=de;break;case"defaultChecked":re=de;break;case"value":A=de;break;case"defaultValue":q=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,a));break;default:rt(r,a,m,de,u,null)}}j_(r,A,q,Y,re,D,w,!1);return;case"select":$e("invalid",r),m=D=A=null;for(w in u)if(u.hasOwnProperty(w)&&(q=u[w],q!=null))switch(w){case"value":A=q;break;case"defaultValue":D=q;break;case"multiple":m=q;default:rt(r,a,w,q,u,null)}a=A,u=D,r.multiple=!!m,a!=null?la(r,!!m,a,!1):u!=null&&la(r,!!m,u,!0);return;case"textarea":$e("invalid",r),A=w=m=null;for(D in u)if(u.hasOwnProperty(D)&&(q=u[D],q!=null))switch(D){case"value":m=q;break;case"defaultValue":w=q;break;case"children":A=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(91));break;default:rt(r,a,D,q,u,null)}H_(r,m,w,A);return;case"option":for(Y in u)if(u.hasOwnProperty(Y)&&(m=u[Y],m!=null))switch(Y){case"selected":r.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:rt(r,a,Y,m,u,null)}return;case"dialog":$e("beforetoggle",r),$e("toggle",r),$e("cancel",r),$e("close",r);break;case"iframe":case"object":$e("load",r);break;case"video":case"audio":for(m=0;m<qs.length;m++)$e(qs[m],r);break;case"image":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"embed":case"source":case"link":$e("error",r),$e("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in u)if(u.hasOwnProperty(re)&&(m=u[re],m!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(r,a,re,m,u,null)}return;default:if(fc(a)){for(de in u)u.hasOwnProperty(de)&&(m=u[de],m!==void 0&&Jd(r,a,de,m,u,void 0));return}}for(q in u)u.hasOwnProperty(q)&&(m=u[q],m!=null&&rt(r,a,q,m,u,null))}function g2(r,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,A=null,D=null,q=null,Y=null,re=null,de=null;for(oe in u){var pe=u[oe];if(u.hasOwnProperty(oe)&&pe!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":Y=pe;default:m.hasOwnProperty(oe)||rt(r,a,oe,null,m,pe)}}for(var ae in m){var oe=m[ae];if(pe=u[ae],m.hasOwnProperty(ae)&&(oe!=null||pe!=null))switch(ae){case"type":A=oe;break;case"name":w=oe;break;case"checked":re=oe;break;case"defaultChecked":de=oe;break;case"value":D=oe;break;case"defaultValue":q=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:oe!==pe&&rt(r,a,ae,oe,m,pe)}}dc(r,D,q,Y,re,de,A,w);return;case"select":oe=D=q=ae=null;for(A in u)if(Y=u[A],u.hasOwnProperty(A)&&Y!=null)switch(A){case"value":break;case"multiple":oe=Y;default:m.hasOwnProperty(A)||rt(r,a,A,null,m,Y)}for(w in m)if(A=m[w],Y=u[w],m.hasOwnProperty(w)&&(A!=null||Y!=null))switch(w){case"value":ae=A;break;case"defaultValue":q=A;break;case"multiple":D=A;default:A!==Y&&rt(r,a,w,A,m,Y)}a=q,u=D,m=oe,ae!=null?la(r,!!u,ae,!1):!!m!=!!u&&(a!=null?la(r,!!u,a,!0):la(r,!!u,u?[]:"",!1));return;case"textarea":oe=ae=null;for(q in u)if(w=u[q],u.hasOwnProperty(q)&&w!=null&&!m.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:rt(r,a,q,null,m,w)}for(D in m)if(w=m[D],A=u[D],m.hasOwnProperty(D)&&(w!=null||A!=null))switch(D){case"value":ae=w;break;case"defaultValue":oe=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:w!==A&&rt(r,a,D,w,m,A)}z_(r,ae,oe);return;case"option":for(var _e in u)if(ae=u[_e],u.hasOwnProperty(_e)&&ae!=null&&!m.hasOwnProperty(_e))switch(_e){case"selected":r.selected=!1;break;default:rt(r,a,_e,null,m,ae)}for(Y in m)if(ae=m[Y],oe=u[Y],m.hasOwnProperty(Y)&&ae!==oe&&(ae!=null||oe!=null))switch(Y){case"selected":r.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:rt(r,a,Y,ae,m,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Re in u)ae=u[Re],u.hasOwnProperty(Re)&&ae!=null&&!m.hasOwnProperty(Re)&&rt(r,a,Re,null,m,ae);for(re in m)if(ae=m[re],oe=u[re],m.hasOwnProperty(re)&&ae!==oe&&(ae!=null||oe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:rt(r,a,re,ae,m,oe)}return;default:if(fc(a)){for(var it in u)ae=u[it],u.hasOwnProperty(it)&&ae!==void 0&&!m.hasOwnProperty(it)&&Jd(r,a,it,void 0,m,ae);for(de in m)ae=m[de],oe=u[de],!m.hasOwnProperty(de)||ae===oe||ae===void 0&&oe===void 0||Jd(r,a,de,ae,m,oe);return}}for(var te in u)ae=u[te],u.hasOwnProperty(te)&&ae!=null&&!m.hasOwnProperty(te)&&rt(r,a,te,null,m,ae);for(pe in m)ae=m[pe],oe=u[pe],!m.hasOwnProperty(pe)||ae===oe||ae==null&&oe==null||rt(r,a,pe,ae,m,oe)}function G0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b2(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var w=u[m],A=w.transferSize,D=w.initiatorType,q=w.duration;if(A&&q&&G0(D)){for(D=0,q=w.responseEnd,m+=1;m<u.length;m++){var Y=u[m],re=Y.startTime;if(re>q)break;var de=Y.transferSize,pe=Y.initiatorType;de&&G0(pe)&&(Y=Y.responseEnd,D+=de*(Y<q?1:(q-re)/(Y-re)))}if(--m,a+=8*(A+D)/(w.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var eh=null,th=null;function Il(r){return r.nodeType===9?r:r.ownerDocument}function V0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function W0(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function nh(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var rh=null;function y2(){var r=window.event;return r&&r.type==="popstate"?r===rh?!1:(rh=r,!0):(rh=null,!1)}var K0=typeof setTimeout=="function"?setTimeout:void 0,v2=typeof clearTimeout=="function"?clearTimeout:void 0,Y0=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof Y0<"u"?function(r){return Y0.resolve(null).then(r).catch(S2)}:K0;function S2(r){setTimeout(function(){throw r})}function ri(r){return r==="head"}function X0(r,a){var u=a,m=0;do{var w=u.nextSibling;if(r.removeChild(u),w&&w.nodeType===8)if(u=w.data,u==="/$"||u==="/&"){if(m===0){r.removeChild(w),ja(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Gs(r.ownerDocument.documentElement);else if(u==="head"){u=r.ownerDocument.head,Gs(u);for(var A=u.firstChild;A;){var D=A.nextSibling,q=A.nodeName;A[us]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&A.rel.toLowerCase()==="stylesheet"||u.removeChild(A),A=D}}else u==="body"&&Gs(r.ownerDocument.body);u=w}while(u);ja(a)}function Z0(r,a){var u=r;r=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(r===0)break;r--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||r++;u=m}while(u)}function ih(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":ih(u),uc(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function E2(r,a,u,m){for(;r.nodeType===1;){var w=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(m){if(!r[us])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(A=r.getAttribute("rel"),A==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(A!==w.rel||r.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||r.getAttribute("title")!==(w.title==null?null:w.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(A=r.getAttribute("src"),(A!==(w.src==null?null:w.src)||r.getAttribute("type")!==(w.type==null?null:w.type)||r.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&A&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var A=w.name==null?null:""+w.name;if(w.type==="hidden"&&r.getAttribute("name")===A)return r}else return r;if(r=Un(r.nextSibling),r===null)break}return null}function x2(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=Un(r.nextSibling),r===null))return null;return r}function Q0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Un(r.nextSibling),r===null))return null;return r}function ah(r){return r.data==="$?"||r.data==="$~"}function sh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function w2(r,a){var u=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),r._reactRetry=m}}function Un(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var oh=null;function J0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"||u==="/&"){if(a===0)return Un(r.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}r=r.nextSibling}return null}function ex(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return r;a--}else u!=="/$"&&u!=="/&"||a++}r=r.previousSibling}return null}function tx(r,a,u){switch(a=Il(u),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Gs(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);uc(r)}var jn=new Map,nx=new Set;function Ll(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Or=J.d;J.d={f:C2,r:T2,D:A2,C:R2,L:k2,m:N2,X:I2,S:O2,M:L2};function C2(){var r=Or.f(),a=wl();return r||a}function T2(r){var a=aa(r);a!==null&&a.tag===5&&a.type==="form"?vE(a):Or.r(r)}var Fa=typeof document>"u"?null:document;function rx(r,a,u){var m=Fa;if(m&&typeof a=="string"&&a){var w=In(a);w='link[rel="'+r+'"][href="'+w+'"]',typeof u=="string"&&(w+='[crossorigin="'+u+'"]'),nx.has(w)||(nx.add(w),r={rel:r,crossOrigin:u,href:a},m.querySelector(w)===null&&(a=m.createElement("link"),qt(a,"link",r),Ft(a),m.head.appendChild(a)))}}function A2(r){Or.D(r),rx("dns-prefetch",r,null)}function R2(r,a){Or.C(r,a),rx("preconnect",r,a)}function k2(r,a,u){Or.L(r,a,u);var m=Fa;if(m&&r&&a){var w='link[rel="preload"][as="'+In(a)+'"]';a==="image"&&u&&u.imageSrcSet?(w+='[imagesrcset="'+In(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(w+='[imagesizes="'+In(u.imageSizes)+'"]')):w+='[href="'+In(r)+'"]';var A=w;switch(a){case"style":A=Pa(r);break;case"script":A=Ua(r)}jn.has(A)||(r=f({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),jn.set(A,r),m.querySelector(w)!==null||a==="style"&&m.querySelector(Vs(A))||a==="script"&&m.querySelector(Ws(A))||(a=m.createElement("link"),qt(a,"link",r),Ft(a),m.head.appendChild(a)))}}function N2(r,a){Or.m(r,a);var u=Fa;if(u&&r){var m=a&&typeof a.as=="string"?a.as:"script",w='link[rel="modulepreload"][as="'+In(m)+'"][href="'+In(r)+'"]',A=w;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Ua(r)}if(!jn.has(A)&&(r=f({rel:"modulepreload",href:r},a),jn.set(A,r),u.querySelector(w)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ws(A)))return}m=u.createElement("link"),qt(m,"link",r),Ft(m),u.head.appendChild(m)}}}function O2(r,a,u){Or.S(r,a,u);var m=Fa;if(m&&r){var w=sa(m).hoistableStyles,A=Pa(r);a=a||"default";var D=w.get(A);if(!D){var q={loading:0,preload:null};if(D=m.querySelector(Vs(A)))q.loading=5;else{r=f({rel:"stylesheet",href:r,"data-precedence":a},u),(u=jn.get(A))&&lh(r,u);var Y=D=m.createElement("link");Ft(Y),qt(Y,"link",r),Y._p=new Promise(function(re,de){Y.onload=re,Y.onerror=de}),Y.addEventListener("load",function(){q.loading|=1}),Y.addEventListener("error",function(){q.loading|=2}),q.loading|=4,Dl(D,a,m)}D={type:"stylesheet",instance:D,count:1,state:q},w.set(A,D)}}}function I2(r,a){Or.X(r,a);var u=Fa;if(u&&r){var m=sa(u).hoistableScripts,w=Ua(r),A=m.get(w);A||(A=u.querySelector(Ws(w)),A||(r=f({src:r,async:!0},a),(a=jn.get(w))&&uh(r,a),A=u.createElement("script"),Ft(A),qt(A,"link",r),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(w,A))}}function L2(r,a){Or.M(r,a);var u=Fa;if(u&&r){var m=sa(u).hoistableScripts,w=Ua(r),A=m.get(w);A||(A=u.querySelector(Ws(w)),A||(r=f({src:r,async:!0,type:"module"},a),(a=jn.get(w))&&uh(r,a),A=u.createElement("script"),Ft(A),qt(A,"link",r),u.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(w,A))}}function ix(r,a,u,m){var w=(w=ce.current)?Ll(w):null;if(!w)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Pa(u.href),u=sa(w).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=Pa(u.href);var A=sa(w).hoistableStyles,D=A.get(r);if(D||(w=w.ownerDocument||w,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(r,D),(A=w.querySelector(Vs(r)))&&!A._p&&(D.instance=A,D.state.loading=5),jn.has(r)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},jn.set(r,u),A||D2(w,r,u,D.state))),a&&m===null)throw Error(i(528,""));return D}if(a&&m!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ua(u),u=sa(w).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Pa(r){return'href="'+In(r)+'"'}function Vs(r){return'link[rel="stylesheet"]['+r+"]"}function ax(r){return f({},r,{"data-precedence":r.precedence,precedence:null})}function D2(r,a,u,m){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=r.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),qt(a,"link",u),Ft(a),r.head.appendChild(a))}function Ua(r){return'[src="'+In(r)+'"]'}function Ws(r){return"script[async]"+r}function sx(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=r.querySelector('style[data-href~="'+In(u.href)+'"]');if(m)return a.instance=m,Ft(m),m;var w=f({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(r.ownerDocument||r).createElement("style"),Ft(m),qt(m,"style",w),Dl(m,u.precedence,r),a.instance=m;case"stylesheet":w=Pa(u.href);var A=r.querySelector(Vs(w));if(A)return a.state.loading|=4,a.instance=A,Ft(A),A;m=ax(u),(w=jn.get(w))&&lh(m,w),A=(r.ownerDocument||r).createElement("link"),Ft(A);var D=A;return D._p=new Promise(function(q,Y){D.onload=q,D.onerror=Y}),qt(A,"link",m),a.state.loading|=4,Dl(A,u.precedence,r),a.instance=A;case"script":return A=Ua(u.src),(w=r.querySelector(Ws(A)))?(a.instance=w,Ft(w),w):(m=u,(w=jn.get(A))&&(m=f({},u),uh(m,w)),r=r.ownerDocument||r,w=r.createElement("script"),Ft(w),qt(w,"link",m),r.head.appendChild(w),a.instance=w);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Dl(m,u.precedence,r));return a.instance}function Dl(r,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=m.length?m[m.length-1]:null,A=w,D=0;D<m.length;D++){var q=m[D];if(q.dataset.precedence===a)A=q;else if(A!==w)break}A?A.parentNode.insertBefore(r,A.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function lh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function uh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Ml=null;function ox(r,a,u){if(Ml===null){var m=new Map,w=Ml=new Map;w.set(u,m)}else w=Ml,m=w.get(u),m||(m=new Map,w.set(u,m));if(m.has(r))return m;for(m.set(r,null),u=u.getElementsByTagName(r),w=0;w<u.length;w++){var A=u[w];if(!(A[us]||A[Ut]||r==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var D=A.getAttribute(a)||"";D=r+D;var q=m.get(D);q?q.push(A):m.set(D,[A])}}return m}function lx(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function M2(r,a,u){if(u===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function ux(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function B2(r,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var w=Pa(m.href),A=a.querySelector(Vs(w));if(A){a=A._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Bl.bind(r),a.then(r,r)),u.state.loading|=4,u.instance=A,Ft(A);return}A=a.ownerDocument||a,m=ax(m),(w=jn.get(w))&&lh(m,w),A=A.createElement("link"),Ft(A);var D=A;D._p=new Promise(function(q,Y){D.onload=q,D.onerror=Y}),qt(A,"link",m),u.instance=A}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(r.count++,u=Bl.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}var ch=0;function F2(r,a){return r.stylesheets&&r.count===0&&Pl(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var m=setTimeout(function(){if(r.stylesheets&&Pl(r,r.stylesheets),r.unsuspend){var A=r.unsuspend;r.unsuspend=null,A()}},6e4+a);0<r.imgBytes&&ch===0&&(ch=62500*b2());var w=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Pl(r,r.stylesheets),r.unsuspend)){var A=r.unsuspend;r.unsuspend=null,A()}},(r.imgBytes>ch?50:800)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(m),clearTimeout(w)}}:null}function Bl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pl(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Fl=null;function Pl(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Fl=new Map,a.forEach(P2,r),Fl=null,Bl.call(r))}function P2(r,a){if(!(a.state.loading&4)){var u=Fl.get(r);if(u)var m=u.get(null);else{u=new Map,Fl.set(r,u);for(var w=r.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<w.length;A++){var D=w[A];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(u.set(D.dataset.precedence,D),m=D)}m&&u.set(null,m)}w=a.instance,D=w.getAttribute("data-precedence"),A=u.get(D)||m,A===m&&u.set(null,w),u.set(D,w),this.count++,m=Bl.bind(this),w.addEventListener("load",m),w.addEventListener("error",m),A?A.parentNode.insertBefore(w,A.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(w,r.firstChild)),a.state.loading|=4}}var Ks={$$typeof:_,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function U2(r,a,u,m,w,A,D,q,Y){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=m,this.onUncaughtError=w,this.onCaughtError=A,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function cx(r,a,u,m,w,A,D,q,Y,re,de,pe){return r=new U2(r,a,u,D,Y,re,de,pe,q),a=1,A===!0&&(a|=24),A=_n(3,null,null,a),r.current=A,A.stateNode=r,a=qc(),a.refCount++,r.pooledCache=a,a.refCount++,A.memoizedState={element:m,isDehydrated:u,cache:a},Wc(A),r}function dx(r){return r?(r=ga,r):ga}function hx(r,a,u,m,w,A){w=dx(w),m.context===null?m.context=w:m.pendingContext=w,m=Vr(a),m.payload={element:u},A=A===void 0?null:A,A!==null&&(m.callback=A),u=Wr(r,m,a),u!==null&&(cn(u,r,a),Ts(u,r,a))}function fx(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function dh(r,a){fx(r,a),(r=r.alternate)&&fx(r,a)}function px(r){if(r.tag===13||r.tag===31){var a=Ti(r,67108864);a!==null&&cn(a,r,67108864),dh(r,67108864)}}function mx(r){if(r.tag===13||r.tag===31){var a=Cn();a=sc(a);var u=Ti(r,a);u!==null&&cn(u,r,a),dh(r,a)}}var Ul=!0;function j2(r,a,u,m){var w=W.T;W.T=null;var A=J.p;try{J.p=2,hh(r,a,u,m)}finally{J.p=A,W.T=w}}function z2(r,a,u,m){var w=W.T;W.T=null;var A=J.p;try{J.p=8,hh(r,a,u,m)}finally{J.p=A,W.T=w}}function hh(r,a,u,m){if(Ul){var w=fh(m);if(w===null)Qd(r,a,m,jl,u),bx(r,m);else if(q2(w,r,a,u,m))m.stopPropagation();else if(bx(r,m),a&4&&-1<H2.indexOf(r)){for(;w!==null;){var A=aa(w);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var D=Zn(A.pendingLanes);if(D!==0){var q=A;for(q.pendingLanes|=2,q.entangledLanes|=2;D;){var Y=1<<31-Je(D);q.entanglements[1]|=Y,D&=~Y}tr(A),(Qe&6)===0&&(El=Oe()+500,Hs(0))}}break;case 31:case 13:q=Ti(A,2),q!==null&&cn(q,A,2),wl(),dh(A,2)}if(A=fh(m),A===null&&Qd(r,a,m,jl,u),A===w)break;w=A}w!==null&&m.stopPropagation()}else Qd(r,a,m,null,u)}}function fh(r){return r=mc(r),ph(r)}var jl=null;function ph(r){if(jl=null,r=ia(r),r!==null){var a=l(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=c(a),r!==null)return r;r=null}else if(u===31){if(r=o(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return jl=r,null}function gx(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case ue:return 2;case me:return 8;case ve:case Ce:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var mh=!1,ii=null,ai=null,si=null,Ys=new Map,Xs=new Map,oi=[],H2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bx(r,a){switch(r){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":Ys.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(a.pointerId)}}function Zs(r,a,u,m,w,A){return r===null||r.nativeEvent!==A?(r={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:A,targetContainers:[w]},a!==null&&(a=aa(a),a!==null&&px(a)),r):(r.eventSystemFlags|=m,a=r.targetContainers,w!==null&&a.indexOf(w)===-1&&a.push(w),r)}function q2(r,a,u,m,w){switch(a){case"focusin":return ii=Zs(ii,r,a,u,m,w),!0;case"dragenter":return ai=Zs(ai,r,a,u,m,w),!0;case"mouseover":return si=Zs(si,r,a,u,m,w),!0;case"pointerover":var A=w.pointerId;return Ys.set(A,Zs(Ys.get(A)||null,r,a,u,m,w)),!0;case"gotpointercapture":return A=w.pointerId,Xs.set(A,Zs(Xs.get(A)||null,r,a,u,m,w)),!0}return!1}function yx(r){var a=ia(r.target);if(a!==null){var u=l(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){r.blockedOn=a,I_(r.priority,function(){mx(u)});return}}else if(a===31){if(a=o(u),a!==null){r.blockedOn=a,I_(r.priority,function(){mx(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function zl(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=fh(r.nativeEvent);if(u===null){u=r.nativeEvent;var m=new u.constructor(u.type,u);pc=m,u.target.dispatchEvent(m),pc=null}else return a=aa(u),a!==null&&px(a),r.blockedOn=u,!1;a.shift()}return!0}function vx(r,a,u){zl(r)&&u.delete(a)}function $2(){mh=!1,ii!==null&&zl(ii)&&(ii=null),ai!==null&&zl(ai)&&(ai=null),si!==null&&zl(si)&&(si=null),Ys.forEach(vx),Xs.forEach(vx)}function Hl(r,a){r.blockedOn===a&&(r.blockedOn=null,mh||(mh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$2)))}var ql=null;function _x(r){ql!==r&&(ql=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ql===r&&(ql=null);for(var a=0;a<r.length;a+=3){var u=r[a],m=r[a+1],w=r[a+2];if(typeof m!="function"){if(ph(m||u)===null)continue;break}var A=aa(u);A!==null&&(r.splice(a,3),a-=3,fd(A,{pending:!0,data:w,method:u.method,action:m},m,w))}}))}function ja(r){function a(Y){return Hl(Y,r)}ii!==null&&Hl(ii,r),ai!==null&&Hl(ai,r),si!==null&&Hl(si,r),Ys.forEach(a),Xs.forEach(a);for(var u=0;u<oi.length;u++){var m=oi[u];m.blockedOn===r&&(m.blockedOn=null)}for(;0<oi.length&&(u=oi[0],u.blockedOn===null);)yx(u),u.blockedOn===null&&oi.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var w=u[m],A=u[m+1],D=w[rn]||null;if(typeof A=="function")D||_x(u);else if(D){var q=null;if(A&&A.hasAttribute("formAction")){if(w=A,D=A[rn]||null)q=D.formAction;else if(ph(w)!==null)continue}else q=D.action;typeof q=="function"?u[m+1]=q:(u.splice(m,3),m-=3),_x(u)}}}function Sx(){function r(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(D){return w=D})},focusReset:"manual",scroll:"manual"})}function a(){w!==null&&(w(),w=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,w=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),w!==null&&(w(),w=null)}}}function gh(r){this._internalRoot=r}$l.prototype.render=gh.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,m=Cn();hx(u,m,r,a,null,null)},$l.prototype.unmount=gh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;hx(r.current,2,null,r,null,null),wl(),a[ra]=null}};function $l(r){this._internalRoot=r}$l.prototype.unstable_scheduleHydration=function(r){if(r){var a=O_();r={blockedOn:null,target:r,priority:a};for(var u=0;u<oi.length&&a!==0&&a<oi[u].priority;u++);oi.splice(u,0,r),u===0&&yx(r)}};var Ex=t.version;if(Ex!=="19.2.0")throw Error(i(527,Ex,"19.2.0"));J.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var G2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gl.isDisabled&&Gl.supportsFiber)try{mt=Gl.inject(G2),at=Gl}catch{}}return Js.createRoot=function(r,a){if(!s(r))throw Error(i(299));var u=!1,m="",w=kE,A=NE,D=OE;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(w=a.onUncaughtError),a.onCaughtError!==void 0&&(A=a.onCaughtError),a.onRecoverableError!==void 0&&(D=a.onRecoverableError)),a=cx(r,1,!1,null,null,u,m,null,w,A,D,Sx),r[ra]=a.current,Zd(r),new gh(a)},Js.hydrateRoot=function(r,a,u){if(!s(r))throw Error(i(299));var m=!1,w="",A=kE,D=NE,q=OE,Y=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(w=u.identifierPrefix),u.onUncaughtError!==void 0&&(A=u.onUncaughtError),u.onCaughtError!==void 0&&(D=u.onCaughtError),u.onRecoverableError!==void 0&&(q=u.onRecoverableError),u.formState!==void 0&&(Y=u.formState)),a=cx(r,1,!0,a,u??null,m,w,Y,A,D,q,Sx),a.context=dx(null),u=a.current,m=Cn(),m=sc(m),w=Vr(m),w.callback=null,Wr(u,w,m),u=m,a.current.lanes=u,ls(a,u),tr(a),r[ra]=a.current,Zd(r),new $l(a)},Js.version="19.2.0",Js}var Ix;function eM(){if(Ix)return vh.exports;Ix=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vh.exports=J2(),vh.exports}var tM=eM(),ts=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rM=class{#e=nM;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},zi=new rM;function iM(e){setTimeout(e,0)}var Wi=typeof window>"u"||"Deno"in globalThis;function Jt(){}function aM(e,t){return typeof e=="function"?e(t):e}function Hy(e){return typeof e=="number"&&e>=0&&e!==1/0}function ON(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hi(e,t){return typeof e=="function"?e(t):e}function Hn(e,t){return typeof e=="function"?e(t):e}function Lx(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:l,queryKey:c,stale:o}=e;if(c){if(i){if(t.queryHash!==Av(c,t.options))return!1}else if(!bo(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||l&&!l(t))}function Dx(e,t){const{exact:n,status:i,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ki(t.options.mutationKey)!==Ki(l))return!1}else if(!bo(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function Av(e,t){return(t?.queryKeyHashFn||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,n)=>qy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function bo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bo(e[n],t[n])):!1}var sM=Object.prototype.hasOwnProperty;function IN(e,t){if(e===t)return e;const n=Mx(e)&&Mx(t);if(!n&&!(qy(e)&&qy(t)))return t;const s=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,o=n?new Array(c):{};let d=0;for(let h=0;h<c;h++){const p=n?h:l[h],f=e[p],g=t[p];if(f===g){o[p]=f,(n?h<s:sM.call(e,p))&&d++;continue}if(f===null||g===null||typeof f!="object"||typeof g!="object"){o[p]=g;continue}const b=IN(f,g);o[p]=b,b===f&&d++}return s===c&&d===s?e:o}function gu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qy(e){if(!Bx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Bx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bx(e){return Object.prototype.toString.call(e)==="[object Object]"}function oM(e){return new Promise(t=>{zi.setTimeout(t,e)})}function $y(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?IN(e,t):t}function lM(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function uM(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Rv=Symbol();function LN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Rv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function DN(e,t){return typeof e=="function"?e(...t):!!e}var cM=class extends ts{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},kv=new cM;function Gy(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var dM=iM;function hM(){let e=[],t=0,n=o=>{o()},i=o=>{o()},s=dM;const l=o=>{t?e.push(o):s(()=>{n(o)})},c=()=>{const o=e;e=[],o.length&&s(()=>{i(()=>{o.forEach(d=>{n(d)})})})};return{batch:o=>{let d;t++;try{d=o()}finally{t--,t||c()}return d},batchCalls:o=>(...d)=>{l(()=>{o(...d)})},schedule:l,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{s=o}}}var Lt=hM(),fM=class extends ts{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},bu=new fM;function pM(e){return Math.min(1e3*2**e,3e4)}function MN(e){return(e??"online")==="online"?bu.isOnline():!0}var Vy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function BN(e){let t=!1,n=0,i;const s=Gy(),l=()=>s.status!=="pending",c=E=>{if(!l()){const y=new Vy(E);g(y),e.onCancel?.(y)}},o=()=>{t=!0},d=()=>{t=!1},h=()=>kv.isFocused()&&(e.networkMode==="always"||bu.isOnline())&&e.canRun(),p=()=>MN(e.networkMode)&&e.canRun(),f=E=>{l()||(i?.(),s.resolve(E))},g=E=>{l()||(i?.(),s.reject(E))},b=()=>new Promise(E=>{i=y=>{(l()||h())&&E(y)},e.onPause?.()}).then(()=>{i=void 0,l()||e.onContinue?.()}),x=()=>{if(l())return;let E;const y=n===0?e.initialPromise:void 0;try{E=y??e.fn()}catch(S){E=Promise.reject(S)}Promise.resolve(E).then(f).catch(S=>{if(l())return;const v=e.retry??(Wi?0:3),_=e.retryDelay??pM,C=typeof _=="function"?_(n,S):_,N=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,S);if(t||!N){g(S);return}n++,e.onFail?.(n,S),oM(C).then(()=>h()?void 0:b()).then(()=>{t?g(S):x()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(i?.(),s),cancelRetry:o,continueRetry:d,canStart:p,start:()=>(p()?x():b().then(x),s)}}var FN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hy(this.gcTime)&&(this.#e=zi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wi?1/0:300*1e3))}clearGcTimeout(){this.#e&&(zi.clearTimeout(this.#e),this.#e=void 0)}},mM=class extends FN{#e;#t;#n;#i;#r;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Fx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Fx(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=$y(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Hn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ON(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(d=>d.options.queryFn);o&&this.setOptions(o.options)}const n=new AbortController,i=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const o=LN(this.options,t),h=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#o=!1,this.options.persister?this.options.persister(o,h,this):o(h)},c=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return i(o),o})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=BN({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:o=>{o instanceof Vy&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,d)=>{this.#a({type:"failed",failureCount:o,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#n.config.onSuccess?.(o,this),this.#n.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof Vy){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#a({type:"error",error:o}),this.#n.config.onError?.(o,this),this.#n.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...PN(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Lt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function PN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var gM=class extends ts{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=Gy(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#s;#o;#a;#m;#h;#f;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Px(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wy(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wy(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),t._defaulted&&!gu(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&Ux(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||Hn(this.options.enabled,this.#t)!==Hn(t.enabled,this.#t)||hi(this.options.staleTime,this.#t)!==hi(t.staleTime,this.#t))&&this.#g();const s=this.#b();i&&(this.#t!==n||Hn(this.options.enabled,this.#t)!==Hn(t.enabled,this.#t)||s!==this.#l)&&this.#y(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return yM(this,n)&&(this.#i=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#E();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Jt)),t}#g(){this.#_();const e=hi(this.options.staleTime,this.#t);if(Wi||this.#i.isStale||!Hy(e))return;const n=ON(this.#i.dataUpdatedAt,e)+1;this.#u=zi.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#S(),this.#l=e,!(Wi||Hn(this.options.enabled,this.#t)===!1||!Hy(this.#l)||this.#l===0)&&(this.#c=zi.setInterval(()=>{(this.options.refetchIntervalInBackground||kv.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#y(this.#b())}#_(){this.#u&&(zi.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(zi.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,i=this.options,s=this.#i,l=this.#r,c=this.#s,d=e!==n?e.state:this.#n,{state:h}=e;let p={...h},f=!1,g;if(t._optimisticResults){const k=this.hasListeners(),I=!k&&Px(e,t),M=k&&Ux(e,n,t,i);(I||M)&&(p={...p,...PN(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:E}=p;g=p.data;let y=!1;if(t.placeholderData!==void 0&&g===void 0&&E==="pending"){let k;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(k=s.data,y=!0):k=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,k!==void 0&&(E="success",g=$y(s?.data,k,t),f=!0)}if(t.select&&g!==void 0&&!y)if(s&&g===l?.data&&t.select===this.#m)g=this.#h;else try{this.#m=t.select,g=t.select(g),g=$y(s?.data,g,t),this.#h=g,this.#a=null}catch(k){this.#a=k}this.#a&&(b=this.#a,g=this.#h,x=Date.now(),E="error");const S=p.fetchStatus==="fetching",v=E==="pending",_=E==="error",C=v&&S,N=g!==void 0,O={status:E,fetchStatus:p.fetchStatus,isPending:v,isSuccess:E==="success",isError:_,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!v,isLoadingError:_&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:_&&N,isStale:Nv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Hn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=U=>{O.status==="error"?U.reject(O.error):O.data!==void 0&&U.resolve(O.data)},I=()=>{const U=this.#o=O.promise=Gy();k(U)},M=this.#o;switch(M.status){case"pending":e.queryHash===n.queryHash&&k(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&I();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&I();break}}return O}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#f=this.#t),gu(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.#p.size)return!0;const l=new Set(s??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#i).some(c=>{const o=c;return this.#i[o]!==e[o]&&l.has(o)})};this.#x({listeners:n()})}#E(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#x(e){Lt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function bM(e,t){return Hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Px(e,t){return bM(e,t)||e.state.data!==void 0&&Wy(e,t,t.refetchOnMount)}function Wy(e,t,n){if(Hn(t.enabled,e)!==!1&&hi(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Nv(e,t)}return!1}function Ux(e,t,n,i){return(e!==t||Hn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Nv(e,n)}function Nv(e,t){return Hn(t.enabled,e)!==!1&&e.isStaleByTime(hi(t.staleTime,e))}function yM(e,t){return!gu(e.getCurrentResult(),t)}function jx(e){return{onFetch:(t,n)=>{const i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},d=0;const h=async()=>{let p=!1;const f=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=LN(t.options,t.fetchOptions),b=async(x,E,y)=>{if(p)return Promise.reject();if(E==null&&x.pages.length)return Promise.resolve(x);const v=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:E,direction:y?"backward":"forward",meta:t.options.meta};return f(R),R})(),_=await g(v),{maxPages:C}=t.options,N=y?uM:lM;return{pages:N(x.pages,_,C),pageParams:N(x.pageParams,E,C)}};if(s&&l.length){const x=s==="backward",E=x?vM:zx,y={pages:l,pageParams:c},S=E(i,y);o=await b(y,S,x)}else{const x=e??l.length;do{const E=d===0?c[0]??i.initialPageParam:zx(i,o);if(d>0&&E==null)break;o=await b(o,E),d++}while(d<x)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function zx(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function vM(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var _M=class extends FN{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||UN(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=BN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",s=!this.#i.canStart();try{if(i)t();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:s})}const l=await this.#i.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,n),await this.options.onSuccess?.(l,e,this.state.context,n),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(l,null,e,this.state.context,n),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#n.config.onError?.(l,e,this.state.context,this,n),await this.options.onError?.(l,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,l,e,this.state.context,n),l}finally{this.#r({type:"error",error:l})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Lt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function UN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var SM=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const i=new _M({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=Vl(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Vl(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Vl(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=Vl(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Dx(t,n))}findAll(e={}){return this.getAll().filter(t=>Dx(e,t))}notify(e){Lt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Lt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Jt))))}};function Vl(e){return e.options.scope?.id}var EM=class extends ts{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),gu(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ki(n.mutationKey)!==Ki(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??UN();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,i,s),this.#i.onSettled?.(t.data,null,n,i,s)):t?.type==="error"&&(this.#i.onError?.(t.error,n,i,s),this.#i.onSettled?.(void 0,t.error,n,i,s))}this.listeners.forEach(n=>{n(this.#t)})})}},xM=class extends ts{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??Av(i,t);let l=this.get(s);return l||(l=new mM({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Lt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Lx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Lx(e,n)):t}notify(e){Lt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wM=class{#e;#t;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new xM,this.#t=e.mutationCache||new SM,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=kv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=bu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(i.queryHash)?.state.data,c=aM(t,l);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Lt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Lt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Lt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Lt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Jt).catch(Jt)}invalidateQueries(e,t={}){return Lt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=Lt.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Jt)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(hi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=jx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=jx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{bo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{bo(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Av(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Rv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},jN=V.createContext(void 0),gn=e=>{const t=V.useContext(jN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CM=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(jN.Provider,{value:e,children:t})),zN=V.createContext(!1),TM=()=>V.useContext(zN);zN.Provider;function AM(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RM=V.createContext(AM()),kM=()=>V.useContext(RM),NM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},OM=e=>{V.useEffect(()=>{e.clearReset()},[e])},IM=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||DN(n,[e.error,i])),LM=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},DM=(e,t)=>e.isLoading&&e.isFetching&&!t,MM=(e,t)=>e?.suspense&&t.isPending,Hx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function BM(e,t,n){const i=TM(),s=kM(),l=gn(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",LM(c),NM(c,s),OM(s);const o=!l.getQueryCache().get(c.queryHash),[d]=V.useState(()=>new t(l,c)),h=d.getOptimisticResult(c),p=!i&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(f=>{const g=p?d.subscribe(Lt.batchCalls(f)):Jt;return d.updateResult(),g},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),V.useEffect(()=>{d.setOptions(c)},[c,d]),MM(c,h))throw Hx(c,d,s);if(IM({result:h,errorResetBoundary:s,throwOnError:c.throwOnError,query:l.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!Wi&&DM(h,i)&&(o?Hx(c,d,s):l.getQueryCache().get(c.queryHash)?.promise)?.catch(Jt).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?h:d.trackResult(h)}function gi(e,t){return BM(e,gM)}function Kn(e,t){const n=gn(),[i]=V.useState(()=>new EM(n,e));V.useEffect(()=>{i.setOptions(e)},[i,e]);const s=V.useSyncExternalStore(V.useCallback(c=>i.subscribe(Lt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=V.useCallback((c,o)=>{i.mutate(c,o).catch(Jt)},[i]);if(s.error&&DN(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}const Va=new WeakMap,su=new WeakMap,yu={current:[]};let xh=!1,uo=0;const lo=new Set,Wl=new Map;function HN(e){const t=Array.from(e).sort((n,i)=>n instanceof Wa&&n.options.deps.includes(i)?1:i instanceof Wa&&i.options.deps.includes(n)?-1:0);for(const n of t){if(yu.current.includes(n))continue;yu.current.push(n),n.recompute();const i=su.get(n);if(i)for(const s of i){const l=Va.get(s);l&&HN(l)}}}function FM(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function PM(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function qN(e){if(uo>0&&!Wl.has(e)&&Wl.set(e,e.prevState),lo.add(e),!(uo>0)&&!xh)try{for(xh=!0;lo.size>0;){const t=Array.from(lo);lo.clear();for(const n of t){const i=Wl.get(n)??n.prevState;n.prevState=i,FM(n)}for(const n of t){const i=Va.get(n);i&&(yu.current.push(n),HN(i))}for(const n of t){const i=Va.get(n);if(i)for(const s of i)PM(s)}}}finally{xh=!1,yu.current=[],Wl.clear()}}function co(e){uo++;try{e()}finally{if(uo--,uo===0){const t=lo.values().next().value;t&&qN(t)}}}function UM(e){return typeof e=="function"}class Ky{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,l;this.listeners.add(i);const c=(l=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:l.call(s,i,this);return()=>{this.listeners.delete(i),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):UM(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),qN(this)}}class Wa{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,i=new Array(n),s=new Array(n);for(let l=0;l<n;l++){const c=this.options.deps[l];i[l]=c.prevState,s[l]=c.state}return this.lastSeenDepValues=s,{prevDepVals:i,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,i;this.prevState=this.state;const s=this.getDepVals();this.state=this.options.fn(s),(i=(n=this.options).onUpdate)==null||i.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const l of this.options.deps)l instanceof Wa&&l.checkIfRecalculationNeededDeeply();let n=!1;const i=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let l=0;l<s.length;l++)if(s[l]!==i[l]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var i,s;this.listeners.add(n);const l=(s=(i=this.options).onSubscribe)==null?void 0:s.call(i,n,this);return()=>{this.listeners.delete(n),l?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Wa)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Ky){let i=Va.get(n);i||(i=new Set,Va.set(n,i)),i.add(this);let s=su.get(this);s||(s=new Set,su.set(this,s)),s.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Wa)this.unregisterFromGraph(n.options.deps);else if(n instanceof Ky){const i=Va.get(n);i&&i.delete(this);const s=su.get(this);s&&s.delete(n)}}}const fi="__TSR_index",qx="popstate",$x="beforeunload";function jM(e){let t=e.getLocation();const n=new Set,i=c=>{t=e.getLocation(),n.forEach(o=>o({location:t,action:c}))},s=c=>{e.notifyOnIndexChange??!0?i(c):t=e.getLocation()},l=async({task:c,navigateOpts:o,...d})=>{if(o?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],f=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&p.length&&f)for(const g of p){const b=vu(d.path,d.state);if(await g.blockerFn({currentLocation:t,nextLocation:b,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,o,d)=>{const h=t.state[fi];o=Gx(h+1,o),l({task:()=>{e.pushState(c,o),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:c,state:o})},replace:(c,o,d)=>{const h=t.state[fi];o=Gx(h,o),l({task:()=>{e.replaceState(c,o),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:c,state:o})},go:(c,o)=>{l({task:()=>{e.go(c),s({type:"GO",index:c})},navigateOpts:o,type:"GO"})},back:c=>{l({task:()=>{e.back(c?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{l({task:()=>{e.forward(c?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[fi]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const o=e.getBlockers?.()??[];return e.setBlockers([...o,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function Gx(e,t){t||(t={});const n=Ov();return{...t,key:n,__TSR_key:n,[fi]:e}}function zM(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,c=k=>s=k,o=(k=>k),d=(()=>vu(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const k=Ov();t.history.replaceState({[fi]:0,key:k,__TSR_key:k},"")}let h=d(),p,f=!1,g=!1,b=!1,x=!1;const E=()=>h;let y,S;const v=()=>{y&&(O._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),O._ignoreSubscribers=!1,y=void 0,S=void 0,p=void 0)},_=(k,I,M)=>{const U=o(I);S||(p=h),h=vu(I,M),y={href:U,state:M,isPush:y?.isPush||k==="push"},S||(S=Promise.resolve().then(()=>v()))},C=k=>{h=d(),O.notify({type:k})},N=async()=>{if(g){g=!1;return}const k=d(),I=k.state[fi]-h.state[fi],M=I===1,U=I===-1,z=!M&&!U||f;f=!1;const j=z?"GO":U?"BACK":"FORWARD",G=z?{type:"GO",index:I}:{type:U?"BACK":"FORWARD"};if(b)b=!1;else{const K=l();if(typeof document<"u"&&K.length){for(const W of K)if(await W.blockerFn({currentLocation:h,nextLocation:k,action:j})){g=!0,t.history.go(1),O.notify(G);return}}}h=d(),O.notify(G)},R=k=>{if(x){x=!1;return}let I=!1;const M=l();if(typeof document<"u"&&M.length)for(const U of M){const z=U.enableBeforeUnload??!0;if(z===!0){I=!0;break}if(typeof z=="function"&&z()===!0){I=!0;break}}if(I)return k.preventDefault(),k.returnValue=""},O=jM({getLocation:E,getLength:()=>t.history.length,pushState:(k,I)=>_("push",k,I),replaceState:(k,I)=>_("replace",k,I),back:k=>(k&&(b=!0),x=!0,t.history.back()),forward:k=>{k&&(b=!0),x=!0,t.history.forward()},go:k=>{f=!0,t.history.go(k)},createHref:k=>o(k),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener($x,R,{capture:!0}),t.removeEventListener(qx,N)},onBlocked:()=>{p&&h!==p&&(h=p)},getBlockers:l,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener($x,R,{capture:!0}),t.addEventListener(qx,N),t.history.pushState=function(...k){const I=n.apply(t.history,k);return O._ignoreSubscribers||C("PUSH"),I},t.history.replaceState=function(...k){const I=i.apply(t.history,k);return O._ignoreSubscribers||C("REPLACE"),I},O}function vu(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=Ov();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[fi]:0,key:s,__TSR_key:s}}}function Ov(){return(Math.random()+1).toString(36).substring(7)}function Yy(e){return e[e.length-1]}function HM(e){return typeof e=="function"}function qi(e,t){return HM(e)?e(t):e}const qM=Object.prototype.hasOwnProperty;function zn(e,t){if(e===t)return e;const n=t,i=Kx(e)&&Kx(n);if(!i&&!(_u(e)&&_u(n)))return n;const s=i?e:Vx(e);if(!s)return n;const l=i?n:Vx(n);if(!l)return n;const c=s.length,o=l.length,d=i?new Array(o):{};let h=0;for(let p=0;p<o;p++){const f=i?p:l[p],g=e[f],b=n[f];if(g===b){d[f]=g,(i?p<c:qM.call(e,f))&&h++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){d[f]=b;continue}const x=zn(g,b);d[f]=x,x===g&&h++}return c===o&&h===c?e:d}function Vx(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function _u(e){if(!Wx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Wx(n)||!n.hasOwnProperty("isPrototypeOf"))}function Wx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Kx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $i(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!$i(e[i],t[i],n))return!1;return!0}if(_u(e)&&_u(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!i||t[c]!==void 0)&&!$i(e[c],t[c],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&s++;let l=0;for(const c in t)if((!i||t[c]!==void 0)&&(l++,l>s||!$i(e[c],t[c],n)))return!1;return s===l}return!1}function Ya(e){let t,n;const i=new Promise((s,l)=>{t=s,n=l});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e?.(s)},i.reject=s=>{i.status="rejected",n(s)},i}function pi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}var $M="Invariant failed";function Mr(e,t){if(!e)throw new Error($M)}const hn="__root__",or=0,Yi=1,Xa=2,Za=3;function Dr(e){return Iv(e.filter(t=>t!==void 0).join("/"))}function Iv(e){return e.replace(/\/{2,}/g,"/")}function Lv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function mi(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function ou(e){return mi(Lv(e))}function Su(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function GM(e,t,n){return Su(e,n)===Su(t,n)}function VM(e){const{type:t,value:n}=e;if(t===or)return n;const{prefixSegment:i,suffixSegment:s}=e;if(t===Yi){const l=n.substring(1);if(i&&s)return`${i}{$${l}}${s}`;if(i)return`${i}{$${l}}`;if(s)return`{$${l}}${s}`}if(t===Za){const l=n.substring(1);return i&&s?`${i}{-$${l}}${s}`:i?`${i}{-$${l}}`:s?`{-$${l}}${s}`:`{-$${l}}`}if(t===Xa){if(i&&s)return`${i}{$}${s}`;if(i)return`${i}{$}`;if(s)return`{$}${s}`}return n}function WM({base:e,to:t,trailingSlash:n="never",parseCache:i}){let s=$N(e,i).slice();const l=Bu(t,i);s.length>1&&Yy(s)?.value==="/"&&s.pop();for(let d=0,h=l.length;d<h;d++){const p=l[d],f=p.value;f==="/"?d?d===h-1&&s.push(p):s=[p]:f===".."?s.pop():f==="."||s.push(p)}s.length>1&&(Yy(s).value==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:or,value:"/"}));const c=s.map(VM);return Dr(c)}const $N=(e,t)=>GN(e,t,!0),Bu=(e,t)=>GN(e,t,!1),GN=(e,t,n)=>{if(!e)return[];const i=t?.get(e);if(i)return i;const s=JM(e,n);return t?.set(e,s),s},KM=/^\$.{1,}$/,YM=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,XM=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,ZM=/^\$$/,QM=/^(.*?)\{\$\}(.*)$/;function JM(e,t){e=Iv(e);const n=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),n.push({type:or,value:"/"})),!e)return n;const i=e.split("/").filter(Boolean);return n.push(...i.map(s=>{const l=!t&&s!==hn&&s.slice(-1)==="_"?s.slice(0,-1):s,c=l.match(QM);if(c){const h=c[1],p=c[2];return{type:Xa,value:"$",prefixSegment:h||void 0,suffixSegment:p||void 0}}const o=l.match(XM);if(o){const h=o[1],p=o[2],f=o[3];return{type:Za,value:p,prefixSegment:h||void 0,suffixSegment:f||void 0}}const d=l.match(YM);if(d){const h=d[1],p=d[2],f=d[3];return{type:Yi,value:""+p,prefixSegment:h||void 0,suffixSegment:f||void 0}}if(KM.test(l)){const h=l.substring(1);return{type:Yi,value:"$"+h,prefixSegment:void 0,suffixSegment:void 0}}return ZM.test(l)?{type:Xa,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:or,value:l.includes("%25")?l.split("%25").map(h=>decodeURI(h)).join("%25"):decodeURI(l)}})),e.slice(-1)==="/"&&(e=e.substring(1),n.push({type:or,value:"/"})),n}function Kl({path:e,params:t,leaveWildcards:n,leaveParams:i,decodeCharMap:s,parseCache:l}){const c=Bu(e,l);function o(f){const g=t[f],b=typeof g=="string";return f==="*"||f==="_splat"?b?encodeURI(g):g:b?eB(g,s):g}let d=!1;const h={},p=Dr(c.map(f=>{if(f.type===or)return f.value;if(f.type===Xa){h._splat=t._splat,h["*"]=t._splat;const g=f.prefixSegment||"",b=f.suffixSegment||"";if(!("_splat"in t))return d=!0,n?`${g}${f.value}${b}`:g||b?`${g}${b}`:void 0;const x=o("_splat");return n?`${g}${f.value}${x??""}${b}`:`${g}${x}${b}`}if(f.type===Yi){const g=f.value.substring(1);!d&&!(g in t)&&(d=!0),h[g]=t[g];const b=f.prefixSegment||"",x=f.suffixSegment||"";if(i){const E=o(f.value);return`${b}${f.value}${E??""}${x}`}return`${b}${o(g)??"undefined"}${x}`}if(f.type===Za){const g=f.value.substring(1),b=f.prefixSegment||"",x=f.suffixSegment||"";if(!(g in t)||t[g]==null)return n?`${b}${g}${x}`:b||x?`${b}${x}`:void 0;if(h[g]=t[g],i){const E=o(f.value);return`${b}${f.value}${E??""}${x}`}return n?`${b}${g}${o(g)??""}${x}`:`${b}${o(g)??""}${x}`}return f.value}));return{usedParams:h,interpolatedPath:p,isMissingParams:d}}function eB(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function Xy(e,t,n){const i=tB(e,t,n);if(!(t.to&&!i))return i??{}}function tB(e,{to:t,fuzzy:n,caseSensitive:i},s){const l=t,c=$N(e.startsWith("/")?e:`/${e}`,s),o=Bu(l.startsWith("/")?l:`/${l}`,s),d={};return nB(c,o,d,n,i)?d:void 0}function nB(e,t,n,i,s){let l=0,c=0;for(;l<e.length||c<t.length;){const o=e[l],d=t[c];if(d){if(d.type===Xa){const h=e.slice(l);let p;if(d.prefixSegment||d.suffixSegment){if(!o)return!1;const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if("prefixSegment"in d&&!b.startsWith(f)||"suffixSegment"in d&&!e[e.length-1]?.value.endsWith(g))return!1;let x=decodeURI(Dr(h.map(E=>E.value)));f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),p=x}else p=decodeURI(Dr(h.map(f=>f.value)));return n["*"]=p,n._splat=p,!0}if(d.type===or){if(d.value==="/"&&!o?.value){c++;continue}if(o){if(s){if(d.value!==o.value)return!1}else if(d.value.toLowerCase()!==o.value.toLowerCase())return!1;l++,c++;continue}else return!1}if(d.type===Yi){if(!o||o.value==="/")return!1;let h="",p=!1;if(d.prefixSegment||d.suffixSegment){const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if(f&&!b.startsWith(f)||g&&!b.endsWith(g))return!1;let x=b;f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),h=decodeURIComponent(x),p=!0}else h=decodeURIComponent(o.value),p=!0;p&&(n[d.value.substring(1)]=h,l++),c++;continue}if(d.type===Za){if(!o){c++;continue}if(o.value==="/"){c++;continue}let h="",p=!1;if(d.prefixSegment||d.suffixSegment){const f=d.prefixSegment||"",g=d.suffixSegment||"",b=o.value;if((!f||b.startsWith(f))&&(!g||b.endsWith(g))){let x=b;f&&x.startsWith(f)&&(x=x.slice(f.length)),g&&x.endsWith(g)&&(x=x.slice(0,x.length-g.length)),h=decodeURIComponent(x),p=!0}}else{let f=!0;for(let g=c+1;g<t.length;g++){const b=t[g];if(b?.type===or&&b.value===o.value){f=!1;break}if(b?.type===Yi||b?.type===Xa){e.length<t.length&&(f=!1);break}}f&&(h=decodeURIComponent(o.value),p=!0)}p&&(n[d.value.substring(1)]=h,l++),c++;continue}}if(l<e.length&&c>=t.length)return n["**"]=Dr(e.slice(l).map(h=>h.value)),!!i&&t[t.length-1]?.value!=="/";if(c<t.length&&l>=e.length){for(let h=c;h<t.length;h++)if(t[h]?.type!==Za)return!1;break}break}return!0}const rB=.75,iB=1,aB=.5,sB=.4,oB=.25,lB=.2,uB=.05,cB=.02,dB=.01,Yx=2e-4,Xx=1e-4;function Zx(e,t){return e.prefixSegment&&e.suffixSegment?t+uB+Yx*e.prefixSegment.length+Xx*e.suffixSegment.length:e.prefixSegment?t+cB+Yx*e.prefixSegment.length:e.suffixSegment?t+dB+Xx*e.suffixSegment.length:t}function hB(e){const t=[];return e.forEach((i,s)=>{if(i.isRoot||!i.path)return;const l=Lv(i.fullPath);let c=Bu(l),o=0;for(;c.length>o+1&&c[o]?.value==="/";)o++;o>0&&(c=c.slice(o));let d=0,h=!1;const p=c.map((f,g)=>{if(f.value==="/")return rB;if(f.type===or)return iB;let b;f.type===Yi?b=aB:f.type===Za?(b=sB,d++):b=oB;for(let x=g+1;x<c.length;x++){const E=c[x];if(E.type===or&&E.value!=="/")return h=!0,Zx(f,b+lB)}return Zx(f,b)});t.push({child:i,trimmed:l,parsed:c,index:s,scores:p,optionalParamCount:d,hasStaticAfter:h})}),t.sort((i,s)=>{const l=Math.min(i.scores.length,s.scores.length);for(let c=0;c<l;c++)if(i.scores[c]!==s.scores[c])return s.scores[c]-i.scores[c];if(i.scores.length!==s.scores.length){if(i.optionalParamCount!==s.optionalParamCount){if(i.hasStaticAfter===s.hasStaticAfter)return i.optionalParamCount-s.optionalParamCount;if(i.hasStaticAfter&&!s.hasStaticAfter)return-1;if(!i.hasStaticAfter&&s.hasStaticAfter)return 1}return s.scores.length-i.scores.length}for(let c=0;c<l;c++)if(i.parsed[c].value!==s.parsed[c].value)return i.parsed[c].value>s.parsed[c].value?1:-1;return i.index-s.index}).map((i,s)=>(i.child.rank=s,i.child))}function fB({routeTree:e,initRoute:t}){const n={},i={},s=c=>{c.forEach((o,d)=>{t?.(o,d);const h=n[o.id];if(Mr(!h,`Duplicate routes found with id: ${String(o.id)}`),n[o.id]=o,!o.isRoot&&o.path){const f=mi(o.fullPath);(!i[f]||o.fullPath.endsWith("/"))&&(i[f]=o)}const p=o.children;p?.length&&s(p)})};s([e]);const l=hB(Object.values(n));return{routesById:n,routesByPath:i,flatRoutes:l}}function lr(e){return!!e?.isNotFound}function pB(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Eu="tsr-scroll-restoration-v1_3",mB=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function gB(){const e=pB();if(!e)return null;const t=e.getItem(Eu);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=qi(i,n)||n,e.setItem(Eu,JSON.stringify(n)))}}const Yl=gB(),Zy=e=>e.state.__TSR_key||e.href;function bB(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let xu=!1;function VN({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:l}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const o=t||window.history.state?.__TSR_key,d=c[o];xu=!0;e:{if(i&&d&&Object.keys(d).length>0){for(const f in d){const g=d[f];if(f==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(f){const b=document.querySelector(f);b&&(b.scrollLeft=g.scrollX,b.scrollTop=g.scrollY)}}break e}const h=(l??window.location).hash.split("#",2)[1];if(h){const f=window.history.state?.__hashScrollIntoViewOptions??!0;if(f){const g=document.getElementById(h);g&&g.scrollIntoView(f)}break e}const p={top:0,left:0,behavior:n};if(window.scrollTo(p),s)for(const f of s){if(f==="window")continue;const g=typeof f=="function"?f():document.querySelector(f);g&&g.scrollTo(p)}}xu=!1}function yB(e,t){if(!Yl&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Yl))return;e.isScrollRestorationSetup=!0,xu=!1;const i=e.options.getScrollRestorationKey||Zy;window.history.scrollRestoration="manual";const s=l=>{if(xu||!e.isScrollRestoring)return;let c="";if(l.target===document||l.target===window)c="window";else{const d=l.target.getAttribute("data-scroll-restoration-id");d?c=`[data-scroll-restoration-id="${d}"]`:c=bB(l.target)}const o=i(e.state.location);Yl.set(d=>{const h=d[o]||={},p=h[c]||={};if(c==="window")p.scrollX=window.scrollX||0,p.scrollY=window.scrollY||0;else if(c){const f=document.querySelector(c);f&&(p.scrollX=f.scrollLeft||0,p.scrollY=f.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",mB(s,100),!0),e.subscribe("onRendered",l=>{const c=i(l.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(VN({storageKey:Eu,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Yl.set(o=>(o[c]||={},o)))})}function vB(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function _B(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function wh(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function SB(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=wh(s):Array.isArray(l)?l.push(wh(s)):n[i]=[l,wh(s)]}return n}const EB=wB(JSON.parse),xB=CB(JSON.stringify,JSON.parse);function wB(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=SB(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function CB(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const l=_B(s,i);return l?`?${l}`:""}}function WN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ar(e){return e instanceof Response&&!!e.options}function TB(e){const t=new Map;let n,i;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=l)};return{get(l){const c=t.get(l);if(c)return s(c),c.value},set(l,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const o=t.get(l);if(o)o.value=c,s(o);else{const d={key:l,value:c,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(l,d)}}}}const lu=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Fu=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),KN=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Mr(n.options.notFoundComponent);const i=e.matches.find(s=>s.routeId===n.id);Mr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,s=>({...s,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,KN(e,t))},ci=(e,t,n)=>{if(!(!ar(n)&&!lr(n))){if(ar(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const i=ar(n)?"redirected":"notFound";e.updateMatch(t.id,s=>({...s,status:i,isFetching:!1,error:n})),lr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw ar(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(KN(e,n),n)}},YN=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},eo=(e,t,n,i)=>{const{id:s,routeId:l}=e.matches[t],c=e.router.looseRoutesById[l];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??=t,ci(e,e.router.getMatch(s),n);try{c.options.onError?.(n)}catch(o){n=o,ci(e,e.router.getMatch(s),n)}e.updateMatch(s,o=>(o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loadPromise?.resolve(),{...o,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},AB=(e,t,n,i)=>{const s=e.router.getMatch(t),l=e.matches[n-1]?.id,c=l?e.router.getMatch(l):void 0;if(e.router.isShell()){s.ssr=t===hn;return}if(c?.ssr===!1){s.ssr=!1;return}const o=b=>b===!0&&c?.ssr==="data-only"?"data-only":b,d=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=o(d);return}if(typeof i.options.ssr!="function"){s.ssr=o(i.options.ssr);return}const{search:h,params:p}=s,f={search:Xl(h,s.searchError),params:Xl(p,s.paramsError),location:e.location,matches:e.matches.map(b=>({index:b.index,pathname:b.pathname,fullPath:b.fullPath,staticData:b.staticData,id:b.id,routeId:b.routeId,search:Xl(b.search,b.searchError),params:Xl(b.params,b.paramsError),ssr:b.ssr}))},g=i.options.ssr(f);if(pi(g))return g.then(b=>{s.ssr=o(b??d)});s.ssr=o(g??d)},XN=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!Fu(e,t)&&(n.options.loader||n.options.beforeLoad||JN(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{lu(e)},s);i._nonReactive.pendingTimeout=c}},RB=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;XN(e,t,n,i);const s=()=>{const l=e.router.getMatch(t);l.preload&&(l.status==="redirected"||l.status==="notFound")&&ci(e,l,l.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},kB=(e,t,n,i)=>{const s=e.router.getMatch(t),l=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Ya(()=>{l?.resolve()});const{paramsError:c,searchError:o}=s;c&&eo(e,n,c,"PARSE_PARAMS"),o&&eo(e,n,o,"VALIDATE_SEARCH"),XN(e,t,i,s);const d=new AbortController,h=e.matches[n-1]?.id,g={...(h?e.router.getMatch(h):void 0)?.context??e.router.options.context??void 0,...s.__routeContext};let b=!1;const x=()=>{b||(b=!0,e.updateMatch(t,O=>({...O,isFetching:"beforeLoad",fetchCount:O.fetchCount+1,abortController:d,context:g})))},E=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,O=>({...O,isFetching:!1}))};if(!i.options.beforeLoad){co(()=>{x(),E()});return}s._nonReactive.beforeLoadPromise=Ya();const{search:y,params:S,cause:v}=s,_=Fu(e,t),C={search:y,abortController:d,params:S,preload:_,context:g,location:e.location,navigate:O=>e.router.navigate({...O,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?"preload":v,matches:e.matches,...e.router.options.additionalContext},N=O=>{if(O===void 0){co(()=>{x(),E()});return}(ar(O)||lr(O))&&(x(),eo(e,n,O,"BEFORE_LOAD")),co(()=>{x(),e.updateMatch(t,k=>({...k,__beforeLoadContext:O,context:{...k.context,...O}})),E()})};let R;try{if(R=i.options.beforeLoad(C),pi(R))return x(),R.catch(O=>{eo(e,n,O,"BEFORE_LOAD")}).then(N)}catch(O){x(),eo(e,n,O,"BEFORE_LOAD")}N(R)},NB=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],l=()=>{if(e.router.isServer){const d=AB(e,n,t,s);if(pi(d))return d.then(o)}return o()},c=()=>kB(e,n,t,s),o=()=>{if(YN(e,n))return;const d=RB(e,n,s);return pi(d)?d.then(c):c()};return l()},ho=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(s),n.options.scripts?.(s),n.options.headers?.(s)]).then(([l,c,o])=>{const d=l?.meta,h=l?.links,p=l?.scripts,f=l?.styles;return{meta:d,links:h,headScripts:p,headers:o,scripts:c,styles:f}})},ZN=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:l,loaderDeps:c,abortController:o,context:d,cause:h}=e.router.getMatch(t),p=Fu(e,t);return{params:l,deps:c,preload:!!p,parentMatchPromise:s,abortController:o,context:d,location:e.location,navigate:f=>e.router.navigate({...f,_fromLocation:e.location}),cause:p?"preload":h,route:i,...e.router.options.additionalContext}},Qx=async(e,t,n,i)=>{try{const s=e.router.getMatch(t);try{(!e.router.isServer||s.ssr===!0)&&QN(i);const l=i.options.loader?.(ZN(e,t,n,i)),c=i.options.loader&&pi(l);if(!!(c||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(t,f=>({...f,isFetching:"loader"})),i.options.loader){const f=c?await l:l;ci(e,e.router.getMatch(t),f),f!==void 0&&e.updateMatch(t,g=>({...g,loaderData:f}))}i._lazyPromise&&await i._lazyPromise;const d=ho(e,t,i),h=d?await d:void 0,p=s._nonReactive.minPendingPromise;p&&await p,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,f=>({...f,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...h}))}catch(l){let c=l;const o=s._nonReactive.minPendingPromise;o&&await o,ci(e,e.router.getMatch(t),l);try{i.options.onError?.(l)}catch(p){c=p,ci(e,e.router.getMatch(t),p)}const d=ho(e,t,i),h=d?await d:void 0;e.updateMatch(t,p=>({...p,error:c,status:"error",isFetching:!1,...h}))}}catch(s){const l=e.router.getMatch(t);if(l){const c=ho(e,t,i);if(c){const o=await c;e.updateMatch(t,d=>({...d,...o}))}l._nonReactive.loaderPromise=void 0}ci(e,l,s)}},OB=async(e,t)=>{const{id:n,routeId:i}=e.matches[t];let s=!1,l=!1;const c=e.router.looseRoutesById[i];if(YN(e,n)){if(e.router.isServer){const h=ho(e,n,c);if(h){const p=await h;e.updateMatch(n,f=>({...f,...p}))}return e.router.getMatch(n)}}else{const h=e.router.getMatch(n);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!e.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const p=e.router.getMatch(n);p.error&&ci(e,p,p.error)}else{const p=Date.now()-h.updatedAt,f=Fu(e,n),g=f?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,b=c.options.shouldReload,x=typeof b=="function"?b(ZN(e,n,t,c)):b,E=!!f&&!e.router.state.matches.some(_=>_.id===n),y=e.router.getMatch(n);y._nonReactive.loaderPromise=Ya(),E!==y.preload&&e.updateMatch(n,_=>({..._,preload:E}));const{status:S,invalid:v}=y;if(s=S==="success"&&(v||(x??p>g)),!(f&&c.options.preload===!1))if(s&&!e.sync)l=!0,(async()=>{try{await Qx(e,n,t,c);const _=e.router.getMatch(n);_._nonReactive.loaderPromise?.resolve(),_._nonReactive.loadPromise?.resolve(),_._nonReactive.loaderPromise=void 0}catch(_){ar(_)&&await e.router.navigate(_.options)}})();else if(S!=="success"||s&&e.sync)await Qx(e,n,t,c);else{const _=ho(e,n,c);if(_){const C=await _;e.updateMatch(n,N=>({...N,...C}))}}}}const o=e.router.getMatch(n);l||(o._nonReactive.loaderPromise?.resolve(),o._nonReactive.loadPromise?.resolve()),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0,l||(o._nonReactive.loaderPromise=void 0),o._nonReactive.dehydrated=void 0;const d=l?o.isFetching:!1;return d!==o.isFetching||o.invalid!==!1?(e.updateMatch(n,h=>({...h,isFetching:d,invalid:!1})),e.router.getMatch(n)):o};async function Jx(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&lu(t);try{for(let s=0;s<t.matches.length;s++){const l=NB(t,s);pi(l)&&await l}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(OB(t,s));await Promise.all(t.matchPromises);const i=lu(t);pi(i)&&await i}catch(n){if(lr(n)&&!t.preload){const i=lu(t);throw pi(i)&&await i,n}if(ar(n))throw n}return t.matches}async function QN(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const i of eO){const s=e.options[i]?.preload;s&&n.push(s())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Xl(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function JN(e){for(const t of eO)if(e.options[t]?.preload)return!0;return!1}const eO=["component","errorComponent","pendingComponent","notFoundComponent"];function IB(e){return{input:({url:t})=>{for(const n of e)t=tO(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=nO(e[n],t);return t}}}function LB(e){const t=ou(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),l=e.caseSensitive?i:i.toLowerCase();return{input:({url:c})=>{const o=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return o===s?c.pathname="/":o.startsWith(l)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=Dr(["/",t,c.pathname]),c)}}function tO(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function nO(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Gi(e){const t=e.resolvedLocation,n=e.location,i=t?.pathname!==n.pathname,s=t?.href!==n.href,l=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:l}}class DB{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,c=i?.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=zM())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Ky(BB(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),yB(this));let o=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(l||s!==d||c!==h){this.basepath=d;const g=[];ou(d)!==""&&g.push(LB({basepath:d})),h&&g.push(h),this.rewrite=g.length===0?void 0:g.length===1?g[0]:IB(g),this.history&&this.updateLatestLocation(),o=!0}o&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,flatRoutes:s}=fB({routeTree:this.routeTree,initRoute:(c,o)=>{c.init({originalIndex:o})}});this.routesById=n,this.routesByPath=i,this.flatRoutes=s;const l=this.options.notFoundRoute;l&&(l.init({originalIndex:99999999999}),this.routesById[l.id]=l)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:d,state:h})=>{const p=new URL(d,this.origin),f=tO(this.rewrite,p),g=this.options.parseSearch(f.search),b=this.options.stringifySearch(g);f.search=b;const x=f.href.replace(f.origin,""),{pathname:E,hash:y}=f;return{href:x,publicHref:d,url:f.href,pathname:E,searchStr:b,search:zn(i?.search,g),hash:y.split("#").reverse()[0]??"",state:zn(i?.state,h)}},l=s(n),{__tempLocation:c,__tempKey:o}=l.state;if(c&&(!o||o===this.tempLocationKey)){const d=s(c);return d.state.key=l.state.key,d.state.__TSR_key=l.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>WM({base:n,to:Iv(i),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.parsePathnameCache=TB(1e3),this.getMatchedRoutes=(n,i)=>FB({pathname:n,routePathname:i,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.state.pendingMatches?.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=n=>{const i=(l={})=>{const c=l._fromLocation||this.latestLocation,o=this.matchRoutes(c,{_buildLocation:!0}),d=Yy(o);l.from;const h=l.unsafeRelative==="path"?c.pathname:l.from??d.fullPath,p=this.resolvePathWithBase(h,"."),f=d.search,g={...d.params},b=l.to?this.resolvePathWithBase(p,`${l.to}`):this.resolvePathWithBase(p,"."),x=l.params===!1||l.params===null?{}:(l.params??!0)===!0?g:Object.assign(g,qi(l.params,g)),E=Kl({path:b,params:x,parseCache:this.parsePathnameCache}).interpolatedPath,y=this.matchRoutes(E,void 0,{_buildLocation:!0}).map(M=>this.looseRoutesById[M.routeId]);if(Object.keys(x).length>0)for(const M of y){const U=M.options.params?.stringify??M.options.stringifyParams;U&&Object.assign(x,U(x))}const S=Kl({path:b,params:x,leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let v=f;if(n._includeValidateSearch&&this.options.search?.strict){const M={};y.forEach(U=>{if(U.options.validateSearch)try{Object.assign(M,Qy(U.options.validateSearch,{...M,...v}))}catch{}}),v=M}v=PB({search:v,dest:l,destRoutes:y,_includeValidateSearch:n._includeValidateSearch}),v=zn(f,v);const _=this.options.stringifySearch(v),C=l.hash===!0?c.hash:l.hash?qi(l.hash,c.hash):void 0,N=C?`#${C}`:"";let R=l.state===!0?c.state:l.state?qi(l.state,c.state):{};R=zn(c.state,R);const O=`${S}${_}${N}`,k=new URL(O,this.origin),I=nO(this.rewrite,k);return{publicHref:I.pathname+I.search+I.hash,href:O,url:I.href,pathname:S,search:v,searchStr:_,state:R,hash:C??"",unmaskOnReload:l.unmaskOnReload}},s=(l={},c)=>{const o=i(l);let d=c?i(c):void 0;if(!d){let h={};const p=this.options.routeMasks?.find(f=>{const g=Xy(o.pathname,{to:f.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return g?(h=g,!0):!1});if(p){const{from:f,...g}=p;c={from:n.from,...g,params:h},d=i(c)}}return d&&(o.maskedLocation=d),o};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const l=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const h=$i(s.state,this.latestLocation.state);return d.forEach(p=>{delete s.state[p]}),h},c=mi(this.latestLocation.href)===mi(s.href),o=this.commitLocationPromise;if(this.commitLocationPromise=Ya(()=>{o?.resolve()}),c&&l())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...p}=s;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:c,href:o,...d}={})=>{if(o){const p=this.history.location.state.__TSR_index,f=vu(o,{__TSR_index:n?p:p+1});d.to=f.pathname,d.search=this.options.parseSearch(f.search),d.hash=f.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c})},this.navigate=({to:n,reloadDocument:i,href:s,...l})=>{if(!i&&s)try{new URL(`${s}`),i=!0}catch{}return i?(s||(s=this.buildLocation({to:n,...l}).url),l.replace?window.location.replace(s):window.location.href=s,Promise.resolve()):this.buildAndCommitLocation({...l,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),s=l=>{try{return encodeURI(decodeURI(l))}catch{return l}};if(ou(s(this.latestLocation.href))!==ou(s(i.href))){let l=i.url;throw this.origin&&l.startsWith(this.origin)&&(l=l.replace(this.origin,"")||"/"),WN({href:l})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(s=>!n.some(l=>l.id===s.id))}))},this.load=async n=>{let i,s,l;for(l=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Gi({resolvedLocation:h,location:d})}),this.emit({type:"onBeforeLoad",...Gi({resolvedLocation:h,location:d})}),await Jx({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let p,f,g;co(()=>{this.__store.setState(b=>{const x=b.matches,E=b.pendingMatches||b.matches;return p=x.filter(y=>!E.some(S=>S.id===y.id)),f=E.filter(y=>!x.some(S=>S.id===y.id)),g=x.filter(y=>E.some(S=>S.id===y.id)),{...b,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...b.cachedMatches,...p.filter(y=>y.status!=="error")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[f,"onEnter"],[g,"onStay"]].forEach(([b,x])=>{b.forEach(E=>{this.looseRoutesById[E.routeId].options[x]?.(E)})})})}})}catch(d){ar(d)?(i=d,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):lr(d)&&(s=d),this.__store.setState(h=>({...h,statusCode:i?i.status:s?404:h.matches.some(p=>p.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.__store.state.matches.some(o=>o.status==="error")&&(c=500),c!==void 0&&this.__store.setState(o=>({...o,statusCode:c}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const l=this.latestLocation,c=this.state.resolvedLocation,o=typeof i.types=="function"?i.types(Gi({resolvedLocation:c,location:l})):i.types;if(o===!1){n();return}s={update:n,types:o}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{const s=this.state.pendingMatches?.some(l=>l.id===n)?"pendingMatches":this.state.matches.some(l=>l.id===n)?"matches":this.state.cachedMatches.some(l=>l.id===n)?"cachedMatches":"";s&&this.__store.setState(l=>({...l,[s]:l[s]?.map(c=>c.id===n?i(c):c)}))},this.getMatch=n=>{const i=s=>s.id===n;return this.state.cachedMatches.find(i)??this.state.pendingMatches?.find(i)??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>n?.filter?.(s)??!0?{...s,invalid:!0,...n?.forcePending||s.status==="error"?{status:"pending",error:void 0}:void 0}:s;return this.__store.setState(s=>({...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:s.pendingMatches?.map(i)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n?.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(l=>!i(l))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const l=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=l};this.clearCache({filter:n})},this.loadRouteChunk=QN,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const l=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(o=>o.id)),c=new Set([...l,...this.state.cachedMatches.map(o=>o.id)]);co(()=>{s.forEach(o=>{c.has(o.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,o]}))})});try{return s=await Jx({router:this,matches:s,location:i,preload:!0,updateMatch:(o,d)=>{l.has(o)?s=s.map(h=>h.id===o?d(h):h):this.updateMatch(o,d)}}),s}catch(o){if(ar(o))return o.options.reloadDocument?void 0:await this.preloadRoute({...o.options,_fromLocation:i});lr(o)||console.error(o);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s);if(i?.pending&&this.state.status!=="pending")return!1;const o=(i?.pending===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=Xy(o.pathname,{...i,to:l.pathname},this.parsePathnameCache);return!d||n.params&&!$i(d,n.params,{partial:!0})?!1:d&&(i?.includeSearch??!0)?$i(o.search,l.search,{partial:!0})?d:!1:d},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??xB,parseSearch:t.parseSearch??EB}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const{foundRoute:i,matchedRoutes:s,routeParams:l}=this.getMatchedRoutes(t.pathname,n?.dest?.to);let c=!1;(i?i.path!=="/"&&l["**"]:mi(t.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):c=!0);const o=(()=>{if(c){if(this.options.notFoundMode!=="root")for(let p=s.length-1;p>=0;p--){const f=s[p];if(f.children)return f.id}return hn}})(),d=[],h=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return s.forEach((p,f)=>{const g=d[f-1],[b,x,E]=(()=>{const z=g?.search??t.search,j=g?._strictSearch??void 0;try{const G=Qy(p.options.validateSearch,{...z})??void 0;return[{...z,...G},{...j,...G},void 0]}catch(G){let K=G;if(G instanceof wu||(K=new wu(G.message,{cause:G})),n?.throwOnError)throw K;return[z,{},K]}})(),y=p.options.loaderDeps?.({search:b})??"",S=y?JSON.stringify(y):"",{interpolatedPath:v,usedParams:_}=Kl({path:p.fullPath,params:l,decodeCharMap:this.pathParamsDecodeCharMap}),C=Kl({path:p.id,params:l,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+S,N=this.getMatch(C),R=this.state.matches.find(z=>z.routeId===p.id),O=N?._strictParams??_;let k;if(!N){const z=p.options.params?.parse??p.options.parseParams;if(z)try{Object.assign(O,z(O))}catch(j){if(k=new MB(j.message,{cause:j}),n?.throwOnError)throw k}}Object.assign(l,O);const I=R?"stay":"enter";let M;if(N)M={...N,cause:I,params:R?zn(R.params,l):l,_strictParams:O,search:zn(R?R.search:N.search,b),_strictSearch:x};else{const z=p.options.loader||p.options.beforeLoad||p.lazyFn||JN(p)?"pending":"success";M={id:C,index:f,routeId:p.id,params:R?zn(R.params,l):l,_strictParams:O,pathname:v,updatedAt:Date.now(),search:R?zn(R.search,b):b,_strictSearch:x,searchError:void 0,status:z,isFetching:!1,error:void 0,paramsError:k,__routeContext:void 0,_nonReactive:{loadPromise:Ya()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:R?zn(R.loaderDeps,y):y,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(M.globalNotFound=o===p.id),M.searchError=E;const U=h(g);M.context={...U,...M.__routeContext,...M.__beforeLoadContext},d.push(M)}),d.forEach((p,f)=>{const g=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const x=d[f-1],E=h(x);if(g.options.context){const y={deps:p.loaderDeps,params:p.params,context:E??{},location:t,navigate:S=>this.navigate({...S,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:d};p.__routeContext=g.options.context(y)??void 0}p.context={...E,...p.__routeContext,...p.__beforeLoadContext}}}),d}}class wu extends Error{}class MB extends Error{}function BB(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Qy(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new wu("Async validation not supported");if(n.issues)throw new wu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function FB({pathname:e,routePathname:t,caseSensitive:n,routesByPath:i,routesById:s,flatRoutes:l,parseCache:c}){let o={};const d=mi(e),h=b=>Xy(d,{to:b.fullPath,caseSensitive:b.options?.caseSensitive??n,fuzzy:!0},c);let p=t!==void 0?i[t]:void 0;if(p)o=h(p);else{let b;for(const x of l){const E=h(x);if(E)if(x.path!=="/"&&E["**"])b||(b={foundRoute:x,routeParams:E});else{p=x,o=E;break}}!p&&b&&(p=b.foundRoute,o=b.routeParams)}let f=p||s[hn];const g=[f];for(;f.parentRoute;)f=f.parentRoute,g.push(f);return g.reverse(),{matchedRoutes:g,routeParams:o,foundRoute:p}}function PB({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((o,d)=>{const h=[];if("search"in d.options)d.options.search?.middlewares&&h.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const p=({search:f,next:g})=>{let b=f;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(b=d.options.preSearchFilters.reduce((E,y)=>y(E),f));const x=g(b);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((E,y)=>y(E),x):x};h.push(p)}if(i&&d.options.validateSearch){const p=({search:f,next:g})=>{const b=g(f);try{return{...b,...Qy(d.options.validateSearch,b)??void 0}}catch{return b}};h.push(p)}return o.concat(h)},[])??[],l=({search:o})=>t.search?t.search===!0?o:qi(t.search,o):{};s.push(l);const c=(o,d)=>{if(o>=s.length)return d;const h=s[o];return h({search:d,next:f=>c(o+1,f)})};return c(0,e)}const UB="Error preloading route! ☝️";class rO{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=hn:this.parentRoute||Mr(!1);let l=s?hn:i?.path;l&&l!=="/"&&(l=Lv(l));const c=i?.id||l;let o=s?hn:Dr([this.parentRoute.id===hn?"":this.parentRoute.id,c]);l===hn&&(l="/"),o!==hn&&(o=Dr(["/",o]));const d=o===hn?"/":Dr([this.parentRoute.fullPath,l]);this._path=l,this._id=o,this._fullPath=d,this._to=d},this.clone=n=>{this._path=n._path,this._id=n._id,this._fullPath=n._fullPath,this._to=n._to,this.options.getParentRoute=n.options.getParentRoute,this.children=n.children},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class jB extends rO{constructor(t){super(t)}}function Dv(e){const t=e.errorComponent??Pu;return T.jsx(zB,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?V.createElement(t,{error:n,reset:i}):e.children})}class zB extends V.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Pu({error:e}){const[t,n]=V.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),t?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?T.jsx("code",{children:e.message}):null})}):null]})}function HB({children:e,fallback:t=null}){return qB()?T.jsx($t.Fragment,{children:e}):T.jsx($t.Fragment,{children:t})}function qB(){return $t.useSyncExternalStore($B,()=>!0,()=>!1)}function $B(){return()=>{}}var Ch={exports:{}},Th={},Ah={exports:{}},Rh={};/**
50
50
  * @license React
51
51
  * use-sync-external-store-shim.production.js
52
52
  *